/* GENERATED: edit components and run tools/build_styles.py. Compatibility rules retained deliberately. */
@layer components, compatibility;
/* Source: css/base.css */
@layer compatibility{
  /* Tipografía: Manrope (cuerpo, geométrica con carácter) + Fraunces (títulos, editorial) + JetBrains Mono (números) */
  

  :root {
    /* Paleta editorial premium: rojo vivo + crema cálida + acentos dorados */
    --bg: #F4F1E8;             /* crema cálida (newspaper feel) */
    --bg-tint: #EBE6D8;
    --bg-deep: #E5DEC9;         /* sidebar/accent background */
    --card: #FFFFFF;            /* blanco puro para tarjetas (contraste alto) */
    --card-alt: #FAF7EE;        /* tarjeta alterna muy sutil */
    --border: #D9D2BF;          /* borde visible pero discreto */
    --border-strong: #B8AC8B;   /* borde más marcado para divisores */
    --text: #14110D;            /* negro profundo, casi tinta */
    --text-soft: #3D3729;       /* gris cálido medio */
    --muted: #786E58;          /* gris cálido suave para anotaciones */
    --primary: #B81C2C;         /* rojo CB Vic más vivo, mejor contraste */
    --primary-deep: #8B0F1F;    /* hover/active */
    --primary-soft: #F9E8E9;    /* tinte claro */
    --secondary: #14110D;       /* negro profundo para headers */
    --accent: #2F6B43;          /* verde bosque (no oliva apagado) */
    --accent-soft: #DFEBE0;
    --gold: #B89148;            /* dorado premium (acentos) */
    --gold-soft: #F2E6CC;
    --warn: #B56B0F;            /* ámbar profundo */
    --warn-soft: #F8E9CC;
    --danger: #B81C2C;          /* = primary para consistencia */
    --danger-soft: #F9E8E9;
    --input: #FFFFFF;
    --calc: #F4F1E8;
    --row-stripe: #FAF7EE;
    /* Sombras muy sutiles: el diseño editorial usa bordes, no sombras */
    --shadow-sm: 0 1px 2px rgba(20, 17, 13, 0.05);
    --shadow: 0 1px 3px rgba(20, 17, 13, 0.08);
    --radius: 4px;
    --radius-sm: 3px;

    /* Tipografía display (landing) */
    --font-display: "Fraunces", Georgia, serif;
    --font-body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Consolas, monospace;

    /* Sombras premium */
    --shadow-md: 0 4px 12px -2px rgba(20,17,13,0.08), 0 2px 4px -2px rgba(20,17,13,0.04);
    --shadow-lg: 0 12px 32px -8px rgba(20,17,13,0.12), 0 4px 8px -2px rgba(20,17,13,0.06);
    --shadow-xl: 0 24px 60px -12px rgba(20,17,13,0.18), 0 8px 16px -4px rgba(20,17,13,0.08);
    --shadow-glow: 0 0 0 1px rgba(184,28,44,0.10), 0 8px 24px -6px rgba(184,28,44,0.25);
  }

  /* ===== DARK MODE ===== */
  [data-theme="dark"] {
    --bg: #0A0907;
    --bg-tint: #14110D;
    --bg-deep: #1A1612;
    --card: #161310;
    --card-alt: #1F1B17;
    --border: #2A2520;
    --border-strong: #3D3729;
    --text: #F4F1E8;
    --text-soft: #C8BFA8;
    --muted: #786E58;
    --primary: #E84A56;
    --primary-deep: #B81C2C;
    --primary-soft: rgba(232,74,86,0.12);
    --secondary: #F4F1E8;
    --accent: #5BB37C;
    --accent-soft: rgba(91,179,124,0.12);
    --gold: #D4A862;
    --gold-soft: rgba(212,168,98,0.10);
    --warn: #E0A04A;
    --warn-soft: rgba(224,160,74,0.10);
    --danger: #E84A56;
    --danger-soft: rgba(232,74,86,0.10);
    --input: #1F1B17;
    --calc: #1A1612;
    --row-stripe: #1A1612;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
    --shadow: 0 1px 3px rgba(0,0,0,0.5);
    --shadow-md: 0 4px 12px -2px rgba(0,0,0,0.5), 0 2px 4px -2px rgba(0,0,0,0.3);
    --shadow-lg: 0 12px 32px -8px rgba(0,0,0,0.6), 0 4px 8px -2px rgba(0,0,0,0.3);
    --shadow-xl: 0 24px 60px -12px rgba(0,0,0,0.7), 0 8px 16px -4px rgba(0,0,0,0.4);
    --shadow-glow: 0 0 0 1px rgba(232,74,86,0.20), 0 8px 32px -6px rgba(232,74,86,0.35);
  }
  [data-theme="dark"] body {
    background: var(--bg);
    color: var(--text);
  }
  [data-theme="dark"] .sidebar {
    background: #050403;
    border-right-color: #1A1612;
  }
  [data-theme="dark"] .app-header {
    background: rgba(10,9,7,0.85);
    border-bottom-color: var(--border);
  }
  [data-theme="dark"] .hero-orb,
  [data-theme="dark"] .grid-bg {
    opacity: 0.5;
  }

  /* Modo landing/auth: desactivar grid de app-shell */
  body.landing-mode {
    display: block !important;
    grid-template-columns: none !important;
    grid-template-rows: none !important;
    grid-template-areas: none !important;
  }
  body.landing-mode #app-shell {
    display: none !important;
  }

  /* App shell: grid interno (header arriba, sidebar izq + main der) */
  #app-shell {
    display: grid;
    grid-template-columns: 244px 1fr;
    grid-template-rows: auto 1fr;
    grid-template-areas:
      "header header"
      "sidebar main";
    min-height: 100vh;
  }
  #app-shell > header { grid-area: header; margin: 0; }
  #app-shell > aside.sidebar { grid-area: sidebar; }
  #app-shell > main { grid-area: main; min-width: 0; }

  /* Ocultar el header viejo (ahora tenemos la app-header moderna) */
  #app-shell > header { display: none; }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  body {
    font-family: Inter, system-ui, sans-serif;
    font-feature-settings: "cv11", "ss01", "ss03";
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  }
  h1, h2, h3, h4 {
    font-family: Inter, system-ui, sans-serif;
    font-weight: 700;
    letter-spacing: -0.018em;
    color: var(--text);
    font-optical-sizing: auto;
  }
  /* Tabular nums para que las cifras alineen perfecto en tablas y KPIs */
  .kpi .value, td.num, .ft-faltas, .media-badge, .pos-tag {
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
  }

  /* HEADER */
  header {
    background: var(--secondary);
    color: #F4EBD8;
    padding: 16px 28px 14px;
    border-bottom: 4px solid var(--primary);
    position: sticky;
    top: 0;
    z-index: 100;
  }
  header h1 {
    font-family: Inter, system-ui, sans-serif;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.025em;
    font-optical-sizing: auto;
    color: #F4EBD8;
    margin: 0 0 4px 0;
    line-height: 1.2;
  }
  header h1::before {
    content: "";
    display: inline-block;
    width: 5px;
    height: 24px;
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-deep) 100%);
    border-radius: 2px;
    box-shadow: 0 0 12px rgba(184, 28, 44, 0.5);
    margin-right: 14px;
    vertical-align: -4px;
  }
  header .sub {
    font-size: 11.5px;
    color: #9C8B73;
    margin-top: 4px;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }
  .header-actions {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 8px;
  }
  .header-actions button {
    background: rgba(255,255,255,0.12);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.25);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.15s;
  }
  .header-actions button:hover { background: rgba(255,255,255,0.22); }
  .header-actions button.primary {
    background: var(--accent);
    border-color: var(--accent-dark);
  }
  .header-actions button.primary:hover { background: var(--accent-dark); }

  /* Selector de equipo en el header */
  .header-equipo {
    position: absolute;
    right: 380px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .header-equipo-label {
    font-size: 10.5px;
    color: #9C8B73;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
  }
  .header-equipo-select {
    background: rgba(255,255,255,0.1);
    color: #F4EBD8;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 4px;
    padding: 5px 10px;
    font-family: Inter, system-ui, sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    min-width: 180px;
  }
  .header-equipo-select:hover, .header-equipo-select:focus {
    background: rgba(255,255,255,0.16);
    border-color: rgba(255,255,255,0.35);
  }
  .header-equipo-select option {
    background: #14110D;
    color: #F4EBD8;
  }
  .header-equipo-gestionar {
    background: rgba(255,255,255,0.08);
    color: #F4EBD8;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 4px;
    padding: 5px 10px;
    font-size: 12px;
    font-family: Inter, system-ui, sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
  }
  .header-equipo-gestionar:hover {
    background: rgba(255,255,255,0.18);
  }

  /* TABS - look periodístico, sin transform */
  /* SIDEBAR - estilo Sorare (sidebar oscuro con pestañas verticales) */
  /* Body sin grid: el layout lo gestiona #app-shell con su grid interno */
  body {
    display: block;
    min-height: 100vh;
  }
  header {
    grid-area: header;
  }
  aside.sidebar {
    grid-area: sidebar;
    background: linear-gradient(180deg, #1F1812 0%, #0E0A06 100%);
    color: #e8d9c8;
    border-right: 1px solid #2a1f15;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: visible;
    box-shadow: 2px 0 16px rgba(20, 17, 13, 0.18);
  }
  /* Wrapper interno con scroll, para no romper los popovers */
  .sidebar-scroll {
    flex: 1;
    overflow-y: auto;
    overflow-x: visible;
    min-height: 0;
  }
  .sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 18px 18px;
    border-bottom: 1px solid #2a1818;
  }
  .brand-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-deep) 100%);
    color: #FFF8E8;
    font-family: Inter, system-ui, sans-serif;
    font-weight: 800;
    font-size: 14px;
    border-radius: 9px;
    letter-spacing: 0.02em;
    box-shadow: 0 2px 10px rgba(184, 28, 44, 0.45);
  }
  .brand-text { display: flex; flex-direction: column; min-width: 0; }
  .brand-name {
    font-family: Inter, system-ui, sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #F4EBD8;
    letter-spacing: -0.01em;
    line-height: 1.2;
  }
  .brand-sub {
    font-size: 10px;
    color: #8a7868;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-top: 3px;
  }
  nav.sidebar-nav {
    display: flex;
    flex-direction: column;
    padding: 8px 0;
    flex: 1;
  }
  nav.sidebar-nav button {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    background: none;
    border: none;
    padding: 11px 18px;
    font-size: 13.5px;
    color: #b8a898;
    cursor: pointer;
    font-family: inherit;
    font-weight: 500;
    letter-spacing: 0.005em;
    text-align: left;
    border-left: 3px solid transparent;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
  }
  nav.sidebar-nav button:hover {
    background: rgba(255, 255, 255, 0.04);
    color: #f0e0cc;
  }
  nav.sidebar-nav button.active {
    background: linear-gradient(90deg, rgba(184, 28, 44, 0.22) 0%, rgba(184, 28, 44, 0.04) 100%);
    color: #FFF5E0;
    border-left-color: var(--primary);
    font-weight: 700;
  }
  nav.sidebar-nav button.active .tab-icon {
    color: var(--primary);
  }
  /* === NAV GROUP (desplegables estilo Sorare) === */
  .nav-group {
    position: relative;
  }
  .nav-group-toggle {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 9px 14px 9px 12px;
    background: transparent;
    border: 0;
    border-left: 3px solid transparent;
    color: #c8b8a0;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    width: 100%;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
  }
  .nav-group-toggle:hover {
    background: rgba(255, 255, 255, 0.04);
    color: #f0e2cb;
  }
  .nav-group-toggle .nav-chevron {
    width: 14px;
    height: 14px;
    margin-left: auto;
    color: #8a7868;
    transition: transform 0.2s ease;
    flex-shrink: 0;
  }
  .nav-group.open .nav-group-toggle .nav-chevron {
    transform: rotate(180deg);
  }
  .nav-group.open .nav-group-toggle {
    color: #FFF5E0;
  }
  .nav-group.open > .nav-group-toggle {
    color: #FFF5E0;
  }
  .nav-group.active > .nav-group-toggle {
    background: linear-gradient(90deg, rgba(184, 28, 44, 0.22) 0%, rgba(184, 28, 44, 0.04) 100%);
    border-left-color: var(--primary);
    color: #FFF5E0;
    font-weight: 700;
  }
  .nav-group.active > .nav-group-toggle .tab-icon {
    color: var(--primary);
  }
  /* Submenu flotante hacia la derecha (estilo Sorare) */
  .nav-group-items {
    display: none;
    flex-direction: column;
    gap: 1px;
    padding: 2px 0 6px 0;
  }
  .nav-group.open .nav-group-items {
    display: flex;
  }
  .nav-group-items button {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px 8px 36px;
    background: transparent;
    border: 0;
    border-left: 2px solid transparent;
    border-radius: 0;
    color: #b8a890;
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    width: 100%;
    transition: background 0.12s, color 0.12s, border-color 0.12s;
  }
  .nav-group-items button .dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #5a4d3e;
    flex-shrink: 0;
    transition: background 0.15s, transform 0.15s;
  }
  .nav-group-items button:hover {
    background: rgba(255, 255, 255, 0.03);
    color: #FFF5E0;
  }
  .nav-group-items button:hover .dot {
    background: var(--primary);
    transform: scale(1.2);
  }
  .nav-group-items button.active {
    background: linear-gradient(90deg, rgba(184, 28, 44, 0.22) 0%, rgba(184, 28, 44, 0.04) 100%);
    border-left-color: var(--primary);
    color: #FFF5E0;
    font-weight: 600;
  }
  .nav-group-items button.active .dot {
    background: var(--primary);
  }
  .tab-icon {
    width: 19px;
    height: 19px;
    flex-shrink: 0;
    color: #8a7868;
    transition: color 0.15s;
  }
  nav.sidebar-nav button:hover .tab-icon {
    color: #c8b8a0;
  }
  .tab-label {
    flex: 1;
  }
  .tab-emoji {
    font-size: 12px;
    opacity: 0.6;
  }
  .sidebar-footer {
    padding: 16px 18px;
    border-top: 1px solid #2a1818;
    font-size: 10.5px;
  }
  .footer-line {
    color: #b8a898;
    letter-spacing: 0.04em;
  }
  .footer-line.muted {
    color: #6a5848;
    margin-top: 3px;
  }

  /* MAIN */
  main {
    grid-area: main;
    padding: 28px 32px 80px;
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
  }
  .tab-panel { display: none; }
  .tab-panel.active { display: block; }

  .panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
  }
  .panel-header h2 {
    font-size: 28px;
    color: var(--text);
    font-weight: 700;
    font-family: Inter, system-ui, sans-serif;
    letter-spacing: -0.022em;
    line-height: 1.15;
  }
  .panel-header .desc {
    color: var(--text-soft);
    font-size: 13.5px;
    margin-top: 8px;
    max-width: 720px;
    line-height: 1.55;
    font-weight: 400;
  }

  /* BUTTONS - sin sombras, sin translateY */
  .btn {
    background: var(--card);
    border: 1px solid var(--border-strong);
    color: var(--text);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    cursor: pointer;
    font-weight: 500;
    font-family: inherit;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
    letter-spacing: 0.005em;
  }
  .btn:hover {
    border-color: var(--text);
    color: var(--text);
  }
  .btn-primary {
    background: var(--primary);
    color: #fdfaf3;
    border-color: var(--primary);
  }
  .btn-primary:hover {
    background: #6b0f1f;
    border-color: #6b0f1f;
    color: #fdfaf3;
  }
  .btn-accent {
    background: var(--accent);
    color: #fdfaf3;
    border-color: var(--accent);
  }
  .btn-accent:hover { background: #3d5430; border-color: #3d5430; color: #fdfaf3; }
  .btn-danger {
    background: var(--card);
    color: var(--danger);
    border-color: var(--danger-soft);
  }
  .btn-danger:hover { background: var(--danger); color: #fff; border-color: var(--danger); }
  .btn-sm { padding: 4px 10px; font-size: 12px; }
  .btn-icon {
    padding: 4px 8px;
    font-size: 16px;
    line-height: 1;
  }

  /* CARDS - editorial, sin sombras */
  .card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 20px;
  }
  .card-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-soft);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    font-family: Inter, system-ui, sans-serif;
  }

  /* ====== QUICK WINS VISUALES (Sorare-style) ====== */

  /* Micro-interacciones en cards y botones (sin translateY) */
  .card {
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  }
  .card.is-hoverable:hover {
    border-color: rgba(184,28,44,0.35);
    box-shadow: 0 4px 18px -8px rgba(184,28,44,0.15), 0 2px 4px -2px rgba(20,17,13,0.06);
  }
  .btn {
    transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
  }
  .btn:hover {
    box-shadow: 0 2px 8px -2px rgba(20,17,13,0.18);
  }
  .btn-primary:hover {
    box-shadow: 0 3px 12px -3px rgba(184,28,44,0.45);
  }

  /* Avatares por jugador con gradiente según posición */
  .jug-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    font-family: Inter, system-ui, sans-serif;
    font-weight: 700;
    letter-spacing: 0.02em;
    flex-shrink: 0;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18), 0 1px 2px rgba(20,17,13,0.18);
    user-select: none;
    position: relative;
    overflow: hidden;
  }
  .jug-avatar::after {
    /* brillo superior sutil tipo Sorare */
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 45%;
    background: linear-gradient(180deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0) 100%);
    pointer-events: none;
  }
  .jug-avatar .in {
    position: relative;
    z-index: 1;
    line-height: 1;
  }
  /* 5 posiciones × gradiente distinto */
  .jug-avatar.pos-base       { background: linear-gradient(135deg, #4F6BED 0%, #2A3F9E 100%); }
  .jug-avatar.pos-escolta    { background: linear-gradient(135deg, #2BAE7E 0%, #156B4D 100%); }
  .jug-avatar.pos-alero      { background: linear-gradient(135deg, #E89B3C 0%, #B8711C 100%); }
  .jug-avatar.pos-alapivot   { background: linear-gradient(135deg, #D65A3F 0%, #9A2E1C 100%); }
  .jug-avatar.pos-pivot      { background: linear-gradient(135deg, #B81C2C 0%, #6B0E18 100%); }
  .jug-avatar.pos-sin        { background: linear-gradient(135deg, #8A7A5C 0%, #4F4434 100%); }
  /* Sizes */
  .jug-avatar.size-xs  { width: 22px; height: 22px; font-size: 9.5px; }
  .jug-avatar.size-sm  { width: 28px; height: 28px; font-size: 10.5px; }
  .jug-avatar.size-md  { width: 38px; height: 38px; font-size: 13px; }
  .jug-avatar.size-lg  { width: 56px; height: 56px; font-size: 19px; }
  .jug-avatar.size-xl  { width: 88px; height: 88px; font-size: 30px; }

  /* Chip de jugador (reutilizable) */
  .jug-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px 4px 4px;
    background: var(--card-alt);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text);
    line-height: 1;
  }
  .jug-chip .jug-nombre { white-space: nowrap; }

  /* Player card hero (para Perfiles) */
  .player-hero {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 24px;
    align-items: center;
    background: linear-gradient(135deg, var(--card) 0%, var(--card-alt) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 32px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
  }
  .player-hero::before {
    content: "";
    position: absolute;
    right: -60px;
    top: -60px;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(184,28,44,0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
  }
  .player-hero .ph-avatar { z-index: 1; }
  .player-hero .ph-info { z-index: 1; }
  .player-hero .ph-info .ph-nombre {
    font-family: Inter, system-ui, sans-serif;
    font-size: 28px;
    font-weight: 600;
    line-height: 1.1;
    color: var(--text);
    margin: 0 0 4px 0;
  }
  .player-hero .ph-info .ph-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12.5px;
    color: var(--text-soft);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
  }
  .player-hero .ph-info .ph-meta .dot {
    width: 4px; height: 4px;
    background: var(--text-soft);
    border-radius: 50%;
    opacity: 0.4;
  }
  .player-hero .ph-dorsal {
    font-family: Inter, system-ui, sans-serif;
    font-size: 80px;
    line-height: 1;
    font-weight: 700;
    color: var(--text);
    opacity: 0.92;
    letter-spacing: -0.04em;
    z-index: 1;
    font-variant-numeric: tabular-nums;
  }
  .player-hero .ph-stats {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin-top: 4px;
    border-top: 1px solid var(--border);
    padding-top: 18px;
  }
  .player-hero .ph-stat {
    text-align: left;
    padding: 0 18px;
    border-right: 1px solid var(--border);
  }
  .player-hero .ph-stat:first-child { padding-left: 0; }
  .player-hero .ph-stat:last-child  { border-right: 0; padding-right: 0; }
  .player-hero .ph-stat .lbl {
    font-size: 10.5px;
    color: var(--text-soft);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    margin-bottom: 6px;
  }
  .player-hero .ph-stat .val {
    font-family: Inter, system-ui, sans-serif;
    font-size: 22px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
  }
  .player-hero .ph-stat .sub {
    font-size: 11.5px;
    color: var(--muted);
    margin-top: 2px;
  }

  /* Posición pill (para hero / detalles) */
  .pos-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    line-height: 1;
  }
  .pos-pill.pos-base       { background: rgba(79,107,237,0.14);  color: #2A3F9E; }
  .pos-pill.pos-escolta    { background: rgba(43,174,126,0.14);  color: #156B4D; }
  .pos-pill.pos-alero      { background: rgba(232,155,60,0.16);  color: #8A5410; }
  .pos-pill.pos-alapivot   { background: rgba(214,90,63,0.16);   color: #9A2E1C; }
  .pos-pill.pos-pivot      { background: rgba(184,28,44,0.16);   color: #6B0E18; }
  .pos-pill.pos-sin        { background: rgba(120,110,88,0.14);  color: #5A4A30; }

  /* Empty states */
  .empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 44px 20px 36px;
    text-align: center;
    background: var(--card-alt);
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    color: var(--text-soft);
  }
  .empty-state .es-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 14px;
    color: var(--gold);
    opacity: 0.85;
  }
  .empty-state .es-title {
    font-family: Inter, system-ui, sans-serif;
    font-size: 17px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
  }
  .empty-state .es-sub {
    font-size: 12.5px;
    color: var(--text-soft);
    max-width: 320px;
    line-height: 1.5;
  }
  .empty-state .es-cta {
    margin-top: 14px;
  }

  /* Mini-stat cards (los KPIs pero un pelín más premium) */
  .kpi-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-left: 3px solid var(--muted);
    border-radius: var(--radius);
    padding: 18px 20px;
    position: relative;
    overflow: hidden;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
  }
  .kpi-card::after {
    content: "";
    position: absolute;
    right: -20px;
    top: -20px;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(184,141,72,0.04) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
  }
  .kpi-card:hover {
    border-color: rgba(184,28,44,0.25);
    box-shadow: 0 2px 12px -4px rgba(20,17,13,0.08);
  }
  .kpi-card.kpi-primary  { border-left-color: var(--primary); }
  .kpi-card.kpi-accent   { border-left-color: var(--accent); }
  .kpi-card.kpi-gold     { border-left-color: var(--gold); }
  .kpi-card.kpi-warn     { border-left-color: var(--warn); }
  .kpi-card.kpi-danger   { border-left-color: var(--danger); }

  /* ============================================
     REDISEÑO MODERNO: TOP BAR + APP SHELL
     ============================================ */
  .app-header {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 24px;
    height: 64px;
    background: rgba(244, 241, 232, 0.85);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--border);
    transition: background 0.2s ease;
  }
  [data-theme="dark"] .app-header { background: rgba(10, 9, 7, 0.85); }
  .app-header .ah-brand {
    display: flex; align-items: center; gap: 10px;
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.01em;
  }
  .app-header .ah-brand .ah-mark {
    width: 32px; height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary), var(--primary-deep));
    color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-family: var(--font-body);
    font-weight: 800;
    font-size: 14px;
    box-shadow: 0 2px 8px -2px rgba(184,28,44,0.5), inset 0 0 0 1px rgba(255,255,255,0.15);
  }
  .app-header .ah-search {
    flex: 1; max-width: 380px;
    position: relative;
  }
  .app-header .ah-search input {
    width: 100%;
    padding: 9px 12px 9px 36px;
    border: 1px solid var(--border);
    background: var(--card-alt);
    color: var(--text);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 13px;
    outline: none;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  }
  .app-header .ah-search input:focus {
    border-color: var(--primary);
    background: var(--card);
    box-shadow: 0 0 0 3px rgba(184,28,44,0.10);
  }
  .app-header .ah-search .ah-search-icon {
    position: absolute; left: 12px; top: 50%;
    transform: translateY(-50%);
    width: 16px; height: 16px;
    color: var(--muted);
    pointer-events: none;
  }
  .app-header .ah-search .ah-kbd {
    position: absolute; right: 8px; top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-mono);
    font-size: 10.5px;
    color: var(--muted);
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 1px 5px;
  }
  .app-header .ah-right {
    margin-left: auto;
    display: flex; align-items: center; gap: 8px;
  }
  .ah-icon-btn {
    width: 36px; height: 36px;
    display: inline-flex; align-items: center; justify-content: center;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--text-soft);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  }
  .ah-icon-btn:hover {
    background: var(--card-alt);
    color: var(--text);
  }
  .ah-icon-btn svg { width: 18px; height: 18px; }
  .ah-user {
    display: flex; align-items: center; gap: 8px;
    padding: 4px 10px 4px 4px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
  }
  .ah-user:hover { background: var(--card-alt); border-color: var(--border-strong); }
  .ah-user .ah-user-name {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text);
    padding-right: 4px;
  }
  .ah-user .ah-user-avatar {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-deep));
    color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 11px;
  }

  /* ============================================
     LANDING PAGE (pública, antes de login)
     ============================================ */
  .landing {
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    font-family: var(--font-body);
    position: relative;
  }
  /* Fondo con gradientes sutiles */
  .landing::before {
    content: "";
    position: absolute;
    top: -200px; right: -200px;
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(184,28,44,0.10) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
  }
  .landing::after {
    content: "";
    position: absolute;
    top: 30%; left: -200px;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(184,141,72,0.07) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
  }
  [data-theme="dark"] .landing::before { background: radial-gradient(circle, rgba(232,74,86,0.12) 0%, transparent 60%); }
  [data-theme="dark"] .landing::after { background: radial-gradient(circle, rgba(212,168,98,0.08) 0%, transparent 60%); }
  .landing > * { position: relative; z-index: 1; }

  /* Nav landing */
  .landing-nav {
    display: flex; align-items: center;
    padding: 18px 48px;
    max-width: 1280px; margin: 0 auto;
  }
  .landing-nav .ln-brand {
    display: flex; align-items: center; gap: 10px;
    font-family: var(--font-display);
    font-size: 18px; font-weight: 600;
    color: var(--text);
    text-decoration: none;
  }
  .landing-nav .ln-brand .ln-mark {
    width: 32px; height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary), var(--primary-deep));
    color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 14px;
    box-shadow: 0 2px 8px -2px rgba(184,28,44,0.5), inset 0 0 0 1px rgba(255,255,255,0.15);
  }
  .landing-nav .ln-links {
    margin-left: 48px;
    display: flex; gap: 28px;
  }
  .landing-nav .ln-links a {
    color: var(--text-soft);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    transition: color 0.15s ease;
  }
  .landing-nav .ln-links a:hover { color: var(--text); }
  .landing-nav .ln-cta {
    margin-left: auto;
    display: flex; align-items: center; gap: 10px;
  }
  .btn-landing {
    padding: 9px 18px;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 13.5px;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
    text-decoration: none;
    display: inline-flex; align-items: center; gap: 6px;
    line-height: 1.2;
  }
  .btn-landing.btn-ghost {
    background: transparent;
    color: var(--text-soft);
  }
  .btn-landing.btn-ghost:hover { color: var(--text); background: var(--card-alt); }
  .btn-landing.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 2px 8px -2px rgba(184,28,44,0.4);
  }
  .btn-landing.btn-primary:hover { background: var(--primary-deep); box-shadow: 0 4px 14px -2px rgba(184,28,44,0.5); }
  .btn-landing.btn-outline {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
  }
  .btn-landing.btn-outline:hover { background: var(--card-alt); border-color: var(--border-strong); }
  .btn-landing.btn-lg { padding: 12px 24px; font-size: 14.5px; }
  .btn-landing.btn-xl { padding: 14px 28px; font-size: 15.5px; }

  /* Hero */
  .landing-hero {
    max-width: 1280px;
    margin: 0 auto;
    padding: 64px 48px 96px;
    text-align: center;
  }
  .landing-hero .lh-badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 12px;
    background: var(--primary-soft);
    color: var(--primary);
    border-radius: 999px;
    font-size: 12px; font-weight: 600;
    margin-bottom: 24px;
  }
  .landing-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(40px, 6vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.025em;
    font-weight: 600;
    color: var(--text);
    max-width: 920px;
    margin: 0 auto 20px;
  }
  .landing-hero h1 .hl-primary { color: var(--primary); font-style: italic; font-weight: 500; }
  .landing-hero .lh-sub {
    font-size: 18px;
    line-height: 1.55;
    color: var(--text-soft);
    max-width: 640px;
    margin: 0 auto 36px;
  }
  .landing-hero .lh-cta {
    display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  }
  .landing-hero .lh-trust {
    margin-top: 48px;
    display: flex; gap: 32px; justify-content: center; flex-wrap: wrap;
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
  }
  .landing-hero .lh-trust span { display: inline-flex; align-items: center; gap: 6px; }

  /* Hero visual (mockup) */
  .landing-hero-visual {
    max-width: 1100px;
    margin: 64px auto 0;
    position: relative;
  }
  .lh-mock {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    position: relative;
  }
  .lh-mock-bar {
    display: flex; align-items: center; gap: 6px;
    padding: 12px 16px;
    background: var(--card-alt);
    border-bottom: 1px solid var(--border);
  }
  .lh-mock-bar .dot { width: 11px; height: 11px; border-radius: 50%; background: #FF5F57; }
  .lh-mock-bar .dot.y { background: #FEBC2E; }
  .lh-mock-bar .dot.g { background: #28C840; }
  .lh-mock-bar .url {
    margin-left: 16px; flex: 1;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--muted);
  }
  .lh-mock-content {
    padding: 32px;
    min-height: 380px;
    background: linear-gradient(180deg, var(--card) 0%, var(--card-alt) 100%);
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 20px;
  }
  .lh-mock-side {
    display: flex; flex-direction: column; gap: 4px;
  }
  .lh-mock-side .item {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 12px;
    border-radius: 7px;
    font-size: 12.5px;
    color: var(--text-soft);
    font-weight: 500;
  }
  .lh-mock-side .item.active {
    background: var(--primary-soft);
    color: var(--primary);
  }
  .lh-mock-side .item svg { width: 16px; height: 16px; }
  .lh-mock-main { display: flex; flex-direction: column; gap: 14px; }
  .lh-mock-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
  .lh-mock-kpi {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 14px;
  }
  .lh-mock-kpi .lbl { font-size: 10px; color: var(--text-soft); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; margin-bottom: 4px; }
  .lh-mock-kpi .val { font-family: var(--font-display); font-size: 22px; font-weight: 600; color: var(--text); line-height: 1; }
  .lh-mock-chart {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
    flex: 1;
    min-height: 200px;
    position: relative;
    background-image:
      linear-gradient(180deg, transparent 0%, var(--primary-soft) 100%),
      linear-gradient(0deg, transparent 64%, var(--border) 65%, var(--border) 66%, transparent 67%),
      linear-gradient(0deg, transparent 84%, var(--border) 85%, var(--border) 86%, transparent 87%);
  }
  /* Mockup denso (v2) */
  .lh-mock-bar .lh-mock-user {
    font-size: 11.5px;
    color: var(--text-soft);
    font-weight: 600;
    padding: 4px 10px;
    background: var(--bg-tint);
    border-radius: 999px;
    margin-right: 8px;
  }
  .lh-mock-greet { margin-bottom: 4px; }
  .lh-mock-greet-h {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.01em;
    line-height: 1.1;
  }
  .lh-mock-greet-p {
    font-size: 11.5px;
    color: var(--text-soft);
    margin-top: 3px;
  }
  .lh-mock-kpis { margin-top: 12px; }
  .lh-mock-kpi .lh-mock-delta {
    font-size: 10.5px;
    margin-top: 4px;
    font-weight: 600;
    color: var(--muted);
  }
  .lh-mock-kpi .lh-mock-delta.good { color: var(--accent); }
  .lh-mock-kpi .lh-mock-delta.bad { color: var(--primary); }
  .lh-mock-row {
    display: grid;
    grid-template-columns: 1.7fr 1fr;
    gap: 12px;
    margin-top: 12px;
    flex: 1;
  }
  .lh-mock-chart-h {
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-soft);
    margin-bottom: 8px;
  }
  .lh-mock-svg-chart { width: 100%; height: 130px; display: block; }
  .lh-mock-side2 {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .lh-mock-side2-h {
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-soft);
    margin-bottom: 2px;
  }
  .lh-mock-player {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .lh-mock-av {
    width: 28px; height: 28px;
    border-radius: 8px;
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.15);
  }
  .lh-mock-av.pos-base { background: linear-gradient(135deg, #4F6BED, #2A3F9E); }
  .lh-mock-av.pos-escolta { background: linear-gradient(135deg, #2BAE7E, #156B4D); }
  .lh-mock-av.pos-alero { background: linear-gradient(135deg, #E89B3C, #B8711C); }
  .lh-mock-av.pos-pivot { background: linear-gradient(135deg, #B81C2C, #6B0E18); }
  .lh-mock-pinfo { flex: 1; min-width: 0; }
  .lh-mock-pname {
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .lh-mock-pmeta {
    font-size: 10px;
    color: var(--muted);
    margin-top: 2px;
    font-family: var(--font-mono);
  }
  .lh-mock-pbar {
    width: 50px; height: 5px;
    background: var(--bg-tint);
    border-radius: 3px;
    overflow: hidden;
  }
  .lh-mock-pbar-f {
    height: 100%;
    background: var(--primary);
    border-radius: 3px;
  }

  /* Sections (shared) */
  .landing-section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 80px 48px;
  }
  .landing-section .ls-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 56px;
  }
  .landing-section .ls-eyebrow {
    display: inline-block;
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 14px;
  }
  .landing-section h2 {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 16px;
  }
  .landing-section .ls-sub {
    font-size: 16.5px;
    line-height: 1.6;
    color: var(--text-soft);
  }

  /* Features grid */
  .features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  .feature-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  }
  .feature-card:hover {
    border-color: var(--border-strong);
    box-shadow: var(--shadow-md);
  }
  .feature-card .fc-icon {
    width: 44px; height: 44px;
    border-radius: 10px;
    display: inline-flex; align-items: center; justify-content: center;
    margin-bottom: 18px;
    background: var(--primary-soft);
    color: var(--primary);
  }
  .feature-card .fc-icon svg { width: 22px; height: 22px; }
  .feature-card .fc-icon.gold { background: var(--gold-soft); color: var(--gold); }
  .feature-card .fc-icon.accent { background: var(--accent-soft); color: var(--accent); }
  .feature-card h3 {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
  }
  .feature-card p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-soft);
  }

  /* Pricing */
  .pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
  .price-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 32px 28px;
    position: relative;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    display: flex; flex-direction: column;
  }
  .price-card:hover { box-shadow: var(--shadow-md); }
  .price-card.featured {
    border-color: var(--primary);
    border-width: 2px;
    box-shadow: var(--shadow-glow);
    transform: scale(1.02);
  }
  .price-card.featured::before {
    content: "MÁS POPULAR";
    position: absolute;
    top: -12px; left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #fff;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 4px 10px;
    border-radius: 999px;
  }
  .price-card .pc-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
  }
  .price-card .pc-desc {
    font-size: 13px;
    color: var(--text-soft);
    margin-bottom: 22px;
    min-height: 36px;
  }
  .price-card .pc-price {
    display: flex; align-items: baseline; gap: 6px;
    margin-bottom: 6px;
  }
  .price-card .pc-price .currency { font-size: 18px; color: var(--text-soft); font-weight: 600; }
  .price-card .pc-price .amount {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 600;
    color: var(--text);
    line-height: 1;
    letter-spacing: -0.02em;
  }
  .price-card .pc-price .period { font-size: 14px; color: var(--text-soft); }
  .price-card .pc-billed { font-size: 12px; color: var(--muted); margin-bottom: 22px; }
  .price-card .pc-features {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
    flex: 1;
  }
  .price-card .pc-features li {
    display: flex; align-items: flex-start; gap: 10px;
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--text);
    padding: 7px 0;
  }
  .price-card .pc-features li svg { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; margin-top: 1px; }
  .price-card .pc-cta { width: 100%; justify-content: center; }
  .price-card .pc-cta.btn-outline:hover { background: var(--card-alt); }

  /* FAQ */
  .faq-list { max-width: 720px; margin: 0 auto; }
  .faq-item {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-bottom: 10px;
    overflow: hidden;
  }
  .faq-item summary {
    padding: 18px 22px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    color: var(--text);
    list-style: none;
    display: flex; align-items: center; justify-content: space-between;
    transition: background 0.15s ease;
  }
  .faq-item summary::-webkit-details-marker { display: none; }
  .faq-item summary:hover { background: var(--card-alt); }
  .faq-item summary::after {
    content: "+";
    font-size: 22px;
    color: var(--text-soft);
    font-weight: 300;
    transition: transform 0.2s ease;
  }
  .faq-item[open] summary::after { content: "−"; }
  .faq-item .fi-body {
    padding: 0 22px 20px;
    color: var(--text-soft);
    font-size: 14px;
    line-height: 1.65;
  }

  /* CTA final */
  .cta-final {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-deep) 100%);
    color: #fff;
    border-radius: 18px;
    padding: 56px 48px;
    text-align: center;
    position: relative;
    overflow: hidden;
  }
  .cta-final::before {
    content: "";
    position: absolute;
    top: -100px; right: -100px;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.10) 0%, transparent 60%);
    border-radius: 50%;
  }
  .cta-final h2 { color: #fff; }
  .cta-final p { color: rgba(255,255,255,0.85); font-size: 17px; }
  .cta-final .btn-landing { background: #fff; color: var(--primary); }
  .cta-final .btn-landing:hover { background: #f8f5ee; }
  .cta-final .btn-landing.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.4); }
  .cta-final .btn-landing.btn-outline:hover { background: rgba(255,255,255,0.10); border-color: rgba(255,255,255,0.6); }

  /* Footer landing */
  .landing-footer {
    border-top: 1px solid var(--border);
    padding: 40px 48px 28px;
    max-width: 1280px;
    margin: 0 auto;
    color: var(--text-soft);
    font-size: 13px;
  }
  .landing-footer .lf-top {
    display: flex; align-items: flex-start; gap: 48px; flex-wrap: wrap;
    margin-bottom: 32px;
  }
  .landing-footer .lf-col h4 { font-family: var(--font-body); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text); margin-bottom: 10px; }
  .landing-footer .lf-col a { display: block; color: var(--text-soft); text-decoration: none; padding: 3px 0; transition: color 0.15s ease; }
  .landing-footer .lf-col a:hover { color: var(--text); }
  .landing-footer .lf-bottom {
    border-top: 1px solid var(--border);
    padding-top: 18px;
    display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  }

  /* ============================================
     LOGIN / SIGNUP
     ============================================ */
  .auth-wrap {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--bg);
  }
  .auth-side {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-deep) 100%);
    color: #fff;
    padding: 48px;
    display: flex; flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
  }
  .auth-side::before {
    content: "";
    position: absolute;
    top: -150px; right: -150px;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.10) 0%, transparent 60%);
    border-radius: 50%;
  }
  .auth-side::after {
    content: "";
    position: absolute;
    bottom: -200px; left: -100px;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(0,0,0,0.10) 0%, transparent 60%);
    border-radius: 50%;
  }
  .auth-side > * { position: relative; z-index: 1; }
  .auth-side .as-brand {
    display: flex; align-items: center; gap: 10px;
    font-family: var(--font-display);
    font-size: 18px; font-weight: 600;
    color: #fff;
  }
  .auth-side .as-brand .as-mark {
    width: 36px; height: 36px;
    border-radius: 9px;
    background: rgba(255,255,255,0.18);
    color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 15px;
    backdrop-filter: blur(10px);
  }
  .auth-side .as-quote {
    font-family: var(--font-display);
    font-size: 28px;
    line-height: 1.25;
    color: #fff;
    font-weight: 500;
    max-width: 440px;
  }
  .auth-side .as-meta {
    color: rgba(255,255,255,0.85);
    font-size: 13px;
  }
  .auth-side .as-meta strong { color: #fff; font-weight: 600; }
  .auth-form-side {
    padding: 32px 48px;
    display: flex; flex-direction: column; justify-content: center;
    background: var(--bg);
    position: relative;
  }
  .auth-form-side .afs-toggle {
    position: absolute;
    top: 24px; right: 32px;
    display: flex; align-items: center; gap: 8px;
  }
  .auth-form-side .afs-card {
    max-width: 400px;
    width: 100%;
    margin: 0 auto;
  }
  .auth-form-side h1 {
    font-family: var(--font-display);
    font-size: 30px;
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
  }
  .auth-form-side .afs-sub {
    color: var(--text-soft);
    font-size: 14.5px;
    margin-bottom: 28px;
  }
  .auth-form-side .afs-form { display: flex; flex-direction: column; gap: 14px; }
  .auth-form-side .afs-row {
    display: flex; flex-direction: column; gap: 6px;
  }
  .auth-form-side label {
    font-size: 12px; font-weight: 600;
    color: var(--text-soft);
    text-transform: uppercase;
    letter-spacing: 0.06em;
  }
  .auth-form-side .afs-input {
    width: 100%;
    padding: 11px 14px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text);
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
  }
  .auth-form-side .afs-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(184,28,44,0.10);
  }
  .auth-form-side .afs-row.afs-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .auth-form-side .afs-submit {
    width: 100%;
    padding: 12px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 2px 8px -2px rgba(184,28,44,0.4);
  }
  .auth-form-side .afs-submit:hover { background: var(--primary-deep); box-shadow: 0 4px 14px -2px rgba(184,28,44,0.5); }
  .auth-form-side .afs-divider {
    display: flex; align-items: center; gap: 12px;
    color: var(--muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 4px 0;
  }
  .auth-form-side .afs-divider::before, .auth-form-side .afs-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border);
  }
  .auth-form-side .afs-switch {
    text-align: center;
    margin-top: 20px;
    font-size: 13.5px;
    color: var(--text-soft);
  }
  .auth-form-side .afs-switch a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
  }
  .auth-form-side .afs-switch a:hover { text-decoration: underline; }
  .auth-form-side .afs-back {
    color: var(--text-soft);
    text-decoration: none;
    font-size: 12.5px;
    display: inline-flex; align-items: center; gap: 4px;
    margin-bottom: 28px;
  }

  /* Theme toggle switch */
  .theme-switch {
    position: relative;
    width: 44px; height: 24px;
    background: var(--border);
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s ease;
  }
  .theme-switch::after {
    content: "";
    position: absolute;
    top: 2px; left: 2px;
    width: 20px; height: 20px;
    background: var(--card);
    border-radius: 50%;
    transition: transform 0.2s ease;
    box-shadow: var(--shadow-sm);
  }
  [data-theme="dark"] .theme-switch { background: var(--primary); }
  [data-theme="dark"] .theme-switch::after { transform: translateX(20px); }

  /* ============================================
     DASHBOARD (nueva vista principal post-login)
     ============================================ */
  .dashboard {
    padding: 24px 32px 40px;
  }
  .dashboard .db-greeting {
    margin-bottom: 28px;
  }
  .dashboard .db-greeting h1 {
    font-family: var(--font-display);
    font-size: 30px;
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
  }
  .dashboard .db-greeting p {
    color: var(--text-soft);
    font-size: 15px;
  }
  .dashboard .db-kpis {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 28px;
  }
  .dashboard .db-kpi {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px 22px;
    position: relative;
    overflow: hidden;
  }
  .dashboard .db-kpi .db-kpi-label {
    font-size: 11.5px;
    color: var(--text-soft);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex; align-items: center; gap: 6px;
  }
  .dashboard .db-kpi .db-kpi-value {
    font-family: var(--font-display);
    font-size: 32px;
    line-height: 1;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
  }
  .dashboard .db-kpi .db-kpi-delta {
    margin-top: 6px;
    font-size: 12px;
    color: var(--accent);
    font-weight: 600;
  }
  .dashboard .db-kpi .db-kpi-delta.bad { color: var(--danger); }
  .dashboard .db-kpi .db-kpi-icon {
    position: absolute;
    top: 18px; right: 18px;
    width: 36px; height: 36px;
    border-radius: 10px;
    background: var(--primary-soft);
    color: var(--primary);
    display: inline-flex; align-items: center; justify-content: center;
  }
  .dashboard .db-kpi .db-kpi-icon svg { width: 18px; height: 18px; }
  .dashboard .db-kpi .db-kpi-icon.gold { background: var(--gold-soft); color: var(--gold); }
  .dashboard .db-kpi .db-kpi-icon.accent { background: var(--accent-soft); color: var(--accent); }
  .dashboard .db-kpi .db-kpi-icon.warn { background: var(--warn-soft); color: var(--warn); }

  .dashboard .db-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 28px;
  }
  .dashboard .db-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 22px 24px;
  }
  .dashboard .db-card h3 {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    color: var(--text-soft);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
  }
  .dashboard .db-chart-wrap {
    height: 220px;
    position: relative;
  }
  .dashboard .db-quick {
    display: flex; flex-direction: column; gap: 8px;
  }
  .dashboard .db-quick a {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 14px;
    background: var(--card-alt);
    border-radius: 9px;
    text-decoration: none;
    color: var(--text);
    font-size: 13.5px;
    font-weight: 600;
    transition: background 0.15s ease, transform 0.15s ease;
  }
  .dashboard .db-quick a:hover { background: var(--bg-tint); }
  .dashboard .db-quick a .dq-icon {
    width: 32px; height: 32px;
    border-radius: 8px;
    background: var(--primary-soft);
    color: var(--primary);
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0;
  }
  .dashboard .db-quick a .dq-icon svg { width: 16px; height: 16px; }
  .dashboard .db-quick a .dq-arrow {
    margin-left: auto;
    color: var(--muted);
  }
  .dashboard .db-activity {
    display: flex; flex-direction: column; gap: 12px;
  }
  .dashboard .db-activity .db-act {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
  }
  .dashboard .db-activity .db-act:last-child { border-bottom: 0; }
  .dashboard .db-activity .db-act .da-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--primary);
    flex-shrink: 0;
  }
  .dashboard .db-activity .db-act .da-text { color: var(--text); flex: 1; }
  .dashboard .db-activity .db-act .da-time { color: var(--muted); font-size: 12px; }

  /* Fila con avatar (para tablas) */
  .jug-cell {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    color: inherit;
  }
  .jug-cell .jug-avatar { flex-shrink: 0; }
  .jug-cell .jug-txt { min-width: 0; display: flex; flex-direction: column; line-height: 1.1; }
  .jug-cell .jug-txt .n { font-weight: 600; color: inherit; }
  .jug-cell .jug-txt .d { font-size: 10.5px; color: inherit; opacity: 0.7; text-transform: uppercase; letter-spacing: 0.06em; margin-top: 1px; }

  /* Tablas más respiradas (override sutil) */
  .table-wrap table th {
    font-weight: 600;
    color: var(--text-soft);
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
  }
  .table-wrap table td { padding: 12px 14px; }

  /* Grid de player cards (mini-heroes) */
  .player-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
    margin-bottom: 20px;
  }
  .player-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  }
  .player-card .pc-bg {
    position: absolute;
    top: -40px; right: -40px;
    width: 140px; height: 140px;
    border-radius: 50%;
    opacity: 0.10;
    pointer-events: none;
    z-index: 0;
  }
  .player-card .pc-bg.pc-base       { background: linear-gradient(135deg, #4F6BED, #2A3F9E); }
  .player-card .pc-bg.pc-escolta    { background: linear-gradient(135deg, #2BAE7E, #156B4D); }
  .player-card .pc-bg.pc-alero      { background: linear-gradient(135deg, #E89B3C, #B8711C); }
  .player-card .pc-bg.pc-alapivot   { background: linear-gradient(135deg, #D65A3F, #9A2E1C); }
  .player-card .pc-bg.pc-pivot      { background: linear-gradient(135deg, #B81C2C, #6B0E18); }
  .player-card .pc-bg.pc-sin        { background: linear-gradient(135deg, #8A7A5C, #4F4434); }
  .player-card .pc-head, .player-card .pc-pos, .player-card .pc-stats, .player-card .pc-footer {
    position: relative;
    z-index: 1;
  }
  .player-card .pc-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
  }
  /* v2.48.5: padding-right en pc-head-info para evitar que el badge DISPONIBLE/DUDAS/LESIONADO se superponga con el nombre */
  .player-card .pc-head-info {
    flex: 1;
    min-width: 0;
    padding-right: 90px;
  }
  .player-card .pc-nombre {
    font-family: Inter, system-ui, sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.15;
    color: var(--text);
  }
  .player-card .pc-dorsal {
    font-family: Inter, system-ui, sans-serif;
    font-size: 11.5px;
    color: var(--muted);
    margin-top: 2px;
    font-weight: 500;
  }
  .player-card .pc-pos { margin-bottom: 12px; }
  .player-card .pc-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 12px;
    padding: 10px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 10px;
  }
  .player-card .pcs .lbl {
    font-size: 9.5px;
    color: var(--text-soft);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
  }
  .player-card .pcs .val {
    font-family: Inter, system-ui, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.2;
    margin-top: 1px;
    font-variant-numeric: tabular-nums;
  }
  .player-card .pc-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 10.5px;
  }
  .player-card .pc-lesiones { color: var(--text-soft); font-size: 10.5px; }
  /* v2.8: badge de estado grande en la card (DISPONIBLE / LESIONADO / DUDAS) */
  .pc-estado-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: 0.4px;
    z-index: 2;
  }
  .pc-estado-ok { background: #10b981; color: white; }
  .pc-estado-les { background: #dc2626; color: white; }
  .pc-estado-dudas { background: #f59e0b; color: white; }
  /* v2.8: sparkline de peso */
  .pc-spark-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 12px 4px;
    border-top: 1px dashed var(--border);
    margin-top: 8px;
  }
  .pc-spark-row .lbl {
    font-size: 10px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-weight: 700;
  }
  /* v2.8: badge ACWR (en vez de "Riesgo N") */
  .acwr-badge.riesgo-ok { background: #10b981; color: white; }
  .acwr-badge.riesgo-warn { background: #f59e0b; color: white; }
  .acwr-badge.riesgo-danger { background: #dc2626; color: white; }
  .acwr-badge.riesgo-none { background: var(--border); color: var(--muted); }
  .riesgo-badge.riesgo-ok { background: rgba(16,185,129,0.15); color: #10b981; }
  .riesgo-badge.riesgo-warn { background: rgba(245,158,11,0.15); color: #d97706; }
  .riesgo-badge.riesgo-danger { background: rgba(220,38,38,0.15); color: #dc2626; }
  .riesgo-badge.riesgo-none { background: var(--surface-2, #f1f5f9); color: var(--muted); }
  .riesgo-badge.riesgo-ok, .riesgo-badge.riesgo-warn, .riesgo-badge.riesgo-danger,
  .riesgo-badge.riesgo-none,
  .acwr-badge.riesgo-ok, .acwr-badge.riesgo-warn, .acwr-badge.riesgo-danger {
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 700;
  }

  /* Selección de player card (clic) */
  .player-card:hover {
    border-color: rgba(184,28,44,0.35);
    box-shadow: 0 6px 20px -10px rgba(184,28,44,0.25);
  }
  .player-card.is-selected {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(184,28,44,0.10);
  }

  /* FORM */
  .form-row {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
  }
  .form-row label {
    font-size: 12px;
    color: var(--text-soft);
    font-weight: 500;
    letter-spacing: 0.01em;
  }
  input[type="text"], input[type="number"], input[type="date"], select, textarea {
    background: var(--input);
    border: 1px solid var(--border-strong);
    padding: 7px 10px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-family: inherit;
    color: var(--text);
    min-width: 0;
    transition: border-color 0.15s, background 0.15s;
  }
  input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--text);
    background: #fff;
  }
  input[type="number"] { width: 70px; text-align: center; }
  input[type="text"] { min-width: 140px; }
  input.compact { width: 50px; padding: 3px 6px; font-size: 12px; }

  /* TABLES */
  .table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--card);
  }
  table {
    border-collapse: collapse;
    width: 100%;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
  }
  th, td {
    border-bottom: 1px solid var(--border);
    border-right: 1px solid var(--border);
    padding: 9px 10px;
    text-align: center;
    white-space: nowrap;
  }
  th:last-child, td:last-child { border-right: none; }
  th {
    background: var(--bg-deep);
    color: var(--text-soft);
    font-weight: 700;
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    position: sticky;
    top: 0;
    z-index: 2;
    font-family: Inter, system-ui, sans-serif;
  }
  th.player-head {
    background: var(--secondary);
    color: #f4f1ea;
    text-align: left;
    padding-left: 14px;
    font-size: 11.5px;
    text-transform: none;
    letter-spacing: 0.04em;
    font-weight: 600;
  }
  tr:nth-child(even) td { background: var(--row-stripe); }
  tr:hover td { background: var(--bg-tint); }
  tr.summary-row td {
    background: var(--warn-soft) !important;
    font-weight: 600;
  }
  tr.media-row td {
    background: var(--accent-soft) !important;
    font-weight: 600;
  }
  tr.week-header td {
    background: var(--secondary) !important;
    color: #f4f1ea !important;
    font-weight: 600;
    font-family: Inter, system-ui, sans-serif;
  }
  tr.week-header td .right-info { float: right; }
  td.calc { background: var(--calc); color: var(--text-soft); }
  td input {
    width: 100%;
    border: none;
    background: transparent;
    text-align: center;
    padding: 4px;
    font-size: 12px;
    font-family: inherit;
  }
  td input:focus {
    background: #fff8d6;
    box-shadow: inset 0 0 0 2px var(--warn);
  }
  td.day-label {
    background: #f3f4f6;
    font-weight: 600;
    color: var(--primary);
    text-align: left;
    padding-left: 12px;
    position: sticky;
    left: 0;
    z-index: 1;
  }
  td.day-date {
    font-variant-numeric: tabular-nums;
    color: var(--muted);
    font-size: 11px;
  }
  .sticky-col { position: sticky; left: 0; z-index: 1; background: inherit; }
  .badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
  }
  .badge-pre { background: #fef3c7; color: #92400e; }
  .badge-comp { background: #d1fae5; color: #065f46; }
  .badge-other { background: #e0e7ff; color: #3730a3; }

  /* JUGADORES MANAGEMENT */
  .jugadores-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 8px;
  }
  .jugador-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--card);
    padding: 10px 12px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: border-color 0.15s;
  }
  .jugador-item:hover { border-color: var(--border-strong); }
  .jugador-item .num {
    font-family: Inter, system-ui, sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    width: 22px;
    text-align: right;
  }
  .jugador-item .name { flex: 1; font-weight: 500; }
  .jugador-item input.name-input { width: 100%; min-width: 0; }
  .jugador-item button {
    background: none;
    border: none;
    color: var(--muted);
    cursor: pointer;
    padding: 2px 6px;
    font-size: 14px;
    border-radius: 4px;
  }
  .jugador-item button:hover { background: var(--card); color: var(--danger); }
  .jugador-item button.edit:hover { color: var(--primary); }

  /* CALENDARIO */
  .cal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
  }
  .month-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px;
    box-shadow: var(--shadow);
  }
  .month-card h3 {
    color: var(--primary);
    font-size: 14px;
    margin-bottom: 8px;
    text-align: center;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border);
  }
  .month-cal {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    font-size: 10px;
  }
  .month-cal .dh {
    text-align: center;
    font-weight: 600;
    color: var(--muted);
    padding: 4px 0;
    font-size: 9px;
  }
  .month-cal .day {
    aspect-ratio: 1;
    border: 1px solid #e5e7eb;
    border-radius: 3px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: #fff;
    transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
    position: relative;
    font-weight: 500;
  }
  .month-cal .day:hover { background: var(--primary-light); border-color: var(--primary); }
  .month-cal .day.empty { background: transparent; border: none; cursor: default; }
  .month-cal .day[draggable="true"] { cursor: grab; }
  .month-cal .day[draggable="true"]:active { cursor: grabbing; }
  .month-cal .day.dragging { opacity: 0.4; transform: scale(0.95); }
  .month-cal .day.drag-over { outline: 2px dashed var(--primary); outline-offset: -2px; background: var(--primary-light) !important; }
  .month-cal .day-clear {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 10px;
    line-height: 16px;
    text-align: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.15s, transform 0.15s, background 0.15s;
    z-index: 2;
    user-select: none;
  }
  .month-cal .day.has-type:hover .day-clear { opacity: 1; }
  .month-cal .day-clear:hover { background: var(--danger); transform: scale(1.15); }
  .month-cal .day.has-type { color: #fff; }
  .month-cal .day .num { font-size: 10px; }
  .month-cal .day .type { font-size: 8px; font-weight: 700; }
  /* v2.29: vista Mes (1 mes más grande, día a día más amplio) */
  .month-card.mes-single {
    max-width: 720px;
    margin: 0 auto;
    padding: 18px;
  }
  .month-card.mes-single h3 {
    font-size: 18px;
    text-align: left;
    padding-bottom: 10px;
  }
  .month-card.mes-single .month-cal {
    font-size: 12px;
    gap: 4px;
  }
  .month-card.mes-single .month-cal .day {
    min-height: 56px;
  }
  .month-card.mes-single .month-cal .day .num { font-size: 13px; }
  .month-card.mes-single .month-cal .day .type { font-size: 9.5px; }
  .month-card.mes-single .month-cal .dh {
    font-size: 11px;
    padding: 8px 0;
  }
  /* v2.29: microciclo en 1 fila — scroll horizontal en móvil */
  .mc-days { scrollbar-width: thin; }
  .mc-days::-webkit-scrollbar { height: 6px; }
  .mc-days::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
  @media (max-width: 900px) {
    .mc-days { grid-template-columns: repeat(7, minmax(180px, 1fr)); }
  }
  @media (max-width: 768px) {
    .cal-grid { grid-template-columns: 1fr; }
    .month-card.mes-single { max-width: 100%; }
  }
  .month-summary {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
    font-size: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
  }
  .month-summary .item {
    background: var(--primary-light);
    padding: 2px 6px;
    border-radius: 8px;
    color: var(--primary);
  }

  /* CARGA EXTERNA - DAY BLOCK */
  .ce-day-block {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 12px;
    overflow: hidden;
  }
  .ce-day-header {
    background: var(--primary);
    color: #fff;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .ce-day-header input {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
  }
  .ce-day-body { padding: 8px; }
  .ce-ex-row {
    display: grid;
    grid-template-columns: 2fr repeat(6, 1fr) 1fr 1fr 1fr 1fr;
    gap: 4px;
    align-items: center;
    margin-bottom: 4px;
  }
  .ce-ex-row.head {
    font-size: 10px;
    color: var(--muted);
    font-weight: 600;
    text-transform: uppercase;
    text-align: center;
  }
  .ce-ex-row input { font-size: 11px; padding: 3px 5px; }
  .ce-ex-row .ce-total { font-weight: 600; color: var(--primary); }

  /* INFORME TEMPORADA */
  .informe-tabla th { font-size: 11px; }
  .informe-tabla tr.fase-row td {
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    text-align: left;
    padding-left: 12px;
  }

  /* TOAST */
  .toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--text);
    color: #fff;
    padding: 12px 20px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    font-size: 13px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.2s, transform 0.2s;
    z-index:  100000;
  }
  .toast.show { opacity: 1; transform: translateY(0); }
  .toast.success { background: var(--accent-dark); }
  .toast.error { background: var(--danger); }

  /* MODAL */
  .modal-back {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
  }
  .modal-back.show { display: flex; }
  .modal {
    background: var(--card);
    border-radius: var(--radius);
    padding: 28px 30px;
    max-width: 520px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid var(--border);
  }
  .modal h3 {
    color: var(--text);
    margin-bottom: 12px;
  }
  .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
  }
  .modal-header h3 {
    margin-bottom: 0;
  }
  .modal-close {
    background: none;
    border: none;
    font-size: 26px;
    line-height: 1;
    color: var(--muted);
    cursor: pointer;
    padding: 0 8px;
    margin: -4px -4px 0 0;
    border-radius: 4px;
    font-family: inherit;
    transition: color 0.15s, background 0.15s;
  }
  .modal-close:hover {
    color: var(--primary);
    background: var(--bg-tint);
  }
    font-size: 20px;
    font-family: Inter, system-ui, sans-serif;
  }
  .modal p { color: var(--text-soft); margin-bottom: 16px; font-size: 13.5px; line-height: 1.5; }
  .modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 24px; }

  /* KPI GRID */
  .kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
  }

  /* ============== SUBTABS (Partidos detalle) ============== */
  .subtabs {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    margin: 12px 0 16px;
    flex-wrap: wrap;
  }
  .subtab {
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 8px 14px;
    font-size: 14px;
    cursor: pointer;
    color: var(--muted);
    font-weight: 500;
    transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
  }
  .subtab:hover {
    color: var(--text);
    background: rgba(0,0,0,0.02);
  }
  .subtab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    font-weight: 600;
  }
  .subtab-content { display: none; }
  .subtab-content.active { display: block; }

  /* ============== ROTATION CHART ============== */
  .rotacion-chart {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    background: var(--bg);
    border-radius: var(--radius);
    overflow-x: auto;
  }
  .rotacion-row {
    display: grid;
    grid-template-columns: 140px 1fr;
    align-items: center;
    gap: 8px;
    min-height: 32px;
  }
  .rotacion-nombre {
    font-size: 13px;
    font-weight: 500;
    text-align: right;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .rotacion-cuartos {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
  }
  .rotacion-cuarto {
    position: relative;
    height: 26px;
    background: rgba(0,0,0,0.05);
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: var(--muted);
  }
  .rotacion-cuarto.q1 { border-left: 2px solid #1e3a5f; }
  .rotacion-cuarto.q2 { border-left: 2px solid #10b981; }
  .rotacion-cuarto.q3 { border-left: 2px solid #f59e0b; }
  .rotacion-cuarto.q4 { border-left: 2px solid #ef4444; }
  .rotacion-cuarto.ot { border-left: 2px solid #8b5cf6; }
  .rotacion-bar {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    background: linear-gradient(90deg, #10b981, #059669);
    border-radius: 4px;
    transition: width 0.3s;
  }
  .rotacion-cuarto.played {
    color: white;
    font-weight: 600;
  }
  .rotacion-cuarto.full { background: var(--primary); color: white; }
  .rotacion-cuarto .rotacion-min {
    position: relative;
    z-index: 1;
    font-weight: 600;
  }
  .rotacion-header {
    font-weight: 600;
    color: var(--muted);
    font-size: 11px;
    text-align: center;
  }
  .quinteto-cell {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    min-height: 28px;
  }
  .quinteto-chip {
    background: var(--primary-light);
    color: var(--primary);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
  }
  .quinteto-chip:hover { border-color: var(--primary); }
  .quinteto-chip.add { background: #10b981; color: white; }
  .quinteto-chip.empty { background: rgba(0,0,0,0.05); color: var(--muted); font-style: italic; }

  /* ============== LIVE MODE ============== */
  .live-marcador {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 12px;
    align-items: center;
    background: var(--secondary);
    color: #f4f1ea;
    padding: 20px;
    border-radius: var(--radius);
    margin-bottom: 12px;
  }
  .live-equipo {
    text-align: center;
  }
  .live-equipo-nombre {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.85;
    margin-bottom: 4px;
  }
  .live-equipo-puntos {
    font-size: 56px;
    font-weight: 700;
    line-height: 1;
    font-variant-numeric: tabular-nums;
  }
  .live-tiempo {
    text-align: center;
    border-left: 1px solid rgba(255,255,255,0.2);
    border-right: 1px solid rgba(255,255,255,0.2);
    padding: 0 12px;
  }
  .live-cuarto-label {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.7;
    margin-bottom: 4px;
  }
  .live-cronometro {
    font-size: 38px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    margin-bottom: 8px;
  }
  .live-cronometro.warning { color: #fbbf24; }
  .live-cronometro.critical { color: #ef4444; animation: pulse 0.5s infinite; }
  @keyframes pulse { 50% { opacity: 0.5; } }
  .live-controles {
    display: flex;
    gap: 4px;
    justify-content: center;
    flex-wrap: wrap;
  }
  .live-controles .btn { padding: 4px 10px; font-size: 12px; }

  .live-jugadores {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 8px;
  }
  .live-jugador {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: var(--card);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
    user-select: none;
  }
  .live-jugador:hover { border-color: var(--primary); }
  .live-jugador.en-pista {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border-color: #059669;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
  }
  .live-jugador.en-pista .live-jugador-num { background: rgba(255,255,255,0.25); color: white; }
  .live-jugador-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
  }
  .live-jugador-nombre {
    flex: 1;
    font-size: 13px;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .live-jugador-tiempo {
    font-size: 11px;
    opacity: 0.85;
    font-variant-numeric: tabular-nums;
  }
  .live-jugador.faltas-5 { border-color: #ef4444; border-style: dashed; }
  .live-jugador.lesionado { opacity: 0.4; cursor: not-allowed; }

  /* Control de faltas en live mode */
  .live-faltas-control {
    display: flex;
    align-items: center;
    gap: 2px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 3px;
    padding: 1px 2px;
    margin: 0 4px;
  }
  .live-jugador.en-pista .live-faltas-control {
    background: rgba(255, 255, 255, 0.95);
  }
  .live-falta-btn {
    width: 20px;
    height: 20px;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--text-soft);
    border-radius: 2px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    font-family: Inter, system-ui, sans-serif;
  }
  .live-falta-btn:hover:not(:disabled) {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
  }
  .live-falta-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
  }
  .live-falta-count {
    min-width: 22px;
    text-align: center;
    font-weight: 700;
    font-size: 13px;
    color: var(--text-soft);
    font-variant-numeric: tabular-nums;
  }
  .live-falta-count.ft-aviso { color: var(--warn); }
  .live-falta-count.ft-critico { color: var(--danger); animation: live-falta-pulse 1.5s infinite; }
  .live-falta-count.ft-descalificado { color: white; background: var(--danger); border-radius: 3px; padding: 0 4px; }
  @keyframes live-falta-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
  }
  .live-faltas-tag {
    position: absolute;
    top: 2px;
    right: 4px;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 1px 4px;
    border-radius: 2px;
    text-transform: uppercase;
  }
  .live-jugador.ft-aviso .live-faltas-tag { background: var(--warn-soft); color: var(--warn); }
  .live-jugador.ft-critico .live-faltas-tag { background: var(--danger-soft); color: var(--danger); }
  .live-jugador.ft-descalificado .live-faltas-tag { background: var(--danger); color: white; }
  .live-jugador.ft-aviso { border-color: var(--warn); }
  .live-jugador.ft-critico { border-color: var(--danger); border-style: dashed; }
  .live-jugador.ft-descalificado { border-color: var(--danger); border-style: solid; box-shadow: 0 0 0 2px var(--danger-soft); }

  /* Editor de faltas en la tabla del partido */
  .faltas-editor {
    display: inline-flex;
    align-items: center;
    gap: 3px;
  }
  .falta-btn {
    width: 22px;
    height: 22px;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--text-soft);
    border-radius: 2px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    font-family: Inter, system-ui, sans-serif;
  }
  .falta-btn:hover:not(:disabled) {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
  }
  .falta-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
  }
  .falta-count {
    min-width: 26px;
    text-align: center;
    font-weight: 700;
    font-size: 14px;
    color: var(--text);
    font-variant-numeric: tabular-nums;
    padding: 0 4px;
  }
  .falta-count.ft-aviso { color: var(--warn); }
  .falta-count.ft-critico { color: var(--danger); animation: live-falta-pulse 1.5s infinite; }
  .falta-count.ft-descalificado { color: white; background: var(--danger); border-radius: 3px; }

  /* Panel de Foul Trouble */
  .foul-trouble-panel {
    margin-top: 16px;
    padding: 12px 16px;
    background: var(--card);
    border: 1px solid var(--border);
    border-left: 4px solid var(--warn);
    border-radius: 4px;
  }
  .foul-trouble-head {
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
  }
  .foul-trouble-title {
    font-family: Inter, system-ui, sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
  }
  .foul-trouble-sub {
    font-size: 12px;
    color: var(--text-soft);
    margin-top: 2px;
  }
  .foul-trouble-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  .foul-trouble-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: var(--bg-tint);
    border-radius: 3px;
    border-left: 3px solid var(--border-strong);
  }
  .foul-trouble-item.ft-aviso { border-left-color: var(--warn); }
  .foul-trouble-item.ft-critico { border-left-color: var(--danger); background: var(--danger-soft); }
  .foul-trouble-item.ft-descalificado { border-left-color: var(--danger); background: var(--danger); color: white; }
  .ft-jugador {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  .ft-jugador strong {
    font-size: 13px;
    color: var(--text);
  }
  .foul-trouble-item.ft-critico .ft-jugador strong,
  .foul-trouble-item.ft-descalificado .ft-jugador strong {
    color: var(--danger);
  }
  .foul-trouble-item.ft-descalificado .ft-jugador strong {
    color: white;
  }
  .ft-tag {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--text-soft);
  }
  .foul-trouble-item.ft-critico .ft-tag { color: var(--danger); }
  .foul-trouble-item.ft-descalificado .ft-tag { color: rgba(255, 255, 255, 0.85); }
  .ft-faltas {
    font-family: Inter, system-ui, sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    font-variant-numeric: tabular-nums;
  }
  .foul-trouble-item.ft-aviso .ft-faltas { color: var(--warn); }
  .foul-trouble-item.ft-critico .ft-faltas { color: var(--danger); }
  .foul-trouble-item.ft-descalificado .ft-faltas { color: white; }

  /* Badge de foul trouble en stint-block */
  .ft-badge {
    display: inline-block;
    padding: 2px 8px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 2px;
  }
  .ft-badge.ft-aviso { background: var(--warn-soft); color: var(--warn); }
  .ft-badge.ft-critico { background: var(--danger-soft); color: var(--danger); }
  .ft-badge.ft-descalificado { background: var(--danger); color: white; }

  .pos-tag {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
  }
  .estado-tag {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
  }
  .estado-tag.lesionado { background: #fee2e2; color: #dc2626; }
  .text-success { color: #10b981; }
  .text-muted { color: var(--muted); }
  .muted { color: var(--muted); font-size: 12px; }


  /* v13 — control de minutaje y faltas en Rotación */
  .rot-live-control-card { overflow: hidden; }
  .rot-live-control-head { display:flex; justify-content:space-between; gap:16px; align-items:flex-start; margin-bottom:12px; }
  .rot-control-jugadores { display:grid; grid-template-columns:repeat(5,minmax(150px,1fr)); gap:8px; }
  .rot-control-player { border:1px solid var(--border); border-radius:12px; padding:10px; background:var(--surface); transition:.15s; }
  .rot-control-player.active { border-color:var(--accent); box-shadow:0 0 0 2px rgba(16,185,129,.10); background:rgba(16,185,129,.035); }
  .rot-control-player .r-name { font-weight:800; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .rot-control-player .r-times { display:grid; grid-template-columns:1fr 1fr; gap:5px; margin:8px 0; }
  .rot-time-box { background:var(--bg); border-radius:8px; padding:6px; }
  .rot-time-box .label { display:block; font-size:9px; color:var(--muted); text-transform:uppercase; letter-spacing:.04em; }
  .rot-time-box strong { font-size:16px; }
  .rot-foul-row { display:flex; align-items:center; justify-content:space-between; gap:5px; margin-top:5px; }
  .rot-foul-btn { width:28px; height:28px; border:1px solid var(--border); background:var(--surface); border-radius:7px; font-weight:900; cursor:pointer; }
  .rot-foul-btn:hover:not(:disabled) { border-color:var(--accent); color:var(--accent); }
  .rot-foul-btn:disabled { opacity:.35; cursor:not-allowed; }
  .rot-foul-count { min-width:38px; text-align:center; font-weight:900; padding:4px 7px; border-radius:7px; background:var(--bg); }
  .rot-foul-count.warn { background:#fef3c7; color:#b45309; }
  .rot-foul-count.danger { background:#fee2e2; color:#b91c1c; }
  .rot-team-fouls { display:flex; gap:8px; flex-wrap:wrap; }
  .rot-team-foul-box { min-width:105px; border:1px solid var(--border); border-radius:10px; padding:6px 8px; background:var(--bg); }
  .rot-team-foul-box .team-label { font-size:9px; color:var(--muted); text-transform:uppercase; font-weight:800; }
  .rot-team-foul-box .team-value { display:flex; align-items:center; justify-content:space-between; gap:6px; font-size:18px; font-weight:900; }
  .rot-team-foul-box button { width:23px; height:23px; border:1px solid var(--border); background:var(--surface); border-radius:6px; cursor:pointer; font-weight:900; }
  .rot-team-foul-box.rival .team-value { color:#b91c1c; }
  @media (max-width: 1050px) { .rot-control-jugadores { grid-template-columns:repeat(3,minmax(150px,1fr)); } }
  @media (max-width: 700px) { .rot-live-control-head { flex-direction:column; } .rot-control-jugadores { grid-template-columns:repeat(2,minmax(140px,1fr)); } }

  .live-running .live-jugador.en-pista { animation: live-pulse 2s infinite; }
  @keyframes live-pulse {
    0%, 100% { box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3); }
    50% { box-shadow: 0 2px 12px rgba(16, 185, 129, 0.6); }
  }

  /* ============== STINTS POR CUARTO (chips en celdas) ============== */
  .cuartos-stints {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    align-items: center;
    min-height: 28px;
  }
  .stint-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--primary-light);
    color: var(--primary);
    padding: 2px 6px 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
    line-height: 1.2;
  }
  .stint-chip:hover { border-color: var(--primary); background: #dbeafe; }
  .stint-chip .stint-dur {
    font-size: 10px;
    opacity: 0.7;
    margin-left: 2px;
  }
  .stint-chip .stint-del {
    background: rgba(239,68,68,0.15);
    color: #dc2626;
    border: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    margin-left: 2px;
  }
  .stint-chip .stint-del:hover { background: #ef4444; color: white; }
  .btn-stint-add {
    background: transparent;
    border: 1.5px dashed var(--muted);
    color: var(--muted);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
  }
  .btn-stint-add:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }

  /* ============== ESTADO PARTIDO BADGES ============== */
  .badge-estado {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 2px;
    font-size: 10.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
  }
  .badge-estado.planificado { background: var(--bg-tint); color: var(--text-soft); border: 1px solid var(--border-strong); }
  .badge-estado.en_curso { background: var(--danger-soft); color: var(--danger); }
  .badge-estado.finalizado { background: var(--accent-soft); color: var(--accent); }
  .badge-estado.papelera { background: var(--bg-tint); color: var(--muted); text-decoration: line-through; }

  /* ============== STINTS ============== */
  .stint-block {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px;
    margin-bottom: 8px;
  }
  .stint-lineup {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    align-items: center;
    margin: 6px 0;
  }
  .stint-jugador {
    background: var(--primary-light);
    color: var(--primary);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
  }
  .stint-pm.pos { color: #10b981; font-weight: 700; }
  .stint-pm.neg { color: #ef4444; font-weight: 700; }
  .stint-pm.neu { color: var(--muted); }

  /* ============== ANALISIS ============== */
  .insight-card {
    background: var(--card);
    border-left: 4px solid var(--primary);
    padding: 10px 14px;
    border-radius: 6px;
    margin-bottom: 8px;
    font-size: 13px;
  }
  .insight-card.warn { border-left-color: var(--warn); background: #fef3c7; }
  .insight-card.danger { border-left-color: var(--danger); background: #fee2e2; }
  .insight-card.success { border-left-color: var(--accent); background: #d1fae5; }
  .insight-card.info { border-left-color: #3b82f6; background: #dbeafe; }
  .insight-card .insight-title {
    font-weight: 600;
    margin-bottom: 2px;
  }
  .insight-card .insight-detail {
    color: var(--muted);
    font-size: 12px;
  }

  .rotation-health-bar {
    width: 100%;
    height: 24px;
    background: #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    margin: 6px 0;
  }
  .rotation-health-bar .fill {
    height: 100%;
    border-radius: 12px;
    transition: width 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 11px;
    font-weight: 700;
  }
  .rotation-health-bar .fill.green { background: linear-gradient(90deg, #10b981, #059669); }
  .rotation-health-bar .fill.amber { background: linear-gradient(90deg, #f59e0b, #d97706); }
  .rotation-health-bar .fill.red { background: linear-gradient(90deg, #ef4444, #dc2626); }

  .lineup-rank {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    background: var(--bg);
    border-radius: 6px;
    margin-bottom: 4px;
    font-size: 13px;
  }
  .lineup-rank .rank-num { font-weight: 700; color: var(--muted); min-width: 18px; }
  .lineup-rank .lineup-players { flex: 1; }
  .lineup-rank .lineup-min { color: var(--muted); font-size: 11px; margin-right: 6px; }
  .lineup-rank .lineup-pm { font-weight: 700; min-width: 50px; text-align: right; }

  /* ============== INFORME ============== */
  .informe-preview {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    font-family: Inter, system-ui, sans-serif;
    color: #1f2937;
  }
  .informe-preview h1 { font-size: 24px; margin: 0 0 6px; color: var(--primary); }
  .informe-preview h2 { font-size: 16px; margin: 16px 0 6px; border-bottom: 1px solid #e5e7eb; padding-bottom: 4px; }
  .informe-preview h3 { font-size: 13px; margin: 10px 0 4px; color: #4b5563; }
  .informe-preview table { width: 100%; border-collapse: collapse; margin: 8px 0; font-family: Inter, system-ui, sans-serif; font-size: 12px; }
  .informe-preview th, .informe-preview td { padding: 4px 6px; border-bottom: 1px solid #e5e7eb; text-align: left; }
  .informe-preview th { background: #f9fafb; font-weight: 600; }
  .informe-preview .marcador-grande { font-size: 32px; font-weight: 700; text-align: center; margin: 16px 0; }
  .informe-preview .kpis-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin: 12px 0; }
  .informe-preview .kpi-print { background: #f9fafb; border-radius: 6px; padding: 8px; text-align: center; }
  .informe-preview .kpi-print .label { font-size: 10px; color: #6b7280; text-transform: uppercase; }
  .informe-preview .kpi-print .value { font-size: 18px; font-weight: 700; color: #1f2937; }

  @media print {
    /* Simplificado: la nueva ventana de impresión en imprimirInformePartido() hace el trabajo */
    body { background: #fff; }
    @page { size: A4; margin: 12mm 10mm; }
  }

  /* Schedule card */
  .schedule-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 8px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    position: relative;
  }
  .schedule-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary);
  }
  .schedule-item:hover {
    border-color: var(--text);
    background: var(--bg-tint);
  }
  .schedule-item .fecha { font-weight: 600; min-width: 80px; color: var(--text); }
  .schedule-item .hora { color: var(--muted); min-width: 60px; }
  .schedule-item .rival { flex: 1; font-weight: 500; }
  .schedule-item .comp { color: var(--muted); font-size: 12px; }

  .kpi {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 22px;
    position: relative;
  }
  .kpi::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 3px;
    height: 100%;
    background: var(--primary);
  }
  .kpi.accent::before { background: var(--accent); }
  .kpi.warn::before { background: var(--warn); }
  .kpi.danger::before { background: var(--danger); }
  .kpi .label {
    font-size: 10.5px;
    text-transform: uppercase;
    color: var(--muted);
    letter-spacing: 0.08em;
    font-weight: 600;
    margin-bottom: 8px;
  }
  .kpi .value {
    font-size: 32px;
    font-weight: 800;
    color: var(--text);
    line-height: 1.1;
    font-family: Inter, system-ui, sans-serif;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
  }
  .kpi.accent .value { color: var(--accent); }
  .kpi.warn .value { color: var(--warn); }
  .kpi.danger .value { color: var(--danger); }
  .kpi .sub {
    font-size: 12px;
    color: var(--muted);
    margin-top: 6px;
  }

  /* SUB-TABS (dentro de un panel) */
  .btn[data-rtab].active,
  .btn[data-wtab].active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
  }


  /* ===== Perfil de usuario ===== */
  .profile-modal{max-width:760px!important;padding:0!important;overflow:hidden}
  .profile-modal-head,.wellness-modal-head{display:flex;justify-content:space-between;gap:24px;align-items:flex-start;padding:22px 24px 18px;border-bottom:1px solid var(--border)}
  .profile-modal-head h3,.wellness-modal-head h3{margin:3px 0 4px;font-family: Inter, system-ui, sans-serif;font-size:25px}
  .profile-modal-head p,.wellness-modal-head p{margin:0;color:var(--muted);font-size:13px;max-width:560px}
  .eyebrow{font-size:10px;font-weight:800;letter-spacing:.11em;color:var(--accent);text-transform:uppercase}
  .profile-layout{display:grid;grid-template-columns:180px 1fr;gap:26px;padding:24px}
  .profile-photo-panel{display:flex;align-items:center;flex-direction:column;gap:9px;padding:8px 0}
  .profile-photo-preview{width:112px;height:112px;border-radius:50%;background:var(--primary-light);border:1px solid var(--border);display:grid;place-items:center;overflow:hidden;font-size:30px;font-weight:800;color:var(--accent);box-shadow:0 4px 14px rgba(0,0,0,.06)}
  .profile-photo-preview img{width:100%;height:100%;object-fit:cover}
  .tiny{font-size:10px;text-align:center}
  .btn-ghost{border-color:transparent!important;background:transparent!important}
  .profile-section-title{font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);margin-bottom:12px}
  .subscription-card{display:flex;justify-content:space-between;gap:18px;align-items:center;padding:16px;border:1px solid var(--border);border-radius:12px;background:linear-gradient(135deg,rgba(139,20,40,.045),rgba(30,58,95,.035));margin-bottom:8px}
  .subscription-card-main{min-width:0}
  .subscription-card-badge{display:inline-flex;align-items:center;gap:6px;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.05em;color:var(--primary);margin-bottom:4px}
  .subscription-card-badge:before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor;display:inline-block}
  .subscription-card-title{font-size:16px;font-weight:800;color:var(--text);margin-bottom:3px}
  .subscription-card-meta{font-size:12px;color:var(--muted);line-height:1.45}
  .subscription-card-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:7px;flex-shrink:0}
  .subscription-card-actions .btn-danger{border-color:rgba(176,32,52,.28);color:#b02034}
  .subscription-card-note{display:block;margin:-2px 0 18px}
  @media(max-width:640px){.subscription-card{align-items:flex-start;flex-direction:column}.subscription-card-actions{width:100%;justify-content:flex-start}.subscription-card-actions .btn{flex:1}}
  .profile-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
  .form-field{display:flex;flex-direction:column;gap:6px}.form-field label{font-size:11px;font-weight:700;color:var(--muted)}.form-field input,.form-field select{width:100%;box-sizing:border-box}
  .profile-actions{padding:14px 24px 20px;border-top:1px solid var(--border);margin-top:0}
  /* ===== Wellness moderno ===== */
  .wellness-modal{max-width:820px!important;max-height:92vh;overflow:auto;padding:0!important}
  .wellness-modal-head{padding-bottom:16px}
  .wellness-modal .wellness-escala-legend{margin:16px 24px 18px;padding:10px 12px;border:1px solid var(--border);border-radius:10px;background:var(--card-alt);display:grid;grid-template-columns:auto 1fr 150px 1fr auto;align-items:center;gap:10px}
  .wellness-modal .legend-gradient{height:7px;border-radius:99px;background:linear-gradient(90deg,#4f6b3a,#d4a017,#8b1428)}
  .wellness-meta-grid{display:grid;grid-template-columns:1.5fr 1fr;gap:12px;padding:0 24px 16px}
  .wellness-hooper-preview{margin:0 24px 16px;padding:11px 14px;border:1px solid var(--border);border-radius:10px;background:var(--card-alt);display:grid;grid-template-columns:auto auto 1fr;align-items:center;gap:12px}
  .wellness-hooper-preview span{font-size:11px;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);font-weight:800}.wellness-hooper-preview strong{font-size:17px}.wellness-hooper-preview small{font-size:11px;color:var(--muted)}
  @media(max-width:700px){.wellness-hooper-preview{margin-left:14px;margin-right:14px;grid-template-columns:1fr auto}.wellness-hooper-preview small{grid-column:1/-1}}

  .wellness-question{margin:0 24px 12px;padding:15px 16px 14px;border:1px solid var(--border);border-radius:12px;background:var(--card-alt);box-shadow:0 1px 0 rgba(0,0,0,.02)}
  .wellness-question-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:6px}.wellness-question-title h4{margin:0;font-size:14px}.badge-meaning{font-size:11px;padding:4px 8px;border-radius:6px;background:var(--primary-light);color:var(--accent);font-weight:700}
  .wellness-question .scale-ends{display:flex;justify-content:space-between;font-size:10px;margin-bottom:8px}.wellness-scale{display:grid;grid-template-columns:repeat(7,1fr);gap:6px}.wellness-scale button{height:38px;background:var(--card);border:1px solid var(--border);border-bottom-width:3px;border-radius:7px;font-weight:700;cursor:pointer;transition:.15s}.wellness-scale button:hover{transform:translateY(-1px)}.wellness-scale button.selected{color:#fff;transform:none}
  .wellness-notes{display:flex;flex-direction:column;gap:6px;padding:2px 24px 18px}.wellness-notes label{font-size:11px;font-weight:700;color:var(--muted)}.wellness-notes label span{font-weight:400}.wellness-notes input{width:100%;box-sizing:border-box}
  .wellness-modal .modal-actions{padding:14px 24px 20px;border-top:1px solid var(--border);margin-top:0}
  @media(max-width:700px){.profile-layout{grid-template-columns:1fr}.profile-grid{grid-template-columns:1fr}.wellness-modal .wellness-escala-legend{grid-template-columns:1fr}.wellness-meta-grid{grid-template-columns:1fr}.wellness-question{margin-left:14px;margin-right:14px}.wellness-modal-head{padding:18px}.wellness-modal .wellness-escala-legend,.wellness-meta-grid,.wellness-notes{margin-left:0;margin-right:0;padding-left:14px;padding-right:14px}.wellness-scale{gap:3px}.wellness-scale button{height:36px}}

  /* WELLNESS MASIVO - inputs en grid */
  .wellness-row {
    display: grid;
    grid-template-columns: 180px repeat(4, 1fr) 1fr;
    gap: 6px;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid var(--border);
  }
  .wellness-row:last-child { border-bottom: none; }
  .wellness-row label { font-weight: 500; }
  .wellness-row input { width: 100%; }
  .wellness-row .jugador-nombre { font-weight: 500; padding-left: 8px; }

  /* ESCALA WELLNESS (visual, clara) */
  .wellness-escala-legend {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: var(--bg-tint);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: 12px;
  }
  .wellness-escala-legend .legend-label {
    font-weight: 600;
    color: var(--text-soft);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 10.5px;
  }
  .wellness-escala-legend .legend-gradient {
    flex: 1;
    margin: 0 14px;
    height: 10px;
    border-radius: 2px;
    background: linear-gradient(to right, #4f6b3a 0%, #82a55c 25%, #d4a017 55%, #c45635 80%, #8b1428 100%);
  }
  .wellness-escala-legend .legend-ends {
    color: var(--text-soft);
    font-size: 11.5px;
    font-weight: 500;
  }
  .wellness-question {
    margin-bottom: 22px;
  }
  .wellness-question-title {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 4px;
  }
  .wellness-question-title h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    font-family: Inter, system-ui, sans-serif;
    margin: 0;
  }
  .wellness-question-title .badge-meaning {
    font-size: 10.5px;
    padding: 2px 8px;
    border-radius: 2px;
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }
  .wellness-question-title .badge-meaning.bad {
    background: var(--danger-soft);
    color: var(--danger);
  }
  .wellness-question .scale-ends {
    display: flex;
    justify-content: space-between;
    font-size: 11.5px;
    color: var(--text-soft);
    margin-bottom: 6px;
  }
  .wellness-question .scale-ends .end-low { color: var(--danger); font-weight: 500; }
  .wellness-question .scale-ends .end-high { color: var(--accent); font-weight: 500; }
  .wellness-scale {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
  }
  .wellness-scale button {
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--text-soft);
    padding: 10px 0;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 2px;
    font-family: Inter, system-ui, sans-serif;
    transition: transform 0.1s, border-color 0.15s;
  }
  .wellness-scale button:hover {
    border-color: var(--text);
    transform: translateY(-1px);
  }
  .wellness-scale button[data-value="1"] { border-bottom: 3px solid #4f6b3a; }
  .wellness-scale button[data-value="2"] { border-bottom: 3px solid #6e7f48; }
  .wellness-scale button[data-value="3"] { border-bottom: 3px solid #9a9a50; }
  .wellness-scale button[data-value="4"] { border-bottom: 3px solid #d4a017; }
  .wellness-scale button[data-value="5"] { border-bottom: 3px solid #c45635; }
  .wellness-scale button[data-value="6"] { border-bottom: 3px solid #b04028; }
  .wellness-scale button[data-value="7"] { border-bottom: 3px solid #8b1428; }
  .wellness-scale button[data-value="1"].selected { background: #4f6b3a; border-color: #4f6b3a; }
  .wellness-scale button[data-value="2"].selected { background: #6e7f48; border-color: #6e7f48; }
  .wellness-scale button[data-value="3"].selected { background: #9a9a50; border-color: #9a9a50; }
  .wellness-scale button[data-value="4"].selected { background: #d4a017; border-color: #d4a017; }
  .wellness-scale button[data-value="5"].selected { background: #c45635; border-color: #c45635; }
  .wellness-scale button[data-value="6"].selected { background: #b04028; border-color: #b04028; }
  .wellness-scale button[data-value="7"].selected { background: #8b1428; border-color: #8b1428; }

  /* Mini escalas en grid masivo */
  .wellness-mini-scale {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
  }
  .wellness-mini-scale button {
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--text-soft);
    padding: 6px 0;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 2px;
    font-family: Inter, system-ui, sans-serif;
  }
  .wellness-mini-scale button[data-value="1"].selected,
  .wellness-mini-scale button[data-value="2"].selected,
  .wellness-mini-scale button[data-value="3"].selected { background: #b04028; color: #fdfaf3; border-color: #b04028; }
  .wellness-mini-scale button[data-value="4"].selected,
  .wellness-mini-scale button[data-value="5"].selected { background: #d4a017; color: #fdfaf3; border-color: #d4a017; }
  .wellness-mini-scale button[data-value="6"].selected,
  .wellness-mini-scale button[data-value="7"].selected { background: #c8a020; color: #fdfaf3; border-color: #c8a020; }

  /* Tabla wellness: celdas con color de fondo segun valor */
  .wellness-cell {
    display: inline-block;
    min-width: 28px;
    padding: 4px 8px;
    border-radius: 2px;
    font-weight: 600;
    font-size: 12px;
  }
  .wellness-cell[data-color="1"] { background: #4f6b3a; color: #fdfaf3; }
  .wellness-cell[data-color="2"] { background: #6e7f48; color: #fdfaf3; }
  .wellness-cell[data-color="3"] { background: #9a9a50; color: #fdfaf3; }
  .wellness-cell[data-color="4"] { background: #d4a017; color: #fdfaf3; }
  .wellness-cell[data-color="5"] { background: #c45635; color: #fdfaf3; }
  .wellness-cell[data-color="6"] { background: #b04028; color: #fdfaf3; }
  .wellness-cell[data-color="7"] { background: #8b1428; color: #fdfaf3; }

  /* FORM ROW (genético) */
  .form-row {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  /* ESTADO jugador */
  .estado-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
  }
  .estado-tag.disponible { background: #d1fae5; color: #065f46; }
  .estado-tag.duda { background: #fef3c7; color: #92400e; }
  .estado-tag.lesionado { background: #fee2e2; color: #991b1b; }
  .estado-tag.baja { background: #f3f4f6; color: #6b7280; }

  /* POSICIÓN jugador */
  .pos-tag {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    background: var(--primary-light);
    color: var(--primary);
  }

  /* SEMÁFORO READINESS */
  .semaforo {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
  }
  .semaforo .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
  }
  .semaforo.ok { background: var(--accent-soft); color: var(--accent); }
  .semaforo.ok .dot { background: var(--accent); }
  .semaforo.warn { background: var(--warn-soft); color: var(--warn); }
  .semaforo.warn .dot { background: var(--warn); }
  .semaforo.danger { background: var(--danger-soft); color: var(--danger); }
  .semaforo.danger .dot { background: var(--danger); }
  .semaforo.none { background: var(--bg-tint); color: var(--muted); }
  .semaforo.none .dot { background: var(--border-strong); }

  /* ACWR badges - severidad */
  .acwr-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    font-family: Inter, system-ui, sans-serif;
  }
  .acwr-badge.acwr-optimo { background: var(--accent-soft); color: var(--accent); }
  .acwr-badge.acwr-bajo { background: var(--bg-tint); color: var(--muted); }
  .acwr-badge.acwr-extremo-bajo { background: var(--bg-tint); color: var(--muted); border: 1px dashed var(--muted); }
  .acwr-badge.acwr-riesgo { background: var(--warn-soft); color: var(--warn); }
  .acwr-badge.acwr-alto { background: var(--danger-soft); color: var(--danger); }
  .acwr-badge.acwr-extremo { background: var(--danger); color: white; }

  /* Panel de alertas ACWR */
  .alertas-panel {
    margin: 16px 0;
    padding: 16px 20px;
    border-radius: 4px;
    border: 1px solid var(--border);
    background: var(--card);
  }
  .alertas-panel.alertas-ok {
    border-color: var(--accent);
    background: var(--accent-soft);
  }
  .alertas-panel.alertas-warn {
    border-color: var(--warn);
    background: var(--warn-soft);
  }
  .alertas-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 8px;
  }
  .alertas-title {
    font-family: Inter, system-ui, sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
  }
  .alertas-sub {
    font-size: 12px;
    color: var(--text-soft);
  }
  .alertas-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 8px;
  }
  .alerta-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: var(--card);
    border-radius: 3px;
    border-left: 3px solid var(--border-strong);
  }
  .alerta-item.alerta-acwr-optimo { border-left-color: var(--accent); }
  .alerta-item.alerta-acwr-bajo { border-left-color: var(--muted); }
  .alerta-item.alerta-acwr-extremo-bajo { border-left-color: var(--muted); }
  .alerta-item.alerta-acwr-riesgo { border-left-color: var(--warn); }
  .alerta-item.alerta-acwr-alto { border-left-color: var(--danger); }
  .alerta-item.alerta-acwr-extremo { border-left-color: var(--danger); background: var(--danger-soft); }
  .alerta-icono {
    font-family: Inter, system-ui, sans-serif;
    font-size: 14px;
    font-weight: 700;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-tint);
    color: var(--text-soft);
    flex-shrink: 0;
  }
  .alerta-item.alerta-acwr-optimo .alerta-icono { background: var(--accent); color: white; }
  .alerta-item.alerta-acwr-riesgo .alerta-icono { background: var(--warn); color: white; }
  .alerta-item.alerta-acwr-alto .alerta-icono,
  .alerta-item.alerta-acwr-extremo .alerta-icono { background: var(--danger); color: white; }
  .alerta-info { flex: 1; min-width: 0; }
  .alerta-nombre {
    font-weight: 600;
    font-size: 13px;
    color: var(--text);
  }
  .alerta-valor {
    font-size: 11px;
    color: var(--text-soft);
    margin-top: 2px;
  }
  .alerta-etiqueta {
    margin-left: 6px;
    padding: 1px 6px;
    border-radius: 2px;
    font-weight: 600;
  }
  .alerta-item.alerta-acwr-optimo .alerta-etiqueta { background: var(--accent-soft); color: var(--accent); }
  .alerta-item.alerta-acwr-riesgo .alerta-etiqueta { background: var(--warn-soft); color: var(--warn); }
  .alerta-item.alerta-acwr-alto .alerta-etiqueta,
  .alerta-item.alerta-acwr-extremo .alerta-etiqueta { background: var(--danger-soft); color: var(--danger); }
  .alerta-accion {
    font-size: 11px;
    color: var(--muted);
    text-align: right;
  }
  .alerta-tip {
    font-style: italic;
  }

  /* RESTQ-Sport */
  .restq-dim {
    margin-bottom: 16px;
    padding: 12px;
    background: var(--bg-tint);
    border-radius: 3px;
  }
  .restq-dim-label {
    font-family: Inter, system-ui, sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 0.08em;
    margin-bottom: 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--border);
  }
  .restq-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid var(--border);
    gap: 12px;
  }
  .restq-item:last-child { border-bottom: none; }
  .restq-texto {
    flex: 1;
    font-size: 13px;
    color: var(--text);
  }
  .restq-escala {
    display: flex;
    gap: 2px;
    flex-shrink: 0;
  }
  .restq-escala button {
    width: 32px;
    height: 32px;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--text-soft);
    font-family: Inter, system-ui, sans-serif;
    font-size: 12px;
    font-weight: 500;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
  }
  .restq-escala button:hover {
    background: var(--bg-tint);
    border-color: var(--border-strong);
  }
  .restq-escala button.selected {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
  }

  /* Quintetos */
  .quintetos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 8px;
  }
  .quinteto-card {
    background: var(--bg-tint);
    border: 1px solid var(--border);
    border-radius: 3px;
    padding: 10px 12px;
    position: relative;
  }
  .quinteto-rank {
    position: absolute;
    top: 8px;
    right: 10px;
    font-family: Inter, system-ui, sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
  }
  .quinteto-jugadores {
    font-size: 12px;
    font-weight: 500;
    color: var(--text);
    line-height: 1.4;
    margin-bottom: 8px;
    padding-right: 30px;
  }
  .quinteto-stats {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 11px;
    color: var(--text-soft);
  }
  .quinteto-stats strong {
    color: var(--text);
    font-size: 13px;
  }

  /* Microcycle inteligente */
  .microcycle-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .microcycle-partido {
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
  }
  .microcycle-partido:last-child { border-bottom: none; }
  .microcycle-titulo {
    font-family: Inter, system-ui, sans-serif;
    font-size: 13px;
    color: var(--text);
    margin-bottom: 6px;
  }
  .microcycle-dias {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 6px;
  }
  .microcycle-dia {
    padding: 8px 10px;
    border-radius: 3px;
    border-left: 3px solid var(--border-strong);
    background: var(--bg-tint);
  }
  .microcycle-alerta { border-left-color: var(--danger); background: var(--danger-soft); }
  .microcycle-pre { border-left-color: var(--accent); }
  .microcycle-partido { border-left-color: var(--primary); background: var(--primary-soft); }
  .microcycle-post { border-left-color: var(--warn); }
  .microcycle-b2b { border-left-color: var(--danger); }
  .microcycle-fecha {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-soft);
    margin-bottom: 2px;
  }
  .microcycle-tipo {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text);
    margin-bottom: 4px;
  }
  .microcycle-texto {
    font-size: 12px;
    color: var(--text);
    font-weight: 500;
  }
  .microcycle-detalle {
    font-size: 11px;
    margin-top: 2px;
  }

  /* GRID 2 columns */
  .grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
  }
  @media (max-width: 900px) {
    .grid-2 { grid-template-columns: 1fr; }
  }
  .row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
  .row > * { flex: 0 0 auto; }
  .spacer { flex: 1; }
  .text-muted { color: var(--muted); font-size: 12px; }
  .text-warn { color: var(--warn); }
  .text-danger { color: var(--danger); }
  .text-success { color: var(--accent-dark); }
  .small { font-size: 11px; }
  .mt-1 { margin-top: 8px; }
  .mt-2 { margin-top: 16px; }
  .mt-3 { margin-top: 24px; }
  .mb-1 { margin-bottom: 8px; }
  .mb-2 { margin-bottom: 16px; }
  .help-block {
    background: var(--gold-soft);
    border-left: 3px solid var(--gold);
    color: var(--text-soft);
    padding: 12px 16px;
    border-radius: 2px;
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 16px;
  }

  /* v2.4: CARGAS — MODO TOGGLE */
  .cargas-mode-toggle {
    display: flex;
    gap: 6px;
    margin-bottom: 14px;
    padding: 4px;
    background: var(--card-alt);
    border: 1px solid var(--border);
    border-radius: 10px;
    width: fit-content;
  }
  /* v2.6: PLANIFICACIÓN — Selector de tipo activo (pills grandes) */
  .plan-tipo-selector {
    margin-bottom: 12px;
  }
  .pts-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: var(--card-alt);
    border: 1px solid var(--border);
    border-radius: 10px;
  }
  .pts-label {
    font-size: 12px;
    font-weight: 800;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.4px;
  }
  .pts-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--card);
    border: 1.5px solid var(--border);
    border-radius: 8px;
    color: var(--text-soft);
    cursor: pointer;
    font: inherit;
    font-size: 12.5px;
    font-weight: 600;
    transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
  }
  .pts-pill:hover { border-color: var(--c, var(--primary)); color: var(--text); }
  /* v2.9 — Pill activa: fill suave con color del tipo, check sutil, sin halo rojo */
  .pts-pill.active {
    background: color-mix(in srgb, var(--c, var(--primary)) 12%, var(--card));
    border-color: var(--c, var(--primary));
    color: var(--text);
    font-weight: 700;
  }
  .pts-pill.active .pts-name { color: var(--text); }
  .pts-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    border-radius: 3px;
    background: transparent;
    border: 1.5px solid var(--border);
    color: transparent;
    flex-shrink: 0;
  }
  .pts-pill.active .pts-check {
    background: var(--c, var(--primary));
    border-color: var(--c, var(--primary));
    color: white;
  }
  .pts-pill-none .pts-check { background: var(--muted); }
  .pts-pill-none { --c: var(--muted); }
  .pts-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--c);
    flex-shrink: 0;
  }
  .pts-pill-none .pts-dot { display: none; }

  /* v2.8: Quick actions (Rápido + Semanas tipo) eliminados — CSS muerto limpiado */

  /* v2.11 — Modo Partido MÓVIL: cancha + banquillo (mobile-first) */
  #subtab-partido { padding: 0; }
  #subtab-partido .partido-mobile-wrap {
    max-width: 100%;
    margin: 0 auto;
    padding: 8px;
    box-sizing: border-box;
  }
  /* v2.11: en mobile, el card del detalle no debe tener padding ni radius (a sangre) */
  @media (max-width: 768px) {
    #app-shell {
      grid-template-columns: 1fr;
      grid-template-areas:
        "header"
        "main";
    }
    #app-shell > aside.sidebar {
      position: fixed;
      top: 0;
      left: 0;
      bottom: 0;
      width: 280px;
      max-width: 80vw;
      z-index: 200;
      transform: translateX(-100%);
      transition: transform 0.22s ease;
      box-shadow: 4px 0 20px rgba(0,0,0,0.35);
    }
    #app-shell.sidebar-open > aside.sidebar {
      transform: translateX(0);
    }
    #app-shell.sidebar-open::after {
      content: "";
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,0.5);
      z-index: 199;
    }
    #app-shell > main {
      padding: 10px 10px 80px;
    }
    .card {
      padding: 12px;
      margin-bottom: 12px;
    }
    /* partido subtab: full width sin padding del card */
    #partido-detalle-card {
      padding: 0 !important;
      border-radius: 0 !important;
      border-left: none !important;
      border-right: none !important;
      margin-left: -10px;
      margin-right: -10px;
    }
    #subtab-partido .partido-mobile-wrap {
      padding: 6px;
    }
    /* botones header en mobile más compactos */
    .header-actions { gap: 4px; }
    .header-actions button { padding: 6px 8px; font-size: 11.5px; }
    /* subtabs scroll horizontal si no caben */
    .subtabs {
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
      flex-wrap: nowrap;
    }
    .subtab { flex-shrink: 0; white-space: nowrap; }
    /* botón hamburguesa visible solo en mobile */
    #sidebar-toggle { display: inline-flex !important; align-items: center; }
  }
  .pm-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 8px 12px;
    margin-bottom: 10px;
    position: sticky;
    top: 0;
    z-index: 10;
    gap: 10px;
    flex-wrap: wrap;
  }
  .pm-header-rival-block { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
  .pm-header-eq { display: flex; align-items: center; gap: 4px; font-size: 11.5px; }
  .pm-header-eq strong { color: var(--text); font-weight: 700; max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .pm-header-eq-local { color: var(--text); }
  .pm-header-eq-visit { color: var(--text-soft); }
  .pm-header-eq-label { font-size: 12px; }
  .pm-header-marcador {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--secondary);
    color: #fff;
    padding: 6px 14px;
    border-radius: 8px;
    font-variant-numeric: tabular-nums;
  }
  .pm-header-pts { font-size: 20px; font-weight: 900; min-width: 24px; text-align: center; }
  .pm-header-pts-sep { font-size: 16px; opacity: 0.7; }
  .pm-header-info-block { display: flex; align-items: center; gap: 8px; }
  .pm-header-faltas {
    display: flex; align-items: center; gap: 4px;
    background: rgba(245,158,11,0.15);
    color: #b45309;
    padding: 5px 9px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 12px;
  }
  .pm-header-faltas-label { font-size: 9.5px; font-weight: 800; background: #b45309; color: #fff; padding: 1px 5px; border-radius: 3px; }
  .pm-header-falta-btn {
    background: var(--warn);
    color: #fff;
    border: none;
    padding: 5px 9px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 11.5px;
    cursor: pointer;
    font-family: inherit;
  }
  .pm-header-reset-btn {
    background: var(--card-alt);
    color: var(--muted);
    border: 1px solid var(--border);
    padding: 5px 9px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 11.5px;
    cursor: pointer;
    font-family: inherit;
  }
  .pm-header-reset-btn:hover { background: var(--card); color: var(--text); border-color: var(--primary); }
  .pm-header-falta-btn:hover { background: #b45309; }

  /* v2.42: Part Id partido — vista práctica 1 pantalla (sin pista) */
  .pm-howto {
    background: linear-gradient(135deg, rgba(59,130,246,0.10), rgba(59,130,246,0.04));
    border: 1px solid rgba(59,130,246,0.25);
    border-left: 3px solid #3b82f6;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 11.5px;
    line-height: 1.45;
    color: var(--text-soft);
    margin-bottom: 10px;
  }
  .pm-howto strong { color: var(--text); }
  .pm-section {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 10px;
  }
  .pm-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border);
  }
  .pm-section-title {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--muted);
  }
  .pm-section-count {
    font-size: 10.5px;
    font-weight: 700;
    color: var(--primary);
    background: rgba(184,28,44,0.08);
    padding: 2px 8px;
    border-radius: 10px;
  }

  /* Lista de jugadores en cancha (5 max, tarjetas grandes) */
  .pm-cancha-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 6px;
  }
  .pm-cancha-card {
    display: grid;
    grid-template-columns: 44px 1fr 36px 90px;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: var(--card-alt);
    border: 1.5px solid var(--primary);
    border-left: 4px solid var(--primary);
    border-radius: 8px;
    min-height: 60px;
  }
  .pm-cancha-card.is-fouled { border-color: #f59e0b; border-left-color: #f59e0b; background: rgba(245,158,11,0.08); }
  .pm-cancha-card.is-fouled-out { border-color: #dc2626; border-left-color: #dc2626; background: rgba(220,38,38,0.08); }
  .pm-cancha-dorsal {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 15px;
    flex-shrink: 0;
  }
  .pm-cancha-info { flex: 1; min-width: 0; }
  .pm-cancha-nombre {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.15;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .pm-cancha-meta {
    font-size: 10.5px;
    color: var(--muted);
    margin-top: 2px;
    display: flex;
    gap: 6px;
    align-items: center;
  }
  .pm-cancha-pos {
    font-size: 9.5px;
    background: var(--card);
    padding: 1px 5px;
    border-radius: 3px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-weight: 700;
  }
  .pm-cancha-min { font-weight: 700; color: var(--primary); }
  .pm-cancha-faltas {
    font-size: 9.5px;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 8px;
  }
  .pm-cancha-faltas.ok { background: rgba(16,185,129,0.15); color: #047857; }
  .pm-cancha-faltas.warn { background: rgba(245,158,11,0.18); color: #b45309; }
  .pm-cancha-faltas.danger { background: #dc2626; color: white; }
  .pm-cancha-sacar {
    background: white;
    color: var(--primary);
    border: 1.5px solid var(--primary);
    padding: 6px 10px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 11px;
    cursor: pointer;
    font-family: inherit;
    min-height: 36px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }
  .pm-cancha-sacar:hover { background: var(--primary); color: white; }
  .pm-cancha-sacar:active { transform: scale(0.97); }
  /* v2.43: acciones agrupadas (sacar + tiempo) */
  .pm-cancha-actions, .pm-bench-actions {
    display: flex;
    gap: 4px;
    align-items: stretch;
  }
  .pm-cambio-tiempo-btn {
    background: var(--card-alt);
    color: var(--text-soft);
    border: 1.5px solid var(--border);
    padding: 6px 8px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    font-family: inherit;
    min-height: 36px;
    min-width: 36px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }
  .pm-cambio-tiempo-btn:hover { background: var(--card); color: var(--primary); border-color: var(--primary); }
  .pm-cambio-tiempo-btn:active { transform: scale(0.95); }
  /* v2.43: controles de falta individuales */
  .pm-cancha-faltas-ctrls {
    display: flex;
    gap: 2px;
    flex-direction: column;
    align-items: center;
  }
  .pm-bench-faltas-ctrls {
    flex-direction: column;
  }
  .pm-falta-btn {
    background: var(--card-alt);
    color: var(--muted);
    border: 1px solid var(--border);
    padding: 2px 0;
    border-radius: 4px;
    font-weight: 800;
    font-size: 10px;
    cursor: pointer;
    font-family: inherit;
    height: 16px;
    width: 100%;
    min-width: 32px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    line-height: 1;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .pm-falta-btn:hover { background: var(--card); color: var(--text); }
  .pm-falta-btn:active { transform: scale(0.94); }
  .pm-falta-btn.pm-falta-inc { color: #b45309; border-color: rgba(245,158,11,0.5); }
  .pm-falta-btn.pm-falta-inc:hover { background: rgba(245,158,11,0.15); }
  .pm-falta-btn.pm-falta-dec { color: var(--muted); }
  .pm-falta-btn[disabled] { opacity: 0.3; cursor: not-allowed; }
  /* v2.43: dorsal cambia color con foul trouble */
  .pm-cancha-dorsal.is-fouled-dorsal { background: #f59e0b; color: white; }
  .pm-cancha-dorsal.is-fouled-out-dorsal { background: #dc2626; color: white; }
  .pm-bench-dorsal.is-fouled-dorsal { background: rgba(245,158,11,0.15); color: #b45309; border-color: #f59e0b; }
  .pm-bench-dorsal.is-fouled-out-dorsal { background: rgba(220,38,38,0.15); color: #dc2626; border-color: #dc2626; }
  /* v2.43: badge de faltas en banquillo (siempre visible) */
  .pm-bench-fouled-badge {
    font-size: 10px;
    font-weight: 700;
    color: var(--muted);
    background: var(--card);
    padding: 1px 5px;
    border-radius: 4px;
    border: 1px solid var(--border);
  }
  /* v2.43: selector de Q en modal de cambio */
  .pm-cambio-q {
    flex: 1;
    padding: 8px 4px;
    background: var(--card-alt);
    color: var(--text);
    border: 1.5px solid var(--border);
    border-radius: 6px;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }
  .pm-cambio-q:hover { background: var(--card); }
  .pm-cambio-q.active { background: var(--primary); color: white; border-color: var(--primary); }
  .pm-cambio-q:active { transform: scale(0.97); }
  /* v2.44: radio cards de selección de jugador (sustituto / a quién sacar) */
  .pm-sust-opt {
    display: grid;
    grid-template-columns: 18px 36px 1fr auto;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: var(--card-alt);
    border: 1.5px solid var(--border);
    border-radius: 8px;
    transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
  }
  .pm-sust-opt:hover { background: var(--card); border-color: var(--primary); }
  .pm-sust-opt:has(input:checked) { background: rgba(184,28,44,0.06); border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
  .pm-sust-opt input[type="radio"] { margin: 0; cursor: pointer; }
  .pm-sust-opt-dorsal {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--card);
    color: var(--text);
    border: 1.5px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 12px;
  }
  .pm-sust-opt:has(input:checked) .pm-sust-opt-dorsal { background: var(--primary); color: white; border-color: var(--primary); }
  .pm-sust-opt-info { min-width: 0; }
  .pm-sust-opt-nombre { font-size: 12.5px; font-weight: 700; color: var(--text); line-height: 1.1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .pm-sust-opt-meta { font-size: 10px; color: var(--muted); margin-top: 2px; }
  .pm-sust-opt-tag {
    font-size: 9px;
    font-weight: 800;
    background: var(--accent);
    color: white;
    padding: 2px 6px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
  }
  .pm-sust-opt-sinsust .pm-sust-opt-dorsal { display: none; }
  .pm-sust-opt-sinsust { grid-template-columns: 18px 1fr; }
  .pm-cancha-empty {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 12px;
    background: var(--card-alt);
    border: 2px dashed var(--border);
    border-radius: 8px;
    text-align: center;
  }
  .pm-cancha-empty-text { color: var(--muted); font-size: 12px; }
  .pm-cancha-empty-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    font-family: inherit;
    min-height: 40px;
  }
  .pm-cancha-empty-btn:hover { background: #9a1625; }

  /* Lista de jugadores en banquillo (cards horizontales) */
  .pm-banquillo-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 6px;
  }
  .pm-bench-card {
    display: grid;
    grid-template-columns: 38px 1fr 36px 90px;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: var(--card-alt);
    border: 1.5px solid var(--border);
    border-radius: 8px;
    min-height: 56px;
  }
  .pm-bench-dorsal {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--card);
    color: var(--text);
    border: 1.5px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 13px;
    flex-shrink: 0;
  }
  .pm-bench-card.is-fouled { border-color: #f59e0b; background: rgba(245,158,11,0.05); }
  .pm-bench-card.is-fouled-out { border-color: #dc2626; background: rgba(220,38,38,0.05); opacity: 0.7; }
  .pm-bench-info { flex: 1; min-width: 0; }
  .pm-bench-nombre {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .pm-bench-meta {
    font-size: 10px;
    color: var(--muted);
    margin-top: 2px;
    display: flex;
    gap: 6px;
    align-items: center;
  }
  .pm-bench-pos {
    font-size: 9px;
    background: var(--card);
    padding: 1px 5px;
    border-radius: 3px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-weight: 700;
  }
  .pm-bench-fouled { font-weight: 700; color: #b45309; }
  .pm-bench-fouled-out { font-weight: 700; color: #dc2626; }
  .pm-bench-meter {
    background: var(--accent);
    color: white;
    border: none;
    padding: 6px 10px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 11px;
    cursor: pointer;
    font-family: inherit;
    min-height: 36px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }
  .pm-bench-meter:hover { background: #047857; }
  .pm-bench-meter:active { transform: scale(0.97); }
  .pm-bench-meter[disabled] { background: var(--muted); cursor: not-allowed; opacity: 0.6; }
  .pm-bench-empty {
    grid-column: 1 / -1;
    padding: 20px 12px;
    text-align: center;
    color: var(--muted);
    font-size: 11.5px;
    font-style: italic;
  }

  /* Cronología de cambios (lista cronológica invertida) */
  .pm-cronologia {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 320px;
    overflow-y: auto;
  }
  .pm-crono-item {
    display: grid;
    grid-template-columns: 50px 1fr 24px;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    background: var(--card-alt);
    border-left: 3px solid var(--primary);
    border-radius: 5px;
    font-size: 11.5px;
  }
  .pm-crono-item.es-falta { border-left-color: #f59e0b; }
  .pm-crono-item.es-evento { border-left-color: #3b82f6; }
  .pm-crono-cuarto {
    background: var(--secondary);
    color: white;
    font-size: 9.5px;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 800;
    text-align: center;
    line-height: 1.15;
  }
  .pm-crono-cuarto-tiempo {
    font-size: 9px;
    opacity: 0.8;
    margin-top: 1px;
  }
  .pm-crono-text { flex: 1; line-height: 1.3; }
  .pm-crono-text .sale { color: #dc2626; font-weight: 700; }
  .pm-crono-text .entra { color: #047857; font-weight: 700; }
  .pm-crono-x {
    background: none;
    border: none;
    color: var(--muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    font-size: 14px;
  }
  .pm-crono-x:hover { color: var(--danger); background: var(--card); }
  .pm-crono-empty {
    padding: 20px 12px;
    text-align: center;
    color: var(--muted);
    font-size: 11.5px;
    font-style: italic;
  }
  /* Acciones adicionales del header (Q, undo, live) */
  .pm-header-actions-block {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
  }
  .pm-header-action {
    background: var(--card-alt);
    color: var(--text);
    border: 1px solid var(--border);
    padding: 5px 9px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 11px;
    cursor: pointer;
    font-family: inherit;
    min-height: 32px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }
  .pm-header-action:hover { background: var(--card); border-color: var(--primary); }
  .pm-header-action:active { transform: scale(0.97); }
  .pm-header-action[disabled] { opacity: 0.4; cursor: not-allowed; }
  .pm-header-action.pm-header-live {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
  }
  .pm-header-action.pm-header-live:hover { background: #9a1625; }
  /* ===== FIN modo partido v2.42 ===== */

  /* v2.41: layout 2 columnas (cancha + side) */
  .pm-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 10px;
  }
  @media (max-width: 980px) {
    .pm-layout { grid-template-columns: 1fr; }
  }
  .pm-col-cancha { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
  .pm-col-side { display: flex; flex-direction: column; gap: 8px; min-width: 0; }

  /* v2.41: stats en pista */
  .pm-stats-wrap {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 12px;
  }
  .pm-stats-title {
    font-size: 10.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--muted);
    margin-bottom: 6px;
  }
  .pm-stats-list { display: flex; flex-direction: column; gap: 4px; }
  .pm-stat-row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 7px;
    background: var(--card-alt);
    border-radius: 5px;
    font-size: 11px;
  }
  .pm-stat-row.is-pivot { background: rgba(184,28,44,0.10); }
  .pm-stat-dorsal { background: var(--primary); color: #fff; font-weight: 800; font-size: 10px; padding: 2px 5px; border-radius: 3px; min-width: 22px; text-align: center; }
  .pm-stat-nombre { font-weight: 700; color: var(--text); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
  .pm-stat-pos { font-size: 9px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.3px; }
  .pm-stat-min { font-size: 10px; color: var(--muted); font-weight: 600; }
  .pm-stat-faltas { font-size: 9.5px; font-weight: 800; padding: 1px 5px; border-radius: 8px; }
  .pm-stat-faltas.ok { background: rgba(16,185,129,0.15); color: var(--accent); }
  .pm-stat-faltas.warn { background: rgba(245,158,11,0.18); color: #b45309; }
  .pm-stat-faltas.danger { background: rgba(220,38,38,0.18); color: #b91c1c; }
  .pm-stats-empty { padding: 12px; text-align: center; color: var(--muted); font-size: 11.5px; font-style: italic; }

  /* v2.41: timeline cronológico */
  .pm-timeline-wrap {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 12px;
    max-height: 380px;
    overflow-y: auto;
  }
  .pm-timeline-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 10.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--muted);
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border);
  }
  .pm-timeline-count {
    background: var(--primary);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 1px 7px;
    border-radius: 10px;
  }
  .pm-timeline-list { display: flex; flex-direction: column; gap: 4px; }
  .pm-tl-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    background: var(--card-alt);
    border-radius: 5px;
    border-left: 3px solid var(--primary);
    font-size: 10.5px;
    line-height: 1.3;
  }
  .pm-tl-item.es-falta { border-left-color: #f59e0b; }
  .pm-tl-item.es-evento { border-left-color: #3b82f6; }
  .pm-tl-cuarto {
    background: var(--secondary);
    color: #fff;
    font-size: 9px;
    padding: 1px 5px;
    border-radius: 3px;
    font-weight: 800;
    min-width: 24px;
    text-align: center;
  }
  .pm-tl-tiempo { font-size: 9.5px; color: var(--muted); font-weight: 600; min-width: 32px; }
  .pm-tl-icon { font-size: 12px; }
  .pm-tl-text { flex: 1; }
  .pm-tl-text strong { color: var(--text); }
  .pm-tl-text .sale { color: #dc2626; }
  .pm-tl-text .entra { color: #10b981; }
  .pm-tl-empty { padding: 20px 8px; text-align: center; color: var(--muted); font-size: 11.5px; font-style: italic; }
  .pm-header-info { display: flex; flex-direction: column; gap: 2px; }
  .pm-header-rival { font-size: 13px; font-weight: 800; color: var(--text); }
  .pm-header-meta { font-size: 11px; color: var(--muted); }
  .pm-header-cuarto {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--primary);
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    min-width: 64px;
  }
  .pm-header-cuarto-label { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; opacity: 0.85; }
  .pm-header-cuarto-tiempo { font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; }

  /* ===== v2.12 — INICIO (dashboard del entrenador) ===== */
  .inicio-wrap { padding: 4px 0 60px; max-width: 1200px; margin: 0 auto; }
  .inicio-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding: 4px 0 18px;
    border-bottom: 1px solid var(--border);
  }
  .inicio-hero-eyebrow {
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--muted);
    margin-bottom: 4px;
  }
  .inicio-hero-title {
    font-family: Inter, system-ui, sans-serif;
    font-size: 32px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.05;
    margin: 0 0 4px;
    letter-spacing: -0.018em;
  }
  .inicio-hero-name { color: var(--primary); }
  .inicio-hero-sub {
    font-size: 13.5px;
    color: var(--muted);
    margin: 0;
  }
  .inicio-hero-actions { display: flex; gap: 8px; }
  .inicio-hero-actions .btn { display: inline-flex; align-items: center; gap: 6px; }

  /* KPIs */
  .inicio-kpis {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 24px;
  }
  .inicio-kpi {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px 18px;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.18s, transform 0.12s;
    font-family: inherit;
    color: inherit;
  }
  .inicio-kpi:hover { border-color: var(--primary); }
  .inicio-kpi:active { transform: scale(0.99); }
  .inicio-kpi-label {
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--muted);
    margin-bottom: 6px;
  }
  .inicio-kpi-value {
    font-family: Inter, system-ui, sans-serif;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.05;
    color: var(--text);
    margin-bottom: 4px;
    letter-spacing: -0.02em;
  }
  .inicio-kpi-suffix {
    font-size: 14px;
    color: var(--muted);
    font-weight: 500;
    margin-left: 4px;
  }
  .inicio-kpi-sub { font-size: 12.5px; color: var(--muted); }
  .inicio-kpi[data-tone="primary"] { border-left: 3px solid var(--primary); }
  .inicio-kpi[data-tone="ok"] { border-left: 3px solid #10B981; }
  .inicio-kpi[data-tone="warn"] { border-left: 3px solid #F59E0B; }
  .inicio-kpi[data-tone="danger"] { border-left: 3px solid #EF4444; }
  .inicio-kpi[data-tone="gold"] { border-left: 3px solid var(--gold); }
  .inicio-kpi[data-tone="muted"] { border-left: 3px solid var(--border); }

  /* Grid 2x2 de cards grandes */
  .inicio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .inicio-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px 20px;
  }
  .inicio-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    gap: 8px;
    flex-wrap: wrap;
  }
  .inicio-card-title {
    font-family: Inter, system-ui, sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .inicio-card-title svg { width: 18px; height: 18px; color: var(--primary); }

  /* Equipos (home) */
  .inicio-equipo-card { transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease; }
  .inicio-equipo-card:hover { transform: translateY(-1px); box-shadow: 0 4px 10px rgba(0,0,0,0.08); }
  .inicio-equipo-card.activo { box-shadow: 0 2px 8px rgba(184, 28, 44, 0.15); }
  @media (max-width: 768px) {
    .inicio-equipo-card { padding: 10px !important; }
  }

  /* Hoy en microciclo */
  .inicio-hoy-content { padding: 4px 0; }
  .inicio-hoy-tipo {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 6px;
    background: var(--primary);
    color: white;
    margin-bottom: 8px;
  }
  .inicio-hoy-tipo[data-tipo="GIMNASIO"], .inicio-hoy-tipo[data-tipo="GYM"] { background: var(--gold); color: var(--secondary); }
  .inicio-hoy-tipo[data-tipo="RECUPERACIÓN"], .inicio-hoy-tipo[data-tipo="DESCANSO"] { background: #6B7280; }
  .inicio-hoy-tipo[data-tipo="PARTIDO"], .inicio-hoy-tipo[data-tipo="AMISTOSO"] { background: var(--danger); }
  .inicio-hoy-desc { font-size: 15px; color: var(--text); margin-bottom: 6px; line-height: 1.4; }
  .inicio-hoy-meta { font-size: 13px; color: var(--muted); }
  .inicio-hoy-empty { padding: 18px 0; text-align: center; }
  .inicio-hoy-empty p { margin: 0 0 10px; }

  /* Quick actions */
  .inicio-quick-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .inicio-quick-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 14px 8px;
    background: var(--card-alt);
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text);
    transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
  }
  .inicio-quick-btn:hover { background: var(--card); border-color: var(--primary); color: var(--primary); }
  .inicio-quick-btn svg { width: 22px; height: 22px; }

  /* Próximos partidos */
  .inicio-partidos-lista { display: flex; flex-direction: column; gap: 6px; }
  .inicio-partido-item {
    display: grid;
    grid-template-columns: 70px 1fr 50px;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--card-alt);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
  }
  .inicio-partido-item:hover { border-color: var(--primary); }
  .inicio-partido-fecha { text-align: center; }
  .inicio-partido-dia { font-size: 12px; font-weight: 700; color: var(--text); }
  .inicio-partido-hora { font-size: 11px; color: var(--muted); }
  .inicio-partido-rival { font-size: 13.5px; font-weight: 600; color: var(--text); }
  .inicio-partido-meta { font-size: 11.5px; color: var(--muted); }
  .inicio-partido-badge {
    background: var(--primary);
    color: white;
    font-size: 10.5px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 4px;
    text-align: center;
    letter-spacing: 0.3px;
  }

  /* Wellness */
  .inicio-wellness-bars { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
  .inicio-wellness-row {
    display: grid;
    grid-template-columns: 36px 100px 1fr;
    align-items: center;
    gap: 10px;
  }
  .inicio-wellness-count { font-family: Inter, system-ui, sans-serif; font-size: 22px; font-weight: 700; }
  .inicio-wellness-row[data-tone="ok"] .inicio-wellness-count { color: #10B981; }
  .inicio-wellness-row[data-tone="warn"] .inicio-wellness-count { color: #F59E0B; }
  .inicio-wellness-label { font-size: 12.5px; color: var(--muted); }
  .inicio-wellness-bar { height: 8px; background: var(--card-alt); border-radius: 4px; overflow: hidden; border: 1px solid var(--border); }
  .inicio-wellness-fill { height: 100%; transition: width 0.4s; }
  .inicio-wellness-row[data-tone="ok"] .inicio-wellness-fill { background: #10B981; }
  .inicio-wellness-row[data-tone="warn"] .inicio-wellness-fill { background: #F59E0B; }
  .inicio-lesiones { padding-top: 12px; border-top: 1px solid var(--border); }
  .inicio-lesiones-titulo { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.4px; color: var(--danger); margin-bottom: 6px; }
  .inicio-lesion-item { display: flex; justify-content: space-between; font-size: 12.5px; padding: 4px 0; }
  .inicio-lesion-nombre { font-weight: 600; }
  .inicio-lesion-tipo { color: var(--muted); }

  /* Último partido */
  .inicio-ultimo-rival { font-family: Inter, system-ui, sans-serif; font-size: 24px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
  .inicio-ultimo-meta { font-size: 12.5px; color: var(--muted); margin-bottom: 10px; }
  .inicio-ultimo-resultado {
    font-family: Inter, system-ui, sans-serif;
    font-size: 36px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 6px;
    letter-spacing: -0.02em;
  }
  .inicio-ultimo-stat { font-size: 13px; color: var(--muted); }

  /* Mobile: inicio */
  @media (max-width: 768px) {
    .inicio-kpis { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .inicio-kpi { padding: 12px 14px; }
    .inicio-kpi-value { font-size: 24px; }
    .inicio-grid { grid-template-columns: 1fr; }
    .inicio-hero-title { font-size: 24px; }
    .inicio-quick-grid { grid-template-columns: repeat(2, 1fr); }
    .inicio-card { padding: 14px 16px; }
  }

  /* ===== v2.13 — Análisis CMJ vs Fatiga y Carga ===== */
  .cmj-analisis-kpis {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: 4px 0 12px;
  }
  .cmj-analisis-chart-wrap {
    background: var(--card-alt);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px;
  }
  .cmj-analisis-scatter-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 14px;
  }
  .cmj-analisis-scatter-card {
    background: var(--card-alt);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 14px;
  }
  .cmj-analisis-scatter-title {
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--text);
    margin-bottom: 2px;
  }
  .cmj-analisis-scatter-meta {
    font-size: 11.5px;
    color: var(--muted);
    margin-bottom: 6px;
  }
  .cmj-analisis-scatter-canvas { background: var(--card); border-radius: 6px; }
  .cmj-analisis-eventos {
    margin-top: 14px;
    background: var(--card-alt);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 14px;
  }
  .cmj-evento-titulo {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--danger);
    margin-bottom: 8px;
  }
  .cmj-evento-vacio { font-size: 12.5px; color: var(--muted); padding: 4px 0; }
  .cmj-evento-lista { display: flex; flex-direction: column; gap: 6px; }
  .cmj-evento-item {
    display: grid;
    grid-template-columns: 100px 1fr 100px;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    background: var(--card);
    border: 1px solid var(--border);
    border-left: 3px solid var(--danger);
    border-radius: 6px;
    font-size: 12px;
  }
  .cmj-evento-fecha { font-weight: 700; color: var(--text); }
  .cmj-evento-datos { display: flex; gap: 6px; align-items: center; }
  .cmj-evento-carga { color: var(--danger); font-weight: 700; }
  .cmj-evento-cmj { color: var(--primary); font-weight: 700; }
  .cmj-evento-arrow { color: var(--muted); }
  .cmj-evento-valores { text-align: right; color: var(--muted); font-size: 11.5px; }
  @media (max-width: 768px) {
    .cmj-analisis-kpis { grid-template-columns: repeat(2, 1fr); }
    .cmj-analisis-scatter-grid { grid-template-columns: 1fr; }
    .cmj-evento-item { grid-template-columns: 1fr; gap: 4px; }
  }

  /* ============================================================
     v2.21: SALUD DEL EQUIPO — Pizarra del coach
     ============================================================ */
  .salud-kpis-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    margin-bottom: 12px;
  }
  .salud-kpi {
    border-radius: 10px;
    padding: 12px 14px;
    border-left: 4px solid var(--border);
    background: var(--card);
    border: 1px solid var(--border);
    border-left-width: 4px;
  }
  .salud-kpi-label { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-soft); margin-bottom: 4px; }
  .salud-kpi-value { font-size: 28px; font-weight: 800; line-height: 1.1; color: var(--text); }
  .salud-kpi-sub { font-size: 10.5px; color: var(--muted); margin-top: 2px; }
  .salud-kpi[data-tone="critico"] { border-left-color: #dc2626; }
  .salud-kpi[data-tone="alerta"] { border-left-color: #f59e0b; }
  .salud-kpi[data-tone="optimo"] { border-left-color: #10b981; }
  .salud-kpi[data-tone="lesion"] { border-left-color: #374151; }
  .salud-kpi[data-tone="sub"] { border-left-color: #3b82f6; }
  .salud-kpi[data-tone="acwr"] { border-left-color: #4f46e5; }

  .salud-dot {
    display: inline-block;
    width: 12px; height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
  }
  .salud-dot-verde { background: #10b981; box-shadow: 0 0 0 3px rgba(16,185,129,0.18); }
  .salud-dot-ambar { background: #f59e0b; box-shadow: 0 0 0 3px rgba(245,158,11,0.18); }
  .salud-dot-rojo { background: #dc2626; box-shadow: 0 0 0 3px rgba(220,38,38,0.18); animation: pulse-rojo 2s ease-in-out infinite; }
  .salud-dot-negro { background: #374151; box-shadow: 0 0 0 3px rgba(55,65,81,0.18); }
  .salud-dot-azul { background: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,0.18); }
  .salud-dot-gris { background: #9ca3af; box-shadow: 0 0 0 3px rgba(156,163,175,0.18); }
  @keyframes pulse-rojo {
    0%, 100% { box-shadow: 0 0 0 3px rgba(220,38,38,0.18); }
    50% { box-shadow: 0 0 0 6px rgba(220,38,38,0.30); }
  }

  .salud-tabla-wrap { margin-top: 6px; }
  .salud-tabla-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 12.5px;
  }
  .salud-tabla-table thead th {
    text-align: left;
    font-size: 10.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-soft);
    padding: 8px 10px;
    border-bottom: 2px solid var(--border);
    background: var(--card-alt);
    position: sticky;
    top: 0;
    z-index: 1;
  }
  .salud-row { cursor: pointer; transition: background 0.15s; }
  .salud-row:hover { background: var(--card-alt); }
  .salud-row td {
    padding: 10px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
  }
  .salud-tabla-mobile { display: none; }
  .salud-card {
    border: 1px solid var(--border);
    border-left-width: 4px;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 8px;
    background: var(--card);
  }
  .salud-card-header { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
  .salud-card-body { font-size: 11.5px; line-height: 1.4; margin: 6px 0; }
  .salud-card-meta { display: flex; gap: 10px; flex-wrap: wrap; font-size: 11px; color: var(--muted); }
  .salud-card-meta strong { color: var(--text); }

  @media (max-width: 900px) {
    .salud-kpis-grid { grid-template-columns: repeat(3, 1fr); }
  }
  @media (max-width: 768px) {
    .salud-kpis-grid { grid-template-columns: repeat(2, 1fr); }
    .salud-tabla-desktop { display: none; }
    .salud-tabla-mobile { display: block; }
    .salud-toolbar { flex-direction: column; align-items: stretch !important; }
  }

  /* ============================================================
     v2.22: DASHBOARD VISUAL DE SEMANA (Carga)
     ============================================================ */
  .dash-kpis {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    margin-bottom: 14px;
  }
  .dash-kpi {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 14px;
  }
  .dash-kpi-label { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-soft); margin-bottom: 4px; }
  .dash-kpi-value { font-size: 26px; font-weight: 800; line-height: 1.1; color: var(--text); }
  .dash-kpi-sub { font-size: 10.5px; color: var(--muted); margin-top: 2px; }
  .dash-kpi-sub:has(▲,▼) { font-weight: 700; }
  .dash-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .dash-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px 16px;
  }
  .dash-card-title {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-soft);
    margin-bottom: 10px;
  }
  /* Gráfico de barras */
  .dash-bar-chart {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 160px;
    gap: 6px;
    padding: 0 4px;
  }
  .dash-bar-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    justify-content: flex-end;
  }
  .dash-bar-value {
    font-size: 10.5px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
  }
  .dash-bar {
    width: 100%;
    min-height: 2px;
    border-radius: 4px 4px 0 0;
    transition: height 0.3s;
  }
  .dash-bar-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-soft);
    margin-top: 6px;
  }
  /* Distribución por tipo */
  .dash-tipo-list { display: flex; flex-direction: column; gap: 8px; }
  .dash-tipo-row {
    display: grid;
    grid-template-columns: 14px 80px 30px 1fr 40px;
    align-items: center;
    gap: 10px;
    font-size: 12.5px;
  }
  .dash-tipo-dot { width: 12px; height: 12px; border-radius: 3px; }
  .dash-tipo-name { font-weight: 700; }
  .dash-tipo-count { color: var(--text-soft); font-size: 11px; }
  .dash-tipo-bar { height: 8px; background: var(--card-alt); border-radius: 4px; overflow: hidden; }
  .dash-tipo-fill { height: 100%; transition: width 0.3s; }
  .dash-tipo-pct { font-weight: 800; text-align: right; }
  /* Rankings */
  .dash-rank-list { display: flex; flex-direction: column; gap: 6px; }
  .dash-rank-row {
    display: grid;
    grid-template-columns: 24px 1fr 90px 70px;
    align-items: center;
    gap: 10px;
    font-size: 12.5px;
  }
  .dash-rank-pos {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--card-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 11.5px;
  }
  .dash-rank-name { display: flex; gap: 6px; align-items: baseline; }
  .dash-rank-bar { height: 6px; background: var(--card-alt); border-radius: 3px; overflow: hidden; }
  .dash-rank-fill { height: 100%; transition: width 0.3s; }
  .dash-rank-ua { text-align: right; font-weight: 700; font-size: 12px; }

  @media (max-width: 1100px) {
    .dash-kpis { grid-template-columns: repeat(3, 1fr); }
    .dash-grid { grid-template-columns: 1fr; }
  }
  @media (max-width: 768px) {
    .dash-kpis { grid-template-columns: repeat(2, 1fr); }
    .dash-rank-row { grid-template-columns: 20px 1fr 60px 50px; font-size: 11.5px; }
  }
  .rotacion-timeline-wrap {
    overflow-x: auto;
    background: var(--card);
    border-radius: 8px;
  }
  .rot-timeline-grid {
    display: flex;
    flex-direction: column;
    min-width: 720px;
  }
  .rot-tl-header {
    display: grid;
    grid-template-columns: 220px repeat(4, 1fr) 80px;
    background: var(--card-alt);
    border-bottom: 2px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 2;
  }
  .rot-tl-header-cell {
    padding: 10px 12px;
    font-size: 11.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--muted);
    text-align: center;
    border-right: 1px solid var(--border);
  }
  .rot-tl-header-cell:first-child { text-align: left; }
  .rot-tl-row {
    display: grid;
    grid-template-columns: 220px repeat(4, 1fr) 80px;
    border-bottom: 1px solid var(--border);
    transition: background 0.1s;
  }
  .rot-tl-row:hover { background: var(--card-alt); }
  .rot-tl-cell {
    padding: 8px 6px;
    border-right: 1px solid var(--border);
    min-height: 44px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }
  .rot-tl-name {
    justify-content: flex-start;
    padding: 6px 12px;
  }
  .rot-tl-jugador {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
  }
  .rot-tl-pos-dot {
    width: 8px;
    height: 22px;
    border-radius: 2px;
    flex-shrink: 0;
  }
  .rot-tl-dorsal {
    font-weight: 800;
    font-size: 13px;
    color: var(--text);
    flex-shrink: 0;
    min-width: 32px;
  }
  .rot-tl-nombre {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .rot-tl-posicion {
    font-size: 10px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    flex-shrink: 0;
  }
  .rot-tl-cuarto {
    cursor: pointer;
    position: relative;
    background: var(--card);
    transition: background 0.08s;
  }
  .rot-tl-cuarto:hover { background: var(--card-alt); }
  .rot-tl-cuarto.has-stint { background: color-mix(in srgb, var(--primary) 6%, var(--card)); }
  .rot-tl-bar {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    transition: width 0.18s ease;
    opacity: 0.85;
  }
  .rot-tl-mins {
    position: relative;
    z-index: 1;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text);
    text-shadow: 0 0 4px rgba(255,255,255,0.6);
  }
  .rot-tl-total {
    background: var(--card-alt);
    flex-direction: column;
    gap: 2px;
    font-size: 12.5px;
    font-weight: 800;
  }
  .rot-tl-total.has-stint { background: color-mix(in srgb, var(--primary) 8%, var(--card-alt)); }
  .rot-tl-mins-total {
    position: relative;
    z-index: 1;
    color: var(--text);
  }
  /* ===== FIN timeline v2.10 ===== */

  /* v2.9 — Rotación: Quinteto en cancha + log de sustituciones */
  .quinteto-ahora-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-top: 4px;
  }
  .quinteto-ahora-slot {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 2px dashed var(--border);
    background: var(--card-alt);
    cursor: pointer;
    transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
    min-height: 56px;
  }
  .quinteto-ahora-slot:hover { border-color: var(--primary); background: var(--card); }
  .quinteto-ahora-slot.filled {
    background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 10%, var(--card)) 0%, var(--card) 100%);
    border-style: solid;
    border-color: var(--primary);
  }
  .quinteto-ahora-slot.empty {
    border-style: dashed;
    border-color: var(--border);
    color: var(--muted);
  }
  .qas-dorsal {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
    flex-shrink: 0;
  }
  .quinteto-ahora-slot.empty .qas-dorsal { display: none; }
  .qas-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--card);
    border: 1px dashed var(--border);
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  .qas-info { flex: 1; min-width: 0; }
  .qas-nombre {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .qas-min {
    font-size: 11px;
    color: var(--primary);
    font-weight: 600;
    margin-top: 2px;
  }
  .qas-action {
    color: var(--muted);
    flex-shrink: 0;
    display: flex;
    align-items: center;
  }
  .quinteto-ahora-slot.filled:hover .qas-action { color: var(--danger); }
  /* Log de cambios */
  .cambios-lista { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
  .cambio-item {
    display: grid;
    grid-template-columns: 60px 1fr auto 24px;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    background: var(--card-alt);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 12.5px;
  }
  .cambio-tiempo { display: flex; flex-direction: column; align-items: center; }
  .cambio-cuarto {
    background: var(--primary);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 800;
    font-size: 10.5px;
  }
  .cambio-min { font-size: 10.5px; color: var(--muted); margin-top: 2px; }
  .cambio-flecha { display: flex; flex-direction: column; gap: 2px; }
  .cambio-sale {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--danger);
    font-weight: 700;
    font-size: 12.5px;
  }
  .cambio-entra {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #059669;
    font-weight: 700;
    font-size: 12.5px;
  }
  .cambio-motivo { font-size: 11.5px; color: var(--text-soft); }
  .cambio-x {
    background: none;
    border: none;
    color: var(--muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    display: flex;
    align-items: center;
  }
  .cambio-x:hover { color: var(--danger); background: var(--card); }
  .empty-mini {
    padding: 16px;
    text-align: center;
    color: var(--muted);
    font-size: 12.5px;
    background: var(--card-alt);
    border: 1px dashed var(--border);
    border-radius: 8px;
  }

  /* v2.6: Día "can-paint" cuando hay tipo activo */
  .day.can-paint:not(.has-type) { cursor: pointer; }
  .day.can-paint:not(.has-type):hover { background: var(--card-alt); border: 1px solid var(--primary); }

  /* v2.6: Distribución por tipo (resumen anual) */
  .dist-row {
    display: grid;
    grid-template-columns: 24px 180px 1fr 90px 60px;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    border-bottom: 1px solid var(--border);
  }
  .dist-row:last-child { border-bottom: none; }
  .dist-color {
    width: 18px;
    height: 18px;
    border-radius: 4px;
  }
  .dist-name {
    font-size: 13px;
    font-weight: 600;
  }
  .dist-bar {
    height: 12px;
    background: var(--card-alt);
    border-radius: 6px;
    overflow: hidden;
  }
  .dist-bar-fill {
    height: 100%;
    border-radius: 6px;
    transition: width 0.3s;
  }
  .dist-num {
    font-size: 12px;
    color: var(--text-soft);
    text-align: right;
  }
  .dist-pct {
    font-size: 12px;
    color: var(--muted);
    text-align: right;
    font-weight: 700;
  }
  }
  .cargas-mode-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: transparent;
    border: none;
    border-radius: 7px;
    color: var(--text-soft);
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
    font-family: inherit;
  }
  .cargas-mode-btn:hover {
    background: rgba(0,0,0,0.04);
    color: var(--text);
  }
  .cargas-mode-btn.active {
    background: linear-gradient(135deg, var(--primary), #7f1d1d);
    color: #fff;
    box-shadow: 0 2px 6px rgba(184, 28, 44, 0.25);
  }

  /* v2.4: DAY NAVIGATOR (chips de días) */
  .day-navigator {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
    flex-wrap: wrap;
  }
  .day-nav-arrow {
    width: 32px;
    height: 32px;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--text);
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
    font-family: inherit;
  }
  .day-nav-arrow:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
  }
  .day-nav-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
  }
  .day-chip {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    padding: 6px 10px;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--text-soft);
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
    font-family: inherit;
    text-align: center;
  }
  .day-chip:hover {
    border-color: var(--primary);
    color: var(--text);
  }
  .day-chip.active {
    background: linear-gradient(135deg, var(--primary), #7f1d1d);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 2px 6px rgba(184, 28, 44, 0.25);
  }
  .day-chip .dow { font-size: 11px; font-weight: 700; letter-spacing: 0.04em; }
  .day-chip .num { font-size: 10px; opacity: 0.85; }
  .day-chip.has-data .num::after {
    content: " ●";
    color: #fbbf24;
  }
  .day-chip.active.has-data .num::after {
    color: #fff;
  }

  /* v2.4: PLAYER CARDS GRID */
  .players-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 10px;
    margin-bottom: 14px;
  }
  .player-load-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px;
    transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
    position: relative;
    overflow: hidden;
  }
  .player-load-card:hover {
    border-color: var(--text-soft);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  }
  .player-load-card.has-load {
    border-left: 3px solid var(--primary);
  }
  .player-load-card.is-rest {
    opacity: 0.7;
  }
  .player-load-card.is-overload {
    border-left: 3px solid #dc2626;
  }
  .plc-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
  }
  .plc-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #7f1d1d);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
  }
  .plc-info { flex: 1; min-width: 0; }
  .plc-name { font-size: 13px; font-weight: 700; color: var(--text); line-height: 1.1; }
  .plc-meta { font-size: 10.5px; color: var(--muted); margin-top: 2px; display: flex; gap: 6px; align-items: center; }
  .plc-pos {
    background: rgba(184, 28, 44, 0.1);
    color: var(--primary);
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.04em;
  }
  .plc-dorsal {
    background: var(--secondary);
    color: #f4f1ea;
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 9.5px;
    font-weight: 700;
  }
  .plc-row {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
  }
  .plc-label {
    font-size: 10px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
  }
  .plc-v-input {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--card-alt);
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    text-align: center;
  }
  .plc-v-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(184, 28, 44, 0.15);
  }
  .plc-rpe-row {
    display: grid;
    grid-template-columns: 32px 28px 1fr 28px;
    gap: 6px;
    align-items: center;
    margin-bottom: 4px;
  }
  .plc-rpe-min, .plc-rpe-max {
    font-size: 9.5px;
    color: var(--muted);
    text-align: center;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
  }
  .plc-rpe-step {
    background: var(--card-alt);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 5px;
    font-size: 14px;
    font-weight: 700;
    height: 32px;
    cursor: pointer;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }
  .plc-rpe-step:hover { background: var(--card); border-color: var(--primary); }
  .plc-rpe-step:active { transform: scale(0.94); }
  .plc-rpe-input {
    width: 100%;
    padding: 5px 8px;
    border: 1px solid var(--border);
    border-radius: 5px;
    background: var(--card-alt);
    color: var(--text);
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    text-align: center;
    height: 32px;
    -moz-appearance: textfield;
  }
  .plc-rpe-input::-webkit-outer-spin-button,
  .plc-rpe-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
  .plc-rpe-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(184, 28, 44, 0.15);
  }
  .plc-rpe-presets {
    display: flex;
    gap: 3px;
    margin-bottom: 8px;
  }
  .plc-rpe-preset {
    flex: 1;
    background: var(--card-alt);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 5px;
    padding: 4px 0;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    height: 24px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }
  .plc-rpe-preset:hover { background: var(--card); border-color: var(--primary); }
  .plc-rpe-preset.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
  }
  .plc-rpe-preset:active { transform: scale(0.96); }
  .plc-rpe-value {
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    padding: 2px 0;
    border-radius: 4px;
    background: var(--card-alt);
  }
  .plc-carga {
    text-align: center;
    padding: 8px;
    background: linear-gradient(135deg, rgba(184, 28, 44, 0.06), rgba(184, 28, 44, 0.02));
    border-radius: 6px;
    margin-bottom: 8px;
  }
  .plc-carga-label {
    font-size: 9.5px;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
  }
  .plc-carga-value {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.1;
  }
  .plc-carga.is-zero .plc-carga-value { color: var(--muted); font-weight: 600; }
  .plc-carga.is-high .plc-carga-value { color: #dc2626; }
  .plc-ewma {
    display: flex;
    justify-content: space-between;
    gap: 4px;
    font-size: 10px;
    color: var(--muted);
    padding-top: 6px;
    border-top: 1px dashed var(--border);
  }
  .plc-ewma-cell {
    text-align: center;
    flex: 1;
  }
  .plc-ewma-cell strong {
    display: block;
    font-size: 12px;
    color: var(--text);
    font-weight: 700;
  }
  .plc-ewma-cell strong.acwr-green { color: #10b981; }
  .plc-ewma-cell strong.acwr-amber { color: #f59e0b; }
  .plc-ewma-cell strong.acwr-red { color: #dc2626; }
  .plc-ewma-label {
    font-size: 8.5px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }

  /* v2.4: ACCIONES RÁPIDAS */
  .cargas-quick-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 14px;
    padding: 10px 12px;
    background: var(--card-alt);
    border: 1px solid var(--border);
    border-radius: 8px;
  }
  .cargas-quick-actions .qa-label {
    font-size: 10.5px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
    align-self: center;
    margin-right: 4px;
  }
  .qa-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    background: var(--card);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
    font-family: inherit;
  }
  .qa-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
  }
  .qa-btn.qa-danger:hover {
    background: #dc2626;
    border-color: #dc2626;
  }
  .qa-preset-mini {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 7px;
    background: var(--card);
    color: var(--text-soft);
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 10.5px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
  }
  .qa-preset-mini:hover {
    border-color: var(--primary);
    color: var(--primary);
  }

  /* v2.4: DAY STATS BAR (resumen del día) */
  .day-stats-bar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding: 12px 14px;
    background: linear-gradient(135deg, var(--card), var(--card-alt));
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-bottom: 14px;
  }
  .dsb-item {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 100px;
    padding: 0 8px;
    border-right: 1px solid var(--border);
  }
  .dsb-item:last-child { border-right: none; }
  .dsb-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    font-weight: 700;
    margin-bottom: 2px;
  }
  .dsb-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.1;
  }
  .dsb-value.green { color: #10b981; }
  .dsb-value.amber { color: #f59e0b; }
  .dsb-value.red { color: #dc2626; }

  /* v2.4: PLAYER VIEW (timeline) */
  .player-timeline-bar {
    display: flex;
    align-items: flex-end;
    height: 80px;
    gap: 4px;
    padding: 8px;
    background: var(--card-alt);
    border-radius: 8px;
    border: 1px solid var(--border);
    margin-bottom: 12px;
    overflow-x: auto;
  }
  .ptl-day {
    flex: 1;
    min-width: 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
  }
  .ptl-bar {
    width: 100%;
    background: var(--primary);
    border-radius: 3px 3px 0 0;
    transition: opacity 0.15s;
  }
  .ptl-bar.zero { background: var(--border); }
  .ptl-bar.low { background: #10b981; }
  .ptl-bar.mid { background: #f59e0b; }
  .ptl-bar.high { background: #dc2626; }
  .ptl-dow {
    font-size: 9.5px;
    color: var(--muted);
    font-weight: 700;
  }
  .ptl-val {
    font-size: 9px;
    color: var(--text-soft);
    font-weight: 600;
  }

  /* ============================================
     CARGA EXTERNA v2.4 — Cards de ejercicio
     ============================================ */
  .ce-day-navigator {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
    flex-wrap: wrap;
  }
  .ce-day-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    height: 52px;
    padding: 4px 10px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 9px;
    color: var(--text);
    cursor: pointer;
    transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
    font: inherit;
    position: relative;
  }
  .ce-day-chip:hover { background: var(--card-alt); border-color: var(--primary); }
  .ce-day-chip.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 2px 6px rgba(184, 28, 44, 0.25);
  }
  .ce-day-chip .dow { font-size: 10px; font-weight: 700; opacity: 0.7; }
  .ce-day-chip .num { font-size: 14px; font-weight: 700; }
  .ce-day-chip .has-data-dot {
    width: 5px; height: 5px; border-radius: 50%;
    background: #f59e0b;
    position: absolute; top: 6px; right: 6px;
  }
  .ce-day-chip.active .has-data-dot { background: #fef3c7; }
  .ce-day-nav-arrow {
    width: 32px; height: 32px;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--text);
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
  }
  .ce-day-nav-arrow:hover { background: var(--card-alt); border-color: var(--primary); }

  .ce-day-stats-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
    padding: 12px 16px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-bottom: 14px;
  }

  .ce-quick-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
    padding: 8px 10px;
    background: var(--card-alt);
    border: 1px solid var(--border);
    border-radius: 8px;
  }
  .ce-qa-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
    margin-right: 4px;
  }
  .ce-qa-btn {
    padding: 6px 12px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 7px;
    color: var(--text);
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
  }
  .ce-qa-btn:hover { background: var(--primary); color: white; border-color: var(--primary); }
  .ce-qa-btn.danger:hover { background: #dc2626; border-color: #dc2626; }
  .ce-qa-preset {
    padding: 5px 10px;
    background: var(--card);
    border: 1px dashed var(--border);
    border-radius: 6px;
    color: var(--text-soft);
    cursor: pointer;
    font: inherit;
    font-size: 11.5px;
    font-weight: 600;
  }
  .ce-qa-preset:hover { background: var(--card-alt); border-style: solid; border-color: var(--primary); }
  .ce-qa-preset.custom {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 1px solid #f59e0b;
    color: #92400e;
    border-style: solid;
  }
  .ce-qa-preset.custom:hover {
    background: linear-gradient(135deg, #fde68a, #fcd34d);
    border-color: #d97706;
  }
  .ce-qa-add-custom {
    padding: 5px 12px;
    background: transparent;
    border: 1px dashed #f59e0b;
    border-radius: 6px;
    color: #d97706;
    cursor: pointer;
    font: inherit;
    font-size: 11.5px;
    font-weight: 700;
  }
  .ce-qa-add-custom:hover { background: #fef3c7; border-style: solid; }
  .ce-qa-custom-wrap {
    display: inline-flex;
    align-items: center;
    gap: 2px;
  }
  .ce-qa-custom-wrap .ce-qa-preset.custom {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    margin-right: 0;
  }
  .ce-qa-custom-x {
    padding: 5px 7px;
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-left: none;
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
    color: #92400e;
    cursor: pointer;
    font: inherit;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
  }
  .ce-qa-custom-x:hover { background: #fecaca; color: #b91c1c; border-color: #b91c1c; }

  .ejercicio-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 10px;
    transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
  }
  .ejercicio-card.has-load { border-left: 4px solid var(--primary); }
  .ejercicio-card.is-empty { border-left: 4px solid var(--border); opacity: 0.75; }
  .ec-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
  }
  .ec-num {
    width: 26px; height: 26px;
    border-radius: 50%;
    background: var(--card-alt);
    color: var(--muted);
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 700;
    flex-shrink: 0;
  }
  .ec-nombre {
    flex: 1;
    padding: 7px 10px;
    background: var(--card-alt);
    border: 1px solid var(--border);
    border-radius: 7px;
    color: var(--text);
    font: inherit;
    font-size: 13px;
    font-weight: 600;
  }
  .ec-nombre:focus { outline: none; border-color: var(--primary); background: var(--card); }
  .ec-calc {
    padding: 6px 10px;
    background: linear-gradient(135deg, var(--primary), #8b1428);
    color: white;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 800;
    min-width: 70px;
    text-align: center;
    flex-shrink: 0;
  }
  .ec-calc.is-zero { background: var(--border); color: var(--muted); }
  .ec-cse {
    padding: 6px 10px;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 800;
    min-width: 70px;
    text-align: center;
    flex-shrink: 0;
    cursor: help;
  }
  .ec-cse.is-zero { background: var(--border); color: var(--muted); }
  .ec-pct-row {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
    flex-wrap: wrap;
  }
  .ec-pct-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--card-alt);
    border: 1px solid var(--border);
    border-radius: 7px;
    padding: 4px 10px;
    cursor: help;
  }
  .ec-pct-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
  }
  .ec-pct-input {
    width: 56px;
    padding: 3px 2px;
    text-align: center;
    font-size: 14px;
    font-weight: 800;
    color: var(--text);
    background: transparent;
    border: none;
    font-family: inherit;
  }
  .ec-pct-input:focus { outline: none; color: var(--primary); }
  .ec-carga-equipo {
    font-size: 12px;
    color: var(--muted);
  }
  .ec-carga-equipo b {
    color: var(--text);
    font-weight: 800;
  }
  .ec-remove {
    width: 28px; height: 28px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--muted);
    cursor: pointer;
    font-size: 14px;
    flex-shrink: 0;
  }
  .ec-remove:hover { background: #fee2e2; color: #dc2626; border-color: #dc2626; }

  .ec-body {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 12px;
    align-items: center;
  }
  .ec-treal-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px;
    background: var(--card-alt);
    border-radius: 8px;
    border: 1px solid var(--border);
  }
  .ec-treal-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 4px;
  }
  .ec-treal {
    width: 100%;
    padding: 8px 4px;
    text-align: center;
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
    background: transparent;
    border: none;
    font-family: inherit;
  }
  .ec-treal:focus { outline: none; color: var(--primary); }
  .ec-treal-unit {
    font-size: 9px;
    color: var(--muted);
    font-weight: 600;
    margin-top: 2px;
  }

  .ec-var-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }
  .ec-var {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--card-alt);
    border: 1px solid var(--border);
    border-radius: 7px;
    padding: 4px 2px;
  }
  .ec-var-label {
    font-size: 9.5px;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
  }
  .ec-var-input {
    width: 100%;
    padding: 3px 2px;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    background: transparent;
    border: none;
    font-family: inherit;
  }
  .ec-var-input:focus { outline: none; color: var(--primary); }

  .ce-empty-card {
    background: var(--card-alt);
    border: 1px dashed var(--border);
    border-radius: 10px;
    padding: 24px;
    text-align: center;
    color: var(--muted);
  }
  .ce-empty-card-emoji { font-size: 32px; margin-bottom: 6px; }

  .ec-vars-summary {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 8px;
    font-size: 11px;
    color: var(--muted);
  }
  .ec-vars-summary b { color: var(--text); }

  /* COLOR LEGEND FOR TYPES */
  .type-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
  }
  .type-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
  }

  /* PRINT: simplificado — la nueva ventana de impresión (en imprimirInformePartido) hace todo el trabajo */
  @media print {
    body { background: #fff; }
    @page { size: A4; margin: 12mm 10mm; }
  }

  /* === ANÁLISIS AVANZADO === */
  .análisis-individual-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
  .player-card {
    background: #fff;
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
    border-radius: 8px;
    padding: 12px 14px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  }
  .player-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
  }
  .player-name-block { display: flex; flex-direction: column; gap: 2px; }
  .player-name { font-size: 15px; font-weight: 700; color: var(--primary); }
  .player-position { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; }
  .player-rating {
    text-align: center;
    padding: 6px 12px;
    border-radius: 8px;
    min-width: 70px;
  }
  .player-rating.pos { background: rgba(16, 185, 129, 0.12); color: var(--accent-dark); }
  .player-rating.warn { background: rgba(245, 158, 11, 0.12); color: #b45309; }
  .player-rating.neg { background: rgba(220, 38, 38, 0.12); color: var(--danger); }
  .rating-value { font-size: 24px; font-weight: 700; line-height: 1; }
  .rating-label { font-size: 9px; text-transform: uppercase; letter-spacing: 0.4px; margin-top: 2px; }
  .player-stats-row {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 4px;
    margin-bottom: 10px;
  }
  .ps-cell {
    text-align: center;
    background: var(--bg);
    border-radius: 4px;
    padding: 6px 2px;
  }
  .ps-cell.pos .ps-val { color: var(--accent-dark); font-weight: 700; }
  .ps-cell.neg .ps-val { color: var(--danger); font-weight: 700; }
  .ps-cell.danger { background: rgba(220, 38, 38, 0.12); }
  .ps-cell.danger .ps-val { color: var(--danger); font-weight: 700; }
  .ps-val { display: block; font-size: 16px; font-weight: 700; color: var(--primary); }
  .ps-lbl { display: block; font-size: 9px; color: var(--muted); margin-top: 2px; text-transform: uppercase; }
  .player-advanced { background: var(--bg); border-radius: 6px; padding: 8px 10px; margin-bottom: 10px; }
  .adv-row { display: flex; gap: 14px; align-items: center; font-size: 12px; margin-bottom: 4px; flex-wrap: wrap; }
  .adv-row:last-child { margin-bottom: 0; }
  .adv-label { color: var(--muted); }
  .adv-val { font-weight: 700; color: var(--primary); }
  .adv-val.pos { color: var(--accent-dark); }
  .adv-val.neg { color: var(--danger); }
  .player-cuartos { margin-bottom: 10px; }
  .cuartos-mini-title { font-size: 11px; color: var(--muted); margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.4px; }
  .cuartos-mini-grid { display: flex; gap: 6px; flex-wrap: wrap; }
  .cuarto-mini {
    display: flex;
    flex-direction: column;
    background: var(--bg);
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 11px;
    min-width: 60px;
    border-left: 3px solid var(--muted);
  }
  .cuarto-mini.pos { border-left-color: var(--accent); background: rgba(16, 185, 129, 0.08); }
  .cuarto-mini.neg { border-left-color: var(--danger); background: rgba(220, 38, 38, 0.08); }
  .qm-q { font-weight: 700; color: var(--primary); }
  .qm-min, .qm-pm { color: var(--muted); font-size: 10px; }
  .player-rating-bars { margin: 10px 0; padding: 8px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
  .rb-row {
    display: grid;
    grid-template-columns: 130px 1fr 30px;
    gap: 8px;
    align-items: center;
    font-size: 11px;
    margin-bottom: 4px;
  }
  .rb-lbl { color: var(--muted); }
  .rb-bar { background: var(--bg); height: 8px; border-radius: 4px; overflow: hidden; }
  .rb-fill { height: 100%; transition: width 0.3s; }
  .rb-val { font-weight: 700; color: var(--primary); text-align: right; }
  .player-recs { margin-top: 10px; }
  .recs-title { font-size: 11px; color: var(--muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.4px; }
  .player-rec { font-size: 12px; padding: 6px 8px; border-radius: 4px; margin-bottom: 4px; border-left: 3px solid var(--muted); background: var(--bg); }
  .player-rec.pos { border-left-color: var(--accent); background: rgba(16, 185, 129, 0.08); }
  .player-rec.warn { border-left-color: var(--warn); background: rgba(245, 158, 11, 0.08); }
  .player-rec.neg { border-left-color: var(--danger); background: rgba(220, 38, 38, 0.08); }
  .player-rec.danger { border-left-color: var(--danger); background: rgba(220, 38, 38, 0.12); }
  .player-rec.info { border-left-color: var(--primary); background: rgba(30, 58, 95, 0.06); }
  .insight-rec { font-size: 12px; margin-top: 6px; padding-top: 6px; border-top: 1px dashed var(--border); color: var(--primary); font-style: italic; }
  .run-card { padding: 8px 10px; border-radius: 4px; margin-bottom: 6px; border-left: 3px solid; font-size: 12px; }
  .run-card.pos { background: rgba(16, 185, 129, 0.10); border-left-color: var(--accent); }
  .run-card.neg { background: rgba(220, 38, 38, 0.10); border-left-color: var(--danger); }
  .run-head { font-weight: 700; margin-bottom: 2px; }
  .clutch-summary { padding: 10px; border-radius: 6px; margin-bottom: 8px; border-left: 4px solid; }
  .clutch-summary.pos { background: rgba(16, 185, 129, 0.10); border-left-color: var(--accent); }
  .clutch-summary.neg { background: rgba(220, 38, 38, 0.10); border-left-color: var(--danger); }
  .clutch-head { font-weight: 700; font-size: 14px; margin-bottom: 4px; }
  .clutch-stats { display: flex; gap: 12px; font-size: 12px; color: var(--muted); }
  .clutch-moments { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
  .clutch-moment {
    display: flex; flex-direction: column; align-items: center;
    padding: 4px 8px; border-radius: 4px; font-size: 11px; min-width: 50px;
    background: var(--bg);
  }
  .clutch-moment.pos { background: rgba(16, 185, 129, 0.15); color: var(--accent-dark); }
  .clutch-moment.neg { background: rgba(220, 38, 38, 0.15); color: var(--danger); }
  .cuartos-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 8px; }
  .cuartos-table th, .cuartos-table td { padding: 8px; text-align: left; border-bottom: 1px solid var(--border); }
  .cuartos-table th { background: var(--bg); font-weight: 700; color: var(--primary); }
  .cuartos-table td.pos { color: var(--accent-dark); font-weight: 700; }
  .cuartos-table td.neg { color: var(--danger); font-weight: 700; }
  .mvp-cell { color: var(--primary); font-weight: 600; }
  .onoff-table { display: flex; flex-direction: column; gap: 2px; }
  .onoff-row { display: grid; grid-template-columns: 1fr 50px 50px 80px; gap: 6px; align-items: center; font-size: 12px; padding: 4px 6px; border-radius: 4px; background: var(--bg); }
  .onoff-name { font-weight: 600; }
  .onoff-min { color: var(--muted); font-size: 11px; }
  .onoff-pm { font-weight: 700; text-align: right; }
  .onoff-pm.pos { color: var(--accent-dark); }
  .onoff-pm.neg { color: var(--danger); }
  .onoff-label { color: var(--muted); font-size: 10px; }

  /* Foul trouble rows */
  .foul-row {
    display: grid;
    grid-template-columns: 70px 50px 50px 60px 1fr;
    gap: 6px;
    align-items: center;
    font-size: 12px;
    padding: 6px 8px;
    border-radius: 4px;
    background: var(--bg);
    margin-bottom: 4px;
    border-left: 3px solid transparent;
  }
  .foul-row.critica { border-left-color: var(--danger); background: rgba(220, 38, 38, 0.06); }
  .foul-row.alta { border-left-color: #f59e0b; background: rgba(245, 158, 11, 0.06); }
  .foul-row.media { border-left-color: #3b82f6; background: rgba(59, 130, 246, 0.06); }
  .foul-name { font-weight: 700; }
  .foul-count { font-weight: 700; color: var(--danger); text-align: center; }
  .foul-row.media .foul-count { color: var(--primary); }
  .foul-min { color: var(--muted); font-size: 11px; text-align: center; }
  .foul-stints { color: var(--muted); font-size: 11px; text-align: center; }
  .foul-gestion { font-size: 11px; }

  /* Heatmap de carga por ventanas de 5 min */
  .heatmap-wrapper { overflow-x: auto; margin-top: 8px; }
  .heatmap-table { border-collapse: separate; border-spacing: 2px; font-size: 11px; min-width: 100%; }
  .heatmap-table th { padding: 4px 6px; background: var(--bg); font-weight: 600; color: var(--primary); position: sticky; top: 0; }
  .heatmap-table th.heatmap-jug { text-align: left; min-width: 110px; }
  .heatmap-table th.heatmap-window { text-align: center; min-width: 44px; }
  .heatmap-table td.heatmap-cell {
    padding: 6px 4px;
    text-align: center;
    font-weight: 600;
    border-radius: 3px;
    color: #1a1a1a;
  }
  .heatmap-table td.heatmap-cell.zero { background: #f1f5f9; color: var(--muted); font-weight: 400; }
  .heatmap-table td.heatmap-cell.light { background: #dbeafe; }
  .heatmap-table td.heatmap-cell.medium { background: #fde68a; }
  .heatmap-table td.heatmap-cell.high { background: #fb923c; color: #1a1a1a; }
  .heatmap-table td.heatmap-cell.peak { background: var(--danger); color: #fff; }
  .heatmap-table tr.heatmap-totalrow td { font-weight: 700; background: var(--bg); color: var(--primary); }
  .heatmap-legend { display: flex; gap: 12px; font-size: 11px; margin-top: 8px; color: var(--muted); flex-wrap: wrap; }
  .heatmap-legend-item { display: inline-flex; align-items: center; gap: 4px; }
  .heatmap-swatch { display: inline-block; width: 14px; height: 14px; border-radius: 3px; border: 1px solid var(--border); }

  /* Carga por jugador (sin +/-) */
  .carga-jug-row {
    display: grid;
    grid-template-columns: 1fr 50px 50px 50px 60px;
    gap: 6px;
    align-items: center;
    font-size: 12px;
    padding: 5px 6px;
    border-radius: 4px;
    background: var(--bg);
    margin-bottom: 2px;
  }
  .carga-jug-name { font-weight: 600; }
  .carga-jug-min { font-weight: 700; text-align: center; }
  .carga-jug-min.heavy { color: var(--danger); }
  .carga-jug-min.medium { color: var(--warn); }
  .carga-jug-stints { text-align: center; color: var(--muted); }
  .carga-jug-bar { height: 6px; background: var(--border); border-radius: 3px; position: relative; overflow: hidden; }
  .carga-jug-bar-fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--primary); border-radius: 3px; }
  .carga-jug-faltas { text-align: center; color: var(--danger); font-weight: 600; }

  /* Quinteto (sin +/-) */
  .lineup-pm.stint-pm.pos { color: var(--accent-dark); }
  .lineup-pm.stint-pm.neg { color: var(--danger); }
  .lineup-pm.stint-pm.neutral { color: var(--muted); }

  /* Rating de gestión de carga (sin box score) */
  .carga-rating-bars .rb-row { display: grid; grid-template-columns: 130px 1fr 40px; gap: 6px; align-items: center; font-size: 11px; margin-bottom: 3px; }
  .carga-rating-bars .rb-lbl { color: var(--muted); }
  .carga-rating-bars .rb-bar { height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; }
  .carga-rating-bars .rb-fill { height: 100%; border-radius: 4px; }
  .carga-rating-bars .rb-val { text-align: right; font-weight: 700; }

  /* Análisis individual cards simplificadas */
  .player-stats-row.carga .ps-cell { padding: 4px; }
  .player-stats-row.carga .ps-lbl { color: var(--muted); }
  .player-cuartos-carga { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
  .cuarto-mini-carga {
    background: var(--bg);
    border-radius: 4px;
    padding: 4px 8px;
    text-align: center;
    font-size: 11px;
    border-left: 3px solid var(--border);
  }
  .cuarto-mini-carga.heavy { border-left-color: var(--danger); }
  .cuarto-mini-carga.medium { border-left-color: var(--warn); }
  .cuarto-mini-carga.light { border-left-color: var(--accent); }
  .qm-cuarto { font-weight: 700; color: var(--primary); }
  .qm-min { display: block; font-size: 12px; font-weight: 600; }
  .qm-stints { display: block; color: var(--muted); font-size: 10px; }

  /* Recs carga */
  .player-rec.carga-pos { background: rgba(16, 185, 129, 0.10); border-left-color: var(--accent); }
  .player-rec.carga-warn { background: rgba(245, 158, 11, 0.10); border-left-color: var(--warn); }
  .player-rec.carga-neg { background: rgba(220, 38, 38, 0.10); border-left-color: var(--danger); }
  .player-rec.carga-info { background: rgba(59, 130, 246, 0.10); border-left-color: #3b82f6; }

  /* ====================== MyCourtFlow style ====================== */
  .mcf-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 999px;
    border: 1.5px solid var(--border);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--muted);
    background: #fff;
  }
  .mcf-status-pill .mcf-dot {
    width: 8px; height: 8px; border-radius: 50%; background: var(--muted);
  }
  .mcf-status-pill.low { color: var(--accent-dark); border-color: var(--accent); background: rgba(16, 185, 129, 0.06); }
  .mcf-status-pill.low .mcf-dot { background: var(--accent); }
  .mcf-status-pill.mod { color: #b45309; border-color: #f59e0b; background: rgba(245, 158, 11, 0.08); }
  .mcf-status-pill.mod .mcf-dot { background: #f59e0b; }
  .mcf-status-pill.high { color: var(--danger); border-color: var(--danger); background: rgba(220, 38, 38, 0.08); }
  .mcf-status-pill.high .mcf-dot { background: var(--danger); }

  .mcf-summary-card {
    background: rgba(16, 185, 129, 0.10);
    border: 1px solid rgba(16, 185, 129, 0.30);
    border-radius: 10px;
    padding: 18px 20px;
    margin-top: 12px;
  }
  .mcf-summary-card.mod { background: rgba(245, 158, 11, 0.10); border-color: rgba(245, 158, 11, 0.30); }
  .mcf-summary-card.high { background: rgba(220, 38, 38, 0.08); border-color: rgba(220, 38, 38, 0.30); }
  .mcf-summary-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
  .mcf-summary-head .mcf-summary-label { font-size: 11px; font-weight: 700; letter-spacing: 1px; color: var(--muted); text-transform: uppercase; }
  .mcf-summary-title { font-size: 28px; font-weight: 800; color: #1a1a1a; line-height: 1.1; margin: 4px 0 6px 0; }
  .mcf-summary-sub { color: var(--muted); font-size: 13px; margin-bottom: 14px; }
  .mcf-summary-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .mcf-summary-kpi {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px;
    text-align: left;
  }
  .mcf-summary-kpi .mcf-kpi-value { font-size: 26px; font-weight: 800; color: #1a1a1a; line-height: 1; }
  .mcf-summary-kpi .mcf-kpi-label { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 4px; display: block; }
  .mcf-summary-foot { margin-top: 12px; font-size: 13px; color: #1a1a1a; font-style: italic; }

  .mcf-section { margin-top: 20px; }
  .mcf-section-title {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--muted);
    text-transform: uppercase;
    margin-bottom: 8px;
  }
  .mcf-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px 18px;
  }
  .mcf-bullet-list { list-style: none; margin: 0; padding: 0; }
  .mcf-bullet-list li { display: flex; align-items: flex-start; gap: 8px; padding: 4px 0; font-size: 14px; color: #1a1a1a; }
  .mcf-bullet-list li::before { content: "›"; color: #f59e0b; font-weight: 800; font-size: 18px; line-height: 1; flex-shrink: 0; }
  .mcf-dot-list { list-style: none; margin: 0; padding: 0; }
  .mcf-dot-list li { display: flex; align-items: flex-start; gap: 8px; padding: 4px 0; font-size: 13px; color: #1a1a1a; }
  .mcf-dot-list li::before { content: "•"; color: var(--muted); font-size: 16px; line-height: 1; flex-shrink: 0; }

  .mcf-insight-ok {
    background: rgba(16, 185, 129, 0.06);
    border: 1px solid rgba(16, 185, 129, 0.30);
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--accent-dark);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .mcf-insight-ok::before { content: ""; font-weight: 800; color: var(--accent); font-size: 16px; }
  .mcf-insight-warn {
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.30);
    border-radius: 8px;
    padding: 12px 16px;
    color: #92400e;
    font-size: 14px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
  }
  .mcf-insight-warn::before { content: ""; font-weight: 800; color: #f59e0b; font-size: 16px; line-height: 1.1; }
  .mcf-insight-danger {
    background: rgba(220, 38, 38, 0.08);
    border: 1px solid rgba(220, 38, 38, 0.30);
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--danger);
    font-size: 14px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
  }
  .mcf-insight-danger::before { content: ""; font-size: 14px; line-height: 1.1; }

  .mcf-progress-bar {
    background: #e2e8f0;
    border-radius: 4px;
    height: 18px;
    overflow: hidden;
    position: relative;
  }
  .mcf-progress-bar .mcf-progress-fill {
    background: #f59e0b;
    height: 100%;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 11px;
  }

  .mcf-usage-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 10px; }
  .mcf-usage-card {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px;
  }
  .mcf-usage-card.starters { background: #fff7ed; border-color: #fed7aa; }
  .mcf-usage-card.bench { background: #f0f9ff; border-color: #bae6fd; }
  .mcf-usage-card.total { background: #f8fafc; border-color: var(--border); }
  .mcf-usage-card .mcf-usage-title { font-size: 10px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
  .mcf-usage-card.starters .mcf-usage-title { color: #c2410c; }
  .mcf-usage-card.bench .mcf-usage-title { color: #0369a1; }
  .mcf-usage-card.total .mcf-usage-title { color: var(--muted); }
  .mcf-usage-card .mcf-usage-value { font-size: 22px; font-weight: 800; color: #1a1a1a; margin-top: 4px; }
  .mcf-usage-card .mcf-usage-detail { font-size: 11px; color: var(--muted); }

  .mcf-min-row { display: grid; grid-template-columns: 140px 1fr 50px; align-items: center; gap: 8px; padding: 4px 0; font-size: 12px; }
  .mcf-min-name { font-weight: 600; color: #1a1a1a; }
  .mcf-min-bar { background: #e2e8f0; border-radius: 3px; height: 14px; overflow: hidden; }
  .mcf-min-bar-fill { background: #f59e0b; height: 100%; }
  .mcf-min-bar-fill.overloaded { background: var(--danger); }
  .mcf-min-bar-fill.underused { background: #94a3b8; }
  .mcf-min-val { font-weight: 700; text-align: right; color: #1a1a1a; }

  .mcf-detail-table { width: 100%; border-collapse: collapse; font-size: 12px; margin-top: 6px; }
  .mcf-detail-table thead th { text-align: left; padding: 8px 6px; font-size: 10px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--border); }
  .mcf-detail-table tbody td { padding: 8px 6px; border-bottom: 1px solid #f1f5f9; color: #1a1a1a; }
  .mcf-detail-table tbody tr:hover { background: #f8fafc; }
  .mcf-load-badge { display: inline-block; background: #fee2e2; color: #b91c1c; font-weight: 700; padding: 2px 8px; border-radius: 4px; font-size: 11px; }
  .mcf-load-badge.normal { background: #d1fae5; color: #047857; }
  .mcf-load-badge.warning { background: #fed7aa; color: #c2410c; }

  .mcf-obs-row { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; font-size: 13px; color: #1a1a1a; }
  .mcf-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #fff;
    flex-shrink: 0;
  }
  .mcf-badge.low { background: #1e40af; }
  .mcf-badge.high { background: var(--danger); }
  .mcf-badge.warn { background: #f59e0b; }
  .mcf-badge.ok { background: var(--accent); }
  .mcf-badge.foul { background: #7c3aed; }

  .mcf-footer {
    text-align: center;
    color: var(--muted);
    font-size: 11px;
    padding: 16px 0;
    margin-top: 30px;
    border-top: 1px solid var(--border);
  }

  .mcf-title-block { padding: 12px 0 16px 0; }
  .mcf-title-block .mcf-team-vs { font-size: 32px; font-weight: 800; color: #1a1a1a; line-height: 1.1; }
  .mcf-title-block .mcf-team-vs .mcf-vs { color: var(--muted); font-weight: 400; }
  .mcf-title-block .mcf-meta { color: var(--muted); font-size: 13px; margin-top: 4px; }
  .mcf-title-block .mcf-meta .mcf-home { color: #f59e0b; font-weight: 700; }
  /* v2.45: marcador grande y status en la cabecera del informe */
  .mcf-marcador {
    display: inline-block;
    font-family: Inter, system-ui, sans-serif;
    font-size: 42px;
    font-weight: 700;
    color: var(--text);
    margin-top: 8px;
    padding: 6px 18px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    letter-spacing: -0.02em;
    line-height: 1;
  }
  .mcf-marcador-sep { color: var(--muted); margin: 0 8px; font-size: 32px; }
  .mcf-marcador-win { border-left: 4px solid #10B981; }
  .mcf-marcador-loss { border-left: 4px solid #EF4444; }
  .mcf-marcador-draw { border-left: 4px solid #F59E0B; }
  .mcf-status {
    display: inline-block;
    margin-top: 10px;
    margin-left: 12px;
    padding: 4px 12px;
    border-radius: 14px;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    vertical-align: middle;
  }
  .mcf-status-ok { background: rgba(16,185,129,0.15); color: #047857; border: 1px solid rgba(16,185,129,0.3); }
  .mcf-status-warn { background: rgba(245,158,11,0.18); color: #b45309; border: 1px solid rgba(245,158,11,0.3); }
  .mcf-status-bad { background: rgba(220,38,38,0.15); color: #b91c1c; border: 1px solid rgba(220,38,38,0.3); }

  /* Report header (logo + title + orange band) */
  .mcf-report { background: #fff; }
  .mcf-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 8px 0 4px 0;
  }
  .mcf-logo { display: flex; align-items: center; gap: 10px; }
  .mcf-logo-icon {
    width: 38px; height: 38px; border-radius: 8px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-size: 20px;
  }
  .mcf-logo-text { font-size: 18px; font-weight: 800; color: #1a1a1a; line-height: 1; }
  .mcf-logo-text .accent { color: #2563eb; }
  .mcf-logo-sub { font-size: 10px; font-weight: 700; letter-spacing: 2px; color: var(--muted); text-transform: uppercase; margin-top: 2px; }
  .mcf-header-right { text-align: right; }
  .mcf-gen-label { font-size: 10px; font-weight: 700; letter-spacing: 2px; color: var(--muted); text-transform: uppercase; }
  .mcf-gen-date { font-size: 14px; font-weight: 800; color: #1a1a1a; margin-top: 2px; }
  .mcf-band { height: 4px; background: #f59e0b; border-radius: 2px; margin: 6px 0 4px 0; }

  /* ============================================================
     v2.23: INICIO REDISEÑADO (editorial + microciclo + salud urgente)
     ============================================================ */
  .inicio-hero {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    padding: 0;
    margin-bottom: 18px;
    background: #0E0A06;
    color: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  }
  .inicio-hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #B81C2C 0%, #8b1422 50%, #14110D 100%);
    z-index: 0;
  }
  .inicio-hero-bg::after {
    content: "";
    position: absolute;
    right: -60px;
    top: -60px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(184,145,72,0.25) 0%, transparent 70%);
  }
  .inicio-hero-content {
    position: relative;
    z-index: 1;
    padding: 28px 32px 24px;
    flex: 1;
  }
  .inicio-hero-eyebrow {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.7);
    margin-bottom: 6px;
  }
  .inicio-hero-title {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 4px 0;
    line-height: 1.1;
    color: #fff;
  }
  .inicio-hero-name {
    background: linear-gradient(135deg, #B89148, #e6c073);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  .inicio-hero-sub {
    font-size: 13px;
    color: rgba(255,255,255,0.8);
    margin: 0 0 18px 0;
  }
  .inicio-hero-stats {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
  }
  .inicio-hero-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  .inicio-hero-stat-value {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
    color: #fff;
  }
  .inicio-hero-stat-label {
    font-size: 9.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.6);
  }
  .inicio-hero-stat-sep {
    width: 1px;
    height: 32px;
    background: rgba(255,255,255,0.15);
  }
  .inicio-hero-actions {
    position: absolute;
    top: 24px;
    right: 24px;
    z-index: 1;
    display: flex;
    gap: 8px;
  }
  .inicio-hero-actions .btn {
    background: rgba(255,255,255,0.12);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(8px);
  }
  .inicio-hero-actions .btn-primary {
    background: #B89148;
    color: #1F1812;
    border-color: #B89148;
  }
  .inicio-hero-actions .btn-primary:hover {
    background: #d4a35c;
  }

  .inicio-kpis {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 18px;
  }
  .inicio-kpi {
    display: flex;
    gap: 12px;
    align-items: center;
    text-align: left;
    background: var(--card);
    border: 1px solid var(--border);
    border-left: 4px solid var(--border);
    border-radius: 12px;
    padding: 14px 16px;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    font-family: inherit;
  }
  .inicio-kpi:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  }
  .inicio-kpi-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    color: var(--text-soft);
  }
  .inicio-kpi[data-tone="primary"] { border-left-color: #B81C2C; }
  .inicio-kpi[data-tone="primary"] .inicio-kpi-icon { color: #B81C2C; }
  .inicio-kpi[data-tone="gold"] { border-left-color: #B89148; }
  .inicio-kpi[data-tone="gold"] .inicio-kpi-icon { color: #B89148; }
  .inicio-kpi[data-tone="ok"] { border-left-color: #10b981; }
  .inicio-kpi[data-tone="ok"] .inicio-kpi-icon { color: #10b981; }
  .inicio-kpi[data-tone="warn"] { border-left-color: #f59e0b; }
  .inicio-kpi[data-tone="warn"] .inicio-kpi-icon { color: #f59e0b; }
  .inicio-kpi[data-tone="danger"] { border-left-color: #dc2626; }
  .inicio-kpi[data-tone="danger"] .inicio-kpi-icon { color: #dc2626; }
  .inicio-kpi-body { flex: 1; min-width: 0; }
  .inicio-kpi-label { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-soft); margin-bottom: 4px; }
  .inicio-kpi-value { font-family: var(--font-display); font-size: 22px; font-weight: 800; line-height: 1.1; color: var(--text); }
  .inicio-kpi-suffix { font-size: 13px; font-weight: 600; color: var(--text-soft); margin-left: 2px; }
  .inicio-kpi-sub { font-size: 11.5px; color: var(--muted); margin-top: 4px; }

  /* Grid principal */
  .inicio-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    grid-template-rows: auto auto;
    gap: 14px;
  }
  .inicio-microciclo-card { grid-column: 1; grid-row: 1; }
  .inicio-salud-card { grid-column: 2; grid-row: 1; }
  .inicio-proximos-card { grid-column: 1; grid-row: 2; }
  .inicio-quick-card { grid-column: 2; grid-row: 2; }

  /* Microciclo visual */
  .inicio-microciclo-semana {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
  }
  .inicio-microciclo-dia {
    background: var(--card-alt);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 6px;
    text-align: center;
    min-height: 110px;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  .inicio-microciclo-dia.inicio-microciclo-hoy {
    border-color: #B81C2C;
    background: rgba(184,28,44,0.04);
  }
  .inicio-microciclo-dia.inicio-microciclo-pasado {
    opacity: 0.55;
  }
  .inicio-microciclo-dia-label {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-soft);
    letter-spacing: 0.04em;
  }
  .inicio-microciclo-dia-num {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 800;
    color: var(--text);
    line-height: 1;
  }
  .inicio-microciclo-dia-tipo {
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #fff;
    padding: 3px 4px;
    border-radius: 3px;
    margin: 4px 0 0 0;
  }
  .inicio-microciclo-dia[data-tipo="descanso"] .inicio-microciclo-dia-tipo {
    background: #9ca3af !important;
  }
  .inicio-microciclo-dia-titulo {
    font-size: 9.5px;
    line-height: 1.2;
    color: var(--text-soft);
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Salud urgente */
  .inicio-salud-ok {
    text-align: center;
    padding: 24px 12px;
  }
  .inicio-salud-ok-icon {
    font-size: 36px;
    color: #10b981;
    font-weight: 800;
    line-height: 1;
  }
  .inicio-salud-ok-text {
    font-size: 14px;
    font-weight: 800;
    margin-top: 8px;
    color: var(--text);
  }
  .inicio-salud-ok-sub {
    font-size: 11.5px;
    color: var(--muted);
    margin-top: 2px;
  }
  .inicio-salud-list { display: flex; flex-direction: column; gap: 6px; }
  .inicio-salud-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    background: var(--card-alt);
    border-radius: 6px;
    border-left: 3px solid transparent;
  }
  .inicio-salud-item-acwr {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 800;
    margin-left: auto;
  }
  .inicio-salud-item-info { flex: 1; min-width: 0; }
  .inicio-salud-item-nombre { font-size: 12.5px; line-height: 1.2; }
  .inicio-salud-item-msg { font-size: 10.5px; color: var(--muted); line-height: 1.3; margin-top: 2px; }
  .inicio-salud-mas {
    text-align: center;
    font-size: 11px;
    color: var(--muted);
    padding: 6px;
    font-style: italic;
  }

  /* Quick actions */
  .inicio-quick-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .inicio-quick-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 8px;
    background: var(--card-alt);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
  }
  .inicio-quick-btn:hover {
    background: rgba(184,28,44,0.05);
    border-color: rgba(184,28,44,0.2);
  }
  .inicio-quick-btn svg {
    width: 22px;
    height: 22px;
    color: var(--text-soft);
  }
  .inicio-quick-btn:hover svg {
    color: #B81C2C;
  }

  /* Empty state */
  .inicio-empty {
    text-align: center;
    padding: 20px 12px;
  }
  .inicio-empty-icon { font-size: 28px; opacity: 0.4; }
  .inicio-empty-text { font-size: 12.5px; color: var(--muted); margin: 6px 0 12px; }

  /* Partido badge colores */
  .inicio-partido-badge.badge-hoy { background: #B81C2C; color: #fff; }
  .inicio-partido-badge.badge-semana { background: #f59e0b; color: #fff; }
  .inicio-partido-badge.badge-mes { background: #e5e7eb; color: var(--text); }

  @media (max-width: 1100px) {
    .inicio-kpis { grid-template-columns: repeat(2, 1fr); }
    .inicio-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
    .inicio-microciclo-card,
    .inicio-salud-card,
    .inicio-proximos-card,
    .inicio-quick-card { grid-column: 1; grid-row: auto; }
  }
  @media (max-width: 768px) {
    .inicio-hero-title { font-size: 24px; }
    .inicio-hero-stats { flex-wrap: wrap; }
    .inicio-hero-actions { position: static; padding: 0 24px 20px; }
    .inicio-microciclo-semana { grid-template-columns: repeat(4, 1fr); }
    .inicio-quick-grid { grid-template-columns: repeat(2, 1fr); }
  }

/* V11 — Control detallado de minutos por turnos */
.pm-minutes-card{margin-top:14px;border:1px solid var(--border);background:var(--card);border-radius:14px;overflow:hidden}
.pm-minutes-head{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border-bottom:1px solid var(--border);gap:12px}
.pm-minutes-title{font-weight:800;font-size:14px}.pm-minutes-sub{font-size:11px;color:var(--muted);margin-top:2px}
.pm-minutes-live{font-size:11px;font-weight:800;padding:6px 9px;border-radius:8px;background:rgba(16,185,129,.10);color:#059669}
.pm-minutes-table-wrap{overflow-x:auto}
.pm-minutes-table{width:100%;border-collapse:collapse;min-width:820px}
.pm-minutes-table th{font-size:10px;text-transform:uppercase;letter-spacing:.45px;color:var(--muted);font-weight:800;text-align:center;padding:9px 8px;border-bottom:1px solid var(--border);background:var(--surface,#f8fafc)}
.pm-minutes-table th:first-child{text-align:left;padding-left:16px}
.pm-minutes-table td{padding:9px 8px;border-bottom:1px solid var(--border);text-align:center;font-size:12px;vertical-align:middle}
.pm-minutes-table tr:last-child td{border-bottom:0}
.pm-minutes-player{text-align:left!important;min-width:180px}.pm-minutes-player strong{display:block;font-size:12px}.pm-minutes-player span{display:block;color:var(--muted);font-size:10px;margin-top:2px}
.pm-min-cell{font-variant-numeric:tabular-nums;font-weight:700}.pm-min-cell.active{color:#059669;background:rgba(16,185,129,.07)}
.pm-min-total{font-weight:900;font-size:14px;font-variant-numeric:tabular-nums}.pm-min-stints{font-size:11px;color:var(--muted)}
.pm-stint-list{padding:10px 16px 14px;background:var(--surface,#f8fafc);border-top:1px solid var(--border);display:none}
.pm-stint-list.open{display:block}.pm-stint-row{display:flex;align-items:center;gap:10px;padding:6px 0;font-size:11px;border-bottom:1px dashed var(--border)}.pm-stint-row:last-child{border-bottom:0}
.pm-stint-q{font-weight:800;width:28px}.pm-stint-clock{font-variant-numeric:tabular-nums}.pm-stint-duration{margin-left:auto;font-weight:900}.pm-stint-current{color:#059669}.pm-min-expand{border:0;background:transparent;color:var(--primary);cursor:pointer;font-size:11px;font-weight:800;padding:2px 4px}
.pm-min-legend{display:flex;gap:14px;align-items:center;padding:10px 16px;color:var(--muted);font-size:10px}.pm-dot{width:7px;height:7px;border-radius:50%;display:inline-block;margin-right:4px}.pm-dot-live{background:#10b981}
@media(max-width:900px){.pm-minutes-table{min-width:720px}.pm-minutes-head{align-items:flex-start;flex-direction:column}}

.btn-finalizar-partido{min-height:48px!important;padding:10px 16px!important;font-weight:900!important}

/* v115: compact header action */
#partido-finalizar-top-btn,
#wf-btn-finalizar {
  min-height: 34px !important;
  padding: 7px 11px !important;
  border-radius: 8px !important;
  font-size: 12px !important;
  line-height: 1.1 !important;
  box-shadow: none !important;
}
#partido-finalizar-top-btn::before,
#wf-btn-finalizar::before,
.btn-finalizar-partido::before {
  content: none !important;
}

/* Senior staff access */
.staff-access-card{max-width:760px;margin:42px auto 0;padding:24px;border:1px solid var(--p-border,#dbe3ec);border-radius:16px;background:var(--card,#fff);box-shadow:var(--p-shadow,0 8px 24px rgba(15,23,42,.06))}
.staff-access-card h3{margin:4px 0 6px}.staff-invite-form{display:flex;gap:10px;margin-top:18px}.staff-invite-form input{flex:1;min-width:0}.staff-access-list{display:grid;gap:8px;margin-top:18px}.staff-access-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 12px;border:1px solid var(--p-border,#dbe3ec);border-radius:10px}.staff-access-email{font-weight:650;overflow-wrap:anywhere}.staff-access-role{font-size:12px;color:var(--p-muted,#64748b)}
.readonly-banner{position:sticky;top:0;z-index:10000;display:flex;justify-content:center;gap:8px;padding:9px 16px;background:#e0f2fe;color:#075985;border-bottom:1px solid #7dd3fc;font-size:13px;font-weight:700}.readonly-banner span{font-weight:500}
.team-access-status.is-pending{color:#9a5b05!important;background:#fff4d9!important;white-space:nowrap}
body.cc-readonly [data-write-action]{display:none!important}
@media(max-width:640px){.staff-invite-form{flex-direction:column}.staff-access-row{align-items:flex-start;flex-direction:column}}
}
/* Source: css/planning-01.css */
@layer compatibility{
/* =========================================================
   CONTROL DE CARGA — V4 PRODUCT UI
   Original design inspired by modern sports-management SaaS:
   compact navigation, card-based data, strong hierarchy and dense tables.
   ========================================================= */
:root{
 --ui-bg:#f3f5f9; --ui-surface:#fff; --ui-surface2:#f8f9fc; --ui-border:#e4e7ee;
 --ui-text:#111827; --ui-muted:#737b8d; --ui-nav:#111827; --ui-nav2:#182236;
 --ui-accent:#6c5ce7; --ui-accent2:#8c7cf5; --ui-cyan:#22c7d6; --ui-green:#18b77a;
 --ui-warn:#f59e0b; --ui-red:#ee5c69; --ui-radius:14px;
 --ui-shadow:0 1px 2px rgba(16,24,40,.03),0 8px 28px rgba(16,24,40,.055);
}
html,body{background:var(--ui-bg)!important;color:var(--ui-text)!important;font-family: Inter, system-ui, sans-serif !important}
body{font-size:13px;letter-spacing:-.004em}
button,input,select,textarea{font-family:inherit!important}
/* Shell / sidebar */
#app-shell{background:var(--ui-bg)!important}
aside.app-sidebar{width:252px!important;background:linear-gradient(180deg,var(--ui-nav) 0%,#0d1420 100%)!important;color:#fff!important;border-right:1px solid rgba(255,255,255,.05)!important;box-shadow:12px 0 32px rgba(13,20,32,.08)!important}
.app-sidebar .sidebar-brand{height:72px!important;padding:0 18px!important;display:flex!important;align-items:center!important;border-bottom:1px solid rgba(255,255,255,.07)!important}
.app-sidebar .brand-mark{width:40px!important;height:40px!important;border-radius:12px!important;background:linear-gradient(135deg,var(--ui-accent),#4c3bcf)!important;box-shadow:0 8px 22px rgba(108,92,231,.3)!important;font-weight:850!important}
.app-sidebar .brand-name{color:#fff!important;font-size:15px!important;font-weight:850!important;letter-spacing:-.035em!important}
.app-sidebar .brand-sub{color:rgba(255,255,255,.42)!important;font-size:9.5px!important;margin-top:3px!important}
.sidebar-context{margin:14px 12px 8px!important;padding:11px 12px!important;background:rgba(255,255,255,.055)!important;border:1px solid rgba(255,255,255,.07)!important;border-radius:12px!important}
.sidebar-context-label{font-size:8px!important;letter-spacing:.14em!important;color:rgba(255,255,255,.34)!important;font-weight:800!important;margin-bottom:7px!important}
.sidebar-context-row{font-size:12px!important;color:#fff!important;gap:8px!important}
.sidebar-context-chevron{margin-left:auto;color:rgba(255,255,255,.35);font-size:14px}
.sidebar-team-dot{background:var(--ui-cyan)!important;box-shadow:0 0 0 4px rgba(34,199,214,.1)!important}
.app-sidebar .sidebar-scroll{padding:8px 10px 12px!important}
.nav-section-label{padding:15px 10px 7px!important;color:rgba(255,255,255,.27)!important;font-size:8px!important;font-weight:800!important;letter-spacing:.15em!important}
.app-nav{gap:3px!important}
.app-nav .nav-main,.app-nav .nav-group-toggle{height:41px!important;border:1px solid transparent!important;border-radius:10px!important;padding:0 11px!important;color:rgba(255,255,255,.62)!important;background:transparent!important;gap:10px!important;transition:.15s ease!important}
.app-nav .nav-main:hover,.app-nav .nav-group-toggle:hover{background:rgba(255,255,255,.055)!important;color:#fff!important}
.app-nav .nav-main.active,.app-nav .nav-group.active>.nav-group-toggle,.app-nav .nav-group.open>.nav-group-toggle{background:linear-gradient(90deg,rgba(108,92,231,.22),rgba(108,92,231,.07))!important;border-color:rgba(140,124,245,.18)!important;color:#fff!important;box-shadow:inset 3px 0 0 var(--ui-accent)!important}
.app-nav .tab-icon{width:17px!important;height:17px!important}
.app-nav .active .tab-icon,.app-nav .nav-group.active .tab-icon{color:#a99dff!important}
.app-nav .tab-label{font-size:12px!important;font-weight:620!important;flex:1;text-align:left}
.app-nav .nav-count{background:rgba(255,255,255,.08)!important;color:rgba(255,255,255,.5)!important;border-radius:999px!important}
.app-nav .nav-group-items{padding:4px 0 5px 29px!important}
.app-nav .nav-group-items button{height:34px!important;border-radius:8px!important;color:rgba(255,255,255,.46)!important}
.app-nav .nav-group-items button:hover{background:rgba(255,255,255,.04)!important;color:#fff!important}
.app-nav .nav-group-items button.active{background:rgba(108,92,231,.12)!important;color:#fff!important}
.app-nav .nav-group-items button.active .dot{background:#a99dff!important;box-shadow:0 0 0 3px rgba(169,157,255,.1)!important}
.app-sidebar .sidebar-footer{padding:11px!important;border-top:1px solid rgba(255,255,255,.07)!important}
.sidebar-plan-card{padding:11px!important;border-radius:12px!important;background:linear-gradient(135deg,rgba(108,92,231,.16),rgba(34,199,214,.04))!important;border:1px solid rgba(140,124,245,.16)!important}
.sidebar-plan-dot{background:#a99dff!important}
.sidebar-plan-top{font-size:11px!important;font-weight:750!important}
.sidebar-plan-sub{font-size:9.5px!important;color:rgba(255,255,255,.42)!important}
/* App topbar */
.app-header{height:70px!important;background:rgba(255,255,255,.94)!important;border-bottom:1px solid var(--ui-border)!important;backdrop-filter:blur(16px)!important;display:flex!important;align-items:center!important;padding:0 22px!important;box-shadow:0 1px 0 rgba(16,24,40,.02)!important;position:sticky!important;top:0!important;z-index:40!important}
.app-header .ah-search{height:40px!important;background:#f8f9fc!important;border:1px solid var(--ui-border)!important;border-radius:11px!important}
.app-header .ah-search:focus-within{border-color:rgba(108,92,231,.5)!important;box-shadow:0 0 0 3px rgba(108,92,231,.09)!important}
.ah-icon-btn,.header-actions button,.header-equipo-gestionar{border:1px solid var(--ui-border)!important;background:#fff!important;color:var(--ui-text)!important;border-radius:10px!important}
.header-actions button.primary{background:var(--ui-accent)!important;border-color:var(--ui-accent)!important;color:#fff!important;box-shadow:0 6px 16px rgba(108,92,231,.18)!important}
.header-equipo{margin-left:auto!important}
.header-equipo-select{height:40px!important;border:1px solid var(--ui-border)!important;border-radius:10px!important;background:#fff!important;color:var(--ui-text)!important;font-weight:650!important}
#user-menu.open{display:block!important}
/* Main / cards */
main{background:var(--ui-bg)!important}
.tab-panel{max-width:1440px!important;margin:0 auto!important;padding:26px 30px 48px!important}
.card,.panel,.table-wrap,.inicio-card,.inicio-quick-card,.inicio-hero,.kpi-card,.modal-content{background:var(--ui-surface)!important;border:1px solid var(--ui-border)!important;border-radius:var(--ui-radius)!important;box-shadow:var(--ui-shadow)!important}
.card{padding:18px!important}
.card-title,.panel-header h2{color:var(--ui-text)!important;font-weight:800!important;letter-spacing:-.025em!important}
.panel-header{margin-bottom:18px!important}
.muted{color:var(--ui-muted)!important}
.btn{min-height:36px!important;border:1px solid var(--ui-border)!important;background:#fff!important;color:var(--ui-text)!important;border-radius:9px!important;font-weight:650!important;transition:.15s ease!important}
.btn:hover{transform:translateY(-1px);box-shadow:0 5px 14px rgba(16,24,40,.07)!important}
.btn-primary{background:var(--ui-accent)!important;border-color:var(--ui-accent)!important;color:#fff!important}
.btn-success{background:var(--ui-green)!important;border-color:var(--ui-green)!important;color:#fff!important}
.btn-warn{background:var(--ui-warn)!important;border-color:var(--ui-warn)!important;color:#fff!important}
input,select,textarea{border-color:var(--ui-border)!important;border-radius:9px!important;background:#fff!important;color:var(--ui-text)!important}
input:focus,select:focus,textarea:focus{outline:none!important;border-color:rgba(108,92,231,.65)!important;box-shadow:0 0 0 3px rgba(108,92,231,.09)!important}
th{background:#f8f9fc!important;color:#747b8d!important;border-bottom:1px solid var(--ui-border)!important;font-size:10px!important;text-transform:uppercase!important;letter-spacing:.07em!important}
td{border-bottom:1px solid #eef0f4!important}
tr:hover td{background:#fafbff!important}
.badge,.pill,.status-badge{border-radius:999px!important;font-weight:750!important}
/* Dashboard hero */
.inicio-hero{background:linear-gradient(135deg,#171e2e 0%,#202943 60%,#343d70 100%)!important;color:#fff!important;border:0!important;box-shadow:0 16px 38px rgba(17,24,39,.18)!important}
.inicio-hero *{color:inherit}
.inicio-kpi,.inicio-quick-card{background:#fff!important;border:1px solid var(--ui-border)!important}
.inicio-kpi-value,.kpi-value{font-weight:850!important;letter-spacing:-.05em!important;color:var(--ui-text)!important}
/* Landing */
.landing{background:#f5f6fa!important;color:var(--ui-text)!important}
.landing-nav{background:rgba(245,246,250,.9)!important;border-bottom:1px solid var(--ui-border)!important;backdrop-filter:blur(16px)!important}
.ln-mark{background:linear-gradient(135deg,var(--ui-accent),#4c3bcf)!important;border-radius:10px!important}
.ln-brand{font-weight:850!important;letter-spacing:-.035em!important}
.landing-hero{background:radial-gradient(circle at 70% 8%,rgba(108,92,231,.12),transparent 30%),#f5f6fa!important}
.lh-badge{border-color:rgba(108,92,231,.18)!important;background:rgba(108,92,231,.06)!important;color:#5648cc!important}
.hl-primary{color:var(--ui-accent)!important}
.btn-landing.btn-primary{background:var(--ui-accent)!important;border-color:var(--ui-accent)!important;box-shadow:0 10px 24px rgba(108,92,231,.18)!important}
.price-card{border:1px solid var(--ui-border)!important;border-radius:18px!important;background:#fff!important;box-shadow:var(--ui-shadow)!important}
.price-card.featured{border-color:rgba(108,92,231,.45)!important;box-shadow:0 18px 42px rgba(108,92,231,.12)!important}
/* Modal / overlay */
.modal{background:rgba(15,23,42,.46)!important;backdrop-filter:blur(8px)!important}
.modal-content{box-shadow:0 24px 80px rgba(15,23,42,.22)!important}
/* Dark mode */
[data-theme="dark"]{--ui-bg:#0b1020;--ui-surface:#111827;--ui-surface2:#151e2f;--ui-border:#273247;--ui-text:#f3f4f6;--ui-muted:#9aa4b5}
[data-theme="dark"] main{background:var(--ui-bg)!important}
[data-theme="dark"] .app-header{background:rgba(15,23,42,.92)!important;border-bottom-color:#273247!important}
[data-theme="dark"] .app-header .ah-search,[data-theme="dark"] input,[data-theme="dark"] select,[data-theme="dark"] textarea,[data-theme="dark"] .btn,[data-theme="dark"] .header-actions button,[data-theme="dark"] .header-equipo-select{background:#111827!important;color:#f3f4f6!important;border-color:#273247!important}
[data-theme="dark"] th{background:#151e2f!important;color:#9aa4b5!important}
[data-theme="dark"] td{border-bottom-color:#202b3d!important}
[data-theme="dark"] tr:hover td{background:#151e2f!important}
/* Mobile */
@media(max-width:900px){
 aside.app-sidebar{width:270px!important}
 .tab-panel{padding:18px 14px 38px!important}
 .app-header{padding:0 12px!important}
 .app-header .ah-search{max-width:230px!important}
}
@media(max-width:640px){
 .app-header .ah-search{display:none!important}
 .header-actions button:not(.primary){display:none!important}
 .header-equipo-label,.header-equipo-gestionar{display:none!important}
 .header-equipo-select{max-width:155px!important}
 .tab-panel{padding:14px 10px 30px!important}
}
/* Legacy duplicate placeholders are intentionally hidden in the source; keep them safe. */
[id$="-legacy"],[id$="-legacy2"]{display:none!important}
}
/* Source: css/legacy-02.css */
@layer compatibility{
/* V6 — navegación más clara y jerárquica */
.app-sidebar .sidebar-scroll{padding:10px 10px 18px!important}
.app-nav{display:flex!important;flex-direction:column!important;gap:3px!important}
.app-nav .nav-section-label{margin:16px 9px 6px!important;font-size:8.5px!important;line-height:1!important;letter-spacing:.15em!important;color:rgba(255,255,255,.30)!important;font-weight:800!important}
.app-nav .nav-section-label:first-child{margin-top:5px!important}
.app-nav .nav-main,.app-nav .nav-group-toggle{min-height:42px!important;height:42px!important;padding:0 11px!important;border-radius:11px!important}
.app-nav .nav-main .tab-icon,.app-nav .nav-group-toggle .tab-icon{width:18px!important;height:18px!important;flex:0 0 18px!important}
.app-nav .tab-label{font-size:12.2px!important;font-weight:650!important;letter-spacing:-.01em!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.app-nav .nav-group-toggle .tab-label{padding-right:4px!important}
.app-nav .nav-group-items{margin:1px 0 4px 8px!important;padding:4px 0 4px 24px!important;border-left:1px solid rgba(255,255,255,.10)!important}
.app-nav .nav-group-items button{position:relative!important;height:35px!important;padding:0 10px!important;border-radius:8px!important}
.app-nav .nav-group-items button .dot{width:5px!important;height:5px!important;margin-right:7px!important;flex:0 0 5px!important}
.app-nav .nav-group-items button .tab-label{font-size:11.3px!important;font-weight:540!important}
.app-nav .nav-group-items button.active .tab-label{font-weight:680!important}
.app-nav .nav-count{display:none!important}
.app-nav .nav-group-toggle .nav-chevron{width:14px!important;height:14px!important;flex:0 0 14px!important;opacity:.5!important;transition:transform .18s ease!important}
.app-nav .nav-group.open .nav-group-toggle .nav-chevron{transform:rotate(180deg)!important;opacity:.9!important}
.app-nav .nav-group.open .nav-group-toggle{background:rgba(108,92,231,.10)!important;color:#fff!important;border-color:rgba(140,124,245,.12)!important}
.app-nav .nav-group.active>.nav-group-toggle{background:linear-gradient(90deg,rgba(108,92,231,.20),rgba(108,92,231,.05))!important}
@media(max-width:768px){.app-nav .nav-section-label{margin-top:12px!important}.app-nav .tab-label{font-size:12px!important}}
}
/* Source: css/legacy-03.css */
@layer compatibility{
:root{
 --v8-bg:#f5f7fb;--v8-surface:#fff;--v8-surface2:#f8f9fc;--v8-border:#e6e9f0;
 --v8-text:#101522;--v8-muted:#778197;--v8-purple:#6757e8;--v8-purple-soft:#f0edff;
 --v8-cyan:#20b9ca;--v8-green:#18a974;--v8-amber:#e19a25;--v8-red:#e45b68;
}
html,body{background:var(--v8-bg)!important;color:var(--v8-text)!important}
main{background:var(--v8-bg)!important}
.tab-panel{max-width:1480px!important;padding:28px 32px 56px!important}
.panel-header h2{font-family: Inter, system-ui, sans-serif !important;font-size:21px!important;font-weight:800!important;letter-spacing:-.035em!important}
.btn{min-height:37px!important;padding:0 13px!important;border-radius:10px!important;font-size:12px!important}
.v8-dashboard{display:flex;flex-direction:column;gap:16px}
.v8-topbar{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:4px 0 2px}
.v8-eyebrow{font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.13em;color:var(--v8-muted);margin-bottom:7px}
.v8-title{font-family: Inter, system-ui, sans-serif !important;font-size:30px!important;line-height:1.08!important;font-weight:850!important;letter-spacing:-.045em!important;color:var(--v8-text)!important;margin:0!important}
.v8-subtitle{font-size:12.5px;color:var(--v8-muted);margin-top:7px}
.v8-top-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.v8-team-chip{display:flex;align-items:center;gap:8px;padding:9px 11px;border:1px solid var(--v8-border);background:var(--v8-surface);border-radius:11px;font-weight:750;color:var(--v8-text);box-shadow:0 2px 10px rgba(16,24,40,.03)}
.v8-team-dot{width:8px;height:8px;border-radius:50%;background:var(--v8-cyan);box-shadow:0 0 0 4px rgba(32,185,202,.1)}
.v8-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px}
.v8-kpi{background:var(--v8-surface);border:1px solid var(--v8-border);border-radius:14px;padding:15px 16px;min-height:112px;position:relative;overflow:hidden;box-shadow:0 3px 15px rgba(16,24,40,.035)}
.v8-kpi:after{content:"";position:absolute;right:-22px;bottom:-30px;width:90px;height:90px;border-radius:50%;background:var(--v8-purple-soft);opacity:.55}
.v8-kpi[data-tone=good]:after{background:#e8f8f1}.v8-kpi[data-tone=warn]:after{background:#fff5e4}.v8-kpi[data-tone=danger]:after{background:#fff0f2}
.v8-kpi-label{font-size:10px;text-transform:uppercase;letter-spacing:.08em;font-weight:800;color:var(--v8-muted)}
.v8-kpi-value{font-size:28px;line-height:1;font-weight:850;letter-spacing:-.05em;margin-top:10px;color:var(--v8-text)}
.v8-kpi-meta{font-size:11px;color:var(--v8-muted);margin-top:8px}
.v8-kpi-icon{position:absolute;right:14px;top:14px;width:30px;height:30px;border-radius:9px;display:grid;place-items:center;background:var(--v8-purple-soft);color:var(--v8-purple);z-index:1}
.v8-kpi[data-tone=good] .v8-kpi-icon{background:#e8f8f1;color:var(--v8-green)}
.v8-kpi[data-tone=warn] .v8-kpi-icon{background:#fff5e4;color:var(--v8-amber)}
.v8-kpi[data-tone=danger] .v8-kpi-icon{background:#fff0f2;color:var(--v8-red)}
.v8-kpi-icon svg{width:16px;height:16px}
.v8-grid-main{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(310px,.85fr);gap:14px}
.v8-card{background:var(--v8-surface);border:1px solid var(--v8-border);border-radius:14px;box-shadow:0 3px 15px rgba(16,24,40,.035);overflow:hidden}
.v8-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:16px 17px 10px}
.v8-card-title{font-size:13px;font-weight:850;color:var(--v8-text);letter-spacing:-.01em}
.v8-card-sub{font-size:11px;color:var(--v8-muted);margin-top:3px;line-height:1.4}
.v8-chart{height:285px;padding:0 12px 14px}
.v8-chart canvas{width:100%!important;height:100%!important}
.v8-alerts{padding:0 17px 15px}
.v8-alert{display:grid;grid-template-columns:9px minmax(0,1fr) auto;align-items:center;gap:10px;padding:11px 0;border-bottom:1px solid #eef0f4}
.v8-alert:last-child{border-bottom:0}
.v8-alert-dot{width:8px;height:8px;border-radius:50%;background:var(--v8-amber)}
.v8-alert-dot.danger{background:var(--v8-red)}.v8-alert-dot.good{background:var(--v8-green)}
.v8-alert-name{font-weight:800;font-size:12px;color:var(--v8-text)}
.v8-alert-desc{font-size:10.5px;color:var(--v8-muted);margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v8-alert-metric{font-family:'JetBrains Mono',monospace;font-size:11px;font-weight:700;color:var(--v8-text)}
.v8-empty{padding:22px 8px;text-align:center;color:var(--v8-muted);font-size:11.5px}
.v8-status{display:inline-flex;align-items:center;gap:5px;padding:5px 8px;border-radius:999px;font-size:9.5px;font-weight:800}
.v8-status.good{background:#e8f8f1;color:#087c56}.v8-status.warn{background:#fff5e4;color:#a5680b}.v8-status.danger{background:#fff0f2;color:#c63f4e}.v8-status.neutral{background:#f0f2f6;color:#667085}
.v8-side-stack{display:flex;flex-direction:column;gap:14px}
.v8-match{padding:15px 17px 17px}
.v8-match-date{font-size:10px;text-transform:uppercase;letter-spacing:.09em;color:var(--v8-muted);font-weight:800}
.v8-match-rival{display:flex;align-items:center;gap:12px;margin-top:11px}
.v8-match-badge{width:42px;height:42px;border-radius:12px;background:linear-gradient(135deg,var(--v8-purple),#4b3bc7);display:grid;place-items:center;color:#fff;font-weight:850;font-size:12px;box-shadow:0 8px 18px rgba(103,87,232,.22)}
.v8-match-name{font-size:15px;font-weight:850;color:var(--v8-text);line-height:1.15}.v8-match-meta{font-size:10.5px;color:var(--v8-muted);margin-top:4px}
.v8-match-count{margin-left:auto;text-align:right}.v8-match-count strong{display:block;font-size:20px;line-height:1;font-weight:850;color:var(--v8-text)}.v8-match-count span{font-size:9px;color:var(--v8-muted);text-transform:uppercase;letter-spacing:.08em}
.v8-action-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:0 17px 17px}
.v8-action{display:flex;align-items:center;gap:8px;padding:10px;border:1px solid var(--v8-border);background:var(--v8-surface2);border-radius:10px;color:var(--v8-text);font-size:10.5px;font-weight:750;cursor:pointer;text-align:left;transition:.15s ease}
.v8-action:hover{border-color:#cfd4e0;background:#fff;transform:translateY(-1px);box-shadow:0 5px 14px rgba(16,24,40,.05)}
.v8-action svg{width:15px;height:15px;color:var(--v8-purple);flex:0 0 auto}
.v8-micro{padding:0 17px 17px}
.v8-days{display:grid;grid-template-columns:repeat(7,1fr);gap:5px}
.v8-day{min-width:0;border:1px solid var(--v8-border);border-radius:9px;padding:8px 5px;text-align:center;background:var(--v8-surface2)}
.v8-day.today{border-color:rgba(103,87,232,.45);background:var(--v8-purple-soft)}
.v8-day-label{font-size:8px;text-transform:uppercase;letter-spacing:.08em;color:var(--v8-muted);font-weight:800}.v8-day-num{font-size:15px;font-weight:850;color:var(--v8-text);margin:3px 0}.v8-day-type{font-size:8px;font-weight:800;color:var(--v8-purple);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v8-priority-table{width:100%;border-collapse:collapse;font-size:11px}
.v8-priority-table th{padding:10px 13px!important;background:#fafbfe!important;border-bottom:1px solid var(--v8-border)!important;font-size:9px!important;color:var(--v8-muted)!important;text-transform:uppercase!important;letter-spacing:.07em!important;text-align:left!important}
.v8-priority-table td{padding:11px 13px!important;border-bottom:1px solid #eef0f4!important;vertical-align:middle}
.v8-priority-table tr:last-child td{border-bottom:0!important}.v8-priority-table tr:hover td{background:#fbfcff!important}
.v8-player{display:flex;align-items:center;gap:9px}.v8-avatar{width:28px;height:28px;border-radius:9px;background:#eef0ff;color:#5144cf;display:grid;place-items:center;font-size:9px;font-weight:850}.v8-player-name{font-weight:800;color:var(--v8-text)}.v8-player-pos{font-size:9px;color:var(--v8-muted);margin-top:1px}
.v8-number{font-family:'JetBrains Mono',monospace;font-size:10.5px;font-weight:700;color:var(--v8-text)}
.v8-bottom-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:14px}
.v8-insight{padding:15px 17px 17px;display:flex;gap:12px;align-items:flex-start}.v8-insight-icon{width:34px;height:34px;border-radius:10px;background:var(--v8-purple-soft);color:var(--v8-purple);display:grid;place-items:center;flex:0 0 auto}.v8-insight-icon svg{width:16px;height:16px}.v8-insight-title{font-size:12px;font-weight:850;color:var(--v8-text)}.v8-insight-text{font-size:11px;line-height:1.5;color:var(--v8-muted);margin-top:4px}
@media(max-width:1100px){.v8-kpis{grid-template-columns:repeat(2,1fr)}.v8-grid-main,.v8-bottom-grid{grid-template-columns:1fr}}
.p26-task-class{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:18px;padding:0 5px;border-radius:5px;margin-right:6px;font-size:8px;font-weight:950;letter-spacing:.02em;vertical-align:middle}.p26-task-class.c-c1,.p26-task-class.c-c2{background:rgba(34,197,94,.12);color:#15803d}.p26-task-class.c-c3{background:rgba(234,179,8,.14);color:#a16207}.p26-task-class.c-c4{background:rgba(245,158,11,.15);color:#b45309}.p26-task-class.c-c5{background:rgba(239,68,68,.12);color:#b91c1c}.p26-task-text{vertical-align:middle}.p26-task-meta{display:block;margin:3px 0 0 28px;font-size:7.5px;font-weight:600;color:var(--muted);line-height:1.25}.p26-pista-legend{margin-top:7px;padding-top:6px;border-top:1px solid var(--border);font-size:7.5px;line-height:1.5;color:var(--muted)}.p26-pista-legend span{font-weight:950;color:var(--text);margin-left:5px}.p26-pista-legend span:first-child{margin-left:0}.p26-plan{display:flex;flex-wrap:wrap;gap:6px}.p26-plan span:first-child{font-weight:700}.p26-plan span:first-child strong{color:var(--primary)}
@media(max-width:700px){.tab-panel{padding:18px 12px 40px!important}.v8-topbar{flex-direction:column}.v8-top-actions{justify-content:flex-start}.v8-kpis{grid-template-columns:1fr 1fr}.v8-chart{height:240px}.v8-days{grid-template-columns:repeat(4,1fr)}.v8-day:nth-child(n+5){display:none}.v8-priority-table th:nth-child(3),.v8-priority-table td:nth-child(3){display:none}}
}
/* Source: css/planning-04.css */
@layer compatibility{
/* V26 — Planificación: una sola pantalla, centrada en semana + día */
#plan-mode-toggle,#plan-pro-v24,#plan-resumen-view{display:none!important}
#plan-year-view{display:none}
.plan-pro-v26{margin:14px 0 28px}
.p26-head{display:flex;justify-content:space-between;align-items:flex-end;gap:14px;margin-bottom:12px}
.p26-kicker{font-size:9px;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);font-weight:900}
.p26-title{margin:3px 0 2px;font-size:22px;line-height:1.05;font-weight:950}
.p26-sub{font-size:11px;color:var(--muted)}
.p26-head-actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
.p26-btn{border:1px solid var(--border);background:var(--card);color:var(--text);border-radius:9px;padding:8px 11px;font-size:10px;font-weight:850;cursor:pointer}
.p26-btn:hover{border-color:rgba(109,82,255,.45)}
.p26-btn.primary{background:var(--primary);border-color:var(--primary);color:#fff}
.p26-btn.danger{color:#b91c1c}
.p26-card{background:var(--card);border:1px solid var(--border);border-radius:14px;padding:14px;margin-bottom:12px}
.p26-context{display:grid;grid-template-columns:1.3fr repeat(4,minmax(110px,.65fr));gap:8px}
.p26-context-card{border:1px solid var(--border);border-radius:11px;padding:10px 11px;background:var(--card)}
.p26-context-card .label{font-size:8px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);font-weight:900}
.p26-context-card .value{font-size:18px;font-weight:950;margin-top:3px;line-height:1.05}
.p26-context-card .sub{font-size:9px;color:var(--muted);margin-top:4px}
.p26-status{border-left:3px solid var(--primary);background:rgba(109,82,255,.05)}
.p26-weekbar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
.p26-weeknav{display:flex;align-items:center;gap:5px}
.p26-weeklabel{font-size:13px;font-weight:900;margin-left:5px}
.p26-week-actions{display:flex;gap:6px;flex-wrap:wrap}
.p26-days{display:grid;grid-template-columns:repeat(7,minmax(125px,1fr));gap:7px;overflow-x:auto;padding-bottom:2px}
.p26-day{min-width:125px;border:1px solid var(--border);border-radius:12px;background:var(--card);overflow:hidden;display:flex;flex-direction:column}
.p26-day.match{border-color:rgba(109,82,255,.6);box-shadow:0 0 0 1px rgba(109,82,255,.08)}
.p26-day-head{padding:9px 9px 7px;border-bottom:1px solid var(--border);background:var(--surface,#f8fafc)}
.p26-day-top{display:flex;justify-content:space-between;gap:5px;align-items:center}
.p26-dow{font-size:9px;text-transform:uppercase;font-weight:900;color:var(--muted)}
.p26-date{font-size:16px;font-weight:950;margin-top:2px}
.p26-md{font-size:9px;font-weight:900;color:var(--primary);background:rgba(109,82,255,.09);padding:3px 6px;border-radius:6px;white-space:nowrap}
.p26-match{margin-top:6px;font-size:9px;font-weight:900;color:var(--primary)}
.p26-day-body{padding:9px;display:flex;flex-direction:column;gap:7px;flex:1}
.p26-select{width:100%;box-sizing:border-box;border:1px solid var(--border);border-radius:8px;padding:7px 8px;background:var(--card);color:var(--text);font-size:10px;font-weight:800}
.p26-plan{display:flex;justify-content:space-between;gap:6px;font-size:9px;color:var(--muted)}
.p26-plan strong{color:var(--text)}
.p26-recent{font-size:9px;color:var(--muted);padding:6px 7px;border-radius:7px;background:var(--surface,#f8fafc);border:1px solid var(--border)}
.p26-recommend{padding:7px 8px;border-radius:8px;background:rgba(16,185,129,.06);border-left:2px solid #10b981;font-size:9px;line-height:1.35}
.p26-recommend.warn{background:rgba(245,158,11,.07);border-left-color:#f59e0b}
.p26-recommend.high{background:rgba(239,68,68,.06);border-left-color:#ef4444}
.p26-recommend b{display:block;font-size:9px;margin-bottom:2px}
.p26-content{border-top:1px dashed var(--border);padding-top:7px;margin-top:1px}
.p26-content-title{font-size:8px;text-transform:uppercase;letter-spacing:.07em;color:var(--muted);font-weight:900;margin-bottom:4px}
.p26-tags{display:flex;flex-wrap:wrap;gap:4px}
.p26-tag{font-size:8px;padding:3px 5px;border-radius:5px;background:var(--surface,#f8fafc);border:1px solid var(--border);font-weight:800}
.p26-tag.green{background:rgba(16,185,129,.06);border-color:rgba(16,185,129,.18)}
.p26-tag.blue{background:rgba(37,99,235,.06);border-color:rgba(37,99,235,.18)}
.p26-empty{font-size:9px;color:var(--muted);line-height:1.35}

/* V27 — color de día según el tipo de sesión */
.p26-day.type-pista .p26-day-head{background:rgba(16,185,129,.10);border-bottom-color:rgba(16,185,129,.22)}
.p26-day.type-pista{border-color:rgba(16,185,129,.35)}
.p26-day.type-gym .p26-day-head{background:rgba(59,130,246,.10);border-bottom-color:rgba(59,130,246,.22)}
.p26-day.type-gym{border-color:rgba(59,130,246,.35)}
.p26-day.type-mixto .p26-day-head{background:rgba(245,158,11,.12);border-bottom-color:rgba(245,158,11,.24)}
.p26-day.type-mixto{border-color:rgba(245,158,11,.42)}
.p26-day.type-partido .p26-day-head{background:rgba(220,38,38,.10);border-bottom-color:rgba(220,38,38,.24)}
.p26-day.type-partido{border-color:rgba(220,38,38,.48)}
.p26-day.type-amistoso .p26-day-head{background:rgba(245,158,11,.09);border-bottom-color:rgba(245,158,11,.22)}
.p26-day.type-amistoso{border-color:rgba(245,158,11,.35)}
.p26-day.type-recovery .p26-day-head{background:rgba(14,165,233,.09);border-bottom-color:rgba(14,165,233,.20)}
.p26-day.type-recovery{border-color:rgba(14,165,233,.32)}
.p26-day.type-descanso .p26-day-head{background:rgba(100,116,139,.08);border-bottom-color:rgba(100,116,139,.18)}
.p26-day.type-descanso{border-color:rgba(100,116,139,.28)}
.p26-day.type-none .p26-day-head{background:var(--surface,#f8fafc)}
.p26-day.type-none{border-color:var(--border)}
.p26-type-dot{display:inline-block;width:7px;height:7px;border-radius:50%;margin-right:5px;vertical-align:1px}
.p26-day.type-pista .p26-type-dot{background:#10b981}.p26-day.type-gym .p26-type-dot{background:#3b82f6}.p26-day.type-mixto .p26-type-dot{background:#f59e0b}.p26-day.type-partido .p26-type-dot{background:#dc2626}.p26-day.type-amistoso .p26-type-dot{background:#f59e0b}.p26-day.type-recovery .p26-type-dot{background:#0ea5e9}.p26-day.type-descanso .p26-type-dot{background:#64748b}
.p26-day.type-pista .p26-select{border-color:rgba(16,185,129,.42)}.p26-day.type-gym .p26-select{border-color:rgba(59,130,246,.42)}.p26-day.type-mixto .p26-select{border-color:rgba(245,158,11,.48)}.p26-day.type-partido .p26-select{border-color:rgba(220,38,38,.48)}.p26-day.type-amistoso .p26-select{border-color:rgba(245,158,11,.42)}
.p26-generated{border-top:1px dashed var(--border);padding-top:7px;margin-top:1px}
.p26-generated-title{font-size:8px;text-transform:uppercase;letter-spacing:.07em;color:var(--muted);font-weight:900;margin-bottom:4px}
/* V42 — selección manual de manifestaciones y tareas del microciclo */
.p26-choice-panel{border:1px solid var(--border);border-radius:8px;background:var(--surface,#f8fafc);padding:7px 8px;display:flex;flex-direction:column;gap:6px}
.p26-choice-title{font-size:8px;text-transform:uppercase;letter-spacing:.08em;font-weight:900;color:var(--muted)}
.p26-choice-row{display:flex;align-items:center;gap:6px;min-width:0}
.p26-choice-label{font-size:8.5px;font-weight:800;color:var(--text);min-width:58px}
.p26-choice-select{width:100%;min-width:0;border:1px solid var(--border);border-radius:6px;background:var(--card);color:var(--text);font-size:9px;font-weight:650;padding:5px 6px;outline:none}
.p26-choice-select:focus{border-color:var(--primary);box-shadow:0 0 0 2px rgba(109,82,255,.10)}
.p26-choice-meta{font-size:7.8px;color:var(--muted);line-height:1.25;padding-left:64px}
.p26-choice-gym{border-left:3px solid #3b82f6}.p26-choice-pista{border-left:3px solid #10b981}
.p26-task-class{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:16px;padding:0 4px;border-radius:4px;font-size:7.5px;font-weight:900;margin-right:4px}
.p26-task-class.c-c1,.p26-task-class.c-c2{background:#dcfce7;color:#166534}.p26-task-class.c-c3{background:#fef3c7;color:#92400e}.p26-task-class.c-c4{background:#ffedd5;color:#9a3412}.p26-task-class.c-c5{background:#fee2e2;color:#991b1b}
.p26-choice-legend{display:flex;flex-wrap:wrap;gap:4px;margin-top:2px}.p26-choice-legend span{font-size:7.5px;color:var(--muted)}
.p26-footer{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:11px;flex-wrap:wrap}
.p26-loadline{font-size:10px;color:var(--muted)}
.p26-loadline strong{color:var(--text)}
.p26-alert{font-size:9px;font-weight:850;padding:6px 8px;border-radius:7px;background:rgba(16,185,129,.07);color:#166534;border:1px solid rgba(16,185,129,.18)}
.p26-alert.warn{background:rgba(245,158,11,.08);color:#92400e;border-color:rgba(245,158,11,.18)}
.p26-alert.high{background:rgba(239,68,68,.07);color:#991b1b;border-color:rgba(239,68,68,.18)}
.p26-alert.ok{background:rgba(16,185,129,.07);color:#166534;border-color:rgba(16,185,129,.18)}

/* V29 — presentación profesional del contenido del microciclo */
.p26-recent{display:flex;flex-direction:column;gap:2px;font-size:9px;line-height:1.35}
.p26-recent b{font-size:9px;letter-spacing:.01em}
.p26-recent span{color:var(--muted)}
.p26-generated{display:flex;flex-direction:column;gap:7px;border-top:1px solid var(--border);padding-top:8px;margin-top:1px}
.p26-work{border:1px solid var(--border);border-radius:8px;overflow:hidden;background:var(--card)}
.p26-work-title{padding:5px 7px;font-size:8px;text-transform:uppercase;letter-spacing:.08em;font-weight:900;border-bottom:1px solid var(--border)}
.p26-work.gym .p26-work-title{color:#2563eb;background:rgba(59,130,246,.07);border-bottom-color:rgba(59,130,246,.16)}
.p26-work.pista .p26-work-title{color:#16845a;background:rgba(16,185,129,.07);border-bottom-color:rgba(16,185,129,.16)}
.p26-work-list{display:flex;flex-direction:column}
.p26-work-item{font-size:8.5px;line-height:1.35;padding:5px 7px;border-bottom:1px solid var(--border);font-weight:650;color:var(--text)}
.p26-work-item:last-child{border-bottom:0}
.p26-work-item::before{content:'—';margin-right:5px;color:var(--muted)}
.p26-day.type-mixto .p26-generated{border-top-color:rgba(245,158,11,.28)}
.p26-day.type-mixto .p26-work.gym{order:1}
.p26-day.type-mixto .p26-work.pista{order:2}
.p26-day.type-gym .p26-work.gym,.p26-day.type-pista_gym .p26-work.gym{order:1}
.p26-preview{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(260px,.8fr);gap:10px}
.p26-preview-card{border:1px solid var(--border);border-radius:12px;padding:12px;background:var(--card)}
.p26-preview-day{display:grid;grid-template-columns:65px 1fr auto;gap:8px;padding:9px 0;border-bottom:1px solid var(--border);align-items:start}
.p26-preview-day:last-child{border-bottom:0}
.p26-preview-md{font-size:10px;font-weight:950;color:var(--primary)}
.p26-preview-title{font-size:10px;font-weight:900}
.p26-preview-detail{font-size:9px;color:var(--muted);margin-top:3px;line-height:1.35}
.p26-preview-load{text-align:right;font-size:9px;color:var(--muted);white-space:nowrap}
.p26-summary-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}
.p26-mini{border:1px solid var(--border);border-radius:9px;padding:8px;background:var(--surface,#f8fafc)}
.p26-mini span{display:block;font-size:8px;color:var(--muted);text-transform:uppercase;font-weight:900}
.p26-mini strong{display:block;font-size:14px;margin-top:3px}
.p26-season{display:grid;grid-template-columns:repeat(12,minmax(35px,1fr));gap:4px}
.p26-month{height:38px;border:1px solid var(--border);border-radius:7px;padding:5px;text-align:center;font-size:8px;font-weight:900;position:relative;overflow:hidden}
.p26-month i{position:absolute;left:3px;right:3px;bottom:3px;height:4px;border-radius:9px;background:var(--primary);opacity:.45}
.p26-blocks{display:flex;gap:6px;overflow-x:auto;padding-bottom:2px}
.p26-block{min-width:180px;border:1px solid var(--border);border-radius:10px;padding:9px;background:var(--card)}
.p26-block strong{font-size:10px}.p26-block div{font-size:8px;color:var(--muted);margin-top:3px}
.p26-modal-back{position:fixed;inset:0;background:rgba(15,23,42,.45);z-index:99999;display:grid;place-items:center;padding:18px}
.p26-modal{width:min(500px,100%);background:var(--card);border:1px solid var(--border);border-radius:15px;padding:17px;box-shadow:0 24px 60px rgba(0,0,0,.2)}
.p26-form{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:12px}.p26-form label{font-size:9px;color:var(--muted);font-weight:800}.p26-form input,.p26-form textarea{width:100%;box-sizing:border-box;margin-top:4px;padding:8px;border:1px solid var(--border);border-radius:8px;background:var(--card);color:var(--text);font:inherit}.p26-full{grid-column:1/-1}.p26-modal-actions{display:flex;justify-content:flex-end;gap:6px;margin-top:13px}
@media(max-width:1050px){.p26-context{grid-template-columns:repeat(3,1fr)}.p26-preview{grid-template-columns:1fr}.p26-season{grid-template-columns:repeat(6,1fr)}}
@media(max-width:700px){.p26-head{align-items:flex-start;flex-direction:column}.p26-context{grid-template-columns:1fr 1fr}.p26-days{grid-template-columns:repeat(7,125px)}.p26-season{grid-template-columns:repeat(4,1fr)}.p26-form{grid-template-columns:1fr}.p26-full{grid-column:auto}}
}
/* Source: css/planning-05.css */
@layer compatibility{
#plan-pro-v24{margin:14px 0 18px}
.pp24-nav{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:12px}
.pp24-nav button{border:1px solid var(--border);background:var(--card);color:var(--text-soft);border-radius:9px;padding:8px 12px;font-weight:800;font-size:11px;cursor:pointer}
.pp24-nav button.active{background:var(--text);border-color:var(--text);color:var(--card)}
.pp24-view{display:none}.pp24-view.active{display:block}
.pp24-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:12px}
.pp24-kpi{background:var(--card);border:1px solid var(--border);border-radius:13px;padding:13px 14px}.pp24-kpi small{display:block;color:var(--muted);font-size:9px;font-weight:900;letter-spacing:.06em}.pp24-kpi strong{display:block;font-size:22px;margin-top:5px;line-height:1.1}.pp24-kpi span{display:block;color:var(--muted);font-size:10px;margin-top:4px}
.pp24-card{background:var(--card);border:1px solid var(--border);border-radius:14px;padding:15px;margin-bottom:12px}.pp24-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.pp24-kicker{font-size:9px;color:var(--muted);font-weight:900;letter-spacing:.1em;text-transform:uppercase}.pp24-card h3,.pp24-card h4{margin:4px 0}.pp24-muted{color:var(--muted);font-size:11px;line-height:1.45}
.pp24-timeline{display:grid;grid-template-columns:repeat(12,minmax(55px,1fr));gap:5px;margin-top:13px}.pp24-month{height:54px;border-radius:9px;background:linear-gradient(180deg,rgba(109,82,255,.13),rgba(109,82,255,.03));border:1px solid var(--border);padding:8px;font-size:10px;text-align:center;display:flex;flex-direction:column;justify-content:center}.pp24-month b{font-size:10px;text-transform:uppercase}.pp24-month i{height:5px;border-radius:99px;background:var(--primary);margin-top:6px;opacity:.45}
.pp24-two{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(280px,.8fr);gap:12px}.pp24-week{display:grid;grid-template-columns:repeat(7,minmax(90px,1fr));gap:7px;overflow:auto}.pp24-day{min-height:116px;border:1px solid var(--border);border-radius:11px;padding:9px;background:var(--card)}.pp24-day.match{border-color:rgba(109,82,255,.55);box-shadow:0 0 0 1px rgba(109,82,255,.08)}.pp24-day .dow{font-size:9px;text-transform:uppercase;color:var(--muted);font-weight:900}.pp24-day .date{font-size:18px;font-weight:900;margin:2px 0 7px}.pp24-day .session{font-size:10px;font-weight:800;min-height:26px}.pp24-day .load{font-size:9px;color:var(--muted);margin-top:4px}.pp24-match{font-size:9px;font-weight:900;color:var(--primary);margin-top:8px}
.pp24-block{display:grid;grid-template-columns:8px minmax(0,1fr) auto;gap:10px;align-items:start;padding:11px 0;border-bottom:1px solid var(--border)}.pp24-block:last-child{border-bottom:0}.pp24-dot{width:8px;height:34px;border-radius:8px}.pp24-block h5{margin:0;font-size:12px}.pp24-block p{margin:4px 0 0;color:var(--muted);font-size:10px}.pp24-right{text-align:right;font-size:10px;color:var(--muted)}.pp24-right strong{display:block;color:var(--text);font-size:11px}.pp24-right button{margin-top:5px}
.pp24-table{width:100%;border-collapse:collapse;font-size:10px}.pp24-table th,.pp24-table td{padding:8px;border-bottom:1px solid var(--border);text-align:left}.pp24-table th{font-size:9px;text-transform:uppercase;color:var(--muted)}.pp24-bar{height:6px;background:rgba(100,116,139,.1);border-radius:99px;overflow:hidden;min-width:80px}.pp24-bar i{display:block;height:100%;background:var(--primary);border-radius:99px}
.pp24-modal-back{position:fixed;inset:0;background:rgba(15,23,42,.45);z-index:99999;display:grid;place-items:center;padding:18px}.pp24-modal{width:min(520px,100%);background:var(--card);color:var(--text);border:1px solid var(--border);border-radius:16px;padding:18px;box-shadow:0 24px 60px rgba(0,0,0,.2)}.pp24-form{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px}.pp24-form label{font-size:10px;font-weight:800;color:var(--muted)}.pp24-form input,.pp24-form textarea,.pp24-form select{width:100%;box-sizing:border-box;margin-top:5px;padding:8px;border:1px solid var(--border);border-radius:8px;background:var(--card);color:var(--text);font:inherit}.pp24-full{grid-column:1/-1}.pp24-modal-actions{display:flex;justify-content:flex-end;gap:7px;margin-top:14px}
@media(max-width:900px){.pp24-grid{grid-template-columns:repeat(2,1fr)}.pp24-two{grid-template-columns:1fr}.pp24-timeline{grid-template-columns:repeat(6,1fr)}}
@media(max-width:600px){.pp24-grid{grid-template-columns:1fr 1fr}.pp24-form{grid-template-columns:1fr}.pp24-full{grid-column:auto}.pp24-timeline{grid-template-columns:repeat(4,1fr)}}
}
/* Source: css/planning-06.css */
@layer compatibility{
.pm32-wrap{margin-top:4px}.pm32-head{display:flex;justify-content:space-between;align-items:flex-end;gap:14px;margin-bottom:12px}.pm32-kicker{font-size:9px;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);font-weight:900}.pm32-title{font-size:22px;font-weight:950;margin:3px 0}.pm32-sub{font-size:11px;color:var(--muted)}.pm32-actions{display:flex;gap:6px;flex-wrap:wrap}.pm32-btn{border:1px solid var(--border);background:var(--card);color:var(--text);border-radius:9px;padding:8px 11px;font-size:10px;font-weight:850;cursor:pointer}.pm32-btn.primary{background:var(--primary);border-color:var(--primary);color:#fff}.pm32-btn:hover{border-color:rgba(109,82,255,.45)}
.pm32-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;background:var(--card);border:1px solid var(--border);border-radius:13px;padding:10px 12px;margin-bottom:10px}.pm32-month{font-size:15px;font-weight:950;text-transform:capitalize}.pm32-nav{display:flex;gap:5px}.pm32-legend{display:flex;gap:10px;flex-wrap:wrap;font-size:9px;color:var(--muted);align-items:center}.pm32-legend span{display:inline-flex;align-items:center;gap:4px}.pm32-swatch{width:9px;height:9px;border-radius:3px;display:inline-block;border:1px solid rgba(0,0,0,.08)}
.pm32-grid{display:grid;grid-template-columns:repeat(7,minmax(135px,1fr));gap:6px;overflow-x:auto}.pm32-weekday{font-size:8px;text-transform:uppercase;color:var(--muted);font-weight:900;padding:3px 7px}.pm32-cell{min-height:128px;background:var(--card);border:1px solid var(--border);border-radius:10px;padding:7px;display:flex;flex-direction:column;gap:6px;transition:.12s ease}.pm32-cell.muted{opacity:.48}.pm32-cell.int1{background:rgba(16,185,129,.055);border-color:rgba(16,185,129,.22)}.pm32-cell.int2{background:rgba(132,204,22,.07);border-color:rgba(132,204,22,.28)}.pm32-cell.int3{background:rgba(245,158,11,.09);border-color:rgba(245,158,11,.30)}.pm32-cell.int4{background:rgba(249,115,22,.11);border-color:rgba(249,115,22,.36)}.pm32-cell.int5{background:rgba(239,68,68,.11);border-color:rgba(239,68,68,.40)}.pm32-date{display:flex;justify-content:space-between;align-items:center}.pm32-daynum{font-size:14px;font-weight:950}.pm32-dow{font-size:8px;color:var(--muted);font-weight:800}.pm32-select{width:100%;box-sizing:border-box;border:1px solid rgba(0,0,0,.10);border-radius:7px;padding:6px;background:rgba(255,255,255,.7);color:var(--text);font-size:9px;font-weight:800}.pm32-int{display:flex;gap:3px;align-items:center}.pm32-int button{flex:1;border:1px solid var(--border);background:rgba(255,255,255,.72);border-radius:5px;padding:5px 0;font-size:8px;font-weight:900;color:var(--muted);cursor:pointer}.pm32-int button.active{color:var(--text);border-color:currentColor}.pm32-meta{font-size:8px;color:var(--muted);line-height:1.25}.pm32-type{font-size:8px;font-weight:900;min-height:14px}.pm32-type.pista{color:#15803d}.pm32-type.gym{color:#2563eb}.pm32-type.mixto{color:#b45309}.pm32-type.partido{color:#b91c1c}.pm32-type.amistoso{color:#a16207}.pm32-type.recovery{color:#0f766e}.pm32-type.descanso{color:#64748b}.pm32-footer{margin-top:10px;background:var(--card);border:1px solid var(--border);border-radius:12px;padding:10px 12px;font-size:9px;color:var(--muted);display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap}.pm32-footer strong{color:var(--text)}
@media(max-width:1100px){.pm32-grid{grid-template-columns:repeat(7,150px)}}
}
/* Source: css/external-load-07.css */
@layer compatibility{
/* v60 — unified task library + language selector */
.ce44-picker-sub{display:block;font-size:7px;color:var(--muted);margin-top:3px;font-weight:500}.ce44-picker-item.custom{position:relative;display:flex;align-items:stretch;padding:0;overflow:hidden}.ce44-picker-actions{display:flex;border-left:1px solid var(--border);background:var(--surface)}.ce44-picker-actions button{width:30px;border:0;border-left:1px solid var(--border);background:transparent;color:var(--muted);cursor:pointer;font-size:12px}.ce44-picker-actions button:last-child{color:#b91c1c}.ce44-picker-actions button:hover{background:var(--card-alt)}.ce44-picker-use{min-width:0}.ce44-picker-section-head>div{display:flex;flex-direction:column}.cc-lang-row{display:flex;gap:6px;padding:7px 8px}.cc-lang-row button{flex:1;border:1px solid var(--border);background:var(--surface);border-radius:7px;padding:7px 8px;font-size:11px;font-weight:800;cursor:pointer}.cc-lang-row button.active{background:var(--primary);color:#fff;border-color:var(--primary)}
}
/* Source: css/external-load-08.css */
@layer compatibility{
.ce44-task-toolbar{margin:10px 0 12px;padding:10px 12px;border:1px solid var(--border);border-radius:9px;background:var(--surface);}
.ce44-task-toolbar-main{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.ce44-add-task-btn{height:36px;padding:0 15px;font-size:10px}
.ce44-saved-btn{height:34px;border:1px solid var(--border);border-radius:7px;background:var(--card);color:var(--text);padding:0 12px;font-size:9px;font-weight:850;cursor:pointer}
.ce44-task-hint{font-size:8px;color:var(--muted)}
.ce44-save-ex-btn{margin-left:auto;height:28px;border:1px solid var(--border);border-radius:6px;background:var(--surface);color:var(--text);padding:0 9px;font-size:8px;font-weight:850;cursor:pointer}
.ce44-guide-row>div{min-width:0}
.ce44-guide-row span{min-width:0;overflow-wrap:anywhere;word-break:normal;white-space:normal;hyphens:auto}
@media(max-width:900px){.ce44-save-ex-btn{margin-left:0}.ce44-task-hint{width:100%}}
}
/* Source: css/planning-09.css */
@layer compatibility{

/* =========================================================
   V66 · DESIGN SYSTEM UNIFICADO
   Una sola jerarquía visual para toda la plataforma.
   ========================================================= */
:root{
  --ui-bg:#f5f7fb!important;
  --ui-surface:#ffffff!important;
  --ui-surface-2:#f8fafc!important;
  --ui-surface-3:#eef2f7!important;
  --ui-border:#dfe5ee!important;
  --ui-border-strong:#cbd5e1!important;
  --ui-text:#172033!important;
  --ui-text-2:#344054!important;
  --ui-muted:#667085!important;
  --ui-subtle:#98a2b3!important;
  --ui-nav:#101827!important;
  --ui-nav-2:#172235!important;
  --ui-primary:#635bdb!important;
  --ui-primary-2:#5148c8!important;
  --ui-primary-soft:#efedff!important;
  --ui-cyan:#17a9b8!important;
  --ui-green:#15966a!important;
  --ui-yellow:#d99a16!important;
  --ui-orange:#d97706!important;
  --ui-red:#d64555!important;
  --ui-radius:12px!important;
  --ui-radius-sm:9px!important;
  --ui-shadow:0 1px 2px rgba(16,24,40,.03),0 8px 24px rgba(16,24,40,.045)!important;
  --ui-shadow-lg:0 18px 48px rgba(16,24,40,.12)!important;
}
html,body{font-family: Inter, system-ui, sans-serif !important;background:var(--ui-bg)!important;color:var(--ui-text)!important}
body{font-size:13px;line-height:1.45;letter-spacing:-.005em}
*,*:before,*:after{box-sizing:border-box}
button,input,select,textarea{font-family:inherit!important}
button{cursor:pointer}

/* Shell */
#app-shell{background:var(--ui-bg)!important}
.app-sidebar,aside.app-sidebar{width:258px!important;background:linear-gradient(180deg,var(--ui-nav) 0%,#0c1421 100%)!important;border-right:1px solid rgba(255,255,255,.07)!important;box-shadow:10px 0 30px rgba(15,23,42,.08)!important}
.app-sidebar .sidebar-brand{height:70px!important;padding:0 18px!important;border-bottom:1px solid rgba(255,255,255,.07)!important}
.app-sidebar .brand-mark{width:40px!important;height:40px!important;border-radius:11px!important;background:linear-gradient(135deg,var(--ui-primary),#7b74ea)!important;box-shadow:0 8px 20px rgba(99,91,219,.28)!important}
.app-sidebar .brand-name{font-size:15px!important;font-weight:800!important;letter-spacing:-.035em!important}
.app-sidebar .brand-sub{font-size:9px!important;letter-spacing:.08em!important;color:rgba(255,255,255,.42)!important}
.sidebar-context{margin:14px 12px 10px!important;padding:11px 12px!important;border-radius:11px!important;background:rgba(255,255,255,.055)!important;border:1px solid rgba(255,255,255,.075)!important}
.nav-section-label{padding:16px 10px 7px!important;font-size:8px!important;letter-spacing:.16em!important;color:rgba(255,255,255,.32)!important}
.app-nav{gap:3px!important}
.app-nav .nav-main,.app-nav .nav-group-toggle{height:40px!important;border-radius:9px!important;padding:0 11px!important;color:rgba(255,255,255,.63)!important;border:1px solid transparent!important;background:transparent!important}
.app-nav .nav-main:hover,.app-nav .nav-group-toggle:hover{background:rgba(255,255,255,.055)!important;color:#fff!important}
.app-nav .nav-main.active,.app-nav .nav-group.active>.nav-group-toggle,.app-nav .nav-group.open>.nav-group-toggle{background:linear-gradient(90deg,rgba(99,91,219,.22),rgba(99,91,219,.08))!important;border-color:rgba(123,116,234,.2)!important;box-shadow:inset 3px 0 0 var(--ui-primary)!important;color:#fff!important}
.app-nav .tab-label{font-size:12px!important;font-weight:650!important}
.app-nav .tab-icon{width:17px!important;height:17px!important}
.app-nav .active .tab-icon,.app-nav .nav-group.active .tab-icon{color:#a9a3ff!important}
.sidebar-plan-card{border-radius:11px!important;background:linear-gradient(135deg,rgba(99,91,219,.17),rgba(23,169,184,.035))!important;border:1px solid rgba(123,116,234,.18)!important}

/* Header */
.app-header{height:68px!important;padding:0 22px!important;background:rgba(255,255,255,.92)!important;border-bottom:1px solid var(--ui-border)!important;box-shadow:0 1px 0 rgba(16,24,40,.02)!important;backdrop-filter:blur(16px)!important}
.app-header .ah-search{height:40px!important;border-radius:10px!important;background:var(--ui-surface-2)!important;border:1px solid var(--ui-border)!important}
.app-header .ah-search:focus-within{border-color:rgba(99,91,219,.5)!important;box-shadow:0 0 0 3px rgba(99,91,219,.09)!important}
.ah-icon-btn,.header-actions button,.header-equipo-gestionar,.header-equipo-select{border-radius:10px!important;border:1px solid var(--ui-border)!important;background:#fff!important;color:var(--ui-text)!important}
.header-equipo-select{height:40px!important;font-weight:650!important}

/* Page */
main{background:var(--ui-bg)!important}
.tab-panel{max-width:1500px!important;margin:0 auto!important;padding:26px 28px 48px!important}
.tab-panel>h1,.tab-panel>h2,.page-title{font-weight:800!important;letter-spacing:-.04em!important;color:var(--ui-text)!important}
.tab-panel>p,.page-subtitle{color:var(--ui-muted)!important}

/* Universal cards / panels */
.card,.panel,.table-wrap,.inicio-card,.inicio-quick-card,.inicio-hero,.kpi-card,.modal-content,.section-card,.settings-card{border:1px solid var(--ui-border)!important;border-radius:var(--ui-radius)!important;background:var(--ui-surface)!important;box-shadow:var(--ui-shadow)!important}
.card,.panel,.section-card,.settings-card{padding:18px!important}
.card-title,.panel-header h2,.section-title{color:var(--ui-text)!important;font-weight:780!important;letter-spacing:-.025em!important}
.panel-header{margin-bottom:16px!important}
.muted,.text-muted{color:var(--ui-muted)!important}

/* Buttons */
.btn,.button,.btn-ghost,.btn-secondary,.btn-outline{min-height:36px!important;padding:0 13px!important;border-radius:9px!important;border:1px solid var(--ui-border)!important;background:#fff!important;color:var(--ui-text)!important;font-weight:650!important;box-shadow:none!important;transition:background .15s ease,border-color .15s ease,box-shadow .15s ease,transform .15s ease!important}
.btn:hover,.button:hover,.btn-ghost:hover,.btn-secondary:hover,.btn-outline:hover{background:var(--ui-surface-2)!important;border-color:var(--ui-border-strong)!important;box-shadow:0 5px 14px rgba(16,24,40,.06)!important;transform:translateY(-1px)}
.btn-primary,.button-primary,.btn.btn-primary{background:var(--ui-primary)!important;border-color:var(--ui-primary)!important;color:#fff!important;box-shadow:0 6px 16px rgba(99,91,219,.18)!important}
.btn-primary:hover,.button-primary:hover{background:var(--ui-primary-2)!important;border-color:var(--ui-primary-2)!important}
.btn-success{background:var(--ui-green)!important;border-color:var(--ui-green)!important;color:#fff!important}
.btn-warn{background:var(--ui-orange)!important;border-color:var(--ui-orange)!important;color:#fff!important}
.btn-danger,.btn-delete{background:#fff!important;color:var(--ui-red)!important;border-color:#f1c6cb!important}

/* Inputs */
input,select,textarea{min-height:38px!important;border:1px solid var(--ui-border)!important;border-radius:9px!important;background:#fff!important;color:var(--ui-text)!important;box-shadow:none!important}
textarea{padding:10px 12px!important}
input::placeholder,textarea::placeholder{color:#98a2b3!important}
input:focus,select:focus,textarea:focus{outline:none!important;border-color:rgba(99,91,219,.62)!important;box-shadow:0 0 0 3px rgba(99,91,219,.09)!important}
label{color:var(--ui-text-2)!important;font-weight:650!important}

/* KPI / metrics */
.kpi-card,.inicio-kpi{border-radius:11px!important;background:#fff!important;border:1px solid var(--ui-border)!important;box-shadow:none!important}
.kpi-value,.inicio-kpi-value{font-weight:820!important;letter-spacing:-.045em!important;color:var(--ui-text)!important}
.kpi-label,.inicio-kpi-label{font-size:10px!important;text-transform:uppercase!important;letter-spacing:.08em!important;color:var(--ui-muted)!important;font-weight:750!important}

/* Tables */
table{border-collapse:separate!important;border-spacing:0!important}
th{background:var(--ui-surface-2)!important;color:#667085!important;border-bottom:1px solid var(--ui-border)!important;font-size:10px!important;text-transform:uppercase!important;letter-spacing:.07em!important;font-weight:750!important}
td{border-bottom:1px solid #edf0f4!important;color:var(--ui-text-2)!important}
tbody tr:hover td{background:#fafbff!important}

/* Tabs / segmented controls */
.tabs,.tab-nav,.view-switch,.segmented{gap:4px!important;padding:4px!important;border:1px solid var(--ui-border)!important;background:var(--ui-surface-2)!important;border-radius:10px!important}
.tabs button,.tab-nav button,.view-switch button,.segmented button{border:0!important;border-radius:7px!important;background:transparent!important;color:var(--ui-muted)!important;font-weight:650!important}
.tabs button.active,.tab-nav button.active,.view-switch button.active,.segmented button.active{background:#fff!important;color:var(--ui-primary)!important;box-shadow:0 1px 4px rgba(16,24,40,.08)!important}

/* Badges / pills */
.badge,.pill,.status-badge,.tag,.chip{border-radius:999px!important;font-weight:720!important;border:1px solid transparent!important}

/* Modals */
.modal{background:rgba(15,23,42,.48)!important;backdrop-filter:blur(7px)!important}
.modal-content{box-shadow:var(--ui-shadow-lg)!important;overflow:hidden!important}
.modal-header{padding:18px 20px!important;border-bottom:1px solid var(--ui-border)!important;background:#fff!important}
.modal-header h2,.modal-header h3{font-weight:800!important;letter-spacing:-.03em!important;color:var(--ui-text)!important}
.modal-body{padding:20px!important}
.modal-actions{padding-top:16px!important;border-top:1px solid var(--ui-border)!important;display:flex!important;justify-content:flex-end!important;gap:8px!important}

/* Forms / wellness */
.wellness-question{background:#fff!important;border:1px solid var(--ui-border)!important;border-radius:12px!important;padding:16px!important;box-shadow:none!important}
.wellness-question-title h4{font-size:14px!important;font-weight:780!important;color:var(--ui-text)!important}
.badge-meaning{background:var(--ui-surface-2)!important;border:1px solid var(--ui-border)!important;color:var(--ui-muted)!important;border-radius:999px!important;padding:4px 8px!important;font-size:10px!important}
.wellness-scale{gap:6px!important}
.wellness-scale button{height:42px!important;border-radius:8px!important;border:1px solid var(--ui-border)!important;background:#fff!important;color:var(--ui-text-2)!important;font-weight:750!important}
.wellness-scale button:hover{border-color:var(--ui-primary)!important;background:var(--ui-primary-soft)!important;color:var(--ui-primary)!important}
.wellness-scale button.selected{background:var(--ui-primary)!important;border-color:var(--ui-primary)!important;color:#fff!important}

/* Planning / microcycle day cards */
.micro-day,.day-card,.plan-day,.calendar-day{border:1px solid var(--ui-border)!important;border-radius:12px!important;background:#fff!important;box-shadow:none!important;overflow:hidden!important}
.micro-day-header,.day-card-header,.plan-day-header{border-bottom:1px solid var(--ui-border)!important;background:var(--ui-surface-2)!important}
.micro-day-body,.day-card-body,.plan-day-body{padding:12px!important}

/* C1-C5 semantic accents — same component language, only status color changes */
.c1,.c2,.c3,.c4,.c5{border-radius:9px!important;box-shadow:none!important}

/* External load */
.external-load-card,.load-task,.task-card,.task-item{border:1px solid var(--ui-border)!important;border-radius:10px!important;background:#fff!important;box-shadow:none!important}
.task-card:hover,.task-item:hover{border-color:#cbd5e1!important;box-shadow:0 4px 12px rgba(16,24,40,.05)!important}
.task-card-header,.task-item-header{background:var(--ui-surface-2)!important;border-bottom:1px solid var(--ui-border)!important}

/* Player / profile */
.profile-card,.player-card{border:1px solid var(--ui-border)!important;border-radius:12px!important;background:#fff!important;box-shadow:var(--ui-shadow)!important}
.avatar,.profile-avatar,.user-avatar{border-radius:50%!important;border:2px solid #fff!important;box-shadow:0 2px 8px rgba(16,24,40,.12)!important}

/* Dashboard hero */
.inicio-hero{background:linear-gradient(135deg,#182235 0%,#202c45 58%,#343a70 100%)!important;color:#fff!important;border:0!important;box-shadow:0 16px 36px rgba(17,24,39,.16)!important}
.inicio-hero *{color:inherit}

/* Landing uses same brand language */
.landing{background:#f5f7fb!important;color:var(--ui-text)!important}
.landing-nav{background:rgba(245,247,251,.92)!important;border-bottom:1px solid var(--ui-border)!important;backdrop-filter:blur(16px)!important}
.ln-mark{background:linear-gradient(135deg,var(--ui-primary),#7b74ea)!important;border-radius:10px!important}
.hl-primary{color:var(--ui-primary)!important}
.btn-landing.btn-primary{background:var(--ui-primary)!important;border-color:var(--ui-primary)!important}
.price-card{border:1px solid var(--ui-border)!important;border-radius:14px!important;background:#fff!important;box-shadow:var(--ui-shadow)!important}

/* Scrollbars */
*{scrollbar-width:thin;scrollbar-color:#cbd5e1 transparent}
*::-webkit-scrollbar{width:8px;height:8px}
*::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:999px}
*::-webkit-scrollbar-track{background:transparent}

/* Dark theme: same design language, darker surfaces */
[data-theme="dark"]{
 --ui-bg:#0b1120!important;--ui-surface:#111827!important;--ui-surface-2:#151e2f!important;--ui-surface-3:#1b2638!important;
 --ui-border:#283448!important;--ui-border-strong:#3a4860!important;--ui-text:#f4f6fa!important;--ui-text-2:#d5dbe5!important;--ui-muted:#9aa5b7!important;
 --ui-primary:#8179ee!important;--ui-primary-2:#938cf5!important;--ui-primary-soft:#211f48!important;
}
[data-theme="dark"] .app-header{background:rgba(15,23,42,.93)!important;border-bottom-color:var(--ui-border)!important}
[data-theme="dark"] .app-header .ah-search,[data-theme="dark"] input,[data-theme="dark"] select,[data-theme="dark"] textarea,[data-theme="dark"] .btn,[data-theme="dark"] .header-actions button,[data-theme="dark"] .header-equipo-select{background:var(--ui-surface)!important;color:var(--ui-text)!important;border-color:var(--ui-border)!important}
[data-theme="dark"] .card,[data-theme="dark"] .panel,[data-theme="dark"] .table-wrap,[data-theme="dark"] .modal-content,[data-theme="dark"] .wellness-question,[data-theme="dark"] .task-card,[data-theme="dark"] .profile-card{background:var(--ui-surface)!important;border-color:var(--ui-border)!important}
[data-theme="dark"] th{background:var(--ui-surface-2)!important;color:var(--ui-muted)!important}
[data-theme="dark"] td{border-bottom-color:var(--ui-border)!important;color:var(--ui-text-2)!important}
[data-theme="dark"] tbody tr:hover td{background:var(--ui-surface-2)!important}
[data-theme="dark"] .modal-header{background:var(--ui-surface)!important;border-bottom-color:var(--ui-border)!important}

@media(max-width:900px){
 .tab-panel{padding:20px 14px 40px!important}
 .app-header{padding:0 12px!important}
 .card,.panel{padding:14px!important}
}

}
/* Source: css/planning-10.css */
@layer compatibility{
/* V69 — Sistema visual unificado: azul base + color semántico por módulo */
:root{
  --ui-blue:#3157D5;
  --ui-blue-deep:#2444B4;
  --ui-blue-soft:#EEF2FF;
  --ui-blue-line:#C9D4FF;
  --ui-load:#C62828;
  --ui-load-deep:#9F1F1F;
  --ui-load-soft:#FFF0F0;
  --ui-load-line:#F1C5C5;
  --ui-green:#148A67;
  --ui-green-soft:#EAF8F3;
  --ui-purple:#6D4FD8;
  --ui-purple-soft:#F2EEFF;
  --ui-orange:#C56A16;
  --ui-orange-soft:#FFF4E8;
  --ui-slate:#536273;
  --ui-slate-soft:#F1F4F7;
}
/* App shell: neutralise the old editorial red/cream look without changing semantic status colours */
body{background:#F5F7FB;color:#172033;font-family:var(--font-body)}
#app-shell{background:#F5F7FB}
main{background:#F5F7FB!important}
.card,.panel,.kpi-card,.section-card,.table-wrap,.modal,.modal-content,.chart-card{background:#FFF}
/* Global product chrome: one blue language */
header,.topbar{border-bottom-color:#E2E7F0!important}
.brand-mark{background:linear-gradient(135deg,var(--ui-blue),var(--ui-blue-deep))!important;box-shadow:0 6px 18px rgba(49,87,213,.22)!important}
nav.sidebar-nav button.active,
.nav-group.active>.nav-group-toggle,
.nav-group-items button.active{background:linear-gradient(90deg,rgba(49,87,213,.16),rgba(49,87,213,.03))!important;border-left-color:var(--ui-blue)!important;color:#F8FAFF!important}
nav.sidebar-nav button.active .tab-icon,.nav-group.active>.nav-group-toggle .tab-icon,.nav-group-items button.active .dot{color:var(--ui-blue)!important;background-color:var(--ui-blue)!important}
button.btn-primary,.btn-primary,.primary-btn{background:var(--ui-blue)!important;border-color:var(--ui-blue)!important;color:#fff!important}
button.btn-primary:hover,.btn-primary:hover,.primary-btn:hover{background:var(--ui-blue-deep)!important}
:focus-visible{outline:2px solid rgba(49,87,213,.45)!important;outline-offset:2px}
/* Default accents: blue */
body:not([data-module="carga"]):not([data-module="wellness"]):not([data-module="planificacion"]):not([data-module="partidos"]) .section-title,
body:not([data-module="carga"]):not([data-module="wellness"]):not([data-module="planificacion"]):not([data-module="partidos"]) .kpi-value{color:var(--ui-blue)}
/* Carga = red, consistently */
body[data-module="carga"] .section-title,
body[data-module="carga"] .kpi-value,
body[data-module="carga"] .metric-value{color:var(--ui-load)}
body[data-module="carga"] .btn-primary,
body[data-module="carga"] .primary-btn,
body[data-module="carga"] .action-primary{background:var(--ui-load)!important;border-color:var(--ui-load)!important}
body[data-module="carga"] .btn-primary:hover,
body[data-module="carga"] .primary-btn:hover{background:var(--ui-load-deep)!important}
body[data-module="carga"] .active,
body[data-module="carga"] .selected{--accent:var(--ui-load)}
body[data-module="carga"] .panel-accent,
body[data-module="carga"] .section-card.accent,
body[data-module="carga"] .kpi-card.accent{border-top-color:var(--ui-load)!important}
/* Wellness = green */
body[data-module="wellness"] .section-title,
body[data-module="wellness"] .kpi-value{color:var(--ui-green)}
/* Planning = blue, with intensity/type colours reserved for the calendar semantics */
body[data-module="planificacion"] .section-title{color:var(--ui-blue)}
/* Matches/rotations = blue, while foul/result status colours remain semantic */
body[data-module="partidos"] .section-title{color:var(--ui-blue)}
/* Shared component language */
.card,.panel,.kpi-card,.section-card,.table-wrap,.chart-card{border:1px solid #E1E6EF!important;border-radius:12px!important;box-shadow:0 1px 3px rgba(15,23,42,.05)!important}
input,select,textarea{border:1px solid #D8DFEA!important;border-radius:9px!important;background:#FFF!important;color:#172033!important}
input:focus,select:focus,textarea:focus{border-color:var(--ui-blue)!important;box-shadow:0 0 0 3px rgba(49,87,213,.10)!important}
.badge,.chip,.pill{border-radius:999px}
/* Do not override semantic intensity/session colours in planning/calendar */
.intensity-1,.intensity-2,.intensity-3,.intensity-4,.intensity-5,
.session-pista,.session-gym,.session-pista-gym,.session-partido,.session-recovery,.session-amistoso{color:inherit}
/* Dark mode keeps the same accent hierarchy */
[data-theme="dark"] body{background:#0E1420;color:#E7ECF5}
[data-theme="dark"] main,#app-shell{background:var(--bg)!important}
}
/* Source: css/planning-11.css */
@layer compatibility{
/* V70 — Sistema visual único. El azul es la identidad de producto.
   Los colores de calendario/intensidad se conservan solo cuando tienen significado funcional. */
:root{
  --bg:#F5F8FC!important;
  --bg-tint:#EEF4FB!important;
  --bg-deep:#E6EEF8!important;
  --card:#FFFFFF!important;
  --card-alt:#F8FAFD!important;
  --border:#DCE5F0!important;
  --border-strong:#C4D2E3!important;
  --text:#142033!important;
  --text-soft:#40506A!important;
  --muted:#718096!important;
  --primary:#2F5FB3!important;
  --primary-deep:#244A8D!important;
  --primary-soft:#EAF1FB!important;
  --secondary:#142033!important;
  --accent:#3B6FB6!important;
  --accent-soft:#EAF2FC!important;
  --gold:#5B78A6!important;
  --gold-soft:#EEF3F9!important;
  --danger:#C94A57;
  --danger-soft:#FCEDEF;
  --warn:#B7832F;
  --warn-soft:#FBF4E5;
  --input:#FFFFFF!important;
  --calc:#F5F8FC!important;
  --row-stripe:#F8FAFD!important;
  --ui-bg:#F5F8FC!important;
  --ui-surface:#FFFFFF!important;
  --ui-surface2:#F8FAFD!important;
  --ui-surface3:#F1F5FA!important;
  --ui-border:#DCE5F0!important;
  --ui-border-strong:#C4D2E3!important;
  --ui-text:#142033!important;
  --ui-text-2:#40506A!important;
  --ui-muted:#718096!important;
  --ui-nav:#13233D!important;
  --ui-nav2:#1A3154!important;
  --ui-accent:#2F5FB3!important;
  --ui-accent2:#4D7CC4!important;
  --ui-cyan:#4B7DBD!important;
  --ui-green:#4E7AA8!important;
  --ui-warn:#B7832F!important;
  --ui-red:#C94A57!important;
  --ui-blue:#2F5FB3!important;
  --ui-blue-deep:#244A8D!important;
  --ui-blue-soft:#EAF1FB!important;
  --ui-blue-line:#C8D8EC!important;
  --ui-load:#2F5FB3!important;
  --ui-load-deep:#244A8D!important;
  --ui-load-soft:#EAF1FB!important;
  --ui-load-line:#C8D8EC!important;
  --ui-purple:#5576AE!important;
  --ui-purple-soft:#EDF3FA!important;
  --ui-orange:#5B78A6!important;
  --ui-orange-soft:#EEF3F9!important;
  --ui-slate:#61738E!important;
  --ui-slate-soft:#F0F4F9!important;
  --ui-radius:12px!important;
  --ui-shadow:0 1px 2px rgba(20,32,51,.03),0 7px 22px rgba(20,32,51,.05)!important;
  --shadow-sm:0 1px 2px rgba(20,32,51,.04)!important;
  --shadow:0 1px 3px rgba(20,32,51,.06)!important;
}

html,body{background:var(--ui-bg)!important;color:var(--ui-text)!important}
body{font-family: Inter, system-ui, sans-serif !important}
#app-shell,main{background:var(--ui-bg)!important}

/* Chrome global: siempre azul, independientemente del módulo */
.app-sidebar,aside.app-sidebar{background:linear-gradient(180deg,#13233D 0%,#0F1D33 100%)!important}
.brand-mark,.app-sidebar .brand-mark{background:linear-gradient(135deg,#3F73C0,#244A8D)!important;box-shadow:0 7px 20px rgba(47,95,179,.25)!important}
.app-nav .nav-main.active,.app-nav .nav-group.active>.nav-group-toggle,.app-nav .nav-group.open>.nav-group-toggle,
.nav-group-items button.active{background:linear-gradient(90deg,rgba(47,95,179,.22),rgba(47,95,179,.07))!important;border-color:rgba(112,151,204,.22)!important;box-shadow:inset 3px 0 0 #4D7CC4!important}
.app-nav .active .tab-icon,.app-nav .nav-group.active .tab-icon,.nav-group-items button.active .dot{color:#8FB2DF!important;background:#8FB2DF!important}
.app-header{background:rgba(255,255,255,.96)!important;border-bottom-color:var(--ui-border)!important}
.app-header .ah-search,.header-actions button,.header-equipo-select,.header-equipo-gestionar{border-color:var(--ui-border)!important;background:#fff!important}
.header-actions button.primary,.btn-primary,.primary-btn,button.btn-primary{background:var(--ui-accent)!important;border-color:var(--ui-accent)!important;color:#fff!important;box-shadow:0 6px 15px rgba(47,95,179,.16)!important}
.header-actions button.primary:hover,.btn-primary:hover,.primary-btn:hover,button.btn-primary:hover{background:var(--ui-accent-deep,#244A8D)!important;border-color:#244A8D!important}

/* Componentes: misma geometría y mismo lenguaje */
.card,.panel,.kpi-card,.section-card,.table-wrap,.chart-card,.inicio-card,.inicio-quick-card,.inicio-hero,.modal-content,.profile-card,.wellness-question,.task-card{
 background:var(--ui-surface)!important;border:1px solid var(--ui-border)!important;border-radius:12px!important;box-shadow:var(--ui-shadow)!important;
}
.card-title,.panel-header h2,.section-title{color:var(--ui-text)!important}
.muted{color:var(--ui-muted)!important}
.btn{border:1px solid var(--ui-border)!important;background:#fff!important;color:var(--ui-text)!important;border-radius:9px!important}
.btn:hover{border-color:#B9CAE1!important;background:#F8FAFD!important}
input,select,textarea{border-color:#D5DFEC!important;border-radius:9px!important;background:#fff!important;color:var(--ui-text)!important}
input:focus,select:focus,textarea:focus{border-color:var(--ui-accent)!important;box-shadow:0 0 0 3px rgba(47,95,179,.10)!important}
th{background:#F3F6FA!important;color:#64748B!important;border-bottom-color:var(--ui-border)!important}
td{border-bottom-color:#E9EEF5!important}
tr:hover td{background:#F8FAFD!important}
.badge,.chip,.pill,.status-badge{border-radius:999px!important}

/* No usar rojo/verde/naranja como identidad de módulo */
body[data-module="carga"] .section-title,
body[data-module="carga"] .kpi-value,
body[data-module="carga"] .metric-value,
body[data-module="wellness"] .section-title,
body[data-module="wellness"] .kpi-value,
body[data-module="planificacion"] .section-title,
body[data-module="partidos"] .section-title{color:var(--ui-accent)!important}
body[data-module="carga"] .btn-primary,
body[data-module="carga"] .primary-btn,
body[data-module="carga"] .action-primary{background:var(--ui-accent)!important;border-color:var(--ui-accent)!important}
body[data-module="carga"] .btn-primary:hover,body[data-module="carga"] .primary-btn:hover{background:var(--ui-blue-deep)!important}
body[data-module="carga"] .panel-accent,body[data-module="carga"] .section-card.accent,body[data-module="carga"] .kpi-card.accent{border-top-color:var(--ui-accent)!important}

/* Sustituye las variables de módulo que introducía V69 por tonos azules */
body[data-module="carga"],body[data-module="wellness"],body[data-module="planificacion"],body[data-module="partidos"]{--accent:var(--ui-accent)!important;--accent-soft:var(--ui-accent-soft)!important;--primary:var(--ui-accent)!important;--primary-deep:var(--ui-blue-deep)!important;--primary-soft:var(--ui-blue-soft)!important}

/* Dashboard: mismo azul, sin otro estilo cromático */
.inicio-hero{background:linear-gradient(135deg,#172A49 0%,#244A8D 58%,#3F73C0 100%)!important}
.inicio-hero *{color:inherit}
.landing{background:#F5F8FC!important}.landing-nav{background:rgba(245,248,252,.94)!important;border-bottom-color:var(--ui-border)!important}
.ln-mark{background:linear-gradient(135deg,#3F73C0,#244A8D)!important}.hl-primary{color:var(--ui-accent)!important}

/* Mantener colores funcionales SOLO donde codifican información: calendario/intensidad/C1-C5/estado */
.day.has-type,.day.intensity-1,.day.intensity-2,.day.intensity-3,.day.intensity-4,.day.intensity-5,
.session-pista,.session-gym,.session-pista-gym,.session-partido,.session-recovery,.session-amistoso,
.c1,.c2,.c3,.c4,.c5,.intensity-1,.intensity-2,.intensity-3,.intensity-4,.intensity-5{ }

/* Dark: misma familia azul */
[data-theme="dark"]{
 --ui-bg:#0C1628!important;--ui-surface:#111E31!important;--ui-surface2:#16243A!important;--ui-surface3:#1C2C44!important;
 --ui-border:#293B55!important;--ui-border-strong:#3A4E6B!important;--ui-text:#F2F6FC!important;--ui-text-2:#D2DCEA!important;--ui-muted:#94A5BC!important;
 --ui-primary:#6F98D4!important;--ui-primary-2:#8AADE0!important;--ui-primary-soft:#1A2B45!important;--ui-accent:#6F98D4!important;
 --primary:#6F98D4!important;--primary-deep:#527DBE!important;--primary-soft:#1A2B45!important;--accent:#78A1D8!important;--accent-soft:#1A2B45!important;
 --bg:#0C1628!important;--card:#111E31!important;--card-alt:#16243A!important;--border:#293B55!important;--text:#F2F6FC!important;--muted:#94A5BC!important;
}
[data-theme="dark"] main{background:var(--ui-bg)!important}
[data-theme="dark"] .app-header{background:rgba(12,22,40,.94)!important;border-bottom-color:var(--ui-border)!important}
[data-theme="dark"] input,[data-theme="dark"] select,[data-theme="dark"] textarea,[data-theme="dark"] .btn,[data-theme="dark"] .header-actions button{background:var(--ui-surface)!important;color:var(--ui-text)!important;border-color:var(--ui-border)!important}

/* Responsive */
@media(max-width:900px){.tab-panel{padding:20px 14px 40px!important}.app-header{padding:0 12px!important}}
}
/* Source: css/unified-blue-theme.css */
@layer compatibility{/* =========================================================
   CONTROL DE CARGA — UNIFIED BLUE PRODUCT THEME
   Visual-only layer. Do not alter module logic or semantic
   workout/status colors used by planning and analytics.
   ========================================================= */
:root{
  --cc-bg:#f4f7fb;
  --cc-surface:#ffffff;
  --cc-surface-2:#f8fafc;
  --cc-border:#dfe7f1;
  --cc-border-strong:#c8d6e8;
  --cc-text:#0f172a;
  --cc-text-2:#334155;
  --cc-muted:#64748b;
  --cc-primary:#2563eb;
  --cc-primary-2:#1d4ed8;
  --cc-primary-soft:#eff6ff;
  --cc-navy:#0b1f3a;
  --cc-navy-2:#102a4c;
  --cc-shadow:0 1px 2px rgba(15,23,42,.04),0 8px 24px rgba(15,23,42,.055);
  --cc-shadow-lg:0 18px 48px rgba(15,23,42,.14);
  --cc-radius:12px;
  --cc-radius-sm:9px;
}

html,body{background:var(--cc-bg)!important;color:var(--cc-text)!important;font-family: Inter, system-ui, sans-serif !important}
body{font-size:13px;line-height:1.5;letter-spacing:0}
h1,h2,h3,h4,h5,h6{font-family: Inter, system-ui, sans-serif !important;color:var(--cc-text)!important;letter-spacing:-.025em!important}
button,input,select,textarea{font-family:inherit!important}

/* ===== APP SHELL ===== */
#app-shell{background:var(--cc-bg)!important}
aside.app-sidebar{width:248px!important;background:linear-gradient(180deg,var(--cc-navy) 0%,#0a1a30 100%)!important;color:#fff!important;border-right:1px solid rgba(255,255,255,.06)!important;box-shadow:10px 0 28px rgba(8,26,48,.08)!important}
.app-sidebar .sidebar-brand{height:72px!important;padding:0 18px!important;border-bottom:1px solid rgba(255,255,255,.07)!important}
.app-sidebar .brand-mark{width:40px!important;height:40px!important;border-radius:12px!important;background:linear-gradient(135deg,#3b82f6,#1d4ed8)!important;box-shadow:0 8px 22px rgba(37,99,235,.28)!important;font-weight:800!important}
.app-sidebar .brand-name{font-size:15px!important;font-weight:800!important;letter-spacing:-.03em!important;color:#fff!important}
.app-sidebar .brand-sub{font-size:9.5px!important;letter-spacing:.04em!important;color:rgba(255,255,255,.46)!important}
.sidebar-context{margin:14px 12px 10px!important;padding:12px!important;border-radius:12px!important;background:rgba(255,255,255,.055)!important;border:1px solid rgba(255,255,255,.08)!important}
.sidebar-context-label{font-size:8px!important;letter-spacing:.13em!important;color:rgba(255,255,255,.42)!important;font-weight:800!important}
.sidebar-context-row{font-size:12px!important;color:#fff!important}
.sidebar-team-dot{background:#60a5fa!important;box-shadow:0 0 0 4px rgba(96,165,250,.12)!important}
.app-nav{gap:4px!important}
.nav-section-label{padding:14px 10px 7px!important;font-size:8px!important;letter-spacing:.14em!important;color:rgba(255,255,255,.30)!important}
.app-nav .nav-main,.app-nav .nav-group-toggle{height:40px!important;border-radius:10px!important;color:rgba(255,255,255,.68)!important;background:transparent!important;border:1px solid transparent!important;transition:background .15s ease,color .15s ease,border-color .15s ease!important}
.app-nav .nav-main:hover,.app-nav .nav-group-toggle:hover{background:rgba(255,255,255,.055)!important;color:#fff!important}
.app-nav .nav-main.active,.app-nav .nav-group.active>.nav-group-toggle,.app-nav .nav-group.open>.nav-group-toggle{background:linear-gradient(90deg,rgba(37,99,235,.22),rgba(37,99,235,.07))!important;border-color:rgba(96,165,250,.18)!important;color:#fff!important;box-shadow:inset 3px 0 0 #3b82f6!important}
.app-nav .active .tab-icon,.app-nav .nav-group.active .tab-icon{color:#60a5fa!important}
.app-nav .nav-group-items button.active{background:rgba(37,99,235,.13)!important;color:#fff!important}
.app-nav .nav-group-items button.active .dot{background:#60a5fa!important;box-shadow:0 0 0 3px rgba(96,165,250,.10)!important}
.sidebar-plan-card{border-radius:12px!important;background:linear-gradient(135deg,rgba(37,99,235,.16),rgba(96,165,250,.035))!important;border:1px solid rgba(96,165,250,.16)!important}
.sidebar-plan-dot{background:#60a5fa!important}

/* ===== TOP BAR ===== */
.app-header{height:68px!important;background:rgba(255,255,255,.92)!important;border-bottom:1px solid var(--cc-border)!important;box-shadow:0 1px 0 rgba(15,23,42,.02)!important;backdrop-filter:blur(16px)!important;padding:0 22px!important}
.app-header .ah-search{height:40px!important;background:#f8fafc!important;border:1px solid var(--cc-border)!important;border-radius:10px!important}
.app-header .ah-search:focus-within{border-color:#93b4e8!important;box-shadow:0 0 0 4px rgba(37,99,235,.08)!important}
.ah-icon-btn,.header-actions button,.header-equipo-gestionar{border:1px solid var(--cc-border)!important;background:#fff!important;color:var(--cc-text-2)!important;border-radius:10px!important}
.header-actions button.primary,.btn-primary{background:var(--cc-primary)!important;border-color:var(--cc-primary)!important;color:#fff!important;box-shadow:0 6px 16px rgba(37,99,235,.16)!important}
.header-actions button.primary:hover,.btn-primary:hover{background:var(--cc-primary-2)!important;border-color:var(--cc-primary-2)!important}
.header-equipo-select{height:40px!important;border:1px solid var(--cc-border)!important;border-radius:10px!important;background:#fff!important;color:var(--cc-text)!important}

/* ===== MAIN SURFACE ===== */
main{background:var(--cc-bg)!important}
.tab-panel{max-width:1480px!important;margin:0 auto!important;padding:28px 30px 50px!important}
.panel-header{margin-bottom:20px!important;padding-bottom:2px!important}
.panel-header h2,.card-title,.section-title{font-weight:800!important;color:var(--cc-text)!important}
.panel-header h2{font-size:24px!important;letter-spacing:-.04em!important}
.panel-header p,.muted,.page-subtitle{color:var(--cc-muted)!important}

/* ===== CARDS / CONTAINERS ===== */
.card,.panel,.table-wrap,.section-card,.kpi-card,.chart-card,.inicio-card,.inicio-quick-card,.inicio-hero,.profile-card,.task-card,.wellness-question,.modal-content,.settings-card{background:var(--cc-surface)!important;border:1px solid var(--cc-border)!important;border-radius:var(--cc-radius)!important;box-shadow:var(--cc-shadow)!important}
.card,.panel,.section-card,.settings-card{padding:18px!important}
.card:hover,.kpi-card:hover,.task-card:hover{border-color:var(--cc-border-strong)!important}

/* ===== KPIs ===== */
.kpi,.kpi-card,.inicio-kpi,.fr-kpi,.salud-kpi,.v8-kpi{background:linear-gradient(145deg,#fff,#fbfdff)!important;border:1px solid var(--cc-border)!important;border-radius:12px!important;box-shadow:var(--cc-shadow)!important}
.kpi .label,.kpi-label,.fr-kpi-label,.salud-kpi-label{color:var(--cc-muted)!important;font-weight:750!important;letter-spacing:.07em!important;text-transform:uppercase!important}
.kpi .value,.kpi-value,.inicio-kpi-value,.fr-kpi-value,.salud-kpi-value{color:#0f2c5c!important;font-weight:850!important;letter-spacing:-.045em!important}

/* ===== BUTTONS ===== */
.btn,.button,.btn-ghost,.btn-secondary,.btn-outline{min-height:36px!important;padding:0 13px!important;border-radius:10px!important;border:1px solid var(--cc-border)!important;background:#fff!important;color:var(--cc-text-2)!important;font-weight:700!important;box-shadow:none!important;transition:background .15s ease,border-color .15s ease,box-shadow .15s ease,transform .15s ease!important}
.btn:hover,.button:hover,.btn-ghost:hover,.btn-secondary:hover,.btn-outline:hover{background:#f8fbff!important;border-color:#b8cbe3!important;box-shadow:0 5px 14px rgba(15,23,42,.06)!important;transform:translateY(-1px)!important}
.btn-primary,.button-primary,.btn.btn-primary{background:var(--cc-primary)!important;border-color:var(--cc-primary)!important;color:#fff!important;box-shadow:0 6px 16px rgba(37,99,235,.16)!important}
.btn-primary:hover,.button-primary:hover,.btn.btn-primary:hover{background:var(--cc-primary-2)!important;border-color:var(--cc-primary-2)!important}
.btn-icon{width:36px!important;min-width:36px!important;padding:0!important}

/* ===== FORM CONTROLS ===== */
input,select,textarea{border:1px solid var(--cc-border)!important;border-radius:10px!important;background:#fff!important;color:var(--cc-text)!important;box-shadow:none!important}
input:focus,select:focus,textarea:focus{outline:none!important;border-color:#7aa5e8!important;box-shadow:0 0 0 4px rgba(37,99,235,.08)!important}
input::placeholder,textarea::placeholder{color:#94a3b8!important}

/* ===== TABLES ===== */
.table-wrap{overflow:auto!important}
th{background:#f7f9fc!important;color:#64748b!important;border-bottom:1px solid var(--cc-border)!important;font-size:10px!important;text-transform:uppercase!important;letter-spacing:.065em!important}
td{border-bottom:1px solid #edf2f7!important;color:var(--cc-text-2)!important}
tbody tr:hover td{background:#f8fbff!important}

/* ===== TOGGLES / PILLS ===== */
.cargas-mode-toggle{background:#eef4fb!important;border:1px solid var(--cc-border)!important;border-radius:10px!important;padding:4px!important}
.cargas-mode-btn{border-radius:8px!important;color:var(--cc-muted)!important}
.cargas-mode-btn.active{background:#fff!important;color:var(--cc-primary)!important;box-shadow:0 2px 6px rgba(15,23,42,.08)!important}
.badge,.pill,.status-badge,.semaforo,.fr-badge{border-radius:999px!important;font-weight:750!important}

/* ===== MODALS ===== */
.modal{background:rgba(15,23,42,.48)!important;backdrop-filter:blur(8px)!important}
.modal-content{box-shadow:var(--cc-shadow-lg)!important;overflow:hidden!important}
.modal-header{padding:18px 20px!important;border-bottom:1px solid var(--cc-border)!important;background:#fff!important}
.modal-header h2,.modal-header h3{font-weight:800!important;color:var(--cc-text)!important}
.modal-body{padding:20px!important}
.modal-actions{padding-top:16px!important;border-top:1px solid var(--cc-border)!important;display:flex!important;justify-content:flex-end!important;gap:8px!important}

/* ===== DASHBOARD HERO ===== */
.inicio-hero{background:linear-gradient(135deg,#0e2a52 0%,#143d78 60%,#2059b4 100%)!important;color:#fff!important;border:0!important;box-shadow:0 18px 40px rgba(15,54,105,.18)!important}
.inicio-hero *{color:inherit}

/* ===== LINKS / HEADINGS ===== */
a{color:var(--cc-primary)}
a:hover{color:var(--cc-primary-2)}

/* ===== LANDING: same blue identity, still distinct from app shell ===== */
.btn-landing.btn-primary{background:var(--cc-primary)!important;border-color:var(--cc-primary)!important;box-shadow:0 10px 24px rgba(37,99,235,.16)!important}

/* ===== PRESERVE SEMANTIC DATA COLORS =====
   Planning session colors / status colors are intentionally not overwritten.
   The theme color applies to the application chrome, not to data encoding. */

/* ===== DARK MODE ===== */
[data-theme="dark"]{
  --cc-bg:#0b1220;--cc-surface:#111a2b;--cc-surface-2:#152236;--cc-border:#263650;--cc-border-strong:#385075;--cc-text:#f4f7fb;--cc-text-2:#d2dceb;--cc-muted:#8fa0b9;
}
[data-theme="dark"] .app-header{background:rgba(11,18,32,.92)!important;border-bottom-color:var(--cc-border)!important}
[data-theme="dark"] .app-header .ah-search,[data-theme="dark"] input,[data-theme="dark"] select,[data-theme="dark"] textarea,[data-theme="dark"] .btn,[data-theme="dark"] .header-actions button,[data-theme="dark"] .header-equipo-select{background:#111a2b!important;color:#f4f7fb!important;border-color:var(--cc-border)!important}
[data-theme="dark"] .card,[data-theme="dark"] .panel,[data-theme="dark"] .table-wrap,[data-theme="dark"] .section-card,[data-theme="dark"] .kpi-card,[data-theme="dark"] .chart-card,[data-theme="dark"] .modal-content{background:var(--cc-surface)!important;border-color:var(--cc-border)!important}
[data-theme="dark"] th{background:#152236!important;color:#8fa0b9!important}
[data-theme="dark"] td{border-bottom-color:#20304a!important;color:#d2dceb!important}
[data-theme="dark"] tbody tr:hover td{background:#152236!important}

/* ===== RESPONSIVE ===== */
@media(max-width:900px){
  .tab-panel{padding:20px 16px 40px!important}
  .app-header{padding:0 14px!important}
}
@media(max-width:640px){
  .tab-panel{padding:16px 12px 32px!important}
  .panel-header h2{font-size:21px!important}
}
}
/* Source: css/reference-dashboard.css */
@layer compatibility{/* CONTROL DE CARGA — Reference UI layer
   Inspired by the approved blue sports-performance dashboard reference.
   Visual-only: does not change business logic or data semantics. */
:root{
  --cc-blue:#2563eb;
  --cc-blue-2:#1d4ed8;
  --cc-blue-3:#60a5fa;
  --cc-blue-soft:#eff6ff;
  --cc-navy:#09244a;
  --cc-navy-2:#071d3b;
  --cc-bg:#f5f8fc;
  --cc-card:#ffffff;
  --cc-line:#e4eaf2;
  --cc-text:#12213a;
  --cc-muted:#718096;
  --cc-shadow:0 2px 10px rgba(16,35,62,.045),0 10px 28px rgba(16,35,62,.035);
  --cc-shadow-hover:0 5px 18px rgba(16,35,62,.08);
}

/* Re-map legacy product tokens to one coherent blue identity. */
:root{
  --primary:var(--cc-blue); --primary-deep:var(--cc-blue-2); --primary-soft:var(--cc-blue-soft);
  --secondary:var(--cc-navy); --accent:var(--cc-blue); --accent-soft:var(--cc-blue-soft);
  --gold:#4f86e8; --gold-soft:#eef5ff;
  --bg:var(--cc-bg); --bg-tint:#f1f5fa; --bg-deep:#e9eff7;
  --card:var(--cc-card); --card-alt:#f8fafc; --border:var(--cc-line); --border-strong:#cbd7e6;
  --text:var(--cc-text); --text-soft:#40516a; --muted:var(--cc-muted);
  --input:#fff; --calc:#f5f8fc; --row-stripe:#fafcff;
  --radius:12px; --radius-sm:9px;
  --shadow-sm:0 1px 2px rgba(16,35,62,.04); --shadow:var(--cc-shadow);
}

html,body{background:var(--cc-bg)!important;color:var(--cc-text)!important}
body{font-family: Inter, system-ui, sans-serif !important;font-size:13px!important;line-height:1.5!important}
h1,h2,h3,h4,h5,h6{font-family: Inter, system-ui, sans-serif !important;color:var(--cc-text)!important;font-weight:750!important;letter-spacing:-.025em!important}
button,input,select,textarea{font-family:inherit!important}

/* Shell */
#app-shell{grid-template-columns:220px 1fr!important;background:var(--cc-bg)!important}
aside.app-sidebar{width:220px!important;background:linear-gradient(180deg,var(--cc-navy) 0%,var(--cc-navy-2) 100%)!important;border-right:0!important;box-shadow:4px 0 18px rgba(6,28,57,.08)!important}
.app-sidebar .sidebar-brand{height:68px!important;padding:0 18px!important;border-bottom:1px solid rgba(255,255,255,.07)!important}
.app-sidebar .brand-mark{width:36px!important;height:36px!important;border-radius:10px!important;background:linear-gradient(135deg,#3b82f6,#1d4ed8)!important;box-shadow:0 7px 18px rgba(37,99,235,.25)!important}
.app-sidebar .brand-name{font-size:14px!important;font-weight:800!important;color:#fff!important}
.app-sidebar .brand-sub{font-size:8.5px!important;color:rgba(255,255,255,.42)!important;letter-spacing:.08em!important}
.sidebar-context{margin:12px 10px 9px!important;padding:10px 11px!important;border-radius:10px!important;background:rgba(255,255,255,.045)!important;border:1px solid rgba(255,255,255,.075)!important}
.sidebar-context-label{font-size:7.5px!important;letter-spacing:.12em!important;color:rgba(255,255,255,.38)!important}
.sidebar-context-row{font-size:11.5px!important}
.app-nav{gap:2px!important;padding:3px 8px!important}
.nav-section-label{padding:13px 9px 6px!important;font-size:7.5px!important;letter-spacing:.13em!important;color:rgba(255,255,255,.30)!important}
.app-nav .nav-main,.app-nav .nav-group-toggle{height:37px!important;border-radius:8px!important;padding:0 10px!important;color:rgba(255,255,255,.68)!important;font-size:12px!important}
.app-nav .nav-main:hover,.app-nav .nav-group-toggle:hover{background:rgba(255,255,255,.055)!important;color:#fff!important}
.app-nav .nav-main.active,.app-nav .nav-group.active>.nav-group-toggle,.app-nav .nav-group.open>.nav-group-toggle{background:linear-gradient(90deg,rgba(37,99,235,.28),rgba(37,99,235,.10))!important;border:1px solid rgba(96,165,250,.12)!important;box-shadow:inset 3px 0 #3b82f6!important;color:#fff!important}
.app-nav .nav-group-items button{min-height:32px!important;border-radius:7px!important;color:rgba(255,255,255,.52)!important;font-size:11.5px!important}
.app-nav .nav-group-items button.active{background:rgba(37,99,235,.13)!important;color:#fff!important}
.sidebar-footer{padding:10px!important;border-top:1px solid rgba(255,255,255,.06)!important}
.sidebar-plan-card{border-radius:10px!important;background:rgba(37,99,235,.12)!important;border:1px solid rgba(96,165,250,.14)!important}

/* App header: light, compact, SaaS-like */
.app-header{height:64px!important;background:rgba(255,255,255,.96)!important;border-bottom:1px solid var(--cc-line)!important;box-shadow:0 1px 0 rgba(16,35,62,.02)!important;padding:0 22px!important}
.app-header .ah-search{height:38px!important;max-width:390px!important;background:#f7f9fc!important;border:1px solid var(--cc-line)!important;border-radius:9px!important}
.app-header .ah-search input{border:0!important;background:transparent!important;box-shadow:none!important}
.ah-icon-btn,.header-actions button,.header-equipo-gestionar{height:36px!important;border:1px solid var(--cc-line)!important;background:#fff!important;color:#52647d!important;border-radius:9px!important}
.ah-icon-btn:hover,.header-actions button:hover,.header-equipo-gestionar:hover{border-color:#b9cbe3!important;background:#f8fbff!important}
.ah-user{height:38px!important;border:1px solid var(--cc-line)!important;border-radius:9px!important;background:#fff!important}
.ah-user-avatar{background:#eaf2ff!important;color:var(--cc-blue)!important}
.header-equipo-select{height:36px!important;border:1px solid var(--cc-line)!important;border-radius:9px!important;background:#fff!important}

/* Main */
main{background:var(--cc-bg)!important;min-width:0!important}
.tab-panel{max-width:1500px!important;margin:0 auto!important;padding:24px 28px 48px!important}
.panel-header{margin-bottom:18px!important}
.panel-header h2{font-size:23px!important}
.panel-header p,.page-subtitle,.muted{color:var(--cc-muted)!important}

/* Universal components */
.card,.panel,.table-wrap,.section-card,.kpi-card,.chart-card,.inicio-card,.inicio-quick-card,.inicio-hero,.profile-card,.task-card,.settings-card,.wellness-question{background:#fff!important;border:1px solid var(--cc-line)!important;border-radius:12px!important;box-shadow:var(--cc-shadow)!important}
.card,.panel,.section-card,.settings-card{padding:17px!important}
.card:hover,.panel:hover,.task-card:hover{box-shadow:var(--cc-shadow-hover)!important}
.btn,.button,.btn-ghost,.btn-secondary,.btn-outline{min-height:35px!important;padding:0 12px!important;border-radius:8px!important;border:1px solid #d9e2ee!important;background:#fff!important;color:#42536b!important;font-size:12px!important;font-weight:700!important;box-shadow:none!important}
.btn:hover,.button:hover,.btn-ghost:hover,.btn-secondary:hover,.btn-outline:hover{background:#f7faff!important;border-color:#b8cce7!important;transform:none!important;box-shadow:0 3px 10px rgba(16,35,62,.05)!important}
.btn-primary,.button-primary,.btn.btn-primary{background:var(--cc-blue)!important;border-color:var(--cc-blue)!important;color:#fff!important;box-shadow:0 5px 12px rgba(37,99,235,.17)!important}
.btn-primary:hover,.button-primary:hover,.btn.btn-primary:hover{background:var(--cc-blue-2)!important;border-color:var(--cc-blue-2)!important}
input,select,textarea{min-height:36px;border:1px solid var(--cc-line)!important;border-radius:9px!important;background:#fff!important;color:var(--cc-text)!important}
input:focus,select:focus,textarea:focus{border-color:#7ea7e7!important;box-shadow:0 0 0 3px rgba(37,99,235,.08)!important;outline:none!important}
th{background:#f7f9fc!important;color:#6b7b91!important;border-bottom:1px solid var(--cc-line)!important;font-size:9px!important;text-transform:uppercase!important;letter-spacing:.07em!important}
td{border-bottom:1px solid #edf2f7!important}
tbody tr:hover td{background:#f8fbff!important}

/* Dashboard — bring the existing real dashboard closer to the reference */
.v8-dashboard{max-width:1450px!important;margin:0 auto!important;padding:4px 0 28px!important;color:var(--cc-text)!important}
.v8-topbar{display:flex!important;align-items:flex-end!important;justify-content:space-between!important;gap:18px!important;margin-bottom:18px!important;padding:2px 2px 0!important}
.v8-eyebrow{font-size:9px!important;letter-spacing:.11em!important;font-weight:800!important;color:#7b8ba1!important;text-transform:uppercase!important}
.v8-title{font-size:27px!important;line-height:1.1!important;margin:4px 0 5px!important;color:var(--cc-text)!important}
.v8-subtitle{font-size:12px!important;color:var(--cc-muted)!important}
.v8-top-actions{display:flex!important;align-items:center!important;gap:7px!important}
.v8-team-chip{height:35px!important;display:flex!important;align-items:center!important;gap:7px!important;padding:0 10px!important;border:1px solid var(--cc-line)!important;background:#fff!important;border-radius:8px!important;font-size:11px!important;font-weight:700!important}
.v8-team-dot{width:7px!important;height:7px!important;border-radius:50%!important;background:#22c55e!important}
.v8-kpis{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px!important;margin-bottom:12px!important}
.v8-kpi{min-height:128px!important;padding:16px!important;border:1px solid var(--cc-line)!important;border-radius:12px!important;background:#fff!important;box-shadow:var(--cc-shadow)!important}
.v8-kpi:hover{box-shadow:var(--cc-shadow-hover)!important}
.v8-kpi-icon{width:34px!important;height:34px!important;border-radius:9px!important;background:#edf4ff!important;color:var(--cc-blue)!important;display:flex!important;align-items:center!important;justify-content:center!important;margin-bottom:10px!important}
.v8-kpi-icon svg{width:20px!important;height:20px!important}
.v8-kpi-label{font-size:10px!important;font-weight:750!important;color:#66778e!important;text-transform:none!important}
.v8-kpi-value{font-size:26px!important;line-height:1.1!important;color:#1450b8!important;font-weight:800!important;letter-spacing:-.04em!important;margin-top:4px!important}
.v8-kpi-meta{font-size:10px!important;color:#8190a4!important;margin-top:4px!important}
.v8-grid-main{display:grid!important;grid-template-columns:minmax(0,1.7fr) minmax(280px,.85fr)!important;gap:12px!important;margin-bottom:12px!important}
.v8-card{background:#fff!important;border:1px solid var(--cc-line)!important;border-radius:12px!important;box-shadow:var(--cc-shadow)!important;padding:16px!important}
.v8-card:hover{box-shadow:var(--cc-shadow-hover)!important}
.v8-card-head{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:12px!important;margin-bottom:13px!important}
.v8-card-title{font-size:13px!important;font-weight:800!important;color:var(--cc-text)!important}
.v8-card-sub{font-size:10px!important;color:#8290a3!important;margin-top:2px!important}
.v8-chart{height:270px!important}
.v8-side-stack{display:grid!important;gap:12px!important;align-content:start!important}
.v8-action-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
.v8-action{min-height:48px!important;display:flex!important;align-items:center!important;gap:9px!important;padding:9px 10px!important;border:1px solid var(--cc-line)!important;border-radius:9px!important;background:#fff!important;color:#34465f!important;font-size:11px!important;font-weight:700!important;text-align:left!important}
.v8-action svg{width:17px!important;height:17px!important;color:var(--cc-blue)!important;flex:none!important}
.v8-action:hover{background:#f7faff!important;border-color:#c5d7ee!important}
.v8-bottom-grid{display:grid!important;grid-template-columns:1.35fr 1fr!important;gap:12px!important;margin-top:12px!important}
.v8-days{display:grid!important;grid-template-columns:repeat(7,minmax(0,1fr))!important;gap:6px!important}
.v8-day{min-height:72px!important;padding:8px 7px!important;border:1px solid var(--cc-line)!important;border-radius:8px!important;background:#fbfcfe!important}
.v8-day.today{background:#edf4ff!important;border-color:#b9d1f6!important}
.v8-day-label{font-size:9px!important;color:#8290a3!important;font-weight:800!important;text-transform:uppercase!important}
.v8-day-num{font-size:17px!important;font-weight:800!important;color:#20334e!important}
.v8-day-type{font-size:9px!important;color:var(--cc-blue)!important;margin-top:5px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.v8-match{padding:11px!important;border:1px solid var(--cc-line)!important;border-radius:9px!important;background:#fbfcfe!important}
.v8-match-badge{background:#edf4ff!important;color:var(--cc-blue)!important;border-radius:8px!important}
.v8-match-name{font-size:13px!important;font-weight:800!important;color:var(--cc-text)!important}
.v8-status{border-radius:999px!important;font-size:9px!important;font-weight:800!important;padding:4px 8px!important}
.v8-avatar{background:#edf4ff!important;color:var(--cc-blue)!important;border-radius:50%!important}
.v8-player-name{font-weight:750!important;color:var(--cc-text)!important}
.v8-player-pos{font-size:10px!important;color:#8794a6!important}
.v8-empty{padding:18px!important;color:#8290a3!important;text-align:center!important;background:#fbfcfe!important;border:1px dashed #dce5ef!important;border-radius:9px!important}

/* Modals and menus */
.modal-back{background:rgba(9,36,74,.42)!important;backdrop-filter:blur(7px)!important}
.modal,.modal-content{border:1px solid var(--cc-line)!important;border-radius:13px!important;box-shadow:0 24px 60px rgba(7,29,59,.18)!important}
.modal{background:#fff!important}
.modal h3{font-size:19px!important}
.modal-actions{border-top:1px solid var(--cc-line)!important}

/* Wellness */
.wellness-question{padding:16px!important}
.wellness-question h4{font-size:13px!important}
.wellness-question .score-btn,.wellness-question button{border-radius:8px!important}

/* Keep semantic workout/session colors intact. Only chrome is unified blue. */

@media(max-width:1100px){
  .v8-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .v8-grid-main{grid-template-columns:1fr!important}
}
@media(max-width:760px){
  #app-shell{grid-template-columns:1fr!important}
  aside.app-sidebar{width:220px!important}
  .app-header{padding:0 12px!important}
  .tab-panel{padding:18px 14px 36px!important}
  .v8-topbar{align-items:flex-start!important;flex-direction:column!important}
  .v8-top-actions{width:100%!important;flex-wrap:wrap!important}
  .v8-kpis{grid-template-columns:1fr 1fr!important}
  .v8-bottom-grid{grid-template-columns:1fr!important}
}
@media(max-width:520px){
  .v8-kpis{grid-template-columns:1fr!important}
  .v8-title{font-size:23px!important}
  .v8-action-grid{grid-template-columns:1fr!important}
  .v8-days{gap:3px!important}
  .v8-day{padding:6px 4px!important}
}
}
/* Source: css/v82-module-skin.css */
@layer compatibility{
/* V82 — MODULE SKIN
   Visual redesign only. Do not change module geometry.
   The existing application layout is intentionally preserved. */

:root{
  --ref-blue:#2563eb;
  --ref-navy:#0b2345;
  --ref-bg:#f5f8fc;
  --ref-card:#fff;
  --ref-border:#e3eaf2;
  --ref-text:#15233b;
  --ref-muted:#718096;
  --ref-soft:#eef5ff;
  --ref-shadow:0 2px 10px rgba(16,35,62,.045),0 8px 24px rgba(16,35,62,.035);
}

/* Common visual language */
.tab-panel .card,
.tab-panel .panel,
.tab-panel .section-card,
.tab-panel .table-wrap,
.tab-panel .profile-card,
.tab-panel .task-card,
.tab-panel .settings-card,
.tab-panel .wellness-question{
  background:var(--ref-card)!important;
  border:1px solid var(--ref-border)!important;
  border-radius:12px!important;
  box-shadow:var(--ref-shadow)!important;
}
.tab-panel .card-title,
.tab-panel .section-title{
  color:var(--ref-text)!important;
  font-weight:800!important;
  letter-spacing:-.015em!important;
}
.tab-panel .muted,
.tab-panel .text-muted,
.tab-panel .page-subtitle{
  color:var(--ref-muted)!important;
}
.tab-panel .btn,
.tab-panel button.btn,
.tab-panel .btn-secondary,
.tab-panel .btn-outline,
.tab-panel .btn-ghost{
  border:1px solid #d9e3ef!important;
  border-radius:8px!important;
  background:#fff!important;
  color:#40526b!important;
  box-shadow:none!important;
}
.tab-panel .btn-primary,
.tab-panel button.btn-primary{
  background:var(--ref-blue)!important;
  border-color:var(--ref-blue)!important;
  color:#fff!important;
  box-shadow:0 5px 13px rgba(37,99,235,.16)!important;
}
.tab-panel input,
.tab-panel select,
.tab-panel textarea{
  border:1px solid #dbe4ef!important;
  border-radius:9px!important;
  background:#fff!important;
  color:var(--ref-text)!important;
}
.tab-panel input:focus,
.tab-panel select:focus,
.tab-panel textarea:focus{
  outline:none!important;
  border-color:#7ca5e7!important;
  box-shadow:0 0 0 3px rgba(37,99,235,.08)!important;
}
.tab-panel th{
  background:#f7f9fc!important;
  color:#718096!important;
  border-bottom:1px solid var(--ref-border)!important;
  text-transform:uppercase!important;
  letter-spacing:.06em!important;
  font-size:9px!important;
}
.tab-panel td{border-bottom:1px solid #edf2f7!important}

/* Headers of every module */
#tab-cargas .panel-header,
#tab-planificación .panel-header,
#tab-externa .panel-header,
#tab-readiness .panel-header,
#tab-peso .panel-header,
#tab-antropometria .panel-header,
#tab-wellness .panel-header,
#tab-salud .panel-header,
#tab-partidos .panel-header,
#tab-perfiles .panel-header,
#tab-temporada .panel-header{
  padding-bottom:2px!important;
}
#tab-cargas .panel-header h2,
#tab-planificación .panel-header h2,
#tab-externa .panel-header h2,
#tab-readiness .panel-header h2,
#tab-peso .panel-header h2,
#tab-antropometria .panel-header h2,
#tab-wellness .panel-header h2,
#tab-salud .panel-header h2,
#tab-partidos .panel-header h2,
#tab-perfiles .panel-header h2,
#tab-temporada .panel-header h2{
  color:var(--ref-text)!important;
  font-weight:800!important;
  letter-spacing:-.03em!important;
}

/* Module toolbars */
#tab-cargas .cargas-mode-toggle,
#tab-planificación .cargas-mode-toggle,
#tab-externa .cargas-mode-toggle{
  background:#eef4fb!important;
  border:1px solid var(--ref-border)!important;
  border-radius:10px!important;
  padding:4px!important;
}
#tab-cargas .cargas-mode-btn,
#tab-planificación .cargas-mode-btn,
#tab-externa .cargas-mode-btn{
  border-radius:7px!important;
  color:#718096!important;
}
#tab-cargas .cargas-mode-btn.active,
#tab-planificación .cargas-mode-btn.active,
#tab-externa .cargas-mode-btn.active{
  background:#fff!important;
  color:var(--ref-blue)!important;
  box-shadow:0 2px 7px rgba(16,35,62,.07)!important;
}

/* Carga: analytics appearance without changing its layout */
#tab-cargas .kpi-card{
  background:linear-gradient(145deg,#fff,#fbfdff)!important;
}
#tab-cargas .kpi-value,
#tab-cargas .inicio-kpi-value{
  color:#1556c9!important;
}
#tab-cargas .table-wrap{
  overflow:auto!important;
}

/* Planificación: keep the existing calendar/grid exactly as built,
   only restyle its chrome. */
#tab-planificación .pp24-nav{
  background:#fff!important;
  border:1px solid var(--ref-border)!important;
  border-radius:10px!important;
  box-shadow:var(--ref-shadow)!important;
}
#tab-planificación .pp24-nav button.active{
  background:var(--ref-blue)!important;
  color:#fff!important;
  border-radius:8px!important;
}
#tab-planificación #plan-calendario-card,
#tab-planificación #plan-microciclo-card{
  border-color:var(--ref-border)!important;
  box-shadow:var(--ref-shadow)!important;
}

/* Microcycle cards: visual hierarchy only */
#tab-planificación .microcycle-card,
#tab-planificación .mc-day-card,
#tab-planificación .planning-day-card{
  border:1px solid var(--ref-border)!important;
  border-radius:11px!important;
  box-shadow:var(--ref-shadow)!important;
}
#tab-planificación .microcycle-card .day-header,
#tab-planificación .mc-day-card .day-header{
  background:#f7f9fc!important;
  border-bottom:1px solid var(--ref-border)!important;
}

/* External load: professional data-entry surface */
#tab-externa .card{
  border-radius:11px!important;
}
#tab-externa .table-wrap{
  background:#fff!important;
}
#tab-externa .card-title{
  font-size:13px!important;
  font-weight:800!important;
}

/* Wellness / Hooper */
#tab-wellness .wellness-question{
  background:#fff!important;
  border-color:var(--ref-border)!important;
  box-shadow:none!important;
}
#tab-wellness .wellness-question button{
  border-radius:8px!important;
}
#tab-wellness .kpi-card{
  background:linear-gradient(145deg,#fff,#fbfdff)!important;
}

/* Readiness */
#tab-readiness .fr-hero{
  border-radius:13px!important;
  box-shadow:0 12px 30px rgba(11,35,69,.12)!important;
}
#tab-readiness .fr-card{
  border-radius:11px!important;
}

/* Players: IMPORTANT — preserve the existing .player-grid layout.
   Only style the cards themselves. */
#tab-perfiles #perfiles-grid .player-grid{
  margin-bottom:20px!important;
}
#tab-perfiles #perfiles-grid .player-card{
  background:#fff!important;
  border:1px solid var(--ref-border)!important;
  border-radius:12px!important;
  box-shadow:var(--ref-shadow)!important;
}
#tab-perfiles #perfiles-grid .player-card:hover{
  border-color:#c6d7ec!important;
  box-shadow:0 8px 22px rgba(16,35,62,.07)!important;
}
#tab-perfiles #perfiles-grid .pc-pos{
  border-radius:999px!important;
}
#tab-perfiles #perfiles-grid .pc-footer{
  border-top:1px solid #edf2f7!important;
}

/* Matches */
#tab-partidos .partido-card,
#tab-partidos .match-card{
  background:#fff!important;
  border:1px solid var(--ref-border)!important;
  border-radius:11px!important;
  box-shadow:var(--ref-shadow)!important;
}

/* Season */
#tab-temporada .card{
  border-radius:12px!important;
}
#tab-temporada .card-title{
  font-weight:800!important;
}
#tab-temporada canvas{
  border-radius:9px!important;
}

/* Profile / settings modals */
.modal-back{
  background:rgba(9,36,74,.42)!important;
  backdrop-filter:blur(7px)!important;
}
.modal,
.modal-content{
  border:1px solid var(--ref-border)!important;
  border-radius:13px!important;
  box-shadow:0 24px 60px rgba(7,29,59,.18)!important;
}

/* Dashboard: keep its existing V80 geometry; only refine the visual scale.
   No grid/column model is replaced. */
#tab-inicio .v8-dashboard{
  width:100%!important;
  max-width:none!important;
  margin:0!important;
}
#tab-inicio .v8-card,
#tab-inicio .v8-kpi{
  border-color:var(--ref-border)!important;
  box-shadow:var(--ref-shadow)!important;
}
#tab-inicio .v8-kpi-value{
  color:#1556c9!important;
}
#tab-inicio .v8-card-title{
  color:var(--ref-text)!important;
}
#tab-inicio .v8-card-sub,
#tab-inicio .v8-kpi-meta{
  color:var(--ref-muted)!important;
}
#tab-inicio .v8-action{
  border-color:var(--ref-border)!important;
  background:#fff!important;
}
#tab-inicio .v8-action:hover{
  background:#f7faff!important;
}

/* Semantic colours stay untouched: C1-C5, session types, intensity,
   match status and warnings retain their meaning. */

@media(max-width:1100px){
  /* Only responsive typography/padding; do not alter module grids. */
  #tab-inicio .v8-dashboard{width:100%!important}
}
}
/* Source: css/v83-sidebar-labels.css */
@layer compatibility{
/* V83 — concise sidebar labels */
.app-sidebar .nav-main,
.app-sidebar .nav-group-toggle{
  white-space:nowrap!important;
}
.app-sidebar .nav-main .nav-label,
.app-sidebar .nav-group-toggle .nav-label,
.app-sidebar .nav-main > span,
.app-sidebar .nav-group-toggle > span{
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
}
/* Source: css/v84-sidebar-clean.css */
@layer compatibility{
/* V84 — Sidebar labels cleaned up.
   Labels are intentionally short; preserve the existing sidebar geometry. */

.app-sidebar .nav-main,
.app-sidebar .nav-group-toggle{
  min-width:0!important;
}

.app-sidebar .tab-label{
  min-width:0!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}

/* Keep section captions compact and legible. */
.app-sidebar .nav-section-label{
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}

/* Slightly more usable label column without changing the sidebar width. */
.app-sidebar .nav-main .tab-label,
.app-sidebar .nav-group-toggle .tab-label{
  flex:1 1 auto!important;
}
}
/* Source: css/v85-match-tabs.css */
@layer compatibility{
/* V85 — Match detail tabs.
   Remove native browser button/focus appearance from Informe and make all
   four tabs follow the same visual system. */

#tab-partidos button,
#tab-partidos [role="tab"]{
  font-family:inherit;
}

/* Common match sub-navigation patterns used by the app */
#tab-partidos .match-tabs button,
#tab-partidos .partido-tabs button,
#tab-partidos .tabs button,
#tab-partidos .subtabs button,
#tab-partidos .match-tab,
#tab-partidos .partido-tab{
  appearance:none!important;
  -webkit-appearance:none!important;
  background:transparent!important;
  border:0!important;
  border-bottom:2px solid transparent!important;
  border-radius:0!important;
  box-shadow:none!important;
  outline:none!important;
  color:#718096!important;
  padding:10px 14px!important;
  min-height:auto!important;
  font-weight:600!important;
}

/* Hover is subtle; it must not look selected. */
#tab-partidos .match-tabs button:hover,
#tab-partidos .partido-tabs button:hover,
#tab-partidos .tabs button:hover,
#tab-partidos .subtabs button:hover,
#tab-partidos .match-tab:hover,
#tab-partidos .partido-tab:hover{
  color:#315b9b!important;
  background:transparent!important;
  box-shadow:none!important;
}

/* Only the actual active tab gets the blue underline. */
#tab-partidos .match-tabs button.active,
#tab-partidos .partido-tabs button.active,
#tab-partidos .tabs button.active,
#tab-partidos .subtabs button.active,
#tab-partidos .match-tab.active,
#tab-partidos .partido-tab.active,
#tab-partidos [role="tab"][aria-selected="true"]{
  color:#1d4ed8!important;
  border-bottom-color:#2563eb!important;
  background:transparent!important;
  box-shadow:none!important;
}

/* Keyboard focus remains accessible but no permanent black rectangle. */
#tab-partidos .match-tabs button:focus,
#tab-partidos .partido-tabs button:focus,
#tab-partidos .tabs button:focus,
#tab-partidos .subtabs button:focus,
#tab-partidos .match-tab:focus,
#tab-partidos .partido-tab:focus{
  outline:none!important;
  box-shadow:none!important;
}
#tab-partidos .match-tabs button:focus-visible,
#tab-partidos .partido-tabs button:focus-visible,
#tab-partidos .tabs button:focus-visible,
#tab-partidos .subtabs button:focus-visible,
#tab-partidos .match-tab:focus-visible,
#tab-partidos .partido-tab:focus-visible{
  outline:2px solid rgba(37,99,235,.28)!important;
  outline-offset:-2px!important;
}
}
/* Source: css/v86-report-tab.css */
@layer compatibility{
/* V86 — Informe is a real partido subtab, not a separate action. */
#partido-subtabs .match-report-tab{
  appearance:none!important;
  -webkit-appearance:none!important;
  border:0!important;
  border-bottom:2px solid transparent!important;
  border-radius:0!important;
  background:transparent!important;
  color:#718096!important;
  box-shadow:none!important;
  padding:10px 14px!important;
  font:inherit!important;
  cursor:pointer!important;
}
#partido-subtabs .match-report-tab:hover{
  color:#1d4ed8!important;
  background:transparent!important;
}
#partido-subtabs .match-report-tab.active,
#partido-subtabs .match-report-tab[aria-selected="true"]{
  color:#1d4ed8!important;
  border-bottom-color:#2563eb!important;
  background:transparent!important;
  box-shadow:none!important;
}
}
/* Source: css/v87-partido-actions.css */
@layer compatibility{
/* V87 — Partido: action buttons and summary readability */

.match-summary-card{
  background:#fff!important;
  border:1px solid #e3eaf2!important;
  border-radius:11px!important;
  padding:16px!important;
  box-shadow:0 2px 10px rgba(16,35,62,.04)!important;
}

.match-summary-card h4{
  margin:0 0 12px!important;
  color:#172033!important;
  font-weight:800!important;
}

.match-score-team{
  color:#718096!important;
  line-height:1.45!important;
}
.match-score-team strong{
  display:block!important;
  color:#172033!important;
  margin-bottom:2px!important;
}

.match-data-actions{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:8px!important;
  margin-top:14px!important;
  padding-top:12px!important;
  border-top:1px solid #edf2f7!important;
}
.match-data-actions button{
  min-height:35px!important;
  padding:0 12px!important;
  border:1px solid #dbe4ef!important;
  border-radius:8px!important;
  background:#fff!important;
  color:#40526b!important;
  font-weight:700!important;
  cursor:pointer!important;
}
.match-data-actions button:hover{
  border-color:#a9c2e3!important;
  background:#f7faff!important;
}
.match-data-actions .match-action-primary{
  background:#2563eb!important;
  border-color:#2563eb!important;
  color:#fff!important;
}

/* Prevent the team/venue labels from visually running together. */
.match-score-team strong + *{
  display:block!important;
}

/* Informe toolbar: all actions are real controls, not decorative buttons. */
#subtab-informe .mcf-toolbar,
#subtab-informe .report-actions{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:8px!important;
}
}
/* Source: css/v88-partido-live.css */
@layer compatibility{
/* V88 — professional live-match controls */

.pm-pro-team{
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
}
.pm-pro-team.right{
  justify-content:flex-end!important;
}
.pm-team-icon{
  width:28px!important;
  height:28px!important;
  border-radius:8px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  background:#eef4fb!important;
  border:1px solid #dbe5f0!important;
  flex:0 0 28px!important;
}
.pm-team-icon svg{
  width:15px!important;
  height:15px!important;
  fill:none!important;
  stroke:#31547f!important;
  stroke-width:1.8!important;
  stroke-linecap:round!important;
  stroke-linejoin:round!important;
}
.pm-team-icon.is-home{
  background:#edf5ff!important;
}
.pm-team-icon.is-away{
  background:#f3f6fa!important;
}

/* Score entry */
.pm-score-controls{
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  gap:8px!important;
  margin-top:10px!important;
  padding-top:10px!important;
  border-top:1px solid #edf2f7!important;
}
.pm-score-side{
  min-width:0!important;
  border:1px solid #dfe7f1!important;
  border-radius:10px!important;
  background:#fbfdff!important;
  padding:10px!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  gap:7px 10px!important;
  align-items:center!important;
}
.pm-score-side.rival{
  background:#fcfcfd!important;
}
.pm-score-side-label{
  color:#718096!important;
  font-size:9px!important;
  font-weight:850!important;
  letter-spacing:.05em!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
.pm-score-side>strong{
  font-size:20px!important;
  color:#15233b!important;
  line-height:1!important;
}
.pm-score-buttons{
  grid-column:1/-1!important;
  display:flex!important;
  gap:6px!important;
}
.pm-score-buttons button{
  flex:1!important;
  height:31px!important;
  border:1px solid #d7e2ef!important;
  border-radius:7px!important;
  background:#fff!important;
  color:#1d4ed8!important;
  font-weight:850!important;
  cursor:pointer!important;
}
.pm-score-buttons button:hover{
  background:#eff6ff!important;
  border-color:#9bb9e4!important;
}

/* The clock control in the toolbar must be a real start/pause control. */
#pm-clock-btn-top{
  min-width:112px!important;
}
#pm-clock-btn-top.pm-pro-btn-live{
  background:#2563eb!important;
  border-color:#2563eb!important;
  color:#fff!important;
}
#pm-clock-btn-top.pm-pro-btn-live:hover{
  background:#1d4ed8!important;
  border-color:#1d4ed8!important;
}

/* Keep lower clock controls visually coherent */
#pm-clock-btn{
  min-width:112px!important;
}

@media(max-width:720px){
  .pm-score-controls{grid-template-columns:1fr!important}
}
}
/* Source: css/v89-partido-profesional.css */
@layer compatibility{
/* V89 — professional match controls */

.pm-pro-team{display:flex!important;align-items:center!important;gap:8px!important}
.pm-pro-team.right{justify-content:flex-end!important}
.pm-team-icon{
  width:28px!important;height:28px!important;border-radius:8px!important;
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  background:#eef4fb!important;border:1px solid #dbe5f0!important;flex:0 0 28px!important;
}
.pm-team-icon svg{
  width:15px!important;height:15px!important;fill:none!important;
  stroke:#31547f!important;stroke-width:1.8!important;
  stroke-linecap:round!important;stroke-linejoin:round!important;
}
.pm-team-icon.is-home{background:#edf5ff!important}
.pm-team-icon.is-away{background:#f3f6fa!important}

#pm-clock-btn-top,#pm-clock-btn{min-width:112px!important}
#pm-clock-btn-top.pm-pro-btn-live{background:#2563eb!important;border-color:#2563eb!important;color:#fff!important}
#pm-clock-btn-top.pm-pro-btn-live:hover{background:#1d4ed8!important;border-color:#1d4ed8!important}

/* Score control */
.pm-score-controls{
  display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important;
  margin-top:10px!important;padding-top:10px!important;border-top:1px solid #edf2f7!important;
}
.pm-score-side{
  border:1px solid #dfe7f1!important;border-radius:10px!important;
  background:#fbfdff!important;padding:10px!important;
}
.pm-score-side.rival{background:#fcfcfd!important}
.pm-score-side>div:first-child{
  display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;
}
.pm-score-side-label{
  color:#718096!important;font-size:9px!important;font-weight:850!important;
  letter-spacing:.06em!important;
}
.pm-score-side strong{font-size:20px!important;color:#15233b!important;line-height:1!important}
.pm-score-buttons{display:flex!important;gap:6px!important;margin-top:8px!important}
.pm-score-buttons button{
  flex:1!important;height:31px!important;border:1px solid #d7e2ef!important;
  border-radius:7px!important;background:#fff!important;color:#1d4ed8!important;
  font-weight:850!important;cursor:pointer!important;
}
.pm-score-buttons button:hover{background:#eff6ff!important;border-color:#9bb9e4!important}
@media(max-width:720px){.pm-score-controls{grid-template-columns:1fr!important}}
}
/* Source: css/v90-report.css */
@layer compatibility{
/* V90 — reliable report presentation */
.report-shell{
  margin-top:14px!important;
  background:#fff!important;
  border:1px solid #e3eaf2!important;
  border-radius:13px!important;
  box-shadow:0 5px 18px rgba(16,35,62,.05)!important;
  overflow:hidden!important;
}
.report-header{
  display:flex!important;
  justify-content:space-between!important;
  gap:20px!important;
  padding:22px!important;
  background:linear-gradient(135deg,#f8fbff,#fff)!important;
  border-bottom:1px solid #e7edf5!important;
}
.report-eyebrow{
  color:#2563eb!important;
  font-size:10px!important;
  font-weight:850!important;
  letter-spacing:.08em!important;
}
.report-header h3{
  margin:6px 0 4px!important;
  color:#15233b!important;
  font-size:21px!important;
  letter-spacing:-.025em!important;
}
.report-header h3 span{color:#8a98aa!important;font-weight:500!important}
.report-header p{margin:0!important;color:#718096!important;font-size:12px!important}
.report-score{text-align:right!important;align-self:center!important}
.report-score strong{display:block!important;font-size:28px!important;color:#15233b!important;letter-spacing:-.04em!important}
.report-score span{font-size:11px!important;color:#2563eb!important;font-weight:800!important}
.report-section{
  padding:18px 22px!important;
  border-bottom:1px solid #edf2f7!important;
}
.report-section-title{
  color:#15233b!important;
  font-size:13px!important;
  font-weight:850!important;
  margin-bottom:10px!important;
}
.report-kpi-grid{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:9px!important;
}
.report-kpi{
  padding:11px!important;
  border:1px solid #e4eaf2!important;
  border-radius:9px!important;
  background:#fbfdff!important;
}
.report-kpi span{display:block!important;color:#718096!important;font-size:9px!important;font-weight:800!important;text-transform:uppercase!important}
.report-kpi strong{display:block!important;color:#172033!important;font-size:16px!important;margin-top:3px!important}
.report-table-wrap{overflow:auto!important}
.report-table{width:100%!important;border-collapse:collapse!important}
.report-table th,.report-table td{padding:8px!important;text-align:left!important;border-bottom:1px solid #edf2f7!important}
.report-table th{background:#f7f9fc!important;color:#718096!important;font-size:9px!important;text-transform:uppercase!important}
.report-footer{padding:12px 22px!important;color:#8a98aa!important;font-size:10px!important}
.report-error{
  margin-top:14px!important;padding:18px!important;border:1px solid #fecaca!important;
  background:#fff7f7!important;border-radius:10px!important;display:flex!important;
  flex-direction:column!important;gap:4px!important;color:#991b1b!important;
}
@media(max-width:700px){
  .report-header{flex-direction:column!important}
  .report-score{text-align:left!important}
  .report-kpi-grid{grid-template-columns:1fr 1fr!important}
}
}
/* Source: css/v93-players.css */
@layer compatibility{
/* V93 — plantilla limpia y gestionable */
#tab-perfiles .panel-header .row{gap:8px}
#tab-perfiles .pc-actions{display:flex;gap:7px;margin-top:10px;padding-top:10px;border-top:1px solid var(--border);justify-content:flex-end}
#tab-perfiles .pc-actions .btn{min-width:78px}
#tab-perfiles .empty-state{margin-top:10px}
#tab-perfiles #perfiles-hero:empty{display:none}
#tab-perfiles #lesiones-kpis:empty{display:none}
/* v191 · selección y edición inequívoca de un único jugador */
.profile-focus-toolbar{display:grid;grid-template-columns:minmax(0,1fr) minmax(210px,320px) auto;align-items:center;gap:12px;margin:0 0 10px;padding:10px 12px;border:1px solid var(--border);border-radius:13px;background:#fff}.profile-focus-toolbar>div{display:flex;min-width:0;flex-direction:column}.profile-focus-toolbar span{font-size:9px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}.profile-focus-toolbar strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-top:2px;font-size:14px;color:var(--text)}.profile-focus-toolbar select{width:100%;min-height:38px}.player-card{cursor:pointer}.player-card.is-selected{border-color:#3b82f6!important;box-shadow:0 0 0 2px rgba(47,111,237,.16),0 12px 28px rgba(30,73,130,.11)!important}.player-card.is-selected:after{content:'SELECCIONADO';position:absolute;top:9px;left:9px;padding:4px 7px;border-radius:999px;background:#e7f0ff;color:#1e5fbe;font-size:7px;font-weight:900;letter-spacing:.08em}.profile-edit-person{display:flex;align-items:center;gap:12px;margin-bottom:14px;padding:12px;border-radius:13px;background:#f3f7fc}.profile-edit-person>div{display:flex;flex-direction:column}.profile-edit-person strong{font-size:15px}.profile-edit-person span{margin-top:2px;font-size:10px;color:var(--muted)}.profile-edit-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.profile-edit-grid label{display:flex;min-width:0;flex-direction:column;gap:5px;font-size:9px;font-weight:800;letter-spacing:.04em;color:var(--text-soft)}.profile-edit-grid input,.profile-edit-grid select{width:100%;min-height:40px}.profile-edit-notes{grid-column:1/-1}
@media(max-width:700px){.profile-focus-toolbar{grid-template-columns:1fr auto;padding:8px}.profile-focus-toolbar select{grid-column:1/-1;grid-row:2}.profile-focus-toolbar .btn{grid-column:2;grid-row:1;padding:0 9px}.profile-edit-grid{grid-template-columns:1fr 1fr;gap:8px}.profile-edit-notes{grid-column:1/-1}#modal-perfiles .modal{width:calc(100% - 16px)!important;max-height:94dvh!important;padding:14px!important}#perfiles-edit-list{max-height:65dvh!important;overflow:auto!important}}

/* v192 · marcador seleccionado legible, fuera del contenido */
.player-card.is-selected{overflow:visible!important}
.player-card.is-selected:after{z-index:8!important;top:-9px!important;left:50%!important;right:auto!important;bottom:auto!important;transform:translateX(-50%)!important;padding:4px 9px!important;border:1px solid #9fc1f5!important;background:#e7f0ff!important;color:#1e5fbe!important;box-shadow:0 3px 8px rgba(35,91,170,.16)!important;white-space:nowrap!important;pointer-events:none!important}
}
/* Source: css/v93-team-empty.css */
@layer compatibility{
/* Empty account/team state */
.sidebar-team-card:has(#header-equipo-select option[value=""]){opacity:.96}
}
/* Source: css/v94-players-clean.css */
@layer compatibility{/* V94 — clean player add modal */
#modal-jugador .modal{max-width:520px!important}
#modal-jugador .modal p{display:none!important}
#modal-jugador #new-jugador-name{
  box-sizing:border-box!important;width:100%!important;height:42px!important;
  padding:0 12px!important;border:1px solid #d7e2ef!important;border-radius:9px!important;
  background:#fff!important;color:#172033!important;font:inherit!important;
}
#modal-jugador #new-jugador-name:focus{outline:none!important;border-color:#2563eb!important;box-shadow:0 0 0 3px rgba(37,99,235,.12)!important}
#modal-jugador .modal-actions{margin-top:14px!important}
}
/* Source: css/v95-ui.css */
@layer compatibility{/* V95 — visual consistency */
.ah-user-avatar{display:inline-flex!important;align-items:center!important;justify-content:center!important;overflow:hidden!important}
.ah-user-avatar img{width:100%!important;height:100%!important;object-fit:cover!important;border-radius:inherit!important}
.analysis-actions{display:flex;align-items:center;gap:8px;justify-content:flex-end;margin:0 0 12px;padding:0 0 10px;border-bottom:1px solid var(--border)}
/* The live clock uses the product blue, not a red danger state. */
#subtab-rotacion .pm-pro-btn-live{background:#2563eb!important;border-color:#2563eb!important;box-shadow:0 3px 10px rgba(37,99,235,.18)!important;color:#fff!important}
#subtab-rotacion .pm-pro-btn-live:hover{background:#1d4ed8!important;border-color:#1d4ed8!important;box-shadow:0 4px 12px rgba(37,99,235,.22)!important}
@media print{.analysis-actions{display:none!important}}
}
/* Source: css/v96-analysis.css */
@layer compatibility{
/* V96 — Analysis report button aligned with the app's primary action style */
#subtab-analisis .analysis-print-btn,
#subtab-analisis button[data-action="print-analysis"]{
  appearance:none!important;
  -webkit-appearance:none!important;
  border:1px solid #2563eb!important;
  background:#2563eb!important;
  color:#fff!important;
  border-radius:8px!important;
  min-height:36px!important;
  padding:0 14px!important;
  font-weight:800!important;
  box-shadow:0 2px 7px rgba(37,99,235,.18)!important;
}
#subtab-analisis .analysis-print-btn:hover,
#subtab-analisis button[data-action="print-analysis"]:hover{
  background:#1d4ed8!important;
  border-color:#1d4ed8!important;
}
}
/* Source: css/v97-players-analysis.css */
@layer compatibility{
/* V97 — player/profile workflow */
#tab-perfiles .panel-header .row{
  display:flex!important;
  flex-wrap:wrap!important;
  align-items:center!important;
  gap:8px!important;
}
#tab-perfiles .panel-header .row .btn{min-height:36px!important}
#tab-perfiles .panel-header .row .btn.btn-primary:first-child{
  background:#2563eb!important;
  border-color:#2563eb!important;
  color:#fff!important;
}
#tab-perfiles .panel-header .row .btn.btn-primary:first-child:hover{
  background:#1d4ed8!important;
  border-color:#1d4ed8!important;
}
#análisis-individual .player-card{margin-bottom:12px!important}
}
/* Source: css/v98-analysis-full-team.css */
@layer compatibility{
/* V98 — full team analysis */
.analysis-full-team-note{
  display:inline-flex!important;
  align-items:center!important;
  gap:6px!important;
  margin-left:8px!important;
  padding:3px 8px!important;
  border:1px solid #dbe7f5!important;
  border-radius:999px!important;
  background:#f7fbff!important;
  color:#54708f!important;
  font-size:10px!important;
  font-weight:700!important;
}
}
/* Source: css/v99-analysis-real-data.css */
@layer compatibility{
/* V99 — real recorded player data */
.player-real-stats{
  display:grid!important;
  grid-template-columns:repeat(6,minmax(0,1fr))!important;
  gap:6px!important;
  margin:10px 0!important;
}
.player-real-stats span{
  padding:7px 8px!important;
  border:1px solid #e5ebf3!important;
  border-radius:7px!important;
  background:#f8fafc!important;
  color:#718096!important;
  font-size:9px!important;
  text-transform:uppercase!important;
  font-weight:750!important;
}
.player-real-stats strong{
  display:block!important;
  margin-top:2px!important;
  color:#172033!important;
  font-size:14px!important;
}
@media(max-width:700px){
  .player-real-stats{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
}
/* Source: css/v108-remove-global-search.css */
@layer compatibility{
/* V108 — remove the non-functional global shell search */
.global-search,.top-search,.header-search,.app-search,.search-bar,
#global-search,#app-global-search,[data-global-search="true"],[data-search="global"]{
  display:none!important;
}
}
/* Source: css/v111-match-summary.css */
@layer compatibility{
/* v111 — match summary and read-only finalized state */
.match-summary-intel{display:grid;gap:14px;margin:14px 0 4px}
.match-summary-hero,.match-summary-card{
  border:1px solid var(--border);
  border-radius:18px;
  background:var(--card);
  box-shadow:0 8px 28px rgba(20,35,55,.06);
  overflow:hidden;
}
.match-summary-hero{padding:20px 22px;background:linear-gradient(135deg,var(--card),rgba(37,99,235,.045))}
.match-summary-hero.is-final{border-color:rgba(16,185,129,.28);background:linear-gradient(135deg,var(--card),rgba(16,185,129,.055))}
.match-summary-hero-top,.match-summary-section-head{display:flex;align-items:center;justify-content:space-between;gap:14px}
.match-summary-eyebrow,.match-summary-kicker{font-size:10px;font-weight:800;letter-spacing:.12em;color:var(--muted)}
.match-summary-meta{margin-top:5px;color:var(--muted);font-size:12px}
.match-summary-status{padding:6px 10px;border-radius:999px;font-size:10px;font-weight:800;letter-spacing:.06em;background:rgba(148,163,184,.12);color:var(--muted)}
.match-summary-status.is-final{background:rgba(16,185,129,.12);color:#059669}
.match-summary-status.is-live{background:rgba(37,99,235,.12);color:#2563eb}
.match-summary-scoreboard{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:18px;margin-top:24px}
.match-summary-team{display:grid;grid-template-columns:auto 1fr;column-gap:10px;align-items:center}
.match-summary-team.right{justify-items:end;text-align:right}
.match-summary-team-badge{width:42px;height:42px;display:grid;place-items:center;border-radius:12px;background:var(--primary-light);color:var(--primary);font-weight:900;font-size:12px}
.match-summary-team strong{font-size:15px;line-height:1.15}
.match-summary-team small{grid-column:2;color:var(--muted);font-size:9px;font-weight:800;letter-spacing:.08em;margin-top:2px}
.match-summary-team.right .match-summary-team-badge{grid-column:2}
.match-summary-team.right strong{grid-column:1;grid-row:1}
.match-summary-team.right small{grid-column:1;grid-row:2}
.match-summary-score{text-align:center;min-width:145px}
.match-summary-score strong{display:block;font-size:34px;letter-spacing:-.05em;line-height:1}
.match-summary-score span{display:block;margin-top:7px;color:var(--muted);font-size:10px;font-weight:700}
.match-summary-lock{margin-top:18px;padding:10px 12px;border-radius:10px;background:rgba(16,185,129,.09);color:#047857;font-size:11px;font-weight:700;text-align:center}
.match-summary-card{padding:18px 20px}
.match-summary-section-head h4{margin:4px 0 0;font-size:15px}
.match-summary-total{font-size:12px;font-weight:800;color:var(--primary)}
.match-summary-quarter-grid{display:grid;grid-template-columns:repeat(5,minmax(70px,1fr));gap:8px;margin-top:16px}
.match-summary-quarter{padding:12px 8px;border:1px solid var(--border);border-radius:12px;text-align:center;background:rgba(148,163,184,.035)}
.match-summary-quarter>span{display:block;font-size:10px;font-weight:800;color:var(--muted)}
.match-summary-quarter strong{display:block;margin-top:5px;font-size:17px}
.match-summary-quarter strong i{font-style:normal;color:var(--muted);font-weight:500}
.match-summary-quarter small{display:block;margin-top:4px;font-size:9px;font-weight:700}
.match-summary-quarter small.win{color:#059669}.match-summary-quarter small.loss{color:#dc2626}.match-summary-quarter small.draw{color:var(--muted)}
.match-summary-players{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-top:14px}
.match-summary-player{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;border:1px solid var(--border);border-radius:11px}
.match-summary-player-main{display:flex;align-items:center;gap:9px;min-width:0}
.match-summary-avatar{width:30px;height:30px;flex:0 0 30px;display:grid;place-items:center;border-radius:9px;background:var(--primary-light);color:var(--primary);font-size:11px;font-weight:900}
.match-summary-player-main strong{display:block;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.match-summary-player-main small{display:block;color:var(--muted);font-size:9px;margin-top:2px}
.match-summary-player-min{font-size:16px;font-weight:900;white-space:nowrap}.match-summary-player-min small{font-size:9px;color:var(--muted);margin-left:2px}
.match-summary-actions{display:flex;justify-content:flex-end;gap:8px}
.match-summary-readonly{width:100%;padding:10px 12px;border:1px solid rgba(16,185,129,.22);border-radius:10px;background:rgba(16,185,129,.06);color:#047857;text-align:center;font-size:11px;font-weight:800}
.match-summary-empty{grid-column:1/-1;padding:18px;text-align:center;color:var(--muted);font-size:11px}
.match-is-finalized .subtab-content{position:relative}
.match-is-finalized .subtab-content input,
.match-is-finalized .subtab-content select,
.match-is-finalized .subtab-content textarea,
.match-is-finalized .subtab-content .falta-btn,
.match-is-finalized .subtab-content .stint-del,
.match-is-finalized .subtab-content .btn-stint-add,
.match-is-finalized .subtab-content .pm-pro-btn,
.match-is-finalized .subtab-content .pm-pro-player,
.match-is-finalized .subtab-content button[onclick*="editar"],
.match-is-finalized .subtab-content button[onclick*="eliminar"],
.match-is-finalized .subtab-content button[onclick*="setRPE"],
.match-is-finalized .subtab-content button[onclick*="setMinutos"]{pointer-events:none;opacity:.5}
@media(max-width:760px){
 .match-summary-scoreboard{grid-template-columns:1fr;gap:12px}.match-summary-score{text-align:left;order:-1}
 .match-summary-team.right{justify-items:start;text-align:left}.match-summary-team.right .match-summary-team-badge{grid-column:1;grid-row:1}
 .match-summary-team.right strong{grid-column:2;grid-row:1}.match-summary-team.right small{grid-column:2;grid-row:2}
 .match-summary-quarter-grid{grid-template-columns:repeat(3,1fr)}.match-summary-players{grid-template-columns:1fr}
}
}
/* Source: css/modern-design-system.css */
@layer compatibility{/* =========================================================
   CONTROL DE CARGA — MODERN PREMIUM DESIGN SYSTEM
   Professional Sports Performance Aesthetic
   ========================================================= */



:root {
  /* Core Colors - Professional Performance Palette */
  --p-navy: #0F172A;
  --p-navy-deep: #020617;
  --p-blue: #3B82F6;
  --p-blue-deep: #1D4ED8;
  --p-blue-soft: #EFF6FF;
  --p-slate: #1E293B;
  --p-slate-soft: #F8FAFC;
  --p-border: #E2E8F0;
  --p-border-strong: #CBD5E1;
  --p-text: #0F172A;
  --p-text-soft: #475569;
  --p-muted: #94A3B8;
  
  /* Status Colors */
  --p-success: #10B981;
  --p-success-soft: #ECFDF5;
  --p-warning: #F59E0B;
  --p-warning-soft: #FFFBEB;
  --p-danger: #EF4444;
  --p-danger-soft: #FEF2F2;
  --p-info: #0EA5E9;
  --p-info-soft: #F0F9FF;

  /* Elevations */
  --p-shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --p-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --p-shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --p-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --p-shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

  /* Borders & Radius */
  --p-radius: 12px;
  --p-radius-lg: 16px;
  --p-radius-sm: 8px;
  --p-radius-full: 9999px;

  /* Typography */
  --p-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Base Styles */
body {
  font-family: var(--p-font);
  background-color: var(--p-slate-soft);
  color: var(--p-text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Typography Scale */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--p-navy);
}

.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }

/* Global App Container */
#app-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  grid-template-rows: 72px 1fr;
  grid-template-areas:
    "sidebar header"
    "sidebar main";
  height: 100vh;
}

/* Header Overhaul */
.app-header {
  grid-area: header;
  background: white;
  border-bottom: 1px solid var(--p-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  z-index: 50;
  position: sticky;
  top: 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.ah-title-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ah-title-wrap h1 {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  color: var(--p-navy);
}

.ah-title-wrap .sub {
  font-size: 11px;
  color: var(--p-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--p-slate-soft);
  padding: 2px 8px;
  border-radius: var(--p-radius-full);
}

/* Sidebar Overhaul */
.app-sidebar {
  grid-area: sidebar;
  background: var(--p-navy);
  color: white;
  display: flex;
  flex-direction: column;
  padding: 0;
  z-index: 100;
}

.sidebar-brand {
  height: 72px;
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 12px;
  background: var(--p-navy-deep);
}

.brand-mark {
  background: linear-gradient(135deg, var(--p-blue) 0%, var(--p-blue-deep) 100%);
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
}

.brand-name {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
}

.nav-section-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.4);
  padding: 24px 24px 12px;
}

.app-nav button {
  width: calc(100% - 32px);
  margin: 2px 16px;
  padding: 10px 14px;
  border-radius: var(--p-radius-sm);
  display: flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
  font-size: 13px;
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
  text-align: left;
}

.app-nav button:hover {
  background: rgba(255, 255, 255, 0.08);
  color: white;
}

.app-nav button.active {
  background: var(--p-blue);
  color: white;
}

.app-nav .tab-icon {
  width: 18px;
  height: 18px;
  stroke-width: 2;
  opacity: 0.8;
}

/* Main Surface */
main {
  grid-area: main;
  overflow-y: auto;
  padding: 32px;
}

.tab-panel {
  max-width: 1200px;
  margin: 0 auto;
}

/* Modern Cards */
.card, .p-card {
  background: white;
  border-radius: var(--p-radius);
  border: 1px solid var(--p-border);
  box-shadow: var(--p-shadow);
  padding: 24px 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  box-shadow: var(--p-shadow-lg);
}

/* KPI Components */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.kpi-card {
  background: white;
  border: 1px solid var(--p-border);
  border-radius: var(--p-radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: var(--p-shadow-sm);
  border-left: 4px solid var(--p-blue);
}

.kpi-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--p-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.kpi-value {
  font-size: 26px;
  font-weight: 800;
  color: var(--p-navy);
  line-height: 1.2;
}

.kpi-meta {
  font-size: 12px;
  font-weight: 500;
}

.kpi-meta.good { color: var(--p-success); }
.kpi-meta.bad { color: var(--p-danger); }
.kpi-meta.neutral { color: var(--p-muted); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--p-radius-sm);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--p-blue);
  color: white;
}

.btn-primary:hover {
  background: var(--p-blue-deep);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-outline {
  background: white;
  border-color: var(--p-border);
  color: var(--p-text);
}

.btn-outline:hover {
  background: var(--p-slate-soft);
  border-color: var(--p-border-strong);
}

.btn-ghost {
  background: transparent;
  color: var(--p-text-soft);
}

.btn-ghost:hover {
  background: var(--p-slate-soft);
  color: var(--p-text);
}

/* Premium Tables */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--p-radius);
  border: 1px solid var(--p-border);
  background: white;
  box-shadow: var(--p-shadow-sm);
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

th {
  background: var(--p-slate-soft);
  padding: 12px 16px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--p-muted);
  border-bottom: 1px solid var(--p-border);
  white-space: nowrap;
}

td {
  padding: 12px 16px;
  font-size: 13px;
  color: var(--p-text-soft);
  border-bottom: 1px solid var(--p-border);
  vertical-align: middle;
}

tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(59, 130, 246, 0.03); }

/* Premium Forms & Filters */
input, select, textarea {
  border: 1px solid var(--p-border);
  border-radius: var(--p-radius-sm);
  padding: 8px 12px;
  font-size: 13px;
  background: white;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
  color: var(--p-text);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--p-blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.filter-group {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 16px;
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%2394a3b8' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 16px;
  padding-right: 32px;
}

.btn-group {
  display: flex;
  gap: 4px;
}

.btn-group .btn {
  border-radius: 0;
}

.btn-group .btn:first-child {
  border-top-left-radius: var(--p-radius-sm);
  border-bottom-left-radius: var(--p-radius-sm);
}

.btn-group .btn:last-child {
  border-top-right-radius: var(--p-radius-sm);
  border-bottom-right-radius: var(--p-radius-sm);
}

/* Standardize Legacy Modules (Salud, Tests, Anthropometry) */
.salud-kpi, .fr-kpi {
  background: white;
  border: 1px solid var(--p-border);
  border-radius: var(--p-radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: var(--p-shadow-sm);
  border-left: 4px solid var(--p-blue);
}

.salud-kpi-label, .fr-kpi-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--p-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.salud-kpi-value, .fr-kpi-value {
  font-size: 26px;
  font-weight: 800;
  color: var(--p-navy);
  line-height: 1.2;
}

.salud-card {
  background: white;
  border: 1px solid var(--p-border);
  border-radius: var(--p-radius);
  padding: 20px;
  box-shadow: var(--p-shadow-sm);
}

.salud-tabla-table {
  width: 100%;
  border-collapse: collapse;
}

.salud-tabla-table th {
  background: var(--p-slate-soft);
  padding: 12px 16px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--p-muted);
  border-bottom: 1px solid var(--p-border);
}

.salud-tabla-table td {
  padding: 12px 16px;
  font-size: 13px;
  color: var(--p-text-soft);
  border-bottom: 1px solid var(--p-border);
}

.salud-row:hover td { background: rgba(59, 130, 246, 0.03); }

/* Status Dots */
.salud-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.salud-dot-verde { background: var(--p-success); }
.salud-dot-ambar { background: var(--p-warning); }
.salud-dot-rojo { background: var(--p-danger); }
.salud-dot-azul { background: var(--p-blue); }
.salud-dot-gris { background: var(--p-muted); }

/* Settings/Config Cards */
.settings-card {
  background: white;
  border: 1px solid var(--p-border);
  border-radius: var(--p-radius);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--p-shadow-sm);
}


/* Pricing Section - Premium SaaS Aesthetic */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.pricing-card {
  background: white;
  border: 1px solid var(--p-border);
  border-radius: var(--p-radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--p-shadow);
  transition: transform 0.2s ease, border-color 0.2s ease;
  position: relative;
}

.pricing-card.recommended {
  border: 2px solid var(--p-blue);
  transform: translateY(-8px);
}

.pricing-card.recommended::before {
  content: "RECOMENDADO";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--p-blue);
  color: white;
  padding: 4px 12px;
  border-radius: var(--p-radius-full);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.pricing-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.pricing-price {
  font-size: 36px;
  font-weight: 800;
  color: var(--p-navy);
  margin: 16px 0;
}

.pricing-price span {
  font-size: 16px;
  color: var(--p-muted);
  font-weight: 500;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  flex-grow: 1;
}

.pricing-features li {
  margin-bottom: 12px;
  font-size: 14px;
  color: var(--p-text-soft);
  display: flex;
  align-items: center;
  gap: 8px;
}

.pricing-features li::before {
  content: "✓";
  color: var(--p-success);
  font-weight: 700;
}

/* Comparison Table */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 40px;
  background: white;
  border-radius: var(--p-radius);
  overflow: hidden;
  border: 1px solid var(--p-border);
}

.comparison-table th, .comparison-table td {
  padding: 16px 24px;
  text-align: center;
  border-bottom: 1px solid var(--p-border);
}

.comparison-table th:first-child, .comparison-table td:first-child {
  text-align: left;
}

.faq-section {
  margin-top: 60px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.faq-item {
  margin-bottom: 16px;
  border: 1px solid var(--p-border);
  border-radius: var(--p-radius);
  padding: 20px;
}

.faq-item h4 {
  margin-bottom: 8px;
  color: var(--p-navy);
}

.faq-item p {
  color: var(--p-text-soft);
  font-size: 14px;
}

/* --- TrainingLoadManager Landing Page Styles --- */
.landing-modern {
  background: white;
  color: var(--p-text);
  font-family: var(--p-font);
  line-height: 1.6;
}

.landing-nav {
  padding: 24px 48px;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  padding: 80px 48px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
}

.hero-content h1 {
  font-size: 56px;
  line-height: 1.1;
  margin-bottom: 24px;
}

.dashboard-mockup {
  background: var(--p-slate-soft);
  border-radius: var(--p-radius);
  border: 1px solid var(--p-border);
  padding: 24px;
  box-shadow: var(--p-shadow-lg);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 80px 48px;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-item {
  padding: 24px;
  border: 1px solid var(--p-border);
  border-radius: var(--p-radius);
}

.faq-section {
  max-width: 800px;
  margin: 80px auto;
  padding: 0 24px;
}

.footer-section {
  padding: 60px 48px;
  border-top: 1px solid var(--p-border);
  background: var(--p-slate-soft);
  text-align: center;
}


}
/* Source: css/i18n.css */
@layer compatibility{.profile-preferences-title{margin-top:22px!important}
.profile-preferences-card{display:flex;align-items:center;justify-content:space-between;gap:22px;padding:16px;border:1px solid #dbe5ef;border-radius:12px;background:#f8fbfe}
.profile-preference-copy{display:flex;flex-direction:column;gap:4px;min-width:0}
.profile-preference-copy strong{font-size:14px;color:#102a43}
.profile-preference-copy span,.profile-field-help{font-size:11.5px;line-height:1.45;color:#71849a}
.profile-field-help{display:block;margin-top:5px}
.profile-language-options{display:flex;gap:4px;padding:4px;border:1px solid #d5e0eb;border-radius:10px;background:#fff;flex:0 0 auto}
.profile-language-options button{display:flex;align-items:center;gap:6px;appearance:none;border:0;background:transparent;color:#52677d;font:700 12px/1 system-ui;padding:9px 10px;border-radius:7px;cursor:pointer;transition:.18s ease}
.profile-language-options button span{font-size:10px;color:#8798aa}
.profile-language-options button:hover{background:#edf5ff;color:#164c92}
.profile-language-options button.active{background:#1769e0;color:#fff;box-shadow:0 4px 12px rgba(23,105,224,.2)}
.profile-language-options button.active span{color:#cfe2ff}
#profile-email[readonly]{background:#f3f6f9;color:#63778c;cursor:not-allowed}
#user-menu.open{display:block!important}
.profile-account-actions{display:flex;gap:8px;flex-wrap:wrap;padding:2px 0 4px}
@media(max-width:700px){.profile-preferences-card{align-items:stretch;flex-direction:column}.profile-language-options{width:100%}.profile-language-options button{justify-content:center;flex:1}}
}
/* Source: css/final-polish-v178.css */
@layer compatibility{/* V178 — final form, phase, injury and report polish */
:root{--tlm-blue:#2769eb;--tlm-ink:#0d2340;--tlm-muted:#687b95;--tlm-line:#d9e4ef;--tlm-soft:#f4f8fc;--tlm-orange:#f36e2b;--tlm-green:#119b78}
select,input[type="date"],input[type="text"],input[type="number"],input[type="email"],textarea{font-family: Inter, system-ui, sans-serif !important;color:var(--tlm-ink)}
select{min-height:40px;border:1px solid var(--tlm-line)!important;border-radius:10px!important;background-color:#fff!important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23687b95' stroke-width='2.2'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E")!important;background-repeat:no-repeat!important;background-position:right 12px center!important;appearance:none!important;padding:8px 38px 8px 12px!important;box-shadow:0 1px 2px rgba(16,42,75,.03)}
select:hover{border-color:#a9bed6!important}select:focus{outline:3px solid rgba(39,105,235,.14)!important;border-color:var(--tlm-blue)!important}
button,.btn{font-family: Inter, system-ui, sans-serif !important;border-radius:10px;letter-spacing:0}
.season-phase-row{align-items:center!important;gap:14px!important;padding:14px!important;border:1px solid var(--tlm-line)!important;border-radius:14px!important;background:#fff!important;margin-bottom:9px}
.season-phase-main input{font-weight:750!important;background:transparent!important;border:0!important;border-bottom:1px solid transparent!important;border-radius:0!important}
.season-phase-main input:focus{border-bottom-color:var(--tlm-blue)!important;outline:0!important}
.season-phase-range{display:grid;grid-template-columns:minmax(122px,1fr) minmax(122px,1fr) auto;gap:8px;align-items:end;min-width:min(440px,48vw)}
.season-phase-range label{display:grid;gap:4px;color:var(--tlm-muted);font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.06em}
.season-phase-range select{width:100%;font-size:12px}.season-phase-range .btn{min-height:40px;background:#eef4ff;color:#205cca;border:1px solid #cbdcf6}
.injury-insights-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:16px 0}
.injury-insight-card{padding:17px;border:1px solid var(--tlm-line);border-radius:16px;background:#fff;box-shadow:0 8px 24px rgba(21,48,80,.05)}
.injury-insight-card h4{margin:0 0 4px;color:var(--tlm-ink);font-size:14px}.injury-insight-card>p{margin:0 0 14px;color:var(--tlm-muted);font-size:11px;line-height:1.45}
.injury-bar-row{display:grid;grid-template-columns:minmax(70px,1fr) 2.2fr auto;gap:9px;align-items:center;margin:9px 0;font-size:11px;color:#425872}
.injury-bar-row i{display:block;height:8px;border-radius:99px;background:linear-gradient(90deg,var(--tlm-blue),#70a6fa);min-width:4px}.injury-bar-row strong{font-size:11px;color:var(--tlm-ink)}
.analysis-evidence-note{margin:16px 0;padding:13px 15px;border:1px solid #cfe1f5;border-left:4px solid var(--tlm-blue);border-radius:12px;background:#f3f8ff;color:#4d6380;font-size:12px;line-height:1.5}
#modal-wellness .wellness-question-title{margin-bottom:7px}#modal-wellness .wellness-question-title h4{margin:0}#modal-wellness .scale-ends{margin-bottom:8px}
#modal-wellness .wellness-question{padding-top:16px;padding-bottom:16px}#modal-wellness .wellness-hooper-preview{border-radius:13px}
@media(max-width:900px){.injury-insights-grid{grid-template-columns:1fr}.season-phase-range{grid-template-columns:1fr 1fr;min-width:0;width:100%}.season-phase-range .btn{grid-column:1/-1}.season-phase-row{flex-wrap:wrap}}
@media(max-width:560px){.season-phase-range{grid-template-columns:1fr}.season-phase-range .btn{grid-column:auto}}
@media print{.injury-insight-card{box-shadow:none}.analysis-evidence-note{break-inside:avoid}}
}
/* Source: css/final-polish-v179.css */
@layer compatibility{.match-science-kpi{background:#fff;border:1px solid #dce6f2;border-left:3px solid #2f6fed;border-radius:12px;padding:16px;min-width:0;box-shadow:0 8px 22px rgba(18,43,72,.05)}
.match-science-kpi.green{border-left-color:#119c7c}.match-science-kpi.orange{border-left-color:#f47a36}
.match-science-kpi span{display:block;color:#60748f;font-size:10px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.match-science-kpi strong{display:block;color:#0b1f3a;font-size:25px;line-height:1.1;margin:9px 0 5px}.match-science-kpi small{color:#71839b;font-size:12px}
.match-science-summary{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:20px 22px;border:1px solid #d7e3f1;border-radius:14px;background:linear-gradient(135deg,#f8fbff,#fff8f3)}
.match-science-summary h3{margin:4px 0 5px;font-size:20px}.match-science-summary p{margin:0;color:#5d718b;max-width:760px}.eyebrow{font-size:10px;font-weight:800;letter-spacing:.12em;color:#2f6fed}.quality-badge{padding:9px 13px;border-radius:999px;font-weight:800;text-transform:uppercase;font-size:11px;background:#fff1dd;color:#a75c00}.quality-badge.completo{background:#e7f8f2;color:#08785f}
.match-section-copy,.match-empty-compact{padding:13px 15px;border:1px solid #e2eaf3;border-radius:10px;background:#f8fafc;color:#60748f;margin:0}.mini-metric{display:flex;align-items:center;gap:12px}.mini-metric strong{font-size:26px}.mini-metric span{color:#60748f}
.match-science-table-wrap{overflow:auto;border:1px solid #dce6f2;border-radius:12px;background:#fff}.match-science-table{width:100%;border-collapse:collapse;min-width:900px}.match-science-table th{background:#f3f7fb;color:#5f728b;font-size:10px;text-transform:uppercase;letter-spacing:.06em;padding:12px 10px;text-align:center}.match-science-table th:first-child,.match-science-table td:first-child{text-align:left}.match-science-table td{padding:11px 10px;text-align:center;border-top:1px solid #e7edf4;color:#243b58;white-space:nowrap}.exposure-bar{width:120px;height:4px;background:#e7edf4;border-radius:4px;margin-top:6px}.exposure-bar i{display:block;height:100%;border-radius:4px;background:linear-gradient(90deg,#2f6fed,#f47a36)}
.match-conclusion-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.match-conclusion{border:1px solid #dde7f2;border-left:3px solid #2f6fed;border-radius:10px;padding:13px 14px;background:#fff}.match-conclusion.ok{border-left-color:#119c7c}.match-conclusion.warn{border-left-color:#f0a11a}.match-conclusion strong{color:#102742}.match-conclusion p{color:#60748f;margin:5px 0 0;line-height:1.45}
.science-report{background:#fff;color:#102742}.science-report-head{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:18px;padding:22px;border-radius:16px;background:#0b2238;color:#fff}.science-report-head img{width:165px;filter:brightness(0) invert(1)}.science-report-head span{font-size:9px;letter-spacing:.12em;color:#8db7e8;font-weight:800}.science-report-head h2{margin:5px 0;font-size:24px}.science-report-head p{margin:0;color:#c7d6e8}.science-report-head>strong{font-size:27px}.science-report-lead{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:16px 0}.science-report-lead>div{border:1px solid #dce6f2;border-radius:11px;padding:13px}.science-report-lead span,.science-report-lead small{display:block;color:#6d8098}.science-report-lead strong{display:block;font-size:21px;margin:6px 0;text-transform:capitalize}.science-report section{margin:18px 0}.science-report h3{font-size:15px;border-bottom:1px solid #dce6f2;padding-bottom:8px}.science-report footer{margin-top:22px;padding-top:12px;border-top:1px solid #dce6f2;color:#6d8098;font-size:11px}
@media(max-width:900px){.match-conclusion-grid,.science-report-lead{grid-template-columns:1fr 1fr}.science-report-head{grid-template-columns:1fr}.science-report-head img{width:135px}}
@media print{.science-report-head{-webkit-print-color-adjust:exact;print-color-adjust:exact}.match-conclusion-grid{grid-template-columns:1fr 1fr}.match-science-table-wrap{overflow:visible}.match-science-table{min-width:0}}
.report-minute-chart{display:grid;gap:8px}.report-minute-row{display:grid;grid-template-columns:minmax(100px,1fr) 3fr 68px;align-items:center;gap:10px;font-size:12px}.report-minute-row>div{height:10px;background:#e8eef6;border-radius:999px;overflow:hidden}.report-minute-row i{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#2768e8,#ff7a2f)}.report-minute-row strong{text-align:right}.report-sources{color:#61758d;font-size:10px}
}
/* Source: css/final-polish-v180.css */
@layer compatibility{/* V180 · Análisis integral de partido */
.unified-report-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 14px;padding:14px 16px;border:1px solid #d9e5f2;border-radius:14px;background:#f7faff}
.unified-report-toolbar div{display:flex;flex-direction:column;gap:2px}.unified-report-toolbar span,.tlr-eyebrow{font-size:10px;font-weight:850;letter-spacing:.12em;color:#2865c7}.unified-report-toolbar strong{font-size:14px;color:#10213b}
.tl-report{--ink:#10213b;--muted:#667892;--line:#dbe5ef;--blue:#2868dd;--green:#15997c;--orange:#f47b35;color:var(--ink);font-family: Inter, system-ui, sans-serif}
.tl-report *{box-sizing:border-box}.tlr-head{display:grid;grid-template-columns:180px 1fr auto;align-items:center;gap:24px;padding:24px;border-radius:18px;background:linear-gradient(135deg,#071c30,#123b5c);color:#fff}.tlr-head img{width:160px;max-height:48px}.tlr-head h2{font-size:25px;margin:4px 0}.tlr-head p{margin:0;color:#bcd0e2}.tlr-score{font-size:27px;font-weight:900;white-space:nowrap}
.tlr-quality{display:flex;align-items:center;gap:12px;margin:14px 0;padding:13px 16px;border:1px solid var(--line);border-left:4px solid var(--green);border-radius:12px;background:#f7fbfa}.tlr-quality.warn{border-left-color:#efa334;background:#fffaf1}.tlr-quality strong{display:block}.tlr-quality p{margin:2px 0 0;color:var(--muted);font-size:13px}
.tlr-kpis{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin:14px 0}.tlr-kpi{padding:14px;border:1px solid var(--line);border-radius:13px;background:#fff;min-height:100px}.tlr-kpi span{display:block;font-size:10px;font-weight:800;letter-spacing:.08em;color:var(--muted);text-transform:uppercase}.tlr-kpi strong{display:block;margin:8px 0 3px;font-size:24px}.tlr-kpi small{color:var(--muted);line-height:1.35}
.tlr-section{margin:14px 0;padding:20px;border:1px solid var(--line);border-radius:16px;background:#fff}.tlr-section-title{display:flex;justify-content:space-between;gap:20px;padding-bottom:12px;border-bottom:1px solid var(--line)}.tlr-section-title h3{margin:0;font-size:18px}.tlr-section-title p{margin:4px 0 0;color:var(--muted);font-size:12px}.tlr-dual{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:14px}.tlr-callout{padding:15px;border-radius:12px;background:#f5f8fc}.tlr-callout.coach{border-left:4px solid var(--blue)}.tlr-callout.performance{border-left:4px solid var(--green)}.tlr-callout h4{margin:0 0 8px}.tlr-callout ul{margin:0;padding-left:18px;color:#43546c;font-size:13px;line-height:1.55}
.tlr-bars{display:grid;gap:8px;margin-top:14px}.tlr-bar-row{display:grid;grid-template-columns:145px 1fr 72px;align-items:center;gap:10px;font-size:12px}.tlr-bar-row>span{font-weight:750}.tlr-track{height:12px;border-radius:99px;background:#edf2f7;overflow:hidden;position:relative}.tlr-track i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#2668df,#41a0ec)}.tlr-track.rpe i{background:linear-gradient(90deg,#15997c,#f1b244)}.tlr-bar-row strong{text-align:right}
.tlr-table-wrap{overflow-x:auto;margin-top:14px}.tlr-table{width:100%;border-collapse:separate;border-spacing:0;font-size:12px}.tlr-table th{padding:10px;background:#f3f7fb;color:#60718a;font-size:9px;letter-spacing:.08em;text-transform:uppercase}.tlr-table td{padding:11px 10px;border-bottom:1px solid #e7edf4;text-align:center}.tlr-table td:first-child,.tlr-table th:first-child{text-align:left}.tlr-table tbody tr:last-child td{border-bottom:0}.tlr-chip{display:inline-block;padding:4px 8px;border-radius:99px;background:#eef5ff;color:#215db9;font-size:10px;font-weight:800}
.tlr-player-list{display:grid;gap:14px;margin-top:14px}.tlr-player{border:1px solid var(--line);border-radius:15px;overflow:hidden;break-inside:avoid}.tlr-player-head{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:15px 17px;background:#f7f9fc}.tlr-player-head h4{margin:0;font-size:17px}.tlr-player-head p{margin:2px 0 0;color:var(--muted);font-size:11px}.tlr-player-head>strong{font-size:22px}.tlr-player-body{padding:16px}.tlr-player-kpis{display:grid;grid-template-columns:repeat(6,1fr);gap:8px}.tlr-mini{padding:10px;border-radius:10px;background:#f5f8fb}.tlr-mini span{display:block;color:var(--muted);font-size:9px;text-transform:uppercase;letter-spacing:.07em}.tlr-mini strong{display:block;margin-top:4px;font-size:15px}.tlr-player-charts{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:15px 0}.tlr-chart-label{display:flex;justify-content:space-between;gap:16px;font-size:11px;margin-bottom:6px}.tlr-chart-label strong{text-align:right;color:#53657c}.tlr-stints{display:flex;gap:8px;align-items:flex-end;min-height:54px;padding:8px 10px;border:1px solid var(--line);border-radius:10px;background:#f8fafc}.tlr-stint-item{display:grid;grid-template-rows:34px auto auto;justify-items:center;align-items:end;min-width:28px}.tlr-stint-item i{display:block;width:12px;border-radius:4px 4px 2px 2px;background:#2868dd}.tlr-stint-item span,.tlr-stint-item small{font-size:8px;line-height:1.25;color:#718198}.tlr-reading{padding:12px;border-radius:10px;background:#f7faff;color:#344760;font-size:12px;line-height:1.5}.tlr-player-notes{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:10px}.tlr-player-notes div{padding:11px;border:1px solid var(--line);border-radius:10px}.tlr-player-notes strong{font-size:11px}.tlr-player-notes p{margin:5px 0 0;color:var(--muted);font-size:11px;line-height:1.45}.tlr-footer{display:flex;justify-content:space-between;margin-top:18px;padding:14px 2px;color:#718198;font-size:10px;border-top:1px solid var(--line)}
@media(max-width:1100px){.tlr-kpis{grid-template-columns:repeat(3,1fr)}.tlr-player-kpis{grid-template-columns:repeat(3,1fr)}}
@media(max-width:700px){.tlr-head{grid-template-columns:1fr}.tlr-score{text-align:left}.tlr-kpis,.tlr-dual,.tlr-player-charts,.tlr-player-notes{grid-template-columns:1fr}.tlr-player-kpis{grid-template-columns:repeat(2,1fr)}.tlr-bar-row{grid-template-columns:100px 1fr 58px}.unified-report-toolbar{align-items:flex-start;flex-direction:column}}
@media print{.unified-report-toolbar{display:none!important}.tl-report{font-size:10px}.tlr-head{padding:16px;grid-template-columns:135px 1fr auto}.tlr-head img{width:125px}.tlr-head h2{font-size:19px}.tlr-kpis{grid-template-columns:repeat(6,1fr);gap:5px}.tlr-kpi{padding:8px;min-height:70px}.tlr-kpi strong{font-size:17px}.tlr-section{padding:12px;margin:9px 0}.tlr-player{break-inside:avoid;page-break-inside:avoid}.tlr-player-body{padding:10px}.tlr-player-kpis{grid-template-columns:repeat(6,1fr)}.tlr-section,.tlr-quality,.tlr-table tr{break-inside:avoid;page-break-inside:avoid}}

/* V181 · RPE postpartido y conclusiones unificadas */
.unified-report-toolbar--actions{justify-content:flex-end;background:transparent;border:0;padding:0}
.tlr-callout.unified{border-left:4px solid var(--blue);background:linear-gradient(90deg,#f4f8ff,#f8fbff)}
.tlr-player-notes--single{grid-template-columns:1fr}
.tlr-rpe-entry{border-color:#bfd4f3;background:linear-gradient(135deg,#f6faff,#fff)}
.tlr-rpe-progress{align-self:flex-start;padding:6px 10px;border-radius:99px;background:#eaf2ff;color:#245eb8;font-size:11px;font-weight:850;white-space:nowrap}
.tlr-rpe-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:14px}
.tlr-rpe-card{display:grid;grid-template-columns:minmax(0,1fr) 76px;align-items:center;gap:8px;padding:12px;border:1px solid var(--line);border-radius:12px;background:#fff}
.tlr-rpe-card span{min-width:0}.tlr-rpe-card strong,.tlr-rpe-card small{display:block}.tlr-rpe-card small{margin-top:3px;color:var(--muted);font-size:10px}.tlr-rpe-card select{width:100%;height:36px;border:1px solid #c8d7e8;border-radius:9px;background:#fff;color:var(--ink);font:700 12px Inter,Arial,sans-serif;padding:0 8px}.tlr-rpe-card em{grid-column:1/-1;color:#61738c;font-size:10px;font-style:normal}
@media(max-width:1100px){.tlr-rpe-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:700px){.tlr-rpe-grid{grid-template-columns:1fr}}
@media print{[data-no-print]{display:none!important}}

.ce44-match-link{margin:14px 0;padding:18px;border:1px solid #cfe0f5;border-left:4px solid #ff7a2f;border-radius:14px;background:linear-gradient(135deg,#fff 0%,#f7fbff 100%)}
.ce44-match-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}.ce44-match-head small{color:#2864c8;font-size:10px;font-weight:800;letter-spacing:.1em}.ce44-match-head h3{margin:4px 0;font-size:18px}.ce44-match-head p{margin:0;color:#63738b;font-size:12px}
.ce44-match-kpis{display:flex;gap:8px}.ce44-match-kpis span{min-width:92px;padding:9px 12px;border:1px solid #d8e4f1;border-radius:10px;background:#fff;text-align:center}.ce44-match-kpis b,.ce44-match-kpis small{display:block}.ce44-match-kpis b{font-size:17px}.ce44-match-kpis small{margin-top:2px;color:#718097;font-size:9px;text-transform:uppercase}
.ce44-match-rows{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin-top:14px}.ce44-match-rows>div{display:grid;grid-template-columns:minmax(100px,1fr) 70px 90px 70px;align-items:center;gap:8px;padding:8px 10px;border-radius:9px;background:#eef5fc;font-size:11px}.ce44-match-rows span{color:#65758d}.ce44-match-rows b{text-align:right;color:#173f7a}
@media(max-width:900px){.ce44-match-head{display:block}.ce44-match-kpis{margin-top:12px;overflow:auto}.ce44-match-rows{grid-template-columns:1fr}}
}
/* Source: css/v184-key-improvements.css */
@layer compatibility{.afs-plan-select-wrap{position:relative}
.afs-plan-select-wrap select{width:100%;appearance:none;padding-right:48px;cursor:pointer}
.afs-plan-arrow{position:absolute;right:18px;top:50%;width:10px;height:10px;border-right:2px solid #2563eb;border-bottom:2px solid #2563eb;transform:translateY(-70%) rotate(45deg);pointer-events:none}
.afs-plan-select-wrap:focus-within .afs-plan-arrow{transform:translateY(-20%) rotate(225deg)}
.afs-plan-help{display:block;margin-top:7px;color:#64748b;font-size:12px}
.v184-benefits article{position:relative;overflow:hidden;border-top:3px solid #2563eb;background:linear-gradient(155deg,#fff 55%,#f2f7ff)}
.v184-benefits article:nth-child(2){border-top-color:#f97316}
.v184-benefits article:nth-child(3){border-top-color:#10b981}
.v184-benefit-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}
.v184-benefit-head b{margin:0!important}
.v184-benefit-head span{padding:6px 10px;border-radius:999px;background:#eaf2ff;color:#1d4ed8;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.06em}
.v184-benefits article:nth-child(2) .v184-benefit-head span{background:#fff1e8;color:#c2410c}
.v184-benefits article:nth-child(3) .v184-benefit-head span{background:#e9fbf5;color:#047857}
.injury-insight-card{overflow:hidden;padding:0!important;border-radius:16px!important;background:#fff!important}
.injury-insight-card header{padding:17px 18px 14px!important;background:linear-gradient(135deg,#f7faff,#eef5ff)!important;border:0!important;border-top:4px solid #2f6fed!important;color:#0f2742!important}
.injury-insight-card:nth-child(2) header{border-top-color:#f97316!important;background:linear-gradient(135deg,#fffaf6,#fff3e9)!important}
.injury-insight-card:nth-child(3) header{border-top-color:#10b981!important;background:linear-gradient(135deg,#f5fffb,#eafaf4)!important}
.injury-insight-card header span{color:#64748b!important;font-size:11px!important;font-weight:800!important;text-transform:uppercase;letter-spacing:.08em}
.injury-insight-card header h3{margin:5px 0 0!important;color:#0f2742!important;font-size:17px!important}
.injury-insight-card>div,.injury-insight-card>.empty-state{margin:14px 18px 18px}
.wellness-chart-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;min-height:330px}
.wellness-chart-panel{position:relative;min-width:0;height:330px;padding:16px;border:1px solid #dbe5f1;border-radius:14px;background:#fff}
.wellness-chart-panel h4{margin:0 0 3px;color:#10233f;font-size:14px}
.wellness-chart-panel p{margin:0 0 10px;color:#70809a;font-size:11px}
.wellness-chart-canvas{position:relative;height:265px}
.ce44-method-note{margin:12px 0 0;padding:12px 14px;border:1px solid #cfe0f5;border-left:4px solid #2f6fed;border-radius:10px;background:#f7faff;color:#49627e;font-size:12px;line-height:1.5}
@media(max-width:900px){.wellness-chart-grid{grid-template-columns:1fr}.wellness-chart-panel{height:310px}.wellness-chart-canvas{height:245px}}
}
/* Source: css/v186-load-redesign.css */
@layer compatibility{#tab-cargas .panel-header,#tab-externa .panel-header{padding:22px 24px;border:1px solid #d8e3ef;border-radius:18px;background:linear-gradient(135deg,#fff,#f5f9fd);margin-bottom:14px}
.load-section-sub{margin:5px 0 0;color:#64758c;font-size:13px}.load-primary-actions{gap:9px!important}.load-primary-actions label{font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:#6b7d93;font-weight:800}.load-primary-actions input,.load-primary-actions select{height:38px;border:1px solid #ccd9e7;border-radius:10px;background:#fff;padding:0 12px}
#tab-cargas .cargas-mode-toggle,#tab-externa .cargas-mode-toggle{width:max-content;padding:4px;border:1px solid #d6e1ed;border-radius:12px;background:#edf3f8;margin:14px 0 18px}.cargas-mode-btn{border-radius:8px!important;padding:9px 14px!important}.cargas-mode-btn.active{box-shadow:0 5px 14px rgba(28,91,190,.17)}
#cargas-table-wrap{display:none!important}.load-player-toolbar{display:flex;align-items:end;justify-content:space-between;padding:18px 20px;border:1px solid #d8e3ef;border-radius:16px;background:#fff;margin-bottom:14px}.load-player-toolbar>div{display:grid;gap:6px}.load-player-toolbar span{font-size:11px;font-weight:800;color:#667991;text-transform:uppercase}.load-player-toolbar select{min-width:260px;padding:10px 12px;border:1px solid #cbd8e6;border-radius:10px;background:#fff}.load-player-toolbar small{color:#7a8ba0}
.plc-simple-entry{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:16px}.plc-simple-entry label{display:grid;gap:5px}.plc-simple-entry span,.plc-simple-result span{font-size:9px;font-weight:850;text-transform:uppercase;letter-spacing:.06em;color:#71839a}.plc-simple-entry input{width:100%!important;height:42px!important;padding:0 11px!important;border:1px solid #ccd9e7!important;border-radius:9px!important;background:#fff!important;font-size:16px!important;font-weight:750}.plc-simple-result{display:grid;grid-template-columns:1fr 1fr;gap:0;margin-top:11px;padding-top:3px;border-top:1px solid #e1e9f2}.plc-simple-result>div{display:grid;align-content:start;gap:2px;min-height:62px;padding:9px 7px;border-bottom:1px solid #edf2f7}.plc-simple-result>div:nth-child(odd){border-right:1px solid #edf2f7}.plc-simple-result strong{font-size:15px;color:#10223d}.plc-simple-result small{font-size:9px;line-height:1.3;color:#71839a}.plc-simple-result strong.acwr-green{color:#079669}.plc-simple-result strong.acwr-blue{color:#2563d9}.plc-simple-result strong.acwr-amber{color:#d97706}.plc-simple-result strong.acwr-red{color:#dc2638}.player-load-card .plc-row,.player-load-card .plc-rpe-row,.player-load-card .plc-rpe-presets,.player-load-card .plc-carga,.player-load-card .plc-ewma{display:none!important}
.load-sweetspot{display:grid;grid-template-columns:minmax(260px,.8fr) 2fr;gap:18px;align-items:stretch;margin:12px 0;padding:14px;border:1px solid #cfdeec;border-radius:14px;background:#fff}.load-sweetspot-copy{display:grid;align-content:center;gap:3px;padding:2px 6px}.load-sweetspot-copy>span{font-size:9px;font-weight:850;letter-spacing:.08em;text-transform:uppercase;color:#71839a}.load-sweetspot-copy strong{font-size:15px;color:#10223d}.load-sweetspot-copy small{font-size:10px;line-height:1.4;color:#71839a}.load-sweetspot-zones{display:grid;grid-template-columns:repeat(5,minmax(88px,1fr));gap:8px}.load-sweetspot-zones>div{display:grid;grid-template-columns:auto 1fr;gap:9px;align-items:center;padding:10px;border-radius:10px;background:#f5f8fc;border:1px solid #e1e9f2}.load-sweetspot-zones b{font-size:21px}.load-sweetspot-zones span{font-size:9px;line-height:1.35;font-weight:750;color:#536980}.load-sweetspot-zones [data-zone="sub"]{border-top:3px solid #3b82f6}.load-sweetspot-zones [data-zone="sweet"]{border-top:3px solid #10b981;background:#f0fdf8}.load-sweetspot-zones [data-zone="high"]{border-top:3px solid #f59e0b}.load-sweetspot-zones [data-zone="critical"]{border-top:3px solid #ef4444}.load-sweetspot-zones [data-zone="none"]{border-top:3px solid #94a3b8}
.player-load-card.acwr-card-sub{border-color:#3b82f6!important;background:linear-gradient(180deg,#eff6ff 0,#fff 42%)!important;box-shadow:inset 4px 0 0 #3b82f6}.player-load-card.acwr-card-sweet{border-color:#10b981!important;background:linear-gradient(180deg,#ecfdf5 0,#fff 42%)!important;box-shadow:inset 4px 0 0 #10b981}.player-load-card.acwr-card-high{border-color:#f59e0b!important;background:linear-gradient(180deg,#fffbeb 0,#fff 42%)!important;box-shadow:inset 4px 0 0 #f59e0b}.player-load-card.acwr-card-critical{border-color:#ef4444!important;background:linear-gradient(180deg,#fef2f2 0,#fff 42%)!important;box-shadow:inset 4px 0 0 #ef4444}.player-load-card.acwr-card-none{border-color:#cbd5e1!important;background:linear-gradient(180deg,#f8fafc 0,#fff 42%)!important;box-shadow:inset 4px 0 0 #94a3b8}.plc-simple-result .plc-reading{grid-column:1/-1;min-height:48px!important;display:flex!important;align-items:center!important;background:rgba(247,250,255,.82)}.plc-simple-result .plc-reading strong{font-size:11px;line-height:1.4;color:#294866}
.load-state-badge{display:inline-flex;align-items:center;justify-content:center;min-width:92px;padding:5px 9px;border-radius:999px;font-size:10px;font-weight:800}.load-state-badge.sub{color:#1d4ed8;background:#dbeafe}.load-state-badge.sweet{color:#047857;background:#d1fae5}.load-state-badge.high{color:#b45309;background:#fef3c7}.load-state-badge.critical{color:#b91c1c;background:#fee2e2}.load-state-badge.none{color:#64748b;background:#e2e8f0}.load-chart-empty{height:100%;display:grid;place-items:center;color:#71839a;font-size:13px;background:#f8fafc;border-radius:12px}
.load-week-navigator{display:grid;grid-template-columns:42px minmax(190px,auto) minmax(220px,320px) auto 42px;gap:9px;align-items:center;padding:14px 16px;border:1px solid #cfdeec;border-radius:15px 15px 0 0;background:#fff}.load-week-arrow,.load-week-today{height:40px;border:1px solid #cad8e6;border-radius:9px;background:#f7faff;color:#183452;font-weight:800;cursor:pointer}.load-week-arrow{font-size:22px}.load-week-today{padding:0 14px;color:#1f63d5}.load-week-current{display:grid;gap:2px}.load-week-current span{font-size:9px;font-weight:850;letter-spacing:.08em;text-transform:uppercase;color:#74869b}.load-week-current strong{font-size:15px;color:#10223d}.load-week-navigator select{height:40px;border:1px solid #c7d6e5;border-radius:9px;background:#fff;padding:0 11px;color:#183452;font-weight:700}.load-days-only{margin:0!important;border-radius:0 0 15px 15px!important;border-top:0!important;justify-content:center!important}.load-days-only .day-chip{min-width:64px!important}.load-days-only .day-chip.active{transform:translateY(-2px);box-shadow:0 7px 18px rgba(38,98,190,.2)}
.load-source-note{display:grid;grid-template-columns:auto auto 1fr;gap:10px 16px;align-items:center;margin:12px 0;padding:12px 14px;border:1px solid #bfd7f5;border-left:4px solid #2872dc;border-radius:11px;background:#f4f9ff;color:#183452}.load-source-note strong{font-size:12px}.load-source-note span{font-size:12px;font-weight:800;color:#1f63d5}.load-source-note small{font-size:11px;line-height:1.45;color:#60758d}
.load-player-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.load-player-summary article{padding:18px;border:1px solid #d8e3ef;border-radius:15px;background:#fff;box-shadow:0 8px 22px rgba(17,43,73,.04)}.load-player-summary article span,.load-player-summary article small{display:block;color:#71839a}.load-player-summary article span{font-size:10px;font-weight:850;text-transform:uppercase;letter-spacing:.06em}.load-player-summary article strong{display:block;margin:7px 0 4px;color:#10223d;font-size:25px}.load-player-summary article.ratio{border-left:4px solid #2c6bed}
.load-player-chart,.load-recent{margin-top:14px;padding:20px;border:1px solid #d8e3ef;border-radius:16px;background:#fff}.load-player-chart header{display:flex;justify-content:space-between}.load-player-chart h3,.load-recent h3{margin:0;color:#10223d;font-size:16px}.load-player-chart p{margin:4px 0;color:#71839a;font-size:12px}.load-player-chart header>span{color:#2c6bed;font-weight:800;font-size:12px}.load-spark{height:190px;display:flex;align-items:end;gap:5px;padding:22px 0 0;border-bottom:1px solid #d8e3ef}.load-spark i{flex:1;max-width:34px;min-width:5px;border-radius:5px 5px 1px 1px;background:linear-gradient(#2c6bed,#78a5ff)}
.load-context{margin-top:14px;padding:20px;border:1px solid #cbdced;border-radius:16px;background:linear-gradient(135deg,#102b49,#143a61);color:#fff}.load-context h3{margin:0;font-size:17px}.load-context header p{margin:5px 0 18px;color:#bfd0e2;font-size:12px}.load-context-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.load-context-grid>div{padding:15px;border:1px solid rgba(255,255,255,.13);border-radius:12px;background:rgba(255,255,255,.06)}.load-context-grid span,.load-context-grid small{display:block;color:#bfd0e2}.load-context-grid span{font-size:10px;font-weight:800;text-transform:uppercase}.load-context-grid strong{display:block;margin:6px 0;font-size:21px}
.load-recent>div{display:grid;grid-template-columns:1.5fr 1fr 1fr 1fr;gap:12px;padding:12px 8px;border-top:1px solid #e5edf5;color:#53677f}.load-recent>div:first-of-type{margin-top:12px}.load-recent strong{color:#10223d}.load-empty{padding:28px;text-align:center;color:#77889c}.load-week-current small{font-size:10px;color:#71849a}
@media(max-width:900px){.load-player-summary{grid-template-columns:1fr 1fr}.load-context-grid{grid-template-columns:1fr}.load-primary-actions{width:100%;flex-wrap:wrap}.load-week-navigator{grid-template-columns:42px 1fr auto 42px}.load-week-navigator select{grid-column:1/-1;grid-row:2}.load-week-today{font-size:0}.load-week-today:after{content:'Actual';font-size:12px}.load-source-note{grid-template-columns:1fr}.load-source-note span{grid-row:2}.load-sweetspot{grid-template-columns:1fr}.load-sweetspot-zones{grid-template-columns:repeat(3,1fr)}}@media(max-width:560px){.load-player-summary{grid-template-columns:1fr}.load-player-toolbar{align-items:stretch;flex-direction:column;gap:12px}.load-player-toolbar select{min-width:0;width:100%}.load-recent>div{grid-template-columns:1fr 1fr}.load-week-current strong{font-size:12px}.load-days-only{overflow-x:auto;justify-content:flex-start!important}.load-days-only .day-chip{min-width:52px!important}.load-sweetspot-zones{grid-template-columns:1fr 1fr}}
}
/* Source: css/v204-courtside-editorial.css */
@layer compatibility{/* V204 · COURTSIDE EDITORIAL
   A product-specific visual language for the authenticated application.
   Flat, data-led and intentionally unlike generic rounded SaaS dashboards. */
#app-shell{
  --court-ink:#101820;
  --court-navy:#0b1e2d;
  --court-paper:#f2f0eb;
  --court-white:#fffefa;
  --court-line:#cdd1cf;
  --court-muted:#667078;
  --court-orange:#ed6b2d;
  --court-blue:#215c91;
  --court-green:#087d67;
  background:var(--court-paper)!important;
  color:var(--court-ink)!important;
  font-family: Inter, system-ui, sans-serif !important;
}
#app-shell *,#app-shell *:before,#app-shell *:after{box-sizing:border-box}
#app-shell h1,#app-shell h2,#app-shell h3,#app-shell h4,#app-shell .card-title{
  color:var(--court-ink)!important;font-family: Inter, system-ui, sans-serif !important;
  font-weight:800!important;letter-spacing:-.035em!important;
}

/* Navigation becomes a control rail, not a floating app bar. */
#app-shell .app-sidebar{background:var(--court-navy)!important;border:0!important;box-shadow:none!important}
#app-shell .sidebar-brand{border-right:1px solid rgba(255,255,255,.12)!important}
#app-shell .sidebar-collapse,#app-shell .sidebar-nav>button,#app-shell .sidebar-nav .nav-main,#app-shell .sidebar-nav .nav-group-toggle{
  border-radius:2px!important;box-shadow:none!important;
}
#app-shell .sidebar-nav>button.active,#app-shell .sidebar-nav .nav-main.active,#app-shell .sidebar-nav .nav-group.active>.nav-group-toggle{
  color:#fff!important;background:transparent!important;border-color:#3d5668!important;box-shadow:inset 0 -3px 0 var(--court-orange)!important;
}
#app-shell .sidebar-nav>button:hover,#app-shell .sidebar-nav .nav-main:hover,#app-shell .sidebar-nav .nav-group-toggle:hover{background:#122b3e!important}
#app-shell .sidebar-nav .nav-group-items{border-radius:0!important;background:#081722!important;border-top:1px solid #233b4d!important}
#app-shell .sidebar-nav .nav-group-items button{border-radius:0!important}
#app-shell .sidebar-nav .nav-group-items button.active{background:#17364c!important;box-shadow:inset 3px 0 0 var(--court-orange)!important}
#app-shell .app-header{background:var(--court-white)!important;border-bottom:1px solid var(--court-line)!important;box-shadow:none!important;backdrop-filter:none!important}
#app-shell .header-team-switcher{border-radius:2px!important;border-color:var(--court-line)!important;background:transparent!important}
#app-shell .header-actions button,#app-shell .ah-icon-btn,#app-shell .header-equipo-gestionar{border-radius:2px!important;box-shadow:none!important}

/* Main canvas and editorial page openings. */
#app-shell main,#app-shell .app-main{background:var(--court-paper)!important}
#app-shell .tab-panel{max-width:none!important;padding:24px 38px 56px!important}
#app-shell .module-hero,#app-shell .page-hero,#app-shell .panel-header,#app-shell .perfiles-hero,#app-shell .load-hero{
  position:relative!important;margin:0 0 22px!important;padding:18px 20px 18px 26px!important;
  border:0!important;border-bottom:1px solid var(--court-ink)!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;
}
#app-shell .module-hero:before,#app-shell .page-hero:before,#app-shell .panel-header:before,#app-shell .perfiles-hero:before,#app-shell .load-hero:before{
  content:"";position:absolute;left:0;top:18px;bottom:18px;width:5px;background:var(--court-orange);
}
#app-shell .module-hero h1,#app-shell .page-hero h1,#app-shell .panel-header h2,#app-shell .perfiles-hero h1,#app-shell .load-hero h1{font-size:30px!important;line-height:1!important}

/* Containers: sharp sheets separated by rules. */
#app-shell .card,#app-shell .panel,#app-shell .section-card,#app-shell .chart-card,#app-shell .inicio-card,#app-shell .inicio-quick-card,
#app-shell .table-wrap,#app-shell .report-chart-panel,#app-shell .injury-history-card,#app-shell .player-card,#app-shell .player-load-card,
#app-shell .tlr-section,#app-shell .tlr-player,#app-shell .ce44-ex,#app-shell .ce44-task-toolbar,#app-shell .ce44-task-picker{
  background:var(--court-white)!important;border:1px solid var(--court-line)!important;border-radius:3px!important;box-shadow:none!important;
}
#app-shell .card,#app-shell .panel,#app-shell .section-card{padding:18px!important}
#app-shell .card-title{padding:0 0 11px!important;border-bottom:1px solid var(--court-ink)!important;font-size:15px!important;text-transform:none!important}
#app-shell .grid-2{gap:14px!important}

/* KPIs resemble a scorer's table: numbered, ruled and compact. */
#app-shell .kpi-grid{gap:1px!important;background:var(--court-line)!important;border:1px solid var(--court-line)!important}
#app-shell .kpi,#app-shell .kpi-card,#app-shell .inicio-kpi,#app-shell .fr-kpi,#app-shell .salud-kpi,#app-shell .v8-kpi,
#app-shell .load-player-summary>div,#app-shell .dsb-item{
  position:relative!important;margin:0!important;background:var(--court-white)!important;border:0!important;border-radius:0!important;box-shadow:none!important;
}
#app-shell .kpi:before,#app-shell .kpi-card:before,#app-shell .inicio-kpi:before,#app-shell .fr-kpi:before{content:"";position:absolute;left:0;top:0;width:34px;height:3px;background:var(--court-blue)}
#app-shell .kpi .value,#app-shell .kpi-value,#app-shell .inicio-kpi-value,#app-shell .fr-kpi-value,#app-shell .dsb-value{font-family: Inter, system-ui, sans-serif !important;font-variant-numeric:tabular-nums;font-size:27px!important;color:var(--court-ink)!important}
#app-shell .kpi-label,#app-shell .kpi .label,#app-shell .fr-kpi-label,#app-shell .dsb-label{font-size:9px!important;letter-spacing:.12em!important;color:var(--court-muted)!important}

/* Controls use clear physical geometry. */
#app-shell button,#app-shell .btn,#app-shell .button,#app-shell input,#app-shell select,#app-shell textarea{border-radius:2px!important;box-shadow:none!important}
#app-shell .btn,#app-shell .button,#app-shell button{font-weight:750!important}
#app-shell .btn-primary,#app-shell .button-primary,#app-shell .btn.btn-primary,#app-shell .ce44-add-task-btn{
  color:#fff!important;background:var(--court-blue)!important;border-color:var(--court-blue)!important;box-shadow:inset 0 -2px 0 rgba(0,0,0,.18)!important;
}
#app-shell .btn-primary:hover,#app-shell .button-primary:hover,#app-shell .btn.btn-primary:hover{background:#17466e!important;transform:none!important}
#app-shell input,#app-shell select,#app-shell textarea{background:#fff!important;border:1px solid #b9c0c3!important}
#app-shell input:focus,#app-shell select:focus,#app-shell textarea:focus{border-color:var(--court-blue)!important;outline:2px solid rgba(33,92,145,.15)!important;outline-offset:0!important}
#app-shell .cargas-mode-toggle,#app-shell .subtabs,#app-shell .tabs{padding:0!important;background:transparent!important;border:0!important;border-bottom:1px solid var(--court-line)!important;border-radius:0!important}
#app-shell .cargas-mode-btn,#app-shell .subtab,#app-shell .tab-btn{border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
#app-shell .cargas-mode-btn.active,#app-shell .subtab.active,#app-shell .tab-btn.active{color:var(--court-ink)!important;box-shadow:inset 0 -3px 0 var(--court-orange)!important}

/* Data tables: stronger scan lines, numeric alignment and no zebra-card effect. */
#app-shell table{border-collapse:collapse!important;font-variant-numeric:tabular-nums}
#app-shell th{padding:10px 12px!important;background:var(--court-navy)!important;color:#f6f3ec!important;border:0!important;border-right:1px solid #294152!important;font-size:9px!important;letter-spacing:.1em!important}
#app-shell td{padding:11px 12px!important;background:transparent!important;border-bottom:1px solid #d9dcda!important;color:#26323a!important}
#app-shell tbody tr:nth-child(even){background:#f6f5f1!important}
#app-shell tbody tr:hover{background:#e9eff1!important}
#app-shell tbody tr:hover td{background:transparent!important}

/* Player and load records keep status through colour, not decorative chrome. */
#app-shell .player-card,#app-shell .player-load-card{overflow:hidden!important}
#app-shell .player-card:hover,#app-shell .player-load-card:hover{transform:none!important;border-color:#7d888d!important}
#app-shell .player-card .plc-avatar,#app-shell .player-load-card .plc-avatar{border-radius:2px!important}
#app-shell .player-load-card.acwr-card-sub{background:linear-gradient(90deg,#eaf3fb 0 7px,var(--court-white) 7px)!important;box-shadow:none!important}
#app-shell .player-load-card.acwr-card-sweet{background:linear-gradient(90deg,#ddf1eb 0 7px,var(--court-white) 7px)!important;box-shadow:none!important}
#app-shell .player-load-card.acwr-card-high{background:linear-gradient(90deg,#fff0cf 0 7px,var(--court-white) 7px)!important;box-shadow:none!important}
#app-shell .player-load-card.acwr-card-critical{background:linear-gradient(90deg,#f8dede 0 7px,var(--court-white) 7px)!important;box-shadow:none!important}
#app-shell .player-load-card.acwr-card-none{background:linear-gradient(90deg,#e6e8e7 0 7px,var(--court-white) 7px)!important;box-shadow:none!important}
#app-shell .plc-simple-result>div{border-color:#dfe1df!important}

/* Match console: dark scoreboard surrounded by paper controls. */
#app-shell .live-scoreboard,#app-shell .match-scoreboard,#app-shell .tlr-head{background:var(--court-navy)!important;border-radius:2px!important;box-shadow:none!important}
#app-shell .live-scoreboard strong,#app-shell .match-scoreboard strong{font-family: Inter, system-ui, sans-serif !important;font-variant-numeric:tabular-nums}
#app-shell .quarter-btn.active,#app-shell .live-quarter.active{background:var(--court-orange)!important;border-color:var(--court-orange)!important;color:#fff!important}

/* External load entry follows a worksheet rather than a stack of widgets. */
#app-shell .ce44-toolbar,#app-shell .ce44-days,#app-shell .ce44-summary{border-radius:0!important}
#app-shell .ce44-summary{gap:1px!important;background:var(--court-line)!important;border:1px solid var(--court-line)!important}
#app-shell .ce44-summary>div{margin:0!important;border:0!important;border-radius:0!important}
#app-shell .ce44-ex{border-left:5px solid var(--court-orange)!important;padding:14px!important}
#app-shell .ce44-metrics>div{background:#f4f3ef!important;border-radius:2px!important}
#app-shell .ce44-metrics button{border-radius:1px!important}
#app-shell .ce44-metrics button.on{background:var(--primary)!important;border-color:var(--primary)!important}
#app-shell .ce44-guide{border-radius:2px!important;background:#e9e7e1!important}

/* Modals are working documents, not floating glass cards. */
#app-shell .modal-back{background:rgba(8,18,25,.72)!important;backdrop-filter:none!important}
#app-shell .modal{border:0!important;border-top:6px solid var(--court-orange)!important;border-radius:2px!important;box-shadow:0 24px 70px rgba(0,0,0,.3)!important}
#app-shell .modal-header{background:var(--court-white)!important;border-bottom:1px solid var(--court-ink)!important}
#app-shell .modal-close{border-radius:0!important;background:transparent!important}

/* Status tokens are small labels, not oversized pills. */
#app-shell .badge,#app-shell .pill,#app-shell .status-badge,#app-shell .fr-badge,#app-shell .load-state-badge,#app-shell .tlr-chip{
  border-radius:2px!important;text-transform:uppercase!important;letter-spacing:.055em!important;font-size:9px!important;
}

/* Charts sit directly on the sheet with restrained framing. */
#app-shell canvas{filter:saturate(.78) contrast(1.04)}
#app-shell .report-chart-panel{padding:16px!important}
#app-shell .report-chart-head{border-bottom:1px solid var(--court-line)!important;padding-bottom:10px!important}

@media(max-width:900px){
  #app-shell .tab-panel{padding:16px 14px 42px!important}
  #app-shell .module-hero,#app-shell .page-hero,#app-shell .panel-header,#app-shell .perfiles-hero,#app-shell .load-hero{padding:14px 12px 14px 20px!important}
  #app-shell .module-hero h1,#app-shell .page-hero h1,#app-shell .panel-header h2,#app-shell .perfiles-hero h1,#app-shell .load-hero h1{font-size:24px!important}
  #app-shell .card,#app-shell .panel,#app-shell .section-card{padding:13px!important}
  #app-shell .kpi-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:560px){
  #app-shell .tab-panel{padding:10px 8px 34px!important}
  #app-shell .kpi-grid{grid-template-columns:1fr 1fr!important}
  #app-shell .kpi .value,#app-shell .kpi-value,#app-shell .inicio-kpi-value,#app-shell .fr-kpi-value{font-size:22px!important}
  #app-shell .card-title{font-size:14px!important}
  #app-shell th,#app-shell td{padding:9px 8px!important}
}

@media print{
  #app-shell{--court-paper:#fff;--court-white:#fff}
  #app-shell .card,#app-shell .panel,#app-shell .table-wrap,#app-shell .tlr-section,#app-shell .tlr-player{break-inside:avoid;box-shadow:none!important}
}
}
/* Source: css/v205-module-compositions.css */
@layer compatibility{/* V205 · MODULE COMPOSITIONS
   Every workspace is shaped around its job. This layer changes information
   hierarchy and page rhythm without touching application state or calculations. */

/* Shared page rhythm: fewer floating boxes, more deliberate working surfaces. */
#app-shell .tab-panel{--module-accent:var(--court-orange);position:relative}
#app-shell .tab-panel>.panel-header{display:grid!important;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:22px;padding-top:10px!important}
#app-shell .tab-panel>.kpi-grid{margin:-4px 0 22px!important}
#app-shell .tab-panel>.card{margin-top:12px!important}

/* HOME · an asymmetric control room, not a dashboard template. */
#tab-inicio{--module-accent:#ed6b2d}
.command-home{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(280px,.45fr);gap:16px 22px}
.command-home__masthead{grid-column:1/-1;display:flex;justify-content:space-between;align-items:flex-end;padding:8px 0 22px;border-bottom:4px solid var(--court-ink)}
.command-home__masthead h2{font-size:42px!important;line-height:.95!important;max-width:760px}
.command-home__scorestrip{grid-column:1/-1;display:grid!important;grid-template-columns:1.25fr .9fr .9fr 1.25fr!important;margin:0!important}
.command-home__scorestrip .kpi-card{min-height:106px;padding:17px 20px!important}
.command-home__scorestrip .kpi-card:first-child,.command-home__scorestrip .kpi-card:last-child{background:#e8e5de!important}
.command-home__body{display:contents!important}
.command-home__load{grid-column:1;grid-row:3 / span 2;min-height:520px;border-top:5px solid var(--court-blue)!important}
.command-home__load>div:last-child{height:400px!important}
.command-home__rail{grid-column:2;display:flex;flex-direction:column;gap:16px!important}
.command-home__fixture{min-height:210px!important;background:var(--court-navy)!important;border:0!important;border-top:5px solid var(--court-orange)!important}
.command-home__shortcuts{background:transparent!important;border:0!important;padding:0!important}
.command-home__shortcuts h3{padding:0 0 8px;border-bottom:1px solid var(--court-ink)}
.command-home__shortcuts>div{grid-template-columns:1fr!important;gap:1px!important;background:var(--court-line)}
.command-home__shortcuts .btn{height:50px;flex-direction:row!important;justify-content:flex-start!important;padding:10px 14px!important;background:var(--court-white)!important;border:0!important}
.command-home__priority{grid-column:1/-1;border-top:5px solid var(--court-orange)!important}

/* INTERNAL LOAD · dense daily operations board. */
#tab-cargas{--module-accent:#c84b28}
#tab-cargas>.panel-header{border-bottom:4px solid var(--court-ink)!important}
#tab-cargas #cargas-kpis{grid-template-columns:1.15fr 1fr 1fr 1.45fr!important;margin-bottom:10px!important}
#tab-cargas #alertas-acwr-wrap{margin:0 0 14px}
#tab-cargas #cargas-mode-toggle{position:sticky;top:76px;z-index:11;background:var(--court-paper)!important;padding-top:8px!important}
#tab-cargas #cargas-day-view,#tab-cargas #cargas-week-view,#tab-cargas #cargas-player-view{border-top:1px solid var(--court-ink);padding-top:12px}
#tab-cargas .load-week-nav,#tab-cargas .cargas-week-nav,#tab-cargas .week-navigation{background:#e5e2da!important;border:0!important;border-left:6px solid var(--court-blue)!important;border-radius:0!important}
#tab-cargas .player-load-grid{display:grid!important;grid-template-columns:repeat(4,minmax(220px,1fr))!important;gap:8px!important}
#tab-cargas .player-load-card{min-height:0!important;padding:13px!important}
#tab-cargas .player-load-card .plc-simple-grid{gap:0!important;border-top:1px solid var(--court-line);border-left:1px solid var(--court-line)}
#tab-cargas .player-load-card .plc-simple-result>div{padding:9px!important}

/* EXTERNAL LOAD · session worksheet with a continuous ledger feel. */
#tab-externa{--module-accent:#7a55b6}
#tab-externa>.panel-header{border-bottom:4px solid #7a55b6!important}
#tab-externa #ce-day-view{max-width:1500px;margin:0 auto}
#tab-externa .ce44-toolbar{position:sticky;top:76px;z-index:10;background:var(--court-paper)!important;border-bottom:1px solid var(--court-ink)!important}
#tab-externa .ce44-summary{margin:12px 0 0!important}
#tab-externa .ce44-ex{display:grid!important;grid-template-columns:220px minmax(0,1fr);gap:14px 20px;border-left:0!important;border-top:4px solid #7a55b6!important}
#tab-externa .ce44-ex>*{grid-column:2}
#tab-externa .ce44-ex>h3,#tab-externa .ce44-ex>.ce44-ex-head{grid-column:1;grid-row:1 / span 5;align-self:start;position:sticky;top:145px}
#tab-externa .ce44-guide{border-left:4px solid #7a55b6!important;background:#eee9f5!important}
#tab-externa #ce-resumen-view>.card:first-child{border-top:5px solid #7a55b6!important}

/* WELLNESS · team status matrix followed by one continuous individual trace. */
#tab-wellness{--module-accent:#b43d64}
#tab-wellness>.panel-header{border-bottom:4px solid #b43d64!important}
#tab-wellness #wellness-kpis{grid-template-columns:1.4fr repeat(3,1fr)!important}
#tab-wellness>.card:nth-of-type(1){border-top:5px solid #b43d64!important}
#tab-wellness>.card:nth-of-type(2){display:grid!important;grid-template-columns:220px minmax(0,1fr);column-gap:18px}
#tab-wellness>.card:nth-of-type(2) .card-title,#tab-wellness>.card:nth-of-type(2) .text-muted{grid-column:1}
#tab-wellness>.card:nth-of-type(2) .row{grid-column:1}
#tab-wellness #wellness-chart-container{grid-column:2;grid-row:1 / span 4;min-height:360px;border-left:1px solid var(--court-line);padding-left:18px}
#tab-wellness>.card:nth-of-type(3){border-top:1px solid var(--court-ink)!important;background:transparent!important}

/* READINESS · diagnostic desk, with evidence left and interpretation right. */
#tab-readiness{--module-accent:#0f7e68}
#tab-readiness .fr-hero{border:0!important;border-bottom:4px solid var(--court-ink)!important;border-radius:0!important;background:transparent!important}
#tab-readiness .fr-grid{grid-template-columns:minmax(0,1.7fr) minmax(300px,.7fr)!important;align-items:stretch}
#tab-readiness .fr-grid>.fr-card:first-child{border-top:5px solid #0f7e68!important}
#tab-readiness .fr-grid>.fr-card:last-child{background:#e2eee9!important;border:0!important;border-top:5px solid var(--court-ink)!important}
#tab-readiness .fr-legend{grid-template-columns:1fr 1fr!important;gap:1px!important;background:var(--court-line)}
#tab-readiness .fr-legend-item{background:var(--court-white);padding:12px!important}

/* HEALTH · availability board. Filters form a control band; roster is the page. */
#tab-salud{--module-accent:#087d67}
#tab-salud>.panel-header{border-bottom:4px solid #087d67!important}
#tab-salud #salud-kpis-equipo{grid-template-columns:1.35fr repeat(3,1fr)!important}
#tab-salud .salud-toolbar{display:grid!important;grid-template-columns:auto minmax(130px,1fr) auto minmax(130px,1fr) auto minmax(130px,1fr) minmax(160px,2fr);padding:12px 0;border-top:1px solid var(--court-ink);border-bottom:1px solid var(--court-ink)}
#tab-salud .salud-leyenda{border-radius:0!important;background:transparent!important;border-bottom:1px solid var(--court-line);padding:10px 0!important}
#tab-salud .salud-tabla-wrap{background:var(--court-white);border-left:5px solid #087d67}

/* PLANNING · calendar canvas, with controls kept out of the content. */
#tab-planificación{--module-accent:#2f6ea3}
#tab-planificación>.panel-header{border-bottom:4px solid #2f6ea3!important}
#tab-planificación .agenda-capabilities{display:flex!important;gap:1px!important;background:var(--court-line);border:1px solid var(--court-line)}
#tab-planificación .agenda-capabilities>*{background:var(--court-white)!important}
#tab-planificación #plan-pro-v24,#tab-planificación #plan-year-view{border-top:5px solid #2f6ea3;margin-top:16px;background:var(--court-white)}
#tab-planificación #plan-calendario-card{border:0!important;padding:18px 0!important}
#tab-planificación .cal-grid{border:1px solid var(--court-ink)!important}
#tab-planificación .cal-day{border-radius:0!important;box-shadow:none!important}

/* MATCHES · schedule and live operations, like a scorer's desk. */
#tab-partidos{--module-accent:#ed6b2d}
#tab-partidos>.panel-header{border-bottom:4px solid var(--court-ink)!important}
#tab-partidos #partidos-kpis{grid-template-columns:1.5fr repeat(3,1fr)!important}
#tab-partidos>#partidos-schedule-card{border-left:5px solid var(--court-orange)!important}
#tab-partidos #partido-detalle-card{padding:0!important;border:0!important;background:transparent!important}
#tab-partidos #partido-detalle-card>div:first-child{padding:18px;background:var(--court-navy);color:#fff;border-top:5px solid var(--court-orange)}
#tab-partidos #partido-detalle-card>div:first-child .card-title,#tab-partidos #partido-detalle-card>div:first-child .muted{color:#fff!important}
#tab-partidos .match-tabs-pro{background:#d9d6cf!important;padding-left:12px!important}
#tab-partidos .subtab-content{background:var(--court-white);padding:18px;border:1px solid var(--court-line);border-top:0}
#tab-partidos .pm-pro-grid{grid-template-columns:minmax(0,1fr) 280px!important;gap:10px!important}
#tab-partidos .pm-pro-court{background:#e8e4db!important;border:1px solid var(--court-ink)!important}
#tab-partidos .pm-pro-side-card{border-radius:0!important;box-shadow:none!important;border-left:4px solid var(--court-blue)!important}

/* PLAYERS · dossiers, not identical ecommerce cards. */
#tab-perfiles{--module-accent:#4a5ea9}
#tab-perfiles>.panel-header{border-bottom:4px solid #4a5ea9!important}
#tab-perfiles #perfiles-hero{margin-bottom:12px!important;border-bottom:0!important;background:var(--court-navy)!important;color:#fff!important}
#tab-perfiles #perfiles-hero h1,#tab-perfiles #perfiles-hero h2,#tab-perfiles #perfiles-hero h3{color:#fff!important}
#tab-perfiles #perfiles-grid{display:grid!important;grid-template-columns:repeat(4,minmax(230px,1fr))!important;gap:8px!important}
#tab-perfiles #perfiles-grid .player-card:nth-child(4n+1){border-top:5px solid #4a5ea9!important}
#tab-perfiles #perfiles-grid .player-card:nth-child(4n+2){border-top:5px solid #0f7e68!important}
#tab-perfiles #perfiles-grid .player-card:nth-child(4n+3){border-top:5px solid #c84b28!important}
#tab-perfiles #perfiles-grid .player-card:nth-child(4n){border-top:5px solid #a77a21!important}
#tab-perfiles .injury-insights-grid{gap:1px!important;background:var(--court-line);border:1px solid var(--court-line)}
#tab-perfiles .injury-history-card{border-top:5px solid #9f3340!important}

/* REPORT · editorial spread with hierarchy instead of a wall of equal cards. */
#tab-temporada{--module-accent:#b47720}
#tab-temporada>.panel-header{border-bottom:4px solid #b47720!important}
#tab-temporada #kpi-grid{grid-template-columns:1.4fr repeat(3,1fr)!important}
#tab-temporada .report-guide{background:#e5e2da!important;border:0!important;border-left:5px solid #b47720!important}
#tab-temporada>.grid-2{grid-template-columns:minmax(0,1.55fr) minmax(300px,.75fr)!important}
#tab-temporada>.grid-2>.card:first-child{border-top:5px solid #b47720!important}
#tab-temporada>.grid-2>.card:nth-child(2){border-top:5px solid var(--court-blue)!important}
#tab-temporada #chart-individual{background:var(--tlm-panel, #1b2228)}

/* Weight and ISAK use clinical sheets rather than dashboard cards. */
#tab-peso,#tab-antropometria{--module-accent:#526775}
#tab-peso>.card,#tab-antropometria>.card{border-left:5px solid #526775!important}
#tab-peso>.card:nth-of-type(2),#tab-antropometria>.card:nth-of-type(2){display:grid!important;grid-template-columns:220px minmax(0,1fr);gap:12px 18px}
#tab-peso>.card:nth-of-type(2) #peso-chart-container,#tab-antropometria>.card:nth-of-type(2) #isak-chart-container{grid-column:2;grid-row:1 / span 3}

@media(max-width:1180px){
  .command-home{grid-template-columns:1fr 320px}
  #tab-cargas .player-load-grid,#tab-perfiles #perfiles-grid{grid-template-columns:repeat(3,minmax(210px,1fr))!important}
  #tab-externa .ce44-ex{grid-template-columns:180px minmax(0,1fr)}
}
@media(max-width:900px){
  .command-home{display:block}.command-home>*{margin-bottom:14px}.command-home__body{display:block!important}.command-home__load{min-height:0}.command-home__load>div:last-child{height:300px!important}
  .command-home__scorestrip,#tab-cargas #cargas-kpis,#tab-wellness #wellness-kpis,#tab-salud #salud-kpis-equipo,#tab-partidos #partidos-kpis,#tab-temporada #kpi-grid{grid-template-columns:repeat(2,1fr)!important}
  #tab-cargas .player-load-grid,#tab-perfiles #perfiles-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  #tab-externa .ce44-ex,#tab-wellness>.card:nth-of-type(2),#tab-peso>.card:nth-of-type(2),#tab-antropometria>.card:nth-of-type(2){display:block!important}
  #tab-externa .ce44-ex>*,#tab-wellness #wellness-chart-container,#tab-peso #peso-chart-container,#tab-antropometria #isak-chart-container{grid-column:auto;grid-row:auto;position:static}
  #tab-salud .salud-toolbar{grid-template-columns:auto 1fr auto 1fr!important}
  #tab-partidos .pm-pro-grid{grid-template-columns:1fr!important}
}
@media(max-width:560px){
  .command-home__masthead{display:block}.command-home__masthead>div:last-child{margin-top:14px}.command-home__masthead h2{font-size:31px!important}
  #tab-cargas .player-load-grid,#tab-perfiles #perfiles-grid{grid-template-columns:1fr!important}
  #tab-salud .salud-toolbar{display:flex!important;align-items:stretch!important}.salud-toolbar select{width:100%}
  #tab-wellness #wellness-chart-container{padding-left:0;border-left:0}
}

/* V205.1 · PLANTILLA REBUILT
   The renderer places a .player-grid inside #perfiles-grid. The previous outer
   grid constrained that single child to one column. This is a full, explicit
   composition for the module rather than another skin over the old layout. */
#tab-perfiles{padding-top:18px!important}
#tab-perfiles>.panel-header{
  display:flex!important;align-items:center!important;justify-content:space-between!important;
  min-height:66px;margin-bottom:12px!important;padding:8px 0 13px 20px!important;
}
#tab-perfiles>.panel-header .row{justify-content:flex-end!important;gap:7px!important}
#tab-perfiles>.panel-header .btn{min-height:36px!important}

#tab-perfiles #perfiles-hero{
  margin:0 0 14px!important;padding:0!important;overflow:hidden!important;
  color:var(--court-ink)!important;background:var(--court-white)!important;
  border:1px solid var(--court-line)!important;border-top:5px solid var(--court-navy)!important;
}
#tab-perfiles #perfiles-hero:before{display:none!important}
#tab-perfiles .profile-focus-toolbar{
  display:grid!important;grid-template-columns:minmax(180px,1fr) minmax(220px,340px) auto!important;
  align-items:center!important;gap:12px!important;margin:0!important;padding:10px 14px!important;
  color:#fff!important;background:var(--court-navy)!important;border:0!important;border-radius:0!important;
}
#tab-perfiles .profile-focus-toolbar span{color:#9fb4c2!important}
#tab-perfiles .profile-focus-toolbar strong{color:#fff!important;font-size:14px!important}
#tab-perfiles .profile-focus-toolbar select{min-height:36px!important;color:var(--court-ink)!important;background:#fff!important}

#tab-perfiles .player-hero{
  display:grid!important;grid-template-columns:82px minmax(240px,1fr) 80px!important;
  grid-template-rows:auto auto!important;align-items:center!important;gap:12px 20px!important;
  min-height:0!important;margin:0!important;padding:20px 24px 0!important;
  color:var(--court-ink)!important;background:var(--court-white)!important;border:0!important;border-radius:0!important;
}
#tab-perfiles .player-hero:before{display:none!important}
#tab-perfiles .player-hero>.jug-avatar{grid-column:1;grid-row:1;width:72px!important;height:72px!important;border-radius:50%!important}
#tab-perfiles .player-hero .ph-info{grid-column:2;grid-row:1}
#tab-perfiles .player-hero .ph-nombre{font-size:28px!important;line-height:1!important;color:var(--court-ink)!important}
#tab-perfiles .player-hero .ph-meta{margin-top:7px!important;color:#53616a!important;gap:7px!important}
#tab-perfiles .player-hero .ph-dorsal{
  grid-column:3;grid-row:1;position:static!important;justify-self:end!important;
  color:var(--court-navy)!important;font-size:58px!important;line-height:1!important;opacity:1!important;
}
#tab-perfiles .player-hero .ph-dorsal:before{content:"DORSAL";display:block;margin-bottom:3px;font-size:8px;letter-spacing:.15em;text-align:center;color:#71808a}
#tab-perfiles .player-hero .ph-stats{
  grid-column:1/-1;grid-row:2;display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;
  margin:0!important;padding:14px 0 18px!important;border-top:1px solid var(--court-line)!important;
}
#tab-perfiles .player-hero .ph-stat{min-height:54px!important;padding:0 16px!important;border-right:1px solid var(--court-line)!important}
#tab-perfiles .player-hero .ph-stat:first-child{padding-left:0!important}
#tab-perfiles .player-hero .ph-stat .val{margin-top:5px!important;font-size:20px!important;color:var(--court-ink)!important}
#tab-perfiles .player-hero .ph-stat .sub{margin-top:2px!important;color:#77828a!important}

/* The actual roster owns the columns; the wrapper must never be a grid. */
#tab-perfiles #perfiles-grid{display:block!important;width:100%!important;margin:0!important}
#tab-perfiles #perfiles-grid>.player-grid{
  display:grid!important;width:100%!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;
  align-items:stretch!important;gap:10px!important;
}
#tab-perfiles #perfiles-grid .player-card{
  position:relative!important;display:flex!important;flex-direction:column!important;min-width:0!important;min-height:318px!important;
  padding:14px!important;border:1px solid var(--court-line)!important;border-top:4px solid #667a88!important;
  background:var(--court-white)!important;overflow:visible!important;
}
#tab-perfiles #perfiles-grid .player-card:nth-child(5n+1){border-top-color:#345d8c!important}
#tab-perfiles #perfiles-grid .player-card:nth-child(5n+2){border-top-color:#16816c!important}
#tab-perfiles #perfiles-grid .player-card:nth-child(5n+3){border-top-color:#c65b30!important}
#tab-perfiles #perfiles-grid .player-card:nth-child(5n+4){border-top-color:#8a5c9d!important}
#tab-perfiles #perfiles-grid .player-card:nth-child(5n){border-top-color:#a77a21!important}
#tab-perfiles #perfiles-grid .player-card.is-selected{border-color:var(--court-ink)!important;box-shadow:inset 0 0 0 2px var(--court-ink)!important}
#tab-perfiles #perfiles-grid .player-card.is-selected:after{
  content:"SELECCIONADO"!important;top:10px!important;right:10px!important;left:auto!important;transform:none!important;
  padding:4px 7px!important;color:#fff!important;background:var(--court-blue)!important;border:0!important;border-radius:2px!important;box-shadow:none!important;
}
#tab-perfiles #perfiles-grid .pc-head{padding-right:76px!important}
#tab-perfiles #perfiles-grid .pc-stats{grid-template-columns:1fr 1fr!important;gap:0!important;border-top:1px solid var(--court-line);border-left:1px solid var(--court-line)}
#tab-perfiles #perfiles-grid .pcs{padding:9px!important;border-right:1px solid var(--court-line);border-bottom:1px solid var(--court-line)}
#tab-perfiles #perfiles-grid .pc-footer{margin-top:auto!important;padding-top:10px!important}
#tab-perfiles #perfiles-grid .pc-actions{display:grid!important;grid-template-columns:1fr 38px!important;gap:7px!important;margin-top:10px!important;padding:10px 0 0!important;border-top:1px solid var(--court-line)}
#tab-perfiles #perfiles-grid .pc-actions .btn{min-height:34px!important;justify-content:center!important}

#tab-perfiles #lesiones-kpis{margin-top:28px!important;border-top:5px solid #9f3340!important}
#tab-perfiles .injury-insights-grid{margin-top:10px!important}

@media(max-width:1280px){#tab-perfiles #perfiles-grid>.player-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:900px){
  #tab-perfiles .profile-focus-toolbar{grid-template-columns:1fr auto!important}.profile-focus-toolbar select{grid-column:1/-1!important;grid-row:2!important}
  #tab-perfiles #perfiles-grid>.player-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:600px){
  #tab-perfiles>.panel-header{display:block!important}#tab-perfiles>.panel-header .row{justify-content:flex-start!important;margin-top:10px;overflow-x:auto;flex-wrap:nowrap!important}
  #tab-perfiles .player-hero{grid-template-columns:60px minmax(0,1fr) 52px!important;padding:14px 12px 0!important;gap:10px!important}
  #tab-perfiles .player-hero>.jug-avatar{width:54px!important;height:54px!important}
  #tab-perfiles .player-hero .ph-nombre{font-size:21px!important}
  #tab-perfiles .player-hero .ph-meta{font-size:9px!important;flex-wrap:wrap!important}
  #tab-perfiles .player-hero .ph-dorsal{font-size:38px!important}
  #tab-perfiles .player-hero .ph-stats{grid-template-columns:1fr 1fr!important}
  #tab-perfiles .player-hero .ph-stat{padding:8px!important;border-bottom:1px solid var(--court-line)}
  #tab-perfiles #perfiles-grid>.player-grid{grid-template-columns:1fr!important}
}

/* V207 · SIATE pocket guide. It follows the user instead of occupying the
   document flow, so the current exercise and its values remain in context. */
#tab-externa .ce44-guide-pocket{position:static!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important}
#tab-externa .ce44-guide-pocket>summary::-webkit-details-marker{display:none}
#tab-externa .ce44-guide-pocket>summary{list-style:none!important}
#tab-externa .ce44-guide-fab{
  position:fixed!important;right:24px!important;bottom:24px!important;z-index:82!important;
  display:grid!important;grid-template-columns:32px auto!important;grid-template-rows:auto auto!important;
  align-items:center!important;column-gap:9px!important;min-width:158px!important;padding:9px 13px!important;
  color:#fff!important;background:#172532!important;border:1px solid #314655!important;border-left:4px solid #7a55b6!important;
  box-shadow:0 10px 26px rgba(10,22,32,.24)!important;text-align:left!important;
}
#tab-externa .ce44-guide-fab>span{grid-row:1/3;display:grid;place-items:center;width:30px;height:30px;background:#7a55b6;color:#fff;font-size:17px;font-weight:900}
#tab-externa .ce44-guide-fab>strong{font-size:11px!important;line-height:1.1;color:#fff!important}
#tab-externa .ce44-guide-fab>small{font-size:8px;color:#b9c6cf;letter-spacing:.06em;text-transform:uppercase}
#tab-externa .ce44-guide-fab:hover{background:#0d1922!important;transform:translateY(-1px)!important}
#tab-externa .ce44-guide-pocket[open]:before{content:"";position:fixed;inset:0;z-index:90;background:rgba(8,18,26,.28)}
#tab-externa .ce44-guide-pocket[open]>.ce44-guide-fab{z-index:92!important;top:148px!important;right:16px!important;bottom:auto!important;display:grid!important;place-items:center!important;min-width:34px!important;width:34px!important;height:34px!important;padding:0!important;border:1px solid #667987!important;border-left:1px solid #667987!important;background:transparent!important;box-shadow:none!important}
#tab-externa .ce44-guide-pocket[open]>.ce44-guide-fab>*{display:none!important}
#tab-externa .ce44-guide-pocket[open]>.ce44-guide-fab:after{content:"×";display:block;color:#fff;font-size:22px;font-weight:500;line-height:1}
#tab-externa .ce44-guide-drawer{
  position:fixed!important;z-index:91!important;top:132px!important;right:0!important;bottom:0!important;width:min(620px,48vw)!important;
  display:flex!important;flex-direction:column!important;color:var(--court-ink)!important;background:#f6f3ec!important;
  border:0!important;border-left:6px solid #7a55b6!important;box-shadow:-18px 0 45px rgba(7,20,29,.22)!important;
}
#tab-externa .ce44-guide-drawer>header{display:flex;justify-content:space-between;gap:18px;padding:20px 22px 16px;background:var(--court-navy);color:#fff;border-bottom:4px solid #7a55b6}
#tab-externa .ce44-guide-drawer>header div{display:flex;flex-direction:column;gap:3px}
#tab-externa .ce44-guide-drawer>header small{font-size:8px;font-weight:900;letter-spacing:.15em;color:#b8a3d3}
#tab-externa .ce44-guide-drawer>header strong{font-size:20px;color:#fff!important}
#tab-externa .ce44-guide-drawer>header span{font-size:10px;color:#b9c5cc;line-height:1.4}
#tab-externa .ce44-guide-drawer>header>span{display:none!important}
#tab-externa .ce44-calendar-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 14px;color:#fff;background:var(--court-navy);border-left:5px solid #7a55b6}
#tab-externa .ce44-calendar-head>div{display:grid;grid-template-columns:auto auto;align-items:end;gap:2px 12px}
#tab-externa .ce44-calendar-head small{grid-column:1/-1;font-size:8px;font-weight:900;letter-spacing:.14em;color:#b8a3d3}
#tab-externa .ce44-calendar-head strong{font-size:15px;color:#fff!important}
#tab-externa .ce44-calendar-head span{font-size:10px;color:#b9c5cc}
#tab-externa .ce44-calendar-head button{color:#fff!important;background:transparent!important;border:1px solid #617482!important;padding:7px 10px!important}
#tab-externa .ce44-guide-drawer .ce44-guide-grid{display:grid!important;grid-template-columns:1fr!important;gap:0!important;padding:0 22px 22px!important;overflow-y:auto!important}
#tab-externa .ce44-guide-drawer .ce44-guide-row{padding:15px 0!important;background:transparent!important;border:0!important;border-bottom:1px solid #cfd2cf!important;border-radius:0!important;overflow:visible!important}
#tab-externa .ce44-guide-drawer .ce44-guide-row>strong{display:block;margin-bottom:8px!important;font-size:12px!important;color:var(--court-ink)!important}
#tab-externa .ce44-guide-drawer .ce44-guide-row>div{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:4px!important}
#tab-externa .ce44-guide-drawer .ce44-guide-row span{display:block;min-width:0;padding:8px 7px!important;font-size:9px!important;line-height:1.35!important;color:#3d4950!important;background:#fff!important;border:1px solid #d6d8d5!important;border-top:3px solid #9a86b7!important;border-radius:0!important;overflow-wrap:anywhere}
#tab-externa .ce44-guide-drawer .ce44-guide-row span:first-child{border-left:1px solid #d6d8d5!important;border-top-color:#73818a!important}
#tab-externa .ce44-guide-drawer .ce44-guide-row span:nth-child(5){color:#fff!important;background:#362d41!important;border-color:#362d41!important}

@media(max-width:760px){
  #tab-externa .ce44-guide-fab{right:10px!important;bottom:12px!important;min-width:138px!important}
  #tab-externa .ce44-guide-pocket[open]>.ce44-guide-fab{display:grid!important;top:auto!important;right:10px!important;bottom:calc(78dvh - 46px)!important}
  #tab-externa .ce44-guide-drawer{top:auto!important;left:0!important;right:0!important;bottom:0!important;width:100%!important;max-height:78dvh!important;border-left:0!important;border-top:5px solid #7a55b6!important}
  #tab-externa .ce44-guide-drawer .ce44-guide-grid{padding:0 12px 14px!important}
  #tab-externa .ce44-guide-drawer .ce44-guide-row>div{grid-template-columns:1fr!important}
  #tab-externa .ce44-guide-drawer .ce44-guide-row span{padding:7px 9px!important}
}
}
/* Source: css/v209-unified-module-language.css */
@layer compatibility{/* V209 · ONE PRODUCT, ONE VISUAL LANGUAGE
   Module colours are reserved for data semantics. Navigation, page openings,
   section headings and actions use one shared TrainingLoadManager system. */
#app-shell{
  --ui-ink:#102432;
  --ui-navy:#0b1e2d;
  --ui-orange:#ed6b2d;
  --ui-blue:#215c91;
  --ui-paper:#f2f0eb;
  --ui-sheet:#fffefa;
  --ui-line:#cdd1cf;
  --ui-muted:#667078;
}

/* Every page starts in exactly the same way. */
#app-shell .tab-panel{--module-accent:var(--ui-orange)!important}
#app-shell .tab-panel>.panel-header,
#app-shell .tab-panel>.fr-hero,
#app-shell .tab-panel>.isak-hero,
#app-shell .tab-panel>.module-hero,
#app-shell .tab-panel>.page-hero,
#app-shell .tab-panel>.load-hero{
  position:relative!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;
  align-items:end!important;gap:18px!important;min-height:82px!important;
  margin:0 0 18px!important;padding:14px 0 16px 24px!important;
  color:var(--ui-ink)!important;background:transparent!important;
  border:0!important;border-bottom:4px solid var(--ui-navy)!important;border-radius:0!important;box-shadow:none!important;
}
#app-shell .tab-panel>.panel-header:before,
#app-shell .tab-panel>.fr-hero:before,
#app-shell .tab-panel>.isak-hero:before,
#app-shell .tab-panel>.module-hero:before,
#app-shell .tab-panel>.page-hero:before,
#app-shell .tab-panel>.load-hero:before{
  content:""!important;display:block!important;position:absolute!important;left:0!important;top:14px!important;bottom:16px!important;width:5px!important;background:var(--ui-orange)!important;
}
#app-shell .tab-panel>.panel-header h1,#app-shell .tab-panel>.panel-header h2,
#app-shell .tab-panel>.fr-hero h1,#app-shell .tab-panel>.fr-hero h2,
#app-shell .tab-panel>.isak-hero h1,#app-shell .tab-panel>.isak-hero h2,
#app-shell .tab-panel>.module-hero h1,#app-shell .tab-panel>.module-hero h2,
#app-shell .tab-panel>.page-hero h1,#app-shell .tab-panel>.page-hero h2,
#app-shell .tab-panel>.load-hero h1,#app-shell .tab-panel>.load-hero h2{
  margin:0!important;color:var(--ui-ink)!important;font-size:30px!important;line-height:1.05!important;font-weight:850!important;letter-spacing:-.035em!important;
}
#app-shell .tab-panel>.panel-header p,#app-shell .tab-panel>.fr-hero p,#app-shell .tab-panel>.isak-hero p,
#app-shell .tab-panel>.module-hero p,#app-shell .tab-panel>.page-hero p,#app-shell .tab-panel>.load-hero p{
  max-width:850px!important;margin:6px 0 0!important;color:var(--ui-muted)!important;font-size:12px!important;line-height:1.45!important;font-weight:500!important;
}
#app-shell .tab-panel>.panel-header .row,#app-shell .tab-panel>.panel-header .panel-actions,
#app-shell .tab-panel>.fr-hero .fr-actions,#app-shell .tab-panel>.isak-hero .isak-hero-actions{justify-content:flex-end!important;align-items:center!important;gap:7px!important}

/* Dashboard opening follows the same header geometry. */
#app-shell .command-home__masthead{position:relative!important;min-height:82px!important;padding:14px 0 16px 24px!important;border-bottom:4px solid var(--ui-navy)!important}
#app-shell .command-home__masthead:before{content:"";position:absolute;left:0;top:14px;bottom:16px;width:5px;background:var(--ui-orange)}
#app-shell .command-home__masthead h2{font-size:30px!important;color:var(--ui-ink)!important}

/* One button hierarchy across the product. */
#app-shell .btn-primary,#app-shell button.btn-primary,#app-shell .button-primary,
#app-shell .ce44-add-task-btn,#app-shell .pm-control-btn.primary{
  color:#fff!important;background:var(--ui-navy)!important;border-color:var(--ui-navy)!important;box-shadow:inset 0 -3px 0 var(--ui-orange)!important;
}
#app-shell .btn-primary:hover,#app-shell button.btn-primary:hover,#app-shell .button-primary:hover{background:#132f43!important}
#app-shell .btn:not(.btn-primary):not(.btn-danger):not(.btn-success),#app-shell button.btn:not(.btn-primary):not(.btn-danger):not(.btn-success){color:var(--ui-ink)!important;background:var(--ui-sheet)!important;border-color:var(--ui-line)!important}

/* Internal navigation is identical everywhere. */
#app-shell .cargas-mode-toggle,#app-shell .subtabs,#app-shell .tabs,#app-shell .pp24-nav{
  min-height:42px!important;margin:0 0 14px!important;padding:0!important;background:transparent!important;border:0!important;border-bottom:1px solid var(--ui-line)!important;border-radius:0!important;
}
#app-shell .cargas-mode-btn,#app-shell .subtab,#app-shell .tab-btn,#app-shell .pp24-nav button{
  min-height:41px!important;padding:0 14px!important;color:var(--ui-muted)!important;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;
}
#app-shell .cargas-mode-btn.active,#app-shell .subtab.active,#app-shell .tab-btn.active,#app-shell .pp24-nav button.active{
  color:var(--ui-ink)!important;background:transparent!important;box-shadow:inset 0 -3px 0 var(--ui-orange)!important;
}

/* Section headers and containers no longer change colour by module. */
#app-shell .card,#app-shell .fr-card,#app-shell .isak-card,#app-shell .section-card,#app-shell .injury-history-card,
#app-shell .player-card,#app-shell .player-load-card,#app-shell .report-chart-panel,#app-shell .ce44-ex{
  border-color:var(--ui-line)!important;background:var(--ui-sheet)!important;box-shadow:none!important;
}
#app-shell .card-title,#app-shell .fr-card-title,#app-shell .isak-card-head,#app-shell .injury-section-heading{
  color:var(--ui-ink)!important;border-color:var(--ui-navy)!important;
}
#app-shell .card-title{border-bottom:2px solid var(--ui-navy)!important}
#app-shell .fr-grid>.fr-card:first-child,#app-shell #tab-wellness>.card:nth-of-type(1),
#app-shell #tab-temporada>.grid-2>.card:first-child,#app-shell #tab-temporada>.grid-2>.card:nth-child(2),
#app-shell #tab-externa #ce-resumen-view>.card:first-child,#app-shell #tab-perfiles .injury-history-card,
#app-shell #tab-planificación #plan-pro-v24,#app-shell #tab-planificación #plan-year-view{
  border-top-color:var(--ui-navy)!important;
}
#app-shell .ce44-ex{border-top-color:var(--ui-navy)!important}
#app-shell .ce44-calendar-head,#app-shell .profile-focus-toolbar,#app-shell .live-scoreboard,#app-shell .match-scoreboard,#app-shell .tlr-head{background:var(--ui-navy)!important;border-color:var(--ui-orange)!important}

/* Tables and high-level KPI strips share the same chrome. */
#app-shell th{background:var(--ui-navy)!important;color:#fff!important;border-color:#294152!important}
#app-shell .kpi-grid{border-color:var(--ui-line)!important;background:var(--ui-line)!important}
#app-shell .kpi:before,#app-shell .kpi-card:before,#app-shell .inicio-kpi:before,#app-shell .fr-kpi:before{background:var(--ui-orange)!important}

/* Remove decorative per-module borders. Semantic card states (ACWR, alerts,
   injuries) remain untouched because those colours carry information. */
#app-shell #tab-cargas>.panel-header,#app-shell #tab-externa>.panel-header,#app-shell #tab-wellness>.panel-header,
#app-shell #tab-salud>.panel-header,#app-shell #tab-planificación>.panel-header,#app-shell #tab-partidos>.panel-header,
#app-shell #tab-perfiles>.panel-header,#app-shell #tab-temporada>.panel-header{border-bottom-color:var(--ui-navy)!important}
#app-shell #tab-perfiles #perfiles-grid .player-card:not(.is-selected){border-top-color:var(--ui-navy)!important}
#app-shell #tab-peso>.card,#app-shell #tab-antropometria>.card{border-left-color:var(--ui-navy)!important}

@media(max-width:700px){
  #app-shell .tab-panel>.panel-header,#app-shell .tab-panel>.fr-hero,#app-shell .tab-panel>.isak-hero,
  #app-shell .tab-panel>.module-hero,#app-shell .tab-panel>.page-hero,#app-shell .tab-panel>.load-hero{display:block!important;min-height:0!important;padding:12px 8px 13px 18px!important}
  #app-shell .tab-panel>.panel-header h1,#app-shell .tab-panel>.panel-header h2,#app-shell .tab-panel>.fr-hero h2,#app-shell .tab-panel>.isak-hero h2{font-size:24px!important}
  #app-shell .tab-panel>.panel-header .row,#app-shell .tab-panel>.panel-header .panel-actions,#app-shell .tab-panel>.fr-hero .fr-actions,#app-shell .tab-panel>.isak-hero .isak-hero-actions{justify-content:flex-start!important;margin-top:10px!important;overflow-x:auto!important;flex-wrap:nowrap!important}
  #app-shell .tab-panel>.panel-header:after{display:none!important}
}
}
/* Source: css/v210-unified-subsections.css */
@layer compatibility{/* V210 · UNIFIED SUBSECTIONS
   Same visual grammar below every page header:
   navigation → controls → KPI strip → analysis sections → data table. */

/* 1. Every KPI collection uses the same responsive strip. */
#app-shell .kpi-grid,#app-shell .salud-kpis-grid,#app-shell .fr-kpis,#app-shell .load-player-summary,
#app-shell .somato-kpis,#app-shell .tlr-kpis,#app-shell .pm-pro-mini-grid{
  display:grid!important;grid-template-columns:repeat(auto-fit,minmax(170px,1fr))!important;
  gap:1px!important;margin:0 0 14px!important;padding:0!important;
  background:var(--ui-line)!important;border:1px solid var(--ui-line)!important;border-radius:3px!important;overflow:hidden!important;
}
#app-shell #tab-cargas #cargas-kpis,#app-shell #tab-wellness #wellness-kpis,
#app-shell #tab-salud #salud-kpis-equipo,#app-shell #tab-partidos #partidos-kpis,
#app-shell #tab-temporada #kpi-grid{
  grid-template-columns:repeat(auto-fit,minmax(170px,1fr))!important;
}
#app-shell .kpi,#app-shell .kpi-card,#app-shell .salud-kpi,#app-shell .fr-kpi,
#app-shell .load-player-summary>article,#app-shell .somato-kpis>*,#app-shell .tlr-kpi,#app-shell .pm-pro-mini-grid>*{
  position:relative!important;min-height:104px!important;margin:0!important;padding:16px 17px!important;
  color:var(--ui-ink)!important;background:var(--ui-sheet)!important;border:0!important;border-radius:0!important;box-shadow:none!important;
}
#app-shell .kpi:before,#app-shell .kpi-card:before,#app-shell .salud-kpi:before,#app-shell .fr-kpi:before,
#app-shell .load-player-summary>article:before,#app-shell .tlr-kpi:before{
  content:""!important;position:absolute!important;left:0!important;top:0!important;width:36px!important;height:3px!important;background:var(--ui-orange)!important;
}
#app-shell .salud-kpi[data-tone],#app-shell .load-player-summary>article.ratio{border-left:0!important}
#app-shell .salud-kpi-label,#app-shell .fr-kpi-label,#app-shell .load-player-summary article>span,#app-shell .tlr-kpi>span{
  font-size:9px!important;font-weight:850!important;letter-spacing:.1em!important;text-transform:uppercase!important;color:var(--ui-muted)!important;
}
#app-shell .salud-kpi-value,#app-shell .fr-kpi-value,#app-shell .load-player-summary article>strong,#app-shell .tlr-kpi>strong{
  display:block!important;margin:8px 0 4px!important;font-size:25px!important;line-height:1!important;color:var(--ui-ink)!important;font-weight:850!important;
}

/* 2. Filters and selectors always appear as one white control bar. */
#app-shell .salud-toolbar,#app-shell .load-player-toolbar,#app-shell .isak-filters,
#app-shell .ce44-toolbar,#app-shell .pm-pro-toolbar,#app-shell .somato-toolbar,
#app-shell .row.load-primary-actions{
  min-height:62px!important;margin:0 0 14px!important;padding:12px 14px!important;
  background:var(--ui-sheet)!important;border:1px solid var(--ui-line)!important;border-radius:3px!important;box-shadow:none!important;
}
#app-shell .salud-toolbar{display:flex!important;align-items:center!important;gap:10px!important}
#app-shell .load-player-toolbar{display:flex!important;align-items:end!important;justify-content:space-between!important}
#app-shell .salud-toolbar label,#app-shell .salud-toolbar>span,#app-shell .load-player-toolbar span,
#app-shell .isak-filters label,#app-shell .somato-toolbar label{
  color:var(--ui-muted)!important;font-size:9px!important;font-weight:850!important;letter-spacing:.08em!important;text-transform:uppercase!important;
}

/* 3. Every analytical subsection is the same white sheet. */
#app-shell .card,#app-shell .fr-card,#app-shell .isak-card,#app-shell .section-card,
#app-shell .load-context,#app-shell .load-player-chart,#app-shell .load-recent,
#app-shell .injury-history-card,#app-shell .tlr-section,#app-shell .pm-pro-side-card,
#app-shell .report-chart-panel,#app-shell .ce44-ex,#app-shell .salud-tabla-wrap{
  margin-top:14px!important;padding:18px!important;color:var(--ui-ink)!important;
  background:var(--ui-sheet)!important;border:1px solid var(--ui-line)!important;border-radius:3px!important;box-shadow:none!important;
}
#app-shell .load-context>header,#app-shell .load-player-chart>header,#app-shell .load-recent>h3,
#app-shell .fr-card>.fr-card-title,#app-shell .isak-card-head,#app-shell .tlr-section-title,
#app-shell .injury-section-heading,#app-shell .report-chart-head,#app-shell .pm-pro-side-title{
  display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:12px!important;
  margin:0 0 14px!important;padding:0 0 11px!important;color:var(--ui-ink)!important;
  background:transparent!important;border:0!important;border-bottom:2px solid var(--ui-navy)!important;
}
#app-shell .load-context h3,#app-shell .load-player-chart h3,#app-shell .load-recent>h3,
#app-shell .fr-card-title,#app-shell .isak-card-head h3,#app-shell .tlr-section-title h3,
#app-shell .injury-section-heading h3,#app-shell .report-chart-head h3{
  margin:0!important;color:var(--ui-ink)!important;font-size:16px!important;line-height:1.2!important;font-weight:850!important;
}
#app-shell .load-context header p,#app-shell .load-player-chart header p,#app-shell .fr-card-sub,
#app-shell .isak-card-head p,#app-shell .tlr-section-title p,#app-shell .injury-section-heading p{
  margin:4px 0 0!important;color:var(--ui-muted)!important;font-size:11px!important;line-height:1.45!important;
}

/* 4. Nested values are a neutral data strip, never another dark card. */
#app-shell .load-context-grid,#app-shell .fr-legend,#app-shell .report-guide-grid,
#app-shell .match-summary-intel,#app-shell .tlr-player-kpis{
  display:grid!important;grid-template-columns:repeat(auto-fit,minmax(170px,1fr))!important;
  gap:1px!important;padding:0!important;background:var(--ui-line)!important;border:1px solid var(--ui-line)!important;border-radius:2px!important;overflow:hidden!important;
}
#app-shell .load-context-grid>div,#app-shell .fr-legend-item,#app-shell .report-guide-grid>div,
#app-shell .match-summary-intel>*,#app-shell .tlr-player-kpis>*{
  min-height:82px!important;padding:13px!important;color:var(--ui-ink)!important;background:#f8f7f3!important;border:0!important;border-radius:0!important;
}
#app-shell .load-context-grid span,#app-shell .load-context-grid small{color:var(--ui-muted)!important}
#app-shell .load-context-grid strong{color:var(--ui-ink)!important;font-size:20px!important}

/* 5. Tables and roster lists use the same outer sheet and row rhythm. */
#app-shell .table-wrap,#app-shell .fr-table-wrap,#app-shell .tlr-table-wrap,
#app-shell .salud-tabla-wrap,#app-shell .pm-minutes-table-wrap{
  padding:0!important;overflow:auto!important;background:var(--ui-sheet)!important;border:1px solid var(--ui-line)!important;border-radius:3px!important;box-shadow:none!important;
}
#app-shell .salud-tabla-wrap{border-left:1px solid var(--ui-line)!important}
#app-shell .salud-row td,#app-shell .fr-table td,#app-shell .tlr-table td{min-height:52px!important;padding:11px 12px!important}

/* 6. Callouts are identical and restrained. */
#app-shell .salud-leyenda,#app-shell .ce44-method-note,#app-shell .isak-principle,
#app-shell .fr-principle,#app-shell .load-source-note,#app-shell .tlr-quality{
  margin:12px 0!important;padding:11px 13px!important;color:#34434c!important;background:#eef2f3!important;
  border:0!important;border-left:4px solid var(--ui-blue)!important;border-radius:2px!important;box-shadow:none!important;
}

/* Remove remaining module-specific dark compositions and oversized rounding. */
#app-shell .load-context,#app-shell .load-player-chart,#app-shell .load-recent,
#app-shell #tab-salud .salud-tabla-wrap,#app-shell #tab-readiness .fr-grid>.fr-card:last-child{
  color:var(--ui-ink)!important;background:var(--ui-sheet)!important;border-color:var(--ui-line)!important;
}
#app-shell .load-spark i{border-radius:1px 1px 0 0!important;background:var(--ui-blue)!important}
#app-shell .load-player-summary article,#app-shell .load-player-toolbar,#app-shell .load-context,
#app-shell .load-player-chart,#app-shell .load-recent{border-radius:3px!important}

@media(max-width:900px){
  #app-shell .kpi-grid,#app-shell .salud-kpis-grid,#app-shell .fr-kpis,#app-shell .load-player-summary,#app-shell .tlr-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  #app-shell .salud-toolbar,#app-shell .load-player-toolbar{align-items:stretch!important;flex-direction:column!important}
}
@media(max-width:520px){
  #app-shell .kpi-grid,#app-shell .salud-kpis-grid,#app-shell .fr-kpis,#app-shell .load-player-summary,#app-shell .tlr-kpis{grid-template-columns:1fr 1fr!important}
  #app-shell .card,#app-shell .fr-card,#app-shell .isak-card,#app-shell .section-card,#app-shell .load-context,#app-shell .load-player-chart,#app-shell .load-recent,#app-shell .tlr-section{padding:13px!important}
}
}
/* Source: css/v211-project-visual-audit.css */
@layer compatibility{/* V211 · PROJECT-WIDE VISUAL AUDIT
   Removes legacy decorative labels and establishes predictable geometry
   for headers, subnavigation, help steps, controls and data sections. */

/* Legacy pseudo-labels (“TRAININGLOAD MANAGER”, “ÁREA DE TRABAJO”, etc.)
   competed with real controls and navigation. Page identity belongs to the h1/h2. */
#app-shell .tab-panel>.panel-header:after,
#app-shell .tab-panel>.fr-hero:after,
#app-shell .tab-panel>.isak-hero:after,
#app-shell .tab-panel>.perfiles-hero:after,
#app-shell .tab-panel>.load-hero:after,
#app-shell .tab-panel>.module-hero:after,
#app-shell .tab-panel>.page-hero:after{
  content:none!important;display:none!important;
}

/* Every module header reserves a clean content column and an action column. */
#app-shell .tab-panel>.panel-header,
#app-shell .tab-panel>.fr-hero,
#app-shell .tab-panel>.isak-hero,
#app-shell .tab-panel>.perfiles-hero,
#app-shell .tab-panel>.load-hero,
#app-shell .tab-panel>.module-hero,
#app-shell .tab-panel>.page-hero{
  isolation:isolate!important;overflow:visible!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:center!important;column-gap:24px!important;
  min-height:90px!important;
}
#app-shell .tab-panel>.panel-header>div:first-child,
#app-shell .tab-panel>.fr-hero>div:first-child,
#app-shell .tab-panel>.isak-hero>div:first-child,
#app-shell .tab-panel>.perfiles-hero>div:first-child,
#app-shell .tab-panel>.load-hero>div:first-child{
  min-width:0!important;
}
#app-shell .tab-panel>.panel-header .row,
#app-shell .tab-panel>.panel-header .panel-actions,
#app-shell .tab-panel>.fr-hero .fr-actions,
#app-shell .tab-panel>.isak-hero .isak-hero-actions{
  position:relative!important;inset:auto!important;z-index:1!important;
  max-width:100%!important;margin:0!important;
}

/* The four planning explanations always divide the available width evenly. */
#app-shell #tab-planificación .agenda-capabilities{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:1px!important;margin:0 0 16px!important;padding:1px!important;
  background:var(--ui-line)!important;border:0!important;border-radius:3px!important;
  overflow:hidden!important;
}
#app-shell #tab-planificación .agenda-capabilities>div{
  box-sizing:border-box!important;width:auto!important;min-width:0!important;min-height:112px!important;
  margin:0!important;padding:17px 16px 16px 52px!important;
  border:0!important;border-radius:0!important;background:var(--ui-sheet)!important;box-shadow:none!important;
}
#app-shell #tab-planificación .agenda-capabilities span{
  left:15px!important;top:16px!important;width:25px!important;height:25px!important;
  border-radius:2px!important;background:var(--ui-soft)!important;color:var(--ui-blue)!important;
}
#app-shell #tab-planificación .agenda-capabilities strong{
  margin:0 0 7px!important;font-size:13px!important;line-height:1.25!important;color:var(--ui-ink)!important;
}
#app-shell #tab-planificación .agenda-capabilities small{
  font-size:11px!important;line-height:1.45!important;color:var(--ui-muted)!important;
}

/* One subnavigation grammar everywhere; legacy sticky layers must not cover menus. */
#app-shell .cargas-mode-toggle,#app-shell .plan-v38-tabs,#app-shell .fr-tabs,
#app-shell .isak-tabs,#app-shell .pm-pro-tabs,#app-shell .salud-tabs,#app-shell .subtabs{
  position:relative!important;top:auto!important;z-index:2!important;
  max-width:100%!important;min-height:48px!important;overflow-x:auto!important;overflow-y:hidden!important;
  scrollbar-width:thin!important;
}
#app-shell .nav-menu,#app-shell .nav-dropdown,#app-shell [class*="topnav"][class*="menu"]{
  z-index:5000!important;
}

/* Long controls wrap inside their section instead of colliding with headings. */
#app-shell .tab-panel select,#app-shell .tab-panel input,#app-shell .tab-panel button{max-width:100%}
#app-shell .tab-panel .row{min-width:0}
#app-shell .tab-panel .table-wrap,#app-shell .tab-panel [class*="table-wrap"]{max-width:100%;overflow:auto}

@media(max-width:1100px){
  #app-shell #tab-planificación .agenda-capabilities{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:760px){
  #app-shell .tab-panel>.panel-header,#app-shell .tab-panel>.fr-hero,#app-shell .tab-panel>.isak-hero,
  #app-shell .tab-panel>.perfiles-hero,#app-shell .tab-panel>.load-hero,#app-shell .tab-panel>.module-hero,#app-shell .tab-panel>.page-hero{
    display:grid!important;grid-template-columns:1fr!important;row-gap:12px!important;min-height:0!important;
    padding:16px 14px 16px 20px!important;
  }
  #app-shell .tab-panel>.panel-header .row,#app-shell .tab-panel>.panel-header .panel-actions,
  #app-shell .tab-panel>.fr-hero .fr-actions,#app-shell .tab-panel>.isak-hero .isak-hero-actions{
    width:100%!important;justify-content:flex-start!important;overflow-x:auto!important;flex-wrap:nowrap!important;
  }
  #app-shell #tab-planificación .agenda-capabilities{grid-template-columns:1fr!important}
  #app-shell #tab-planificación .agenda-capabilities>div{min-height:88px!important}
}

}
/* Source: css/mobile-five-v236.css */
@layer compatibility{#pm-mobile-five-v236{position:sticky;top:54px;z-index:19;padding:10px;background:#0d1a23;border:1px solid #385044;border-radius:12px;margin:8px 0;box-shadow:0 8px 16px #0005}
.quick-five-title{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px}.quick-five-title button{background:#26391d;color:#d2fa83;border:1px solid #58733e;border-radius:8px;padding:8px;font-size:10px}
.quick-five-players{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;margin-top:8px}.quick-five-players button{display:flex;flex-direction:column;gap:5px;align-items:center;min-width:0;background:#162a32;color:#eef5f8;border:1px solid #344b58;border-radius:8px;padding:8px 3px}.quick-five-players b{font-size:20px;color:#c8f36b}.quick-five-players span{font-size:9px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.quick-five-players small{font-size:8px;color:#b3c9d6;white-space:nowrap}#pm-mobile-five-v236 p{font-size:10px;color:#a9c0cc;margin:8px 0 0}
@media(max-width:700px){.pm-five-overlay{z-index:100100!important}.pm-five-dialog,.pm-five-dialog header,.pm-multi-dialog footer,.pm-multi-columns section{background:#0d1a23!important;color:#edf4f7!important;border-color:#344b58!important}.pm-five-dialog h3,.pm-five-dialog h4{color:#edf4f7!important}.pm-multi-player,.pm-five-player{background:#162832!important;color:#edf4f7!important;border-color:#344b58!important;min-height:52px!important}.pm-multi-player.selected,.pm-five-player.selected{background:#2b4123!important;border-color:#c8f36b!important}.pm-multi-dialog footer{bottom:0!important}.pm-five-dialog footer button{min-height:44px!important}.pm-multi-status{background:#162832!important;color:#dbeaf2!important}}
@media(max-width:700px){#app-shell #tab-partidos #subtab-rotacion :is(.pm-ops-strip,.pm-score-side,.pm-scoreboard,.pm-pro-clock){background:#101f29!important;color:#edf4f7!important;border-color:#344b58!important}#app-shell #tab-partidos #subtab-rotacion .pm-ops-strip button{background:#19313d!important;color:#c8e0ed!important;border-color:#344b58!important}#app-shell #tab-partidos #subtab-rotacion :is(.pm-score-side-label,#pm-score-local,#pm-score-visitante,.pm-clock-display){color:#edf4f7!important}.quick-five-title button{border-radius:8px!important}.quick-five-players button{border-radius:8px!important}}

/* Live stint clock: stays visible in all mobile match panels. */
#pm-mobile-five-v236 .quick-five-time{font-size:19px;line-height:1.15;color:#e4ffb4;font-variant-numeric:tabular-nums;letter-spacing:.02em}#pm-mobile-five-v236 .quick-five-time-label{font-size:8px;letter-spacing:.04em;color:#b5c7ce;margin-top:3px}#pm-mobile-five-v236 .quick-five-players button{gap:4px}
}
/* Source: css/profile-v237.css */
@layer compatibility{/* v237 — account profile shares the current product palette. */
#modal-mi-perfil{color-scheme:dark}
#modal-mi-perfil .profile-modal{background:#0d1a23!important;color:#edf4f7!important;border:1px solid #304650!important;border-radius:20px!important;box-shadow:0 24px 80px #0008!important}
#modal-mi-perfil :is(.profile-modal-head,.profile-layout,.profile-fields,h3){background:transparent!important;color:#edf4f7!important;border-color:#293c48!important}
#modal-mi-perfil .profile-modal-head{padding-bottom:20px!important}
#modal-mi-perfil :is(.profile-photo-panel,.subscription-card,.profile-preferences-card,.profile-account-actions){background:#101f29!important;border:1px solid #293c48!important;border-radius:12px!important;box-shadow:none!important}
#modal-mi-perfil .profile-photo-preview{background:#253a21!important;color:#d2fa83!important;border:2px solid #627e43!important;box-shadow:none!important}
#modal-mi-perfil :is(.eyebrow,.profile-section-title){color:#b7d98a!important;letter-spacing:.08em!important}
#modal-mi-perfil :is(label,.subscription-card-title,.profile-preference-copy strong){color:#e3edf3!important}
#modal-mi-perfil :is(.muted,.profile-field-help,.subscription-card-meta,.profile-preference-copy span){color:#a4bac9!important}
#modal-mi-perfil input:not([type=file]){background:#08161e!important;color:#edf4f7!important;border:1px solid #344b58!important;border-radius:8px!important;min-height:44px!important}
#modal-mi-perfil input:focus-visible{outline:2px solid #c8f36b!important;outline-offset:2px}
#modal-mi-perfil input[readonly]{background:#14232c!important;color:#a5b8c5!important}
#modal-mi-perfil :is(.btn,.profile-language-button,.modal-close){background:#182c36!important;color:#dceaf1!important;border:1px solid #344b58!important;border-radius:8px!important;min-height:40px!important;box-shadow:none!important}
#modal-mi-perfil :is(.btn-primary,.profile-language-button.active,.profile-language-button[aria-pressed=true]){background:#c8f36b!important;color:#132010!important;border-color:#c8f36b!important}
#modal-mi-perfil .profile-language-button span{background:transparent!important;color:inherit!important}
#modal-mi-perfil :is(.btn-danger,.profile-logout-btn){background:#35232d!important;color:#ffb1bd!important;border-color:#593544!important}
#modal-mi-perfil .subscription-card-badge{background:#213c32!important;color:#a0e6c3!important;border-color:#36594a!important}
#modal-mi-perfil .profile-actions{background:#0d1a23!important;border-top:1px solid #293c48!important;padding-top:16px!important}
@media(max-width:700px){#modal-mi-perfil{padding:10px!important}#modal-mi-perfil .profile-modal{padding:18px!important;max-height:calc(100dvh - 20px)!important;overflow:auto!important}#modal-mi-perfil .profile-layout,#modal-mi-perfil .profile-grid{grid-template-columns:1fr!important}#modal-mi-perfil input{font-size:16px!important}#modal-mi-perfil .profile-actions{position:sticky!important;bottom:-18px!important;padding:14px 0!important;z-index:3}#modal-mi-perfil .profile-language-options{flex-wrap:wrap!important}}
}
/* Source: css/auth-v238.css */
@layer compatibility{/* v238 — public access aligned with the dark sports identity. */
#auth.auth-wrap{--auth-ink:#edf4f7;--auth-blue:#c8f36b;--auth-orange:#c8f36b;--auth-line:#30434f;background:#050d12!important;color:#edf4f7!important;color-scheme:dark}
#auth :is(#auth-login,#auth-signup,.auth-header){background:transparent!important}
#auth .auth-header h1{color:#f4f8fa!important}
#auth :is(.auth-back,.auth-header p,.afs-switch,.afs-plan-help,.auth-terms,.auth-divider){color:#a8bdcb!important}
#auth .afs-form label{color:#d7e5ee!important}
#auth :is(.afs-input,select){background:#0d1a23!important;color:#edf4f7!important;border:1px solid #344b58!important;border-radius:10px!important;font-size:16px!important}
#auth .afs-input:focus{border-color:#c8f36b!important;box-shadow:0 0 0 3px #c8f36b22!important}
#auth .google-auth{background:#12232d!important;color:#edf4f7!important;border-color:#344b58!important;border-radius:10px!important}
#auth .google-auth:hover{background:#1b303c!important}
#auth .afs-submit{background:#c8f36b!important;border-color:#c8f36b!important;color:#132010!important;border-radius:10px!important;box-shadow:none!important}
#auth .afs-submit:hover{background:#d8ff88!important}
#auth :is(.auth-visual-copy>span,.auth-visual-copy b){color:#c8f36b!important}
#auth .auth-label-row button,#auth .afs-switch a,#auth .auth-terms a{color:#c8f36b!important}
#auth .auth-header{border-left-color:#c8f36b!important}
#auth .auth-header>span{color:#c8f36b!important}
#auth .auth-divider:before,#auth .auth-divider:after{background:#30434f!important}
#auth .afs-switch{border-top-color:#30434f!important}
}
/* Source: css/data-v239.css */
@layer compatibility{/* v239 — shared readable data presentation across product modules. */
#app-shell .tab-panel table{border-collapse:separate!important;border-spacing:0!important;background:#0d1a23!important;color:#dce8ef!important;font-variant-numeric:tabular-nums;line-height:1.45}
#app-shell .tab-panel table :is(th,td){vertical-align:middle!important;text-align:left!important;padding:14px 16px!important;border:0!important;border-bottom:1px solid #263b47!important;box-shadow:none!important}
#app-shell .tab-panel table th{background:#09161e!important;color:#9fb6c5!important;font-size:10px!important;font-weight:650!important;letter-spacing:.055em!important;line-height:1.4!important}
#app-shell .tab-panel table td{font-size:12px!important;color:#dce8ef!important}
#app-shell .tab-panel table td strong{color:#edf4f7!important;font-weight:650!important}
#app-shell .tab-panel table tbody tr{background:#0d1a23!important}
#app-shell .tab-panel table tbody tr:nth-child(even){background:#10212b!important}
#app-shell .tab-panel table tbody tr:hover{background:#182d38!important}
#app-shell .tab-panel table .jug-avatar{display:none!important}
#app-shell .tab-panel table .jug-cell{display:flex!important;width:100%!important;justify-content:flex-start!important;align-items:center!important;gap:0!important;margin:0!important;padding:0!important;text-align:left!important;min-width:135px!important}
#app-shell .tab-panel table .jug-txt{display:flex!important;flex-direction:column!important;align-items:flex-start!important;text-align:left!important;gap:3px!important;margin:0!important;padding:0!important}
#app-shell .tab-panel table .jug-txt .n{font-size:13px!important;font-weight:650!important;color:#edf4f7!important;line-height:1.3!important}
#app-shell .tab-panel table .jug-txt .d{font-size:10px!important;color:#8fa7b7!important;line-height:1.3!important}
#app-shell .tab-panel table :is(.text-muted,.isak-ref-note,.isak-sum-ref,small){color:#9eb5c4!important;line-height:1.5!important}
#app-shell .tab-panel table :is(.isak-delta.down,.fr-badge.good){color:#85dfb6!important}
#app-shell .tab-panel table .icon-delete-btn{background:#30212b!important;color:#efadb9!important;border:1px solid #573642!important;border-radius:8px!important}
#app-shell .tab-panel :is(.chart-container,.fr-chart,.isak-chart){border-radius:14px!important;border-color:#293f4b!important;background:#09161e!important}
#app-shell .tab-panel :is(.table-wrap,.fr-table-wrap){border:1px solid #293f4b!important;border-radius:12px!important;overflow-x:auto!important;max-width:100%!important}
/* Preserve mobile match cards introduced in v234. */
@media(max-width:700px){#app-shell #tab-partidos #partidos-tabla td{padding:0!important;border:0!important}#app-shell .tab-panel table :is(th,td){padding:12px!important}}
}
/* Source: css/inline-index-49.css */
@layer compatibility{#cloud-sync-status{background:#172c24;color:#d0efa6;border:1px solid #3e5943;border-radius:8px;padding:8px 10px;font-size:11px;min-height:36px}#cloud-sync-status[data-failed="true"]{color:#ffd394;border-color:#976430}}
/* Source: css/match-report-preview-v247.css */
@layer compatibility{#match-report-preview header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;border-bottom:1px solid #334653}#match-report-preview button{font:600 14px Arial,sans-serif;min-height:44px;padding:10px 16px;border:1px solid #526b48;border-radius:8px;background:#c8f36b;color:#101b15;cursor:pointer}#match-report-preview button:disabled{opacity:.6}#match-report-preview .report-preview-actions{padding:10px 16px}#match-report-preview p{font:12px/1.4 Arial,sans-serif;margin:8px 0 0;color:#c1d0db}#match-report-preview iframe{width:100%;flex:1;min-height:0;border:0;background:white}#match-report-preview header button{background:#192e3b;color:#eef5f8;border-color:#385363}
}
/* Source: css/weekly-report-v250.css */
@layer compatibility{#weekly-report-dialog{background:#10232e;color:#eff5f8;border:1px solid #405664;border-radius:16px;padding:24px;width:min(520px,94vw);max-height:90vh}#weekly-report-dialog::backdrop{background:#0009}#weekly-report-dialog h2{margin-top:0;color:#eff5f8}#weekly-report-dialog p{font-size:13px;color:#b8ccd7;line-height:1.5}#weekly-report-dialog label{display:block;margin:18px 0;font-size:13px}#weekly-report-dialog input,#weekly-report-dialog select{display:block;width:100%;padding:12px;margin-top:7px;background:#091a24;color:#eef5f8;border:1px solid #48606d;border-radius:8px;min-height:44px;color-scheme:dark}#weekly-report-dialog form>div{display:flex;gap:10px;justify-content:flex-end}#weekly-report-dialog button{padding:12px;border:1px solid #48606d;border-radius:8px;background:#183440;color:#eef5f8;min-height:44px}#weekly-report-dialog [data-generate]{background:#c8f36b;color:#102018;font-weight:700}
}
/* Source: css/plans-v268.css */
@layer compatibility{#landing#landing .plans268{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-top:32px}
#landing#landing .plan268{padding:30px;background:#1b1e21;border:1px solid #42484d;border-radius:8px;display:flex;flex-direction:column}
#landing#landing .plan268-senior{border-top:3px solid #c8e98a;padding-top:28px}
#landing#landing .plan268 header{min-height:112px}
#landing#landing .plan268-audience{font-size:12px;color:#c8e98a;font-weight:500}
#landing#landing .plan268 h3{font-size:27px!important;margin:10px 0 6px!important;letter-spacing:-.5px}
#landing#landing .plan268 header p{margin:0;font-size:14px;color:#bac1c6}
#landing#landing .plan268-price{display:flex;align-items:baseline;gap:10px;font-size:40px;line-height:1.2;font-weight:600;letter-spacing:-1px;margin:20px 0 24px;font-variant-numeric:tabular-nums}
#landing#landing .plan268-price span{font-size:14px;letter-spacing:0;font-weight:400;color:#bac1c6}
#landing#landing .plan268-cta{display:block;width:100%;min-height:46px;background:#272d31;border:1px solid #75818a;border-radius:5px;color:#f0f2f3;font:600 14px Inter,'Segoe UI',sans-serif;cursor:pointer}
#landing#landing .plan268-senior .plan268-cta{background:#c8e98a;color:#192111;border-color:#c8e98a}
#landing#landing .plan268-cta:hover{filter:brightness(1.1)}
#landing#landing .plan268-cta:focus-visible{outline:2px solid #f0f2f3;outline-offset:4px}
#landing#landing .plan268 dl{margin:24px 0 0;font-size:14px}
#landing#landing .plan268 dl>div{display:grid;grid-template-columns:90px 1fr;gap:16px;padding:13px 0;border-top:1px solid #373e44}
#landing#landing .plan268 dt{color:#bac1c6}
#landing#landing .plan268 dd{margin:0;text-align:right;line-height:1.45}
#landing#landing .plan268-extra{margin:14px 0 0;font-size:13px;color:#bac1c6;max-width:400px}
#landing#landing .plans268-included{display:flex;align-items:center;gap:28px;border-bottom:1px solid #373e44;padding:24px 0}
#landing#landing .plans268-included h3{font-size:14px!important;margin:0;white-space:nowrap}
#landing#landing .plans268-included ul{display:flex;flex-wrap:wrap;gap:12px 28px;list-style:none;padding:0;margin:0;font-size:13px;color:#bac1c6}
#landing#landing .plans268-included li::before{content:'✓';color:#c8e98a;margin-right:8px}
@media(max-width:700px){#landing#landing .plans268{grid-template-columns:1fr;gap:16px}#landing#landing .plan268{padding:24px}#landing#landing .plan268-senior{padding-top:22px}#landing#landing .plan268 header{min-height:0}#landing#landing .plans268-included{align-items:flex-start;flex-direction:column;gap:14px}#landing#landing .plans268-included ul{flex-direction:column;gap:8px}}
}
/* Source: css/data-v269.css */
@layer compatibility{/* Shared data surface. Match cards retain their compact mobile layout. */
html body #app-shell#app-shell#app-shell.product264 .tab-panel table{background:#191d21!important;color:#edf2f5!important;border-collapse:separate!important;border-spacing:0!important;line-height:1.5;font-variant-numeric:tabular-nums}
html body #app-shell#app-shell#app-shell.product264 .tab-panel table :is(th,td){border:0!important;border-bottom:1px solid #343d45!important;padding:14px 16px!important;vertical-align:middle!important;box-shadow:none!important}
html body #app-shell#app-shell#app-shell.product264 .tab-panel table th{background:#252d34!important;color:#cad5df!important;font-size:11px!important;font-weight:600!important;letter-spacing:.015em!important;text-transform:none!important;white-space:normal!important}
html body #app-shell#app-shell#app-shell.product264 .tab-panel table td{font-size:13px!important;color:#edf2f5!important}
html body #app-shell#app-shell#app-shell.product264 .tab-panel table tbody tr{background:#191d21!important}
html body #app-shell#app-shell#app-shell.product264 .tab-panel table tbody tr:nth-child(even){background:#1e2429!important}
html body #app-shell#app-shell#app-shell.product264 .tab-panel table tbody tr:is(:hover,:focus-within){background:#29343c!important}
html body #app-shell#app-shell#app-shell.product264 .tab-panel table td strong{color:#edf2f5!important;font-weight:600!important}
html body #app-shell#app-shell#app-shell.product264 .tab-panel table :is(small,.muted,.text-muted,.isak-ref-note,.isak-sum-ref){color:#b6c3cd!important;font-size:11px!important}
html body #app-shell#app-shell#app-shell.product264 .tab-panel table .jug-avatar{display:none!important}
html body #app-shell#app-shell#app-shell.product264 .tab-panel table .jug-cell{justify-content:flex-start!important;gap:0!important;text-align:left!important}
html body #app-shell#app-shell#app-shell.product264 .tab-panel table .jug-txt{align-items:flex-start!important;text-align:left!important}
html body #app-shell#app-shell#app-shell.product264 .tab-panel :is(.table-wrap,.fr-table-wrap){border:1px solid #424e58!important;border-top:2px solid #849daf!important;border-radius:6px!important;overflow-x:auto!important;max-width:100%!important;scrollbar-color:#607787 #191d21;scrollbar-width:thin}
html body #app-shell#app-shell#app-shell.product264 .tab-panel :is(.chart-container,.fr-chart,.isak-chart,.wellness-chart-panel){background:#191d21!important;background-image:none!important;border:1px solid #424e58!important;border-top:2px solid #849daf!important;border-radius:6px!important;padding:16px!important;box-shadow:none!important}
@media(max-width:700px){html body #app-shell#app-shell#app-shell.product264 .tab-panel table :is(th,td){padding:12px!important}html body #app-shell#app-shell#app-shell.product264 #tab-partidos #partidos-tabla td{padding:0!important;border:0!important}html body #app-shell#app-shell#app-shell.product264 .tab-panel :is(.chart-container,.fr-chart,.isak-chart,.wellness-chart-panel){padding:10px!important}}
}
/* Source: css/match-live-v271.css */
@layer compatibility{/* Full identity and focused live console, shared by desktop and mobile. */
html body #app-shell #tab-partidos #subtab-rotacion :is(.pm-pro-name,.pm-pro-bench-name,.live-player-name strong){white-space:normal!important;text-overflow:clip!important;overflow:visible!important;overflow-wrap:anywhere;line-height:1.2!important;min-width:0}
body :is(.pm-five-player,.pm-multi-player) strong{white-space:normal!important;text-overflow:clip!important;overflow:visible!important;overflow-wrap:anywhere}
html body #app-shell #tab-partidos #subtab-rotacion:not(.pm-finalized) :is(.pm-pro-side,#pm-minutes-card,#rotation-live257,.foul-trouble-panel){display:none!important}
html body #app-shell #tab-partidos #subtab-rotacion:not(.pm-finalized) .pm-pro-grid{grid-template-columns:minmax(0,1fr)!important}
#partido-detalle-card.match-running271 #subtab-resumen .match-fold270:has(#partido-tabla-resumen){display:none!important}
@media(min-width:701px){html body #app-shell #tab-partidos #subtab-rotacion:not(.pm-finalized) #pm-match-controls :is(#pm-clock-btn,.pm-control-top>div:first-child,button[onclick="pmOpenInitialFive()"]){display:none!important}}
@media(max-width:700px){html body #app-shell #tab-partidos #subtab-rotacion .live-player-name strong{font-size:12px!important;flex:1 1 0!important}html body #app-shell #tab-partidos #subtab-rotacion .pm-pro-bench-name{font-size:13px!important}}
}
/* Source: css/inline-index-55.css */
@media not all{@layer compatibility{
/* Reset & Variables */
:root {
  --l-primary: #3B82F6;
  --l-primary-deep: #1D4ED8;
  --l-navy: #0F172A;
  --l-text: #334155;
  --l-muted: #64748B;
  --l-border: #E2E8F0;
  --l-bg: #F8FAFC;
}

/* Landing Layout */
.landing-modern {
  scroll-behavior: smooth;
}

.tlm-logo { width: 34px; height: 34px; display:block; flex:0 0 auto; }
.value-strip { padding: 0 24px 80px; background:#fff; }
.value-strip-inner { max-width:1200px; margin:0 auto; display:grid; grid-template-columns:repeat(4,1fr); border:1px solid var(--l-border); border-radius:18px; background:#fff; box-shadow:0 12px 35px rgba(15,23,42,.06); overflow:hidden; }
.value-strip-inner > div { padding:22px 24px; border-right:1px solid var(--l-border); }
.value-strip-inner > div:last-child { border-right:0; }
.value-strip strong { display:block; color:var(--l-navy); font-size:15px; margin-bottom:5px; }
.value-strip span { color:var(--l-muted); font-size:12px; }
.staff-section { padding:100px 24px; background:linear-gradient(180deg,#f8fbff 0%,#eef5ff 100%); }
.staff-inner { max-width:1100px; margin:0 auto; display:grid; grid-template-columns:1.1fr .9fr; gap:70px; align-items:center; }
.staff-copy h2 { font-size:40px; line-height:1.12; color:var(--l-navy); margin:12px 0 18px; }
.staff-copy h2 span { color:var(--l-primary); }
.staff-copy > p { font-size:17px; line-height:1.7; color:var(--l-text); max-width:620px; }
.staff-points { margin-top:28px; display:flex; flex-direction:column; gap:10px; }
.staff-points > div { display:grid; grid-template-columns:44px 1fr auto; align-items:center; gap:14px; padding:13px 15px; background:#fff; border:1px solid var(--l-border); border-radius:12px; }
.staff-points b { color:var(--l-primary); font-size:12px; }
.staff-points span { color:var(--l-navy); font-weight:700; font-size:14px; }
.staff-points em { font-style:normal; color:var(--l-muted); font-size:12px; }
.staff-card { background:#fff; border:1px solid #dbe6f5; border-radius:20px; padding:24px; box-shadow:0 25px 60px rgba(30,64,175,.12); }
.staff-card-top { display:flex; align-items:center; gap:8px; color:var(--l-navy); font-size:12px; font-weight:700; padding-bottom:18px; border-bottom:1px solid var(--l-border); }
.status-dot { width:8px; height:8px; border-radius:50%; background:#22c55e; box-shadow:0 0 0 4px #dcfce7; }
.readonly { margin-left:auto; font-size:9px; letter-spacing:.08em; padding:5px 8px; border-radius:999px; background:#eff6ff; color:var(--l-primary-deep); }
.staff-card-row { display:flex; justify-content:space-between; align-items:center; padding:18px 4px; border-bottom:1px solid #f1f5f9; font-size:13px; }
.staff-card-row strong { color:var(--l-text); }
.staff-card-row span { color:var(--l-primary-deep); font-weight:800; }
.staff-card-foot { margin-top:16px; padding:12px; border-radius:10px; background:#f8fafc; color:var(--l-muted); font-size:11px; line-height:1.5; }

/* Nav */
.landing-nav-v2 {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  z-index: 1000;
  border-bottom: 1px solid var(--l-border);
}
.ln-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ln-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  color: var(--l-navy);
  font-size: 18px;
}
.brand-mark-v2 {
  background: var(--l-primary);
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
}
.ln-links {
  display: flex;
  gap: 32px;
}
.ln-links a {
  text-decoration: none;
  color: var(--l-text);
  font-weight: 500;
  font-size: 14px;
  transition: color 0.2s;
}
.ln-links a:hover { color: var(--l-primary); }
.ln-actions { display: flex; gap: 12px; }

/* Hero */
.hero-v2 { padding: 100px 24px; background: radial-gradient(circle at top right, #eff6ff 0%, #ffffff 50%); }
.hero-v2-container { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: center; }
.hero-badge { display: inline-block; padding: 6px 12px; background: #dbeafe; color: #1e40af; border-radius: 99px; font-size: 11px; font-weight: 800; letter-spacing: 0.1em; margin-bottom: 20px; }
.hero-v2-content h1 { font-size: 52px; line-height: 1.1; margin-bottom: 24px; color: var(--l-navy); }
.hero-v2-content h1 span { color: var(--l-primary); }
.hero-v2-content p { font-size: 18px; color: var(--l-text); margin-bottom: 32px; max-width: 500px; }
.hero-ctas { display: flex; gap: 16px; margin-bottom: 32px; }
.hero-trust { display: flex; gap: 24px; font-size: 13px; color: var(--l-muted); font-weight: 500; }
.btn-lg { padding: 14px 28px; font-size: 16px; }

/* Visual Mockup */
.mockup-frame { background: white; border-radius: 12px; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.15); border: 1px solid var(--l-border); overflow: hidden; }
.mockup-header { background: #f1f5f9; padding: 8px 16px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--l-border); }
.mockup-dots { display: flex; gap: 4px; }
.mockup-dots span { width: 8px; height: 8px; border-radius: 50%; background: #cbd5e1; }
.mockup-search { background: white; flex: 1; border-radius: 4px; font-size: 10px; padding: 4px 8px; color: #94a3b8; }
.mockup-body { display: grid; grid-template-columns: 40px 1fr; height: 300px; }
.mockup-sidebar { background: #1e293b; }
.mockup-main { padding: 16px; }
.mockup-stats { display: flex; gap: 8px; margin-bottom: 16px; }
.mockup-title { display:flex; justify-content:space-between; align-items:center; margin-bottom:12px; color:var(--l-navy); font-size:11px; }
.mockup-title span { color:#94a3b8; font-size:9px; }
.m-stat { flex:1; min-height:58px; background:#f8fafc; border:1px solid #eef2f7; border-radius:8px; padding:8px; display:flex; flex-direction:column; gap:2px; }
.m-stat small { color:#94a3b8; font-size:8px; }
.m-stat b { color:var(--l-navy); font-size:12px; }
.m-stat i { color:#16a34a; font-style:normal; font-size:8px; font-weight:700; }
.mockup-chart { position:relative; height:100px; background:linear-gradient(180deg,#eff6ff,#fff); border:1px solid #e0edff; border-radius:8px; margin-bottom:16px; overflow:hidden; }
.mockup-chart:before,.mockup-chart:after { content:""; position:absolute; left:0; right:0; border-top:1px dashed #dbeafe; }
.mockup-chart:before { top:34%; } .mockup-chart:after { top:67%; }
.chart-line { position:absolute; left:4%; right:4%; height:2px; transform-origin:left center; background:var(--l-primary); border-radius:4px; }
.chart-line.c1 { top:58%; transform:rotate(-7deg); }
.chart-line.c2 { top:72%; transform:rotate(-15deg); opacity:.28; }
.chart-axis { position:absolute; left:4%; right:4%; bottom:10px; border-top:1px solid #cbd5e1; }
.m-item { min-height:24px; background:#f8fafc; border-bottom:1px solid #f1f5f9; margin-bottom:5px; padding:5px 8px; display:flex; justify-content:space-between; align-items:center; font-size:9px; color:#475569; border-radius:5px; }
.m-item b { color:#16a34a; font-size:8px; }

/* Showcase */
.showcase-section { padding: 100px 24px; max-width: 1200px; margin: 0 auto; }
.section-head { text-align: center; margin-bottom: 60px; }
.section-head h2 { font-size: 36px; margin-bottom: 16px; }
.section-head p { color: var(--l-muted); font-size: 18px; }
.showcase-grid { display: flex; flex-direction: column; gap: 80px; }
.showcase-item { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.showcase-item.reverse { direction: rtl; }
.showcase-item.reverse .showcase-text { direction: ltr; }
.showcase-img-wrap { background: #f8fafc; border-radius: 20px; padding: 40px; border: 1px solid var(--l-border); }
.mini-app-mockup { background: white; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); border: 1px solid var(--l-border); padding: 16px; }
.mam-head { font-size: 11px; font-weight: 700; color: var(--l-muted); margin-bottom: 12px; text-transform: uppercase; }
.mam-kpis { display: flex; gap: 12px; margin-bottom: 16px; }
.mam-kpi { flex: 1; background: var(--l-bg); padding: 10px; border-radius: 8px; }
.mam-kpi span { font-size: 10px; color: var(--l-muted); display: block; }
.mam-kpi strong { font-size: 16px; color: var(--l-navy); }
.mam-chart-bars { display: flex; align-items: flex-end; gap: 6px; height: 60px; }
.mam-chart-bars div { flex: 1; background: #3b82f6; border-radius: 2px 2px 0 0; }
.mam-li { display: flex; justify-content: space-between; padding: 10px; border-bottom: 1px solid #f1f5f9; font-size: 12px; }
.mam-li.red strong { color: #ef4444; }
.mam-li.green strong { color: #10b981; }
.mam-li.yellow strong { color: #f59e0b; }
.showcase-text h3 { font-size: 28px; margin-bottom: 16px; }
.showcase-text p { font-size: 16px; color: var(--l-text); }

/* Features */
.features-v2 { background: var(--l-navy); color: white; padding: 100px 24px; }
.features-v2-container { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.feature-card-v2 { background: rgba(255,255,255,0.05); padding: 32px; border-radius: 16px; border: 1px solid rgba(255,255,255,0.1); transition: transform 0.2s; }
.feature-card-v2:hover { transform: translateY(-5px); background: rgba(255,255,255,0.08); }
.f-icon { width: 48px; height: 48px; background: var(--l-primary); color: white; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 24px; }
.f-icon svg { width: 24px; height: 24px; }
.feature-card-v2 h4 { font-size: 20px; color: white; margin-bottom: 12px; }
.feature-card-v2 p { color: rgba(255,255,255,0.7); font-size: 14px; }

/* Pricing */
.pricing-v2 { padding: 100px 24px; max-width: 1200px; margin: 0 auto; }
.pricing-v2-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; max-width: 900px; margin: 0 auto; }
.p-card-v2 { background: white; border: 1px solid var(--l-border); border-radius: 20px; padding: 40px; box-shadow: 0 4px 20px rgba(0,0,0,0.03); display: flex; flex-direction: column; }
.p-card-v2.recommended { border: 3px solid var(--l-primary); position: relative; }
.p-badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--l-primary); color: white; padding: 4px 16px; border-radius: 99px; font-size: 11px; font-weight: 800; }
.p-name { font-weight: 800; font-size: 14px; color: var(--l-muted); letter-spacing: 0.1em; margin-bottom: 12px; }
.p-price { font-size: 48px; font-weight: 800; color: var(--l-navy); margin-bottom: 12px; }
.p-price span { font-size: 18px; color: var(--l-muted); font-weight: 500; }
.p-desc { font-size: 14px; color: var(--l-text); margin-bottom: 24px; min-height: 44px; }
.p-features { list-style: none; padding: 0; margin: 0 0 32px 0; flex: 1; }
.p-features li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--l-text); margin-bottom: 12px; }
.p-features li::before { content: "✓"; color: #10b981; font-weight: 800; }
.comparison-v2 { margin-top: 40px; overflow-x: auto; }
.comparison-v2 table { width: 100%; border-collapse: collapse; min-width: 600px; }
.comparison-v2 th, .comparison-v2 td { padding: 16px; border-bottom: 1px solid var(--l-border); text-align: center; }
.comparison-v2 th:first-child, .comparison-v2 td:first-child { text-align: left; }

/* FAQ */
.faq-v2 { padding: 100px 24px; max-width: 800px; margin: 0 auto; }
.faq-v2-list { display: flex; flex-direction: column; gap: 12px; }
.faq-v2-item { border: 1px solid var(--l-border); border-radius: 12px; overflow: hidden; }
.faq-v2-q { width: 100%; padding: 20px; display: flex; justify-content: space-between; align-items: center; background: white; border: none; font-weight: 700; color: var(--l-navy); text-align: left; cursor: pointer; }
.faq-v2-q svg { transition: transform 0.3s; }
.faq-v2-item.open .faq-v2-q svg { transform: rotate(180deg); }
.faq-v2-a { padding: 0 20px 20px; color: var(--l-text); font-size: 14px; display: none; }
.faq-v2-item.open .faq-v2-a { display: block; }

/* Footer */
.footer-v2 { background: #f8fafc; border-top: 1px solid var(--l-border); padding: 80px 24px 40px; }
.footer-v2-container { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.f-brand p { margin-top: 16px; color: var(--l-muted); max-width: 300px; font-size: 14px; }
.f-col h5 { font-size: 14px; font-weight: 800; color: var(--l-navy); margin-bottom: 20px; text-transform: uppercase; letter-spacing: 0.05em; }
.f-col a { display: block; margin-bottom: 12px; color: var(--l-text); text-decoration: none; font-size: 14px; }
.f-col a:hover { color: var(--l-primary); }
.footer-v2-bottom { border-top: 1px solid var(--l-border); margin-top: 60px; padding-top: 40px; text-align: center; color: var(--l-muted); font-size: 13px; }

/* Demo Mode UI */
.demo-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--l-primary);
  color: white;
  text-align: center;
  padding: 8px;
  z-index: 10000;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
}
.demo-banner button {
  background: white;
  color: var(--l-primary);
  border: none;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

body.demo-mode .demo-readonly-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 9999;
  cursor: not-allowed;
}

body.demo-mode input, 
body.demo-mode select, 
body.demo-mode textarea,
body.demo-mode button:not(.nav-main):not(.subtab):not(.ln-brand):not(.ln-mobile-toggle):not(.btn-exit-demo):not(.modal-close):not(.profile-trigger):not(.profile-language-button) {
  pointer-events: none;
  opacity: 0.7;
}

body.demo-mode .app-header button:not(.profile-trigger),
body.demo-mode .panel-header button,
body.demo-mode .card-title button,
body.demo-mode .btn-primary:not(.nav-main) {
  pointer-events: none;
  opacity: 0.5;
  filter: grayscale(1);
}

/* Responsive fixes */
@media (max-width: 992px) {
  .hero-v2-container { grid-template-columns: 1fr; text-align: center; }
  .hero-v2-content p { margin-left: auto; margin-right: auto; }
  .hero-ctas { justify-content: center; }
  .hero-trust { justify-content: center; }
  .showcase-item { grid-template-columns: 1fr; gap: 40px; }
  .showcase-item.reverse { direction: ltr; }
  .features-v2-container { grid-template-columns: 1fr 1fr; }
  .footer-v2-container { grid-template-columns: 1fr 1fr; }
  .value-strip-inner { grid-template-columns:1fr 1fr; }
  .value-strip-inner > div:nth-child(2) { border-right:0; }
  .value-strip-inner > div:nth-child(-n+2) { border-bottom:1px solid var(--l-border); }
  .staff-inner { grid-template-columns:1fr; gap:40px; }
}

@media (max-width: 768px) {
  .ln-links { display: none; }
  .ln-actions { display: none; }
  .ln-mobile-toggle { display: block; border: none; background: transparent; cursor: pointer; color: var(--l-navy); }
  .features-v2-container { grid-template-columns: 1fr; }
  .pricing-v2-grid { grid-template-columns: 1fr; }
  .hero-v2-content h1 { font-size: 40px; }
  .value-strip-inner { grid-template-columns:1fr; }
  .value-strip-inner > div { border-right:0; border-bottom:1px solid var(--l-border); }
  .value-strip-inner > div:last-child { border-bottom:0; }
  .staff-copy h2 { font-size:32px; }
  .hero-trust { flex-direction:column; gap:8px; }
  .mobile-open .ln-links { display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0; background: white; padding: 24px; gap: 16px; box-shadow: 0 10px 15px rgba(0,0,0,0.1); }
  .mobile-open .ln-actions { display: flex; flex-direction: column; padding: 0 24px 24px; background: white; }
}
}}
/* Source: css/legacy-12.css */
@layer compatibility{
      .fr-hero{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;margin-bottom:18px}
      .fr-title{font-size:28px;font-weight:800;letter-spacing:-.03em;margin:0 0 6px;color:var(--text)}
      .fr-subtitle{margin:0;color:var(--muted);max-width:760px;line-height:1.5;font-size:13px}
      .fr-actions{display:flex;gap:8px;flex-wrap:wrap}
      .fr-select{min-width:240px;padding:10px 12px;border:1px solid var(--border);border-radius:10px;background:var(--surface);color:var(--text);font-weight:650}
      .fr-kpis{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:16px 0}
      .fr-kpi{background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:14px 15px;min-height:92px;box-shadow:0 4px 16px rgba(15,23,42,.04)}
      .fr-kpi-label{font-size:10px;text-transform:uppercase;letter-spacing:.07em;color:var(--muted);font-weight:800;margin-bottom:8px}
      .fr-kpi-value{font-size:24px;font-weight:850;letter-spacing:-.03em;color:var(--text);line-height:1}
      .fr-kpi-sub{font-size:11px;color:var(--muted);margin-top:7px;line-height:1.35}
      .fr-kpi[data-tone="good"] .fr-kpi-value{color:#059669}.fr-kpi[data-tone="warn"] .fr-kpi-value{color:#d97706}.fr-kpi[data-tone="danger"] .fr-kpi-value{color:#dc2626}.fr-kpi[data-tone="info"] .fr-kpi-value{color:#4f46e5}
      .fr-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(300px,.85fr);gap:14px}
      .fr-card{background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:16px;box-shadow:0 4px 16px rgba(15,23,42,.035)}
      .fr-card-title{font-weight:800;font-size:14px;margin-bottom:5px}.fr-card-sub{font-size:11px;color:var(--muted);line-height:1.45;margin-bottom:12px}
      .fr-chart{height:340px;position:relative}
      .fr-signal{border:1px solid var(--border);border-radius:12px;padding:13px;margin-top:10px;background:var(--surface-2,var(--surface))}
      .fr-signal-head{display:flex;align-items:center;gap:9px;font-weight:800;font-size:13px}.fr-dot{width:9px;height:9px;border-radius:50%;background:#10b981;flex:0 0 auto}.fr-dot.warn{background:#f59e0b}.fr-dot.danger{background:#dc2626}.fr-dot.info{background:#6366f1}
      .fr-signal-text{font-size:12px;line-height:1.5;color:var(--muted);margin-top:7px}
      .fr-legend{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;margin-top:12px}.fr-legend-item{font-size:11px;color:var(--muted);padding:9px 10px;border-radius:9px;background:var(--surface-2,var(--surface));border:1px solid var(--border)}.fr-legend-item strong{display:block;color:var(--text);margin-bottom:2px}
      .fr-table-wrap{overflow:auto}.fr-table{width:100%;border-collapse:collapse;font-size:11px}.fr-table th{font-size:9px;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);text-align:left;padding:9px 8px;border-bottom:1px solid var(--border);white-space:nowrap}.fr-table td{padding:10px 8px;border-bottom:1px solid var(--border);white-space:nowrap}.fr-table tr:last-child td{border-bottom:0}.fr-badge{display:inline-flex;align-items:center;gap:5px;border-radius:999px;padding:4px 8px;font-size:10px;font-weight:800}.fr-badge.good{background:rgba(16,185,129,.10);color:#059669}.fr-badge.warn{background:rgba(245,158,11,.12);color:#b45309}.fr-badge.danger{background:rgba(239,68,68,.10);color:#dc2626}.fr-badge.info{background:rgba(99,102,241,.10);color:#4f46e5}.fr-empty{padding:28px 10px;text-align:center;color:var(--muted);font-size:12px}
      @media(max-width:1050px){.fr-kpis{grid-template-columns:repeat(3,1fr)}.fr-grid{grid-template-columns:1fr}}
      @media(max-width:650px){.fr-hero{flex-direction:column}.fr-kpis{grid-template-columns:repeat(2,1fr)}.fr-select{width:100%;min-width:0}.fr-chart{height:300px}}
    }
/* Source: css/legacy-13.css */
@layer compatibility{
.pm-pro-wrap{max-width:1180px;margin:0 auto;padding:4px 0 28px;color:var(--text)}
.pm-pro-header{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:18px;padding:18px 20px;background:linear-gradient(135deg,rgba(15,23,42,.98),rgba(30,41,59,.98));border:1px solid rgba(148,163,184,.16);border-radius:18px;color:#fff;box-shadow:0 12px 30px rgba(15,23,42,.12)}
.pm-pro-team{font-size:12px;opacity:.72;text-transform:uppercase;letter-spacing:.08em;font-weight:800}.pm-pro-team.right{text-align:right}.pm-pro-score{font-size:32px;font-weight:900;letter-spacing:.02em;white-space:nowrap}.pm-pro-score span{opacity:.45;margin:0 6px}.pm-pro-status{font-size:11px;margin-top:3px;opacity:.65}.pm-pro-center{text-align:center}.pm-pro-quarter-label{font-size:11px;font-weight:900;letter-spacing:.12em;color:#c4b5fd}.pm-pro-header-fouls{font-size:11px;opacity:.7;margin-top:5px}
.pm-pro-instruction{display:flex;align-items:center;gap:12px;padding:12px 14px;margin:12px 0;border:1px solid var(--border);background:var(--card);border-radius:12px;font-size:12px}.pm-pro-instruction-icon{width:30px;height:30px;display:grid;place-items:center;border-radius:9px;background:rgba(109,82,255,.1);color:var(--primary);font-size:17px;font-weight:900}.pm-pro-instruction strong{display:block}.pm-pro-instruction span{color:var(--muted);margin-left:4px}
.pm-pro-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:10px 0 16px}.pm-pro-quarter{display:flex;gap:5px}.pm-quarter-chip{border:1px solid var(--border);background:var(--card);color:var(--text-soft);border-radius:9px;padding:8px 12px;font-weight:800;font-size:11px;cursor:pointer}.pm-quarter-chip.active{background:var(--primary);color:#fff;border-color:var(--primary)}.pm-pro-toolbar-actions{display:flex;align-items:center;gap:7px}.pm-pro-clock{font-variant-numeric:tabular-nums;font-weight:900;font-size:17px;padding:7px 10px;background:var(--card);border:1px solid var(--border);border-radius:9px}.pm-pro-btn{border:1px solid var(--border);background:var(--card);color:var(--text);border-radius:9px;padding:8px 11px;font-weight:800;font-size:11px;cursor:pointer}.pm-pro-btn:hover{border-color:var(--primary);color:var(--primary)}.pm-pro-btn-live{background:var(--primary);border-color:var(--primary);color:#fff}.pm-pro-btn-live:hover{color:#fff;filter:brightness(1.05)}
.pm-pro-grid{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:16px}.pm-pro-main{min-width:0}.pm-pro-side{display:flex;flex-direction:column;gap:12px}.pm-pro-side-card{background:var(--card);border:1px solid var(--border);border-radius:14px;padding:14px}.pm-pro-side-title{font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.07em;color:var(--muted);margin-bottom:11px}.pm-pro-side-title span{float:right;color:var(--text)}
.pm-pro-section-head{display:flex;justify-content:space-between;align-items:end;gap:10px;margin:2px 0 9px}.pm-pro-section-head h3{font-size:18px;margin:2px 0 0}.pm-pro-kicker{font-size:9px;letter-spacing:.11em;font-weight:900;color:var(--muted)}.pm-pro-selection{font-size:11px;color:var(--muted);text-align:right}.pm-pro-selection.selected{color:var(--primary);font-weight:800}.pm-pro-court{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin-bottom:22px}.pm-pro-player{position:relative;border:1px solid var(--border);background:var(--card);border-radius:13px;padding:12px 9px;min-height:106px;cursor:pointer;transition:.16s ease;box-shadow:0 2px 6px rgba(15,23,42,.03)}.pm-pro-player:hover{transform:translateY(-1px);border-color:var(--primary)}.pm-pro-player.selected{border-color:var(--primary);box-shadow:0 0 0 2px rgba(109,82,255,.14);background:rgba(109,82,255,.06)}.pm-pro-player.foul-warn{border-top:3px solid #f59e0b}.pm-pro-player.foul-out{border-top:3px solid #dc2626;opacity:.72}.pm-pro-dorsal{width:30px;height:30px;border-radius:9px;background:rgba(109,82,255,.1);color:var(--primary);display:grid;place-items:center;font-weight:900;font-size:12px;margin-bottom:7px}.pm-pro-name{font-weight:900;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pm-pro-meta{display:flex;gap:5px;flex-wrap:wrap;color:var(--muted);font-size:9px;margin-top:4px}.pm-pro-tag{padding:2px 5px;border-radius:5px;background:rgba(100,116,139,.08)}.pm-pro-min{font-weight:900;color:var(--primary)}.pm-pro-select-badge{position:absolute;right:7px;top:7px;font-size:8px;font-weight:900;color:var(--primary);text-transform:uppercase;letter-spacing:.05em}
.pm-pro-bench-head{margin-top:4px}.pm-pro-filters{display:flex;gap:4px;flex-wrap:wrap;justify-content:flex-end}.pm-filter{border:1px solid var(--border);background:transparent;color:var(--muted);border-radius:7px;padding:5px 8px;font-size:9px;font-weight:800;cursor:pointer}.pm-filter.active{background:var(--text);border-color:var(--text);color:var(--card)}.pm-pro-bench{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-bottom:12px}.pm-pro-bench-card{display:flex;align-items:center;gap:8px;border:1px solid var(--border);background:var(--card);border-radius:11px;padding:8px 9px;cursor:pointer;transition:.14s}.pm-pro-bench-card:hover{border-color:var(--primary);transform:translateY(-1px)}.pm-pro-bench-card.disabled{opacity:.45;cursor:not-allowed}.pm-pro-bench-card.recommended{border-color:rgba(16,185,129,.55);background:rgba(16,185,129,.05)}.pm-pro-bench-dorsal{width:27px;height:27px;display:grid;place-items:center;border-radius:8px;background:rgba(100,116,139,.08);font-size:10px;font-weight:900;flex:0 0 auto}.pm-pro-bench-info{min-width:0;flex:1}.pm-pro-bench-name{font-size:11px;font-weight:900;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pm-pro-bench-meta{font-size:9px;color:var(--muted);margin-top:2px}.pm-pro-enter{font-size:15px;font-weight:900;color:var(--primary)}
.pm-pro-mini-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px}.pm-pro-mini{padding:9px;background:rgba(100,116,139,.05);border-radius:9px}.pm-pro-mini-value{font-size:17px;font-weight:900}.pm-pro-mini-label{font-size:9px;color:var(--muted);margin-top:2px}.pm-pro-tip p{margin:0;color:var(--muted);font-size:11px;line-height:1.5}.pm-pro-crono-empty{font-size:11px;color:var(--muted);padding:6px 0}.pm-pro-crono-item{display:grid;grid-template-columns:42px 1fr auto;gap:7px;align-items:center;padding:8px 0;border-bottom:1px solid var(--border);font-size:10px}.pm-pro-crono-item:last-child{border-bottom:0}.pm-pro-crono-time{font-weight:900;color:var(--primary)}.pm-pro-crono-text{line-height:1.3}.pm-pro-crono-text .sale{color:#dc2626;font-weight:800}.pm-pro-crono-text .entra{color:#059669;font-weight:800}.pm-pro-crono-x{border:0;background:transparent;color:var(--muted);cursor:pointer;font-size:15px;padding:2px}.pm-pro-crono-x:hover{color:#dc2626}
@media(max-width:900px){.pm-pro-grid{grid-template-columns:1fr}.pm-pro-side{display:grid;grid-template-columns:1fr 1fr}.pm-pro-court{grid-template-columns:repeat(5,minmax(90px,1fr));overflow-x:auto;padding-bottom:3px}.pm-pro-bench{grid-template-columns:repeat(2,minmax(0,1fr))}.pm-pro-side-card:last-child{grid-column:1/-1}}
@media(max-width:640px){.pm-pro-header{grid-template-columns:1fr auto;gap:8px}.pm-pro-team.right{display:none}.pm-pro-score{font-size:25px}.pm-pro-toolbar{align-items:stretch;flex-direction:column}.pm-pro-toolbar-actions{justify-content:space-between}.pm-pro-quarter{width:100%;overflow-x:auto}.pm-quarter-chip{flex:1}.pm-pro-section-head{align-items:flex-start;flex-direction:column}.pm-pro-filters{justify-content:flex-start}.pm-pro-bench{grid-template-columns:1fr}.pm-pro-side{display:flex}.pm-pro-instruction span{display:block;margin:3px 0 0}}
}
/* Source: css/matches-14.css */
@layer compatibility{
/* V12 — motor unificado de rotación + Live */
.rot-v12-note{display:flex;gap:10px;align-items:center;padding:10px 12px;border:1px solid var(--border);background:var(--card-alt);border-radius:10px;margin:10px 0;font-size:11px;color:var(--muted)}
.rot-v12-note strong{color:var(--text)}
.live-v12-grid{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:14px;margin-top:12px}
.live-v12-court,.live-v12-bench,.live-v12-log{background:var(--card);border:1px solid var(--border);border-radius:14px;padding:14px}
.live-v12-title{font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);margin-bottom:10px}
.live-v12-players{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
.live-v12-player{border:1px solid var(--border);background:var(--card);border-radius:12px;padding:10px;cursor:pointer;text-align:left;min-height:94px;transition:.15s}
.live-v12-player:hover{border-color:var(--primary);transform:translateY(-1px)}
.live-v12-player.out{border-color:var(--primary);box-shadow:0 0 0 2px rgba(109,82,255,.12);background:rgba(109,82,255,.06)}
.live-v12-player.foul{border-top:3px solid #f59e0b}.live-v12-player.fouledout{opacity:.45;border-top:3px solid #dc2626;cursor:not-allowed}
.live-v12-dorsal{font-weight:900;color:var(--primary);font-size:12px}.live-v12-name{font-weight:900;font-size:12px;margin-top:5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.live-v12-meta{font-size:9px;color:var(--muted);margin-top:4px}.live-v12-min{font-size:12px;font-weight:900;color:var(--text);margin-top:8px}
.live-v12-bench-list{display:grid;grid-template-columns:1fr 1fr;gap:7px}.live-v12-bench{display:flex;align-items:center;gap:8px;border:1px solid var(--border);background:var(--card);border-radius:10px;padding:8px;cursor:pointer}.live-v12-bench:hover{border-color:var(--primary)}.live-v12-bench.selected{border-color:#10b981;background:rgba(16,185,129,.06)}.live-v12-bench.disabled{opacity:.4;pointer-events:none}
.live-v12-clockbar{display:flex;align-items:center;justify-content:center;gap:12px;margin-top:12px}.live-v12-clock{font-size:30px;font-weight:950;font-variant-numeric:tabular-nums}.live-v12-score{font-size:28px;font-weight:950}.live-v12-q{font-size:11px;font-weight:900;color:#c4b5fd;text-transform:uppercase}
.live-v12-actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:center;margin-top:8px}.live-v12-actions button{border:1px solid var(--border);background:var(--card);border-radius:8px;padding:7px 10px;font-weight:800;font-size:10px;cursor:pointer}.live-v12-actions button.primary{background:var(--primary);color:#fff;border-color:var(--primary)}
.live-v12-side-card{background:var(--card);border:1px solid var(--border);border-radius:14px;padding:14px}.live-v12-statgrid{display:grid;grid-template-columns:1fr 1fr;gap:7px}.live-v12-stat{padding:9px;background:var(--card-alt);border-radius:9px}.live-v12-stat strong{font-size:18px}.live-v12-stat span{display:block;font-size:9px;color:var(--muted);margin-top:2px}.live-v12-event{display:grid;grid-template-columns:42px 1fr;gap:7px;padding:7px 0;border-bottom:1px solid var(--border);font-size:10px}.live-v12-event:last-child{border-bottom:0}.live-v12-event time{font-weight:900;color:var(--primary)}
.pm-v12-current{border:1px solid rgba(16,185,129,.35);background:rgba(16,185,129,.05);border-radius:12px;padding:10px;margin:12px 0}.pm-v12-current-title{font-size:10px;text-transform:uppercase;letter-spacing:.08em;font-weight:900;color:#059669}.pm-v12-current-list{display:flex;flex-wrap:wrap;gap:6px;margin-top:7px}.pm-v12-chip{padding:6px 8px;border-radius:8px;background:var(--card);border:1px solid var(--border);font-size:10px;font-weight:800}.pm-v12-chip strong{color:var(--primary)}
.pm-minutes-card{margin-top:12px;background:var(--card);border:1px solid var(--border);border-radius:14px;padding:14px}.pm-minutes-head{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}.pm-minutes-title{font-size:14px;font-weight:900}.pm-minutes-sub{font-size:10px;color:var(--muted);margin-top:3px}.pm-minutes-live{font-size:10px;font-weight:800;color:#059669}.pm-minutes-table-wrap{overflow:auto;margin-top:10px}.pm-minutes-table{width:100%;border-collapse:collapse;font-size:10px}.pm-minutes-table th,.pm-minutes-table td{padding:8px 7px;border-bottom:1px solid var(--border);text-align:center;white-space:nowrap}.pm-minutes-table th:first-child,.pm-minutes-table td:first-child{text-align:left}.pm-minutes-player span{display:block;color:var(--muted);font-size:9px;margin-top:2px}.pm-min-cell.active{background:rgba(109,82,255,.06);font-weight:900}.pm-min-total{font-weight:950;color:var(--primary)}.pm-min-expand{border:1px solid var(--border);background:var(--card);border-radius:7px;padding:4px 7px;font-size:9px;cursor:pointer}.pm-stint-list{display:none;padding:7px 0 9px 12px}.pm-stint-list.open{display:block}.pm-stint-row{display:grid;grid-template-columns:34px 1fr 52px;gap:7px;padding:4px 0;font-size:9px;border-bottom:1px dashed var(--border)}.pm-stint-q{font-weight:900;color:var(--primary)}.pm-stint-current{color:#059669;font-weight:900}.pm-stint-duration{font-weight:900;text-align:right}
@media(max-width:900px){.live-v12-grid{grid-template-columns:1fr}.live-v12-players{grid-template-columns:repeat(3,minmax(0,1fr))}.live-v12-bench-list{grid-template-columns:1fr 1fr}}
@media(max-width:600px){.live-v12-players{grid-template-columns:repeat(2,minmax(0,1fr))}.live-v12-clock{font-size:25px}.live-v12-score{font-size:23px}}
}
/* Source: css/matches-15.css */
@layer compatibility{
.pm-match-controls{margin-top:14px;border:1px solid var(--border);border-radius:15px;background:var(--card);padding:14px}.pm-control-top{display:flex;justify-content:space-between;align-items:center;gap:12px}.pm-control-kicker{font-size:9px;letter-spacing:.12em;font-weight:900;color:var(--muted)}.pm-control-clock{font-size:30px;font-weight:950;font-variant-numeric:tabular-nums;line-height:1.05;margin-top:3px}.pm-control-quarter{font-size:10px;color:var(--primary);font-weight:900;margin-top:3px}.pm-control-actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}.pm-control-btn{border:1px solid var(--border);background:var(--card);color:var(--text);border-radius:9px;padding:8px 10px;font-size:10px;font-weight:850;cursor:pointer}.pm-control-btn.primary{background:var(--primary);border-color:var(--primary);color:#fff}.pm-fouls-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}.pm-foul-team{border:1px solid rgba(16,185,129,.22);background:rgba(16,185,129,.05);border-radius:11px;padding:9px;display:flex;justify-content:space-between;align-items:center;gap:8px}.pm-foul-team.rival{border-color:rgba(239,68,68,.2);background:rgba(239,68,68,.04)}.pm-foul-team span{font-size:9px;font-weight:850;color:var(--muted);text-transform:uppercase;letter-spacing:.04em}.pm-foul-team div{display:flex;align-items:center;gap:7px}.pm-foul-team button,.pm-player-foul button{width:25px;height:25px;border:1px solid var(--border);background:var(--card);border-radius:7px;font-weight:900;cursor:pointer}.pm-foul-team strong{font-size:16px;min-width:18px;text-align:center}.pm-player-fouls{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px;margin-top:10px}.pm-player-foul{border:1px solid var(--border);border-radius:10px;padding:8px;background:var(--surface,#f8fafc);min-width:0}.pm-player-foul.active{border-color:rgba(16,185,129,.35);background:rgba(16,185,129,.05)}.pm-player-foul .pf-name{font-size:10px;font-weight:900;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pm-player-foul .pf-meta{font-size:9px;color:var(--muted);margin-top:2px}.pm-player-foul .pf-actions{display:flex;align-items:center;justify-content:space-between;margin-top:6px}.pm-player-foul .pf-actions strong{font-size:13px}.pm-player-foul.warn{border-color:rgba(245,158,11,.5)}.pm-player-foul.danger{border-color:rgba(239,68,68,.55)}
@media(max-width:800px){.pm-control-top{flex-direction:column;align-items:flex-start}.pm-control-actions{justify-content:flex-start}.pm-player-fouls{grid-template-columns:repeat(3,minmax(0,1fr))}.pm-fouls-grid{grid-template-columns:1fr}}
@media(max-width:520px){.pm-player-fouls{grid-template-columns:repeat(2,minmax(0,1fr))}}
}
/* Source: css/matches-16.css */
@layer compatibility{
/* V71 — Mesa de partido: prioridad a reloj, quinteto y sustitución en dos toques. */
#subtab-rotacion .pm-pro-wrap{max-width:1320px;padding:8px 4px 32px}
#subtab-rotacion .pm-pro-header{position:sticky;top:0;z-index:20;grid-template-columns:minmax(180px,1fr) auto minmax(180px,1fr);padding:12px 18px;border-radius:14px;background:linear-gradient(115deg,#101827,#1c2a45);box-shadow:0 8px 24px rgba(15,23,42,.24)}
#subtab-rotacion .pm-pro-score{font-size:42px;line-height:1;letter-spacing:.04em}
#subtab-rotacion .pm-pro-quarter-label{font-size:12px;color:#a5b4fc}
#subtab-rotacion .pm-pro-status{font-size:10px;color:#cbd5e1}
#subtab-rotacion .pm-pro-toolbar{position:sticky;top:82px;z-index:19;padding:9px 12px;margin:10px 0 14px;border:1px solid var(--border);border-radius:12px;background:color-mix(in srgb,var(--card) 94%,transparent);backdrop-filter:blur(10px);box-shadow:0 4px 14px rgba(15,23,42,.08)}
#subtab-rotacion .pm-pro-clock{min-width:88px;text-align:center;font-size:22px;color:#0f172a;background:#f8fafc;border-color:#cbd5e1}
#subtab-rotacion .pm-quarter-chip,#subtab-rotacion .pm-pro-btn{min-height:42px;padding:9px 13px;font-size:12px}
#subtab-rotacion .pm-quarter-chip.active{background:#2563eb;border-color:#2563eb;box-shadow:0 3px 9px rgba(37,99,235,.28)}
#subtab-rotacion .pm-pro-btn-live{background:#dc2626;border-color:#dc2626;box-shadow:0 3px 10px rgba(220,38,38,.28)}
#subtab-rotacion .pm-pro-grid{grid-template-columns:minmax(0,1.5fr) minmax(290px,.8fr);gap:14px}
#subtab-rotacion .pm-pro-main{padding:16px;border:1px solid var(--border);border-radius:16px;background:var(--card);box-shadow:0 5px 16px rgba(15,23,42,.05)}
#subtab-rotacion .pm-pro-section-head{padding-bottom:10px;margin-bottom:12px;border-bottom:1px solid var(--border)}
#subtab-rotacion .pm-pro-section-head h3{font-size:21px}
#subtab-rotacion .pm-pro-selection{padding:7px 10px;border-radius:999px;background:#f1f5f9;font-size:11px}
#subtab-rotacion .pm-pro-selection.selected{background:#fff7ed;color:#c2410c;box-shadow:inset 0 0 0 1px #fed7aa}
#subtab-rotacion .pm-pro-court{gap:10px;margin-bottom:18px}
#subtab-rotacion .pm-pro-player{min-height:132px;padding:14px 11px;border-radius:14px;border-width:2px;text-align:left}
#subtab-rotacion .pm-pro-player:hover{transform:translateY(-2px);box-shadow:0 8px 16px rgba(37,99,235,.12)}
#subtab-rotacion .pm-pro-player.selected{border-color:#ea580c;background:#fff7ed;box-shadow:0 0 0 3px rgba(234,88,12,.15)}
#subtab-rotacion .pm-pro-dorsal{width:36px;height:36px;font-size:14px;background:#e0e7ff;color:#3730a3}
#subtab-rotacion .pm-pro-name{font-size:14px}
#subtab-rotacion .pm-pro-meta{font-size:10px;margin-top:7px}
#subtab-rotacion .pm-pro-min{font-size:12px;color:#1d4ed8}
#subtab-rotacion .pm-pro-side-card{padding:14px;border-radius:14px;box-shadow:0 3px 10px rgba(15,23,42,.04)}
#subtab-rotacion .pm-pro-side-title{font-size:10px;margin-bottom:10px}
#subtab-rotacion .pm-pro-bench{grid-template-columns:1fr 1fr;gap:9px}
#subtab-rotacion .pm-pro-bench-card{min-height:58px;padding:9px;border-radius:11px;border-width:2px}
#subtab-rotacion .pm-pro-bench-card.recommended{border-color:#16a34a;background:#f0fdf4;box-shadow:0 3px 9px rgba(22,163,74,.12)}
#subtab-rotacion .pm-pro-bench-dorsal{width:30px;height:30px;font-size:11px;background:#e2e8f0}
#subtab-rotacion .pm-pro-bench-name{font-size:12px}
#subtab-rotacion .pm-pro-enter{font-size:20px;color:#15803d}
#subtab-rotacion .pm-filter{min-height:34px;padding:6px 9px;font-size:10px}
#subtab-rotacion .pm-filter.active{background:#1e3a8a;border-color:#1e3a8a}
#subtab-rotacion .pm-v12-current{margin:10px 0 14px;padding:12px 14px;border-color:#86efac;background:#f0fdf4}
#subtab-rotacion .pm-v12-current-title{font-size:11px;color:#15803d}
#subtab-rotacion .pm-v12-chip{padding:7px 9px;font-size:11px}
#subtab-rotacion .pm-match-controls{padding:16px;border-radius:15px;border-width:2px}
#subtab-rotacion .pm-control-clock{font-size:36px;color:#0f172a}
#subtab-rotacion .pm-control-btn{min-height:42px;padding:9px 12px;font-size:11px}
#subtab-rotacion .pm-fouls-grid{gap:10px}
#subtab-rotacion .pm-foul-team{padding:11px}
#subtab-rotacion .pm-foul-team button,#subtab-rotacion .pm-player-foul button{width:32px;height:32px;font-size:15px}
#subtab-rotacion .pm-player-fouls{gap:9px}
#subtab-rotacion .pm-player-foul{padding:10px}
@media(max-width:900px){#subtab-rotacion .pm-pro-header{position:static}#subtab-rotacion .pm-pro-toolbar{position:static}#subtab-rotacion .pm-pro-grid{grid-template-columns:1fr}#subtab-rotacion .pm-pro-side{grid-template-columns:1fr 1fr}#subtab-rotacion .pm-pro-side-card:last-child{grid-column:1/-1}}
@media(max-width:640px){#subtab-rotacion .pm-pro-header{grid-template-columns:1fr auto;padding:12px}#subtab-rotacion .pm-pro-score{font-size:32px}#subtab-rotacion .pm-pro-toolbar{padding:9px}#subtab-rotacion .pm-pro-clock{font-size:19px}#subtab-rotacion .pm-pro-court{grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible}#subtab-rotacion .pm-pro-player{min-height:110px}#subtab-rotacion .pm-pro-bench{grid-template-columns:1fr}#subtab-rotacion .pm-pro-side{display:flex}#subtab-rotacion .pm-player-fouls{grid-template-columns:repeat(2,minmax(0,1fr))}}


/* v114: compact and immediately actionable match finalization */
.live-finalize-banner {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin: 4px 0 8px;
}
.live-finalize-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 7px 12px;
  border: 0;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1;
  font-weight: 800;
  cursor: pointer;
  color: #fff;
  background: #b91c1c;
  box-shadow: 0 2px 6px rgba(0,0,0,.14);
}
.live-finalize-btn:hover,
.live-finalize-btn:focus-visible {
  filter: brightness(1.06);
}
.live-finalize-btn:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}
@media (max-width: 640px) {
  .live-finalize-banner {
    justify-content: flex-end;
  }
  .live-finalize-btn {
    min-height: 38px;
    padding: 8px 11px;
    font-size: 12px;
  }
}

/* v115: compact Live finalization control */
.live-finalize-banner {
  margin: 3px 0 6px;
}
.live-finalize-btn {
  min-height: 34px;
  padding: 7px 11px;
  border-radius: 8px;
  font-size: 12px;
  box-shadow: none;
}
}
/* Source: css/match-console-v165.css */
@layer compatibility{#subtab-rotacion .pm-team-icon.basketball{border-radius:50%!important;background:#fff3e9!important;color:#e96020!important;border:1px solid #ffc49f!important}#subtab-rotacion .pm-team-icon.basketball svg{fill:none!important;stroke:currentColor!important;stroke-width:1.65!important;stroke-linecap:round!important;stroke-linejoin:round!important}
.pm-history-strip{display:flex;align-items:center;gap:12px;margin:-4px 0 12px;padding:11px 14px;border:1px solid #cfe0f4;border-radius:13px;background:#f5f9ff}.pm-history-strip>span{font-size:8px;font-weight:900;letter-spacing:.09em;color:#2f6fed;background:#e5efff;padding:6px 8px;border-radius:999px}.pm-history-strip>div{display:flex;flex-direction:column}.pm-history-strip strong{font-size:12px;color:#102442}.pm-history-strip small{font-size:9px;color:#71819a;margin-top:2px}.pm-finalized .pm-pro-toolbar,.pm-finalized .pm-match-controls{display:none!important}.pm-finalized .pm-pro-player,.pm-finalized .pm-pro-bench-card,.pm-finalized .pm-inline-fouls{pointer-events:none}.pm-finalized .pm-pro-selection{display:none}

/* Identidad de equipos y lectura histórica de la rotación */
#subtab-rotacion .pm-team-badge{display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;border-radius:12px;background:linear-gradient(145deg,#2f6fed,#184eb6);border:1px solid rgba(255,255,255,.2);box-shadow:0 8px 20px rgba(8,31,63,.22);color:#fff;font-size:13px;font-weight:900;letter-spacing:.05em}
#subtab-rotacion .pm-team-badge.away{background:linear-gradient(145deg,#ff8b46,#d9571d)}
#subtab-rotacion .pm-team-copy{display:flex;min-width:0;flex-direction:column;gap:2px}
#subtab-rotacion .pm-team-copy>small{color:#8fa0b9;font-size:7px;font-weight:900;letter-spacing:.12em}
#subtab-rotacion .pm-pro-team.right .pm-team-copy{text-align:right;align-items:flex-end}
#subtab-rotacion .pm-pro-section-head .pm-pro-kicker{font-family: Inter, system-ui, sans-serif;font-size:8px;font-weight:800;letter-spacing:.11em;color:#6f809a}
#subtab-rotacion .pm-pro-section-head h3{font-family: Inter, system-ui, sans-serif;font-size:19px;line-height:1.15;letter-spacing:-.025em;color:#0b2344}
#subtab-rotacion .pm-pro-section-head h3 span{display:inline-flex;margin-left:8px;padding:4px 8px;border-radius:999px;background:#edf4ff;color:#3970c9;font-size:8px;letter-spacing:.04em;vertical-align:middle}
#subtab-rotacion .pm-pro-court>.pm-pro-empty{grid-column:1/-1;width:100%;min-height:115px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;line-height:1.45;border:1px dashed #cbd9eb;border-radius:14px;background:#f8fbff}
.pm-finalized .pm-pro-instruction{display:none!important}
.pm-finalized .pm-pro-main{grid-template-columns:1fr!important}
.pm-finalized .pm-pro-bench-head{align-items:center;padding-bottom:10px;border-bottom:1px solid #dce6f2}
.pm-finalized .pm-pro-bench-card{background:#fff;border-color:#d9e4f1;box-shadow:0 4px 14px rgba(25,57,94,.05)}
.pm-finalized .pm-bench-live.historical{display:inline-flex;align-items:center;gap:7px;margin-left:auto;padding:5px 8px;border-radius:9px;background:#edf7f4;color:#087c67}
.pm-finalized .pm-bench-live.historical small{font-size:7px;font-weight:800;letter-spacing:.07em;color:#5b7d77}
.pm-finalized .pm-bench-live.historical b{font-size:11px;color:#087c67}
.pm-ops-strip{display:grid;grid-template-columns:1fr .7fr 1.45fr auto auto;gap:8px;align-items:center;margin:-4px 0 12px;padding:10px;border:1px solid #dce6f1;border-radius:13px;background:#fff;box-shadow:0 5px 16px rgba(15,35,65,.05)}.pm-ops-strip>div{padding:4px 10px;border-right:1px solid #e7edf5}.pm-ops-strip small{display:block;font-size:8px;font-weight:850;letter-spacing:.08em;color:#71819a}.pm-ops-strip strong{display:block;margin-top:2px;font-size:15px;color:#102442;font-variant-numeric:tabular-nums}.pm-ops-strip button{min-height:36px;border:1px solid #cfdbea;border-radius:9px;background:#f7faff;color:#26415f;font-size:10px;font-weight:800;padding:0 12px;cursor:pointer}.pm-ops-strip .finish{background:#102442;color:#fff;border-color:#102442}
#subtab-rotacion .pm-pro-player{display:flex;flex-direction:column;position:relative}#subtab-rotacion .pm-card-live{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-top:auto;padding-top:9px}.pm-state-time,.pm-total-time{display:flex;flex-direction:column}.pm-state-time small,.pm-total-time small{font-size:7px;font-weight:850;letter-spacing:.06em;color:#71819a}.pm-state-time b,.pm-total-time b{font-size:14px;font-variant-numeric:tabular-nums;color:#102442}.pm-state-time.court b{color:#087b61}.pm-state-time.bench{display:flex;flex-direction:row;align-items:center;gap:5px}.pm-state-time.bench small{color:#9a6508}.pm-state-time.bench b{font-size:11px;color:#9a6508}
.pm-inline-fouls{display:flex;align-items:center;justify-content:center;gap:5px;margin-top:7px;position:relative;z-index:2}.pm-inline-fouls>[role=button]{width:25px;height:25px;border:1px solid #d5e0ed;border-radius:7px;background:#fff;color:#233c5b;font-weight:900;cursor:pointer;display:grid;place-items:center}.pm-inline-fouls>[role=button].disabled{opacity:.35;cursor:default}.pm-inline-fouls b{font-size:9px;color:#5b6d84;min-width:26px}.pm-pro-bench-card{position:relative;grid-template-columns:auto minmax(0,1fr) auto!important}.pm-pro-bench-card>.pm-inline-fouls{grid-column:2/4;justify-content:flex-start;margin-top:2px}.pm-bench-live{display:flex;align-items:center;gap:8px;margin-top:4px}.pm-bench-live>span{font-size:9px;color:#71819a}
.pm-five-overlay{position:fixed;inset:0;z-index:999999;background:rgba(7,20,39,.66);backdrop-filter:blur(6px);display:grid;place-items:center;padding:16px}.pm-five-dialog{width:min(760px,100%);max-height:min(820px,calc(100vh - 32px));overflow:auto;background:#fff;border-radius:20px;box-shadow:0 30px 80px rgba(0,0,0,.28);padding:20px}.pm-five-dialog header{display:flex;justify-content:space-between;gap:18px;border-bottom:1px solid #e4ebf3;padding-bottom:14px}.pm-five-dialog header small{font-size:9px;color:#2f6fed;font-weight:850;letter-spacing:.1em}.pm-five-dialog h3{font-size:22px;margin:4px 0}.pm-five-dialog p{font-size:11px;color:#71819a;margin:0}.pm-five-dialog header button{width:34px;height:34px;border:0;border-radius:9px;background:#f1f5f9;font-size:20px}.pm-five-count{display:flex;align-items:baseline;gap:5px;padding:14px 0}.pm-five-count strong{font-size:24px;color:#2f6fed}.pm-five-count span{font-size:11px;color:#71819a}.pm-five-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.pm-five-player{display:grid;grid-template-columns:36px minmax(0,1fr) 24px;align-items:center;gap:10px;text-align:left;border:1px solid #dce6f1;border-radius:12px;background:#fff;padding:11px;cursor:pointer}.pm-five-player>span{width:34px;height:34px;border-radius:9px;background:#eef3f9;display:grid;place-items:center;font-weight:850}.pm-five-player>div{display:flex;flex-direction:column}.pm-five-player b{font-size:12px}.pm-five-player small{font-size:9px;color:#71819a;margin-top:2px}.pm-five-player i{font-style:normal;color:transparent}.pm-five-player.selected{border-color:#71a5f2;background:#f2f7ff;box-shadow:inset 0 0 0 1px #cce0ff}.pm-five-player.selected i{color:#087b61}.pm-five-dialog footer{display:flex;justify-content:flex-end;gap:8px;margin-top:16px;padding-top:14px;border-top:1px solid #e4ebf3}.pm-five-dialog footer button{min-height:38px;padding:0 15px;border:1px solid #cfdae7;border-radius:9px;background:#fff;font-weight:750}.pm-five-dialog footer .primary{background:#2f6fed;border-color:#2f6fed;color:#fff}.pm-five-dialog footer .primary:disabled{opacity:.4}
@media(max-width:900px){.pm-ops-strip{grid-template-columns:repeat(3,1fr)}.pm-ops-strip button{width:100%}}@media(max-width:620px){.pm-ops-strip{grid-template-columns:1fr 1fr}.pm-ops-strip>div:nth-child(3){grid-column:1/-1}.pm-five-grid{grid-template-columns:1fr}}
.partido-delete-btn{width:34px!important;height:34px!important;padding:8px!important;border-radius:9px!important}.partido-delete-btn svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

/* v166 — sustituciones múltiples y consola móvil de banquillo */
.pm-ops-strip .multi{background:#eaf2ff;border-color:#b8d1fb;color:#1d5fc7;box-shadow:0 4px 12px rgba(47,111,237,.12)}
.pm-multi-dialog{width:min(900px,100%)}.pm-multi-status{display:grid;grid-template-columns:auto 30px auto 1fr;align-items:center;gap:10px;margin:14px 0;padding:11px 13px;border-radius:12px;background:#f3f7fc;border:1px solid #dae5f1}.pm-multi-status span{font-size:11px;color:#52677f}.pm-multi-status span b{font-size:19px;color:#102442}.pm-multi-status i{font-style:normal;text-align:center;color:#2f6fed;font-size:18px}.pm-multi-status>strong{justify-self:end;font-size:11px;color:#7b8ba0}.pm-multi-status>strong.ready{color:#087b61}.pm-multi-columns{display:grid;grid-template-columns:1fr 1fr;gap:12px}.pm-multi-columns section{min-width:0;padding:12px;border:1px solid #dce6f1;border-radius:14px;background:#f9fbfe}.pm-multi-columns h4{margin:0 0 9px;font-size:11px;letter-spacing:.04em;color:#536980}.pm-multi-list{display:grid;grid-template-columns:1fr 1fr;gap:7px}.pm-multi-player{display:grid;grid-template-columns:34px minmax(0,1fr) 20px;align-items:center;gap:8px;padding:9px;border:1px solid #d8e3ef;border-radius:10px;background:#fff;text-align:left;color:#102442;cursor:pointer}.pm-multi-player>span{display:grid;place-items:center;width:32px;height:32px;border-radius:8px;background:#edf3fa;font-size:11px;font-weight:900}.pm-multi-player>div{display:flex;min-width:0;flex-direction:column}.pm-multi-player b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}.pm-multi-player small{margin-top:2px;color:#76879b;font-size:8px}.pm-multi-player i{font-style:normal;color:transparent}.pm-multi-player.selected{border-color:#3b82f6;background:#edf5ff;box-shadow:inset 0 0 0 1px #8dbbfa}.pm-multi-player.selected i{color:#087b61}

@media(max-width:700px){
  #subtab-rotacion .pm-pro-wrap{padding:0 0 24px!important}
  #subtab-rotacion .pm-pro-header{position:static!important;padding:8px 10px!important;border-radius:11px!important;grid-template-columns:minmax(0,1fr) auto!important}
  #subtab-rotacion .pm-team-badge{width:34px;height:34px;flex-basis:34px;border-radius:9px}
  #subtab-rotacion .pm-pro-score{font-size:27px!important}
  #subtab-rotacion .pm-pro-toolbar{position:sticky!important;top:0!important;z-index:50!important;display:grid!important;grid-template-columns:1fr!important;gap:6px!important;margin:6px 0!important;padding:7px!important;border-radius:11px!important}
  #subtab-rotacion .pm-pro-quarter{display:grid!important;grid-template-columns:repeat(5,1fr)!important;gap:3px!important;width:100%!important;overflow:visible!important}
  #subtab-rotacion .pm-quarter-chip{min-height:34px!important;padding:5px 2px!important}
  #subtab-rotacion .pm-pro-toolbar-actions{display:grid!important;grid-template-columns:auto 1fr auto!important;gap:4px!important}
  #subtab-rotacion .pm-pro-clock{min-width:74px!important;padding:5px!important;font-size:19px!important}
  #subtab-rotacion .pm-pro-btn{min-height:36px!important;padding:6px!important}
  .pm-ops-strip{position:sticky;top:91px;z-index:49;grid-template-columns:1fr .65fr!important;gap:5px;margin:6px 0 9px;padding:7px;border-radius:11px;box-shadow:0 7px 18px rgba(15,35,65,.12)}
  .pm-ops-strip>div{padding:3px 7px}.pm-ops-strip>div:nth-child(3){display:none}.pm-ops-strip strong{font-size:17px}.pm-ops-strip button{min-height:38px;padding:0 7px;font-size:9px}.pm-ops-strip .multi{grid-column:1/-1;font-size:11px;min-height:42px}.pm-ops-strip .finish{background:#fff;color:#b42331;border-color:#f0c5ca}
  #subtab-rotacion .pm-pro-main{padding:9px!important;border-radius:12px!important}
  #subtab-rotacion .pm-pro-section-head{margin-bottom:7px;padding-bottom:7px;flex-direction:row!important;align-items:center!important}
  #subtab-rotacion .pm-pro-section-head h3{font-size:15px}.pm-pro-selection{font-size:8px!important;padding:5px 7px!important}
  #subtab-rotacion .pm-pro-court{display:grid!important;grid-template-columns:repeat(5,minmax(88px,1fr))!important;gap:6px!important;margin-bottom:13px!important;overflow-x:auto!important;scroll-snap-type:x proximity;padding:2px 1px 7px}
  #subtab-rotacion .pm-pro-player{min-height:118px!important;padding:9px 7px!important;scroll-snap-align:start}
  #subtab-rotacion .pm-pro-dorsal{width:28px;height:28px;margin-bottom:4px;font-size:11px}
  #subtab-rotacion .pm-pro-name{font-size:10px}.pm-state-time b,.pm-total-time b{font-size:12px}.pm-inline-fouls{gap:3px;margin-top:5px}.pm-inline-fouls>[role=button]{width:23px;height:23px}
  #subtab-rotacion .pm-pro-bench{grid-template-columns:1fr 1fr!important;gap:6px!important}
  #subtab-rotacion .pm-pro-bench-card{min-width:0;min-height:74px;padding:7px!important}.pm-pro-bench-card>.pm-inline-fouls{grid-column:1/-1}.pm-bench-live{display:grid;gap:1px}.pm-state-time.bench{gap:3px}.pm-state-time.bench small{font-size:6px}
  #subtab-rotacion .pm-pro-side{display:block!important}#subtab-rotacion .pm-pro-side-card{margin-top:8px;padding:10px}
  .pm-five-overlay{align-items:end;padding:0}.pm-five-dialog{width:100%;max-height:92vh;border-radius:20px 20px 0 0;padding:14px}.pm-five-dialog h3{font-size:19px}.pm-five-dialog header{padding-bottom:10px}.pm-five-grid{grid-template-columns:1fr 1fr;gap:6px}.pm-five-player{grid-template-columns:31px minmax(0,1fr) 18px;padding:8px}.pm-five-player>span{width:30px;height:30px}
  .pm-multi-status{grid-template-columns:1fr 24px 1fr;margin:10px 0;padding:8px}.pm-multi-status>strong{grid-column:1/-1;justify-self:center}.pm-multi-columns{grid-template-columns:1fr 1fr;gap:6px}.pm-multi-columns section{padding:7px}.pm-multi-list{grid-template-columns:1fr;gap:5px}.pm-multi-player{grid-template-columns:29px minmax(0,1fr) 16px;padding:7px 6px}.pm-multi-player>span{width:27px;height:27px}.pm-multi-dialog footer{position:sticky;bottom:-14px;margin:10px -14px -14px;padding:10px 14px;background:#fff;box-shadow:0 -8px 18px rgba(15,35,65,.08)}
}

/* v191 · consola móvil a pantalla completa, sin scroll de página */
.pm-mobile-tabs{display:none}
@media(max-width:700px){
  body:has(#subtab-rotacion.active){overflow:hidden!important}
  #subtab-rotacion.active{position:fixed!important;inset:0!important;z-index:99990!important;display:block!important;height:100dvh!important;overflow:hidden!important;padding:5px!important;background:#edf3f8!important}
  #subtab-rotacion .pm-pro-wrap{display:grid!important;grid-template-rows:auto auto auto minmax(0,1fr)!important;height:100%!important;overflow:hidden!important;padding:0!important}
  #subtab-rotacion .pm-pro-header{display:none!important}
  #subtab-rotacion .pm-pro-toolbar{position:static!important;display:grid!important;grid-template-columns:1fr 1.2fr!important;gap:4px!important;margin:0 0 4px!important;padding:5px!important;border-radius:10px!important}
  #subtab-rotacion .pm-pro-quarter{display:grid!important;grid-template-columns:repeat(5,1fr)!important;gap:2px!important;width:100%!important;overflow:visible!important}
  #subtab-rotacion .pm-quarter-chip{min-height:31px!important;padding:2px 1px!important;font-size:9px!important}
  #subtab-rotacion .pm-pro-toolbar-actions{display:grid!important;grid-template-columns:auto 1fr auto!important;gap:3px!important}
  #subtab-rotacion .pm-pro-clock{min-width:62px!important;padding:3px!important;font-size:17px!important}
  #subtab-rotacion .pm-pro-btn{min-height:31px!important;padding:3px!important;font-size:8px!important}
  .pm-ops-strip{position:static!important;grid-template-columns:.7fr .45fr 1fr 1fr!important;gap:3px!important;margin:0 0 4px!important;padding:4px!important;border-radius:10px!important}
  .pm-ops-strip>div{padding:2px 5px!important;border:0!important}.pm-ops-strip>div:nth-child(3){display:none!important}.pm-ops-strip small{font-size:6px!important}.pm-ops-strip strong{font-size:14px!important}.pm-ops-strip button{min-height:31px!important;padding:0 4px!important;font-size:8px!important}.pm-ops-strip .multi{grid-column:auto!important;min-height:31px!important;font-size:8px!important}.pm-ops-strip button:nth-last-child(2){display:none!important}
  .pm-mobile-tabs{display:grid;grid-template-columns:1fr 1fr 1fr auto;gap:3px;margin-bottom:4px;padding:3px;border:1px solid #d5e1ee;border-radius:10px;background:#fff}.pm-mobile-tabs button{min-height:33px;border:0;border-radius:7px;background:transparent;color:#60738b;font-size:9px;font-weight:850}.pm-mobile-tabs button.active{background:#173d6b;color:#fff}.pm-mobile-tabs .exit{padding:0 10px;color:#b42331;background:#fff1f2}
  #subtab-rotacion .pm-pro-grid{display:block!important;min-height:0!important;height:100%!important;overflow:hidden!important}
  #subtab-rotacion .pm-pro-main{height:100%!important;overflow:hidden!important;padding:7px!important;border-radius:10px!important}
  #subtab-rotacion .pm-pro-section-head{margin-bottom:5px!important;padding-bottom:5px!important}
  #subtab-rotacion .pm-pro-court{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:4px!important;margin-bottom:5px!important;overflow:visible!important;padding:1px!important}
  #subtab-rotacion .pm-pro-player{min-width:0!important;min-height:107px!important;padding:5px 2px!important}
  #subtab-rotacion .pm-pro-dorsal{width:25px!important;height:25px!important;margin-bottom:2px!important;font-size:9px!important}#subtab-rotacion .pm-pro-name{font-size:8px!important}.pm-card-live{gap:2px!important;padding-top:4px!important}.pm-state-time small,.pm-total-time small{font-size:5px!important}.pm-state-time b,.pm-total-time b{font-size:10px!important}.pm-inline-fouls{gap:2px!important;margin-top:3px!important}.pm-inline-fouls>[role=button]{width:20px!important;height:20px!important}
  #subtab-rotacion .pm-pro-bench{grid-template-columns:1fr 1fr!important;gap:4px!important;max-height:calc(100dvh - 160px)!important;overflow-y:auto!important}
  #subtab-rotacion .pm-pro-bench-card{min-width:0!important;min-height:62px!important;padding:5px!important}
  #subtab-rotacion .pm-pro-side{display:none!important}
  #subtab-rotacion.pm-mobile-court .pm-pro-bench-head,#subtab-rotacion.pm-mobile-court #pm-banquillo-list,#subtab-rotacion.pm-mobile-court .pm-match-controls{display:none!important}
  #subtab-rotacion.pm-mobile-bench .pm-pro-main>.pm-pro-section-head:first-child,#subtab-rotacion.pm-mobile-bench #pm-cancha-list,#subtab-rotacion.pm-mobile-bench .pm-match-controls{display:none!important}
  #subtab-rotacion.pm-mobile-game .pm-pro-main>.pm-pro-section-head,#subtab-rotacion.pm-mobile-game #pm-cancha-list,#subtab-rotacion.pm-mobile-game #pm-banquillo-list{display:none!important}
  #subtab-rotacion.pm-mobile-game .pm-match-controls{display:block!important;height:100%!important;overflow:hidden!important;margin:0!important;padding:6px!important}.pm-mobile-game .pm-match-controls .pm-control-hint{display:none!important}.pm-mobile-game .pm-scoreboard{margin-top:3px!important}.pm-mobile-game .pm-fouls-grid{gap:3px!important}
}
}
/* Source: css/injuries-v168.css */
@layer compatibility{#tab-perfiles .injury-history-card{margin-top:18px;padding:18px;border-radius:17px;background:#fff;border:1px solid #dce6f1;box-shadow:0 10px 28px rgba(24,52,84,.06)}
.injury-section-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding-bottom:14px;margin-bottom:12px;border-bottom:1px solid #e2eaf3}.injury-section-heading span,.injury-modal-head>span{display:block;margin-bottom:5px;color:#3673d9;font-size:8px;font-weight:900;letter-spacing:.12em}.injury-section-heading h3,.injury-modal-head h3{margin:0;color:#0c2444;font-size:20px;letter-spacing:-.025em}.injury-section-heading p,.injury-modal-head p{margin:5px 0 0;color:#6b7d96;font-size:10px}.injury-privacy-note{max-width:245px;padding:9px 11px;border-radius:10px;background:#f3f7fc;color:#64758c;font-size:8px;line-height:1.45}
#modal-lesión .modal{max-width:760px;padding:22px;border-radius:18px}#modal-lesión>.modal{max-height:min(88vh,780px);overflow:auto}.injury-modal-head{padding:0 0 15px;margin-bottom:16px;border-bottom:1px solid #e1e9f2}.injury-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.injury-form-grid label{display:flex;flex-direction:column;gap:6px;color:#3f5068;font-size:9px;font-weight:800}.injury-form-grid input,.injury-form-grid select,.injury-form-grid textarea{width:100%;min-height:40px;padding:9px 11px;border:1px solid #cfdae8;border-radius:10px;background:#fbfdff;color:#102442;font:500 11px Inter,system-ui,sans-serif}.injury-form-grid textarea{resize:vertical}.injury-form-full{grid-column:1/-1}
#lesiones-kpis{margin-top:18px}#lesiones-kpis .kpi{border-radius:15px;border:1px solid #dce6f1;box-shadow:0 7px 18px rgba(24,52,84,.045)}#lesiones-tabla{min-width:1120px}#lesiones-tabla th{padding:11px 9px;background:#f6f9fd;color:#657993;font-size:8px;letter-spacing:.08em}#lesiones-tabla td{padding:12px 9px;vertical-align:middle;border-bottom:1px solid #e7edf4;font-size:9px}#lesiones-tabla td strong{display:block;color:#142b49;font-size:10px}#lesiones-tabla td small{display:block;margin-top:3px;color:#7b8da5;font-size:8px}.injury-player,.injury-kind{text-align:left!important}.injury-kind{min-width:190px}.injury-availability{display:inline-flex;padding:6px 8px;border-radius:999px;font-size:8px;font-weight:800;white-space:nowrap}.injury-availability.no_disponible{background:#fff0f1;color:#c93449}.injury-availability.modificado{background:#fff7e8;color:#a86a09}.injury-availability.parcial{background:#edf4ff;color:#326ac7}.injury-availability.disponible{background:#eaf8f2;color:#087c62}.injury-mechanism{text-transform:capitalize}.injury-notes{max-width:220px;color:#60728b;line-height:1.45}.injury-actions{white-space:nowrap}.injury-empty{text-align:center;padding:34px!important;color:#7689a2!important}
@media(max-width:720px){.injury-section-heading{flex-direction:column}.injury-form-grid{grid-template-columns:1fr}.injury-form-full{grid-column:auto}.injury-privacy-note{max-width:none}}
}
/* Source: css/legacy-17.css */
@layer compatibility{
/* La vista anual expresa un único criterio cromático a la vez. */
.pv38-month-mini.mode-type .pv38-year-day.planned{background:var(--day-fill)!important;border-color:var(--day-accent)!important;color:#fff!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.18)}
.pv38-month-mini.mode-intensity .pv38-year-day.planned{background:var(--day-fill)!important;border-color:var(--day-accent)!important;color:#fff!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.2)}
.pv38-year-day.mode-type:before,.pv38-year-day.mode-intensity:before{background:rgba(255,255,255,.82)!important}.pv38-year-day.mode-type span,.pv38-year-day.mode-intensity span{position:relative;z-index:1}
.pv38-year-day.mode-intensity b{position:absolute;right:3px;bottom:2px;z-index:2;min-width:10px;height:10px;display:grid;place-items:center;border-radius:50%;background:rgba(255,255,255,.92);color:var(--day-accent);font-size:6px;font-weight:900;line-height:1;box-shadow:0 1px 2px rgba(15,23,42,.2)}
.pv38-month-mini.mode-intensity{box-shadow:inset 0 3px 0 #f59e0b}.pv38-month-mini.mode-type{box-shadow:inset 0 3px 0 #2563eb}
.pv38-annual-mode>span:after{content:' activo';font-weight:500}.pv38-annual-mode .pv38-btn.active{background:#2563eb!important;border-color:#2563eb!important;box-shadow:0 3px 8px rgba(37,99,235,.2)}
}
/* Source: css/planning-18.css */
@layer compatibility{
.plan-v38-tabs{display:flex;align-items:center;gap:6px;margin:0 0 12px;padding:5px;background:var(--card,#fff);border:1px solid var(--border);border-radius:11px;flex-wrap:wrap}.plan-v38-tabs button{border:0;background:transparent;padding:8px 12px;border-radius:7px;font-size:11px;font-weight:800;color:var(--muted);cursor:pointer}.plan-v38-tabs button.active{background:var(--text);color:#fff}.plan-v38-tabs button.micro{margin-left:auto}.plan-v38-divider{height:22px;width:1px;background:var(--border)}.pv38-view{background:var(--card,#fff);border:1px solid var(--border);border-radius:14px;padding:12px}.pv38-head{display:flex;justify-content:space-between;gap:14px;align-items:flex-start;margin-bottom:10px}.pv38-kicker{font-size:8px;font-weight:900;letter-spacing:.09em;color:var(--muted)}.pv38-head h3{margin:3px 0;font-size:21px}.pv38-head p{margin:0;color:var(--muted);font-size:10px}.pv38-actions{display:flex;gap:5px;flex-wrap:wrap}.pv38-btn{border:1px solid var(--border);background:var(--surface,#f8fafc);color:var(--text);border-radius:7px;padding:7px 10px;font-size:9px;font-weight:800;cursor:pointer}.pv38-btn.primary{background:var(--text);color:#fff;border-color:var(--text)}.pv38-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;margin-bottom:10px}.pv38-kpis>div{border:1px solid var(--border);border-radius:9px;padding:9px;background:var(--surface,#f8fafc)}.pv38-kpis small{display:block;color:var(--muted);font-size:7px;font-weight:900;letter-spacing:.06em}.pv38-kpis b{display:block;font-size:16px;margin-top:4px}.pv38-legend{display:flex;gap:10px;align-items:center;flex-wrap:wrap;border:1px solid var(--border);border-radius:9px;padding:7px 9px;margin-bottom:9px;font-size:8px;color:var(--muted)}.pv38-legend span{display:inline-flex;align-items:center;gap:4px}.pv38-legend i{width:9px;height:9px;border-radius:3px;display:inline-block}.pv38-int-legend{margin-left:auto}.pv38-grid-head{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;margin-bottom:4px}.pv38-grid-head b{font-size:8px;color:var(--muted);text-transform:uppercase;padding-left:5px}.pv38-grid{display:grid;grid-template-columns:repeat(7,minmax(130px,1fr));gap:6px;overflow-x:auto}.pv38-day{min-height:184px;border:1px solid var(--border);border-top:3px solid var(--day-accent,#cbd5e1);border-radius:9px;padding:7px;display:flex;flex-direction:column;gap:5px;background:var(--card,#fff)}.pv38-day.has-plan{background:linear-gradient(180deg,color-mix(in srgb,var(--day-accent) 8%,transparent),var(--card) 65%)}.pv38-day.intensity-1{background:linear-gradient(180deg,rgba(22,163,74,.20),var(--card) 72%);border-color:rgba(22,163,74,.35)}.pv38-day.intensity-2{background:linear-gradient(180deg,rgba(132,204,22,.22),var(--card) 72%);border-color:rgba(132,204,22,.38)}.pv38-day.intensity-3{background:linear-gradient(180deg,rgba(245,158,11,.24),var(--card) 72%);border-color:rgba(245,158,11,.42)}.pv38-day.intensity-4{background:linear-gradient(180deg,rgba(249,115,22,.26),var(--card) 72%);border-color:rgba(249,115,22,.46)}.pv38-day.intensity-5{background:linear-gradient(180deg,rgba(220,38,38,.28),var(--card) 72%);border-color:rgba(220,38,38,.5)}.pv38-day-head{display:flex;justify-content:space-between;align-items:flex-start}.pv38-day-head span{display:block;color:var(--muted);font-size:7px;font-weight:900}.pv38-day-head strong{display:block;font-size:13px;margin-top:2px}.pv38-day-head em{font-style:normal;font-size:7px;font-weight:900;color:var(--day-accent);background:color-mix(in srgb,var(--day-accent) 10%,transparent);padding:3px 5px;border-radius:5px}.pv38-day select{width:100%;box-sizing:border-box;border:1px solid var(--border);border-radius:6px;background:var(--surface,#fff);padding:6px;font-size:8px;font-weight:800;color:var(--text)}.pv38-type{display:flex;align-items:center;gap:5px;font-size:8px}.pv38-type i{width:7px;height:7px;border-radius:50%;background:var(--day-accent)}.pv38-type b{font-size:9px}.pv38-type small{margin-left:auto;color:var(--muted);font-weight:800}.pv38-intensity{display:flex;align-items:center;justify-content:space-between;margin-top:2px;gap:6px}.pv38-intensity>span{font-size:7px;color:var(--muted);font-weight:800;white-space:nowrap}.pv38-intensity>div{display:flex;flex-direction:row;align-items:center;gap:3px;flex-wrap:nowrap}.pv38-int{flex:0 0 21px}.pv38-int{display:flex;gap:3px;flex:1;justify-content:flex-end;width:21px;height:19px;box-sizing:border-box;border:1px solid var(--border);border-radius:5px;background:var(--surface,#fff);font-size:7px;font-weight:900;color:var(--muted);cursor:pointer;align-items:center;justify-content:center;padding:0}.pv38-int.active{background:var(--day-accent);border-color:var(--day-accent);color:#fff}.pv38-int:nth-child(1).active{background:#16a34a;border-color:#16a34a}.pv38-int:nth-child(2).active{background:#65a30d;border-color:#65a30d}.pv38-int:nth-child(3).active{background:#d97706;border-color:#d97706}.pv38-int:nth-child(4).active{background:#ea580c;border-color:#ea580c}.pv38-int:nth-child(5).active{background:#dc2626;border-color:#dc2626}.pv38-load{margin-top:auto;border-top:1px solid var(--border);padding-top:5px;font-size:7px;color:var(--muted)}.pv38-load strong{color:var(--text)}.pv38-empty{margin-top:auto;color:var(--muted);font-size:8px}.pv38-game{padding:5px 6px;background:rgba(220,38,38,.07);border:1px solid rgba(220,38,38,.18);border-radius:6px;color:#b91c1c;font-size:8px;font-weight:900}.pv38-bottom{display:grid;grid-template-columns:1.5fr 1fr;gap:8px;margin-top:10px}.pv38-bottom>div{border:1px solid var(--border);border-radius:10px;padding:9px}.pv38-bottom small{display:block;color:var(--muted);font-size:7px;font-weight:900;letter-spacing:.06em;margin-bottom:7px}.pv38-week-list{display:grid;grid-template-columns:repeat(3,1fr);gap:5px}.pv38-week-card{border:1px solid var(--border);border-radius:7px;padding:7px;font-size:8px}.pv38-week-card span,.pv38-week-card strong{display:block;margin-top:3px}.pv38-week-card span{color:var(--muted)}.pv38-week-card.warning{border-color:rgba(220,38,38,.35);background:rgba(220,38,38,.035)}.pv38-tool-row{display:flex;gap:5px;flex-wrap:wrap}.pv38-week-editor{display:grid;grid-template-columns:repeat(7,minmax(145px,1fr));gap:7px;overflow-x:auto}.pv38-annual-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px} .pv38-annual-toolbar{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin-bottom:9px}.pv38-annual-mode{display:flex;align-items:center;gap:4px;border:1px solid var(--border);border-radius:9px;padding:4px;background:var(--surface,#f8fafc)}.pv38-annual-mode>span{font-size:8px;color:var(--muted);font-weight:800;padding:0 4px}.pv38-annual-mode .pv38-btn{padding:6px 9px}.pv38-annual-mode .pv38-btn.active{background:var(--text);color:#fff;border-color:var(--text)}.pv38-annual-legend{margin:0;flex:1;justify-content:flex-end}.pv38-year-day.planned{background:var(--day-fill);border-color:var(--day-accent);color:#fff;box-shadow:inset 0 0 0 1px rgba(255,255,255,.18)}.pv38-year-day.planned:before{background:rgba(255,255,255,.8)}.pv38-year-day.planned i{background:#fff;box-shadow:0 0 0 1px rgba(0,0,0,.12)}.pv38-month-mini{border:1px solid var(--border);border-radius:10px;padding:8px;background:var(--surface,#fff)}.pv38-mini-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:5px}.pv38-mini-title b{text-transform:capitalize;font-size:10px}.pv38-mini-title span{font-size:7px;color:var(--muted)}.pv38-mini-week,.pv38-mini-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:2px}.pv38-mini-week em{font-style:normal;font-size:6px;text-align:center;color:var(--muted);font-weight:900}.pv38-year-day{position:relative;height:25px;border:1px solid var(--border);border-radius:4px;background:var(--surface,#fff);cursor:default;font-size:7px;color:var(--text)}.pv38-year-day.planned{background:color-mix(in srgb,var(--day-accent) 14%,#fff);border-color:color-mix(in srgb,var(--day-accent) 35%,var(--border))}.pv38-year-day:before{content:"";position:absolute;left:2px;top:2px;bottom:2px;width:2px;border-radius:2px;background:var(--day-accent);opacity:.9}.pv38-year-day i{position:absolute;right:3px;top:3px;width:4px;height:4px;border-radius:50%;background:#dc2626}.pv38-micro-toolbar{display:flex;justify-content:flex-end;gap:6px;margin-bottom:8px}.pv38-micro-days{display:grid;grid-template-columns:repeat(7,minmax(145px,1fr));gap:7px;overflow-x:auto}.pv38-micro-day{border:1px solid var(--border);border-radius:9px;padding:7px;background:var(--card,#fff);min-height:120px}.pv38-generated{margin-top:10px}.pv38-micro-empty{padding:22px;border:1px dashed var(--border);border-radius:10px;color:var(--muted);font-size:9px;text-align:center}.pv38-mc-card{border:1px solid var(--border);border-radius:10px;padding:8px;background:var(--surface,#fff)}@media(max-width:1000px){.pv38-kpis{grid-template-columns:repeat(2,1fr)}.pv38-annual-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:650px){.plan-v38-tabs button.micro{margin-left:0}.pv38-head{flex-direction:column}.pv38-kpis{grid-template-columns:repeat(2,1fr)}.pv38-annual-grid{grid-template-columns:1fr}.pv38-week-list{grid-template-columns:1fr}.pv38-grid{grid-template-columns:repeat(7,155px)}.pv38-week-editor,.pv38-micro-days{grid-template-columns:repeat(7,155px)}}
}
/* Source: css/planning-19.css */
@layer compatibility{
.pm33-wrap{margin-top:4px}.pm33-sub{font-size:11px;color:var(--muted);margin-top:3px}.pm33-kpis{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:7px;margin:0 0 10px}.pm33-kpis>div{background:var(--card);border:1px solid var(--border);border-radius:11px;padding:9px 10px;min-width:0}.pm33-kpis small{display:block;font-size:8px;color:var(--muted);font-weight:900;letter-spacing:.04em}.pm33-kpis b{display:block;font-size:16px;margin-top:4px}.pm33-kpis .warn{border-color:rgba(239,68,68,.35);background:rgba(239,68,68,.035)}.pm33-tools{display:flex;gap:5px;flex-wrap:wrap;justify-content:flex-end}.pm33-legend{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:0 0 8px;padding:7px 9px;background:var(--card);border:1px solid var(--border);border-radius:10px;font-size:8px;color:var(--muted)}.pm33-legend span{display:inline-flex;align-items:center;gap:4px}.pm33-legend .sep{width:1px;height:12px;background:var(--border)}.pm33-legend i{width:10px;height:10px;border-radius:3px;display:inline-block;border:1px solid rgba(0,0,0,.08)}.pm33-legend i.t.pista{background:#16a34a}.pm33-legend i.t.gym{background:#2563eb}.pm33-legend i.t.mixto{background:#d97706}.pm33-legend i.t.partido{background:#dc2626}.pm33-legend i.i1{background:rgba(22,163,74,.22)}.pm33-legend i.i3{background:rgba(245,158,11,.28)}.pm33-legend i.i5{background:rgba(220,38,38,.3)}.pm33-grid{display:grid;grid-template-columns:repeat(7,minmax(145px,1fr));gap:6px;overflow-x:auto}.pm33-weekday{font-size:8px;text-transform:uppercase;color:var(--muted);font-weight:900;padding:3px 7px}.pm33-cell{position:relative;min-height:178px;background:var(--card);border:1px solid var(--border);border-top:3px solid var(--accent,#cbd5e1);border-radius:10px;padding:7px;display:flex;flex-direction:column;gap:5px;transition:.12s ease}.pm33-cell:before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;border-radius:10px 0 0 10px;background:var(--accent,#cbd5e1);opacity:.18}.pm33-cell.outside{opacity:.42}.pm33-cell.i1{background:linear-gradient(180deg,rgba(22,163,74,.07),var(--card) 62%)}.pm33-cell.i2{background:linear-gradient(180deg,rgba(132,204,22,.08),var(--card) 62%)}.pm33-cell.i3{background:linear-gradient(180deg,rgba(245,158,11,.10),var(--card) 62%)}.pm33-cell.i4{background:linear-gradient(180deg,rgba(249,115,22,.12),var(--card) 62%)}.pm33-cell.i5{background:linear-gradient(180deg,rgba(220,38,38,.13),var(--card) 62%)}.pm33-top{display:flex;align-items:center;gap:6px}.pm33-top .pm33-dow{font-size:8px;color:var(--muted);text-transform:uppercase;font-weight:900}.pm33-top strong{font-size:14px}.pm33-md{margin-left:auto;font-size:8px;font-weight:900;color:var(--muted);background:var(--surface,#f8fafc);border:1px solid var(--border);padding:2px 5px;border-radius:5px}.pm33-match{display:flex;align-items:center;gap:5px;padding:5px 6px;border-radius:7px;background:rgba(220,38,38,.07);border:1px solid rgba(220,38,38,.18);font-size:8px}.pm33-match span{font-weight:950;color:#b91c1c}.pm33-match strong{font-size:9px}.pm33-match em{font-style:normal;color:var(--muted);margin-left:auto}.pm33-select,.pm33-objective{width:100%;box-sizing:border-box;border:1px solid rgba(0,0,0,.10);border-radius:7px;padding:6px;background:rgba(255,255,255,.76);color:var(--text);font-size:8.5px;font-weight:800}.pm33-row{display:flex;align-items:center;justify-content:space-between;gap:5px}.pm33-type{display:flex;align-items:center;gap:5px;color:var(--type);font-size:9px;font-weight:900}.pm33-type b{display:inline-flex;align-items:center;justify-content:center;width:24px;height:18px;border-radius:5px;background:color-mix(in srgb,var(--type) 10%,transparent);color:var(--type);font-size:7px}.pm33-intensity{font-size:8px;font-weight:900;color:var(--muted)}.pm33-int{display:flex;align-items:center;gap:3px}.pm33-int>span{font-size:7px;color:var(--muted);font-weight:800;margin-right:auto}.pm33-int button{width:21px;height:20px;border:1px solid var(--border);background:rgba(255,255,255,.72);border-radius:5px;font-size:7px;font-weight:900;color:var(--muted);cursor:pointer}.pm33-int button.active{border-color:var(--accent);color:var(--accent);background:rgba(255,255,255,.95)}.pm33-load{margin-top:auto;padding-top:4px;border-top:1px solid var(--border);font-size:7.5px;color:var(--muted)}.pm33-load strong{color:var(--text)}.pm33-empty{margin-top:auto;padding:10px 4px 4px;color:var(--muted);font-size:8px}.pm33-bottom{display:grid;grid-template-columns:1fr 1.5fr;gap:8px;margin-top:10px}.pm33-bottom>div{background:var(--card);border:1px solid var(--border);border-radius:11px;padding:10px}.pm33-bottom-title{font-size:8px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);font-weight:900;margin-bottom:7px}.pm33-summary{font-size:9px;line-height:1.8}.pm33-summary b{color:var(--text)}.pm33-weeks{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.pm33-week-card{border:1px solid var(--border);border-radius:8px;padding:7px;font-size:8px}.pm33-week-card>div{display:flex;justify-content:space-between;gap:5px}.pm33-week-card>div span,.pm33-week-card>span{color:var(--muted);font-size:7px}.pm33-week-card>strong{display:block;margin:4px 0}.pm33-week-card.congestion{border-color:rgba(220,38,38,.35);background:rgba(220,38,38,.035)}.pm33-week-card.high{border-color:rgba(245,158,11,.35);background:rgba(245,158,11,.035)}
@media(max-width:1050px){.pm33-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}.pm33-bottom{grid-template-columns:1fr}.pm33-weeks{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.pm33-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.pm33-tools{justify-content:flex-start}.pm33-grid{grid-template-columns:repeat(7,155px)}}
}
/* Source: css/external-load-20.css */
@layer compatibility{
.ce44-toolbar{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:8px}.ce44-toolbar input{height:32px;border:1px solid var(--border);border-radius:7px;padding:0 8px;background:var(--card);color:var(--text);min-width:150px}.ce44-primary,.ce44-secondary{height:32px;border-radius:7px;padding:0 11px;font-weight:800;cursor:pointer}.ce44-primary{border:0;background:var(--primary);color:#fff}.ce44-secondary{border:1px solid var(--border);background:var(--card);color:var(--text)}.ce44-days{display:flex;gap:4px;align-items:stretch;margin-bottom:8px;overflow-x:auto}.ce44-days>button:first-child,.ce44-days>button:last-child{width:30px;flex:0 0 30px}.ce44-days>button{border:1px solid var(--border);background:var(--card);border-radius:7px;cursor:pointer}.ce44-day{min-width:42px;padding:4px 6px;position:relative}.ce44-day small,.ce44-day b{display:block}.ce44-day small{font-size:7px;color:var(--muted)}.ce44-day b{font-size:12px}.ce44-day.active{background:var(--primary);color:#fff}.ce44-day i{position:absolute;width:4px;height:4px;border-radius:50%;background:#16a34a;right:4px;top:4px}.ce44-summary{display:grid;grid-template-columns:repeat(5,1fr);gap:6px;margin-bottom:8px}.ce44-summary>div{border:1px solid var(--border);border-radius:8px;padding:7px;background:var(--card)}.ce44-summary small{display:block;color:var(--muted);font-size:7px;text-transform:uppercase;font-weight:900}.ce44-summary b{display:block;font-size:13px;margin-top:2px}.ce44-session-fields{display:grid;grid-template-columns:1.4fr 1.4fr .7fr .7fr;gap:7px;margin-bottom:8px}.ce44-session-fields label,.ce44-bottom label{font-size:7px;text-transform:uppercase;font-weight:900;color:var(--muted)}.ce44-session-fields input,.ce44-bottom input{display:block;width:100%;box-sizing:border-box;height:30px;margin-top:3px;border:1px solid var(--border);border-radius:6px;background:var(--card);color:var(--text);padding:0 7px}.ce44-quick{display:flex;gap:5px;flex-wrap:wrap;align-items:center;margin-bottom:8px}.ce44-quick strong{font-size:8px}.ce44-quick button{border:1px solid var(--border);background:var(--card);border-radius:999px;padding:5px 8px;font-size:8px;font-weight:800;cursor:pointer}.ce44-ex{border:1px solid var(--border);border-radius:9px;background:var(--card);padding:8px;margin-bottom:7px}.ce44-ex-head{display:flex;align-items:center;gap:5px;margin-bottom:7px}.ce44-index{font-size:8px;font-weight:900;color:var(--muted)}.ce44-ex-head input{flex:1;min-width:0;height:28px;border:1px solid var(--border);border-radius:6px;padding:0 7px;background:var(--surface);color:var(--text);font-weight:750}.ce44-pill{font-size:7px;font-weight:900;border:1px solid var(--border);border-radius:5px;padding:4px 5px;white-space:nowrap}.ce44-ex-head>button{border:0;background:none;color:#b91c1c;font-size:17px;cursor:pointer}.ce44-metrics{display:grid;grid-template-columns:repeat(6,1fr);gap:5px}.ce44-metrics>div{min-width:0}.ce44-metrics small{display:block;text-align:center;font-size:7px;font-weight:900;color:var(--muted);margin-bottom:3px}.ce44-metrics section{display:flex;gap:2px;justify-content:center}.ce44-metrics button{width:22px;height:22px;border:1px solid var(--border);background:var(--surface);border-radius:4px;font-size:8px;font-weight:900;cursor:pointer}.ce44-metrics button.on{background:var(--primary);border-color:var(--primary);color:#fff}.ce44-bottom{display:grid;grid-template-columns:130px 130px 1fr;gap:7px;align-items:end;margin-top:7px}.ce44-bottom>div{border:1px solid var(--border);border-radius:6px;padding:6px;font-size:8px}.ce44-bottom>div small{display:block;color:var(--muted)}.ce44-empty{display:flex;flex-direction:column;align-items:center;gap:7px;padding:28px;border:1px dashed var(--border);border-radius:10px;color:var(--muted);font-size:10px}.ce44-empty.small{padding:20px}.ce44-empty strong{color:var(--text)}
@media(max-width:900px){.ce44-summary{grid-template-columns:repeat(3,1fr)}.ce44-session-fields{grid-template-columns:1fr 1fr}.ce44-metrics{grid-template-columns:repeat(3,1fr)}.ce44-bottom{grid-template-columns:1fr 1fr}.ce44-bottom>div{grid-column:1/-1}}
}
/* Source: css/external-load-21.css */
@layer compatibility{
.p43-section{margin-top:8px;border:1px solid var(--border);border-radius:9px;background:var(--card);overflow:hidden}.p43-section-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 9px;border-bottom:1px solid var(--border);background:var(--surface,#f8fafc)}.p43-section-head>div{display:flex;align-items:center;gap:7px}.p43-section-head b{font-size:8px;letter-spacing:.07em}.p43-section-head span,.p43-section-head em{font-size:7px;color:var(--muted);font-style:normal}.p43-section-head em{font-weight:700}.p43-items{padding:6px}.p43-gym-item{border:1px solid var(--border);border-radius:7px;padding:7px;margin-bottom:5px;background:var(--card)}.p43-gym-item:last-child{margin-bottom:0}.p43-gym-item.selected-main{border-color:#2563eb;background:rgba(37,99,235,.045)}.p43-gym-item.selected-second{border-color:#7c3aed;background:rgba(124,58,237,.04)}.p43-gym-item-top{display:flex;align-items:center;justify-content:space-between;gap:7px}.p43-gym-item-top>div:first-child{min-width:0}.p43-gym-item strong{display:block;font-size:8px}.p43-gym-item-top span{display:block;font-size:6.5px;color:#2563eb;font-weight:900;text-transform:uppercase;margin-top:2px}.p43-gym-item p{margin:4px 0 0;font-size:7px;line-height:1.4;color:var(--muted)}.p43-gym-actions{display:flex;gap:3px;flex:0 0 auto}.p43-gym-actions button{border:1px solid var(--border);background:var(--surface,#fff);border-radius:5px;padding:4px 5px;font-size:6.5px;font-weight:900;cursor:pointer}.p43-gym-actions button.active{background:#2563eb;border-color:#2563eb;color:#fff}.p43-gym-actions button.secondary.active{background:#7c3aed;border-color:#7c3aed}.p43-pista-items{padding:6px;display:grid;gap:5px}
.p43-c-reference{display:grid;grid-template-columns:repeat(5,1fr);gap:4px;padding:6px 9px;border-top:1px solid var(--border);background:var(--surface,#f8fafc)}.p43-c-reference div{font-size:6.2px;line-height:1.3;padding:4px;border-radius:5px;border:1px solid var(--border)}.p43-c-reference b{display:block;font-size:7px;margin-bottom:2px}.p43-c-reference .c1,.p43-c-reference .c2{background:#dcfce7}.p43-c-reference .c3{background:#fef9c3}.p43-c-reference .c4{background:#ffedd5}.p43-c-reference .c5{background:#fee2e2}@media(max-width:700px){.p43-c-reference{grid-template-columns:repeat(2,1fr)}}.p43-pista-item{border:1px solid var(--border);background:var(--card);border-radius:7px;padding:7px;text-align:left;cursor:pointer}.p43-pista-item.selected{border-color:#16a34a;background:rgba(22,163,74,.055)}.p43-pista-top{display:flex;align-items:center;gap:5px}.p43-task-code{flex:0 0 auto;min-width:22px;text-align:center;border-radius:4px;padding:3px 4px;font-size:7px;font-weight:950}.p43-task-code.c-c1,.p43-task-code.c-c2{background:#dcfce7;color:#166534}.p43-task-code.c-c3{background:#fef9c3;color:#854d0e}.p43-task-code.c-c4{background:#ffedd5;color:#9a3412}.p43-task-code.c-c5{background:#fee2e2;color:#991b1b}.p43-pista-top strong{font-size:7.5px;flex:1}.p43-select-mark{font-size:6.5px;color:var(--muted);font-weight:900}.p43-pista-item.selected .p43-select-mark{color:#15803d}.p43-pista-meta{font-size:6.5px;color:var(--muted);margin:4px 0 0 28px}.p43-pista-spec{display:flex;gap:8px;margin:4px 0 0 28px;font-size:6px;color:var(--muted);text-transform:capitalize}.p43-note,.p43-recovery-copy{padding:7px 9px;font-size:7px;color:var(--muted);line-height:1.4}.p43-match-section .p43-section-head{background:rgba(220,38,38,.045)}.ce44-metrics{grid-template-columns:repeat(3,1fr)}.ce44-metrics>div{padding:4px;border:1px solid var(--border);border-radius:7px;background:var(--surface,#fafafa)}.ce44-metrics small{font-size:7px;line-height:1.2;min-height:18px;display:flex;align-items:center;justify-content:center}.ce44-metrics section{display:flex;gap:2px}.ce44-metrics button{flex:1;width:auto}.ce44-bottom{grid-template-columns:150px 150px 1fr}.ce44-pill{font-size:6.5px}.ce44-summary{grid-template-columns:repeat(5,1fr)}.ce44-summary small{font-size:6.5px;line-height:1.25;min-height:17px}@media(max-width:800px){.p43-gym-item-top{align-items:flex-start;flex-direction:column}.p43-gym-actions{width:100%}.p43-gym-actions button{flex:1}.ce44-metrics{grid-template-columns:repeat(2,1fr)}.ce44-summary{grid-template-columns:repeat(3,1fr)}}
}
/* Source: css/external-load-22.css */
@layer compatibility{
/* V58 — Carga externa: guía compacta + gestión de días */
.ce44-toolbar{align-items:flex-end;gap:8px;margin-bottom:10px}
.ce44-toolbar input{min-width:135px}
.ce44-toolbar .ce44-date-wrap{display:flex;flex-direction:column;gap:3px}
.ce44-toolbar .ce44-date-wrap span{font-size:7px;text-transform:uppercase;font-weight:900;color:var(--muted)}
.ce44-toolbar-copy{display:flex;flex-direction:column;justify-content:center;gap:2px}.ce44-toolbar-copy strong{font-size:12px}.ce44-toolbar-copy small{font-size:9px;color:var(--muted)}
.ce44-day-tools{display:flex;gap:5px;align-items:stretch;margin-left:auto}
.ce44-day-tools button{border:1px solid var(--border);background:var(--card);color:var(--text);border-radius:7px;padding:0 9px;font-size:8px;font-weight:850;cursor:pointer;height:32px}
.ce44-day-tools button.add{border-color:var(--primary);color:var(--primary)}
.ce44-day-tools button.delete{color:#b91c1c}
.ce44-days{gap:6px;padding:3px 0 6px;overflow-x:auto;scrollbar-width:thin}
.ce44-day{min-width:56px;padding:6px 8px;flex:0 0 56px}
.ce44-day small{font-size:7px;letter-spacing:.03em}
.ce44-day b{font-size:13px;margin-top:1px}
.ce44-guide{margin:12px 0 12px;border-radius:10px}
.ce44-guide summary{padding:9px 12px;font-size:10px}
.ce44-guide summary span{display:block;font-size:12px;color:#0f172a}.ce44-guide summary small{display:block;margin-top:3px;font-size:9px;font-weight:500;color:#64748b}
.ce44-guide-grid{padding:0 10px 10px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.ce44-guide-row{padding:8px 9px;border:1px solid #e7edf4;border-radius:8px;background:#fbfcfe}
.ce44-guide-row>strong{font-size:9px;margin-bottom:6px}
.ce44-guide-row>div{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;min-width:0}
.ce44-guide-row span{font-size:7.5px;line-height:1.3;padding:6px 5px;background:#fff;border-radius:6px;min-width:0;overflow-wrap:anywhere;word-break:normal;white-space:normal;box-sizing:border-box}
.ce44-guide-row span:first-child{border-left:2px solid #94a3b8}.ce44-guide-row{min-width:0;overflow:hidden}.ce44-guide-row>strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media(max-width:900px){
  .ce44-guide-grid{grid-template-columns:1fr}
  .ce44-guide-row>div{grid-template-columns:repeat(5,minmax(0,1fr))}
}
@media(max-width:650px){
  .ce44-toolbar .ce44-date-wrap{width:100%}
  .ce44-toolbar input{min-width:0;width:100%}
  .ce44-day-tools{margin-left:0;width:100%}
  .ce44-day-tools button{flex:1}
  .ce44-guide-row>div{grid-template-columns:1fr 1fr}
  .ce44-guide-row span:last-child{grid-column:1/-1}
}
.ce44-task-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:12px 0 9px;padding:9px 10px;border:1px solid var(--border);border-radius:9px;background:var(--card)}
.ce44-task-toolbar-title{display:flex;flex-direction:column;min-width:150px}.ce44-task-toolbar-title strong{font-size:11px}.ce44-task-toolbar-title small{font-size:8px;color:var(--muted);margin-top:2px}.ce44-quick-presets{display:flex;gap:5px;flex:1;flex-wrap:wrap}.ce44-quick-presets button{min-height:34px;padding:0 11px;border:1px solid #cbd9e8;border-radius:8px;background:#f7faff;color:#24446c;font-size:9px;font-weight:850;cursor:pointer}.ce44-quick-presets button:hover{border-color:var(--primary);background:#eef5ff;color:var(--primary)}.ce44-session-fields input[readonly]{background:#eef3f8!important;color:#52677f;cursor:default}
.ce44-copy-btn{height:34px;padding:0 11px;border:1px solid #93b4df;border-radius:7px;background:#edf5ff;color:#245da8;font-size:9px;font-weight:850;cursor:pointer;white-space:nowrap}.ce44-copy-btn:hover{background:#dbeafe;border-color:#3b82f6}
.ce44-task-toolbar-main{display:flex;align-items:center;gap:9px;min-width:0}.ce44-add-task-btn{height:34px;border:0;border-radius:7px;background:var(--primary);color:#fff;padding:0 14px;font-weight:900;font-size:10px;cursor:pointer}.ce44-task-hint{font-size:9px;color:var(--muted)}.ce44-save-task-btn{height:32px;border:1px solid var(--border);border-radius:7px;background:var(--surface);color:var(--text);padding:0 11px;font-weight:850;font-size:9px;cursor:pointer}.ce44-task-picker{border:1px solid var(--border);border-radius:10px;background:var(--card);padding:11px 12px;margin:0 0 10px;box-shadow:0 5px 16px rgba(15,23,42,.06)}.ce44-picker-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.ce44-picker-head div{display:flex;flex-direction:column;gap:2px}.ce44-picker-head strong{font-size:11px}.ce44-picker-head span{font-size:8px;color:var(--muted)}.ce44-picker-head>button,.ce44-picker-section-head button{border:1px solid var(--border);background:var(--surface);border-radius:6px;padding:5px 8px;font-size:8px;font-weight:800;cursor:pointer}.ce44-picker-section{margin-top:8px}.ce44-picker-section>small,.ce44-picker-section-head small{font-size:7px;color:var(--muted);font-weight:900;letter-spacing:.06em}.ce44-picker-section-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:6px}.ce44-picker-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin-top:6px}.ce44-picker-item{min-width:0;border:1px solid var(--border);border-radius:7px;background:var(--surface);padding:8px;text-align:left;cursor:pointer}.ce44-picker-item:hover{border-color:var(--primary);transform:translateY(-1px)}.ce44-picker-item b{display:block;font-size:9px;color:var(--text)}.ce44-picker-item span{display:block;margin-top:3px;font-size:7px;color:var(--muted)}.ce44-picker-item.custom{display:flex;align-items:stretch;padding:0}.ce44-picker-use{flex:1;border:0;background:transparent;text-align:left;padding:8px;cursor:pointer}.ce44-picker-delete{width:28px;border:0;border-left:1px solid var(--border);background:transparent;color:#b91c1c;font-size:14px;cursor:pointer}.ce44-no-custom{padding:10px;border:1px dashed var(--border);border-radius:7px;color:var(--muted);font-size:8px}
@media(max-width:900px){.ce44-picker-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ce44-task-toolbar{align-items:flex-start;flex-direction:column}.ce44-save-task-btn{width:100%}.ce44-task-toolbar-main{width:100%}}
@media(max-width:900px){.ce44-quick-presets{width:100%}.ce44-quick-presets button{flex:1;min-width:105px}.ce44-toolbar-copy{order:3;width:100%}}
}
/* Source: css/external-load-23.css */
@layer compatibility{
.p43-items-compact{display:flex;flex-wrap:wrap;gap:8px}
.p43-gym-item.compact{padding:10px 12px;min-width:190px;flex:1 1 190px;display:flex;align-items:center;justify-content:space-between;gap:10px}
.p43-gym-item.compact strong{font-size:12px}
.p43-gym-item.compact span{font-size:10px;color:var(--text-soft);text-align:right}
.p43-c-compact-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:8px;margin-top:10px}
.p43-c-compact{display:flex;align-items:flex-start;gap:9px;padding:9px 10px;border:1px solid var(--border);border-radius:8px;background:var(--card-alt)}
.p43-c-compact b{min-width:28px;font-size:12px}
.p43-c-compact span{font-size:10.5px;line-height:1.35;color:var(--text-soft)}
.p43-choice-inline{display:flex;align-items:center;gap:10px;margin-top:10px;font-size:10.5px;color:var(--text-soft)}
.p43-choice-inline .p26-choice-select{max-width:150px}

<style id="p50-micro-style">
.p50-work-block{margin-top:8px;border:1px solid var(--border);border-radius:10px;background:var(--card);overflow:hidden;line-height:1.3;box-shadow:0 1px 2px rgba(15,23,42,.03)}
.p50-work-head{display:flex;align-items:center;gap:8px;padding:8px 9px;border-bottom:1px solid var(--border);background:rgba(248,250,252,.72)}
.p50-badge{font-size:8px;font-weight:800;padding:4px 7px;border-radius:4px;color:#fff;letter-spacing:.06em;flex:0 0 auto}.p50-badge.gym{background:#B89148}.p50-badge.pista{background:#10b981}.p50-badge.recovery{background:#0891b2}.p50-badge.competition{background:#dc2626}.p50-special-copy{padding:9px;font-size:9px;color:var(--text-soft);line-height:1.35}
.p50-work-title{font-size:10px;color:var(--text);text-transform:uppercase;letter-spacing:.045em;font-weight:800}.p50-work-note{font-size:8.5px;color:var(--muted);margin-top:1px}
.p50-main-line{font-size:11px;color:var(--text);padding:8px 9px 2px}.p50-sub-line{font-size:9.5px;color:var(--muted);padding:2px 9px 8px}.p50-c-list{display:flex;flex-direction:column;gap:4px;padding:7px 8px}.p50-c-row{display:grid;grid-template-columns:28px 1fr;align-items:center;gap:7px;padding:6px 7px;border-radius:7px;border-left:3px solid;font-size:9.5px}.p50-c-row strong{font-size:10px;min-width:22px}.p50-c-row span{color:var(--text-soft);line-height:1.35}.p50-c-row.c-c1,.p50-c-row.c-c2{background:rgba(34,197,94,.055);border-color:#22c55e}.p50-c-row.c-c1 strong,.p50-c-row.c-c2 strong{color:#16a34a}.p50-c-row.c-c3{background:rgba(234,179,8,.075);border-color:#eab308}.p50-c-row.c-c3 strong{color:#ca8a04}.p50-c-row.c-c4{background:rgba(249,115,22,.075);border-color:#f97316}.p50-c-row.c-c4 strong{color:#ea580c}.p50-c-row.c-c5{background:rgba(239,68,68,.065);border-color:#ef4444}.p50-c-row.c-c5 strong{color:#dc2626}
}
/* Source: css/planning-24.css */
@layer compatibility{
/* V55 — más aire y navegación clara en Microciclo */
.p26-head{margin-bottom:20px}
.p26-head-actions{gap:7px}
.p26-back-plan{background:var(--surface,#f8fafc);font-weight:900}
.p26-context{margin-top:4px;margin-bottom:16px;gap:10px}
.p26-context-card{min-height:72px;padding:11px 12px}
.p26-card{margin-top:0;padding:15px}
.p26-weekbar{padding-bottom:11px;margin-bottom:13px;border-bottom:1px solid var(--border)}
.p26-days{gap:9px;padding-bottom:3px}
.p26-day{border-radius:13px}
.p26-day-body{padding:10px;gap:8px}
.p50-work-block{margin-top:10px;border-radius:9px}
.p50-work-head{padding:8px 10px}
.p50-c-list{padding:8px;gap:5px}
.p50-c-row{padding:7px 8px}
.p26-footer{margin-top:14px;padding-top:10px;border-top:1px solid var(--border)}
@media(max-width:700px){.p26-head{margin-bottom:16px}.p26-context{margin-top:2px;margin-bottom:12px}}
.ce44-modal-actions{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap}


/* Finalizar partido: primary end-of-match action */
.btn-finalizar-partido {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 48px;
  padding: .75rem 1.15rem !important;
  font-size: 1rem !important;
  font-weight: 800 !important;
  letter-spacing: .01em;
  border: 2px solid currentColor !important;
  border-radius: 12px !important;
  box-shadow: 0 3px 10px rgba(0,0,0,.16);
  z-index: 2;
}

.btn-finalizar-partido::before {
  content: "✓";
  font-size: 1.15em;
  font-weight: 900;
}

.btn-finalizar-partido:hover,
.btn-finalizar-partido:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(0,0,0,.22);
}

.btn-finalizar-partido:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
}

@media (max-width: 640px) {
  .btn-finalizar-partido {
    width: 100%;
    min-height: 52px;
    font-size: 1.05rem !important;
  }
}
}
/* Source: css/planning-25.css */
@layer compatibility{
/* V72 — Capa de trabajo del preparador físico: decidir, registrar, revisar. */
.pf-context-strip{display:flex;align-items:center;gap:8px;margin:10px 0 14px;padding:10px 12px;border:1px solid #dbe5f1;border-left:4px solid #2563eb;border-radius:10px;background:#f8fbff;color:#334155;font-size:12px;line-height:1.35}.pf-context-strip strong{color:#1e3a8a}.pf-context-strip .pf-context-icon{width:24px;height:24px;display:grid;place-items:center;flex:0 0 auto;border-radius:7px;background:#dbeafe;color:#1d4ed8;font-weight:900}
.tab-panel .panel-header{gap:14px}.tab-panel .panel-header .row{gap:8px;align-items:center}.tab-panel .panel-header .btn{min-height:38px}.tab-panel .cargas-mode-toggle{gap:5px;padding:5px;border:1px solid var(--border);border-radius:11px;background:var(--card-alt);width:max-content;max-width:100%;overflow:auto}.tab-panel .cargas-mode-btn{min-height:38px;white-space:nowrap}
/* Carga interna: recorrido rápido por la plantilla y señal de registro incompleto. */
#tab-cargas .day-navigator{position:sticky;top:8px;z-index:8;margin:10px 0;padding:8px;background:color-mix(in srgb,var(--card) 94%,transparent);border:1px solid var(--border);border-radius:12px;backdrop-filter:blur(8px)}
#tab-cargas .day-stats-bar{border:1px solid var(--border);border-radius:13px;overflow:hidden;background:var(--card)}
#tab-cargas .players-cards-grid{gap:12px}.player-load-card{border-width:2px}.player-load-card:focus-within{border-color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,.14),0 8px 18px rgba(15,23,42,.08)}
.plc-v-input,.plc-rpe-input{min-height:42px;font-size:17px!important;font-variant-numeric:tabular-nums}.plc-rpe-step,.plc-rpe-preset{min-height:36px;min-width:36px}.plc-rpe-preset.active{box-shadow:inset 0 0 0 2px currentColor}.plc-carga{border-radius:10px}.plc-ewma{padding-top:9px;border-top:1px solid var(--border)}
/* Carga externa: presets y puntuación operativos a pie de pista. */
#tab-externa .ce-quick-actions{position:sticky;top:8px;z-index:7;padding:10px;border:1px solid var(--border);border-radius:12px;background:color-mix(in srgb,var(--card) 95%,transparent);box-shadow:0 4px 12px rgba(15,23,42,.07);backdrop-filter:blur(8px)}
#tab-externa .ce-qa-btn,#tab-externa .ce-qa-preset,#tab-externa .ce-qa-add-custom{min-height:36px}.ce44-ex{border-width:2px}.ce44-metrics button{min-width:34px;min-height:34px}.ce44-bottom input{min-height:38px;font-size:15px}
/* Planificación: las decisiones de la semana prevalecen sobre el calendario. */
#tab-planificación .plan-v38-tabs,#tab-planificación .p26-weekbar{position:sticky;top:8px;z-index:7;background:color-mix(in srgb,var(--card) 96%,transparent);backdrop-filter:blur(8px)}
#tab-planificación .p26-day{border-width:2px}.p26-plan span{padding:5px 7px;border-radius:7px;background:var(--card-alt)}.p26-select{min-height:40px;font-size:13px}
/* Readiness y wellness: de dato bruto a lectura de decisión. */
#tab-readiness .fr-kpi,#tab-wellness .kpi,#tab-salud .salud-kpi{border-width:2px;border-radius:13px}.fr-signal{border-left-width:5px}.fr-table-wrap,.wellness-table-wrap{border:1px solid var(--border);border-radius:12px;overflow:auto}
#tab-wellness .wellness-cell{min-width:30px;min-height:30px;display:inline-grid;place-items:center;font-weight:800}.wellness-table tr:has(.semaforo.danger){background:#fff7f7}.wellness-table tr:has(.semaforo.warn){background:#fffbeb}
#tab-salud .salud-row{cursor:pointer}.salud-row:hover{background:#f8fafc}.salud-card{border-width:2px}.salud-card-header{min-height:42px}.salud-card-body{line-height:1.45}
/* Medidas, perfiles y partidos: tablas legibles y acciones principales visibles. */
#tab-peso .table-wrap,#tab-antropometria .table-wrap,#tab-perfiles .table-wrap,#tab-partidos .table-wrap{border:1px solid var(--border);border-radius:12px;overflow:auto}.table-wrap table th{position:sticky;top:0;z-index:2;background:var(--card-alt)}
#tab-partidos .match-workflow,#tab-partidos .partido-detalle-card{border-width:2px}.match-tab-action,.subtab{min-height:38px}.salud-kpi-value,.fr-kpi-value{font-variant-numeric:tabular-nums}
@media(max-width:900px){#tab-cargas .day-navigator,#tab-externa .ce-quick-actions,#tab-planificación .plan-v38-tabs,#tab-planificación .p26-weekbar{position:static}.tab-panel .panel-header{align-items:flex-start}.tab-panel .panel-header .row{width:100%;flex-wrap:wrap}.pf-context-strip{font-size:11px}}
@media(max-width:640px){.tab-panel .cargas-mode-toggle{width:100%}.tab-panel .cargas-mode-btn{flex:1}.pf-context-strip{align-items:flex-start}.plc-v-input,.plc-rpe-input{font-size:16px!important}.ce44-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.p26-plan{gap:5px}.p26-plan span{font-size:10px}}
}
/* Source: css/wellness-26.css */
@layer compatibility{
/* V73 — dirección visual: plataforma premium de rendimiento, sobria y nítida. */
:root{--ui-primary:#2563eb;--ui-accent:#2563eb;--ui-accent-deep:#1d4ed8;--ui-text:#162033;--ui-muted:#64748b;--ui-border:#e3e9f2;--ui-surface:#ffffff;--ui-surface-2:#f7f9fc;--ui-radius:14px;--ui-shadow:0 2px 6px rgba(15,23,42,.035),0 12px 28px rgba(15,23,42,.045)}
body{background:#f4f7fb!important;color:var(--ui-text)!important}
#app-shell{background:radial-gradient(circle at 90% 0,rgba(37,99,235,.055),transparent 26%),#f4f7fb}
.app-sidebar,aside.sidebar{background:linear-gradient(180deg,#101b31 0%,#0b1324 100%)!important;border-right:1px solid rgba(148,163,184,.14)!important;box-shadow:8px 0 28px rgba(15,23,42,.1)!important}
.app-sidebar .sidebar-brand{height:78px!important;border-bottom-color:rgba(255,255,255,.08)!important}.brand-mark{background:linear-gradient(135deg,#3b82f6,#1d4ed8)!important;box-shadow:0 10px 20px rgba(37,99,235,.3)!important}.brand-name{font-family: Inter, system-ui, sans-serif !important;font-size:14px!important;letter-spacing:-.03em!important}.brand-sub{color:#94a3b8!important}
.sidebar-context{background:rgba(148,163,184,.08)!important;border-color:rgba(148,163,184,.15)!important}.sidebar-context-label{color:#8fa0b9!important}.sidebar-team-dot{background:#60a5fa!important;box-shadow:0 0 0 4px rgba(96,165,250,.11)!important}
.app-nav .nav-main,.app-nav .nav-group-toggle{color:#b9c5d6!important;border-radius:10px!important}.app-nav .nav-main:hover,.app-nav .nav-group-toggle:hover{background:rgba(255,255,255,.065)!important;color:#fff!important}.app-nav .nav-main.active,.app-nav .nav-group.active>.nav-group-toggle,.app-nav .nav-group.open>.nav-group-toggle,.nav-group-items button.active{background:linear-gradient(90deg,rgba(59,130,246,.25),rgba(59,130,246,.07))!important;border-color:rgba(96,165,250,.2)!important;box-shadow:inset 3px 0 0 #60a5fa!important;color:#fff!important}.app-nav .active .tab-icon,.app-nav .nav-group.active .tab-icon{color:#93c5fd!important}.app-nav .nav-group-items{border-left-color:rgba(148,163,184,.18)!important}.app-nav .nav-group-items button{color:#93a4ba!important}.app-nav .nav-group-items button:hover{background:rgba(255,255,255,.055)!important;color:#fff!important}
.app-header{height:72px!important;background:rgba(255,255,255,.9)!important;border-bottom:1px solid rgba(226,232,240,.9)!important;box-shadow:0 1px 0 rgba(15,23,42,.02)!important;backdrop-filter:blur(18px)!important}.app-header .ah-search{height:42px!important;background:#f7f9fc!important;border-color:#e2e8f0!important;border-radius:12px!important}.app-header .ah-search:focus-within{border-color:rgba(37,99,235,.6)!important;box-shadow:0 0 0 4px rgba(37,99,235,.1)!important}.ah-icon-btn,.header-actions button,.header-equipo-gestionar,.header-equipo-select{background:#fff!important;border-color:#e2e8f0!important;border-radius:11px!important;box-shadow:0 1px 2px rgba(15,23,42,.025)!important}.header-actions button.primary,.btn-primary,.primary-btn,button.btn-primary{background:linear-gradient(135deg,#3b82f6,#2563eb)!important;border-color:#2563eb!important;box-shadow:0 8px 18px rgba(37,99,235,.18)!important}
.tab-panel{max-width:1540px!important;padding:30px 36px 62px!important;animation:premium-enter .24s ease-out}.panel-header{padding-bottom:18px!important;border-bottom:1px solid #e7edf5!important;align-items:flex-end!important}.panel-header h2{font-family: Inter, system-ui, sans-serif !important;font-size:24px!important;font-weight:800!important;letter-spacing:-.045em!important;color:#162033!important}.panel-header .row label{font-weight:700!important;color:#64748b!important;font-size:11px!important;text-transform:uppercase!important;letter-spacing:.05em!important}
.card,.panel,.kpi-card,.section-card,.table-wrap,.inicio-card,.inicio-quick-card,.inicio-hero,.modal-content,.profile-card,.wellness-question,.task-card,.chart-card{background:rgba(255,255,255,.97)!important;border:1px solid #e3e9f2!important;border-radius:14px!important;box-shadow:var(--ui-shadow)!important}.card:hover,.kpi:hover{border-color:#d3deed!important}.card-title,.section-title{font-family: Inter, system-ui, sans-serif !important;font-weight:800!important;letter-spacing:-.025em!important}
.kpi,.fr-kpi,.salud-kpi,.v8-kpi{border:1px solid #e3e9f2!important;border-radius:13px!important;background:linear-gradient(145deg,#fff,#fbfcfe)!important;box-shadow:0 2px 6px rgba(15,23,42,.025)!important}.kpi .label,.fr-kpi-label,.salud-kpi-label{color:#64748b!important;font-weight:800!important;font-size:10px!important;letter-spacing:.075em!important;text-transform:uppercase!important}.kpi .value,.fr-kpi-value,.salud-kpi-value{color:#172554!important;font-weight:850!important;letter-spacing:-.045em!important}
.btn{border-color:#dbe4ef!important;background:#fff!important;border-radius:10px!important;font-weight:750!important;box-shadow:0 1px 2px rgba(15,23,42,.025)!important}.btn:hover{transform:translateY(-1px);border-color:#93b4e6!important;box-shadow:0 5px 12px rgba(15,23,42,.07)!important}.btn:active{transform:translateY(0)}input,select,textarea{border-color:#dbe4ef!important;border-radius:10px!important;background:#fff!important;color:#162033!important}input:focus,select:focus,textarea:focus{border-color:#3b82f6!important;box-shadow:0 0 0 4px rgba(59,130,246,.11)!important}
.table-wrap{overflow:auto!important}.table-wrap table th{background:#f7f9fc!important;color:#64748b!important;font-size:10px!important;font-weight:800!important;letter-spacing:.065em!important;text-transform:uppercase!important;border-bottom-color:#e3e9f2!important}.table-wrap table td{border-bottom-color:#eef2f7!important}.table-wrap tbody tr:hover{background:#f8fbff!important}.semaforo,.fr-badge{border-radius:999px!important;font-weight:750!important}.cargas-mode-toggle{background:#f1f5f9!important;border-color:#e2e8f0!important}.cargas-mode-btn.active{background:#fff!important;color:#1d4ed8!important;box-shadow:0 2px 5px rgba(15,23,42,.08)!important}
[data-theme="dark"] body,[data-theme="dark"] #app-shell{background:#0b1220!important}[data-theme="dark"] .app-sidebar,[data-theme="dark"] aside.sidebar{background:linear-gradient(180deg,#0b1324,#070c16)!important}[data-theme="dark"] .app-header{background:rgba(15,23,42,.9)!important}[data-theme="dark"] .card,[data-theme="dark"] .panel,[data-theme="dark"] .table-wrap,[data-theme="dark"] .kpi,[data-theme="dark"] .fr-kpi,[data-theme="dark"] .salud-kpi{background:#111c30!important;border-color:#23324a!important}[data-theme="dark"] .panel-header h2,[data-theme="dark"] .kpi .value,[data-theme="dark"] .fr-kpi-value,[data-theme="dark"] .salud-kpi-value{color:#edf4ff!important}
@keyframes premium-enter{from{opacity:.01;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:900px){.tab-panel{padding:22px 16px 46px!important}.app-header{height:64px!important}.panel-header{align-items:flex-start!important}}@media(max-width:640px){.tab-panel{padding:18px 12px 38px!important}.panel-header h2{font-size:21px!important}.app-header .ah-search{display:none!important}}
}
/* Source: css/isak-v137.css */
@layer compatibility{/* V137 — ISAK: lectura y registro guiados */
#tab-antropometria{--isak-blue:#2563eb;--isak-ink:#10213b;--isak-soft:#eff6ff}
.isak-hero{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;padding:6px 0 18px;border-bottom:1px solid var(--border)}
.isak-hero h2{margin:3px 0 5px;font-size:30px;letter-spacing:-.035em;color:var(--isak-ink)}.isak-hero p{margin:0;max-width:700px;color:var(--muted);font-size:13px}.isak-kicker{font-size:9px;letter-spacing:.14em;font-weight:850;color:var(--isak-blue)}.isak-hero-actions{display:flex;gap:8px;flex:0 0 auto}
.isak-principle{display:flex;align-items:center;gap:18px;flex-wrap:wrap;margin:16px 0;padding:11px 14px;border:1px solid #bfdbfe;border-radius:10px;background:#f8fbff;color:#40516a;font-size:11.5px}.isak-principle strong{color:#1d4ed8}.isak-principle span{position:relative;padding-left:12px}.isak-principle span:before{content:"";position:absolute;left:0;top:5px;width:4px;height:4px;border-radius:50%;background:#60a5fa}
#tab-antropometria .kpi-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}#tab-antropometria .kpi{border-top:0!important;border-left:3px solid #93c5fd!important;border-radius:12px!important}#tab-antropometria .kpi .label{white-space:normal!important}
.isak-card{padding:18px!important;border-radius:14px!important}.isak-card-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:12px;padding-bottom:11px;border-bottom:1px solid var(--border)}.isak-card-head .card-title{margin:0}.isak-card-head p{margin:3px 0 0;font-size:11.5px;color:var(--muted)}
.isak-filters{display:flex;gap:9px;align-items:center;flex-wrap:wrap;margin:8px 0 14px}.isak-filters label{font-size:9.5px;color:var(--muted);text-transform:uppercase;letter-spacing:.08em;font-weight:800}.isak-filters select{min-height:38px;border-radius:9px!important}
.isak-status{display:inline-flex;align-items:center;gap:6px;padding:4px 8px;border-radius:99px;font-size:10px;font-weight:750;white-space:nowrap}.isak-status:before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor}.isak-status.complete{color:#047857;background:#ecfdf5}.isak-status.partial{color:#b45309;background:#fffbeb}.isak-status.basic{color:#64748b;background:#f1f5f9}
.isak-delta{font-size:10.5px;font-weight:700}.isak-delta.down{color:#047857}.isak-delta.up{color:#b45309}.isak-delta.flat{color:#64748b}
.isak-advanced{padding:0!important;overflow:hidden}.isak-advanced>summary{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:17px 20px;cursor:pointer;list-style:none}.isak-advanced>summary::-webkit-details-marker{display:none}.isak-advanced>summary div{display:grid;gap:3px}.isak-advanced>summary div span{font-size:9px;letter-spacing:.12em;color:#7c3aed;font-weight:850}.isak-advanced>summary strong{font-size:14px}.isak-advanced>summary small{color:var(--muted);font-size:11px}.isak-open-label{font-size:11px!important;letter-spacing:0!important;padding:6px 10px;border:1px solid var(--border);border-radius:8px;color:var(--text)!important}.isak-advanced-body{padding:2px 18px 18px;border-top:1px solid var(--border)}
.isak-modal-status{display:flex;align-items:center;gap:16px;padding:10px 12px;margin:10px 0 12px;background:#f8fafc;border:1px solid var(--border);border-radius:9px}.isak-modal-status>div:first-child{display:grid;min-width:175px}.isak-modal-status strong{font-size:12px;color:var(--text)}.isak-modal-status span{font-size:10.5px;color:var(--muted)}.isak-progress-track{height:7px;flex:1;background:#e2e8f0;border-radius:99px;overflow:hidden}.isak-progress-track span{display:block;width:0;height:100%;background:linear-gradient(90deg,#60a5fa,#2563eb);border-radius:inherit;transition:width .2s ease}
#modal-isak input.isak-valid{border-color:#86efac!important;background:#f0fdf4!important}#modal-isak input.isak-invalid{border-color:#fca5a5!important;background:#fff7f7!important}
.isak-quick-result{margin-top:10px;padding:10px 12px;border:1px dashed #d6b978;border-radius:8px;background:rgba(255,251,235,.58);color:#78643d;font-size:11.5px}.isak-quick-result.ready{display:grid;grid-template-columns:1fr 1fr;gap:12px;border-style:solid;border-color:#bfdbfe;background:#f8fbff}.isak-quick-result.ready>div{display:grid;gap:2px}.isak-quick-result.ready span{font-size:9.5px;text-transform:uppercase;letter-spacing:.06em;color:#64748b;font-weight:750}.isak-quick-result.ready strong{font-size:18px;color:#1e3a5f}.isak-quick-result.ready div+div strong{font-size:11px}.isak-quick-result .within,.isak-ref.within{color:#047857!important}.isak-quick-result .below,.isak-quick-result .above,.isak-ref.below,.isak-ref.above{color:#b45309!important}.isak-ref,.isak-ref-note{display:block;margin-top:3px;font-size:9.5px;font-weight:700;line-height:1.25}.isak-ref-note{color:var(--muted);font-weight:500}
#modal-guia-isak>.modal>:not(h3):not(.isak-guide-v137){display:none!important}.isak-guide-v137{display:block!important}.isak-guide-callout{display:grid;gap:4px;padding:13px 15px;margin:10px 0 16px;border-left:3px solid #2563eb;background:#eff6ff;border-radius:8px}.isak-guide-callout strong{color:#1d4ed8}.isak-guide-callout span{font-size:12px;color:#475569}.isak-guide-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.isak-guide-grid article{padding:14px;border:1px solid var(--border);border-radius:10px;background:var(--card)}.isak-guide-grid article>span{display:inline-grid;place-items:center;width:25px;height:25px;border-radius:7px;background:#dbeafe;color:#1d4ed8;font-size:10px;font-weight:850}.isak-guide-grid h4{margin:10px 0 7px!important;font-family:inherit!important;font-size:13px!important}.isak-guide-grid ul{margin:0;padding-left:17px;font-size:11.5px;line-height:1.65;color:var(--text-soft)}.isak-guide-note{margin-top:13px;padding:13px 15px;border:1px solid #ddd6fe;border-radius:10px;background:#faf5ff}.isak-guide-note strong{color:#6d28d9}.isak-guide-note p{margin:4px 0 0;font-size:11.5px;line-height:1.55;color:#4b5563}
@media(max-width:900px){#tab-antropometria .kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.isak-hero{align-items:flex-start;flex-direction:column}.isak-hero-actions{width:100%}.isak-hero-actions .btn{flex:1}}
@media(max-width:600px){#tab-antropometria .kpi-grid{grid-template-columns:1fr}.isak-principle{align-items:flex-start;flex-direction:column;gap:8px}.isak-modal-status{align-items:stretch;flex-direction:column}.isak-advanced>summary{align-items:flex-start;flex-direction:column}.isak-advanced-body>div>div{min-width:100%!important}.isak-guide-grid{grid-template-columns:1fr}}
}
/* Source: css/inline-index-74.css */
@layer compatibility{
.app-nav.sidebar-nav .nav-group-items .tab-label{font-size:11.5px!important}
.app-nav.sidebar-nav .nav-group-items .dot{width:5px;height:5px;border-radius:50%;background:rgba(147,197,253,.65);flex:0 0 5px}
.app-nav.sidebar-nav .nav-group-items button{display:flex;align-items:center;gap:8px;text-align:left;width:100%;border:0;background:transparent;cursor:pointer}
.demo-mode .app-sidebar .nav-group-items button,.demo-mode .app-sidebar .nav-main{cursor:pointer}
}
/* Source: css/inline-index-75.css */
@layer compatibility{
/* Stable sidebar navigation: collapsed by default, one open group at a time. */
.app-nav.sidebar-nav .nav-group-items{display:none !important;flex-direction:column !important;visibility:visible !important;opacity:1 !important;max-height:none !important;overflow:visible !important}
.app-nav.sidebar-nav .nav-group.open > .nav-group-items{display:flex !important}
.app-nav.sidebar-nav .nav-group-toggle{pointer-events:auto !important;position:relative;z-index:4}
.app-nav.sidebar-nav .nav-group-items button{pointer-events:auto !important;position:relative;z-index:5}
.app-nav.sidebar-nav .nav-group-toggle .nav-chevron{transition:transform .18s ease !important}
.app-nav.sidebar-nav .nav-group.open > .nav-group-toggle .nav-chevron{transform:rotate(180deg) !important}
.app-nav.sidebar-nav svg.tab-icon,.app-nav.sidebar-nav button.active svg.tab-icon,.app-nav.sidebar-nav .nav-group.active > .nav-group-toggle svg.tab-icon{background:transparent !important;background-color:transparent !important;fill:none !important;width:18px !important;height:18px !important;flex:0 0 18px !important}
.app-nav.sidebar-nav button.active svg.tab-icon path,.app-nav.sidebar-nav button.active svg.tab-icon rect,.app-nav.sidebar-nav button.active svg.tab-icon circle,.app-nav.sidebar-nav button.active svg.tab-icon polyline{fill:none !important}
.app-nav.sidebar-nav .nav-group-items button.active .dot{background:#60a5fa !important;width:5px !important;height:5px !important;border-radius:50% !important}
.app-nav.sidebar-nav .nav-group.active > .nav-group-toggle{color:#fff !important}
}
/* Source: css/inline-index-76.css */
@layer compatibility{
/* ==========================================================
   TLM — Gemini approved sidebar identity
   Keep the original Gemini visual language: deep navy rail,
   brighter blue active state, muted blue-gray labels/icons.
   Functional behavior is intentionally untouched here.
   ========================================================== */
.app-sidebar{
  background: linear-gradient(180deg,#082245 0%,#071f41 52%,#071d3b 100%) !important;
  color:#b9c8da !important;
  border-right:1px solid rgba(255,255,255,.06) !important;
}
.app-sidebar .sidebar-brand{
  background:#071d3b !important;
  border-bottom:1px solid rgba(255,255,255,.055) !important;
}
.app-sidebar .brand-mark{
  background:#123568 !important;
  color:#fff !important;
}
.app-sidebar .brand-name{color:#f8fbff !important;font-weight:750 !important}
.app-sidebar .nav-section-label{
  color:#647b99 !important;
  letter-spacing:.13em !important;
  font-weight:800 !important;
}
.app-sidebar .nav-main,
.app-sidebar .nav-group-toggle{
  color:#aebed2 !important;
  background:transparent !important;
  border:1px solid transparent !important;
}
.app-sidebar .nav-main .tab-icon,
.app-sidebar .nav-group-toggle .tab-icon{
  color:#7388a3 !important;
  opacity:1 !important;
}
.app-sidebar .nav-main:hover,
.app-sidebar .nav-group-toggle:hover{
  background:rgba(18,53,104,.45) !important;
  color:#f4f8ff !important;
}
.app-sidebar .nav-main.active{
  background:#123568 !important;
  border:1px solid #3b82f6 !important;
  box-shadow:inset 3px 0 0 #60a5fa,0 3px 10px rgba(4,20,45,.18) !important;
  color:#fff !important;
}
.app-sidebar .nav-main.active .tab-icon,
.app-sidebar .nav-group.active > .nav-group-toggle .tab-icon{
  color:#60a5fa !important;
}
.app-sidebar .nav-group.active > .nav-group-toggle{
  color:#fff !important;
  background:rgba(18,53,104,.36) !important;
}
.app-sidebar .nav-group-items{
  border-left:1px solid rgba(116,145,180,.25) !important;
  margin-left:13px !important;
  padding-left:11px !important;
}
.app-sidebar .nav-group-items button{
  color:#8fa5bf !important;
  background:transparent !important;
  border:0 !important;
  min-height:31px !important;
}
.app-sidebar .nav-group-items button:hover{
  color:#fff !important;
  background:rgba(18,53,104,.35) !important;
}
.app-sidebar .nav-group-items button.active{
  color:#fff !important;
  background:rgba(18,53,104,.62) !important;
}
.app-sidebar .nav-group-items .dot{background:#557da9 !important}
.app-sidebar .nav-group-items button.active .dot{background:#60a5fa !important}
.app-sidebar .nav-chevron{color:#6f86a3 !important}
.app-sidebar .nav-group.open > .nav-group-toggle .nav-chevron{color:#9fc5f7 !important}

/* Demo banner follows the same Gemini blue rather than the generic primary. */
body.demo-mode .demo-banner{background:#3b82f6 !important}
body.demo-mode .demo-banner button{color:#1d4ed8 !important}
}
/* Source: css/inline-index-77.css */
@layer compatibility{
/* V136 — navegación contenida, clara y adaptable. */
.app-sidebar,
.app-sidebar *{box-sizing:border-box!important}

.app-sidebar{
  overflow-x:hidden!important;
  overflow-y:auto!important;
  scrollbar-width:thin;
  scrollbar-color:rgba(148,178,216,.28) transparent;
}
.app-sidebar::-webkit-scrollbar{width:5px}
.app-sidebar::-webkit-scrollbar-thumb{background:rgba(148,178,216,.25);border-radius:99px}

.app-sidebar .sidebar-brand{
  position:sticky!important;
  top:0!important;
  z-index:8!important;
  width:100%!important;
  min-width:0!important;
  padding:0 16px!important;
  gap:10px!important;
}
.app-sidebar .brand-mark{width:35px!important;height:35px!important;flex:0 0 35px!important;border-radius:10px!important}
.app-sidebar .brand-name{min-width:0!important;font-size:13.5px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}

.app-sidebar .app-nav,
.app-sidebar .sidebar-nav{
  width:100%!important;
  min-width:0!important;
  padding:10px 10px 22px!important;
  margin:0!important;
  gap:2px!important;
}
.app-sidebar .nav-section-label{
  width:100%!important;
  margin:16px 0 5px!important;
  padding:0 10px!important;
  line-height:1.25!important;
}
.app-sidebar .nav-section-label:first-child{margin-top:8px!important}

.app-sidebar .nav-main,
.app-sidebar .nav-group-toggle{
  position:relative!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  height:42px!important;
  min-height:42px!important;
  margin:0!important;
  padding:0 11px!important;
  gap:10px!important;
  border:0!important;
  border-radius:9px!important;
  overflow:hidden!important;
  box-shadow:none!important;
}
.app-sidebar .nav-main::before,
.app-sidebar .nav-group-toggle::before{
  content:"";
  position:absolute;
  left:0;
  top:8px;
  bottom:8px;
  width:3px;
  border-radius:0 4px 4px 0;
  background:transparent;
}
.app-sidebar .nav-main.active,
.app-sidebar .nav-group.active > .nav-group-toggle{
  background:linear-gradient(90deg,rgba(42,99,184,.72),rgba(18,53,104,.72))!important;
  color:#fff!important;
  box-shadow:inset 0 0 0 1px rgba(96,165,250,.32),0 5px 14px rgba(2,16,38,.16)!important;
}
.app-sidebar .nav-main.active::before,
.app-sidebar .nav-group.active > .nav-group-toggle::before{background:#66b1ff!important}
.app-sidebar .nav-main:hover:not(.active),
.app-sidebar .nav-group-toggle:hover{background:rgba(255,255,255,.065)!important}
.app-sidebar .nav-main:focus-visible,
.app-sidebar .nav-group-toggle:focus-visible,
.app-sidebar .nav-group-items button:focus-visible{outline:2px solid #78b7ff!important;outline-offset:-2px!important}
.app-sidebar .tab-label{min-width:0!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.app-sidebar .nav-chevron{margin-left:auto!important;flex:0 0 15px!important}

.app-sidebar .nav-group{width:100%!important;min-width:0!important;margin:0!important}
.app-sidebar .nav-group-items{
  width:calc(100% - 12px)!important;
  max-width:calc(100% - 12px)!important;
  margin:3px 0 5px 12px!important;
  padding:3px 0 3px 10px!important;
  overflow:hidden!important;
}
.app-sidebar .nav-group-items button{
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  height:34px!important;
  margin:0!important;
  padding:0 9px!important;
  gap:8px!important;
  border-radius:7px!important;
  overflow:hidden!important;
}
.app-sidebar .nav-group-items button.active{
  background:rgba(50,111,198,.3)!important;
  box-shadow:inset 0 0 0 1px rgba(96,165,250,.14)!important;
}
.app-sidebar .nav-group-items .tab-label{font-size:11.5px!important}

@media(max-width:900px){
  .app-sidebar{width:min(280px,86vw)!important;max-width:86vw!important}
  .app-sidebar .app-nav,.app-sidebar .sidebar-nav{padding-left:12px!important;padding-right:12px!important}
}
}
/* Source: css/inline-index-78.css */
@layer compatibility{
/* Una única geometría para todas las pestañas. Evita que Temporada y
   Jugadores se coloquen después de la altura calculada del sidebar. */
#app-shell{
  display:grid!important;
  grid-template-columns:220px minmax(0,1fr)!important;
  grid-template-rows:68px minmax(0,1fr)!important;
  grid-template-areas:"sidebar header" "sidebar main"!important;
  width:100%!important;
  height:100vh!important;
  min-height:0!important;
  overflow:hidden!important;
}
#app-shell>.app-sidebar{
  grid-area:sidebar!important;
  grid-column:1!important;
  grid-row:1 / -1!important;
  align-self:stretch!important;
  width:220px!important;
  height:100vh!important;
  min-height:0!important;
  position:relative!important;
  top:auto!important;
}
#app-shell>.app-header{
  grid-area:header!important;
  grid-column:2!important;
  grid-row:1!important;
  width:100%!important;
  height:68px!important;
  min-width:0!important;
  position:relative!important;
  top:auto!important;
}
#app-shell>main{
  grid-area:main!important;
  grid-column:2!important;
  grid-row:2!important;
  display:block!important;
  width:100%!important;
  height:auto!important;
  min-width:0!important;
  min-height:0!important;
  margin:0!important;
  padding:0!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
}
#dashboard-root{display:none!important;height:0!important;min-height:0!important;margin:0!important;padding:0!important}
#app-shell>main>.tab-panel{display:none!important;position:relative!important;inset:auto!important;transform:none!important}
#app-shell>main>.tab-panel.active{display:block!important}
body.demo-mode #app-shell{height:calc(100vh - 38px)!important;margin-top:38px!important}
body.demo-mode #app-shell>.app-sidebar{height:calc(100vh - 38px)!important}

@media(max-width:900px){
  #app-shell{grid-template-columns:minmax(0,1fr)!important;grid-template-areas:"header" "main"!important}
  #app-shell>.app-header{grid-column:1!important}
  #app-shell>.app-sidebar{position:fixed!important;top:0!important;left:0!important;width:min(280px,86vw)!important;height:100vh!important;z-index:300!important;transform:translateX(-100%)!important}
  #app-shell.sidebar-open>.app-sidebar{transform:translateX(0)!important}
  body.demo-mode #app-shell>.app-sidebar{top:38px!important;height:calc(100vh - 38px)!important}
  #app-shell>main{grid-column:1!important}
}
}
/* Source: css/tlm-performance-v140.css */
@layer compatibility{/* TrainingLoadManager V140 — unified performance interface */
:root{
 --tlm-ink:#101c2c;--tlm-muted:#64748b;--tlm-faint:#94a3b8;--tlm-bg:#f3f6f8;--tlm-surface:#fff;--tlm-soft:#f7f9fb;
 --tlm-line:#dce4ea;--tlm-line-strong:#cbd5df;--tlm-navy:#071727;--tlm-navy-2:#0c2238;--tlm-orange:#f26522;
 --tlm-blue:#2764dc;--tlm-green:#0e9f6e;--tlm-amber:#d48a0a;--tlm-red:#d64545;
 --tlm-r-xs:6px;--tlm-r-sm:9px;--tlm-r-md:12px;--tlm-r-lg:16px;--tlm-shadow:0 1px 2px rgba(15,23,42,.05),0 8px 24px rgba(15,23,42,.045);
 --tlm-s1:4px;--tlm-s2:8px;--tlm-s3:12px;--tlm-s4:16px;--tlm-s5:20px;--tlm-s6:24px;--tlm-s8:32px;--tlm-sidebar:248px;--tlm-header:64px;
 --p-blue:var(--tlm-blue);--p-navy:var(--tlm-ink);--p-text:var(--tlm-ink);--p-muted:var(--tlm-muted);--p-border:var(--tlm-line);--p-bg:var(--tlm-bg);--p-card:var(--tlm-surface);
}
html,body{background:var(--tlm-bg);color:var(--tlm-ink);font-family: Inter, system-ui, sans-serif;overflow-x:hidden}
#app-shell{display:grid;grid-template-columns:var(--tlm-sidebar) minmax(0,1fr);grid-template-rows:var(--tlm-header) minmax(calc(100vh - var(--tlm-header)),auto);min-height:100vh;background:var(--tlm-bg)}
.app-sidebar{position:fixed!important;inset:0 auto 0 0!important;width:var(--tlm-sidebar)!important;height:100vh!important;background:var(--tlm-navy)!important;border:0!important;box-shadow:none!important;z-index:100;display:flex!important;flex-direction:column;overflow:hidden;transition:width .22s ease,transform .22s ease}
.sidebar-brand{height:72px!important;min-height:72px;display:flex!important;align-items:center!important;padding:0 14px 0 18px!important;border-bottom:1px solid rgba(255,255,255,.08)!important;gap:11px!important}
.sidebar-brand .brand-mark{width:34px!important;height:34px!important;min-width:34px;border-radius:9px!important;object-fit:contain;background:transparent!important;box-shadow:none!important;padding:0!important}
.brand-lockup{min-width:0;line-height:1}.brand-name{font-size:14px!important;font-weight:750!important;letter-spacing:-.03em!important;color:#fff!important;white-space:nowrap}.brand-sub{font-size:8px!important;letter-spacing:.2em!important;color:#8195aa!important;margin-top:5px}
.sidebar-collapse,.mobile-nav-toggle,.sidebar-scrim{border:0;background:none}.sidebar-collapse{margin-left:auto;width:30px;height:30px;border-radius:8px;color:#91a5ba;display:grid;place-items:center;cursor:pointer}.sidebar-collapse:hover{color:#fff;background:rgba(255,255,255,.08)}.sidebar-collapse svg,.mobile-nav-toggle svg{width:19px;height:19px}
.app-nav{padding:13px 10px 24px!important;overflow-y:auto!important;overflow-x:hidden;scrollbar-width:thin;scrollbar-color:#294058 transparent;flex:1}
.app-nav .nav-section-label{margin:17px 10px 7px!important;padding:0!important;color:#70859a!important;font-size:9px!important;font-weight:800!important;letter-spacing:.14em!important;line-height:1!important;text-transform:uppercase;white-space:nowrap}.app-nav .nav-section-label:first-child{margin-top:6px!important}
.app-nav .nav-main,.app-nav .nav-group-toggle{position:relative!important;width:100%!important;min-height:40px!important;padding:0 10px!important;margin:2px 0!important;border:0!important;border-radius:9px!important;background:transparent!important;color:#a9bac9!important;display:flex!important;align-items:center!important;gap:11px!important;font:600 12.5px/1.2 inherit!important;text-align:left!important;cursor:pointer!important;box-shadow:none!important;overflow:hidden!important}
.app-nav .tab-icon{width:18px!important;height:18px!important;min-width:18px!important;color:#7f96ab!important;background:none!important;fill:none!important}.app-nav .tab-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.app-nav .nav-main:hover,.app-nav .nav-group-toggle:hover{background:rgba(255,255,255,.055)!important;color:#edf5fb!important}.app-nav button:focus-visible{outline:2px solid #ff945f!important;outline-offset:-2px}
.app-nav .nav-main.active,.app-nav .nav-group.active>.nav-group-toggle{background:#15314b!important;color:#fff!important}.app-nav .nav-main.active:before,.app-nav .nav-group.active>.nav-group-toggle:before{content:"";position:absolute;left:0;top:9px;bottom:9px;width:3px;border-radius:0 3px 3px 0;background:var(--tlm-orange)}.app-nav .nav-main.active .tab-icon,.app-nav .nav-group.active>.nav-group-toggle .tab-icon{color:#ff8953!important}
.nav-chevron{width:15px!important;height:15px!important;margin-left:auto!important;transition:transform .18s ease}.nav-group.open>.nav-group-toggle .nav-chevron{transform:rotate(180deg)}
.nav-group-items{display:grid!important;grid-template-rows:0fr!important;opacity:0;transition:grid-template-rows .2s ease,opacity .18s ease!important;padding:0!important;margin:0!important}.nav-group-items>*{overflow:hidden}.nav-group.open>.nav-group-items{grid-template-rows:1fr!important;opacity:1;padding:2px 0 5px!important}.nav-group-items button{min-height:34px!important;margin:1px 0 1px 29px!important;width:calc(100% - 29px)!important;padding:0 9px!important;border:0!important;border-radius:7px!important;background:transparent!important;color:#8298ab!important;display:flex!important;align-items:center!important;gap:9px!important;font:550 11.5px/1.2 inherit!important;text-align:left;cursor:pointer}.nav-group-items button:hover,.nav-group-items button.active{color:#fff!important;background:rgba(255,255,255,.05)!important}.nav-group-items .dot{width:4px!important;height:4px!important;border-radius:50%;background:#557087!important;flex:0 0 auto}.nav-group-items button.active .dot{background:var(--tlm-orange)!important}
.app-header{position:sticky!important;top:0!important;grid-column:2!important;grid-row:1!important;height:var(--tlm-header)!important;min-height:var(--tlm-header)!important;padding:0 24px!important;background:rgba(255,255,255,.94)!important;border-bottom:1px solid var(--tlm-line)!important;backdrop-filter:blur(12px);box-shadow:none!important;z-index:70;display:flex!important;align-items:center!important;justify-content:space-between!important}.app-header>div{gap:10px!important}.app-header .btn{min-height:34px!important;border-radius:8px!important;padding:6px 11px!important;font-size:12px!important}.app-header #header-equipo-select{min-width:150px!important;max-width:220px;border-radius:8px!important}.app-header .sub{font-size:11px!important;color:var(--tlm-muted)!important;background:var(--tlm-soft);border:1px solid var(--tlm-line);border-radius:7px;padding:7px 10px;text-transform:uppercase;letter-spacing:.05em;font-weight:700}.mobile-nav-toggle{display:none;color:var(--tlm-ink);width:36px;height:36px;border-radius:8px;place-items:center;cursor:pointer}.mobile-nav-toggle:hover{background:var(--tlm-soft)}
#app-shell>main{grid-column:2!important;grid-row:2!important;width:100%!important;min-width:0!important;margin:0!important;padding:0!important;background:var(--tlm-bg)!important;min-height:calc(100vh - var(--tlm-header))!important}
.tab-panel{width:100%!important;max-width:none!important;margin:0!important;padding:28px clamp(18px,2.6vw,40px) 52px!important;min-height:0!important;background:transparent!important;box-sizing:border-box!important}.tab-panel[style*="display: none"],.tab-panel:not(.active){min-height:0!important}
.tab-panel>.panel-header:first-child,.tab-panel>div>.panel-header:first-child{padding-top:0!important;margin-top:0!important}.panel-header{margin-bottom:18px!important;padding-bottom:13px!important;border-bottom:1px solid var(--tlm-line)!important}.panel-header h1,.panel-header h2,.tab-panel h1{font-size:clamp(21px,2vw,28px)!important;line-height:1.15!important;letter-spacing:-.035em!important;color:var(--tlm-ink)!important;margin:0!important}.panel-header p{margin:6px 0 0!important;color:var(--tlm-muted)!important;font-size:13px!important}
.card,.panel,.kpi,.table-wrap,.pricing-card,.salud-kpi,.fr-kpi{background:var(--tlm-surface)!important;border:1px solid var(--tlm-line)!important;border-radius:var(--tlm-r-md)!important;box-shadow:none!important}.card:hover,.pricing-card:hover{box-shadow:var(--tlm-shadow)!important;border-color:var(--tlm-line-strong)!important}.card,.panel{padding:18px!important}.kpi,.salud-kpi,.fr-kpi{padding:16px 17px!important;min-height:104px!important;position:relative;overflow:hidden}.kpi:before,.salud-kpi:before,.fr-kpi:before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:var(--tlm-blue)}
.kpi-grid,.salud-kpis,.fr-kpis,.stats-grid{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(170px,1fr))!important;gap:12px!important;margin:0 0 18px!important}.kpi .label,.salud-kpi-label,.fr-kpi-label{font-size:10px!important;letter-spacing:.08em!important;color:var(--tlm-muted)!important;text-transform:uppercase;font-weight:800!important}.kpi .value,.salud-kpi-value,.fr-kpi-value{font-size:26px!important;letter-spacing:-.04em!important;line-height:1.05!important;color:var(--tlm-ink)!important;margin-top:10px!important}.kpi .hint{font-size:11px!important;color:var(--tlm-muted)!important;margin-top:6px!important}
.btn{border-radius:8px!important;min-height:36px!important;font-weight:650!important;box-shadow:none!important}.btn-primary{background:var(--tlm-blue)!important;border-color:var(--tlm-blue)!important;color:#fff!important}.btn-primary:hover{background:#1f54bd!important}.btn-outline{background:#fff!important;border-color:var(--tlm-line-strong)!important;color:var(--tlm-ink)!important}.btn-outline:hover{background:var(--tlm-soft)!important;border-color:#aebdca!important}.btn-danger{background:var(--tlm-red)!important}.badge,.chip,.status-pill{border-radius:999px!important;font-size:10px!important;font-weight:750!important;letter-spacing:.02em!important}
input,select,textarea{border:1px solid var(--tlm-line-strong)!important;border-radius:8px!important;background:#fff!important;color:var(--tlm-ink)!important;min-height:38px!important;box-shadow:none!important}input:focus,select:focus,textarea:focus{border-color:var(--tlm-blue)!important;outline:3px solid rgba(39,100,220,.12)!important}.form-grid{gap:14px!important}.form-group label,label.form-label{font-size:11px!important;font-weight:750!important;color:#415269!important;margin-bottom:6px!important}
table{border-collapse:separate!important;border-spacing:0!important;width:100%}thead th{background:#f6f8fa!important;color:#52657a!important;font-size:9.5px!important;letter-spacing:.065em!important;text-transform:uppercase!important;font-weight:800!important;border-bottom:1px solid var(--tlm-line)!important;padding:10px 12px!important}tbody td{border-bottom:1px solid #edf1f4!important;padding:11px 12px!important;font-size:12px!important;color:#26374a!important}tbody tr:hover td{background:#fafbfd!important}.table-wrap{overflow:auto!important;padding:0!important}
.chart-container,.chart-wrap,[class*="chart-card"]{min-height:0!important}.chart-container canvas,.chart-wrap canvas{max-height:320px!important}.dashboard-grid,.charts-grid,.analysis-grid{gap:14px!important}.empty-state{padding:34px 20px!important;min-height:0!important;color:var(--tlm-muted)!important}.info-banner,.tip-banner,.alert-info{border:1px solid #cfe0f7!important;border-left:3px solid var(--tlm-blue)!important;background:#f5f9ff!important;border-radius:9px!important;padding:11px 13px!important;font-size:12px!important}
.modal-content,.modal-card{border-radius:16px!important;border:1px solid var(--tlm-line)!important;box-shadow:0 20px 60px rgba(15,23,42,.18)!important}.modal-header{border-bottom:1px solid var(--tlm-line)!important;padding:17px 20px!important}.modal-body{padding:20px!important}.modal-footer{border-top:1px solid var(--tlm-line)!important;padding:14px 20px!important}
.sidebar-collapsed{--tlm-sidebar:72px}.sidebar-collapsed .brand-lockup,.sidebar-collapsed .nav-section-label,.sidebar-collapsed .app-nav .tab-label,.sidebar-collapsed .nav-chevron{display:none!important}.sidebar-collapsed .sidebar-brand{padding:0 18px!important}.sidebar-collapsed .sidebar-collapse{position:absolute;right:5px;bottom:-32px;background:var(--tlm-navy-2)}.sidebar-collapsed .sidebar-collapse svg{transform:rotate(180deg)}.sidebar-collapsed .app-nav{padding:42px 10px 20px!important}.sidebar-collapsed .app-nav .nav-main,.sidebar-collapsed .app-nav .nav-group-toggle{justify-content:center!important;padding:0!important}.sidebar-collapsed .nav-group-items{display:none!important}
.sidebar-scrim{display:none}
@media(max-width:1100px){:root{--tlm-sidebar:218px}.tab-panel{padding-left:22px!important;padding-right:22px!important}.app-header{padding:0 18px!important}.app-header .ah-user-name{display:none}.app-header>div:last-of-type{gap:6px!important}}
@media(max-width:820px){#app-shell{display:block!important;padding-top:var(--tlm-header)}.app-sidebar{transform:translateX(-100%);width:min(286px,86vw)!important;box-shadow:20px 0 60px rgba(4,15,27,.3)!important}.mobile-nav-open .app-sidebar{transform:translateX(0)}.sidebar-collapse{display:none}.app-header{position:fixed!important;left:0;right:0;top:0;grid-column:auto!important;padding:0 12px!important}.mobile-nav-toggle{display:grid}.app-header .sub,.app-header .btn[title="Guardar copia local"]{display:none!important}.app-header #header-equipo-select{min-width:120px!important;max-width:170px!important}.app-header>div:last-of-type>div:first-child .btn:last-child{font-size:0!important}.app-header>div:last-of-type>div:first-child .btn:last-child svg{margin:0!important}.sidebar-scrim{display:block;position:fixed;inset:0;background:rgba(3,12,23,.5);z-index:90;opacity:0;pointer-events:none;transition:opacity .2s}.mobile-nav-open .sidebar-scrim{opacity:1;pointer-events:auto}.tab-panel{padding:20px 14px 40px!important}.kpi-grid,.salud-kpis,.fr-kpis,.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:520px){.app-header #header-equipo-select{max-width:130px!important;padding-inline:8px!important}.app-header .ah-user-avatar{width:30px!important;height:30px!important}.kpi-grid,.salud-kpis,.fr-kpis,.stats-grid{grid-template-columns:1fr!important}.card,.panel{padding:14px!important}.panel-header h1,.panel-header h2,.tab-panel h1{font-size:21px!important}.modal-body{padding:15px!important}.form-grid{grid-template-columns:1fr!important}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition-duration:.01ms!important}}
.card[style*="var(--p-navy-deep)"]{background:var(--tlm-navy-2)!important;color:#fff!important;border-color:#17344f!important}
@media(max-width:820px){#app-shell .app-sidebar{transform:translateX(-100%)!important}#app-shell.mobile-nav-open .app-sidebar{transform:translateX(0)!important}}
#app-shell>.app-sidebar{width:var(--tlm-sidebar)!important}
.sidebar-collapse,.mobile-nav-toggle,.sidebar-scrim{pointer-events:auto!important}
#app-shell.sidebar-collapsed{--tlm-sidebar:72px!important}
}
/* Source: css/tlm-top-navigation-v141.css */
@layer compatibility{/* V141 — horizontal application navigation and zero-offset content flow */
:root{--tlm-topnav-h:68px;--tlm-context-h:58px}
#app-shell,#app-shell.sidebar-collapsed{
 --tlm-sidebar:100%!important;
 display:grid!important;
 grid-template-columns:minmax(0,1fr)!important;
 grid-template-rows:var(--tlm-topnav-h) var(--tlm-context-h) auto!important;
 grid-template-areas:"navigation" "context" "content"!important;
 width:100%!important;height:auto!important;min-height:100vh!important;
 margin-left:0!important;padding:0!important;
}
#app-shell>.app-sidebar{
 grid-area:navigation!important;position:sticky!important;inset:0 auto auto 0!important;
 width:100%!important;height:var(--tlm-topnav-h)!important;min-height:var(--tlm-topnav-h)!important;
 display:flex!important;flex-direction:row!important;align-items:center!important;
 overflow:visible!important;background:var(--tlm-navy)!important;z-index:120!important;
 border:0!important;border-bottom:1px solid rgba(255,255,255,.1)!important;
 transform:none!important;
}
#app-shell .sidebar-brand{
 width:220px!important;height:var(--tlm-topnav-h)!important;min-height:var(--tlm-topnav-h)!important;
 flex:0 0 220px!important;padding:0 18px!important;border:0!important;border-right:1px solid rgba(255,255,255,.09)!important;
}
#app-shell .sidebar-collapse,#app-shell .mobile-nav-toggle,#app-shell .sidebar-scrim{display:none!important}
#app-shell .brand-lockup{display:block!important}
#app-shell .app-nav{
 height:100%!important;min-width:0!important;flex:1!important;padding:0 14px!important;
 display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;gap:3px!important;overflow-x:auto!important;overflow-y:hidden!important;
 scrollbar-width:thin!important;
}
#app-shell .app-nav>.nav-section-label{display:none!important}
#app-shell .app-nav>.nav-main,#app-shell .app-nav>.nav-group>.nav-group-toggle{
 width:auto!important;min-width:max-content!important;height:40px!important;min-height:40px!important;
 margin:0!important;padding:0 11px!important;border-radius:8px!important;gap:8px!important;
 color:#adbdca!important;font-size:11.5px!important;
}
#app-shell .app-nav>.nav-main .tab-label,#app-shell .app-nav>.nav-group>.nav-group-toggle .tab-label{display:inline!important;overflow:visible!important}
#app-shell .app-nav>.nav-main.active:before,#app-shell .app-nav>.nav-group.active>.nav-group-toggle:before{
 left:10px!important;right:10px!important;top:auto!important;bottom:-14px!important;width:auto!important;height:3px!important;border-radius:3px 3px 0 0!important;
}
#app-shell .app-nav>.nav-group{position:relative!important;display:block!important;width:auto!important;height:40px!important;min-height:40px!important;flex:0 0 auto!important;margin:0!important;padding:0!important}
#app-shell .app-nav .nav-group-items{
 position:fixed!important;top:68px!important;left:auto!important;width:220px!important;
 display:none!important;padding:7px!important;margin:0!important;background:#0d2236!important;
 border:1px solid #253b50!important;border-radius:10px!important;box-shadow:0 18px 38px rgba(3,12,23,.28)!important;
 grid-template-rows:none!important;opacity:1!important;z-index:300!important;
}
#app-shell .app-nav .nav-group.open>.nav-group-items{display:block!important}
#app-shell .app-nav .nav-group-items button{
 width:100%!important;min-height:36px!important;margin:1px 0!important;padding:0 10px!important;color:#aabcc9!important;
}
#app-shell>.app-header{
 grid-area:context!important;position:sticky!important;top:var(--tlm-topnav-h)!important;left:auto!important;right:auto!important;
 width:100%!important;height:var(--tlm-context-h)!important;min-height:var(--tlm-context-h)!important;
 margin:0!important;padding:0 clamp(16px,2.4vw,36px)!important;z-index:100!important;
}
#app-shell>main{
 grid-area:content!important;grid-column:1!important;grid-row:3!important;position:relative!important;inset:auto!important;
 display:block!important;width:100%!important;height:auto!important;min-height:calc(100vh - var(--tlm-topnav-h) - var(--tlm-context-h))!important;
 margin:0!important;padding:0!important;overflow:visible!important;align-self:start!important;
}
#app-shell>main>#dashboard-root{display:none!important;position:static!important;width:0!important;height:0!important;min-height:0!important;margin:0!important;padding:0!important}
#app-shell>main>.tab-panel,#app-shell>main>.tab-panel.active{
 position:relative!important;inset:auto!important;top:auto!important;left:auto!important;right:auto!important;bottom:auto!important;
 transform:none!important;float:none!important;clear:none!important;width:100%!important;height:auto!important;min-height:0!important;
 margin:0!important;padding:24px clamp(16px,2.5vw,38px) 48px!important;vertical-align:top!important;
}
#app-shell>main>.tab-panel:not(.active){display:none!important}
#app-shell>main>.tab-panel.active{display:block!important}
#app-shell>main>.tab-panel.active>:first-child{margin-top:0!important}
#tab-temporada,#tab-perfiles,#tab-planificación,#tab-readiness,#tab-antropometria{padding-top:24px!important}
body.demo-mode #app-shell{height:auto!important;min-height:calc(100vh - 38px)!important;margin-top:38px!important}
body.demo-mode #app-shell>.app-sidebar{top:0!important;height:var(--tlm-topnav-h)!important}
body.demo-mode #app-shell>.app-header{top:var(--tlm-topnav-h)!important}
body.demo-mode #app-shell .app-nav .nav-group-items{top:106px!important}

@media(max-width:1180px){
 #app-shell .sidebar-brand{width:178px!important;flex-basis:178px!important}
 #app-shell .brand-name{font-size:12px!important}
 #app-shell .app-nav{padding-inline:8px!important;gap:0!important}
 #app-shell .app-nav>.nav-main,#app-shell .app-nav>.nav-group>.nav-group-toggle{padding-inline:8px!important;font-size:10.5px!important}
 #app-shell .app-nav .tab-icon{width:16px!important;height:16px!important;min-width:16px!important}
}
@media(max-width:900px){
 :root{--tlm-topnav-h:116px;--tlm-context-h:54px}
 #app-shell>.app-sidebar{display:grid!important;grid-template-columns:1fr!important;grid-template-rows:52px 64px!important;align-items:stretch!important}
 #app-shell .sidebar-brand{width:100%!important;height:52px!important;min-height:52px!important;flex-basis:auto!important;border-right:0!important;border-bottom:1px solid rgba(255,255,255,.08)!important;padding-inline:14px!important}
 #app-shell .sidebar-brand .brand-mark{width:29px!important;height:29px!important;min-width:29px!important}
 #app-shell .app-nav{width:100%!important;height:64px!important;overflow-x:auto!important;overflow-y:visible!important;padding:0 10px!important;justify-content:flex-start!important}
 #app-shell .app-nav>.nav-main,#app-shell .app-nav>.nav-group>.nav-group-toggle{height:38px!important;min-height:38px!important}
 #app-shell .app-nav>.nav-main.active:before,#app-shell .app-nav>.nav-group.active>.nav-group-toggle:before{bottom:-13px!important}
 #app-shell .app-nav .nav-group-items{position:fixed!important;top:104px!important;left:12px!important;width:min(260px,calc(100vw - 24px))!important}
 #app-shell>.app-header{padding-inline:12px!important}
 body.demo-mode #app-shell>.app-header{top:var(--tlm-topnav-h)!important}
 body.demo-mode #app-shell .app-nav .nav-group-items{top:154px!important}
 #app-shell>main>.tab-panel,#app-shell>main>.tab-panel.active{padding:18px 14px 38px!important}
}
@media(max-width:560px){
 #app-shell .app-header .ah-title-wrap{min-width:0!important;flex:1!important}
 #app-shell .app-header #header-equipo-select{max-width:138px!important}
 #app-shell .app-header>div:last-of-type>div:first-child{display:none!important}
 #app-shell .app-nav>.nav-main,#app-shell .app-nav>.nav-group>.nav-group-toggle{padding-inline:9px!important}
}
}
/* Source: css/tlm-polish-v142.css */
@layer compatibility{/* V142 — visual review: compact navigation, quieter surfaces and sports-science hierarchy */
:root{
 --tlm-bg:#eef3f6;--tlm-soft:#f5f8fa;--tlm-line:#d9e2e8;--tlm-line-strong:#c7d3dc;
 --tlm-ink:#122033;--tlm-muted:#65758a;--tlm-navy:#071827;--tlm-navy-2:#0c263b;
 --tlm-blue:#2563b9;--tlm-orange:#f06a2a;--tlm-green:#168966;--tlm-amber:#c98312;--tlm-red:#cf4654;
}
body,#app-shell,#app-shell>main{background:var(--tlm-bg)!important}
#app-shell .sidebar-collapse{
 display:grid!important;position:static!important;flex:0 0 30px!important;width:30px!important;height:30px!important;
 margin-left:auto!important;place-items:center!important;background:rgba(255,255,255,.055)!important;
 border:1px solid rgba(255,255,255,.08)!important;border-radius:8px!important;color:#91a6b8!important;cursor:pointer!important;
}
#app-shell .sidebar-collapse:hover{background:rgba(255,255,255,.1)!important;color:#fff!important}
#app-shell.topnav-compact .sidebar-brand{width:104px!important;flex-basis:104px!important;padding:0 10px 0 17px!important;border-right:1px solid rgba(255,255,255,.1)!important}
#app-shell.topnav-compact .sidebar-brand .brand-lockup{display:none!important}
#app-shell.topnav-compact .sidebar-collapse{display:grid!important;margin-left:auto!important}
#app-shell.topnav-compact .sidebar-collapse svg{transform:rotate(180deg)!important}
#app-shell.topnav-compact .app-nav>.nav-main,#app-shell.topnav-compact .app-nav>.nav-group>.nav-group-toggle{
 width:46px!important;min-width:46px!important;padding:0!important;justify-content:center!important;
}
#app-shell.topnav-compact .app-nav>.nav-main .tab-label,#app-shell.topnav-compact .app-nav>.nav-group>.nav-group-toggle .tab-label,#app-shell.topnav-compact .app-nav .nav-chevron{display:none!important}
#app-shell.topnav-compact .app-nav>.nav-main.active:before,#app-shell.topnav-compact .app-nav>.nav-group.active>.nav-group-toggle:before{left:7px!important;right:7px!important}
#app-shell.topnav-compact .app-nav .nav-group-items .tab-label{display:inline!important}
.app-header{background:rgba(255,255,255,.96)!important}
.tab-panel>.panel-header:first-child{background:transparent!important}
.panel-header{align-items:center!important;min-height:52px!important;margin-bottom:16px!important;padding:0 0 13px!important}
.panel-header h2,.panel-header .panel-title,.fr-title{font-size:clamp(22px,2vw,27px)!important;letter-spacing:-.035em!important;font-weight:780!important}
.card,.panel,.table-wrap,.kpi,.salud-kpi,.fr-kpi{border-color:var(--tlm-line)!important;background:#fff!important}
.card,.panel{border-radius:13px!important}.card:hover{border-color:#c7d3dc!important;box-shadow:0 8px 24px rgba(31,48,67,.055)!important}
.card-title{color:#405269!important;font-size:10.5px!important;letter-spacing:.045em!important;font-weight:800!important;padding-bottom:11px!important;margin-bottom:13px!important;border-bottom:1px solid #e5ebef!important}
.kpi,.salud-kpi,.fr-kpi{border-radius:11px!important;box-shadow:0 1px 1px rgba(15,23,42,.025)!important}
.kpi:before,.salud-kpi:before,.fr-kpi:before{width:3px!important;background:#3c72bd!important}.kpi:nth-child(3n+2):before{background:var(--tlm-green)!important}.kpi:nth-child(3n):before{background:var(--tlm-orange)!important}
.kpi .value,.salud-kpi-value,.fr-kpi-value{font-variant-numeric:tabular-nums!important}
.info-banner,.tip-banner,.alert-info{background:#f4f8fc!important;border-color:#d4e1ec!important;border-left-color:#3975c5!important;color:#344a62!important}
.table-wrap{box-shadow:none!important}thead th{background:#f3f6f8!important;color:#55677b!important;border-right:0!important}tbody td{border-right:0!important;border-bottom-color:#e7edf1!important}tbody tr:nth-child(even) td{background:#f9fbfc!important}tbody tr:hover td{background:#f1f6fa!important}
.btn{letter-spacing:0!important}.btn-primary{background:#2865b7!important;border-color:#2865b7!important}.btn-primary:hover{background:#205596!important}.btn-outline{border-color:#ccd7df!important}
.badge,.chip,.status-pill{box-shadow:none!important}.status-risk,.badge-danger{background:#fdecef!important;color:#bc384a!important}.status-ok,.badge-success{background:#e8f6f0!important;color:#117454!important}.status-warning,.badge-warning{background:#fff4dd!important;color:#a5660a!important}
.grid-2{gap:14px!important}.grid-2>.card{min-width:0!important}
canvas{filter:saturate(.88) contrast(.98)}
#tab-cargas .player-card,#tab-cargas [class*="player-card"]{border-top-width:1px!important;border-left-width:3px!important;border-radius:12px!important;box-shadow:none!important}
#tab-cargas .player-card:hover,#tab-cargas [class*="player-card"]:hover{transform:none!important;border-color:#b9c9d5!important}
#tab-wellness tbody td:not(:first-child){font-variant-numeric:tabular-nums;font-weight:650}
#tab-wellness .kpi:nth-child(3):before{background:var(--tlm-amber)!important}#tab-wellness .kpi:nth-child(4):before{background:var(--tlm-red)!important}
#tab-temporada .grid-2>.card,#tab-readiness .card,#tab-antropometria .card{overflow:hidden!important}
.empty-state{background:#f7f9fa!important;border:1px dashed #cbd7df!important;border-radius:11px!important}
@media(max-width:900px){
 #app-shell .sidebar-collapse{display:none!important}
 #app-shell.topnav-compact .sidebar-brand{width:100%!important;padding:0 14px!important}
 #app-shell.topnav-compact .sidebar-brand .brand-lockup{display:block!important}
 #app-shell.topnav-compact .app-nav>.nav-main,#app-shell.topnav-compact .app-nav>.nav-group>.nav-group-toggle{width:auto!important;min-width:max-content!important;padding:0 9px!important}
 #app-shell.topnav-compact .app-nav>.nav-main .tab-label,#app-shell.topnav-compact .app-nav>.nav-group>.nav-group-toggle .tab-label{display:inline!important}
}
}
/* Source: css/tlm-navigation-charts-v143.css */
@layer compatibility{/* V143 — stable top navigation, focus mode and chart presentation */
#app-shell>.app-sidebar{position:fixed!important;top:0!important;left:0!important;right:0!important;bottom:auto!important}
#app-shell>.app-header{position:fixed!important;top:var(--tlm-topnav-h)!important;left:0!important;right:0!important}
body.demo-mode #app-shell>.app-sidebar{top:38px!important}
.report-guide{padding:0!important;overflow:hidden}.report-guide summary{display:flex;justify-content:space-between;align-items:center;cursor:pointer;padding:14px 16px;color:#24384d}.report-guide summary span{font-size:10px;color:#64748b}.report-guide-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;background:var(--tlm-line);border-top:1px solid var(--tlm-line)}.report-guide-grid>div{background:#fff;padding:14px 16px}.report-guide-grid strong{font-size:11px;color:#203348}.report-guide-grid p{margin:5px 0 0;color:#6b7c90;font-size:10.5px;line-height:1.5}@media(max-width:900px){.report-guide-grid{grid-template-columns:1fr 1fr}}@media(max-width:580px){.report-guide-grid{grid-template-columns:1fr}}
body.demo-mode #app-shell>.app-header{top:calc(38px + var(--tlm-topnav-h))!important}
#app-shell .app-nav{display:flex!important;width:100%!important;gap:4px!important;padding:0 10px!important}
#app-shell .app-nav>.nav-main,#app-shell .app-nav>.nav-group{flex-grow:1!important;flex-shrink:1!important;flex-basis:0!important;min-width:0!important;max-width:none!important;width:0!important}
#app-shell .app-nav>.nav-main,#app-shell .app-nav>.nav-group>.nav-group-toggle{width:100%!important;min-width:0!important;justify-content:center!important;padding-inline:7px!important}
#app-shell .app-nav>.nav-main .tab-label,#app-shell .app-nav>.nav-group>.nav-group-toggle .tab-label{min-width:0!important;text-overflow:ellipsis!important;overflow:hidden!important}
#app-shell .app-nav .nav-group-items{top:var(--tlm-topnav-h)!important}
body.demo-mode #app-shell .app-nav .nav-group-items{top:calc(38px + var(--tlm-topnav-h))!important}
#app-shell.topnav-compact{--tlm-topnav-h:50px!important;--tlm-context-h:46px!important}
#app-shell.topnav-compact>.app-sidebar{height:50px!important;min-height:50px!important}
#app-shell.topnav-compact .sidebar-brand{height:50px!important;min-height:50px!important}
#app-shell.topnav-compact .app-nav{height:50px!important}
#app-shell.topnav-compact>.app-header{height:46px!important;min-height:46px!important;padding-block:0!important}
#app-shell.topnav-compact .app-header .btn{min-height:30px!important;padding-block:4px!important}
#app-shell.topnav-compact .app-header .sub{padding-block:5px!important}
#app-shell.topnav-compact .app-nav>.nav-main,#app-shell.topnav-compact .app-nav>.nav-group{flex:1 1 0!important;width:auto!important;min-width:0!important}
#app-shell.topnav-compact .app-nav>.nav-main,#app-shell.topnav-compact .app-nav>.nav-group>.nav-group-toggle{width:100%!important;height:34px!important;min-height:34px!important}
#app-shell.topnav-compact .app-nav>.nav-main.active:before,#app-shell.topnav-compact .app-nav>.nav-group.active>.nav-group-toggle:before{bottom:-8px!important}
.chart-container,.chart-wrap,[class*="chart-card"],.card:has(>div>canvas){background:#fff!important}
.card canvas{border-radius:8px}
.chart-legend,.chartjs-legend{font-size:11px!important;color:#526479!important}
@media(max-width:1180px){
 #app-shell .app-nav>.nav-main .tab-label,#app-shell .app-nav>.nav-group>.nav-group-toggle .tab-label{font-size:10px!important}
 #app-shell .app-nav{gap:1px!important;padding-inline:6px!important}
}
@media(max-width:900px){
 #app-shell>.app-sidebar{height:var(--tlm-topnav-h)!important}
 #app-shell .app-nav{overflow-x:auto!important;justify-content:flex-start!important}
 #app-shell .app-nav>.nav-main,#app-shell .app-nav>.nav-group{flex:0 0 auto!important;width:auto!important;min-width:max-content!important}
 #app-shell .app-nav>.nav-main,#app-shell .app-nav>.nav-group>.nav-group-toggle{width:auto!important;min-width:max-content!important;padding-inline:10px!important}
 #app-shell .app-nav>.nav-main .tab-label,#app-shell .app-nav>.nav-group>.nav-group-toggle .tab-label{font-size:10.5px!important;overflow:visible!important}
 #app-shell .app-nav .nav-group-items{top:var(--tlm-topnav-h)!important}
 body.demo-mode #app-shell .app-nav .nav-group-items{top:calc(38px + var(--tlm-topnav-h))!important}
}
}
/* Source: css/product-facing-v149.css */
@layer compatibility{/* V149 — product-facing visual layer */
:root{--pf-blue:#2563eb;--pf-blue-dark:#173f86;--pf-orange:#f06a2a;--pf-ink:#10243c;--pf-muted:#6c7f95;--pf-line:#dbe5ef;--pf-soft:#f5f8fc;--pf-shadow:0 12px 32px rgba(22,48,82,.07)}

/* Shared module heading */
.tab-panel>.panel-header,.tab-panel>.fr-hero{position:relative;background:linear-gradient(120deg,#fff 0%,#f7faff 72%,#fff5ee 100%)!important;border:1px solid var(--pf-line)!important;border-radius:18px!important;padding:22px 24px!important;margin-bottom:18px!important;box-shadow:var(--pf-shadow)!important;overflow:hidden}
.tab-panel>.panel-header:before,.tab-panel>.fr-hero:before{content:"";position:absolute;inset:0 auto 0 0;width:5px;background:linear-gradient(180deg,var(--pf-blue),var(--pf-orange))}
.tab-panel>.panel-header h2,.fr-title{color:var(--pf-ink)!important;letter-spacing:-.035em!important}

/* Segmented controls */
.tab-panel .cargas-mode-toggle{display:inline-flex!important;align-items:center!important;gap:4px!important;padding:4px!important;border:1px solid #d7e1ec!important;border-radius:13px!important;background:#eaf0f7!important;box-shadow:inset 0 1px 2px rgba(15,35,60,.04)!important}
.tab-panel .cargas-mode-btn{min-height:38px!important;padding:0 15px!important;border:0!important;border-radius:9px!important;background:transparent!important;color:#6b7e94!important;font-size:12px!important;font-weight:750!important;box-shadow:none!important;transition:background .18s,color .18s,transform .18s!important}
.tab-panel .cargas-mode-btn:hover{background:rgba(255,255,255,.65)!important;color:var(--pf-blue-dark)!important}
.tab-panel .cargas-mode-btn.active{background:#fff!important;color:var(--pf-blue)!important;box-shadow:0 4px 12px rgba(28,63,105,.12)!important}
.tab-panel .cargas-mode-btn svg{margin-right:5px!important;vertical-align:-2px!important}
.tab-panel .btn{border-radius:10px!important;font-weight:750!important;box-shadow:none!important;transition:transform .18s,box-shadow .18s,background .18s!important}.tab-panel .btn:hover{transform:translateY(-1px);box-shadow:0 7px 18px rgba(24,55,91,.11)!important}.tab-panel .btn-primary,.tab-panel .fr-actions .btn:first-child{background:linear-gradient(135deg,var(--pf-blue),#3b82f6)!important;border-color:transparent!important;color:#fff!important}

/* Report */
#tab-temporada>.card:last-child{background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important}
#tab-temporada>.card:last-child>.card-title{font-size:17px!important;color:var(--pf-ink)!important;border:0!important;margin-bottom:4px!important}
#tab-temporada>.card:last-child>.grid-2{gap:16px!important;margin-top:16px!important}
.report-chart-panel{background:#fff;border:1px solid var(--pf-line);border-radius:16px;padding:16px 17px 13px;box-shadow:var(--pf-shadow);min-width:0}
.report-chart-head{display:flex;justify-content:space-between;align-items:flex-start;min-height:62px;border-bottom:1px solid #edf1f6;margin-bottom:10px;padding-bottom:11px}.report-chart-head strong{display:block;font-size:13px;color:var(--pf-ink);margin:7px 0 3px}.report-chart-head small{display:block;font-size:10px;color:var(--pf-muted);line-height:1.45}.report-scope{display:inline-flex;border-radius:999px;padding:4px 8px;font-size:8.5px;font-weight:850;letter-spacing:.07em;text-transform:uppercase}.report-scope.team{background:#e9f1ff;color:#2459ad}.report-scope.player{background:#e8f7f1;color:#168263}
#tab-temporada .report-chart-panel canvas{filter:saturate(.9)}

/* External load */
#tab-externa .ce-day-navigator{background:#fff!important;border:1px solid var(--pf-line)!important;border-radius:14px!important;padding:7px!important;box-shadow:var(--pf-shadow)!important;width:max-content;max-width:100%}
#tab-externa .ce-day-chip{border:1px solid transparent!important;border-radius:10px!important;background:#f4f7fb!important;min-width:54px!important}#tab-externa .ce-day-chip.active{background:linear-gradient(145deg,#183a68,#315c93)!important;color:#fff!important;box-shadow:0 7px 16px rgba(25,61,105,.2)!important}
#tab-externa .ce-day-stats-bar{gap:10px!important;background:transparent!important}.ce-day-stats-bar .dsb-item{background:#fff!important;border:1px solid var(--pf-line)!important;border-radius:13px!important;padding:12px 14px!important;box-shadow:0 7px 20px rgba(25,55,90,.045)!important}
#tab-externa .ce-quick-actions{border:1px solid var(--pf-line)!important;border-radius:13px!important;background:#fff!important;padding:9px!important}.ce-qa-btn,.ce-qa-preset,.ce-qa-add-custom{border-radius:8px!important;border-color:#dce5ef!important;background:#f8fafc!important;color:#43566d!important;font-weight:700!important}

/* Fatigue and response */
#tab-readiness{background:radial-gradient(circle at 95% 2%,rgba(240,106,42,.07),transparent 24%),linear-gradient(#f3f7fb,#eef4f8)!important}
#tab-readiness .fr-hero{align-items:center!important;margin-bottom:16px!important}
#tab-readiness .fr-title{font-size:27px!important;margin-bottom:7px!important}.fr-subtitle{max-width:830px!important;color:#60758d!important;line-height:1.55!important}
#tab-readiness .fr-card{border-color:var(--pf-line)!important;border-radius:16px!important;box-shadow:var(--pf-shadow)!important;background:rgba(255,255,255,.96)!important;padding:18px!important}
#tab-readiness .fr-select{border:1px solid #d6e2ee!important;border-radius:11px!important;background:#f8fafc!important;min-height:42px!important;padding:0 14px!important;color:#263d57!important;font-weight:700!important}
#tab-readiness .fr-kpi{position:relative;border:1px solid var(--pf-line)!important;border-radius:15px!important;background:#fff!important;padding:16px!important;box-shadow:0 9px 24px rgba(25,55,90,.055)!important;overflow:hidden}.fr-kpi:before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:var(--pf-blue)}.fr-kpi[data-tone="good"]:before{background:#16a37e}.fr-kpi[data-tone="warn"]:before{background:#e99a23}.fr-kpi[data-tone="danger"]:before{background:#d94b5a}
#tab-readiness .fr-grid{gap:16px!important;grid-template-columns:minmax(0,1.55fr) minmax(320px,.8fr)!important}.fr-legend{gap:8px!important}.fr-legend-item{background:#f7f9fc!important;border:1px solid #e3eaf2!important;border-radius:11px!important;padding:11px!important}.fr-signal{border-radius:13px!important}

/* Agenda — communicate the workflow before the dense calendar */
#tab-planificación{background:radial-gradient(circle at 94% 2%,rgba(37,99,235,.07),transparent 25%),linear-gradient(#f4f8fc,#eef4f8)!important}
#tab-planificación>.panel-header{margin-bottom:12px!important}
.agenda-capabilities{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:0 0 16px}
.agenda-capabilities>div{position:relative;min-height:94px;padding:15px 14px 13px 48px;background:rgba(255,255,255,.94);border:1px solid var(--pf-line);border-radius:14px;box-shadow:0 8px 22px rgba(25,55,90,.05)}
.agenda-capabilities span{position:absolute;left:13px;top:14px;display:grid;place-items:center;width:26px;height:26px;border-radius:8px;background:#eaf1ff;color:#2563b9;font-size:9px;font-weight:900}
.agenda-capabilities strong{display:block;color:var(--pf-ink);font-size:12px;margin-bottom:5px}.agenda-capabilities small{display:block;color:var(--pf-muted);font-size:10px;line-height:1.45}
#tab-planificación .card{border-color:var(--pf-line)!important;border-radius:16px!important;box-shadow:var(--pf-shadow)!important;background:rgba(255,255,255,.96)!important}
#tab-planificación .plan-tipo-selector{background:#fff!important;border:1px solid var(--pf-line)!important;border-radius:15px!important;padding:12px!important;box-shadow:var(--pf-shadow)!important}

/* Anthropometry — clinical precision with the same product language */
#tab-antropometria{background:radial-gradient(circle at 95% 0,rgba(22,163,126,.08),transparent 25%),linear-gradient(#f4f8fb,#eef4f8)!important}
#tab-antropometria>.isak-hero{position:relative;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:24px;background:linear-gradient(120deg,#fff 0%,#f5fbfa 64%,#edf5ff 100%)!important;border:1px solid var(--pf-line)!important;border-radius:18px!important;padding:24px!important;margin-bottom:13px!important;box-shadow:var(--pf-shadow)!important;overflow:hidden}
#tab-antropometria>.isak-hero:before{content:"";position:absolute;inset:0 auto 0 0;width:5px;background:linear-gradient(180deg,#16a37e,var(--pf-blue))}
#tab-antropometria .isak-kicker{display:inline-flex;padding:5px 9px;border-radius:999px;background:#e7f7f1;color:#12805f;font-size:9px;font-weight:900;letter-spacing:.09em;margin-bottom:9px}
#tab-antropometria .isak-hero h2{font-size:29px!important;letter-spacing:-.04em;color:var(--pf-ink)!important;margin:0 0 7px!important}
#tab-antropometria .isak-hero p{max-width:720px!important;color:#60758d!important;line-height:1.5!important;margin:0!important}
#tab-antropometria .isak-hero-actions{display:flex;gap:9px;flex:0 0 auto}
#tab-antropometria .isak-principle{display:grid!important;grid-template-columns:auto repeat(3,minmax(0,1fr));gap:8px!important;align-items:stretch!important;background:transparent!important;border:0!important;padding:0!important;margin:0 0 14px!important}
#tab-antropometria .isak-principle strong,#tab-antropometria .isak-principle span{display:flex;align-items:center;border:1px solid var(--pf-line);border-radius:12px;background:#fff;padding:11px 12px;box-shadow:0 6px 17px rgba(25,55,90,.04);line-height:1.35}
#tab-antropometria .isak-principle strong{background:#173f86;color:#fff;border-color:#173f86;font-size:10px;white-space:nowrap}#tab-antropometria .isak-principle span{color:#536b84;font-size:10px;font-weight:650}
#tab-antropometria .kpi-grid{gap:12px!important}#tab-antropometria .kpi{position:relative;border:1px solid var(--pf-line)!important;border-radius:15px!important;background:#fff!important;box-shadow:0 9px 24px rgba(25,55,90,.055)!important;overflow:hidden}#tab-antropometria .kpi:after{content:"";position:absolute;left:0;right:0;bottom:0;height:3px;background:linear-gradient(90deg,#16a37e,#3b82f6)}
#tab-antropometria .isak-card{border:1px solid var(--pf-line)!important;border-radius:17px!important;background:rgba(255,255,255,.97)!important;box-shadow:var(--pf-shadow)!important;padding:17px!important}
#tab-antropometria .isak-card-head{display:flex!important;align-items:center!important;justify-content:space-between!important;border-bottom:1px solid #e9eff5!important;padding-bottom:12px!important;margin-bottom:12px!important}#tab-antropometria .isak-card-head .card-title{font-size:13px!important;color:var(--pf-ink)!important}#tab-antropometria .isak-card-head p{color:var(--pf-muted)!important;margin:4px 0 0!important;font-size:10px!important}
#tab-antropometria .isak-filters{display:flex!important;align-items:center!important;gap:9px!important;background:#f6f9fc!important;border:1px solid #e3eaf2!important;border-radius:13px!important;padding:10px!important;margin-bottom:12px!important}#tab-antropometria .isak-filters label{color:#60758d!important;font-size:9px!important;font-weight:850!important;text-transform:uppercase!important;letter-spacing:.07em!important}#tab-antropometria .isak-filters select{min-height:38px;border-color:#d9e4ee!important;border-radius:9px!important;background:#fff!important}
#tab-antropometria .table-wrap{border:1px solid #e2eaf2!important;border-radius:13px!important;overflow:auto!important}#tab-antropometria table thead th{background:#f3f7fb!important;color:#536c87!important}#tab-antropometria table tbody tr{transition:background .15s}#tab-antropometria table tbody tr:hover{background:#f7fbff!important}
#tab-antropometria .isak-advanced summary{border-radius:13px!important;background:linear-gradient(110deg,#f4f1ff,#eef7ff)!important;border:1px solid #dedff2!important;padding:16px!important}#tab-antropometria .isak-open-label{background:#fff!important;border:1px solid #d7e1ee!important;border-radius:9px!important;padding:8px 12px!important;color:#315d96!important}

@media(max-width:1100px){.agenda-capabilities{grid-template-columns:repeat(2,minmax(0,1fr))}#tab-antropometria .isak-principle{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:900px){#tab-readiness .fr-grid{grid-template-columns:1fr!important}.report-chart-panel{padding:14px}.tab-panel>.panel-header,.tab-panel>.fr-hero{padding:18px!important}#tab-antropometria>.isak-hero{align-items:flex-start!important;flex-direction:column!important}.agenda-capabilities{grid-template-columns:1fr}#tab-antropometria .isak-principle{grid-template-columns:1fr!important}}
}
/* Source: css/isak-somatocarta-v144.css */
@layer compatibility{/* V144 — readable Heath–Carter chart and positional body-fat context */
.somato-layout{display:block!important}
.somato-plot{min-width:0;background:#fff;border:1px solid var(--tlm-line);border-radius:13px;padding:10px;overflow:hidden}
#somatocarta-svg{display:block;width:100%!important;height:auto!important;max-height:580px;background:#fbfcfd!important;border:0!important;border-radius:9px!important;font-family: Inter, system-ui, sans-serif}
#somatocarta-svg .somato-tick{font-size:10px;fill:#74869a;font-weight:600}
#somatocarta-svg .somato-axis-title{font-size:11px;fill:#52657a;font-weight:700;letter-spacing:.015em}
#somatocarta-svg .somato-axis-label{font-size:11px;font-weight:800;letter-spacing:.08em}
#somatocarta-svg .somato-axis-label.endo{fill:#b84a58}#somatocarta-svg .somato-axis-label.ecto{fill:#3977bd}#somatocarta-svg .somato-axis-label.meso{fill:#c46b25}
#somatocarta-svg .somato-initials{font-size:8px;fill:#fff;font-weight:800;pointer-events:none}
#somatocarta-svg .somato-player-label{font-size:10px;fill:#34475c;font-weight:750;paint-order:stroke;stroke:#fff;stroke-width:3px;stroke-linejoin:round}
#somatocarta-svg .somato-team-label{font-size:9px;fill:#122033;font-weight:750;paint-order:stroke;stroke:#fff;stroke-width:3px}
#somatocarta-svg .somato-empty-title{font-size:15px;fill:#3f5368;font-weight:750}#somatocarta-svg .somato-empty-copy{font-size:11px;fill:#75869a}
.isak-chart-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:10px 0 14px}.isak-chart-stat{border:1px solid var(--tlm-line);border-radius:10px;background:#f8fafc;padding:10px 12px}.isak-chart-stat span{display:block;color:#718196;font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.06em}.isak-chart-stat strong{display:block;color:#1b2d41;font-size:16px;margin-top:3px}.isak-chart-stat small{display:block;color:#718196;font-size:9.5px;margin-top:2px}.isak-chart-empty{height:100%;display:grid;place-content:center;text-align:center;padding:28px}.isak-chart-empty strong{color:#31475e;font-size:16px}.isak-chart-empty p{max-width:560px;margin:7px auto 0;color:#718196;font-size:12px;line-height:1.55}.isak-sum-ref{display:block;margin-top:4px;font-size:9px;color:#718196;font-weight:600}.isak-sum-ref.within{color:#137253}.isak-sum-ref.above{color:#b83d4c}.isak-sum-ref.below{color:#9a620b}
.somato-triplet{display:block;color:#8190a0;font-size:9px;margin-top:2px}.somato-fat{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:3px 7px;min-width:150px}.somato-fat strong{font-size:15px;color:#17283b}.somato-fat span{width:max-content;border-radius:999px;padding:3px 7px;font-size:9px;font-weight:800}.somato-fat span.within{background:#e7f5ee;color:#137253}.somato-fat span.above{background:#fdecef;color:#b83d4c}.somato-fat span.below{background:#fff3dc;color:#9a620b}.somato-fat small{grid-column:1/-1;color:#738396;font-size:9.5px}
#somatocarta-tabla{min-width:900px}
@media(max-width:620px){.somato-plot{padding:4px}.isak-chart-summary{grid-template-columns:1fr}#somatocarta-svg .somato-player-label{display:none}}
}
/* Source: css/somatotype-v161.css */
@layer compatibility{.somato-toolbar{display:grid;grid-template-columns:repeat(4,minmax(145px,1fr)) auto;gap:10px;align-items:end;margin-bottom:12px;padding:12px;border:1px solid #dbe5ef;border-radius:12px;background:#f8fbfe}
.somato-toolbar label,.somato-compare label{display:grid;gap:5px;color:#60738a;font-size:10px;font-weight:800;letter-spacing:.06em;text-transform:uppercase}
.somato-toolbar select,.somato-compare select{width:100%;min-height:38px;border:1px solid #d5e0eb;border-radius:9px;background:#fff;color:#13243a;padding:0 10px;font:600 12px/1.2 Inter,system-ui}
.somato-kpis{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:12px}.somato-kpis article{padding:13px 15px;border:1px solid #dbe5ef;border-radius:12px;background:#fff;box-shadow:0 5px 16px rgba(18,37,58,.045)}.somato-kpis span{display:block;color:#6b7e93;font-size:10px;font-weight:800;letter-spacing:.06em;text-transform:uppercase}.somato-kpis strong{display:block;margin:5px 0 2px;color:#10233b;font-size:20px}.somato-kpis small{color:#72849a;font-size:11px}
.somato-layout-v161{display:grid!important;grid-template-columns:minmax(0,3fr) minmax(280px,.82fr);gap:14px;align-items:stretch}
.somato-plot-v161{position:relative;min-width:0;height:clamp(480px,55vh,560px);box-sizing:border-box;padding:8px 12px;border:1px solid #dbe5ef;border-radius:14px;background:#fff;overflow:hidden}
.somato-plot-v161 #somatocarta-svg{position:absolute;inset:8px 12px 16px;display:block;width:calc(100% - 24px)!important;height:calc(100% - 24px)!important;max-width:calc(100% - 24px)!important;max-height:calc(100% - 24px)!important}
.somato-inspector{border:1px solid #dbe5ef;border-radius:14px;background:#fff;color:#10233b;padding:20px;min-height:0;box-shadow:0 5px 16px rgba(18,37,58,.045)}
.somato-empty-panel{display:flex;min-height:260px;flex-direction:column;justify-content:center;gap:8px;text-align:center}.somato-empty-panel span{color:#71849a;font-size:12px;line-height:1.5}.somato-inspector-head{display:grid;gap:4px;padding-bottom:15px;border-bottom:1px solid #e2e9f0}.somato-inspector-head>span{color:#2563eb;font-size:10px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.somato-inspector-head>strong{font-size:19px}.somato-inspector-head>small{color:#71849a}.somato-triplet-large{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin:16px 0}.somato-triplet-large div{padding:11px 5px;border:1px solid #dbe5ef;border-radius:9px;background:#f7fafe;text-align:center}.somato-triplet-large b{display:block;color:#10233b;font-size:19px}.somato-triplet-large span{color:#71849a;font-size:9px}.somato-inspector dl{display:grid;gap:0;margin:0}.somato-inspector dl div{display:flex;justify-content:space-between;gap:8px;padding:11px 0;border-top:1px solid #e6edf3;font-size:11px}.somato-inspector dt{color:#71849a}.somato-inspector dd{margin:0;color:#10233b;text-align:right;font-weight:700}.somato-note{margin:14px 0 0;padding:11px;border:1px solid #dce8f5;border-radius:8px;background:#f3f8fd;color:#5f7389;font-size:10px;line-height:1.5}
#somatocarta-svg{max-height:none!important;overflow:visible}.somato-grid{stroke:#e8edf3;stroke-width:1}.somato-grid.major{stroke:#aab8c5;stroke-width:1.35}.somato-domain{font-size:10px;font-weight:850;letter-spacing:.1em}.somato-domain.endo{fill:#b64354}.somato-domain.meso{fill:#c66c1d}.somato-domain.ecto{fill:#2e6fba}.somato-point{cursor:pointer;outline:none}.somato-point circle:last-child{transition:r .15s,filter .15s}.somato-point:hover circle:last-child,.somato-point:focus circle:last-child,.somato-point.selected circle:last-child{filter:drop-shadow(0 2px 4px rgba(15,32,50,.35));stroke:#0b2035;stroke-width:3}.somato-centroid path{fill:#0b2035;stroke:#fff;stroke-width:2}.somato-tooltip{position:absolute;z-index:5;display:none;width:190px;padding:9px 11px;border-radius:9px;background:#071b2d;color:#fff;box-shadow:0 10px 24px rgba(7,27,45,.22);pointer-events:none}.somato-tooltip.show{display:grid;gap:2px}.somato-tooltip strong{font-size:12px}.somato-tooltip span,.somato-tooltip small{color:#aec1d2;font-size:10px}.somato-tooltip b{margin-top:3px;font-size:13px}
.somato-compare{display:grid;grid-template-columns:minmax(250px,1.4fr) minmax(150px,.8fr) minmax(150px,.8fr) minmax(190px,1fr);gap:12px;align-items:center;margin-top:12px;padding:14px;border:1px solid #dbe5ef;border-radius:12px;background:#f8fbfe}.somato-compare>div:first-child{display:grid;gap:3px}.somato-compare .eyebrow{color:#2563eb;font-size:9px;font-weight:850;letter-spacing:.09em}.somato-compare strong{color:#10233b;font-size:14px}.somato-compare small{color:#708298;font-size:10px}.somato-compare output{display:grid;gap:2px;padding:10px;border-radius:9px;background:#fff;color:#60738a;font-size:11px}.somato-compare output b{color:#10233b;font-size:15px}.somato-row-player{border:0;background:none;color:#1559aa;font:700 12px inherit;cursor:pointer;text-align:left}.somato-missing{color:#a85d12;font-size:11px}.somato-table-wrap th[data-sort]{cursor:pointer;user-select:none}.somato-table-wrap td,.somato-table-wrap th{white-space:nowrap}.somato-table-wrap td:first-child,.somato-table-wrap th:first-child{text-align:left}
@media(max-width:1050px){.somato-toolbar{grid-template-columns:repeat(2,1fr)}.somato-layout-v161{grid-template-columns:1fr!important}.somato-plot-v161{height:clamp(440px,58vh,540px)}.somato-inspector{min-height:auto}.somato-empty-panel{min-height:140px}.somato-compare{grid-template-columns:1fr 1fr}.somato-compare>div:first-child,.somato-compare output{grid-column:1/-1}}
@media(max-width:650px){.somato-toolbar,.somato-kpis,.somato-compare{grid-template-columns:1fr}.somato-layout-v161{margin:0}.somato-plot-v161{height:500px;overflow-x:auto;overflow-y:hidden}.somato-plot-v161 #somatocarta-svg{position:relative;inset:auto;min-width:660px;width:660px!important;height:480px!important;max-width:none!important;max-height:none!important}.somato-compare>div:first-child,.somato-compare output{grid-column:auto}.somato-table-wrap{overflow-x:auto}}
@media print{.somato-toolbar,.somato-compare{display:none!important}.somato-layout-v161{grid-template-columns:2.2fr .8fr;break-inside:avoid}.somato-plot-v161{height:520px}.somato-inspector{background:#fff!important;color:#10233b!important}.somato-inspector *{color:#10233b!important}.somato-table-wrap{overflow:visible}.somato-table-wrap table{font-size:8px}}
}
/* Source: css/team-admin-v164.css */
@layer compatibility{.team-admin-modal{width:min(940px,calc(100vw - 32px))!important;max-width:940px!important;max-height:min(880px,calc(100vh - 32px))!important;overflow:hidden!important}
.team-admin-modal>.modal-header{flex:0 0 auto;padding-bottom:16px}
.team-admin-eyebrow{font-size:10px;font-weight:800;letter-spacing:.12em;color:var(--tlm-action);margin-bottom:5px}
.team-admin-body{display:grid;gap:18px;max-height:calc(100vh - 190px);overflow:auto;padding:14px 4px 8px!important;scrollbar-gutter:stable}
.team-admin-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:9px;margin-bottom:18px}
.team-admin-summary>div{padding:12px 14px;border:1px solid var(--tlm-border);border-radius:12px;background:var(--tlm-raised);display:flex;flex-direction:column;gap:4px}
.team-admin-summary span{font-size:10px;color:var(--tlm-muted);text-transform:uppercase;letter-spacing:.07em;font-weight:750}.team-admin-summary strong{font-size:19px;color:var(--tlm-text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.team-admin-toolbar{display:flex;align-items:end;justify-content:space-between;gap:14px;margin-bottom:10px}.team-admin-toolbar>div{display:flex;flex-direction:column;gap:3px}.team-admin-toolbar>div>strong{font-size:15px}.team-admin-toolbar>div>span{font-size:11px;color:var(--tlm-muted)}
.team-admin-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.team-admin-card{border:1px solid var(--tlm-border);border-radius:14px;padding:14px;background:var(--tlm-panel);box-shadow:none}.team-admin-card.is-active{border-color:var(--tlm-action);box-shadow:none}
.team-admin-card-head{display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:center;gap:10px}.team-admin-mark{width:42px;height:42px;border-radius:11px;background:var(--team-color);color:var(--tlm-panel);display:grid;place-items:center;font-weight:850;font-size:12px}.team-admin-card-head>div:nth-child(2){display:flex;flex-direction:column;min-width:0}.team-admin-card-head strong{font-size:14px;line-height:1.4;white-space:normal;overflow-wrap:anywhere}.team-admin-card-head span{font-size:10.5px;color:var(--tlm-muted);margin-top:3px;text-transform:capitalize}.team-active-badge{font-size:9px;color:var(--tlm-success);background:#203d32;border-radius:999px;padding:5px 8px;text-transform:uppercase;letter-spacing:.05em}
.team-admin-metrics{display:flex;gap:18px;padding:13px 0 11px;margin-top:12px;border-top:1px solid var(--tlm-border);border-bottom:1px solid var(--tlm-border);color:var(--tlm-muted);font-size:11px}.team-admin-metrics b{color:var(--tlm-text)}.team-admin-actions{display:flex;align-items:center;justify-content:flex-end;gap:6px;padding-top:11px}.team-current-note{margin-right:auto;font-size:10px;color:var(--tlm-success);font-weight:750}.team-admin-empty,.team-access-empty{grid-column:1/-1;display:flex;flex-direction:column;align-items:center;text-align:center;gap:4px;padding:22px;border:1px dashed var(--tlm-border);border-radius:12px;color:var(--tlm-muted)}.team-admin-empty strong,.team-access-empty strong{color:var(--tlm-text)}
.team-access-panel{border:1px solid var(--tlm-border);border-radius:16px;background:var(--tlm-raised);padding:17px}.team-access-head{display:flex;justify-content:space-between;gap:16px}.team-access-head span{font-size:9px;font-weight:850;letter-spacing:.1em;color:var(--tlm-action)}.team-access-head h4{font-size:17px;margin:4px 0}.team-access-head p{font-size:11px;color:var(--tlm-muted);margin:0;max-width:580px;line-height:1.45}.team-access-head>b{height:max-content;padding:7px 10px;background:var(--tlm-raised);color:var(--tlm-action);border-radius:999px;font-size:10px;white-space:nowrap}.team-access-form{margin-top:14px}.team-access-form label{display:block;font-size:10px;font-weight:750;color:var(--tlm-muted);margin-bottom:6px}.team-access-form>div{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}.team-access-form input{width:100%}.team-access-rights{display:flex;flex-wrap:wrap;gap:7px;margin:12px 0}.team-access-rights span{font-size:10px;color:var(--tlm-success);background:#203d32;border-radius:999px;padding:5px 8px}.team-access-rights .denied{color:var(--tlm-danger);background:#40282e}.team-access-demo{font-size:10px;color:var(--tlm-muted);padding-top:8px}.team-access-status{font-size:9px;font-weight:750;color:var(--tlm-success);background:#203d32;border-radius:999px;padding:5px 8px}
@media(max-width:720px){.team-admin-modal{width:calc(100vw - 16px)!important}.team-admin-summary{grid-template-columns:repeat(2,1fr)}.team-admin-grid{grid-template-columns:1fr}.team-admin-toolbar{align-items:stretch;flex-direction:column}.team-access-head{flex-direction:column}.team-access-form>div{grid-template-columns:1fr}.team-admin-actions{flex-wrap:wrap}}
}
/* Source: css/profile-modal-v162.css */
@layer compatibility{/* V162 — Perfil completo dentro de un único diálogo accesible */
#modal-mi-perfil{padding:18px;box-sizing:border-box;overscroll-behavior:contain}
#modal-mi-perfil .profile-modal{
  display:flex!important;
  flex-direction:column;
  width:min(920px,calc(100vw - 36px))!important;
  max-width:920px!important;
  height:min(820px,calc(100dvh - 36px));
  max-height:calc(100dvh - 36px)!important;
  overflow:hidden!important;
  border-radius:16px;
  box-shadow:0 24px 70px rgba(7,25,44,.28);
}
#modal-mi-perfil .profile-modal-head{flex:0 0 auto;background:#fff;position:relative;z-index:2}
#modal-mi-perfil .profile-layout{
  flex:1 1 auto;
  min-height:0;
  overflow-y:auto;
  overscroll-behavior:contain;
  scrollbar-gutter:stable;
  align-content:start;
  padding:22px 24px 26px;
}
#modal-mi-perfil .profile-photo-panel{position:sticky;top:0;align-self:start}
#modal-mi-perfil .profile-actions{
  flex:0 0 auto;
  position:relative;
  z-index:2;
  margin:0!important;
  background:#fff;
  box-shadow:0 -8px 20px rgba(15,35,55,.045);
}
#modal-mi-perfil .profile-fields{min-width:0;padding-bottom:4px}
#modal-mi-perfil .profile-account-actions{padding-bottom:6px}
#modal-mi-perfil .profile-layout:focus-visible{outline:2px solid #2563eb;outline-offset:-3px}

@media(max-width:700px){
  #modal-mi-perfil{padding:0;align-items:stretch}
  #modal-mi-perfil .profile-modal{width:100%!important;height:100dvh;max-height:100dvh!important;border-radius:0;border:0}
  #modal-mi-perfil .profile-modal-head{padding:17px 18px 14px}
  #modal-mi-perfil .profile-layout{display:block!important;padding:18px}
  #modal-mi-perfil .profile-photo-panel{position:static;display:grid;grid-template-columns:92px 1fr 1fr;gap:8px;align-items:center;margin-bottom:22px;padding:0}
  #modal-mi-perfil .profile-photo-preview{grid-row:1/4;width:86px;height:86px}
  #modal-mi-perfil .profile-photo-panel .tiny{grid-column:2/4;text-align:left}
  #modal-mi-perfil .profile-grid{grid-template-columns:1fr!important}
  #modal-mi-perfil .profile-actions{padding:12px 16px;display:grid;grid-template-columns:1fr 1fr}
  #modal-mi-perfil .profile-actions .btn{width:100%}
}

@media(max-height:680px) and (min-width:701px){
  #modal-mi-perfil{padding:10px}
  #modal-mi-perfil .profile-modal{height:calc(100dvh - 20px);max-height:calc(100dvh - 20px)!important}
  #modal-mi-perfil .profile-modal-head{padding:15px 20px 12px}
  #modal-mi-perfil .profile-layout{padding:16px 20px 20px}
  #modal-mi-perfil .profile-photo-preview{width:92px;height:92px}
  #modal-mi-perfil .profile-actions{padding:10px 20px 12px}
}
}
/* Source: css/tables-v169.css */
@layer compatibility{/* V169 — sistema común de tablas: columnas estables, lectura y alineación */
:root{--dt-head:#f5f8fc;--dt-line:#e1e9f2;--dt-ink:#122946;--dt-muted:#6e819a;--dt-row:#fff;--dt-alt:#f8fbfe;--dt-hover:#f0f6fd}
.table-wrap,.fr-table-wrap{border:1px solid var(--dt-line)!important;border-radius:14px!important;background:#fff!important;overflow:auto!important}
.table-wrap>table,.fr-table-wrap>table,table.data-table-pro{width:100%!important;border-collapse:separate!important;border-spacing:0!important;font-variant-numeric:tabular-nums!important;font-feature-settings:'tnum' 1!important}
.table-wrap>table th,.table-wrap>table td,.fr-table th,.fr-table td,table.data-table-pro th,table.data-table-pro td{box-sizing:border-box!important;height:46px;padding:10px 12px!important;border-right:0!important;border-bottom:1px solid var(--dt-line)!important;text-align:center!important;vertical-align:middle!important;white-space:nowrap!important}
.table-wrap>table thead th,.fr-table thead th,table.data-table-pro thead th{height:38px;background:var(--dt-head)!important;color:var(--dt-muted)!important;font:800 8px/1.2 Inter,system-ui,sans-serif!important;letter-spacing:.09em!important;text-transform:uppercase!important;position:sticky;top:0;z-index:2}
.table-wrap>table tbody tr:nth-child(odd),.fr-table tbody tr:nth-child(odd),table.data-table-pro tbody tr:nth-child(odd){background:var(--dt-row)!important}.table-wrap>table tbody tr:nth-child(even),.fr-table tbody tr:nth-child(even),table.data-table-pro tbody tr:nth-child(even){background:var(--dt-alt)!important}
.table-wrap>table tbody tr:hover,.fr-table tbody tr:hover,table.data-table-pro tbody tr:hover{background:var(--dt-hover)!important}
.table-wrap>table tbody tr:last-child td,.fr-table tbody tr:last-child td,table.data-table-pro tbody tr:last-child td{border-bottom:0!important}
.table-wrap>table td,.fr-table td,table.data-table-pro td{color:var(--dt-ink);font-size:10px}.table-wrap>table td strong,.fr-table td strong,table.data-table-pro td strong{font-weight:750;color:#0b2344}

/* Las columnas descriptivas comparten exactamente la alineación de su cabecera */
#dashboard-priority-table{table-layout:fixed}#dashboard-priority-table th:nth-child(1),#dashboard-priority-table td:nth-child(1){width:36%;text-align:left!important}#dashboard-priority-table th:nth-child(2),#dashboard-priority-table td:nth-child(2){width:18%}#dashboard-priority-table th:nth-child(3),#dashboard-priority-table td:nth-child(3),#dashboard-priority-table th:nth-child(4),#dashboard-priority-table td:nth-child(4){width:14%}#dashboard-priority-table th:nth-child(5),#dashboard-priority-table td:nth-child(5){width:18%}
#fr-table{table-layout:fixed;min-width:900px}#fr-table th:nth-child(1),#fr-table td:nth-child(1){width:9%}#fr-table th:nth-child(2),#fr-table td:nth-child(2){width:11%}#fr-table th:nth-child(3),#fr-table td:nth-child(3){width:11%}#fr-table th:nth-child(4),#fr-table td:nth-child(4),#fr-table th:nth-child(5),#fr-table td:nth-child(5){width:14%}#fr-table th:nth-child(6),#fr-table td:nth-child(6){width:10%}#fr-table th:nth-child(7),#fr-table td:nth-child(7){width:10%}#fr-table th:nth-child(8),#fr-table td:nth-child(8){width:21%;text-align:left!important}
#peso-tabla-historico{table-layout:fixed;min-width:760px}#peso-tabla-historico th:nth-child(1),#peso-tabla-historico td:nth-child(1){width:16%}#peso-tabla-historico th:nth-child(2),#peso-tabla-historico td:nth-child(2){width:30%;text-align:left!important}#peso-tabla-historico th:nth-child(3),#peso-tabla-historico td:nth-child(3){width:18%}#peso-tabla-historico th:nth-child(4),#peso-tabla-historico td:nth-child(4){width:28%;text-align:left!important;white-space:normal!important}#peso-tabla-historico th:nth-child(5),#peso-tabla-historico td:nth-child(5){width:8%}
#temp-tabla-jugadores{table-layout:fixed;min-width:920px}#temp-tabla-jugadores th:first-child,#temp-tabla-jugadores td:first-child{width:18%;text-align:left!important}#temp-tabla-jugadores th:not(:first-child),#temp-tabla-jugadores td:not(:first-child){width:13.65%}
.salud-tabla-table{table-layout:fixed!important;min-width:1180px!important}.salud-tabla-table th:nth-child(1),.salud-tabla-table td:nth-child(1){width:3%}.salud-tabla-table th:nth-child(2),.salud-tabla-table td:nth-child(2){width:10%;text-align:left!important}.salud-tabla-table th:nth-child(3),.salud-tabla-table td:nth-child(3){width:7%}.salud-tabla-table th:nth-child(4),.salud-tabla-table td:nth-child(4){width:7%}.salud-tabla-table th:nth-child(5),.salud-tabla-table td:nth-child(5){width:7%}.salud-tabla-table th:nth-child(6),.salud-tabla-table td:nth-child(6){width:10%}.salud-tabla-table th:nth-child(7),.salud-tabla-table td:nth-child(7){width:8%}.salud-tabla-table th:nth-child(8),.salud-tabla-table td:nth-child(8){width:9%}.salud-tabla-table th:nth-child(9),.salud-tabla-table td:nth-child(9){width:9%}.salud-tabla-table th:nth-child(10),.salud-tabla-table td:nth-child(10){width:30%;text-align:left!important;white-space:normal!important;line-height:1.35}
#lesiones-tabla{table-layout:fixed!important;min-width:1180px!important}#lesiones-tabla th:nth-child(1),#lesiones-tabla td:nth-child(1){width:13%;text-align:left!important}#lesiones-tabla th:nth-child(2),#lesiones-tabla td:nth-child(2){width:19%;text-align:left!important;white-space:normal!important}#lesiones-tabla th:nth-child(3),#lesiones-tabla td:nth-child(3){width:13%}#lesiones-tabla th:nth-child(4),#lesiones-tabla td:nth-child(4){width:13%}#lesiones-tabla th:nth-child(5),#lesiones-tabla td:nth-child(5){width:11%}#lesiones-tabla th:nth-child(6),#lesiones-tabla td:nth-child(6){width:8%}#lesiones-tabla th:nth-child(7),#lesiones-tabla td:nth-child(7){width:17%;text-align:left!important;white-space:normal!important}#lesiones-tabla th:nth-child(8),#lesiones-tabla td:nth-child(8){width:6%}
#wellness-tabla-historico,#isak-tabla-historico,#partidos-tabla{min-width:1100px}.text-muted,.injury-notes{white-space:normal!important;line-height:1.4!important}
@media(max-width:760px){.table-wrap>table th,.table-wrap>table td,.fr-table th,.fr-table td{padding:9px 10px!important}.table-wrap,.fr-table-wrap{border-radius:11px!important}}
}
/* Source: css/health-board-v170.css */
@layer compatibility{/* V170 — panel operativo de disponibilidad */
.availability-board{display:flex;flex-direction:column;gap:8px;margin-top:10px}.availability-head{display:grid;grid-template-columns:1.05fr .9fr 1.35fr 2fr;gap:14px;padding:0 18px 3px;color:#71839a;font-size:8px;font-weight:850;letter-spacing:.09em}.availability-row{appearance:none;width:100%;display:grid;grid-template-columns:1.05fr .9fr 1.35fr 2fr;gap:14px;align-items:center;min-height:74px;padding:12px 18px;border:1px solid #dbe5f0;border-left:4px solid #9aa9bc;border-radius:14px;background:#fff;color:#112946;text-align:left;box-shadow:0 4px 13px rgba(22,50,83,.045);cursor:pointer;transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease}.availability-row:hover{transform:translateY(-1px);border-color:#b9cce3;box-shadow:0 9px 24px rgba(22,50,83,.09)}.availability-row.tone-optimo{border-left-color:#12a77d}.availability-row.tone-alerta{border-left-color:#f0a31a}.availability-row.tone-critico{border-left-color:#e44758}.availability-row.tone-lesionado{border-left-color:#46566c}.availability-row.tone-subcarga{border-left-color:#347bd7}
.availability-player{display:flex;align-items:center;gap:11px;min-width:0}.availability-player>i{display:grid;place-items:center;flex:0 0 36px;width:36px;height:36px;border-radius:11px;background:#edf4fd;color:#2d67bd;font-style:normal;font-size:10px;font-weight:850}.availability-player>span,.availability-state,.availability-advice{display:flex;min-width:0;flex-direction:column;gap:3px}.availability-player strong{overflow:hidden;text-overflow:ellipsis;font-size:11px}.availability-player small,.availability-state small,.availability-advice small{color:#74869e;font-size:8px;line-height:1.35}.availability-state>b{align-self:flex-start;padding:6px 9px;border-radius:999px;background:#eef3f8;color:#465a73;font-size:8px}.tone-optimo .availability-state>b{background:#e9f8f2;color:#087b61}.tone-alerta .availability-state>b{background:#fff5df;color:#a56500}.tone-critico .availability-state>b{background:#fff0f2;color:#bf3044}.tone-lesionado .availability-state>b{background:#edf0f4;color:#344257}.tone-subcarga .availability-state>b{background:#ebf3ff;color:#2969bd}
.availability-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.availability-metrics>span{display:flex;min-width:0;flex-direction:column;gap:3px;padding:8px;border-radius:9px;background:#f6f9fc;text-align:center}.availability-metrics small{color:#7d8da2;font-size:6.5px;font-weight:800;letter-spacing:.05em}.availability-metrics b{overflow:hidden;text-overflow:ellipsis;font-size:10px;white-space:nowrap}.availability-advice{position:relative;padding-right:22px}.availability-advice>b{color:#42658d;font-size:8px;text-transform:uppercase;letter-spacing:.06em}.availability-advice>small{display:-webkit-box;overflow:hidden;-webkit-line-clamp:2;-webkit-box-orient:vertical;color:#243c59;font-size:9px}.availability-advice>i{position:absolute;right:0;top:50%;transform:translateY(-50%);color:#7e91aa;font-style:normal;font-size:20px}
@media(max-width:1050px){.availability-head{display:none}.availability-row{grid-template-columns:1fr 1fr}.availability-advice{grid-column:1/-1;padding-top:9px;border-top:1px solid #e5ecf4}.availability-metrics{grid-template-columns:repeat(4,1fr)}}@media(max-width:640px){.availability-row{grid-template-columns:1fr;padding:13px}.availability-advice{grid-column:auto}.availability-metrics{grid-template-columns:repeat(2,1fr)}}
}
/* Source: css/v174-interface-final.css */
@layer compatibility{/* v174 · Final interface coherence layer */
:root{--v174-ink:#102442;--v174-muted:#687a94;--v174-line:#d9e4f0;--v174-soft:#f5f8fc;--v174-blue:#2868e8;--v174-danger:#c93f50}
#app-shell,#app-shell button,#app-shell input,#app-shell select,#app-shell textarea{font-family: Inter, system-ui, sans-serif !important}
#app-shell h1,#app-shell h2,#app-shell h3,#app-shell h4,#app-shell h5,#app-shell .pc-nombre,#app-shell .ph-name{font-family:inherit!important;letter-spacing:-.025em}
#app-shell h1{font-size:clamp(26px,2.2vw,36px)!important;line-height:1.12!important}#app-shell h2{font-size:clamp(23px,1.8vw,32px)!important;line-height:1.16!important}#app-shell h3{line-height:1.22!important}

/* Header team selector */
.header-team-switcher{display:flex;align-items:center;min-width:270px;height:44px;border:1px solid var(--v174-line);border-radius:12px;background:#fff;box-shadow:0 2px 7px rgba(16,36,66,.04);overflow:hidden}
.header-team-icon{width:42px;height:42px;display:grid;place-items:center;color:var(--v174-blue);background:#f2f7ff}.header-team-icon svg{width:19px;height:19px}
.header-team-switcher label{min-width:0;flex:1;display:flex;flex-direction:column;padding:5px 10px 4px;gap:0}.header-team-switcher label>span{color:var(--v174-muted);font-size:9px;line-height:1;text-transform:uppercase;letter-spacing:.08em;font-weight:800}
.header-team-switcher select{appearance:none;border:0!important;background:transparent!important;color:var(--v174-ink);font-weight:750;font-size:13px;line-height:20px;padding:0 18px 0 0;max-width:185px;outline:none;background-image:linear-gradient(45deg,transparent 50%,#6f8198 50%),linear-gradient(135deg,#6f8198 50%,transparent 50%)!important;background-position:calc(100% - 9px) 8px,calc(100% - 5px) 8px!important;background-size:4px 4px,4px 4px!important;background-repeat:no-repeat!important}
.header-team-manage{width:40px;height:42px;border:0;border-left:1px solid var(--v174-line);background:#fff;color:#60748f;display:grid;place-items:center;cursor:pointer;transition:.18s}.header-team-manage:hover{background:#edf4ff;color:var(--v174-blue)}.header-team-manage svg{width:17px;height:17px}

/* Profile and sign out */
.profile-menu-logout{display:flex;align-items:center;gap:11px;padding:10px 12px;border:1px solid #f3c8cf;border-radius:9px;font-size:13px;color:#b62e41!important;background:#fff5f6;text-decoration:none;font-weight:750;transition:.18s}.profile-menu-logout:hover{background:#feecef;border-color:#eba9b4}
.profile-logout-btn{display:inline-flex!important;align-items:center;gap:7px!important;border:1px solid #e7a9b3!important;background:#fff5f6!important;color:#b52d40!important;font-weight:750!important}.profile-logout-btn:hover{background:#fee7eb!important}.profile-logout-btn svg{width:15px;height:15px}

/* Teams and access */
.team-admin-modal{border-radius:12px!important;box-shadow:none}.team-admin-modal>.modal-header{padding:22px 24px 17px!important;background:var(--tlm-raised)!important}.team-admin-body{padding:18px 24px 10px!important;gap:20px!important}.team-admin-eyebrow{display:inline-flex;padding:5px 8px;border-radius:999px;background:var(--tlm-raised);color:var(--tlm-action)!important}.team-admin-summary{grid-template-columns:repeat(3,1fr)!important;gap:10px!important}.team-admin-summary>div{min-height:78px;justify-content:center;background:var(--tlm-raised)!important}.team-admin-summary strong{font-size:22px!important}
.team-admin-toolbar{align-items:center!important}.team-admin-toolbar>div>strong{font-size:17px!important}.team-admin-toolbar>div>span{font-size:12px!important}.team-admin-toolbar .btn{min-height:39px}
.team-admin-card{padding:16px!important}.team-admin-mark{border-radius:8px!important}.team-admin-actions .btn{min-height:34px}.team-admin-actions .team-use-button{border-color:var(--tlm-border);color:var(--tlm-action);background:var(--tlm-raised)}.team-current-note{display:inline-flex;align-items:center;background:#203d32;padding:7px 9px;border-radius:8px}
.icon-delete-btn{width:34px;height:34px;display:inline-grid;place-items:center;border:1px solid #724650;border-radius:9px;background:#40282e;color:var(--v174-danger);cursor:pointer;transition:.18s}.icon-delete-btn:hover{background:#40282e;border-color:var(--tlm-danger);transform:translateY(-1px)}
.team-admin-empty{padding:28px!important;background:var(--tlm-raised);gap:8px!important}.team-empty-icon{width:48px;height:48px;display:grid;place-items:center;border-radius:14px;background:var(--tlm-raised);color:var(--v174-blue)}.team-admin-empty ol{display:flex;list-style:none;margin:8px 0 4px;padding:0;gap:8px;flex-wrap:wrap;justify-content:center}.team-admin-empty li{display:flex;align-items:center;gap:6px;padding:7px 9px;border:1px solid var(--v174-line);border-radius:8px;background:var(--tlm-panel);font-size:11px}.team-admin-empty li b{display:grid;place-items:center;width:18px;height:18px;border-radius:8px;background:var(--tlm-raised);color:var(--tlm-action);font-size:10px}
.staff-access-notice{padding:12px;border:1px solid #6c583d;border-radius:9px;background:#3b3324;color:var(--tlm-warning);font-size:12px}.team-admin-footer{display:flex;align-items:center;justify-content:space-between!important;padding:14px 24px 18px!important;border-top:1px solid var(--v174-line)!important;margin:0!important}.team-admin-footer span{color:var(--v174-muted);font-size:11px}

/* Dashboard actions */
.dashboard-team-button,.dashboard-player-button{min-height:40px!important;border-radius:10px!important;padding-inline:15px!important}.dashboard-player-button{box-shadow:0 7px 16px rgba(40,104,232,.18)}

/* Player cards */
#tab-perfiles .player-card{border-radius:15px!important;border:1px solid var(--v174-line)!important;box-shadow:0 8px 22px rgba(16,36,66,.065)!important;overflow:hidden!important;transition:transform .18s,box-shadow .18s,border-color .18s!important}
#tab-perfiles .player-card:hover{transform:translateY(-3px)!important;box-shadow:0 14px 28px rgba(16,36,66,.1)!important;border-color:#b7cdec!important}
#tab-perfiles .player-card .pc-nombre{font-family:inherit!important;font-size:14px!important;font-weight:800!important;line-height:1.12!important;color:var(--v174-ink)!important}
#tab-perfiles .player-card .pcs .val{font-family:inherit!important;font-weight:750!important;font-size:13px!important}#tab-perfiles .player-card .pcs .lbl{font-size:9px!important;letter-spacing:.06em!important}
#tab-perfiles .player-card .pc-actions{display:grid!important;grid-template-columns:1fr 36px!important;gap:7px!important;padding:10px 12px 12px!important}#tab-perfiles .player-card .pc-actions .btn{justify-content:center!important;min-height:34px!important}.pc-actions .icon-delete-btn{width:36px;height:34px}

/* Responsive layout: prevent the oversized/cropped tablet view */
@media(max-width:900px){.app-header{padding-inline:14px!important}.header-team-switcher{min-width:210px}.header-team-switcher select{max-width:130px}.team-admin-body{padding-inline:15px!important}.team-admin-footer{padding-inline:15px!important}#inicio-wrap>div>div:first-child{align-items:flex-start!important;gap:14px;flex-direction:column!important}#inicio-wrap>div>div:first-child>div:last-child{width:100%;flex-wrap:wrap!important}}
@media(max-width:620px){.header-team-switcher{min-width:0;max-width:205px}.header-team-icon{display:none}.team-admin-summary{grid-template-columns:1fr 1fr!important}.team-admin-summary>div:nth-child(3){grid-column:1/-1}.team-admin-footer span{display:none}#inicio-wrap{padding-inline:12px!important}#inicio-wrap h2{font-size:25px!important}.dashboard-team-button,.dashboard-player-button{flex:1}.team-admin-empty ol{flex-direction:column;align-items:stretch}.team-admin-empty li{justify-content:flex-start}}
}
/* Source: css/v175-compact-header-typography.css */
@layer compatibility{/* v175 · Compact header and roster typography hardening */

/* The roster hero previously kept the editorial Fraunces face from base.css. */
#app-shell .player-hero,
#app-shell .player-hero .ph-info,
#app-shell .player-hero .ph-nombre,
#app-shell .player-hero .ph-meta,
#app-shell .player-hero .ph-dorsal,
#app-shell .player-hero .ph-stat .val,
#app-shell #tab-perfiles .player-card,
#app-shell #tab-perfiles .player-card * {
  font-family: Inter, system-ui, sans-serif !important;
}
#app-shell .player-hero .ph-nombre {
  font-size: clamp(24px, 2vw, 30px) !important;
  line-height: 1.08 !important;
  font-weight: 800 !important;
  letter-spacing: -.035em !important;
}
#app-shell .player-hero .ph-dorsal,
#app-shell .player-hero .ph-stat .val { font-weight: 800 !important; }

/* Keep the active-team control compact even when browser zoom activates tablet CSS. */
#app-shell > .app-header .header-team-switcher {
  box-sizing: border-box !important;
  flex: 0 1 270px !important;
  width: min(270px, 34vw) !important;
  min-width: 190px !important;
  max-width: 270px !important;
  height: 42px !important;
  min-height: 42px !important;
  padding: 0 !important;
  overflow: hidden !important;
}
#app-shell > .app-header .header-team-icon {
  flex: 0 0 40px !important;
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
}
#app-shell > .app-header .header-team-switcher label {
  box-sizing: border-box !important;
  flex: 1 1 auto !important;
  width: auto !important;
  min-width: 0 !important;
  height: 40px !important;
  min-height: 40px !important;
  padding: 5px 8px 4px !important;
  margin: 0 !important;
  overflow: hidden !important;
}
#app-shell > .app-header .header-team-switcher label > span {
  display: block !important;
  flex: 0 0 auto !important;
  margin: 0 !important;
  white-space: nowrap !important;
}
#app-shell > .app-header #header-equipo-select {
  box-sizing: border-box !important;
  display: block !important;
  flex: 0 0 21px !important;
  width: 100% !important;
  max-width: none !important;
  height: 21px !important;
  min-height: 21px !important;
  margin: 0 !important;
  padding: 0 17px 0 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
  font-size: 13px !important;
  line-height: 21px !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}
#app-shell > .app-header .header-team-manage {
  box-sizing: border-box !important;
  flex: 0 0 39px !important;
  width: 39px !important;
  height: 40px !important;
  min-width: 39px !important;
  min-height: 40px !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 0 !important;
}

@media (max-width: 1050px) {
  #app-shell > .app-header .header-team-switcher {
    flex-basis: 230px !important;
    width: min(230px, 38vw) !important;
    min-width: 176px !important;
  }
  #app-shell > .app-header .header-team-switcher label > span { display: none !important; }
  #app-shell > .app-header .header-team-switcher label {
    justify-content: center !important;
    padding: 9px 7px !important;
  }
  #app-shell > .app-header #header-equipo-select {
    flex-basis: 22px !important;
    height: 22px !important;
    min-height: 22px !important;
    line-height: 22px !important;
  }
}

@media (max-width: 620px) {
  #app-shell > .app-header .header-team-switcher {
    flex: 1 1 168px !important;
    width: auto !important;
    min-width: 145px !important;
    max-width: 210px !important;
  }
  #app-shell > .app-header .header-team-icon { display: none !important; }
}
}
/* Source: css/v176-season-phases.css */
@layer compatibility{/* v176 · Useful season-phase manager */
.phase-manager-trigger{font-weight:750!important;border-color:var(--tlm-border)!important;background:var(--tlm-raised)!important;color:var(--tlm-action)!important}
.season-phases-modal{max-width:720px!important;padding:0!important;border-radius:12px!important;overflow:hidden!important;box-shadow:none}
.season-phases-header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:23px 26px 19px;background:var(--tlm-raised);border-bottom:1px solid var(--tlm-border)}
.season-phases-eyebrow{display:block;margin-bottom:6px;color:var(--tlm-action);font-size:10px;font-weight:850;letter-spacing:.1em;text-transform:uppercase}.season-phases-header h3{margin:0 0 6px!important;font-size:23px!important}.season-phases-header p{margin:0;max-width:540px;color:var(--tlm-muted);font-size:12px;line-height:1.5}
.season-phases-close{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;padding:0;border:0;border-radius:9px;background:transparent;color:var(--tlm-muted);font-size:24px;line-height:1;cursor:pointer}.season-phases-close:hover{background:var(--tlm-raised);color:var(--tlm-text)}
.season-phases-content{max-height:430px;overflow:auto;padding:18px 26px}.season-phases-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin-bottom:16px}.season-phases-summary>div{display:flex;flex-direction:column;gap:4px;padding:11px 13px;border:1px solid var(--tlm-border);border-radius:11px;background:var(--tlm-raised)}.season-phases-summary span{color:var(--tlm-muted);font-size:9px;font-weight:800;letter-spacing:.065em;text-transform:uppercase}.season-phases-summary strong{color:var(--tlm-text);font-size:20px;line-height:1}.season-phases-summary strong.is-warning{color:var(--tlm-warning)}
.season-phases-list{display:flex;flex-direction:column;gap:8px}.season-phase-row{display:grid;grid-template-columns:38px minmax(0,1fr) auto;align-items:center;gap:10px;padding:10px;border:1px solid var(--tlm-border);border-radius:12px;background:var(--tlm-panel);transition:.16s}.season-phase-row:hover{border-color:var(--tlm-action);box-shadow:none}.season-phase-order{display:grid;place-items:center;width:36px;height:36px;border-radius:10px;background:var(--tlm-raised);color:var(--tlm-action);font-size:11px;font-weight:850}
.season-phase-main{min-width:0}.season-phase-main input{display:block;box-sizing:border-box;width:100%;height:33px!important;min-height:33px!important;padding:4px 8px!important;border:1px solid transparent!important;border-radius:7px!important;background:transparent!important;color:var(--tlm-text);font-size:13px!important;font-weight:800}.season-phase-main input:hover,.season-phase-main input:focus{border-color:var(--tlm-action)!important;background:var(--tlm-raised)!important;box-shadow:none}.season-phase-main span{display:block;padding:1px 8px 0;color:var(--tlm-muted);font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.season-phase-actions{display:flex;gap:5px}.season-phase-actions>button{display:grid;place-items:center;box-sizing:border-box;width:32px;height:32px;min-width:32px;min-height:32px;padding:0;border:1px solid var(--tlm-border);border-radius:8px;background:var(--tlm-panel);color:var(--tlm-muted);cursor:pointer}.season-phase-actions>button:hover:not(:disabled){background:var(--tlm-raised);color:var(--tlm-action);border-color:var(--tlm-action)}.season-phase-actions>button:disabled{opacity:.3;cursor:default}.season-phase-actions svg{width:15px;height:15px;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.season-phase-actions .icon-delete-btn{color:var(--tlm-danger);border-color:#724650}.season-phase-actions .icon-delete-btn:hover{background:#40282e;color:var(--tlm-danger)}
.season-phases-empty{padding:30px 20px;text-align:center;border:1px dashed var(--tlm-border);border-radius:13px;background:var(--tlm-raised)}.season-phases-empty strong{display:block;margin-bottom:5px;font-size:15px}.season-phases-empty p{margin:0 auto 14px;max-width:470px;color:var(--tlm-muted);font-size:12px;line-height:1.5}
.season-phase-create{padding:16px 26px;border-top:1px solid var(--tlm-border);background:var(--tlm-raised)}.season-phase-create>div:first-child{display:flex;justify-content:space-between;gap:12px;margin-bottom:7px}.season-phase-create label{font-size:12px;font-weight:800;color:var(--tlm-text)}.season-phase-create>div:first-child span{color:var(--tlm-muted);font-size:10px}.season-phase-create-row{display:flex;gap:8px}.season-phase-create-row input{flex:1;min-width:0;height:39px!important;min-height:39px!important}.season-phase-create-row .btn{min-height:39px!important;white-space:nowrap}
.season-phases-footer{display:flex;justify-content:space-between;gap:10px;padding:14px 26px 18px;border-top:1px solid var(--tlm-border);background:var(--tlm-panel)}.season-phases-footer .btn{min-height:38px}
@media(max-width:620px){.season-phases-header,.season-phases-content,.season-phase-create,.season-phases-footer{padding-left:15px;padding-right:15px}.season-phases-summary{grid-template-columns:1fr 1fr}.season-phases-summary>div:last-child{grid-column:1/-1}.season-phase-row{grid-template-columns:34px minmax(0,1fr)}.season-phase-actions{grid-column:2;justify-content:flex-end}.season-phase-create>div:first-child span{display:none}.season-phase-create-row{align-items:stretch;flex-direction:column}.season-phases-footer{flex-wrap:wrap}.season-phases-footer .btn{flex:1}}
}
/* Source: css/mobile-responsive-v216.css */
@layer compatibility{/* TrainingLoadManager v216 — consolidated responsive layer.
   Loaded last on purpose: one predictable mobile/tablet composition. */

html{max-width:100%}
img,svg,canvas,video{max-width:100%}
button,input,select,textarea{max-width:100%}

/* ---------- Public landing ---------- */
@media (max-width:768px){
  .landing-v213{overflow:visible}
  .landing-v213 .lp-nav .ln-container{position:relative}
  .landing-v213 .lp-nav .mobile-open .lp-links{max-height:calc(100dvh - 66px);overflow-y:auto;box-shadow:0 18px 35px rgba(7,27,44,.15)}
  .landing-v213 .lp-nav .mobile-open .lp-links>a,
  .landing-v213 .lp-nav .mobile-open .lp-links>button{min-height:48px;display:flex;align-items:center}
  .landing-v213 .lp-nav .mobile-open .lp-links .ln-cta{justify-content:center}
  .landing-v213 .lp-hero-product{overflow:hidden}
  .landing-v213 .lp-shot{height:clamp(245px,70vw,350px);overflow:hidden;padding:5px;background:#e9eef2}
  .landing-v213 .lp-shot img{width:auto;max-width:none;height:100%;object-fit:cover;object-position:18% center}
  .landing-v213 .lp-wide-shot{height:clamp(260px,72vw,390px);overflow:hidden;border:1px solid #9eacb7;background:#e9eef2}
  .landing-v213 .lp-wide-shot img{width:auto;max-width:none;height:100%;object-fit:cover;object-position:42% center;border:0}
  .landing-v213 .lp-wide-shot figcaption{position:absolute;left:-9999px}
  .landing-v213 .lp-product-figure,.landing-v213 .lp-pair figure,.landing-v213 .lp-players figure{overflow:hidden}
  .landing-v213 .lp-product-figure img,.landing-v213 .lp-pair img,.landing-v213 .lp-players figure img{min-height:230px;object-fit:cover;object-position:left center}
  .landing-v213 .lp-plan-common p{min-height:42px;display:flex!important;align-items:center}
  .landing-v213 .lp-plan-compare button,.landing-v213 .lp-faq-list button{min-height:48px}
  .landing-v213 .lp-footer nav a{min-height:44px;display:flex;align-items:center}
}
@media (max-width:430px){
  .landing-v213 .lp-shell{width:calc(100% - 32px)}
  .landing-v213 .lp-hero{padding-top:52px}
  .landing-v213 .lp-hero h1{font-size:clamp(40px,11.3vw,49px);line-height:.98;overflow-wrap:anywhere}
  .landing-v213 .lp-lead{font-size:16px;line-height:1.55}
  .landing-v213 .lp-problem,.landing-v213 .lp-feature,.landing-v213 .lp-players,.landing-v213 .lp-senior,.landing-v213 .lp-pricing{padding:68px 0}
  .landing-v213 .lp-problem h2,.landing-v213 .lp-feature h2,.landing-v213 .lp-workflow h2,.landing-v213 .lp-players h2,.landing-v213 .lp-senior h2,.landing-v213 .lp-pricing h2,.landing-v213 .lp-faq h2{font-size:34px;overflow-wrap:anywhere}
  .landing-v213 .lp-workflow li{grid-template-columns:28px 92px minmax(0,1fr);gap:4px}
  .landing-v213 .lp-workflow li span{font-size:12px}
  .landing-v213 .lp-plan-compare header{gap:12px}
  .landing-v213 .lp-plan-compare header>strong{font-size:25px}
  .landing-v213 .lp-footer nav{width:100%;grid-template-columns:1fr 1fr;gap:0 20px}
}

/* ---------- Private product shell ---------- */
@media (max-width:900px){
  #app-shell{grid-template-columns:minmax(0,1fr)!important;grid-template-rows:60px minmax(0,1fr)!important;grid-template-areas:"header" "main"!important;width:100%!important;max-width:100%!important}
  body.demo-mode #app-shell{height:calc(100dvh - 38px)!important;min-height:0!important}
  #app-shell>.app-header{grid-area:header!important;grid-column:1!important;height:60px!important;min-height:60px!important;padding:0 12px!important;gap:10px!important;position:relative!important;top:0!important;left:0!important}
  html body #app-shell>header.app-header{top:0!important;inset-block-start:0!important;transform:none!important}
  body.demo-mode #app-shell>.app-header{top:0!important}
  #app-shell>.app-sidebar{position:fixed!important;inset:0 auto 0 0!important;width:min(290px,86vw)!important;max-width:86vw!important;height:100dvh!important;z-index:1001!important;transform:translateX(-102%)!important;transition:transform .2s ease!important;box-shadow:18px 0 44px rgba(4,18,32,.25)!important}
  #app-shell.mobile-nav-open>.app-sidebar,#app-shell.sidebar-open>.app-sidebar{transform:translateX(0)!important}
  #app-shell.mobile-nav-open:after,#app-shell.sidebar-open:after{content:"";position:fixed;inset:0;background:rgba(4,18,32,.48);z-index:1000}
  #app-shell>main{grid-area:main!important;grid-column:1!important;width:100%!important;max-width:100%!important;min-width:0!important}
  body.demo-mode #app-shell>.app-sidebar{top:38px!important;height:calc(100dvh - 38px)!important}
  #app-shell>.app-header .mobile-nav-toggle{display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 44px!important;width:44px!important;height:44px!important;padding:10px!important}
  .app-header .ah-title-wrap{min-width:0!important;flex:1 1 auto!important}
  .app-header .header-team-switcher{min-width:0!important;width:min(100%,330px)!important}
  .app-header .header-team-switcher label{min-width:0!important;flex:1 1 auto!important}
  .app-header .header-team-switcher select{min-width:0!important;width:100%!important;text-overflow:ellipsis!important}
  .app-header>div:last-child{gap:6px!important;flex:0 0 auto!important}
  .app-header>div:last-child>div:first-child,.app-header>div:last-child>div:nth-child(2){display:none!important}
  .app-header .profile-trigger{width:44px!important;height:44px!important;justify-content:center!important;padding:4px!important}
  .app-header .profile-trigger .ah-user-name,.app-header .profile-trigger>svg{display:none!important}
  #user-menu{top:56px!important;right:10px!important;max-width:calc(100vw - 20px)!important}
  #app-shell>main>.tab-panel{width:100%!important;max-width:100%!important;min-width:0!important}
  .tab-panel>.page,.tab-panel>.page-shell,.tab-panel>[class$="-wrap"],.tab-panel>[class$="-root"]{max-width:100%!important}
  .panel-header,.page-header,.ce44-toolbar,.salud-toolbar,.somato-toolbar,.unified-report-toolbar,.load-player-toolbar,.pm-pro-toolbar,.mcf-toolbar{flex-wrap:wrap!important;gap:12px!important}
  .panel-header>* ,.page-header>* ,.ce44-toolbar>* ,.salud-toolbar>* ,.somato-toolbar>* ,.unified-report-toolbar>*{min-width:0!important}
  .pricing-grid,.dashboard-grid,.inicio-grid,.analysis-grid,.charts-grid,.grid-2,.page-grid,.wellness-chart-grid,.injury-insights-grid,.somato-grid,.fr-grid{grid-template-columns:1fr!important}
  .kpi-grid,.kpis-grid,.dash-kpis,.db-kpis,.inicio-kpis,.salud-kpis-grid,.report-kpi-grid,.tlr-kpis,.pv38-kpis,.mcf-summary-kpis,.cmj-analisis-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .table-wrap,.report-table-wrap,.tlr-table-wrap,.fr-table-wrap,.somato-table-wrap,.wellness-table-wrap,.pm-minutes-table-wrap,.match-science-table-wrap{width:100%!important;max-width:100%!important;overflow-x:auto!important;overscroll-behavior-inline:contain;-webkit-overflow-scrolling:touch}
  .table-wrap table,.report-table-wrap table,.tlr-table-wrap table,.fr-table-wrap table,.somato-table-wrap table,.wellness-table-wrap table,.pm-minutes-table-wrap table,.match-science-table-wrap table{min-width:680px}
  canvas{width:100%!important;max-width:100%!important}
  .modal,.modal-content,.profile-modal,.team-admin-modal{max-width:calc(100vw - 24px)!important;max-height:calc(100dvh - 24px)!important}
}

@media (max-width:640px){
  #app-shell>.app-header{padding-inline:8px!important}
  .app-header .header-team-icon{display:none!important}
  .app-header .header-team-switcher{width:auto!important;flex:1 1 auto!important;max-width:none!important}
  .app-header .header-team-switcher label>span{font-size:8px!important}
  .app-header .header-team-manage{flex:0 0 40px!important;width:40px!important;height:40px!important}
  #app-shell>main>.tab-panel{padding:12px!important}
  .tab-panel h1,.tab-panel .page-title{font-size:clamp(24px,8vw,32px)!important;line-height:1.05!important;overflow-wrap:anywhere}
  .tab-panel h2{overflow-wrap:anywhere}
  .subtabs,.tabs,.salud-tabs,.fr-tabs,.match-tabs,.partido-tabs,.plan-v38-tabs,.isak-tabs{display:flex!important;width:100%!important;max-width:100%!important;overflow-x:auto!important;overscroll-behavior-inline:contain;scrollbar-width:none}
  .subtabs::-webkit-scrollbar,.tabs::-webkit-scrollbar,.salud-tabs::-webkit-scrollbar,.fr-tabs::-webkit-scrollbar,.match-tabs::-webkit-scrollbar,.partido-tabs::-webkit-scrollbar{display:none}
  .subtabs button,.tabs button,.salud-tabs button,.fr-tabs button,.match-tabs button,.partido-tabs button,.plan-v38-tabs button,.isak-tabs button{flex:0 0 auto!important;min-height:44px!important;white-space:nowrap!important}
  .kpi-grid,.kpis-grid,.dash-kpis,.db-kpis,.inicio-kpis,.salud-kpis-grid,.report-kpi-grid,.tlr-kpis,.pv38-kpis,.mcf-summary-kpis,.cmj-analisis-kpis{grid-template-columns:1fr!important}
  .player-grid,.players-cards-grid,.player-load-grid,.pv38-grid,.pm-pro-grid,.pm32-grid,.pm33-grid,.pp24-grid,.ce44-picker-grid,.ce44-guide-grid,.report-guide-grid,.injury-form-grid,.form-grid,.profile-edit-grid{grid-template-columns:1fr!important}
  .cal-grid,.pv38-annual-grid{grid-template-columns:repeat(7,minmax(42px,1fr))!important;overflow-x:auto!important}
  .calendar-day,.pv38-annual-grid>*{min-width:42px!important}
  input,select,textarea{font-size:16px!important}
  button,.btn,[role="button"]{min-height:44px}
  .ce44-task-toolbar,.ce44-task-toolbar-main,.ce44-toolbar,.pm-header,.pm-pro-header,.mcf-header{flex-wrap:wrap!important}
  .ce44-task-toolbar>* ,.ce44-toolbar>* ,.pm-header>* ,.mcf-header>*{min-width:0!important}
  .ce44-guide-grid{font-size:12px!important}
  .pricing-card{padding:24px 20px!important}
}

@media (max-width:430px){
  .app-header .header-team-switcher{max-width:calc(100vw - 112px)!important}
  .app-header .header-team-manage{display:none!important}
  .app-header .header-team-switcher label>span{display:none!important}
  .app-header .header-team-switcher select{height:42px!important}
  #app-shell>main>.tab-panel{padding:10px!important}
  .panel-header,.page-header{margin-bottom:16px!important;padding-top:8px!important}
  .modal,.modal-content,.profile-modal,.team-admin-modal{width:calc(100vw - 16px)!important;max-width:calc(100vw - 16px)!important;max-height:calc(100dvh - 16px)!important;margin:8px!important;border-radius:12px!important}
  .lp-plan-compare article{max-width:100%}
}
}
/* Source: css/auth-v217.css */
@layer compatibility{/* TrainingLoadManager v217 — public access experience */
.landing-v213 .lp-links .ln-login{
  height:42px;
  padding:0 18px;
  color:#fff;
  background:#175fd2;
  border:1px solid #175fd2;
  border-radius:3px;
  transition:background .18s ease,border-color .18s ease,color .18s ease;
}
.landing-v213 .lp-links .ln-login:hover,
.landing-v213 .lp-links .ln-login:focus-visible{
  color:#fff;
  background:#0f4fae;
  border-color:#0f4fae;
  outline:none;
}

#auth.auth-wrap{
  --auth-ink:#071b2c;
  --auth-blue:#175fd2;
  --auth-orange:#f06432;
  --auth-line:#cbd4dc;
  display:grid;
  grid-template-columns:minmax(420px,1.08fr) minmax(480px,.92fr);
  min-height:100dvh;
  width:100%;
  background:#f4f6f7;
  color:var(--auth-ink);
  font-family: Inter, system-ui, sans-serif;
}
#auth *{box-sizing:border-box}
#auth .auth-visual{position:sticky;top:0;height:100dvh;min-height:640px;overflow:hidden;background:#071b2c}
#auth .auth-visual>img{position:absolute;inset:0;width:100%;height:100%;max-width:none;object-fit:cover;object-position:center}
#auth .auth-visual-shade{position:absolute;inset:0;background:linear-gradient(180deg,rgba(3,15,26,.14) 0%,rgba(3,15,26,.18) 38%,rgba(3,15,26,.9) 100%)}
#auth .auth-brand{position:absolute;z-index:2;top:38px;left:42px;display:flex;align-items:center;gap:11px;color:#fff;text-decoration:none}
#auth .auth-brand>img{width:40px;height:40px}
#auth .auth-brand>span{display:grid;line-height:.92}
#auth .auth-brand strong{font-size:15px;letter-spacing:-.02em}
#auth .auth-brand small{margin-top:5px;color:#b8c7d4;font-size:8px;letter-spacing:.18em}
#auth .auth-visual-copy{position:absolute;z-index:2;left:42px;right:42px;bottom:44px;max-width:650px;color:#fff}
#auth .auth-visual-copy>span{color:#8fbcff;font-size:10px;font-weight:850;letter-spacing:.16em}
#auth .auth-visual-copy h2{max-width:610px;margin:17px 0 14px;color:#fff!important;font-size:clamp(36px,4vw,62px);line-height:.98;letter-spacing:-.045em}
#auth .auth-visual-copy p{max-width:560px;margin:0;color:#d5dfe7;font-size:15px;line-height:1.6}
#auth .auth-visual-copy>div{display:flex;gap:22px;margin-top:30px;padding-top:17px;border-top:1px solid rgba(255,255,255,.28);color:#d8e1e8;font-size:12px}
#auth .auth-visual-copy b{margin-right:-15px;color:#ff8a5f;font:700 10px/1.4 monospace}

#auth>#auth-login,#auth>#auth-signup{
  align-self:center;
  width:min(100% - 64px,470px);
  margin:40px auto;
  padding:0;
}
#auth .auth-back{display:inline-flex;align-items:center;min-height:42px;margin:0 0 30px;padding:0 12px 0 0;border:0;background:transparent;color:#405469;font-size:13px;font-weight:750;cursor:pointer}
#auth .auth-back:hover{color:var(--auth-blue)}
#auth .auth-header{position:relative;padding-left:18px;margin-bottom:28px;border-left:4px solid var(--auth-orange)}
#auth .auth-header>span{display:block;margin-bottom:10px;color:var(--auth-blue);font-size:10px;font-weight:850;letter-spacing:.16em}
#auth .auth-header h1{margin:0;font-size:clamp(36px,4vw,52px);line-height:1;letter-spacing:-.045em}
#auth .auth-header p{margin:12px 0 0;color:#5b6d7e;font-size:15px;line-height:1.5}
#auth .google-auth{display:flex;align-items:center;justify-content:center;gap:12px;width:100%;min-height:50px;padding:0 18px;border:1px solid #aebac4;border-radius:3px;background:#fff;color:var(--auth-ink);font-size:14px;font-weight:800;cursor:pointer}
#auth .google-auth:hover{border-color:#738493;background:#fafbfc}
#auth .google-auth svg{display:block;flex:0 0 21px;width:21px;height:21px;max-width:21px}
#auth .auth-divider{display:flex;align-items:center;gap:14px;margin:24px 0;color:#748391;font-size:11px}
#auth .auth-divider:before,#auth .auth-divider:after{content:"";height:1px;flex:1;background:var(--auth-line)}
#auth .auth-divider span{white-space:nowrap}
#auth .afs-form{display:grid;gap:9px}
#auth .afs-form label{margin-top:5px;color:#263b4d;font-size:12px;font-weight:800}
#auth .afs-input{width:100%;height:50px;padding:0 14px;border:1px solid #b8c3cc;border-radius:3px;background:#fff;color:var(--auth-ink);font:500 15px/1 inherit;outline:none}
#auth .afs-input::placeholder{color:#93a0ab}
#auth .afs-input:focus{border-color:var(--auth-blue);box-shadow:0 0 0 3px rgba(23,95,210,.12)}
#auth .auth-label-row{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:5px}
#auth .auth-label-row label{margin:0}
#auth .auth-label-row button{min-height:34px;padding:0;border:0;background:transparent;color:var(--auth-blue);font-size:12px;font-weight:750;cursor:pointer}
#auth .afs-submit{width:100%;min-height:52px;margin-top:13px;border:1px solid var(--auth-blue);border-radius:3px;background:var(--auth-blue);color:#fff;font-size:14px;font-weight:850;cursor:pointer;box-shadow:0 8px 20px rgba(23,95,210,.18)}
#auth .afs-submit:hover{background:#0f4fae;border-color:#0f4fae}
#auth .afs-switch{margin-top:24px;padding-top:19px;border-top:1px solid var(--auth-line);color:#5d6d7b;text-align:center;font-size:13px}
#auth .afs-switch a,#auth .auth-terms a{color:var(--auth-blue);font-weight:800;text-decoration:none}
#auth .auth-name-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
#auth .auth-name-grid>div{display:grid;gap:9px}
#auth .afs-plan-select-wrap{position:relative}
#auth .afs-plan-help,#auth .auth-terms{display:block;color:#748391;font-size:11px;line-height:1.45}
#auth .auth-terms{text-align:center;margin-top:3px}

@media(max-width:900px){
  #auth.auth-wrap{grid-template-columns:minmax(270px,.75fr) minmax(430px,1.25fr)}
  #auth .auth-visual-copy h2{font-size:40px}
}
@media(max-width:700px){
  #auth.auth-wrap{display:block;min-height:100dvh;padding:0 0 32px;background:#fff}
  #auth .auth-visual{position:relative;height:170px;min-height:0}
  #auth .auth-visual>img{object-position:center 36%}
  #auth .auth-visual-shade{background:linear-gradient(180deg,rgba(3,15,26,.16),rgba(3,15,26,.68))}
  #auth .auth-brand{top:22px;left:20px}
  #auth .auth-visual-copy{left:20px;right:20px;bottom:20px}
  #auth .auth-visual-copy>span,#auth .auth-visual-copy p,#auth .auth-visual-copy>div{display:none}
  #auth .auth-visual-copy h2{max-width:340px;margin:0;font-size:28px;line-height:1.02}
  #auth>#auth-login,#auth>#auth-signup{width:min(100% - 36px,470px);margin:0 auto;padding-top:24px}
  #auth .auth-back{margin-bottom:19px}
  #auth .auth-header{margin-bottom:22px}
  #auth .auth-header h1{font-size:38px}
}
@media(max-width:430px){
  .landing-v213 .lp-nav .mobile-open .lp-links .ln-login{justify-content:center;margin:12px 0 4px;border:1px solid #175fd2;background:#175fd2;color:#fff}
  #auth .auth-visual{height:145px}
  #auth .auth-brand>img{width:34px;height:34px}
  #auth .auth-visual-copy h2{font-size:24px}
  #auth>#auth-login,#auth>#auth-signup{width:calc(100% - 28px);padding-top:18px}
  #auth .auth-back{margin-bottom:12px}
  #auth .auth-header{padding-left:14px;margin-bottom:18px}
  #auth .auth-header h1{font-size:34px}
  #auth .auth-header p{font-size:14px}
  #auth .google-auth,#auth .afs-input,#auth .afs-submit{min-height:48px;height:48px}
  #auth .auth-name-grid{grid-template-columns:1fr;gap:4px}
  #auth .auth-divider{margin:19px 0}
}
}
/* Source: css/app-v221-courtside.css */
@layer compatibility{/* v221 — Courtside product skin: landing visual language inside the application. */
#app-shell{
  --court-ink:#061724;--court-deep:#030d15;--court-panel:#0a1d2d;--court-blue:#2f7df4;
  --court-blue-soft:#e9f2ff;--court-lime:#c6f36b;--court-orange:#ff6b35;
  --court-bg:#edf2f5;--court-sheet:#fff;--court-line:#d3dde4;--court-muted:#657988;
  background:var(--court-bg);color:var(--court-ink);font-family: Inter, system-ui, sans-serif;
}

/* Product chrome */
#app-shell .app-sidebar{background:linear-gradient(180deg,#030d15,#071a28 70%,#0a2030);border-right:1px solid rgba(255,255,255,.09)}
#app-shell .sidebar-brand{background:transparent;border-bottom:1px solid rgba(255,255,255,.09)}
#app-shell .sidebar-brand .brand-mark{background:none;border-radius:50%;box-shadow:0 0 0 1px rgba(255,255,255,.15)}
#app-shell .brand-name{color:#fff;font-weight:850;letter-spacing:-.025em}
#app-shell .nav-section-label{color:#6d8798;font-size:9px;letter-spacing:.18em}
#app-shell .app-nav button{position:relative;color:#a8bbc8;border:1px solid transparent;border-radius:12px;font-weight:700;transition:.18s ease}
#app-shell .app-nav button:hover{color:#fff;background:rgba(255,255,255,.055)}
#app-shell .app-nav button.active{color:#fff;background:linear-gradient(110deg,rgba(47,125,244,.24),rgba(47,125,244,.08));border-color:rgba(111,166,255,.24);box-shadow:inset 3px 0 0 var(--court-blue)}
#app-shell .app-nav button.active svg{color:#80b0ff}
#app-shell .app-header{height:72px;padding-inline:28px;background:rgba(6,23,36,.97);border-bottom:1px solid rgba(255,255,255,.1);box-shadow:0 12px 35px rgba(3,13,21,.16);backdrop-filter:blur(16px)}
#app-shell .app-header .ah-title-wrap h1,#app-shell .app-header .ah-title-wrap strong{color:#fff!important}
#app-shell .app-header .ah-title-wrap .sub{color:#91a8b7;background:rgba(255,255,255,.07)}
#app-shell .app-header button,#app-shell .app-header select{color:#d7e3ea;background:rgba(255,255,255,.055);border-color:rgba(255,255,255,.16);border-radius:10px}
#app-shell .app-header button:hover{color:#fff;background:rgba(255,255,255,.1)}
#app-shell .mobile-nav-toggle{color:#fff!important}

/* Main canvas and common geometry */
#app-shell .app-main{background:
  radial-gradient(circle at 92% 2%,rgba(47,125,244,.095),transparent 25%),
  linear-gradient(180deg,#eaf0f4,#f4f6f7 500px);}
#app-shell .tab-panel{max-width:1600px;margin-inline:auto;padding:30px 34px 56px!important}
#app-shell .tab-panel>.panel-header,
#app-shell .tab-panel>.fr-hero,#app-shell .tab-panel>.isak-hero,#app-shell .tab-panel>.perfiles-hero,
#app-shell .tab-panel>.load-hero,#app-shell .tab-panel>.module-hero,#app-shell .tab-panel>.page-hero{
  position:relative;margin:0 0 24px!important;padding:25px 28px!important;min-height:104px!important;
  color:#fff;background:linear-gradient(115deg,#0b263a,#061724 72%);border:1px solid #173a52!important;border-radius:20px!important;
  box-shadow:0 20px 48px rgba(6,23,36,.14)!important;overflow:hidden!important;
}
#app-shell .tab-panel>.panel-header:before,
#app-shell .tab-panel>.fr-hero:before,#app-shell .tab-panel>.isak-hero:before,#app-shell .tab-panel>.perfiles-hero:before,
#app-shell .tab-panel>.load-hero:before,#app-shell .tab-panel>.module-hero:before,#app-shell .tab-panel>.page-hero:before{
  content:"";position:absolute;inset:0 auto 0 0;width:5px;background:linear-gradient(#65a0ff,#2f7df4 55%,#c6f36b);
}
#app-shell .tab-panel>.panel-header h2,#app-shell .tab-panel>.panel-header .panel-title,
#app-shell .tab-panel>.fr-hero h2,#app-shell .tab-panel>.isak-hero h2,#app-shell .tab-panel>.perfiles-hero h2,
#app-shell .tab-panel>.load-hero h2,#app-shell .tab-panel>.module-hero h2,#app-shell .tab-panel>.page-hero h2{
  margin:0 0 7px!important;color:#fff!important;font-size:clamp(25px,2.4vw,38px)!important;line-height:1;letter-spacing:-.045em;
}
#app-shell .tab-panel>.panel-header p,#app-shell .tab-panel>.panel-header .muted,
#app-shell .tab-panel>.fr-hero p,#app-shell .tab-panel>.isak-hero p,#app-shell .tab-panel>.perfiles-hero p,
#app-shell .tab-panel>.load-hero p,#app-shell .tab-panel>.module-hero p,#app-shell .tab-panel>.page-hero p{color:#a9bdca!important}

/* Cards and KPIs */
#app-shell .card,#app-shell [class*="-card"]{border-color:var(--court-line);border-radius:18px;box-shadow:0 12px 34px rgba(6,23,36,.065)}
#app-shell .card{padding:20px;background:rgba(255,255,255,.94)}
#app-shell .card-title{color:var(--court-ink);font-size:13px;font-weight:850;letter-spacing:-.012em}
#app-shell .kpi-grid{gap:12px}
#app-shell .kpi-grid>div,#app-shell .kpi-card,#app-shell .stat-card,#app-shell [class*="kpi-card"]{
  position:relative;background:#fff;border:1px solid var(--court-line);border-radius:15px;box-shadow:0 10px 28px rgba(6,23,36,.055);overflow:hidden;
}
#app-shell .kpi-grid>div:before,#app-shell .kpi-card:before,#app-shell .stat-card:before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:var(--court-blue)}
#app-shell .kpi-grid strong,#app-shell .kpi-value,#app-shell .stat-value{color:var(--court-ink);font-weight:900;letter-spacing:-.035em}

/* Subnavigation — same pill grammar on every module */
#app-shell .cargas-mode-toggle,#app-shell .plan-v38-tabs,#app-shell .fr-tabs,#app-shell .isak-tabs,
#app-shell .pm-pro-tabs,#app-shell .salud-tabs,#app-shell .subtabs,#app-shell [class*="-tabs"]{
  gap:5px;padding:5px!important;margin-bottom:18px;background:#dfe7ec!important;border:1px solid #c9d5dd!important;border-radius:14px!important;box-shadow:none!important;
}
#app-shell .cargas-mode-toggle button,#app-shell .plan-v38-tabs button,#app-shell .fr-tabs button,#app-shell .isak-tabs button,
#app-shell .pm-pro-tabs button,#app-shell .salud-tabs button,#app-shell .subtabs button,#app-shell [class*="-tabs"] button{
  min-height:40px;padding:9px 16px!important;color:#526b7c;background:transparent!important;border:0!important;border-radius:10px!important;font-weight:800!important;box-shadow:none!important;
}
#app-shell .cargas-mode-toggle button.active,#app-shell .plan-v38-tabs button.active,#app-shell .fr-tabs button.active,
#app-shell .isak-tabs button.active,#app-shell .pm-pro-tabs button.active,#app-shell .salud-tabs button.active,
#app-shell .subtabs button.active,#app-shell [class*="-tabs"] button.active{
  color:#fff!important;background:#071b2c!important;box-shadow:0 8px 20px rgba(6,23,36,.15)!important;
}

/* Controls */
#app-shell input,#app-shell select,#app-shell textarea{min-height:42px;color:#10293b;background:#fff;border:1px solid #c8d4dc;border-radius:10px;box-shadow:0 1px 0 rgba(6,23,36,.025)}
#app-shell input:focus,#app-shell select:focus,#app-shell textarea:focus{outline:0;border-color:#4d91ff;box-shadow:0 0 0 3px rgba(47,125,244,.14)}
#app-shell .btn,#app-shell button.btn{min-height:40px;border-radius:10px;font-weight:800;transition:.16s ease}
#app-shell .btn-primary,#app-shell .btn.btn-primary{color:#fff;background:linear-gradient(135deg,#347ff1,#1859bd);border-color:#3e86f2;box-shadow:0 9px 22px rgba(47,125,244,.2)}
#app-shell .btn-primary:hover,#app-shell .btn.btn-primary:hover{filter:brightness(1.08);transform:translateY(-1px)}

/* Tables: scouting-board density and hierarchy */
#app-shell .table-wrap{border:1px solid var(--court-line)!important;border-radius:14px;background:#fff;overflow:auto}
#app-shell table{background:#fff;border-collapse:separate;border-spacing:0}
#app-shell table thead th{padding:12px 14px;color:#607789;background:#edf2f5;border-bottom:1px solid #cbd7de;font-size:9px;font-weight:900;letter-spacing:.095em;text-transform:uppercase;white-space:nowrap}
#app-shell table tbody td{padding:13px 14px;color:#173044;border-bottom:1px solid #e1e8ec}
#app-shell table tbody tr:hover td{background:#f3f7fa}
#app-shell table tbody tr:last-child td{border-bottom:0}

/* Guidance, alerts and status surfaces */
#app-shell .help-block,#app-shell .info-banner,#app-shell [class*="-notice"],#app-shell [class*="-guide"]{
  border-color:#c6d7e7;border-radius:13px;background:#edf5ff;color:#25435a;
}
#app-shell .badge,#app-shell [class*="status-badge"],#app-shell [class*="-pill"]{border-radius:99px;font-weight:800}

/* Modals keep the same dark header + white work surface. */
#app-shell .modal-overlay{background:rgba(2,9,15,.76);backdrop-filter:blur(7px)}
#app-shell .modal,#app-shell .modal-content,#app-shell [class*="modal-card"]{border:1px solid rgba(176,205,224,.3);border-radius:22px;box-shadow:0 35px 100px rgba(0,0,0,.38)}
#app-shell .modal-header,#app-shell [class*="modal-head"]{color:#fff;background:#071b2c;border-color:#17384e}
#app-shell .modal-header h2,#app-shell .modal-header h3,#app-shell [class*="modal-head"] h2,#app-shell [class*="modal-head"] h3{color:#fff}

/* Scrollbars and focus */
#app-shell *{scrollbar-width:thin;scrollbar-color:#8ba0ae transparent}
#app-shell :focus-visible{outline:2px solid #4d91ff;outline-offset:2px}

/* The current horizontal shell uses the former sidebar as its primary top bar. */
#app-shell>.app-sidebar{background:#061724!important;border-bottom:1px solid rgba(255,255,255,.1)!important}
#app-shell>.app-header{background:#fffefa!important;color:#102432!important;border-bottom:1px solid #d6dee3!important;box-shadow:0 8px 24px rgba(6,23,36,.055)!important}
#app-shell>.app-header .ah-title-wrap h1,#app-shell>.app-header .ah-title-wrap strong{color:#102432!important}
#app-shell>.app-header .ah-title-wrap .sub{color:#657988!important;background:#edf2f5!important}
#app-shell>.app-header button,#app-shell>.app-header select{color:#173044!important;background:#fff!important;border-color:#ccd7de!important}
#app-shell>main{background:radial-gradient(circle at 92% 0,rgba(47,125,244,.1),transparent 25%),linear-gradient(180deg,#eaf0f4,#f4f6f7 520px)!important}

/* Dashboard / Resumen uses a purpose-built command-centre composition. */
#app-shell #inicio-wrap{max-width:1600px;margin:0 auto;padding:30px 34px 58px!important}
#app-shell #inicio-wrap .command-home__masthead{position:relative;padding:28px 30px!important;margin-bottom:18px!important;color:#fff!important;background:linear-gradient(112deg,#0c2b42,#061724 68%)!important;border:1px solid #173b54!important;border-radius:20px!important;box-shadow:0 22px 50px rgba(6,23,36,.15)!important;overflow:hidden}
#app-shell #inicio-wrap .command-home__masthead:after{content:"";position:absolute;width:280px;height:280px;right:-120px;top:-145px;border:55px solid rgba(77,145,255,.1);border-radius:50%}
#app-shell #inicio-wrap .command-home__masthead h2{color:#fff!important;font-size:clamp(30px,3vw,46px)!important;letter-spacing:-.05em!important}
#app-shell #inicio-wrap .command-home__masthead>div:first-child>div,#app-shell #inicio-wrap .command-home__masthead p{color:#9fb5c3!important}
#app-shell #inicio-wrap .command-home__scorestrip{gap:12px!important;margin-bottom:18px!important}
#app-shell #inicio-wrap .command-home__scorestrip>.kpi-card,
#app-shell #inicio-wrap .kpi-card{padding:20px 20px 18px!important;background:#fff!important;border:1px solid #d1dce3!important;border-radius:16px!important;box-shadow:0 12px 30px rgba(6,23,36,.065)!important;overflow:hidden!important}
#app-shell #inicio-wrap .kpi-card:before{content:""!important;display:block!important;position:absolute!important;inset:0 auto 0 0!important;width:4px!important;background:#2f7df4!important}
#app-shell #inicio-wrap .kpi-card:nth-child(2):before{background:#22a97a!important}
#app-shell #inicio-wrap .kpi-card:nth-child(3):before{background:#ff6b35!important}
#app-shell #inicio-wrap .kpi-card:nth-child(4):before{background:#7867e9!important}
#app-shell #inicio-wrap .kpi-card .kpi-label{color:#657b8b!important;font-size:10px!important;letter-spacing:.1em!important}
#app-shell #inicio-wrap .kpi-card .kpi-value{color:#071724!important;font-weight:900!important}
#app-shell #inicio-wrap .dashboard-grid>*,#app-shell #inicio-wrap .command-home__main>*,#app-shell #inicio-wrap .command-home__priority{
  background:#fff!important;border:1px solid #d1dce3!important;border-radius:18px!important;box-shadow:0 14px 36px rgba(6,23,36,.065)!important;
}

/* Important legacy geometry is deliberately overridden here. */
#app-shell .card,#app-shell [class*="-card"]{border-radius:18px!important;box-shadow:0 12px 34px rgba(6,23,36,.065)!important}
#app-shell .kpi-grid>div,#app-shell .kpi-card,#app-shell .stat-card,#app-shell [class*="kpi-card"]{border-radius:15px!important;border-color:#d1dce3!important;background:#fff!important}
#app-shell .table-wrap{border-radius:14px!important}

@media(max-width:900px){
  #app-shell .tab-panel{padding:20px 20px 44px!important}
  #app-shell .app-header{padding-inline:16px}
}
@media(max-width:760px){
  #app-shell .app-sidebar{box-shadow:22px 0 55px rgba(0,0,0,.35)}
  #app-shell .tab-panel{padding:14px 12px 92px!important}
  #app-shell .tab-panel>.panel-header,#app-shell .tab-panel>.fr-hero,#app-shell .tab-panel>.isak-hero,
  #app-shell .tab-panel>.perfiles-hero,#app-shell .tab-panel>.load-hero,#app-shell .tab-panel>.module-hero,#app-shell .tab-panel>.page-hero{
    padding:20px 18px 20px 23px!important;margin-bottom:14px!important;border-radius:16px!important;
  }
  #app-shell .tab-panel>.panel-header h2,#app-shell .tab-panel>.panel-header .panel-title{font-size:27px!important}
  #app-shell .card{padding:15px;border-radius:14px}
  #app-shell .kpi-grid{gap:8px}
  #app-shell .cargas-mode-toggle,#app-shell .plan-v38-tabs,#app-shell .fr-tabs,#app-shell .isak-tabs,
  #app-shell .pm-pro-tabs,#app-shell .salud-tabs,#app-shell .subtabs,#app-shell [class*="-tabs"]{border-radius:12px!important}
  #app-shell table thead th,#app-shell table tbody td{padding:10px 11px}
  #app-shell #inicio-wrap{padding:14px 12px 92px!important}
  #app-shell #inicio-wrap .command-home__masthead{padding:21px 19px!important;border-radius:16px!important}
  #app-shell #inicio-wrap .command-home__masthead h2{font-size:31px!important}
  #app-shell #inicio-wrap .command-home__scorestrip{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important}
  #app-shell #inicio-wrap .command-home__scorestrip>.kpi-card{min-width:0!important;padding:16px 14px!important;border-radius:13px!important}
}
}
/* Source: css/app-v222-sorare-product.css */
@layer compatibility{/* v222 — full product redesign. Dark competitive workspace inspired by modern fantasy-sport products. */
#app-shell{
  --ink:#f6f8fa;--ink-2:#c2ced6;--muted:#8193a0;--line:#263642;--line-2:#344754;
  --surface-0:#050a0e;--surface-1:#09131a;--surface-2:#0e1b24;--surface-3:#14252f;
  --blue:#4f91ff;--blue-2:#246bdc;--lime:#c8f36b;--orange:#ff7043;--green:#2bd391;--red:#ff5c6c;--amber:#f4b740;
  --primary:#4f91ff!important;--primary-light:#142b45!important;--background:#050a0e!important;
  --surface:#0e1b24!important;--card:#0e1b24!important;--border:#263642!important;
  --text:#f6f8fa!important;--text-secondary:#a8b7c2!important;--muted:#8193a0!important;
  --ui-canvas:#050a0e!important;--ui-sheet:#0e1b24!important;--ui-soft:#14252f!important;
  --ui-line:#263642!important;--ui-ink:#f6f8fa!important;--ui-muted:#8193a0!important;
  --court-white:#0e1b24!important;--court-cream:#09131a!important;--court-ink:#f6f8fa!important;
  background:var(--surface-0)!important;color:var(--ink)!important;
}
#app-shell,#app-shell *{box-sizing:border-box}
#app-shell>main{background:
  radial-gradient(circle at 82% -5%,rgba(79,145,255,.13),transparent 24%),
  radial-gradient(circle at 5% 28%,rgba(200,243,107,.035),transparent 20%),
  var(--surface-0)!important;color:var(--ink)!important}

/* Top navigation becomes the product's scoreboard rail. */
#app-shell>.app-sidebar{height:72px!important;padding-inline:max(18px,calc((100vw - 1540px)/2))!important;background:rgba(5,10,14,.96)!important;border-bottom:1px solid #263642!important;box-shadow:0 12px 40px rgba(0,0,0,.3)!important;backdrop-filter:blur(18px)}
#app-shell .sidebar-brand{height:72px!important;padding-inline:18px!important;border:0!important}
#app-shell .sidebar-brand:after{content:none!important;display:none!important}
#app-shell .sidebar-brand{min-width:205px!important;background:transparent!important}
#app-shell .sidebar-brand .brand-lockup,#app-shell .sidebar-brand .brand-lockup strong{color:#fff!important}
#app-shell .sidebar-brand .brand-lockup small{color:#8297a5!important}
#app-shell .sidebar-brand .sidebar-collapse{margin-left:auto!important;color:#91a5b2!important;background:#10212c!important;border:1px solid #293e4b!important;border-radius:9px!important}
#app-shell .app-nav{gap:3px!important}
#app-shell .app-nav .nav-section-label{display:none!important}
#app-shell .app-nav button{width:auto!important;min-height:44px!important;margin:0 1px!important;padding:10px 13px!important;color:#93a5b1!important;border-radius:11px!important}
#app-shell .app-nav button.active{color:#fff!important;background:#142634!important;border-color:#314757!important;box-shadow:inset 0 -3px 0 var(--blue)!important}
#app-shell .app-nav button.active:after{content:"";position:absolute;top:8px;right:8px;width:5px;height:5px;background:var(--lime);border-radius:50%;box-shadow:0 0 9px var(--lime)}

/* Context bar is compact and neutral, like a roster selector. */
#app-shell>.app-header{height:62px!important;padding-inline:max(24px,calc((100vw - 1480px)/2))!important;background:#09131a!important;border-color:#23323d!important;box-shadow:none!important}
#app-shell>.app-header,#app-shell>.app-header *{color:var(--ink-2)!important}
#app-shell>.app-header select,#app-shell>.app-header button{min-height:40px!important;background:#101f29!important;border:1px solid #2a3b47!important;color:#e7edf1!important;border-radius:10px!important}
#app-shell>.app-header select:hover,#app-shell>.app-header button:hover{background:#172935!important;border-color:#405463!important}
#app-shell>.app-header .profile-trigger{border-radius:99px!important}

/* Page layout and cinematic module identity. */
#app-shell .tab-panel,#app-shell #inicio-wrap{width:100%!important;max-width:none!important;margin-inline:0!important;padding:30px clamp(22px,2.1vw,42px) 70px!important}
#app-shell .tab-panel>.panel-header,#app-shell .tab-panel>.fr-hero,#app-shell .tab-panel>.isak-hero,
#app-shell .tab-panel>.perfiles-hero,#app-shell .tab-panel>.load-hero,#app-shell .tab-panel>.module-hero,#app-shell .tab-panel>.page-hero,
#app-shell #inicio-wrap .command-home__masthead{
  min-height:128px!important;margin-bottom:18px!important;padding:28px 30px 28px 34px!important;
  color:#fff!important;background:
    radial-gradient(circle at 85% 10%,rgba(79,145,255,.2),transparent 28%),
    linear-gradient(115deg,#153044,#091822 70%)!important;
  border:1px solid #294253!important;border-radius:22px!important;box-shadow:0 24px 65px rgba(0,0,0,.28)!important;
}
#app-shell .tab-panel>.panel-header:after,#app-shell .tab-panel>.fr-hero:after,#app-shell .tab-panel>.isak-hero:after,
#app-shell .tab-panel>.perfiles-hero:after,#app-shell .tab-panel>.load-hero:after,#app-shell .tab-panel>.module-hero:after,
#app-shell .tab-panel>.page-hero:after,#app-shell #inicio-wrap .command-home__masthead:before{
  content:""!important;display:block!important;position:absolute!important;inset:auto -55px -145px auto!important;width:310px!important;height:310px!important;
  border:58px solid rgba(79,145,255,.08)!important;border-radius:50%!important;background:none!important;
}
#app-shell .tab-panel>.panel-header:before,#app-shell .tab-panel>.fr-hero:before,#app-shell .tab-panel>.isak-hero:before,
#app-shell .tab-panel>.perfiles-hero:before,#app-shell .tab-panel>.load-hero:before,#app-shell .tab-panel>.module-hero:before,#app-shell .tab-panel>.page-hero:before{
  width:5px!important;background:linear-gradient(var(--blue),var(--lime))!important;
}
#app-shell .tab-panel>.panel-header h2,#app-shell .tab-panel>.panel-header .panel-title,#app-shell #inicio-wrap .command-home__masthead h2,
#app-shell .tab-panel>.fr-hero h2,#app-shell .tab-panel>.isak-hero h2,#app-shell .tab-panel>.perfiles-hero h2,
#app-shell .tab-panel>.load-hero h2,#app-shell .tab-panel>.module-hero h2,#app-shell .tab-panel>.page-hero h2{
  color:#fff!important;font-size:clamp(30px,2.8vw,46px)!important;font-weight:880!important;line-height:.96!important;letter-spacing:-.055em!important;
}
#app-shell .tab-panel>.panel-header p,#app-shell #inicio-wrap .command-home__masthead p{color:#9fb2bf!important;font-size:13px!important}

/* Information hierarchy: not every number lives in the same card. */
#app-shell .kpi-grid,#app-shell #inicio-wrap .command-home__scorestrip{gap:8px!important;padding:7px!important;background:#09131a!important;border:1px solid #24343f!important;border-radius:18px!important}
#app-shell .kpi-grid>div,#app-shell .kpi,#app-shell .kpi-card,#app-shell .inicio-kpi,#app-shell .fr-kpi,#app-shell .salud-kpi,#app-shell .v8-kpi,
#app-shell #inicio-wrap .command-home__scorestrip>.kpi-card{
  min-height:105px!important;padding:18px 19px!important;color:var(--ink)!important;background:#0f1d26!important;border:1px solid transparent!important;border-radius:12px!important;box-shadow:none!important;
}
#app-shell .kpi-grid>div:hover,#app-shell .kpi-card:hover{background:#14242e!important;border-color:#334754!important}
#app-shell .kpi-grid>div:before,#app-shell .kpi:before,#app-shell .kpi-card:before,#app-shell .inicio-kpi:before,#app-shell .fr-kpi:before{inset:0 auto auto 0!important;width:38px!important;height:3px!important;background:var(--blue)!important}
#app-shell .kpi-label,#app-shell .stat-label,#app-shell .kpi-grid small{color:#788d9b!important;font-size:9px!important;font-weight:900!important;letter-spacing:.11em!important;text-transform:uppercase!important}
#app-shell .kpi-value,#app-shell .stat-value,#app-shell .kpi-card strong,#app-shell .kpi-grid>div>strong{color:#fff!important;font-size:clamp(23px,2vw,31px)!important;font-weight:900!important;letter-spacing:-.04em!important}
#app-shell #inicio-wrap .command-home__scorestrip>.kpi-card>.kpi-value,
#app-shell #inicio-wrap .command-home__scorestrip>.kpi-card .kpi-value{color:#fff!important}

/* Data surfaces */
#app-shell .card,#app-shell .panel,#app-shell .section-card,#app-shell .chart-card,#app-shell .inicio-card,
#app-shell .table-wrap,#app-shell .report-chart-panel,#app-shell .injury-history-card,#app-shell .player-card,#app-shell .player-load-card,
#app-shell [class*="summary-card"],#app-shell [class*="insight-card"]{
  color:var(--ink)!important;background:#0d1a23!important;border:1px solid #253641!important;border-radius:18px!important;box-shadow:0 16px 42px rgba(0,0,0,.2)!important;
}
#app-shell .card{padding:20px!important}
#app-shell .card-title,#app-shell .section-title,#app-shell .report-chart-head h3,#app-shell .injury-section-heading h3{color:#f4f7f9!important;font-size:14px!important;font-weight:850!important;letter-spacing:-.015em!important}
#app-shell .card-title:after{content:"";display:block;width:26px;height:2px;margin-top:9px;background:var(--blue);border-radius:2px}
#app-shell .muted,#app-shell .text-muted,#app-shell .small,#app-shell small{color:#8295a2!important}
#app-shell hr{border-color:#293944!important}

/* Charts get dedicated dark plotting decks. */
#app-shell canvas{filter:saturate(1.08)}
#app-shell [id*="chart-container"],#app-shell [id*="-chart"],#app-shell .chart-container{
  color:var(--ink-2)!important;background:#0a161e!important;border:1px solid #22333e!important;border-radius:14px!important;padding:10px!important;
}
#app-shell .command-home__load{border-top:0!important;background:#0d1a23!important}
#app-shell .command-home__load>div:last-child{background:#09151d!important;border-radius:14px!important}

/* Tables read like a live scouting feed. */
#app-shell .table-wrap{padding:0!important;overflow:auto!important}
#app-shell table{color:var(--ink-2)!important;background:#0d1a23!important;border-collapse:separate!important;border-spacing:0!important}
#app-shell table thead th{position:sticky;top:0;z-index:2;padding:13px 14px!important;color:#78909f!important;background:#09141b!important;border-bottom:1px solid #2b3d48!important;font-size:9px!important;letter-spacing:.105em!important}
#app-shell table tbody td{padding:13px 14px!important;color:#c7d3da!important;background:#0d1a23!important;border-color:#22323d!important}
#app-shell table tbody tr:nth-child(even) td{background:#101f29!important}
#app-shell table tbody tr:hover td{color:#fff!important;background:#172a36!important}
#app-shell table tbody td:first-child{color:#f4f7f9!important;font-weight:750!important}

/* Inputs, actions and filters */
#app-shell input,#app-shell select,#app-shell textarea{min-height:43px!important;color:#eef3f6!important;background:#0a161e!important;border:1px solid #30424e!important;border-radius:10px!important;box-shadow:none!important}
#app-shell input::placeholder,#app-shell textarea::placeholder{color:#607684!important}
#app-shell input:focus,#app-shell select:focus,#app-shell textarea:focus{border-color:#5798ff!important;box-shadow:0 0 0 3px rgba(79,145,255,.15)!important}
#app-shell select option{color:#eef3f6;background:#0a161e}
#app-shell label{color:#91a4b1!important;font-weight:750!important}
#app-shell .btn,#app-shell button.btn{min-height:41px!important;color:#dce6ec!important;background:#14242e!important;border:1px solid #344955!important;border-radius:10px!important;box-shadow:none!important}
#app-shell .btn:hover,#app-shell button.btn:hover{color:#fff!important;background:#1b303d!important;border-color:#526b7a!important}
#app-shell .btn-primary,#app-shell .btn.btn-primary{color:#fff!important;background:linear-gradient(135deg,#4f91ff,#2168d8)!important;border-color:#5a9bff!important;box-shadow:0 9px 24px rgba(36,107,220,.24)!important}
#app-shell .btn-danger{color:#ffd9dd!important;background:#351820!important;border-color:#6e2b38!important}

/* One navigation grammar inside every module. */
#app-shell .cargas-mode-toggle,#app-shell .plan-v38-tabs,#app-shell .fr-tabs,#app-shell .isak-tabs,#app-shell .pm-pro-tabs,
#app-shell .salud-tabs,#app-shell .subtabs,#app-shell [class*="-tabs"]{gap:4px!important;padding:5px!important;background:#09141b!important;border:1px solid #283945!important;border-radius:13px!important}
#app-shell .cargas-mode-toggle button,#app-shell .plan-v38-tabs button,#app-shell .fr-tabs button,#app-shell .isak-tabs button,
#app-shell .pm-pro-tabs button,#app-shell .salud-tabs button,#app-shell .subtabs button,#app-shell [class*="-tabs"] button{color:#8095a3!important;background:transparent!important;border:0!important;border-radius:9px!important}
#app-shell .cargas-mode-toggle button.active,#app-shell .plan-v38-tabs button.active,#app-shell .fr-tabs button.active,
#app-shell .isak-tabs button.active,#app-shell .pm-pro-tabs button.active,#app-shell .salud-tabs button.active,#app-shell .subtabs button.active,#app-shell [class*="-tabs"] button.active{color:#fff!important;background:#1a3040!important;box-shadow:inset 0 -2px 0 var(--blue)!important}

/* Player / availability cards become compact roster tiles. */
#app-shell .player-card,#app-shell .player-load-card,#app-shell [class*="player-card"]{position:relative!important;background:linear-gradient(155deg,#142631,#0b1820)!important;border:1px solid #2c3f4b!important;border-radius:16px!important;overflow:hidden!important}
#app-shell .player-card:after,#app-shell .player-load-card:after{content:"";position:absolute;right:-42px;bottom:-55px;width:120px;height:120px;border:20px solid rgba(79,145,255,.055);border-radius:50%;pointer-events:none}
#app-shell .player-card h3,#app-shell .player-card strong,#app-shell .player-load-card h3,#app-shell .player-load-card strong{color:#fff!important}

/* Planning/calendar */
#app-shell [class*="calendar"],#app-shell [class*="calendario"],#app-shell [class*="month-grid"],#app-shell [class*="week-grid"]{border-color:#293b46!important}
#app-shell [class*="day-card"],#app-shell [class*="calendar-day"],#app-shell [class*="plan-day"]{color:#c7d4dc!important;background:#0c1921!important;border-color:#263944!important;border-radius:10px!important}
#app-shell [class*="day-card"]:hover,#app-shell [class*="calendar-day"]:hover,#app-shell [class*="plan-day"]:hover{background:#152a37!important;border-color:#4b6b7f!important}
#app-shell [class*="today"]{box-shadow:inset 0 0 0 2px var(--blue)!important}

/* Match console */
#app-shell [class*="match-console"],#app-shell [class*="partido-console"],#app-shell [class*="scoreboard"]{color:#fff!important;background:#07131b!important;border-color:#2d414e!important}
#app-shell [class*="scoreboard"] strong,#app-shell [class*="score"]{color:#fff!important;font-weight:950!important;letter-spacing:-.04em!important}
#app-shell [class*="court"],#app-shell [class*="pitch"]{border-color:#496171!important;background:#102a37!important}

/* Alerts, statuses and explanatory notes */
#app-shell .help-block,#app-shell .info-banner,#app-shell [class*="-notice"],#app-shell [class*="-guide"]{color:#b9cbe0!important;background:#10243a!important;border:1px solid #264f76!important;border-radius:12px!important}
#app-shell .badge,#app-shell [class*="status-badge"],#app-shell [class*="-pill"]{border-radius:99px!important}
#app-shell .success,#app-shell .status-ok,#app-shell [class*="optimal"]{color:var(--green)!important}
#app-shell .warning,#app-shell .status-warning,#app-shell [class*="alert"]{color:var(--amber)!important}
#app-shell .danger,#app-shell .status-danger,#app-shell [class*="critical"]{color:var(--red)!important}

/* Modal workspaces */
#app-shell .modal-overlay{background:rgba(1,5,8,.82)!important;backdrop-filter:blur(9px)!important}
#app-shell .modal,#app-shell .modal-content,#app-shell [class*="modal-card"]{color:var(--ink)!important;background:#0d1a23!important;border:1px solid #314652!important;border-radius:21px!important;box-shadow:0 40px 120px rgba(0,0,0,.55)!important}
#app-shell .modal-header,#app-shell [class*="modal-head"]{color:#fff!important;background:#09161e!important;border-color:#2b3c47!important}
#app-shell .modal-header h2,#app-shell .modal-header h3,#app-shell [class*="modal-head"] h2,#app-shell [class*="modal-head"] h3{color:#fff!important}

/* Dashboard-specific hierarchy. */
#app-shell #inicio-wrap .command-home__scorestrip{padding:7px!important}
#app-shell #inicio-wrap .command-home__scorestrip>.kpi-card{background:#0f1d26!important;border:1px solid transparent!important;border-radius:12px!important}
#app-shell #inicio-wrap .dashboard-grid>*,#app-shell #inicio-wrap .command-home__main>*,#app-shell #inicio-wrap .command-home__priority{background:#0d1a23!important;border-color:#253641!important}
#app-shell .command-home__fixture{background:linear-gradient(145deg,#152f42,#081720)!important;border:1px solid #31506a!important;border-top:0!important}
#app-shell .command-home__fixture *{color:#eaf1f5!important}
#app-shell .command-home__shortcuts{background:transparent!important;border:0!important;box-shadow:none!important}
#app-shell .command-home__shortcuts .btn{justify-content:flex-start!important;background:#101f29!important;border:1px solid #293b46!important}

/* Load workspace: week, days, ACWR distribution and player analysis are one dark console. */
#app-shell #tab-cargas #cargas-mode-toggle,#app-shell #tab-externa .cargas-mode-toggle{
  position:relative!important;top:auto!important;width:max-content!important;margin:14px 0 18px!important;padding:5px!important;
  color:var(--ink-2)!important;background:#09141b!important;border:1px solid #293b47!important;border-radius:13px!important;
}
#app-shell #tab-cargas #cargas-mode-toggle .cargas-mode-btn,#app-shell #tab-externa .cargas-mode-toggle .cargas-mode-btn{color:#8398a6!important;background:transparent!important}
#app-shell #tab-cargas #cargas-mode-toggle .cargas-mode-btn.active,#app-shell #tab-externa .cargas-mode-toggle .cargas-mode-btn.active{color:#fff!important;background:#1b3140!important;box-shadow:inset 0 -2px 0 var(--blue)!important}
#app-shell #tab-cargas .load-week-navigator{padding:14px 16px!important;color:var(--ink)!important;background:#0d1a23!important;border:1px solid #293c48!important;border-radius:16px 16px 0 0!important}
#app-shell #tab-cargas .load-week-current span{color:#78909f!important}
#app-shell #tab-cargas .load-week-current strong{color:#fff!important}
#app-shell #tab-cargas .load-week-arrow,#app-shell #tab-cargas .load-week-today,#app-shell #tab-cargas .load-week-navigator select{color:#dce7ed!important;background:#101f29!important;border-color:#334955!important}
#app-shell #tab-cargas .load-week-today{color:#83b2ff!important}
#app-shell #tab-cargas .load-days-only{padding:8px!important;background:#09161e!important;border:1px solid #293c48!important;border-top:0!important}
#app-shell #tab-cargas .load-days-only .day-chip{color:#879aa7!important;background:#0d1c25!important;border-color:#263a46!important;border-radius:9px!important}
#app-shell #tab-cargas .load-days-only .day-chip.active{color:#fff!important;background:linear-gradient(145deg,#4f91ff,#4d3e88)!important;border-color:#6ea5ff!important;box-shadow:0 8px 20px rgba(47,125,244,.2)!important}
#app-shell #tab-cargas .load-sweetspot{padding:14px!important;background:#0d1a23!important;border:1px solid #293c48!important;border-radius:15px!important}
#app-shell #tab-cargas .load-sweetspot-copy>span{color:#78909f!important}
#app-shell #tab-cargas .load-sweetspot-copy strong{color:#fff!important}
#app-shell #tab-cargas .load-sweetspot-copy small{color:#8397a4!important}
#app-shell #tab-cargas .load-sweetspot-zones>div{color:#fff!important;background:#101f29!important;border:1px solid #2c404d!important;border-top-width:3px!important;border-radius:11px!important}
#app-shell #tab-cargas .load-sweetspot-zones>div span{color:#8fa2ae!important}
#app-shell #tab-cargas .load-sweetspot-zones [data-zone="sweet"]{background:#10271f!important;border-top-color:var(--green)!important}
#app-shell #tab-cargas .load-player-toolbar,#app-shell #tab-cargas .load-player-summary article,#app-shell #tab-cargas .load-player-chart,#app-shell #tab-cargas .load-recent,#app-shell #tab-cargas .load-context{color:var(--ink)!important;background:#0d1a23!important;border:1px solid #293c48!important;border-radius:16px!important}
#app-shell #tab-cargas .load-player-toolbar span,#app-shell #tab-cargas .load-player-summary article span,#app-shell #tab-cargas .load-player-summary article small{color:#8296a4!important}
#app-shell #tab-cargas .load-player-summary article strong,#app-shell #tab-cargas .load-player-chart h3,#app-shell #tab-cargas .load-recent h3,#app-shell #tab-cargas .load-context h3{color:#fff!important}
#app-shell #tab-cargas .load-player-summary article.ratio{box-shadow:inset 0 3px 0 var(--blue)!important}
#app-shell #tab-cargas .load-spark{border-color:#2a3d49!important}
#app-shell #tab-cargas .load-spark i{background:linear-gradient(#69a1ff,#285fbd)!important}

/* Health triage rows follow the same roster language. */
#app-shell .availability-head{color:#748a98!important}
#app-shell .availability-row{color:#dce6ec!important;background:#0d1a23!important;border-color:#2a3d49!important;box-shadow:none!important}
#app-shell .availability-row:hover{background:#142630!important;border-color:#486070!important}
#app-shell .availability-player>i{color:#8eb9ff!important;background:#152c3d!important}
#app-shell .availability-player strong,#app-shell .availability-advice strong{color:#fff!important}
#app-shell .availability-player small,#app-shell .availability-state small,#app-shell .availability-advice small{color:#8296a3!important}
#app-shell .availability-state>b{color:#c8d4db!important;background:#172832!important}
#app-shell .tone-optimo .availability-state>b{color:#64e6b8!important;background:#102a22!important}
#app-shell .tone-alerta .availability-state>b{color:#ffd078!important;background:#302511!important}
#app-shell .tone-critico .availability-state>b{color:#ff8b98!important;background:#321820!important}

/* Roster workspace: selector, context and cards stay inside the same visual system. */
#app-shell #tab-perfiles .pf-context-strip{color:#b9cbe0!important;background:#10243a!important;border:1px solid #264f76!important;border-left:4px solid var(--blue)!important;border-radius:11px!important}
#app-shell #tab-perfiles #perfiles-hero select{color:#eef3f6!important;background:#0a161e!important;border-color:#30424e!important}
#app-shell #tab-perfiles .player-card,#app-shell #tab-perfiles .player-card *{color:#dce6ec!important}
#app-shell #tab-perfiles .player-card .player-name,#app-shell #tab-perfiles .player-card h3,#app-shell #tab-perfiles .player-card strong{color:#fff!important}
#app-shell #tab-perfiles .player-card small,#app-shell #tab-perfiles .player-card .pc-label{color:#8296a4!important}
#app-shell #tab-perfiles .injury-insights-grid{background:transparent!important;border:0!important;gap:8px!important}
#app-shell #tab-perfiles .injury-insights-grid>*{color:#dce6ec!important;background:#0d1a23!important;border:1px solid #293c48!important;border-radius:14px!important}

/* Subscription screen: no isolated light pricing template inside the dark product. */
#app-shell #tab-suscripcion .pricing-grid{gap:12px!important}
#app-shell #tab-suscripcion .pricing-card{color:#cbd7de!important;background:linear-gradient(155deg,#132630,#0b1820)!important;border:1px solid #314652!important;border-radius:20px!important;box-shadow:0 22px 54px rgba(0,0,0,.25)!important}
#app-shell #tab-suscripcion .pricing-card.recommended{background:linear-gradient(155deg,#173149,#0b1a25)!important;border-color:#4f91ff!important;box-shadow:0 22px 60px rgba(36,107,220,.18)!important}
#app-shell #tab-suscripcion .pricing-card h3,#app-shell #tab-suscripcion .pricing-card .price,#app-shell #tab-suscripcion .pricing-card strong{color:#fff!important}
#app-shell #tab-suscripcion .pricing-card p,#app-shell #tab-suscripcion .pricing-card li{color:#a9bbc6!important;border-color:#2b3d48!important}
#app-shell #tab-suscripcion .comparison-table,#app-shell #tab-suscripcion .faq-section,#app-shell #tab-suscripcion .faq-item,#app-shell #tab-suscripcion .staff-access-card{color:#c8d5dc!important;background:#0d1a23!important;border-color:#293c48!important}

/* Context messages use one dark, readable treatment in every module. */
#app-shell .pf-context-strip,#app-shell .plan-v38-guide,#app-shell .partidos-context-strip,#app-shell .module-context-strip{
  color:#b9cbe0!important;background:#10243a!important;border:1px solid #264f76!important;border-left:4px solid var(--blue)!important;border-radius:11px!important;
}
#app-shell .pf-context-strip *,#app-shell .plan-v38-guide *,#app-shell .partidos-context-strip *,#app-shell .module-context-strip *{color:inherit!important}

/* A first-team state is an onboarding action, not a broken select option. */
#app-shell .header-team-empty-cta{display:none!important}
#app-shell .header-team-switcher.is-empty{min-width:285px!important;padding:5px!important;background:#0e1d26!important;border:1px solid #304550!important;border-radius:12px!important}
#app-shell .header-team-switcher.is-empty>.header-team-icon,
#app-shell .header-team-switcher.is-empty>label,
#app-shell .header-team-switcher.is-empty>.header-team-manage{display:none!important}
#app-shell .header-team-switcher.is-empty .header-team-empty-cta{display:flex!important;align-items:center!important;gap:10px!important;width:100%!important;min-height:45px!important;padding:6px 11px!important;text-align:left!important;color:#f4f8fa!important;background:transparent!important;border:0!important;border-radius:8px!important;cursor:pointer!important}
#app-shell .header-team-switcher.is-empty .header-team-empty-cta:hover{background:#172b37!important}
#app-shell .header-team-empty-plus{display:grid!important;place-items:center!important;width:30px!important;height:30px!important;flex:0 0 30px!important;color:#071017!important;background:var(--lime)!important;border-radius:9px!important;font-size:21px!important;font-weight:900!important}
#app-shell .header-team-empty-cta>span:last-child{display:grid!important;gap:1px!important}
#app-shell .header-team-empty-cta strong{color:#fff!important;font-size:12px!important}
#app-shell .header-team-empty-cta small{color:#8296a4!important;font-size:9px!important;font-weight:650!important}
#app-shell .empty-state{color:#a9bbc6!important;background:#0d1a23!important;border:1px dashed #3a505e!important;border-radius:16px!important}
#app-shell .empty-state .es-title{color:#fff!important}
#app-shell .empty-state .es-sub{color:#91a5b2!important}

@media(max-width:1100px){
  #app-shell .app-nav button{padding-inline:9px!important;font-size:11px!important}
  #app-shell .sidebar-brand:after{display:none}
}
@media(max-width:760px){
  #app-shell>.app-sidebar{height:calc(100vh - 38px)!important;padding:16px!important;background:#050d13!important}
  #app-shell>.app-header{height:58px!important;padding-inline:12px!important}
  #app-shell .tab-panel,#app-shell #inicio-wrap{padding:12px 10px 92px!important}
  #app-shell .tab-panel>.panel-header,#app-shell .tab-panel>.fr-hero,#app-shell .tab-panel>.isak-hero,
  #app-shell .tab-panel>.perfiles-hero,#app-shell .tab-panel>.load-hero,#app-shell .tab-panel>.module-hero,#app-shell .tab-panel>.page-hero,
  #app-shell #inicio-wrap .command-home__masthead{min-height:0!important;padding:20px 17px 20px 22px!important;border-radius:15px!important}
  #app-shell .tab-panel>.panel-header h2,#app-shell .tab-panel>.panel-header .panel-title,#app-shell #inicio-wrap .command-home__masthead h2{font-size:28px!important}
  #app-shell .kpi-grid,#app-shell #inicio-wrap .command-home__scorestrip{grid-template-columns:1fr 1fr!important;padding:5px!important;border-radius:13px!important}
  #app-shell .kpi-grid>div,#app-shell .kpi-card,#app-shell #inicio-wrap .command-home__scorestrip>.kpi-card{min-height:92px!important;padding:14px 12px!important}
  #app-shell .card{padding:14px!important;border-radius:14px!important}
  #app-shell .table-wrap{border-radius:12px!important}
  #app-shell table thead th,#app-shell table tbody td{padding:10px!important}
  #app-shell .cargas-mode-toggle,#app-shell .plan-v38-tabs,#app-shell .fr-tabs,#app-shell .isak-tabs,#app-shell .pm-pro-tabs,#app-shell .salud-tabs,#app-shell .subtabs,#app-shell [class*="-tabs"]{overflow-x:auto!important;flex-wrap:nowrap!important}
  #app-shell>.app-sidebar{width:min(88vw,350px)!important;max-width:350px!important;overflow-y:auto!important}
  #app-shell .app-sidebar .app-nav{display:grid!important;grid-template-columns:1fr 1fr!important;align-content:start!important;gap:7px!important;width:100%!important;overflow:visible!important;padding:10px 0 28px!important}
  #app-shell .app-sidebar .app-nav>button{justify-content:flex-start!important;width:100%!important;min-width:0!important;margin:0!important;padding:11px 12px!important}
  #app-shell .app-sidebar .nav-submenu{position:static!important;grid-column:1/-1!important;width:100%!important;margin:0!important;box-shadow:none!important}
  #app-shell .header-team-switcher.is-empty{min-width:0!important;width:min(205px,58vw)!important}
  #app-shell .header-team-empty-cta small{display:none!important}
}
@media(max-width:390px){
  #app-shell .kpi-grid,#app-shell #inicio-wrap .command-home__scorestrip{grid-template-columns:1fr!important}
}
}
/* Source: css/app-v224-module-unification.css */
@layer compatibility{/* v224 — closes the remaining legacy light islands inside product modules. */
#app-shell{
  --module-bg:#0d1a23;
  --module-bg-2:#101f29;
  --module-bg-3:#09151d;
  --module-line:#293c48;
  --module-text:#f4f8fa;
  --module-muted:#8ea1ad;
}

/* Readiness / performance */
#app-shell #tab-readiness .fr-card,
#app-shell #tab-readiness .fr-chart,
#app-shell #tab-readiness .fr-table-wrap{
  color:var(--module-text)!important;
  background:var(--module-bg)!important;
  border:1px solid var(--module-line)!important;
  border-radius:16px!important;
  box-shadow:0 16px 42px rgba(0,0,0,.2)!important;
}
#app-shell #tab-readiness .fr-card{padding:20px!important}
#app-shell #tab-readiness .fr-select{color:#edf3f6!important;background:#09161e!important;border:1px solid #304550!important}
#app-shell #tab-readiness .fr-card-title{color:#fff!important;border-color:#3d5260!important}
#app-shell #tab-readiness .fr-card-sub{color:var(--module-muted)!important}
#app-shell #tab-readiness .fr-chart{min-height:310px!important;background:var(--module-bg-3)!important;box-shadow:none!important}
#app-shell #tab-readiness .fr-legend{gap:8px!important}
#app-shell #tab-readiness .fr-legend-item{color:#aebec7!important;background:var(--module-bg-2)!important;border:1px solid #2c404d!important;border-radius:10px!important}
#app-shell #tab-readiness .fr-legend-item strong{color:#fff!important}
#app-shell #tab-readiness .fr-table{background:transparent!important}
#app-shell #tab-readiness #fr-signal>*,#app-shell #tab-readiness #fr-events>*{color:#b8c7cf!important;background:var(--module-bg-2)!important;border-color:#304550!important}

/* Wellness remote capture */
#app-shell #tab-wellness .wl-panel{color:var(--module-text)!important;background:var(--module-bg)!important;border:1px solid var(--module-line)!important;border-radius:17px!important;box-shadow:0 18px 46px rgba(0,0,0,.22)!important}
#app-shell #tab-wellness .wl-head{padding:19px 21px!important;background:linear-gradient(130deg,#142c3c,#0c1b25)!important;border-color:#304550!important}
#app-shell #tab-wellness .wl-head h3,#app-shell #tab-wellness .wl-player-tools strong,#app-shell #tab-wellness .wl-statusbar strong{color:#fff!important}
#app-shell #tab-wellness .wl-head p,#app-shell #tab-wellness .wl-actions small,#app-shell #tab-wellness .wl-invite small{color:var(--module-muted)!important}
#app-shell #tab-wellness .wl-eyebrow{color:#83b2ff!important}
#app-shell #tab-wellness .wl-badge{color:#b9d4ff!important;background:#163454!important}
#app-shell #tab-wellness .wl-field span{color:#8297a5!important}
#app-shell #tab-wellness .wl-field input,#app-shell #tab-wellness .wl-field select{color:#edf3f6!important;background:#09161e!important;border-color:#304550!important}
#app-shell #tab-wellness .wl-player,#app-shell #tab-wellness .wl-invite,#app-shell #tab-wellness .wl-empty{color:#cbd7de!important;background:#101f29!important;border-color:#304550!important}
#app-shell #tab-wellness .wl-results{border-color:#304550!important}
#app-shell #tab-wellness .wl-filter button,#app-shell #tab-wellness .wl-invite-actions button{color:#9fb1bd!important;background:#0b1820!important;border-color:#304550!important}
#app-shell #tab-wellness .wl-filter button.active{color:#fff!important;background:#225da8!important;border-color:#4f91ff!important}
#app-shell #tab-wellness .wl-primary{color:#fff!important;background:linear-gradient(135deg,#4f91ff,#246bdc)!important;box-shadow:0 9px 22px rgba(36,107,220,.25)!important}

/* Match detail: one scoreboard workspace, with no white legacy fragments. */
#app-shell #tab-partidos-detalle .match-summary-hero,
#app-shell #tab-partidos-detalle .match-summary-card,
#app-shell #tab-partidos-detalle .match-summary-actions,
#app-shell #tab-partidos-detalle .partido-detail-section{
  color:var(--module-text)!important;background:var(--module-bg)!important;border:1px solid var(--module-line)!important;border-radius:16px!important;box-shadow:none!important;
}
#app-shell #tab-partidos-detalle .match-summary-hero{background:linear-gradient(145deg,#153247,#0a1821)!important}
#app-shell #tab-partidos-detalle .match-summary-eyebrow,#app-shell #tab-partidos-detalle .match-summary-kicker{color:#7ea8d9!important}
#app-shell #tab-partidos-detalle .match-summary-meta,#app-shell #tab-partidos-detalle .match-summary-team small,#app-shell #tab-partidos-detalle .match-summary-score span{color:var(--module-muted)!important}
#app-shell #tab-partidos-detalle .match-summary-team strong,#app-shell #tab-partidos-detalle .match-summary-score strong,#app-shell #tab-partidos-detalle .match-summary-section-head h4{color:#fff!important}
#app-shell #tab-partidos-detalle .match-summary-scoreboard{background:#07131a!important;border-color:#2b404d!important}
#app-shell #tab-partidos-detalle .match-summary-team-badge{color:#d9e8ff!important;background:#153961!important}
#app-shell #tab-partidos-detalle .match-summary-quarter-grid>*{color:#d8e3e9!important;background:#101f29!important;border-color:#304550!important}
#app-shell #tab-partidos-detalle .match-summary-empty{color:#8da0ac!important}
#app-shell #tab-partidos-detalle .match-summary-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:9px!important;padding:10px!important}
#app-shell #tab-partidos-detalle .match-summary-actions button{min-height:46px!important;padding:10px 15px!important;color:#dce7ed!important;background:#14242e!important;border:1px solid #344955!important;border-radius:10px!important;font-weight:800!important}
#app-shell #tab-partidos-detalle .match-summary-actions .match-action-primary{color:#fff!important;background:linear-gradient(135deg,#4f91ff,#246bdc)!important;border-color:#5b9cff!important}
#app-shell #tab-partidos-detalle #partido-kpis-detalle{padding:7px!important;background:#09151d!important;border:1px solid var(--module-line)!important;border-radius:16px!important}
#app-shell #tab-partidos-detalle #partido-kpis-detalle>.kpi{background:#101f29!important;border-radius:11px!important}
#app-shell #tab-partidos-detalle #partido-tabla-resumen{border-radius:14px!important;overflow:hidden!important}

/* Actual match-detail mount lives inside #tab-partidos. */
#app-shell #tab-partidos #partido-resumen-inteligente{display:grid!important;grid-template-columns:minmax(250px,.85fr) minmax(350px,1.25fr) minmax(270px,1fr)!important;gap:10px!important;align-items:stretch!important}
#app-shell #tab-partidos #partido-resumen-inteligente .match-summary-hero,
#app-shell #tab-partidos #partido-resumen-inteligente .match-summary-card,
#app-shell #tab-partidos #partido-resumen-inteligente .match-summary-actions{
  color:var(--module-text)!important;background:var(--module-bg)!important;border:1px solid var(--module-line)!important;border-radius:16px!important;box-shadow:none!important;
}
#app-shell #tab-partidos #partido-resumen-inteligente .match-summary-hero{background:linear-gradient(145deg,#153247,#0a1821)!important}
#app-shell #tab-partidos #partido-resumen-inteligente .match-summary-scoreboard{color:#fff!important;background:#07131a!important;border-color:#2b404d!important}
#app-shell #tab-partidos #partido-resumen-inteligente .match-summary-eyebrow,
#app-shell #tab-partidos #partido-resumen-inteligente .match-summary-kicker{color:#7ea8d9!important}
#app-shell #tab-partidos #partido-resumen-inteligente .match-summary-meta,
#app-shell #tab-partidos #partido-resumen-inteligente .match-summary-team small,
#app-shell #tab-partidos #partido-resumen-inteligente .match-summary-score span{color:var(--module-muted)!important}
#app-shell #tab-partidos #partido-resumen-inteligente .match-summary-team strong,
#app-shell #tab-partidos #partido-resumen-inteligente .match-summary-score strong,
#app-shell #tab-partidos #partido-resumen-inteligente .match-summary-section-head h4{color:#fff!important}
#app-shell #tab-partidos #partido-resumen-inteligente .match-summary-team-badge{color:#d9e8ff!important;background:#153961!important}
#app-shell #tab-partidos #partido-resumen-inteligente .match-summary-quarter-grid>*{color:#d8e3e9!important;background:#101f29!important;border-color:#304550!important}
#app-shell #tab-partidos #partido-resumen-inteligente .match-summary-empty{color:#8da0ac!important}
#app-shell #tab-partidos #partido-resumen-inteligente .match-summary-actions{grid-column:1/-1!important;display:grid!important;grid-template-columns:1fr 1fr!important;gap:9px!important;padding:10px!important}
#app-shell #tab-partidos #partido-resumen-inteligente .match-summary-actions button{min-height:46px!important;padding:10px 15px!important;color:#dce7ed!important;background:#14242e!important;border:1px solid #344955!important;border-radius:10px!important;font-weight:800!important}
#app-shell #tab-partidos #partido-resumen-inteligente .match-summary-actions .match-action-primary{color:#fff!important;background:linear-gradient(135deg,#4f91ff,#246bdc)!important;border-color:#5b9cff!important}

/* Catch remaining module-local legacy cards and blank states. */
#app-shell .tab-panel .empty-state,#app-shell .tab-panel [class$="-empty"]{color:#91a5b2!important;background:#0d1a23!important;border-color:#3a505e!important}
#app-shell .tab-panel .empty-state strong,#app-shell .tab-panel [class$="-empty"] strong{color:#fff!important}

/* v225 — definitive surface reset for the modules that still inherited the old light skin. */
#app-shell #tab-readiness,
#app-shell #tab-wellness,
#app-shell #tab-partidos{
  color:var(--module-text)!important;
  background:#050d12!important;
}

/* Readiness: KPIs, the interpretation column and data tables were still painted white
   by product-facing-v149, v205 and tables-v169. */
#app-shell #tab-readiness .fr-hero{color:var(--module-text)!important;background:transparent!important}
#app-shell #tab-readiness .fr-title,
#app-shell #tab-readiness .fr-card-title,
#app-shell #tab-readiness .fr-kpi strong,
#app-shell #tab-readiness .fr-signal-head{color:#f7fafc!important}
#app-shell #tab-readiness .fr-subtitle,
#app-shell #tab-readiness .fr-kpi span,
#app-shell #tab-readiness .fr-signal-text{color:#8fa6b5!important}
#app-shell #tab-readiness .fr-kpi{
  color:var(--module-text)!important;background:#101f29!important;
  border:1px solid #2b404d!important;border-radius:14px!important;
  box-shadow:none!important;
}
#app-shell #tab-readiness .fr-grid>.fr-card:last-child{background:#0d1a23!important;border:1px solid #293c48!important}
#app-shell #tab-readiness .fr-signal{color:#cbd8df!important;background:#101f29!important;border-color:#304550!important}
#app-shell #tab-readiness .fr-table-wrap{background:#09151d!important}
#app-shell #tab-readiness .fr-table thead th{color:#8fa6b5!important;background:#0b1820!important;border-color:#293c48!important}
#app-shell #tab-readiness .fr-table tbody tr,
#app-shell #tab-readiness .fr-table tbody tr:nth-child(odd),
#app-shell #tab-readiness .fr-table tbody tr:nth-child(even){background:#101f29!important}
#app-shell #tab-readiness .fr-table tbody tr:hover{background:#152934!important}
#app-shell #tab-readiness .fr-table td{color:#d7e2e8!important;border-color:#293c48!important}
#app-shell #tab-readiness .fr-table td strong{color:#fff!important}

/* Wellness: both the remote-capture panel and the ordinary dashboard cards use one skin. */
#app-shell #tab-wellness>.card,
#app-shell #tab-wellness .card,
#app-shell #tab-wellness .wellness-chart-grid,
#app-shell #tab-wellness .table-wrap{
  color:var(--module-text)!important;background:#0d1a23!important;
  border:1px solid #293c48!important;border-radius:16px!important;box-shadow:none!important;
}
#app-shell #tab-wellness .card-title,#app-shell #tab-wellness label{color:#f4f8fa!important}
#app-shell #tab-wellness .text-muted,#app-shell #tab-wellness .muted{color:#8fa6b5!important}
#app-shell #tab-wellness select,#app-shell #tab-wellness input,#app-shell #tab-wellness textarea{
  color:#edf4f7!important;background:#09161e!important;border-color:#304550!important;
}
#app-shell #tab-wellness table thead th{color:#8fa6b5!important;background:#0b1820!important;border-color:#293c48!important}
#app-shell #tab-wellness table tbody tr,
#app-shell #tab-wellness table tbody tr:nth-child(odd),
#app-shell #tab-wellness table tbody tr:nth-child(even){background:#101f29!important}
#app-shell #tab-wellness table tbody tr:hover{background:#152934!important}
#app-shell #tab-wellness table td{color:#d7e2e8!important;border-color:#293c48!important}
#app-shell #tab-wellness table td strong{color:#fff!important}

/* Match centre: remove the remaining light shell around the redesigned scoreboard. */
#app-shell #tab-partidos>.card,
#app-shell #tab-partidos .card,
#app-shell #tab-partidos .table-wrap,
#app-shell #tab-partidos .subtab-content,
#app-shell #tab-partidos #partido-detalle-card,
#app-shell #tab-partidos #partido-workflow-card{
  color:var(--module-text)!important;background:#0d1a23!important;
  border-color:#293c48!important;box-shadow:none!important;
}
#app-shell #tab-partidos .card-title,#app-shell #tab-partidos label{color:#f4f8fa!important}
#app-shell #tab-partidos .muted,#app-shell #tab-partidos .text-muted{color:#8fa6b5!important}
#app-shell #tab-partidos select,#app-shell #tab-partidos input,#app-shell #tab-partidos textarea{
  color:#edf4f7!important;background:#09161e!important;border-color:#304550!important;
}
#app-shell #tab-partidos table thead th{color:#8fa6b5!important;background:#0b1820!important;border-color:#293c48!important}
#app-shell #tab-partidos table tbody tr,
#app-shell #tab-partidos table tbody tr:nth-child(odd),
#app-shell #tab-partidos table tbody tr:nth-child(even){background:#101f29!important}
#app-shell #tab-partidos table tbody tr:hover{background:#152934!important}
#app-shell #tab-partidos table td{color:#d7e2e8!important;border-color:#293c48!important}
#app-shell #tab-partidos table td strong{color:#fff!important}
#app-shell #tab-partidos .match-summary-player{color:#dce7ed!important;background:#101f29!important;border-color:#304550!important}
#app-shell #tab-partidos .match-summary-avatar{color:#d9e8ff!important;background:#153961!important}

@media(max-width:760px){
  #app-shell #tab-readiness .fr-card{padding:14px!important}
  #app-shell #tab-readiness .fr-chart{min-height:240px!important}
  #app-shell #tab-wellness .wl-head,#app-shell #tab-wellness .wl-body{padding:15px!important}
  #app-shell #tab-partidos-detalle .match-summary-actions{grid-template-columns:1fr!important}
  #app-shell #tab-partidos #partido-resumen-inteligente .match-summary-actions{grid-template-columns:1fr!important}
}
@media(min-width:761px) and (max-width:1050px){
  #app-shell #tab-partidos #partido-resumen-inteligente{grid-template-columns:1fr 1fr!important}
  #app-shell #tab-partidos #partido-resumen-inteligente .match-summary-hero{grid-column:1/-1!important}
  #app-shell #tab-partidos #partido-resumen-inteligente .match-summary-actions{grid-column:1/-1!important}
}
@media(max-width:760px){
  #app-shell #tab-partidos #partido-resumen-inteligente{grid-template-columns:1fr!important}
  #app-shell #tab-partidos #partido-resumen-inteligente>*{grid-column:1!important}
}
}
/* Source: css/wellness-links-v177.css */
@layer compatibility{.wl-panel{margin-bottom:16px;padding:0;overflow:hidden;border:1px solid #d8e4f0;border-radius:16px;background:#fff;box-shadow:0 8px 28px rgba(19,50,84,.06)}.wl-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:20px 22px;border-bottom:1px solid #e3ebf3;background:linear-gradient(135deg,#f8fbff,#f1f7ff)}.wl-eyebrow{margin:0 0 6px;color:#2769eb;font-size:10px;font-weight:800;letter-spacing:.1em}.wl-head h3{margin:0 0 5px;font-size:18px}.wl-head p{margin:0;color:#687b96;font-size:12px}.wl-badge{white-space:nowrap;padding:7px 10px;border-radius:999px;background:#e7f0ff;color:#1857c4;font-size:11px;font-weight:800}.wl-body{padding:20px 22px}.wl-grid{display:grid;grid-template-columns:1.2fr 1fr 1fr .8fr;gap:10px}.wl-field span{display:block;margin-bottom:6px;color:#61728a;font-size:10px;font-weight:800;text-transform:uppercase}.wl-field select,.wl-field input{width:100%;min-height:39px;border:1px solid #d6e1ed;border-radius:9px;background:#fff;padding:8px 10px;color:#102440}.wl-player-tools{display:flex;align-items:center;justify-content:space-between;margin:16px 0 8px}.wl-player-tools strong{font-size:13px}.wl-text-button{border:0;background:none;color:#2769eb;font-weight:700;cursor:pointer}.wl-players{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:7px}.wl-player{display:flex;align-items:center;gap:9px;padding:10px;border:1px solid #dce6f0;border-radius:10px;background:#fbfdff;cursor:pointer}.wl-player input{accent-color:#2769eb}.wl-player span{font-size:12px;font-weight:700}.wl-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:16px}.wl-actions small{color:#697d96}.wl-primary{border:0;border-radius:9px;padding:10px 15px;background:#2769eb;color:#fff;font-weight:800;cursor:pointer}.wl-primary:disabled{opacity:.5}.wl-results{margin-top:18px;padding-top:17px;border-top:1px solid #e4ebf2}.wl-statusbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.wl-statusbar strong{font-size:14px}.wl-filter{display:flex;gap:5px}.wl-filter button{border:1px solid #d9e3ee;border-radius:8px;padding:6px 9px;background:#fff;color:#60718a;font-size:11px}.wl-filter button.active{background:#153b66;color:#fff;border-color:#153b66}.wl-list{display:grid;gap:7px}.wl-invite{display:grid;grid-template-columns:minmax(150px,1fr) auto auto;align-items:center;gap:10px;padding:10px 11px;border:1px solid #e0e8f1;border-radius:10px}.wl-invite b{display:block;font-size:12px}.wl-invite small{color:#71839a}.wl-state{padding:5px 8px;border-radius:999px;font-size:10px;font-weight:800}.wl-state.pending{color:#a55a00;background:#fff1d8}.wl-state.completed{color:#007659;background:#def7ef}.wl-state.expired,.wl-state.revoked{color:#9c3c4b;background:#fde8ec}.wl-invite-actions{display:flex;gap:5px}.wl-invite-actions button,.wl-upgrade a{border:1px solid #d7e2ee;border-radius:8px;padding:7px 9px;background:#fff;color:#183555;font-size:11px;font-weight:700;text-decoration:none;cursor:pointer}.wl-empty{padding:18px;border:1px dashed #ccd9e7;border-radius:10px;text-align:center;color:#73839a;font-size:12px}.wl-upgrade{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:14px}.wl-upgrade-icon{display:grid;place-items:center;width:44px;height:44px;border-radius:12px;background:#e7efff;color:#2769eb;font-size:21px}.wl-upgrade h4{margin:0 0 4px}.wl-upgrade p{margin:0;color:#6d7e96;font-size:12px}.wl-upgrade a{background:#2769eb;color:#fff;border-color:#2769eb}.wl-toast{position:fixed;right:18px;bottom:18px;z-index:10000;padding:11px 14px;border-radius:10px;background:#102b49;color:#fff;box-shadow:0 10px 30px #102b4933;font-size:12px}@media(max-width:800px){.wl-grid{grid-template-columns:1fr 1fr}.wl-invite{grid-template-columns:1fr auto}.wl-invite-actions{grid-column:1/-1}.wl-head{flex-direction:column}.wl-upgrade{grid-template-columns:auto 1fr}.wl-upgrade a{grid-column:1/-1;text-align:center}}@media(max-width:480px){.wl-grid{grid-template-columns:1fr}.wl-body,.wl-head{padding:16px}.wl-actions,.wl-statusbar{align-items:stretch;flex-direction:column}.wl-primary{width:100%}}
}
/* Source: css/fonts-local-v227.css */
@layer compatibility{@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../vendor/inter-0.ttf) format('truetype');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../vendor/inter-1.ttf) format('truetype');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../vendor/inter-2.ttf) format('truetype');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../vendor/inter-3.ttf) format('truetype');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(../vendor/inter-4.ttf) format('truetype');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url(../vendor/inter-5.ttf) format('truetype');
}
}
/* Source: css/navigation-v227.css */
@layer compatibility{/* Single geometry for the navigation, context row and demo strip. */
body{--tlm-demo-h:0px}
html body #app-shell.tlm-shell-v227[style*="display: none"],html body #app-shell.tlm-shell-v227[style*="display:none"]{display:none!important}
body.demo-mode{--tlm-demo-h:32px}
body.demo-mode .demo-banner{position:fixed!important;inset:0 0 auto!important;z-index:550!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:18px!important;height:32px!important;min-height:32px!important;margin:0!important;padding:0 16px!important;background:#c8f36b!important;color:#17210b!important;font:500 12px/1.2 Inter,"Segoe UI",sans-serif!important;border:0!important}
body.demo-mode .demo-banner button{background:transparent!important;color:#17210b!important;border:0!important;padding:4px 0!important;font:600 12px/1.2 Inter,"Segoe UI",sans-serif!important;text-decoration:underline!important}
html body #app-shell.tlm-shell-v227{--tlm-topnav-h:68px;--tlm-context-h:56px;display:block!important;height:auto!important;min-height:100dvh!important;overflow:visible!important;margin:0!important;padding:calc(var(--tlm-demo-h) + var(--tlm-topnav-h) + var(--tlm-context-h)) 0 0!important}
html body #app-shell.tlm-shell-v227.topnav-compact{--tlm-topnav-h:54px!important;--tlm-context-h:50px!important}
html body #app-shell.tlm-shell-v227>.app-sidebar{position:fixed!important;inset:var(--tlm-demo-h) 0 auto!important;width:100%!important;max-width:none!important;height:var(--tlm-topnav-h)!important;min-height:0!important;padding:0 24px!important;display:flex!important;align-items:center!important;flex-direction:row!important;gap:20px!important;transform:none!important;background:#080e12!important;box-shadow:none!important;border:0!important;border-bottom:1px solid #263139!important;backdrop-filter:none!important;z-index:500!important;overflow:visible!important}
html body #app-shell.tlm-shell-v227>.app-header{position:fixed!important;inset:calc(var(--tlm-demo-h) + var(--tlm-topnav-h)) 0 auto!important;transform:none!important;height:var(--tlm-context-h)!important;min-height:0!important;padding:0 28px!important;display:flex!important;align-items:center!important;gap:12px!important;background:#10191f!important;border:0!important;border-bottom:1px solid #263139!important;box-shadow:none!important;backdrop-filter:none!important;z-index:490!important}
#app-shell.tlm-shell-v227 .sidebar-brand{flex:0 0 186px!important;width:186px!important;min-width:0!important;height:100%!important;min-height:0!important;padding:0!important;background:none!important;border:0!important;gap:10px!important}
#app-shell.tlm-shell-v227 .sidebar-brand .brand-mark{width:34px!important;height:34px!important;flex:0 0 34px!important;border-radius:8px!important}
#app-shell.tlm-shell-v227 .brand-name{font-size:13px!important;letter-spacing:-.4px!important;color:#f3f5f6!important}
#app-shell.tlm-shell-v227 .brand-sub{font-size:9px!important;letter-spacing:1.8px!important;color:#95a3ac!important}
#app-shell.tlm-shell-v227 .sidebar-collapse{display:flex!important;width:26px!important;height:30px!important;min-height:0!important;flex:0 0 26px!important;padding:5px!important;border:0!important;background:transparent!important;color:#80919d!important}
#app-shell.tlm-shell-v227 .app-nav{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;flex:1!important;gap:3px!important;height:100%!important;min-width:0!important;padding:0!important;overflow-x:auto!important;overflow-y:hidden!important;scrollbar-width:thin!important;scrollbar-color:#3b4b55 transparent!important}
#app-shell.tlm-shell-v227 .app-nav>.nav-main,#app-shell.tlm-shell-v227 .app-nav>.nav-group{flex:0 0 auto!important;width:auto!important;min-width:max-content!important;max-width:none!important;height:40px!important;min-height:40px!important;margin:0!important}
#app-shell.tlm-shell-v227 .app-nav>.nav-main,#app-shell.tlm-shell-v227 .app-nav>.nav-group>.nav-group-toggle{width:auto!important;height:40px!important;min-height:40px!important;padding:0 11px!important;font-size:12px!important;font-weight:600!important;gap:7px!important;color:#a9b7c1!important;border:0!important;border-radius:6px!important;background:transparent!important;box-shadow:none!important;justify-content:flex-start!important}
#app-shell.tlm-shell-v227 .app-nav .tab-label{font-size:12px!important;overflow:visible!important;text-overflow:clip!important;white-space:nowrap!important;display:inline!important}
#app-shell.tlm-shell-v227 .app-nav .tab-icon{width:17px!important;height:17px!important;min-width:17px!important;color:inherit!important}
#app-shell.tlm-shell-v227 .app-nav .nav-chevron{width:12px!important;flex:0 0 12px!important;color:inherit!important}
#app-shell.tlm-shell-v227 .app-nav button:before,#app-shell.tlm-shell-v227 .app-nav button:after{content:none!important}
#app-shell.tlm-shell-v227 .app-nav>.nav-main.active,#app-shell.tlm-shell-v227 .app-nav>.nav-group.active>.nav-group-toggle{background:#26331c!important;color:#d2f699!important;box-shadow:none!important}
#app-shell.tlm-shell-v227 .app-nav button:hover{background:#1a252d!important;color:#fff!important}
#app-shell.tlm-shell-v227 .app-nav button:focus-visible{outline:2px solid #c8f36b!important;outline-offset:-2px!important}
#app-shell.tlm-shell-v227 .app-nav .nav-group-items{position:fixed!important;top:var(--menu-y,124px)!important;left:var(--menu-x,16px)!important;width:244px!important;max-width:calc(100vw - 32px)!important;height:auto!important;padding:6px!important;background:#152129!important;border:1px solid #35454f!important;border-radius:9px!important;box-shadow:0 16px 36px #0005!important;z-index:510!important}
#app-shell.tlm-shell-v227 .app-nav .nav-group-items button{height:44px!important;min-height:44px!important;color:#c5d0d7!important;border-radius:5px!important;font-size:13px!important}
#app-shell.tlm-shell-v227 .app-nav .nav-group-items button.active{background:#26331c!important;color:#d2f699!important}
#app-shell.tlm-shell-v227 .header-team-switcher{height:40px!important;min-height:0!important;width:310px!important;max-width:100%!important;background:transparent!important;border:0!important;border-radius:6px!important;box-shadow:none!important;gap:10px!important}
#app-shell.tlm-shell-v227 .header-team-icon{display:none!important}
#app-shell.tlm-shell-v227 .header-team-switcher label{padding:0!important;min-width:0!important;flex:1!important;background:transparent!important}
#app-shell.tlm-shell-v227 .header-team-switcher label>span{font-size:9px!important;letter-spacing:1.3px!important;color:#96a7b2!important}
#app-shell.tlm-shell-v227 #header-equipo-select{width:100%!important;max-width:none!important;height:22px!important;min-height:0!important;padding:0 20px 0 0!important;border:0!important;background-color:transparent!important;font-size:13px!important;font-weight:600!important;color:#f4f6f8!important}
#app-shell.tlm-shell-v227 .app-header button{height:36px!important;min-height:36px!important;background:transparent!important;border-color:#34434d!important;border-radius:6px!important;box-shadow:none!important}
#app-shell.tlm-shell-v227 .app-header button:hover{background:#1d2a33!important}
#app-shell.tlm-shell-v227 .profile-trigger{padding:2px 10px 2px 3px!important}
#app-shell.tlm-shell-v227 .ah-user-avatar{background:#344936!important;color:#dbefdc!important;width:28px!important;height:28px!important}
#app-shell.tlm-shell-v227>main{width:100%!important;min-height:calc(100dvh - var(--tlm-topnav-h) - var(--tlm-context-h) - var(--tlm-demo-h))!important;overflow:visible!important}
#app-shell.tlm-shell-v227 .tab-panel{scroll-margin-top:calc(var(--tlm-topnav-h) + var(--tlm-context-h) + var(--tlm-demo-h) + 16px)}
#app-shell.tlm-shell-v227 .mobile-nav-toggle,#app-shell.tlm-shell-v227 .nav-mobile-close{display:none!important}
@media(min-width:1600px){html body #app-shell.tlm-shell-v227>.app-sidebar{padding-inline:max(28px,calc((100vw - 1600px)/2))!important}#app-shell.tlm-shell-v227 .app-nav{gap:8px!important}}
@media(max-width:1100px) and (min-width:901px){#app-shell.tlm-shell-v227 .sidebar-brand{flex-basis:160px!important;width:160px!important}#app-shell.tlm-shell-v227 .sidebar-collapse{display:none!important}html body #app-shell.tlm-shell-v227>.app-sidebar{padding-inline:16px!important;gap:14px!important}}
@media(max-width:900px){
 html body #app-shell.tlm-shell-v227,html body #app-shell.tlm-shell-v227.topnav-compact{--tlm-topnav-h:0px!important;--tlm-context-h:60px!important}
 html body #app-shell.tlm-shell-v227>.app-header{inset:var(--tlm-demo-h) 0 auto!important;padding:0 12px!important;height:60px!important}
 html body #app-shell.tlm-shell-v227>.app-sidebar{inset:var(--tlm-demo-h) auto 0 0!important;width:min(340px,88vw)!important;max-width:88vw!important;height:calc(100dvh - var(--tlm-demo-h))!important;padding:0 18px!important;display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:0!important;transform:translateX(-105%)!important;overflow-y:auto!important;z-index:530!important;transition:transform .18s ease!important}
 html body #app-shell.tlm-shell-v227.mobile-nav-open>.app-sidebar,html body #app-shell.tlm-shell-v227.sidebar-open>.app-sidebar{transform:none!important}
 #app-shell.tlm-shell-v227 .sidebar-brand{height:72px!important;min-height:72px!important;width:100%!important;flex:0 0 72px!important}
 #app-shell.tlm-shell-v227 .sidebar-collapse{display:none!important}
 #app-shell.tlm-shell-v227 .nav-mobile-close{display:flex!important;align-items:center;justify-content:center;margin-left:auto;width:40px;height:40px;border:1px solid #34434d;border-radius:6px;background:transparent;color:#d4dee4;font-size:24px}
 #app-shell.tlm-shell-v227 .app-sidebar .app-nav{display:flex!important;flex-direction:column!important;align-items:stretch!important;width:100%!important;height:auto!important;flex:0 0 auto!important;gap:5px!important;padding:12px 0 30px!important;overflow:visible!important}
 #app-shell.tlm-shell-v227 .app-nav>.nav-main,#app-shell.tlm-shell-v227 .app-nav>.nav-group{width:100%!important;min-width:0!important;height:auto!important;flex:0 0 auto!important}
 #app-shell.tlm-shell-v227 .app-nav>.nav-main,#app-shell.tlm-shell-v227 .app-nav>.nav-group>.nav-group-toggle{width:100%!important;height:46px!important;min-height:46px!important;padding:0 12px!important}
 #app-shell.tlm-shell-v227 .app-nav .tab-label{font-size:14px!important}
 #app-shell.tlm-shell-v227 .app-nav .nav-group-items{position:static!important;width:100%!important;max-width:none!important;margin-top:4px!important;box-shadow:none!important}
 #app-shell.tlm-shell-v227 .app-nav .nav-group-items .tab-label{font-size:13px!important}
 #app-shell.tlm-shell-v227 .mobile-nav-toggle{display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 40px!important;width:40px!important;height:40px!important;padding:9px!important}
 #app-shell.tlm-shell-v227 .header-team-switcher{width:100%!important;max-width:none!important}
 #app-shell.tlm-shell-v227 .app-header .ah-title-wrap{flex:1!important;min-width:0!important}
 #app-shell.tlm-shell-v227 .header-team-manage{display:none!important}
 #app-shell.tlm-shell-v227 .sidebar-scrim{display:none!important}
 #app-shell.tlm-shell-v227.mobile-nav-open>.sidebar-scrim,#app-shell.tlm-shell-v227.sidebar-open>.sidebar-scrim{display:block!important;position:fixed!important;inset:var(--tlm-demo-h) 0 0!important;width:100%!important;height:auto!important;background:#0009!important;border:0!important;z-index:520!important}
 #app-shell.tlm-shell-v227.mobile-nav-open:after,#app-shell.tlm-shell-v227.sidebar-open:after{content:none!important}
 body.tlm-navigation-open{overflow:hidden!important}
 body.demo-mode .demo-banner{gap:10px!important;font-size:10px!important}
 body.demo-mode .demo-banner button{font-size:10px!important}
}
@media(prefers-reduced-motion:reduce){html body #app-shell.tlm-shell-v227>.app-sidebar{transition:none!important}}
}
/* Source: css/landing-v227.css */
@layer compatibility{/* Public surface: independent of the historical landing layouts. */
#landing.landing-v227{--land-bg:#080e12;--land-text:#f4f5f3;--land-muted:#a6b2b9;--land-lime:#c8f36b;--land-paper:#f4f5f1;--land-ink:#14201e;background:var(--land-bg);color:var(--land-text);font-family: Inter, system-ui, sans-serif;line-height:1.6;font-size:16px;overflow:clip;text-align:left}
#landing.landing-v227 *,#landing.landing-v227 *:before,#landing.landing-v227 *:after{box-sizing:border-box}
#landing.landing-v227 :is(h1,h2,h3,p,figure,ul){margin:0}
#landing.landing-v227 h1,#landing.landing-v227 h2,#landing.landing-v227 h3{font-family:inherit!important;color:inherit!important;text-transform:none;font-weight:600!important;letter-spacing:-.045em!important}
#landing.landing-v227 header{position:static;inset:auto;z-index:auto;grid-area:auto;background:transparent;color:inherit;border:0;padding:0}
#landing.landing-v227 header h1:before{content:none}
#landing.landing-v227 a{color:inherit!important;text-decoration:none}
#landing.landing-v227 .v227-nav,#landing.landing-v227 .v227-hero,#landing.landing-v227 .v227-roster,#landing.landing-v227 .v227-final,#landing.landing-v227 .v227-footer{color:#f4f5f3!important}
#landing.landing-v227 .v227-hero h1,#landing.landing-v227 .v227-roster h2,#landing.landing-v227 .v227-final h2{color:#f4f5f3!important}
#landing.landing-v227 .v227-nav a,#landing.landing-v227 .v227-footer a{color:#dfe7e2!important}
#landing.landing-v227 button{font-family:inherit;cursor:pointer}
#landing.landing-v227 :is(a,button,summary):focus-visible{outline:2px solid #518223;outline-offset:5px}
#landing.landing-v227 img{display:block;width:100%;height:auto;max-width:100%}
#landing.landing-v227 main{display:block;width:100%;max-width:none;margin:0;padding:0}
#landing.landing-v227 section,#landing.landing-v227 header[id]{scroll-margin-top:86px}
#landing .v227-wrap{width:min(1320px,calc(100% - 96px));margin-inline:auto}
#landing .v227-eyebrow{font-size:11px;font-weight:600;letter-spacing:1.8px;line-height:1.5}
#landing .v227-nav{height:80px;position:sticky;inset:0 0 auto;z-index:40;background:#080e12;border-bottom:1px solid #293239}
#landing .v227-nav .ln-container{height:80px;display:flex;align-items:center;justify-content:space-between;gap:24px;max-width:1320px;padding:0}
#landing .v227-brand{display:flex;align-items:center;gap:11px;flex:none;line-height:1.1}
#landing .v227-brand img{width:36px;height:36px;flex:none}
#landing .v227-brand>span{font-size:17px;font-weight:650;letter-spacing:-.7px}
#landing .v227-brand small{display:block;font-size:8px;letter-spacing:2.8px;color:#a6b2b9;margin-top:6px}
#landing .ln-links{display:flex;align-items:center;gap:28px;font-size:13px;font-weight:500}
#landing .ln-links>a{padding-block:12px}
#landing .ln-links>a:hover{color:var(--land-lime)}
#landing .v227-login{font-size:13px;font-weight:500;border:0;border-left:1px solid #39444a;background:transparent;color:#f4f5f3;padding:8px 0 8px 28px}
#landing .v227-button{display:inline-flex;align-items:center;justify-content:space-between;gap:28px;min-height:52px;padding:0 23px;border:1px solid var(--land-lime);border-radius:4px;background:var(--land-lime);color:#17230e;font-size:14px;font-weight:650;line-height:1.2;box-shadow:none;transition:background .15s,border-color .15s}
#landing .v227-button:hover{background:#daf6a3;border-color:#daf6a3}
#landing .v227-button span{font-size:22px;font-weight:400}
#landing .v227-button.small{min-height:42px;padding-inline:16px;gap:22px;font-size:12px}
#landing .v227-button.outline{background:transparent;border-color:#223029;color:#17230e}
#landing .v227-button.outline:hover{background:#e3e7de}
#landing .v227-text-button{display:inline-flex;align-items:center;gap:18px;min-height:48px;padding:0;border:0;border-bottom:1px solid #5c696e;border-radius:0;background:transparent;color:#f4f5f3;font-size:14px;font-weight:550;line-height:1.3}
#landing .v227-text-button:hover{color:var(--land-lime);border-color:var(--land-lime)}
#landing .v227-text-button.ink{color:var(--land-ink);border-color:#8b988f}
#landing .v227-text-button.ink:hover{color:#426d20;border-color:#426d20}
#landing .ln-mobile-toggle{display:none}
#landing.landing-v227 .v227-hero{padding:58px 0 0;background:var(--land-bg)}
#landing .v227-hero>.v227-wrap>.v227-eyebrow{color:#a6b2b9;margin-bottom:30px}
#landing .v227-hero-grid{display:grid;grid-template-columns:.94fr 1.16fr;align-items:center;gap:52px}
#landing .v227-hero h1{font-size:clamp(46px,4.8vw,72px);line-height:1.015;letter-spacing:-3.8px;font-weight:580}
#landing .v227-hero h1 em{font-style:normal;color:var(--land-lime)}
#landing .v227-hero-copy>p{max-width:410px;margin-top:28px;font-size:16px;line-height:1.65;color:var(--land-muted)}
#landing .v227-actions{display:flex;align-items:center;gap:24px;margin:30px 0 14px;flex-wrap:wrap}
#landing .v227-hero-copy>small{font-size:12px;color:#8d9ca6}
#landing .v227-hero-figure{min-width:0;align-self:center;margin-top:8px}
#landing .v227-shot-label{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px;font-size:9px;letter-spacing:1.2px;color:#a6b2b9}
#landing .v227-shot-label>span:first-child{display:flex;align-items:center;gap:9px}
#landing .v227-shot-label i{width:6px;height:6px;display:inline-block;background:var(--land-lime);border-radius:50%}
#landing .v227-hero-figure>a{display:block;overflow:hidden;border:1px solid #3a474f;border-radius:6px;background:#10191f}
#landing .v227-hero-figure img{width:100%;height:auto}
#landing .v227-hero-figure figcaption{display:flex;justify-content:space-between;gap:16px;font-size:10px;margin-top:14px;color:#a6b2b9}
#landing .v227-hero-figure figcaption>span:first-child{color:#edf1ed}
#landing .v227-hero-bottom{display:flex;justify-content:space-between;align-items:center;gap:20px;border-top:1px solid #2d373d;margin-top:66px;padding:25px 0 28px;font-size:11px}
#landing .v227-hero-bottom>span{letter-spacing:1.5px;color:#94a3ad;font-size:9px}
#landing .v227-hero-bottom a{display:flex;gap:36px}
#landing .v227-intro{padding:100px 0 86px;background:var(--land-paper);color:var(--land-ink)}
#landing .v227-intro-grid{display:grid;grid-template-columns:1fr 2fr;gap:40px}
#landing .v227-intro-grid>.v227-eyebrow{padding-top:10px;color:#526453}
#landing h2{font-size:clamp(36px,4vw,58px);line-height:1.06;letter-spacing:-2.5px}
#landing .v227-intro-grid>div>p{max-width:590px;margin-top:24px;font-size:18px;color:#536058;line-height:1.6}
#landing .v227-workflow{display:grid;grid-template-columns:repeat(3,1fr);gap:40px;margin-top:72px;scroll-margin-top:100px}
#landing .v227-workflow article{padding-top:22px;border-top:1px solid #acb7aa}
#landing .v227-workflow article>span{font-size:10px;letter-spacing:1.3px;color:#5a6b58}
#landing .v227-workflow h3{font-size:23px;line-height:1.2;letter-spacing:-.7px;margin:20px 0 13px}
#landing .v227-workflow p{font-size:15px;line-height:1.65;color:#536058;max-width:340px}
#landing .v227-planning{padding:84px 0 90px;background:#e7ebe3;color:var(--land-ink)}
#landing .v227-section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:60px;margin-bottom:48px}
#landing .v227-section-head .v227-eyebrow{margin-bottom:24px;color:#526453}
#landing .v227-section-description{max-width:390px;font-size:16px;line-height:1.7;color:#526056}
#landing .v227-section-description button{margin-top:14px}
#landing .v227-wide-figure{width:100%;max-width:1100px;margin-left:auto}
#landing .v227-wide-figure a{display:block;border:1px solid #354339;border-radius:5px;overflow:hidden}
#landing .v227-wide-figure img{width:100%;height:auto}
#landing .v227-wide-figure figcaption{display:flex;justify-content:space-between;gap:14px;font-size:10px;letter-spacing:1px;color:#526056;margin-top:17px}
#landing .v227-planning-notes{display:grid;grid-template-columns:1fr 1fr;gap:64px;max-width:760px;margin:34px 0 0 auto;font-size:14px;color:#536058;line-height:1.7}
#landing .v227-planning-notes b{color:#203525}
#landing .v227-roster{padding:104px 0;background:#0c151b}
#landing .v227-roster-grid{display:grid;grid-template-columns:1.2fr .8fr;align-items:center;gap:80px}
#landing .v227-roster figure{min-width:0}
#landing .v227-roster figure a{display:block;border:1px solid #34434d;border-radius:5px;overflow:hidden}
#landing .v227-roster figcaption{margin-top:16px;font-size:10px;letter-spacing:1.4px;color:#96a7b2}
#landing .v227-roster .v227-eyebrow{color:#a6b2b9;margin-bottom:24px}
#landing .v227-roster h2{font-size:clamp(44px,4.7vw,68px);font-weight:550}
#landing .v227-roster h2 em{font-style:normal;color:var(--land-lime)}
#landing .v227-roster p:not(.v227-eyebrow){max-width:375px;margin:26px 0;color:#a6b2b9;font-size:16px;line-height:1.65}
#landing .v227-roster ul{list-style:none;padding:0;margin-bottom:25px;font-size:13px;color:#d6dee1}
#landing .v227-roster li{padding:10px 0;border-bottom:1px solid #29363e}
#landing .v227-pricing{padding:100px 0 70px;background:var(--land-paper);color:var(--land-ink)}
#landing .v227-plans{display:grid;grid-template-columns:1fr 1fr;border-top:1px solid #aeb9a8}
#landing .v227-plans article{padding:35px 48px 30px 0}
#landing .v227-plans article.senior{padding-left:48px;padding-right:0;border-left:1px solid #aeb9a8}
#landing .v227-plan-name{font-size:26px;letter-spacing:-.6px;font-weight:600}
#landing .v227-plans header p{font-size:14px;color:#536058;margin-top:8px}
#landing .v227-price{font-size:60px;font-weight:550;letter-spacing:-3px;line-height:1.2;margin:30px 0 22px!important}
#landing .v227-price>span{font-size:14px;letter-spacing:0;font-weight:400;margin-left:8px;color:#596659}
#landing .v227-plans .v227-button{width:100%;margin-bottom:24px}
#landing .v227-plans ul{list-style:none;padding:0;color:#415244;font-size:14px}
#landing .v227-plans li{padding:12px 0;border-bottom:1px solid #d5dcd1}
#landing .v227-price-note{font-size:12px;line-height:1.6;margin-top:12px!important;color:#657460}
#landing .v227-faq{padding:60px 0 90px;background:var(--land-paper);color:var(--land-ink)}
#landing .v227-faq-grid{display:grid;grid-template-columns:1fr 1.7fr;gap:60px}
#landing .v227-faq h2{font-size:40px;letter-spacing:-1.8px}
#landing .v227-faq details{border-top:1px solid #aeb9a8;padding:21px 0}
#landing .v227-faq summary{cursor:pointer;list-style:none;display:flex;align-items:center;justify-content:space-between;gap:24px;font-size:16px;font-weight:550;line-height:1.5}
#landing .v227-faq summary::-webkit-details-marker{display:none}
#landing .v227-faq summary:after{content:'+';font-size:24px;font-weight:400}
#landing .v227-faq details[open] summary:after{content:'−'}
#landing .v227-faq details p{font-size:15px;line-height:1.7;max-width:580px;margin-top:15px;color:#596659}
#landing .v227-final{padding:74px 0;background:#162219}
#landing .v227-final .v227-eyebrow{color:#b3c3ac;margin-bottom:25px}
#landing .v227-final .v227-wrap>div{display:flex;align-items:center;justify-content:space-between;gap:40px}
#landing .v227-final h2{font-size:clamp(36px,4vw,58px);font-weight:550}
#landing .v227-final .v227-wrap>p:last-child{font-size:13px;color:#a8b6a4;margin-top:24px}
#landing .v227-footer{padding:32px 0;background:#080e12}
#landing .v227-footer .v227-wrap{display:flex;align-items:center;justify-content:space-between;gap:30px}
#landing .v227-footer nav{display:flex;gap:22px;font-size:12px;color:#a6b2b9}
#landing .v227-footer .v227-wrap>small{font-size:10px;color:#8b9aa4}
@media(max-width:1100px){
 #landing .v227-wrap{width:calc(100% - 56px)}
 #landing .ln-links{gap:18px}
 #landing .v227-hero-grid{gap:30px}
 #landing .v227-hero h1{font-size:54px;letter-spacing:-2.8px}
 #landing .v227-hero-figure figcaption{flex-direction:column;gap:4px}
 #landing .v227-roster-grid{gap:44px}
 #landing .v227-workflow{gap:25px}
}
@media(max-width:800px){
 #landing .v227-nav,#landing .v227-nav .ln-container{height:68px}
 #landing .v227-nav .ln-container{position:relative}
 #landing .v227-nav .ln-links{display:none;position:absolute;top:68px;left:-20px;right:-20px;padding:20px;background:#10191f;border-bottom:1px solid #33414a;max-height:calc(100dvh - 68px);overflow-y:auto}
 #landing .v227-nav .mobile-open .ln-links{display:flex;flex-direction:column;align-items:stretch;gap:8px}
 #landing .v227-nav .ln-links>a,#landing .v227-login{min-height:44px;padding:10px 0;border:0;text-align:left;font-size:15px}
 #landing .ln-mobile-toggle{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;width:44px;height:44px;padding:8px;border:1px solid #33414a;background:transparent;border-radius:4px}
 #landing .ln-mobile-toggle span{display:block;width:19px;height:1px;background:#e8eee5}
 #landing .v227-wrap{width:calc(100% - 40px)}
 #landing.landing-v227 .v227-hero{padding-top:38px}
 #landing .v227-hero-grid{grid-template-columns:1fr;gap:34px}
 #landing .v227-hero h1{font-size:clamp(47px,8vw,66px);letter-spacing:-2.8px;line-height:1.04}
 #landing .v227-hero h1 em br{display:none}
 #landing .v227-hero-copy>p{max-width:510px;margin-top:22px;font-size:16px}
 #landing .v227-hero-figure{max-width:680px;width:100%}
 #landing .v227-hero-figure figcaption{flex-direction:row}
 #landing .v227-hero-bottom{margin-top:32px;padding:22px 0}
 #landing .v227-hero-bottom>span{display:none}
 #landing .v227-hero-bottom a{width:100%;justify-content:space-between;font-size:12px}
 #landing .v227-intro{padding:60px 0}
 #landing .v227-intro-grid{grid-template-columns:1fr;gap:22px}
 #landing h2{font-size:42px;letter-spacing:-2px}
 #landing .v227-intro-grid>div>p{font-size:16px}
 #landing .v227-workflow{grid-template-columns:1fr;margin-top:42px;gap:28px}
 #landing .v227-workflow h3{margin:10px 0;font-size:24px}
 #landing .v227-workflow p{max-width:600px}
 #landing .v227-planning,#landing .v227-roster,#landing .v227-pricing{padding:60px 0}
 #landing .v227-section-head{display:block;margin-bottom:30px}
 #landing .v227-section-description{margin-top:24px!important;max-width:560px}
 #landing .v227-section-head .v227-eyebrow{margin-bottom:20px}
 #landing .v227-planning-notes{gap:22px;font-size:13px}
 #landing .v227-roster-grid{grid-template-columns:1fr;gap:32px}
 #landing .v227-roster-grid>div{grid-row:1}
 #landing .v227-roster h2{font-size:50px}
 #landing .v227-roster h2 br{display:none}
 #landing .v227-roster h2 em:before{content:' '}
 #landing .v227-roster p:not(.v227-eyebrow){max-width:550px}
 #landing .v227-plans article{padding-right:24px}
 #landing .v227-plans article.senior{padding-left:24px}
 #landing .v227-price{font-size:46px}
 #landing .v227-faq{padding:15px 0 60px}
 #landing .v227-faq-grid{grid-template-columns:1fr;gap:30px}
 #landing .v227-faq h2 br{display:none}
 #landing .v227-final{padding:55px 0}
 #landing .v227-final .v227-wrap>div{display:block}
 #landing .v227-final .v227-button{margin-top:28px}
 #landing .v227-footer .v227-wrap{flex-wrap:wrap;gap:25px}
 #landing .v227-footer nav{flex-wrap:wrap}
}
@media(max-width:480px){
 #landing .v227-hero h1{font-size:46px;letter-spacing:-2.6px}
 #landing .v227-eyebrow{font-size:10px;letter-spacing:1.3px}
 #landing .v227-actions{gap:16px;align-items:stretch;flex-direction:column;margin-top:25px}
 #landing .v227-actions .v227-text-button{align-self:flex-start;min-height:42px}
 #landing .v227-shot-label{font-size:8px;letter-spacing:.6px}
 #landing .v227-shot-label>span:last-child{display:none}
 #landing .v227-hero-figure figcaption{font-size:9px;gap:8px}
 #landing .v227-wide-figure figcaption{font-size:8px;letter-spacing:.3px}
 #landing .v227-planning-notes{grid-template-columns:1fr;gap:14px;margin-top:24px}
 #landing .v227-plans{grid-template-columns:1fr}
 #landing .v227-plans article,#landing .v227-plans article.senior{padding:28px 0;border-left:0}
 #landing .v227-plans article.senior{border-top:1px solid #aeb9a8}
 #landing .v227-price{font-size:56px;margin:22px 0!important}
 #landing .v227-faq summary{font-size:15px}
 #landing .v227-final h2{font-size:36px;letter-spacing:-1.7px}
 #landing .v227-footer .v227-wrap{display:block}
 #landing .v227-footer nav{margin:28px 0;gap:18px}
}
}
/* Source: css/landing-v228-sport.css */
@layer compatibility{/* v228 — restore the immersive, competitive sports direction. */
#landing.landing-v228{--land-bg:#070b10;--land-paper:#0d141d;--land-ink:#f4f5f3;--land-muted:#aab8c6;--land-lime:#c8f36b;background:#070b10}
#landing.landing-v228 :is(h1,h2,h3){font-weight:800!important;letter-spacing:-.045em!important}
#landing.landing-v228 .v227-nav{height:76px;background:#070b10ef;border-color:#25303e;backdrop-filter:blur(14px)}
#landing.landing-v228 .v227-nav .ln-container{height:76px}
#landing.landing-v228 .v227-button{border-radius:100px;min-height:52px;padding-inline:25px;font-weight:750}
#landing.landing-v228 .v227-button.small{min-height:42px}
#landing.landing-v228 .v227-login{border:1px solid #42505e;border-radius:100px;padding:11px 20px}
#landing.landing-v228 .v227-hero{position:relative;isolation:isolate;padding:74px 0 0;background:#070b10;overflow:hidden}
#landing.landing-v228 .v227-hero:before{content:"";position:absolute;inset:0 0 auto;height:880px;z-index:-2;background:url('../assets/landing/basketball-performance-staff-v152.webp') center 20%/cover no-repeat}
#landing.landing-v228 .v227-hero:after{content:"";position:absolute;inset:0 0 auto;height:1000px;z-index:-1;background:linear-gradient(90deg,rgba(7,11,16,.94) 0%,rgba(7,11,16,.56) 46%,rgba(7,11,16,.1) 82%),linear-gradient(0deg,#070b10 8%,rgba(7,11,16,.02) 62%)}
#landing.landing-v228 .v227-hero>.v227-wrap>.v227-eyebrow{display:inline-flex;align-items:center;gap:10px;padding:8px 13px;border:1px solid #64745a;border-radius:100px;color:#e2f1d1;background:#122015a6;margin-bottom:28px}
#landing.landing-v228 .v227-hero>.v227-wrap>.v227-eyebrow:before{content:"";width:6px;height:6px;background:#c8f36b;border-radius:50%}
#landing.landing-v228 .v227-hero-grid{display:flex;flex-direction:column;align-items:stretch;gap:60px}
#landing.landing-v228 .v227-hero-copy{max-width:780px}
#landing.landing-v228 .v227-hero h1{font-size:clamp(60px,7.6vw,112px);line-height:.95;text-transform:uppercase;font-weight:850!important;letter-spacing:-.055em!important}
#landing.landing-v228 .v227-hero h1 em{color:#c8f36b}
#landing.landing-v228 .v227-hero-copy>p{max-width:480px;margin-top:28px;font-size:18px;color:#d0dbe4;text-wrap:pretty}
#landing.landing-v228 .v227-hero-copy>small{color:#b4c2cf}
#landing.landing-v228 .v227-actions{margin-top:28px}
#landing.landing-v228 .v227-hero-figure{align-self:center;max-width:1120px;width:100%;margin-top:0}
#landing.landing-v228 .v227-hero-figure>a{border:1px solid #435466;border-radius:14px;box-shadow:0 30px 90px #0006}
#landing.landing-v228 .v227-hero-figure img{aspect-ratio:1440/900;object-fit:cover;object-position:top}
#landing.landing-v228 .v227-shot-label{font-size:10px;letter-spacing:1.2px;margin-bottom:14px}
#landing.landing-v228 .v227-hero-figure figcaption{font-size:11px}
#landing.landing-v228 .v227-hero-bottom{margin-top:45px;border-color:#253342}
#landing.landing-v228 .v227-intro{background:#070b10;padding:82px 0 86px;border-top:1px solid #243140;color:#f4f5f3}
#landing.landing-v228 .v227-intro-grid{grid-template-columns:.8fr 1.4fr}
#landing.landing-v228 .v227-intro-grid>.v227-eyebrow{color:#c8f36b}
#landing.landing-v228 .v227-intro-grid>div>p{color:#aab8c6}
#landing.landing-v228 .v227-workflow article{border-color:#334456}
#landing.landing-v228 .v227-workflow article>span{color:#91b8ef}
#landing.landing-v228 .v227-workflow p{color:#aab8c6}
#landing.landing-v228 .v227-planning{background:#111c29;color:#f4f5f3;padding:88px 0}
#landing.landing-v228 .v227-section-head .v227-eyebrow{color:#a8ccff}
#landing.landing-v228 .v227-section-description{color:#b3c1cf}
#landing.landing-v228 .v227-text-button.ink{color:#f4f5f3;border-color:#6d8094}
#landing.landing-v228 .v227-text-button.ink:hover{color:#c8f36b;border-color:#c8f36b}
#landing.landing-v228 .v227-wide-figure a{border-color:#415368;border-radius:14px;box-shadow:0 20px 60px #0004}
#landing.landing-v228 .v227-wide-figure figcaption{color:#aab8c6}
#landing.landing-v228 .v227-planning-notes{color:#aab8c6}
#landing.landing-v228 .v227-planning-notes b{color:#edf4fa}
#landing.landing-v228 .v227-roster{background:#070b10;padding:104px 0}
#landing.landing-v228 .v227-roster figure a{border-radius:14px;border-color:#42515f;box-shadow:0 24px 60px #0004}
#landing.landing-v228 .v227-roster h2{font-size:clamp(48px,5.5vw,78px);text-transform:uppercase;line-height:.98}
#landing.landing-v228 .v227-roster li{border-color:#2a3947}
#landing.landing-v228 .v227-roster .v227-eyebrow{color:#c8f36b}
#landing.landing-v228 .v227-pricing{background:#101923;color:#f4f5f3;padding:88px 0 70px}
#landing.landing-v228 .v227-plans{gap:24px;border:0}
#landing.landing-v228 .v227-plans article{padding:34px;border:1px solid #344555;border-radius:16px;background:#152230}
#landing.landing-v228 .v227-plans article.senior{padding:34px;background:#1c2b27;border:1px solid #95bc56;position:relative}
#landing.landing-v228 .v227-plans article.senior:before{content:"PARA EL STAFF";position:absolute;right:24px;top:30px;padding:5px 9px;border:1px solid #809b63;border-radius:100px;color:#d7efb9;font-size:9px;font-weight:700;letter-spacing:1px}
#landing.landing-v228 .v227-plans header p{color:#aab8c6;max-width:270px;margin-top:12px}
#landing.landing-v228 .v227-plan-name{text-transform:uppercase;font-weight:800;letter-spacing:-1px;font-size:30px}
#landing.landing-v228 .v227-price{font-size:64px;font-weight:750}
#landing.landing-v228 .v227-price>span{color:#abbac8}
#landing.landing-v228 .v227-button.outline{color:#f1f5f8;border-color:#708394;background:#182737}
#landing.landing-v228 .v227-button.outline:hover{background:#223447}
#landing.landing-v228 .v227-plans ul{color:#cfdae2}
#landing.landing-v228 .v227-plans li{border-color:#354657}
#landing.landing-v228 .v227-plans li:before{content:"✓";color:#c8f36b;margin-right:12px;font-size:13px}
#landing.landing-v228 .v227-price-note{color:#a8b7c5;margin-top:25px!important}
#landing.landing-v228 .v227-faq{background:#101923;color:#f4f5f3;padding:25px 0 88px}
#landing.landing-v228 .v227-faq details{border-color:#364656}
#landing.landing-v228 .v227-faq details p{color:#aebcca}
#landing.landing-v228 .v227-faq summary:after{color:#c8f36b}
#landing.landing-v228 .v227-final{background:linear-gradient(110deg,#1c3428,#0b1914);padding:76px 0;border-top:1px solid #46603b}
#landing.landing-v228 .v227-final h2{text-transform:uppercase;line-height:1.01;font-size:clamp(38px,4.6vw,66px)}
#landing.landing-v228 .v227-footer{background:#070b10}
#landing.landing-v228 :is(a,button,summary):focus-visible{outline-color:#c8f36b}
@media(max-width:1100px){
 #landing.landing-v228 .v227-hero:before{background-position:60% top}
 #landing.landing-v228 .v227-hero-copy{max-width:650px}
 #landing.landing-v228 .v227-plans article.senior:before{position:static;display:inline-block;margin-bottom:20px}
}
@media(max-width:800px){
 #landing.landing-v228 .v227-nav,#landing.landing-v228 .v227-nav .ln-container{height:68px}
 #landing.landing-v228 .v227-nav .ln-links{background:#101923}
 #landing.landing-v228 .v227-hero{padding-top:42px}
 #landing.landing-v228 .v227-hero:before{height:720px;background-position:65% top}
 #landing.landing-v228 .v227-hero:after{height:850px;background:linear-gradient(90deg,#070b10dc,#070b1055),linear-gradient(0deg,#070b10 10%,#070b1010 65%)}
 #landing.landing-v228 .v227-hero h1{font-size:clamp(56px,9vw,80px)}
 #landing.landing-v228 .v227-hero-copy>p{font-size:16px;max-width:460px}
 #landing.landing-v228 .v227-hero-grid{gap:44px}
 #landing.landing-v228 .v227-hero-figure{max-width:100%}
 #landing.landing-v228 .v227-intro-grid{grid-template-columns:1fr}
 #landing.landing-v228 .v227-intro,#landing.landing-v228 .v227-planning,#landing.landing-v228 .v227-roster,#landing.landing-v228 .v227-pricing{padding:60px 0}
 #landing.landing-v228 .v227-roster h2{font-size:52px}
 #landing.landing-v228 .v227-plans{gap:18px}
 #landing.landing-v228 .v227-plans article,#landing.landing-v228 .v227-plans article.senior{padding:25px}
 #landing.landing-v228 .v227-price{font-size:48px}
 #landing.landing-v228 .v227-faq{padding:0 0 60px}
 #landing.landing-v228 .v227-final{padding:56px 0}
}
@media(max-width:480px){
 #landing.landing-v228 .v227-hero h1{font-size:56px}
 #landing.landing-v228 .v227-hero>.v227-wrap>.v227-eyebrow{font-size:9px;letter-spacing:.7px}
 #landing.landing-v228 .v227-hero:before{background-position:68% top}
 #landing.landing-v228 .v227-hero-figure img{aspect-ratio:768/1020;object-fit:contain}
 #landing.landing-v228 .v227-hero-figure figcaption{font-size:9px}
 #landing.landing-v228 .v227-hero-figure>a{border-radius:9px}
 #landing.landing-v228 .v227-roster h2{font-size:45px}
 #landing.landing-v228 .v227-plans article.senior:before{position:absolute;top:28px;right:20px;font-size:8px;margin:0}
 #landing.landing-v228 .v227-price{font-size:56px}
}
}
/* Source: css/app-v229-load-health.css */
@layer compatibility{/* v229: explicit current-theme surfaces for the remaining legacy modules.
   Keep text tokens separate from selected-control backgrounds. */
#app-shell :is(#tab-cargas,#tab-externa,#tab-salud,#tab-antropometria){
 --card-alt:#101f29;--court-paper:#09151d;--court-line:#293c48;
 --isak-ink:#f4f8fa;--isak-soft:#142b45;--isak-blue:#83b2ff;
 color:var(--module-text);background:#050d12!important;color-scheme:dark;
}
#app-shell #tab-cargas :is(.load-source-note,.plc-reading,.load-context-grid>div),
#app-shell #tab-externa :is(.ce44-method-note,.ce44-metrics>div,.ce44-summary>div),
#app-shell #tab-salud :is(.salud-leyenda,.availability-metrics>span),
#app-shell #tab-antropometria :is(.isak-filters,.isak-chart-stat,.somato-toolbar,.somato-kpis article,.somato-inspector,.somato-note,.somato-compare,.somato-triplet-large>div){
 background:var(--module-bg-2)!important;color:var(--module-text)!important;border-color:var(--module-line)!important;box-shadow:none!important;
}
#app-shell #tab-cargas .player-load-card{background:var(--module-bg)!important;border:1px solid var(--module-line)!important;border-left:3px solid var(--load-signal,#8093a1)!important;border-radius:14px!important;box-shadow:none!important}
#app-shell #tab-cargas .acwr-card-sub{--load-signal:#4f91ff}
#app-shell #tab-cargas .acwr-card-sweet{--load-signal:#2bd391}
#app-shell #tab-cargas .acwr-card-high{--load-signal:#f4b740}
#app-shell #tab-cargas .acwr-card-critical{--load-signal:#ff5c6c}
#app-shell #tab-cargas .plc-reading{border:1px solid var(--module-line);border-radius:8px}
#app-shell #tab-cargas :is(.plc-reading strong,.load-context-grid strong){color:#edf4f7!important}
#app-shell #tab-cargas :is(.load-context-grid span,.load-context-grid small,.load-source-note){color:#aabdc9!important}
#app-shell #tab-externa .ce44-summary{background:var(--module-line)!important;border-color:var(--module-line)!important;border-radius:12px!important;overflow:hidden}
#app-shell #tab-externa :is(.ce44-day.active,.ce44-metrics button.on){background:#183c64!important;border-color:#4f91ff!important;color:#f4f8fa!important}
#app-shell #tab-externa .ce44-day.active small{color:#c1dcff!important}
#app-shell #tab-externa .ce44-copy-btn{background:#142b45!important;border-color:#37608b!important;color:#bfdaff!important}
#app-shell #tab-externa .ce44-copy-btn:hover{background:#1c3a5a!important}
#app-shell #tab-externa .ce44-quick-presets button{background:#142b45!important;color:#c5ddf5!important;border-color:#37608b!important}
#app-shell #tab-externa .ce44-metrics small{color:#9fb5c3!important}
#app-shell #tab-externa .ce44-method-note{color:#b6c7d3!important;border-left-color:#4f91ff!important}
#app-shell #tab-externa .ce44-guide-row span{background:#142b45!important;color:#c5ddf5!important}
#app-shell #tab-salud .salud-leyenda{border:1px solid var(--module-line)!important;border-radius:10px!important;color:#b6c7d3!important}
#app-shell #tab-salud .salud-leyenda strong{color:#edf4f7!important}
#app-shell #tab-salud .availability-row{border-radius:12px!important;border:1px solid var(--module-line)!important;border-left:3px solid var(--health-signal,#8093a1)!important;background:var(--module-bg)!important;box-shadow:none!important}
#app-shell #tab-salud .availability-row:hover{background:#132530!important;border-color:#486173!important}
#app-shell #tab-salud .tone-optimo{--health-signal:#10b981}
#app-shell #tab-salud .tone-alerta{--health-signal:#f59e0b}
#app-shell #tab-salud .tone-critico{--health-signal:#ef4444}
#app-shell #tab-salud .tone-lesionado{--health-signal:#aab9c5}
#app-shell #tab-salud .tone-subcarga{--health-signal:#3b82f6}
#app-shell #tab-salud .availability-metrics>span{border:1px solid var(--module-line);border-radius:8px}
#app-shell #tab-salud .availability-metrics b{color:#f4f8fa!important;font-size:11px!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;line-height:1.3}
#app-shell #tab-salud .availability-metrics small{color:#9cb0bf!important;font-size:8px!important}
#app-shell #tab-salud .availability-advice>b{color:#8cbcff!important;font-size:9px!important}
#app-shell #tab-salud .availability-advice>small{color:#bdcdd7!important;font-size:11px!important}
#app-shell #tab-salud :is(.availability-player small,.availability-state small){color:#a4b8c7!important;font-size:10px!important}
#app-shell #tab-salud .availability-player strong{font-size:13px!important;color:#f4f8fa!important}
#app-shell #tab-salud .availability-state>b{color:#d9e5ec!important}
#app-shell #tab-antropometria :is(.isak-chart-stat strong,.somato-kpis strong,.somato-inspector strong,.somato-inspector b,.somato-inspector dd,.somato-compare strong){color:#f4f8fa!important}
#app-shell #tab-antropometria :is(.isak-filters label,.isak-chart-stat span,.isak-chart-stat small,.somato-toolbar label,.somato-compare label,.somato-compare small,.somato-inspector small,.somato-inspector dt,.somato-note){color:#a1b5c3!important}
#app-shell #tab-antropometria :is(select,.somato-compare output){background:#09161e!important;color:#e7f0f6!important;border-color:#304550!important}
#app-shell #tab-antropometria :is(.isak-kicker,.isak-status.complete){background:#143a30!important;color:#85e8bd!important}
#app-shell #tab-antropometria .isak-status.partial{background:#3b2e16!important;color:#ffd48a!important}
#app-shell #tab-antropometria .isak-status.basic{background:#22313f!important;color:#b4c6d4!important}
#app-shell #tab-antropometria .isak-open-label{background:#142b45!important;color:#bad8ff!important}
#app-shell #tab-antropometria .isak-advanced>summary{background:#142432!important;border-color:#304550!important}
#app-shell #tab-antropometria .isak-principle>span{background:#142b45!important;color:#bfdaee!important;border-color:#304550!important}
#app-shell #tab-antropometria :is(.somato-plot,#somatocarta-svg){background:#09151d!important;border-color:var(--module-line)!important}
#app-shell #tab-antropometria .somato-grid{stroke:#283e4b!important}
#app-shell #tab-antropometria .somato-grid.major{stroke:#587183!important}
#app-shell #tab-antropometria #somatocarta-svg text{fill:#a9bdcc}
#app-shell #tab-antropometria .somato-domain.endo{fill:#ff8996!important}
#app-shell #tab-antropometria .somato-domain.meso{fill:#ffc282!important}
#app-shell #tab-antropometria .somato-domain.ecto{fill:#8abdff!important}
#app-shell #tab-antropometria .somato-centroid path{fill:#c8f36b;stroke:#09151d}
#app-shell :is(#tab-cargas,#tab-externa,#tab-salud,#tab-antropometria) table tbody tr{background:transparent!important}
#app-shell :is(#tab-cargas,#tab-externa,#tab-salud,#tab-antropometria) table tbody tr:nth-child(even){background:var(--module-bg-2)!important}
#app-shell :is(#tab-cargas,#tab-externa,#tab-salud,#tab-antropometria) table tbody tr:hover{background:#162c39!important}
}
/* Source: css/app-v230-agenda.css */
@layer compatibility{/* v230: Agenda must override the legacy panel background, including its gradient. */
#app-shell #tab-planificación{
 --card-alt:#101f29;--court-paper:#09151d;--court-line:#293c48;
 background:#050d12!important;color:var(--module-text)!important;color-scheme:dark;
}
#app-shell #tab-planificación :is(.p26-context-card,.p26-status){background:var(--module-bg)!important;color:var(--module-text)!important;border-color:var(--module-line)!important;box-shadow:none!important}
#app-shell #tab-planificación .p26-status{border-left:3px solid #83b2ff!important}
#app-shell #tab-planificación .pf-context-icon{background:#193c5a!important;color:#a8d1ff!important}
#app-shell #tab-planificación :is(.p26-sub,.p26-context-card .sub,.pv38-head p){color:#a6bac7!important}
#app-shell #tab-planificación :is(.p26-title,.p26-context-card .value){color:#f4f8fa!important}
#app-shell #tab-planificación .pv38-game{background:#391f2a!important;color:#ffa1ad!important}
#app-shell #tab-planificación .pv38-day-head>span{color:#ffd08a!important}
#app-shell #tab-planificación .plan-v38-tabs button.active{background:#26391c!important;color:#d2fa83!important;border-color:#7c9b47!important}
#app-shell #tab-planificación :is(.p26-md,.pv38-day-head .md){background:#172e4b!important;color:#b6d4ff!important}
}
/* Source: css/app-v231-readiness.css */
@layer compatibility{/* v231: remove legacy grey grid backplates from fatigue/load response. */
#app-shell #tab-readiness{background:#050d12!important;color-scheme:dark}
#app-shell #tab-readiness :is(.fr-kpis,.fr-legend){background:transparent!important;border:0!important;box-shadow:none!important;gap:12px!important}
#app-shell #tab-readiness .fr-kpi{background:var(--module-bg)!important;border:1px solid var(--module-line)!important;border-radius:14px!important}
#app-shell #tab-readiness .fr-legend-item{background:var(--module-bg-2)!important;border-color:var(--module-line)!important}
}
/* Source: css/app-v232-roster.css */
@layer compatibility{/* v232 — roster cards, current dark sports theme. */
#app-shell #tab-perfiles{background:#050d12!important;color-scheme:dark}
#app-shell #tab-perfiles #perfiles-grid .player-grid{gap:18px!important}
#app-shell #tab-perfiles #perfiles-grid .player-card{background:#0d1a23!important;border:1px solid #293c48!important;border-radius:18px!important;padding:20px!important;box-shadow:none!important;overflow:hidden!important;transition:border-color .15s,background .15s!important}
#app-shell #tab-perfiles #perfiles-grid .player-card:hover{border-color:#627b87!important;background:#11212b!important}
#app-shell #tab-perfiles #perfiles-grid .player-card.is-selected{border:1px solid #c8f36b!important;box-shadow:inset 0 3px 0 #c8f36b!important;background:#14231f!important}
#app-shell #tab-perfiles #perfiles-grid .player-card::before,#app-shell #tab-perfiles #perfiles-grid .player-card::after,#app-shell #tab-perfiles #perfiles-grid .pc-bg{display:none!important}
#app-shell #tab-perfiles #perfiles-grid .pc-head{margin:8px 0 12px!important;gap:12px!important;padding:0!important}
#app-shell #tab-perfiles #perfiles-grid .pc-nombre{font-size:16px!important;line-height:1.3!important;color:#f4f8fa!important}
#app-shell #tab-perfiles #perfiles-grid .pc-dorsal{color:#9db0bd!important;font-size:12px!important;margin-top:4px}
#app-shell #tab-perfiles #perfiles-grid .pc-estado-badge{position:static!important;display:table!important;margin:0 0 12px auto!important;padding:5px 8px!important;border-radius:6px!important;font-size:8px!important;letter-spacing:.05em}
#app-shell #tab-perfiles #perfiles-grid .pc-estado-ok{background:#153b30!important;color:#88e5bd!important}
#app-shell #tab-perfiles #perfiles-grid .pc-pos{margin-bottom:16px!important}
#app-shell #tab-perfiles #perfiles-grid .pc-stats{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;padding:14px 0!important;border:0!important;border-top:1px solid #293c48!important;background:transparent!important}
#app-shell #tab-perfiles #perfiles-grid .pcs{border:0!important;padding:0!important;background:transparent!important}
#app-shell #tab-perfiles #perfiles-grid .pcs .lbl{font-size:9px!important;color:#8ea5b5!important;font-weight:600!important;letter-spacing:.05em}
#app-shell #tab-perfiles #perfiles-grid .pcs .val{font-size:18px!important;font-weight:700!important;margin-top:4px;color:#edf4f7!important}
#app-shell #tab-perfiles #perfiles-grid .pc-spark-row{border:0!important;border-top:1px solid #293c48!important;padding:14px 0!important;margin:0!important;background:transparent!important}
#app-shell #tab-perfiles #perfiles-grid .pc-spark-row .lbl{color:#9db3bf!important;font-size:9px!important}
#app-shell #tab-perfiles #perfiles-grid .pc-footer{border:0!important;padding:4px 0 14px!important;gap:7px!important;flex-wrap:wrap!important;background:transparent!important}
#app-shell #tab-perfiles #perfiles-grid .pc-lesiones{color:#9db3bf!important}
#app-shell #tab-perfiles #perfiles-grid .pc-actions{border:0!important;border-top:1px solid #293c48!important;padding-top:14px!important;gap:8px!important;background:transparent!important}
#app-shell #tab-perfiles #perfiles-grid .pc-actions .btn{background:#162832!important;color:#dce8ee!important;border:1px solid #304650!important;border-radius:9px!important;min-height:36px!important}
#app-shell #tab-perfiles #perfiles-grid .icon-delete-btn{background:#2c2028!important;color:#ec9ba6!important;border:1px solid #57313e!important;border-radius:9px!important;width:36px!important;height:36px!important}
#app-shell #tab-perfiles #perfiles-grid .icon-delete-btn:hover{background:#482633!important;color:#ffc0c8!important}
#app-shell #tab-perfiles :is(.player-hero,.profile-focus-toolbar){background:#0d1a23!important;border:1px solid #293c48!important;border-radius:16px!important;box-shadow:none!important}
#app-shell #tab-perfiles .ph-stats{border:0!important;border-top:1px solid #293c48!important;gap:16px!important;background:transparent!important;padding-top:18px!important}
#app-shell #tab-perfiles .ph-stat{border:0!important;background:transparent!important}
#app-shell #tab-perfiles :is(.ph-meta,.ph-stat .lbl,.ph-stat .sub){color:#9bb1bf!important}
#app-shell #tab-perfiles .ph-dorsal{color:#73918a!important;opacity:.5!important}
#app-shell #tab-perfiles .pf-context-icon{background:#193c5a!important;color:#b8d8ff!important}
@media(max-width:600px){#app-shell #tab-perfiles .ph-stats{grid-template-columns:repeat(2,minmax(0,1fr))!important}#app-shell #tab-perfiles #perfiles-grid .player-card{padding:16px!important}}
#app-shell #tab-perfiles .injury-insight-card>header{background:#101f29!important;color:#edf4f7!important;border-color:#293c48!important;box-shadow:none!important}
#app-shell #tab-perfiles .injury-privacy-note{background:#142b3a!important;color:#b5cdda!important;border-color:#304650!important}
#app-shell #tab-perfiles table tbody tr{background:#0d1a23!important}
#app-shell #tab-perfiles .injury-availability.no_disponible{background:#3b222c!important;color:#ffadb8!important}
#app-shell #tab-perfiles .injury-actions .icon-delete-btn{background:#2c2028!important;color:#ec9ba6!important;border:1px solid #57313e!important;border-radius:8px!important}
}
/* Source: css/app-v233-agenda-design.css */
@layer compatibility{/* v233 — a quieter, legible planning workspace. */
#app-shell #tab-planificación .agenda-capabilities{gap:12px!important;background:transparent!important;border:0!important;margin-bottom:22px!important}
#app-shell #tab-planificación .agenda-capabilities>div{border:1px solid #293c48!important;border-radius:12px!important;background:#0d1a23!important;padding:14px!important}
#app-shell #tab-planificación .plan-v38-tabs{position:static!important;padding:6px!important;margin:0 0 20px!important;border-radius:12px!important;background:#0b1820!important;gap:6px!important}
#app-shell #tab-planificación .plan-v38-tabs button{min-height:40px!important;padding:10px 16px!important;border:0!important;border-radius:8px!important;box-shadow:none!important;font-size:12px!important}
#app-shell #tab-planificación .plan-v38-tabs button.active{background:#293d21!important;color:#d2fa83!important;box-shadow:none!important}
#app-shell #tab-planificación .pv38-view{padding:22px!important;border:1px solid #293c48!important;border-radius:18px!important;background:#0a161e!important}
#app-shell #tab-planificación .pv38-head{margin-bottom:22px!important;gap:16px!important}
#app-shell #tab-planificación .pv38-head h3{font-size:26px!important;letter-spacing:-.7px!important;margin:6px 0!important}
#app-shell #tab-planificación .pv38-kicker{color:#a7bbca!important;font-size:10px!important;letter-spacing:.1em!important}
#app-shell #tab-planificación .pv38-btn{min-height:36px!important;min-width:36px!important;padding:8px 12px!important;border:1px solid #304650!important;border-radius:8px!important;background:#152731!important;color:#e0eaf0!important;font-size:11px!important}
#app-shell #tab-planificación .pv38-kpis{gap:12px!important;margin-bottom:18px!important;background:transparent!important}
#app-shell #tab-planificación .pv38-kpis>div{padding:15px!important;border:1px solid #293c48!important;border-radius:12px!important;background:#101f29!important}
#app-shell #tab-planificación .pv38-kpis small{font-size:9px!important;color:#9fb4c2!important;letter-spacing:.06em!important}
#app-shell #tab-planificación .pv38-kpis b{font-size:24px!important;margin-top:6px!important;color:#edf4f7!important}
#app-shell #tab-planificación .pv38-legend{background:transparent!important;border:0!important;padding:4px 0 16px!important;gap:12px!important;font-size:10px!important;color:#adbfcb!important;flex-wrap:wrap!important}
#app-shell #tab-planificación :is(.pv38-grid,.pv38-week-editor){gap:10px!important}
#app-shell #tab-planificación .pv38-day{padding:12px!important;border:1px solid #293c48!important;border-top:3px solid #293c48!important;border-radius:12px!important;background:#0f1e28!important;box-shadow:none!important;min-width:0!important}
#app-shell #tab-planificación .pv38-day.has-plan{border-top-color:var(--day-accent)!important;background:#11232c!important}
#app-shell #tab-planificación .pv38-day-head{margin-bottom:12px!important;gap:6px!important}
#app-shell #tab-planificación .pv38-day-head strong{font-size:16px!important;color:#f0f6f9!important;margin-top:4px!important}
#app-shell #tab-planificación .pv38-day-head span{font-size:9px!important;color:#99afbd!important}
#app-shell #tab-planificación .pv38-day-head em{background:#1d313e!important;color:#b8cad5!important;border:0!important;border-radius:5px!important;padding:4px!important;font-size:8px!important}
#app-shell #tab-planificación .pv38-day select{min-height:38px!important;padding:8px!important;border:1px solid #344b58!important;border-radius:8px!important;background:#09171f!important;color:#e5eef4!important;font-size:11px!important;width:100%!important}
#app-shell #tab-planificación .pv38-type{padding:8px 0!important;gap:5px!important;flex-wrap:wrap!important}
#app-shell #tab-planificación .pv38-type b{font-size:10px!important;color:#bdd0dc!important}
#app-shell #tab-planificación .pv38-intensity{display:flex!important;flex-wrap:wrap!important;gap:6px!important;padding:10px 0!important}
#app-shell #tab-planificación .pv38-intensity>span{font-size:9px!important;color:#a7bdca!important}
#app-shell #tab-planificación .pv38-intensity>div{display:flex!important;gap:4px!important}
#app-shell #tab-planificación .pv38-int{width:24px!important;height:26px!important;border-radius:5px!important;border:1px solid #344b58!important;background:#0b1922!important;color:#9eb5c4!important;font-size:10px!important}
#app-shell #tab-planificación .pv38-int.active{background:#314720!important;color:#dcffa5!important;border-color:#a4c85b!important}
#app-shell #tab-planificación :is(.pv38-load,.pv38-empty){font-size:10px!important;color:#96afbe!important;border-color:#293c48!important;padding-top:12px!important}
#app-shell #tab-planificación .pv38-game{font-size:10px!important;line-height:1.5!important;padding:6px 8px!important;border-radius:6px!important;margin-bottom:8px!important}
#app-shell #tab-planificación .pv38-month-mini{background:#101f29!important;border:1px solid #293c48!important;border-radius:14px!important;padding:16px!important}
#app-shell #tab-planificación .pv38-week-card{background:#101f29!important;border:1px solid #293c48!important;border-radius:10px!important;padding:12px!important}
@media(max-width:1100px) and (min-width:701px){#app-shell #tab-planificación .pv38-day{padding:7px!important}#app-shell #tab-planificación .pv38-int{width:19px!important}}
@media(max-width:700px){#app-shell #tab-planificación .pv38-view{padding:12px!important}#app-shell #tab-planificación .pv38-head h3{font-size:22px!important}#app-shell #tab-planificación .plan-v38-tabs{flex-wrap:wrap!important}#app-shell #tab-planificación .plan-v38-tabs .micro{flex-basis:100%!important}#app-shell #tab-planificación .pv38-grid-head{display:none!important}#app-shell #tab-planificación :is(.pv38-grid,.pv38-week-editor){grid-template-columns:1fr!important}#app-shell #tab-planificación .pv38-day{min-height:0!important}#app-shell #tab-planificación .agenda-capabilities{grid-template-columns:1fr 1fr!important}}
#app-shell #tab-planificación .agenda-capabilities>div{padding-left:52px!important}
}
/* Source: css/app-v234-matches-mobile.css */
@layer compatibility{#modal-partido .modal{background:#0d1a23!important;color:#edf4f7!important;border:1px solid #304650!important;color-scheme:dark}
#modal-partido :is(h3,label,.modal-title){color:#edf4f7!important}
#modal-partido :is(input,select,textarea){background:#09171f!important;color:#edf4f7!important;border-color:#344b58!important;min-height:44px!important;font-size:16px!important}
#modal-partido .modal-footer{border-color:#293c48!important}
@media(max-width:700px){
#app-shell #tab-partidos :is(button,select,input){min-height:44px!important}
#app-shell #tab-partidos select{max-width:100%!important;font-size:16px!important}
#app-shell #tab-partidos #partidos-tabla{display:block!important;min-width:0!important;width:100%!important}
#app-shell #tab-partidos #partidos-tabla thead{display:none!important}
#app-shell #tab-partidos #partidos-tabla tbody{display:grid!important;gap:12px!important;width:100%!important}
#app-shell #tab-partidos #partidos-tabla tr{display:grid!important;grid-template-columns:1fr 1fr!important;gap:10px!important;padding:14px!important;background:#101f29!important;border:1px solid #304650!important;border-radius:12px!important}
#app-shell #tab-partidos #partidos-tabla td{display:block!important;padding:0!important;border:0!important;white-space:normal!important;min-width:0!important;color:#edf4f7!important}
#app-shell #tab-partidos #partidos-tabla td::before{content:attr(data-label);display:block;font-size:9px;color:#9bb2c1;margin-bottom:4px;text-transform:uppercase;letter-spacing:.05em}
#app-shell #tab-partidos #partidos-tabla td:nth-child(5){grid-column:1/-1;grid-row:1;font-size:20px!important;font-weight:750}
#app-shell #tab-partidos #partidos-tabla td:last-child{display:flex!important;align-items:center;justify-content:flex-end;gap:8px}
#app-shell #tab-partidos #partidos-tabla tr:focus-visible{outline:2px solid #c8f36b;outline-offset:-2px}
#app-shell #tab-partidos #partido-subtabs{flex-wrap:wrap!important;overflow:visible!important;gap:6px!important}
#app-shell #tab-partidos #partido-subtabs button{flex:1 1 auto!important;font-size:12px!important}
#app-shell #tab-partidos .panel-header .row{width:100%!important;display:flex!important;flex-wrap:wrap!important}
#modal-partido{padding:10px!important;align-items:center!important}
#modal-partido .modal{width:100%!important;max-width:100%!important;max-height:calc(100dvh - 20px)!important;overflow-y:auto!important;padding:20px!important}
}
@media(max-width:700px){
#app-shell #tab-partidos #subtab-rotacion.active{background:#050d12!important;overflow-y:auto!important;padding:8px!important;padding-bottom:max(12px,env(safe-area-inset-bottom))!important}
#app-shell #tab-partidos #subtab-rotacion :is(.pm-pro-wrap,.pm-pro-grid,.pm-pro-main,.pm-match-controls){height:auto!important;overflow:visible!important}
#app-shell #tab-partidos #subtab-rotacion .pm-pro-wrap{display:block!important}
#app-shell #tab-partidos #subtab-rotacion .pm-mobile-tabs{background:#101f29!important;border-color:#304650!important;position:sticky!important;top:0!important;z-index:20!important}
#app-shell #tab-partidos #subtab-rotacion .pm-mobile-tabs button{color:#c0d1dc!important}
#app-shell #tab-partidos #subtab-rotacion .pm-mobile-tabs .active{background:#293d21!important;color:#d2fa83!important}
#app-shell #tab-partidos #subtab-rotacion .pm-mobile-tabs .exit{background:#3b222c!important;color:#ffadb8!important}
#app-shell #tab-partidos #subtab-rotacion .pm-pro-court{grid-template-columns:repeat(2,minmax(0,1fr))!important}
#app-shell #tab-partidos #subtab-rotacion .pm-pro-name{font-size:12px!important}
#app-shell #tab-partidos #subtab-rotacion .pm-inline-fouls>[role=button]{width:36px!important;height:36px!important}
}
#modal-partido :is(header,.modal-header,h3){background:#0d1a23!important;color:#edf4f7!important;border-color:#293c48!important;box-shadow:none!important}
#modal-partido .btn:not(.btn-primary){background:#152731!important;color:#dce8ee!important;border-color:#344b58!important}
}
/* Source: css/theme-v251.css */
@layer compatibility{/* v251 — product theme. Print documents live in separate documents and keep their paper styles. */
body :is(#app-shell,.modal-back,.pm-five-overlay,.pm-multi-overlay,dialog){
 --bg:#050d12;--card:#0d1a23;--card-alt:#10212b;--input:#09161e;--calc:#10212b;--row-stripe:#10212b;
 --text:#edf4f7;--text-soft:#c2d2dc;--muted:#a3b8c6;--border:#2c414e;--border-strong:#425b69;
 --primary:#c8f36b;--primary-deep:#d7ff89;--primary-soft:#26371c;--accent:#c8f36b;--accent-soft:#26371c;
 --danger:#ffabb6;--danger-soft:#38222c;--warn:#ffd18a;--warn-soft:#382f1e;
 --p-text:#edf4f7;--p-text-soft:#c2d2dc;--p-muted:#a3b8c6;--p-slate-soft:#10212b;--p-border:#2c414e;--p-border-strong:#425b69;
 --p-success-soft:#163c32;--p-warning-soft:#382f1e;--p-danger-soft:#38222c;--p-info-soft:#172f40;
 --module-text:#edf4f7;--module-muted:#a3b8c6;--module-bg:#0d1a23;--module-bg-2:#10212b;--module-line:#2c414e;
 color-scheme:dark;
}
body :is(#app-shell,.modal-back,.pm-five-overlay,.pm-multi-overlay,dialog) *{text-shadow:none!important}
#app-shell :is(#tab-inicio,#tab-cargas,#tab-externa,#tab-planificación,#tab-readiness,#tab-wellness,#tab-peso,#tab-salud,#tab-antropometria,#tab-partidos,#tab-perfiles,#tab-temporada,#tab-suscripcion) :is(h2,h3,h4,.card-title,.kpi-value,.value){color:#edf4f7!important}
#app-shell :is(#tab-inicio,#tab-cargas,#tab-externa,#tab-planificación,#tab-readiness,#tab-wellness,#tab-peso,#tab-salud,#tab-antropometria,#tab-partidos,#tab-perfiles,#tab-temporada,#tab-suscripcion) :is(.btn,.nav-btn,.wl-filter button,.subtab,.somato-row-player){border-radius:9px!important;box-shadow:none!important}
#app-shell :is(#tab-inicio,#tab-cargas,#tab-externa,#tab-planificación,#tab-readiness,#tab-wellness,#tab-peso,#tab-salud,#tab-antropometria,#tab-partidos,#tab-perfiles,#tab-temporada,#tab-suscripcion) :is(.btn,.btn-outline,.btn-ghost){background:#152a35!important;color:#dfebf2!important;border:1px solid #385361!important;background-image:none!important}
#app-shell :is(#tab-inicio,#tab-cargas,#tab-externa,#tab-planificación,#tab-readiness,#tab-wellness,#tab-peso,#tab-salud,#tab-antropometria,#tab-partidos,#tab-perfiles,#tab-temporada,#tab-suscripcion) :is(.btn-primary,.wl-primary,.match-action-primary){background:#c8f36b!important;color:#14200e!important;border-color:#c8f36b!important;background-image:none!important;box-shadow:none!important}
#app-shell :is(#tab-inicio,#tab-cargas,#tab-externa,#tab-planificación,#tab-readiness,#tab-wellness,#tab-peso,#tab-salud,#tab-antropometria,#tab-partidos,#tab-perfiles,#tab-temporada,#tab-suscripcion) :is(.btn-primary,.wl-primary,.match-action-primary):hover{background:#d9ff92!important}
#app-shell :is(#tab-inicio,#tab-cargas,#tab-externa,#tab-planificación,#tab-readiness,#tab-wellness,#tab-peso,#tab-salud,#tab-antropometria,#tab-partidos,#tab-perfiles,#tab-temporada,#tab-suscripcion) :is(.btn-danger,.delete,.icon-delete-btn){background:#38222c!important;color:#ffabb6!important;border-color:#66404b!important}
#app-shell :is(#tab-inicio,#tab-cargas,#tab-externa,#tab-planificación,#tab-readiness,#tab-wellness,#tab-peso,#tab-salud,#tab-antropometria,#tab-partidos,#tab-perfiles,#tab-temporada,#tab-suscripcion) :is(.subtab.active,.wl-filter button.active){background:#293c21!important;color:#d6f7a1!important;border-color:#688744!important;box-shadow:none!important}
#app-shell :is(#tab-inicio,#tab-cargas,#tab-externa,#tab-planificación,#tab-readiness,#tab-wellness,#tab-peso,#tab-salud,#tab-antropometria,#tab-partidos,#tab-perfiles,#tab-temporada,#tab-suscripcion) :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]),select,textarea){background:#09161e!important;color:#edf4f7!important;border-color:#385361!important;border-radius:8px!important;box-shadow:none!important}
#app-shell :is(#tab-inicio,#tab-cargas,#tab-externa,#tab-planificación,#tab-readiness,#tab-wellness,#tab-peso,#tab-salud,#tab-antropometria,#tab-partidos,#tab-perfiles,#tab-temporada,#tab-suscripcion) :is(input,select,textarea,button):focus-visible{outline:2px solid #c8f36b!important;outline-offset:3px!important}
#app-shell :is(#tab-inicio,#tab-cargas,#tab-externa,#tab-planificación,#tab-readiness,#tab-wellness,#tab-peso,#tab-salud,#tab-antropometria,#tab-partidos,#tab-perfiles,#tab-temporada,#tab-suscripcion) :is(input,textarea)::placeholder{color:#9bb0bf!important;opacity:1}
#app-shell :is(#tab-inicio,#tab-cargas,#tab-externa,#tab-planificación,#tab-readiness,#tab-wellness,#tab-peso,#tab-salud,#tab-antropometria,#tab-partidos,#tab-perfiles,#tab-temporada,#tab-suscripcion) .panel-header{background:#0d1a23!important;background-image:none!important;border-color:#2c414e!important;box-shadow:none!important}
#app-shell :is(#tab-inicio,#tab-cargas,#tab-externa,#tab-planificación,#tab-readiness,#tab-wellness,#tab-peso,#tab-salud,#tab-antropometria,#tab-partidos,#tab-perfiles,#tab-temporada,#tab-suscripcion) .panel-header::before{background:#c8f36b!important}
#app-shell :is(#tab-inicio,#tab-cargas,#tab-externa,#tab-planificación,#tab-readiness,#tab-wellness,#tab-peso,#tab-salud,#tab-antropometria,#tab-partidos,#tab-perfiles,#tab-temporada,#tab-suscripcion) :is(.pf-context-icon,.wl-badge,.report-scope){background:#20382e!important;color:#c8ef9c!important;border-color:#45613e!important}
#app-shell :is(#tab-inicio,#tab-cargas,#tab-externa,#tab-planificación,#tab-readiness,#tab-wellness,#tab-peso,#tab-salud,#tab-antropometria,#tab-partidos,#tab-perfiles,#tab-temporada,#tab-suscripcion) :is(.semaforo,.badge,.badge-estado,.wl-state,.load-state-badge,.fr-badge,.riesgo-badge,.acwr-badge,.pc-estado-badge){border-radius:6px!important;background:#1c3440!important;color:#c4dbe8!important;box-shadow:none!important}
#app-shell :is(#tab-inicio,#tab-cargas,#tab-externa,#tab-planificación,#tab-readiness,#tab-wellness,#tab-peso,#tab-salud,#tab-antropometria,#tab-partidos,#tab-perfiles,#tab-temporada,#tab-suscripcion) :is(.semaforo.ok,.badge-success,.wl-state.completed,.load-state-badge.sweet,.fr-badge.good,.riesgo-ok,.pc-estado-disponible,.badge-estado.finalizado){background:#173c32!important;color:#a2edca!important}
#app-shell :is(#tab-inicio,#tab-cargas,#tab-externa,#tab-planificación,#tab-readiness,#tab-wellness,#tab-peso,#tab-salud,#tab-antropometria,#tab-partidos,#tab-perfiles,#tab-temporada,#tab-suscripcion) :is(.semaforo.warn,.badge-warning,.wl-state.pending,.fr-badge.warn,.riesgo-warn,.pc-estado-dudas){background:#3a2f1d!important;color:#ffda99!important}
#app-shell :is(#tab-inicio,#tab-cargas,#tab-externa,#tab-planificación,#tab-readiness,#tab-wellness,#tab-peso,#tab-salud,#tab-antropometria,#tab-partidos,#tab-perfiles,#tab-temporada,#tab-suscripcion) :is(.semaforo.danger,.badge-danger,.fr-badge.bad,.riesgo-danger,.pc-estado-lesionado){background:#40232e!important;color:#ffb4c1!important}
#app-shell :is(#tab-inicio,#tab-cargas,#tab-externa,#tab-planificación,#tab-readiness,#tab-wellness,#tab-peso,#tab-salud,#tab-antropometria,#tab-partidos,#tab-perfiles,#tab-temporada,#tab-suscripcion) :is(.pos-pill,.plc-pos){background:#20333f!important;color:#d0e1ea!important}
#app-shell :is(#tab-inicio,#tab-cargas,#tab-externa,#tab-planificación,#tab-readiness,#tab-wellness,#tab-peso,#tab-salud,#tab-antropometria,#tab-partidos,#tab-perfiles,#tab-temporada,#tab-suscripcion) .wellness-cell{color:#101a20!important;font-weight:750!important}
#app-shell :is(#tab-inicio,#tab-cargas,#tab-externa,#tab-planificación,#tab-readiness,#tab-wellness,#tab-peso,#tab-salud,#tab-antropometria,#tab-partidos,#tab-perfiles,#tab-temporada,#tab-suscripcion) :is(.wellness-chart-panel,.report-guide-grid>div,.report-guide summary,.tl-report,.tlr-kpi,.tlr-quality,.tlr-player,.tlr-rpe-card,.tlr-callout,.tlr-reading,.tlr-player-notes>div){background:#0d1a23!important;color:#e3edf4!important;border-color:#2c414e!important;box-shadow:none!important}
#app-shell :is(#tab-inicio,#tab-cargas,#tab-externa,#tab-planificación,#tab-readiness,#tab-wellness,#tab-peso,#tab-salud,#tab-antropometria,#tab-partidos,#tab-perfiles,#tab-temporada,#tab-suscripcion) :is(.report-guide strong,.report-correlation-card strong,.tlr-kpi strong,.tlr-section-title h3,.tlr-player h3){color:#edf4f7!important}
#app-shell :is(#tab-inicio,#tab-cargas,#tab-externa,#tab-planificación,#tab-readiness,#tab-wellness,#tab-peso,#tab-salud,#tab-antropometria,#tab-partidos,#tab-perfiles,#tab-temporada,#tab-suscripcion) :is(.tlr-kpi span,.tlr-kpi small,.tlr-section-title p,.tlr-method,.tlr-player p,.tlr-player small,.tlr-rpe-card small){color:#aec3d0!important}
#app-shell :is(#tab-inicio,#tab-cargas,#tab-externa,#tab-planificación,#tab-readiness,#tab-wellness,#tab-peso,#tab-salud,#tab-antropometria,#tab-partidos,#tab-perfiles,#tab-temporada,#tab-suscripcion) :is(.tlr-head,.tlr-player-head){background:#132c37!important;color:#edf4f7!important}
#app-shell :is(#tab-inicio,#tab-cargas,#tab-externa,#tab-planificación,#tab-readiness,#tab-wellness,#tab-peso,#tab-salud,#tab-antropometria,#tab-partidos,#tab-perfiles,#tab-temporada,#tab-suscripcion) .somato-row-player{color:#c8f36b!important;background:transparent!important}
#app-shell :is(#tab-inicio,#tab-cargas,#tab-externa,#tab-planificación,#tab-readiness,#tab-wellness,#tab-peso,#tab-salud,#tab-antropometria,#tab-partidos,#tab-perfiles,#tab-temporada,#tab-suscripcion) .pc-hero :is(strong,h2){color:#edf4f7!important}
#app-shell :is(#tab-inicio,#tab-cargas,#tab-externa,#tab-planificación,#tab-readiness,#tab-wellness,#tab-peso,#tab-salud,#tab-antropometria,#tab-partidos,#tab-perfiles,#tab-temporada,#tab-suscripcion) .pc-hero :is(small,.muted){color:#a9bfcd!important}
#app-shell :is(#tab-inicio,#tab-cargas,#tab-externa,#tab-planificación,#tab-readiness,#tab-wellness,#tab-peso,#tab-salud,#tab-antropometria,#tab-partidos,#tab-perfiles,#tab-temporada,#tab-suscripcion) :is(.ce44-day-tools .delete,.ce44-ex-head>button){color:#ffabb6!important;background:#38222c!important;border-color:#66404b!important}
#app-shell :is(#tab-inicio,#tab-cargas,#tab-externa,#tab-planificación,#tab-readiness,#tab-wellness,#tab-peso,#tab-salud,#tab-antropometria,#tab-partidos,#tab-perfiles,#tab-temporada,#tab-suscripcion) .p26-guide-step>span{color:#c8f36b!important}
#app-shell :is(#tab-inicio,#tab-cargas,#tab-externa,#tab-planificación,#tab-readiness,#tab-wellness,#tab-peso,#tab-salud,#tab-antropometria,#tab-partidos,#tab-perfiles,#tab-temporada,#tab-suscripcion) .command-home__priority td [style*="--p-navy"]{color:#edf4f7!important}
#app-shell :is(#tab-inicio,#tab-cargas,#tab-externa,#tab-planificación,#tab-readiness,#tab-wellness,#tab-peso,#tab-salud,#tab-antropometria,#tab-partidos,#tab-perfiles,#tab-temporada,#tab-suscripcion) .command-home__priority td [style*="--p-slate-soft"]{background:#213442!important;color:#c8f36b!important}
#app-shell :is(#tab-inicio,#tab-cargas,#tab-externa,#tab-planificación,#tab-readiness,#tab-wellness,#tab-peso,#tab-salud,#tab-antropometria,#tab-partidos,#tab-perfiles,#tab-temporada,#tab-suscripcion) .command-home [style*="--p-border"]{background-color:#10212b!important}
#app-shell #tab-suscripcion p[style*="#475569"]{color:#b4c9d6!important}
body :is(.modal-back,.pm-five-overlay,.pm-multi-overlay,dialog) :is(.modal,.modal-content,.modal-head,.modal-footer,.pm-five-dialog,.pm-multi-dialog){background:#0d1a23!important;color:#edf4f7!important;border-color:#2c414e!important;box-shadow:none!important}
body :is(.modal-back,.pm-five-overlay,.pm-multi-overlay,dialog) :is(h2,h3,h4,label,strong){color:#edf4f7!important}
body :is(.modal-back,.pm-five-overlay,.pm-multi-overlay,dialog) :is(.muted,small,p){color:#b4c9d6}
body :is(.modal-back,.pm-five-overlay,.pm-multi-overlay,dialog) :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]),select,textarea){background:#09161e!important;color:#edf4f7!important;border:1px solid #385361!important;border-radius:8px!important;color-scheme:dark}
body :is(.modal-back,.pm-five-overlay,.pm-multi-overlay,dialog) :is(.btn,button){box-shadow:none!important;border-radius:8px!important}
body :is(.modal-back,.pm-five-overlay,.pm-multi-overlay,dialog) :is(.btn-primary,button[type=submit],.pm-multi-confirm){background:#c8f36b!important;color:#14200e!important;border:1px solid #c8f36b!important;background-image:none!important}
body :is(.modal-back,.pm-five-overlay,.pm-multi-overlay,dialog) :is(input,select,textarea,button):focus-visible{outline:2px solid #c8f36b!important;outline-offset:3px}
body :is(.modal-back,.pm-five-overlay,.pm-multi-overlay,dialog) :is(.modal h3,.modal-footer,.modal-actions){border-color:#2c414e!important}
@media(max-width:700px){#app-shell :is(#tab-inicio,#tab-cargas,#tab-externa,#tab-planificación,#tab-readiness,#tab-wellness,#tab-peso,#tab-salud,#tab-antropometria,#tab-partidos,#tab-perfiles,#tab-temporada,#tab-suscripcion) :is(.btn,input,select,textarea){min-height:42px}body :is(.modal-back,.pm-five-overlay,.pm-multi-overlay,dialog) :is(input,select,textarea){font-size:16px!important}body :is(.modal-back,.pm-five-overlay,.pm-multi-overlay,dialog) :is(.btn,button){min-height:42px}}

/* Modal headers, questionnaire controls and management panels. */
body :is(#modal-cmj,#modal-baseline,#modal-peso,#modal-isak,#modal-guia-isak,#modal-wellness-masivo,#modal-partido,#modal-cambio,#modal-lesión,#modal-perfiles,#modal-reporte-jugador,#modal-mi-perfil,#modal-wellness,#modal-restq,#modal-equipos,#modal-equipo-edit,#modal-jugador,#modal-semana,#modal-fases,#modal-preset-ce) .modal-header{background:#0d1a23!important;border-color:#2c414e!important}
body :is(#modal-cmj,#modal-baseline,#modal-peso,#modal-isak,#modal-guia-isak,#modal-wellness-masivo,#modal-partido,#modal-cambio,#modal-lesión,#modal-perfiles,#modal-reporte-jugador,#modal-mi-perfil,#modal-wellness,#modal-restq,#modal-equipos,#modal-equipo-edit,#modal-jugador,#modal-semana,#modal-fases,#modal-preset-ce) .btn{background:#162c38!important;color:#dfebf2!important;border:1px solid #385361!important;background-image:none!important}
body :is(#modal-cmj,#modal-baseline,#modal-peso,#modal-isak,#modal-guia-isak,#modal-wellness-masivo,#modal-partido,#modal-cambio,#modal-lesión,#modal-perfiles,#modal-reporte-jugador,#modal-mi-perfil,#modal-wellness,#modal-restq,#modal-equipos,#modal-equipo-edit,#modal-jugador,#modal-semana,#modal-fases,#modal-preset-ce) .btn-primary{background:#c8f36b!important;color:#14200e!important;border-color:#c8f36b!important}
body :is(#modal-cmj,#modal-baseline,#modal-peso,#modal-isak,#modal-guia-isak,#modal-wellness-masivo,#modal-partido,#modal-cambio,#modal-lesión,#modal-perfiles,#modal-reporte-jugador,#modal-mi-perfil,#modal-wellness,#modal-restq,#modal-equipos,#modal-equipo-edit,#modal-jugador,#modal-semana,#modal-fases,#modal-preset-ce) .btn-danger{background:#38222c!important;color:#ffabb6!important;border-color:#66404b!important}
body :is(#modal-cmj,#modal-baseline,#modal-peso,#modal-isak,#modal-guia-isak,#modal-wellness-masivo,#modal-partido,#modal-cambio,#modal-lesión,#modal-perfiles,#modal-reporte-jugador,#modal-mi-perfil,#modal-wellness,#modal-restq,#modal-equipos,#modal-equipo-edit,#modal-jugador,#modal-semana,#modal-fases,#modal-preset-ce) input:not([type=checkbox]):not([type=radio]):not([type=range]){background:#09161e!important;color:#edf4f7!important;border-color:#385361!important}
body :is(#modal-cmj,#modal-baseline,#modal-peso,#modal-isak,#modal-guia-isak,#modal-wellness-masivo,#modal-partido,#modal-cambio,#modal-lesión,#modal-perfiles,#modal-reporte-jugador,#modal-mi-perfil,#modal-wellness,#modal-restq,#modal-equipos,#modal-equipo-edit,#modal-jugador,#modal-semana,#modal-fases,#modal-preset-ce) :is(.isak-modal-status,.isak-guide-callout,.wellness-question,.season-phase-create,.season-phases-footer,.profile-language-options){background:#10212b!important;color:#dceaf2!important;border-color:#2c414e!important}
body :is(#modal-cmj,#modal-baseline,#modal-peso,#modal-isak,#modal-guia-isak,#modal-wellness-masivo,#modal-partido,#modal-cambio,#modal-lesión,#modal-perfiles,#modal-reporte-jugador,#modal-mi-perfil,#modal-wellness,#modal-restq,#modal-equipos,#modal-equipo-edit,#modal-jugador,#modal-semana,#modal-fases,#modal-preset-ce) .isak-progress-track{background:#29424f!important}
body :is(#modal-cmj,#modal-baseline,#modal-peso,#modal-isak,#modal-guia-isak,#modal-wellness-masivo,#modal-partido,#modal-cambio,#modal-lesión,#modal-perfiles,#modal-reporte-jugador,#modal-mi-perfil,#modal-wellness,#modal-restq,#modal-equipos,#modal-equipo-edit,#modal-jugador,#modal-semana,#modal-fases,#modal-preset-ce) :is(.team-admin-eyebrow,#team-admin-access-count,.team-admin-permissions span){background:#173c32!important;color:#a2edca!important}
body :is(#modal-cmj,#modal-baseline,#modal-peso,#modal-isak,#modal-guia-isak,#modal-wellness-masivo,#modal-partido,#modal-cambio,#modal-lesión,#modal-perfiles,#modal-reporte-jugador,#modal-mi-perfil,#modal-wellness,#modal-restq,#modal-equipos,#modal-equipo-edit,#modal-jugador,#modal-semana,#modal-fases,#modal-preset-ce) :is(.wellness-question button,.isak-guide-step>span){background:#1a3340!important;color:#dceaf2!important;border-color:#385361!important}
body :is(#modal-cmj,#modal-baseline,#modal-peso,#modal-isak,#modal-guia-isak,#modal-wellness-masivo,#modal-partido,#modal-cambio,#modal-lesión,#modal-perfiles,#modal-reporte-jugador,#modal-mi-perfil,#modal-wellness,#modal-restq,#modal-equipos,#modal-equipo-edit,#modal-jugador,#modal-semana,#modal-fases,#modal-preset-ce) .wellness-question button.active{background:#c8f36b!important;color:#14200e!important}
body :is(#modal-cmj,#modal-baseline,#modal-peso,#modal-isak,#modal-guia-isak,#modal-wellness-masivo,#modal-partido,#modal-cambio,#modal-lesión,#modal-perfiles,#modal-reporte-jugador,#modal-mi-perfil,#modal-wellness,#modal-restq,#modal-equipos,#modal-equipo-edit,#modal-jugador,#modal-semana,#modal-fases,#modal-preset-ce) .wellness-question button[aria-pressed=true]{background:#c8f36b!important;color:#14200e!important}

#app-shell #tab-wellness .wellness-cell{background:#173c32!important;color:#a2edca!important}
#app-shell #tab-wellness .wellness-cell:is([data-color="4"],[data-color="5"]){background:#3a2f1d!important;color:#ffda99!important}
#app-shell #tab-wellness .wellness-cell:is([data-color="6"],[data-color="7"]){background:#40232e!important;color:#ffb4c1!important}
#app-shell #tab-planificación .pf-step span{color:#c8f36b!important}
#app-shell #tab-temporada .report-guide-grid strong,#app-shell #tab-temporada .report-card-head strong{color:#edf4f7!important}
#app-shell #tab-inicio .command-home [style*="--court-line"]{background:#10212b!important}
#app-shell #tab-antropometria span[style*="#7c3aed"]{color:#c4b5fd!important}
#app-shell #tab-perfiles .injury-insights-grid :is(strong,span){color:#d8e7ef!important}
#app-shell .nav-group-menu button.active{border-color:#91b65f!important;box-shadow:inset 3px 0 #c8f36b!important}
#app-shell .wl-player-tools button{color:#c8f36b!important}
/* Audit follow-up: dynamically rendered match views and secondary controls. */
#app-shell #tab-inicio .command-home__shortcuts>div{background:#10212b!important}
#app-shell #tab-planificación .agenda-capabilities>div>span{background:#20382e!important;color:#c8ef9c!important}
#app-shell #tab-antropometria .isak-advanced>summary span{color:#c4b5fd!important}
#app-shell #tab-temporada .report-chart-head strong{color:#edf4f7!important}
#app-shell #tab-perfiles .ph-meta .dot{background:#839b87!important}
#app-shell #tab-planificación .pv38-year-day.planned i{background:#c8f36b!important}
#app-shell #tab-partidos :is(.match-summary-lock,.match-summary-readonly){background:#173c32!important;color:#a2edca!important}
#app-shell #tab-partidos :is(#pm-ops-strip,.pm-pro-bench-card,.pm-pro-player,.pm-minutes-card,.pm-v12-current){background:#10212b!important;color:#edf4f7!important;border-color:#304650!important;background-image:none!important;box-shadow:none!important}
#app-shell #tab-partidos :is(.pm-history-strip span,.pm-pro-bench-dorsal,.pm-bench-live.historical,.pm-inline-fouls span,.pm-pro-filters button){background:#1c3643!important;color:#cbe0eb!important;border-color:#385361!important}
#app-shell #tab-partidos :is(.pm-filter.active,.pm-pro-player.selected,.pm-pro-bench-card.selected){background:#293c21!important;color:#d6f7a1!important;border-color:#688744!important}
#app-shell #tab-partidos :is(.pm-pro-bench-name,.pm-pro-name,.pm-clock-display){color:#edf4f7!important}
#app-shell #tab-partidos :is(.pm-pro-bench-meta,.pm-history-strip small){color:#a9bfcd!important}
#app-shell #tab-partidos :is(.tlr-rpe-progress,.tlr-chip){background:#20382e!important;color:#c8ef9c!important}
#app-shell #tab-partidos .tlr-track{background:#263f4b!important}
#app-shell #tab-partidos .tlr-mini{background:#10212b!important;color:#edf4f7!important;border-color:#304650!important}
#app-shell #tab-partidos .tlr-eyebrow{color:#c8f36b!important}
#app-shell #tab-partidos :is(.tl-report li,.tlr-chart-label strong){color:#c1d4df!important}
#modal-isak .isak-quick-result{background:#26371c!important;border-color:#54743e!important}
#modal-isak .isak-quick-result span{color:#d0e6b6!important}
#modal-isak span[style*="background:#B89148"]{background:#3a2f1d!important;color:#ffda99!important}
#modal-guia-isak .isak-guide-callout span{color:#b5cbd8!important}
#modal-guia-isak .isak-guide-step span,#modal-guia-isak span[style*="#dbeafe"]{background:#20382e!important;color:#c8ef9c!important}
#modal-equipos .team-access-rights span{background:#173c32!important;color:#a2edca!important}
#modal-equipos .team-access-rights span.denied{background:#40232e!important;color:#ffb4c1!important}
#modal-jugador #new-jugador-name{background:#09161e!important;color:#edf4f7!important;border-color:#385361!important}
#app-shell #tab-partidos .pm-history-strip strong{color:#edf4f7!important}
#app-shell #tab-partidos .pm-bench-live.historical b{color:#a2edca!important}
#app-shell #tab-partidos .pm-pro-section-head h3>span{background:#20382e!important;color:#c8ef9c!important}
#modal-guia-isak .isak-guide-grid article>span{background:#20382e!important;color:#c8ef9c!important}
/* Live match controls share the same surfaces as the rest of the product. */
#app-shell #tab-partidos :is(#pm-game-elapsed,#pm-ops-court,#pm-ops-action,#pm-control-clock,.pm-total-time b){color:#edf4f7!important}
#app-shell #tab-partidos :is(#pm-selection-hint,.pm-pro-dorsal,#pm-pro-clock,.pm-score-side,.pm-score-buttons button,.pm-ops-strip button){background:#19313e!important;color:#d8e7ef!important;border-color:#385361!important;background-image:none!important}
#app-shell #tab-partidos .pm-pro-dorsal{background:#293c21!important;color:#d6f7a1!important}
#app-shell #tab-partidos .pm-pro-min{color:#a5caff!important}
#app-shell #tab-partidos .pm-state-time.court b{color:#a2edca!important}
#app-shell #tab-partidos .pm-score-side-label{color:#c2d2dc!important}
#app-shell #tab-partidos .pm-ops-strip button.finish{background:#40232e!important;color:#ffb4c1!important;border-color:#704452!important}
#app-shell #tab-partidos #pm-clock-btn-top{background:#c8f36b!important;color:#17220e!important;border-color:#c8f36b!important}
body :is(.pm-five-dialog,.pm-multi-dialog) :is(header button,footer button:not(.primary)){background:#19313e!important;color:#d8e7ef!important;border-color:#385361!important}
body :is(.pm-five-player,.pm-multi-player)>span{background:#293c21!important;color:#d6f7a1!important}
body :is(.pm-five-player,.pm-multi-player).selected i{color:#c8f36b!important}
body .pm-multi-status b{color:#edf4f7!important}
body :is(.pm-five-dialog,.pm-multi-dialog) footer{background:#0d1a23!important;border-color:#385361!important}
body :is(.pm-five-player,.pm-multi-player):not(.selected) i{visibility:hidden}
#app-shell #tab-partidos :is(#pm-score-local,#pm-score-visitante){color:#edf4f7!important}
/* Cabecera: iconografía vectorial consistente y etiquetas siempre legibles. */
#app-shell.tlm-shell-v227 .app-nav .nav-main,
#app-shell.tlm-shell-v227 .app-nav .nav-group-toggle{overflow:visible!important;clip: auto!important}
#app-shell.tlm-shell-v227 .app-nav .tab-icon{stroke-width:1.8!important;stroke-linecap:round!important;stroke-linejoin:round!important}
#app-shell.tlm-shell-v227 .app-nav .tab-label{display:inline-block!important;max-width:none!important;overflow:visible!important;clip:auto!important;letter-spacing:-.05px!important}
#app-shell.tlm-shell-v227 .sidebar-brand .brand-mark{border:1px solid rgba(200,243,107,.55)!important;box-shadow:0 0 0 3px rgba(200,243,107,.07)!important}
#app-shell.tlm-shell-v227 .brand-name{font-weight:750!important;letter-spacing:-.25px!important}
body :is(.pm-five-dialog,.pm-multi-dialog) footer .primary{background:#c8f36b!important;color:#14200e!important;border-color:#c8f36b!important}
}
/* Source: css/match-mobile-v254.css */
@layer compatibility{/* One readable court list; existing match actions and clock remain authoritative. */
@media(max-width:700px){
#app-shell #tab-partidos #subtab-rotacion:not(.pm-finalized) #pm-howto,#app-shell #tab-partidos #pm-undo-btn{display:none!important}
#app-shell #tab-partidos #subtab-rotacion .pm-pro-toolbar .pm-pro-toolbar-actions{grid-template-columns:1fr 1.5fr!important;gap:12px!important}
#app-shell #tab-partidos #subtab-rotacion .pm-ops-strip small{font-size:8px!important}
#app-shell #tab-partidos #subtab-rotacion .pm-ops-strip button{font-size:11px!important}
#app-shell #tab-partidos #subtab-rotacion .pm-quarter-chip.active{background:#293c21!important;color:#d6f7a1!important}
body .quick-swap-sheet .pm-multi-columns{grid-template-columns:1fr!important}
body .quick-swap-sheet .pm-multi-columns>section:first-child,body .quick-swap-sheet .pm-multi-status{display:none!important}
body .quick-swap-sheet .pm-multi-list{grid-template-columns:1fr!important}
body .quick-swap-sheet .pm-multi-player{min-height:60px!important;padding:10px!important;grid-template-columns:36px 1fr 24px!important}
body .quick-swap-sheet .pm-multi-player b{font-size:14px!important;white-space:normal!important}
body .quick-swap-sheet .pm-multi-player small{font-size:12px!important}
body .quick-swap-sheet .pm-multi-player small b{color:#ffda99!important;font-variant-numeric:tabular-nums}
html body #app-shell #tab-partidos #subtab-rotacion:not(.pm-finalized) .pm-pro-toolbar{position:sticky!important;top:0!important;z-index:45!important;display:flex!important;flex-direction:column!important;gap:6px!important;padding:10px!important;background:#0d1a23!important;border:1px solid #385361!important}
#app-shell #tab-partidos #subtab-rotacion .pm-pro-toolbar-actions{width:100%!important;grid-template-columns:auto 1fr auto!important}
#app-shell #tab-partidos #pm-pro-clock{font-size:30px!important;line-height:1.1!important;font-variant-numeric:tabular-nums;padding:6px 10px!important}
#app-shell #tab-partidos #pm-clock-btn-top{font-size:15px!important;min-height:48px!important}
html body #app-shell #tab-partidos #subtab-rotacion .pm-mobile-tabs{position:static!important;margin:8px 0!important}
#app-shell #tab-partidos #subtab-rotacion .pm-mobile-tabs button{font-size:12px!important;min-height:44px!important}
#app-shell #tab-partidos #subtab-rotacion:not(.pm-finalized) #pm-cancha-list,
#app-shell #tab-partidos #subtab-rotacion:not(.pm-finalized) .pm-pro-main>.pm-pro-section-head:first-child{display:none!important}
#app-shell #tab-partidos #pm-mobile-five-v236{position:static!important;padding:12px!important;margin:8px 0!important;box-shadow:none!important}
#subtab-rotacion:is(.pm-mobile-bench,.pm-mobile-game) #pm-mobile-five-v236{display:none!important}
#pm-mobile-five-v236 .quick-five-title{font-size:15px;margin-bottom:12px}
#pm-mobile-five-v236 .quick-five-title button{font-size:11px;padding:8px}
#pm-mobile-five-v236 .quick-five-players{display:grid;grid-template-columns:1fr;gap:8px}
#pm-mobile-five-v236 .live-player-row{padding:10px;background:#10212b;border:1px solid #304650;border-radius:10px}
#pm-mobile-five-v236 .live-player-name{display:flex;align-items:center;gap:8px;margin-bottom:8px;min-width:0}
#pm-mobile-five-v236 .live-player-name>b{color:#c8f36b;font-size:16px;min-width:32px}
#pm-mobile-five-v236 .live-player-name>strong{font-size:14px;line-height:1.3;flex:1}
#pm-mobile-five-v236 .live-fouls{font-size:11px;color:#b4c9d6;white-space:nowrap}
#pm-mobile-five-v236 .live-fouls.warning{color:#ffda99}
#pm-mobile-five-v236 .live-player-data{display:grid;grid-template-columns:1fr 1fr auto auto;gap:8px;align-items:center}
#pm-mobile-five-v236 .live-player-data>div{display:flex;flex-direction:column;gap:4px}
#pm-mobile-five-v236 .live-player-data small{font-size:9px;color:#b4c9d6}
#pm-mobile-five-v236 .live-player-data strong{font-size:21px;line-height:1.1;font-variant-numeric:tabular-nums}
#pm-mobile-five-v236 .live-player-data button{padding:8px!important;min-height:44px!important;font-size:12px!important;background:#19313e!important;color:#edf4f7!important;border:1px solid #385361!important;border-radius:8px!important}
#pm-mobile-five-v236 .live-player-data [data-swap]{background:#293c21!important;color:#d6f7a1!important;border-color:#688744!important}
#pm-mobile-five-v236 button:disabled{opacity:.4}
#app-shell #tab-partidos #subtab-rotacion .pm-pro-bench{grid-template-columns:1fr!important;max-height:none!important;overflow:visible!important}
#app-shell #tab-partidos #subtab-rotacion .pm-pro-bench-card{padding:12px!important;min-height:92px!important}
#app-shell #tab-partidos #subtab-rotacion .pm-pro-bench-name{font-size:15px!important}
#app-shell #tab-partidos #subtab-rotacion .pm-pro-bench-info{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:5px!important;min-width:0!important}
#app-shell #tab-partidos #subtab-rotacion .pm-pro-bench-name{white-space:normal!important;text-align:left!important;line-height:1.3!important}
#app-shell #tab-partidos #subtab-rotacion .pm-pro-bench-meta{display:none!important}
#app-shell #tab-partidos #subtab-rotacion .pm-pro-bench-card>.pm-inline-fouls{grid-column:2/4!important;justify-content:flex-start!important;margin:5px 0 0!important}
#app-shell #tab-partidos #subtab-rotacion .pm-bench-live{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:4px!important}
#app-shell #tab-partidos #subtab-rotacion .pm-state-time.bench b{font-size:22px!important;color:#ffda99!important;font-variant-numeric:tabular-nums}
#app-shell #tab-partidos #subtab-rotacion .pm-state-time.bench small{font-size:10px!important;color:#c2d2dc!important}
}
}
/* Source: css/match-controls-v255.css */
@layer compatibility{@media(max-width:700px){
#mobile-score255{display:flex;justify-content:center;align-items:center;gap:24px;width:100%;padding:2px 0 6px;border-bottom:1px solid #304650}
#mobile-score255>div{display:grid;grid-template-columns:auto auto;gap:2px 12px;align-items:center}
#mobile-score255 span{font-size:12px;color:#c2d2dc}
#mobile-score255 strong{font-size:26px;font-variant-numeric:tabular-nums;line-height:1.1}
#mobile-score255 small{grid-column:1/-1;font-size:11px;color:#b4c9d6}
#mobile-score255 small.limit{color:#ffda99;font-weight:700}
#mobile-action255{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 10px;background:#10212b;border:1px solid #304650;border-radius:8px;margin:6px 0;font-size:12px;min-height:46px}
#mobile-action255>span{min-width:0;overflow-wrap:anywhere}
#mobile-action255 small{display:block;font-size:9px;color:#a3b8c6;margin-bottom:3px}
#mobile-action255 button{flex:none;background:#293c21;color:#d6f7a1;border:1px solid #688744;border-radius:7px;padding:8px;min-height:44px}
#mobile-action255 button:disabled{opacity:.4}
#pm-mobile-five-v236 .live-player-row.foul-limit,#app-shell #tab-partidos .pm-pro-bench-card.foul-limit{border-color:#a38044!important}
#app-shell #tab-partidos .foul-alert255{color:#ffda99!important;font-size:12px!important;font-weight:700}
}
}
/* Source: css/match-focus-v256.css */
@layer compatibility{@media(min-width:701px){#mobile-clock-state256,#mobile-score255,#mobile-action255{display:none!important}}
@media(max-width:700px){
/* Pista keeps only the clock, score and actions needed during play. */
#app-shell #tab-partidos #subtab-rotacion:not(.pm-mobile-game):not(.pm-finalized) :is(#pm-quarter-nav,#pm-ops-strip){display:none!important}
#app-shell #tab-partidos #subtab-rotacion .pm-pro-toolbar{padding:7px 9px!important;gap:4px!important;margin:0!important}
#app-shell #tab-partidos #subtab-rotacion .pm-pro-toolbar-actions{position:relative;padding-top:14px!important}
#mobile-clock-state256{position:absolute;top:0;left:0;font-size:10px;font-weight:700;letter-spacing:.04em;color:#ffda99}
#mobile-clock-state256.running{color:#a2edca}
#mobile-score255{padding:0 0 4px;gap:18px}
#mobile-score255 strong{font-size:23px}
#mobile-score255 small{font-size:10px}
#app-shell #tab-partidos #pm-pro-clock{font-size:27px!important;padding:3px 8px!important}
#app-shell #tab-partidos #pm-clock-btn-top{min-height:44px!important;font-size:14px!important}
#mobile-action255{margin:5px 0;padding:4px 8px;min-height:44px;font-size:11px}
#mobile-action255 small{display:none}
#app-shell #tab-partidos #subtab-rotacion .pm-mobile-tabs{margin:5px 0!important}
#app-shell #tab-partidos #pm-mobile-five-v236{padding:8px!important;margin:5px 0!important}
#pm-mobile-five-v236 .quick-five-title{margin-bottom:6px;font-size:14px;min-height:24px}
#pm-mobile-five-v236 [data-undo]{display:none!important}
#pm-mobile-five-v236 .quick-five-players{gap:5px;margin-top:0}
#pm-mobile-five-v236 .live-player-row{padding:7px 8px}
#pm-mobile-five-v236 .live-player-name{gap:6px;margin-bottom:4px}
#pm-mobile-five-v236 .live-player-name>strong{font-size:13px}
#pm-mobile-five-v236 .live-player-name>b{font-size:14px;min-width:27px}
#pm-mobile-five-v236 .live-player-data{gap:6px}
#pm-mobile-five-v236 .live-player-data strong{font-size:20px}
#pm-mobile-five-v236 .live-player-data>div{gap:2px}
#pm-mobile-five-v236 .live-player-data button{min-height:44px!important;padding:7px!important}
}
}
/* Source: css/rotation-v257.css */
@layer compatibility{#app-shell #rotation-analysis257{color:#edf4f7;background:#0d1a23;border:1px solid #304650;border-radius:14px;padding:20px;margin-bottom:24px}
#rotation-analysis257 .rx-tools{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:20px}
#rotation-analysis257 :is(button,select),.rx-live button{min-height:44px;background:#19313e;color:#edf4f7;border:1px solid #385361;border-radius:8px;padding:10px;font-size:14px}
#rotation-analysis257 [data-rx-print]{background:#c8f36b;color:#14200e;border-color:#c8f36b;font-weight:700}
#rotation-analysis257 label{display:flex;align-items:center;gap:8px}
#rotation-analysis257 .rx-heading>span{color:#c8f36b;font-size:11px;letter-spacing:.08em}
#rotation-analysis257 h2{font-size:28px;margin:8px 0}
#rotation-analysis257 .rx-kpis{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:20px 0}
#rotation-analysis257 .rx-kpi{border:1px solid #304650;border-radius:10px;padding:14px;background:#10212b}
#rotation-analysis257 .rx-kpi :is(small,span){display:block;color:#b4c9d6;font-size:12px}
#rotation-analysis257 .rx-kpi strong{display:block;font-size:26px;margin:7px 0;font-variant-numeric:tabular-nums}
#rotation-analysis257 .rx-section{margin:24px 0;border-top:1px solid #304650;padding-top:16px;min-width:0}
#rotation-analysis257 h3{font-size:18px;margin:0 0 10px}
#rotation-analysis257 :is(p,li){font-size:13px;color:#b4c9d6;line-height:1.6}
#rotation-analysis257 .rx-scroll{overflow-x:auto;width:100%;border:1px solid #304650;border-radius:8px}
#app-shell #rotation-analysis257 .rx-table{border-collapse:collapse;width:100%;min-width:650px;font-size:12px}
#app-shell #rotation-analysis257 .rx-table :is(th,td){padding:10px;text-align:left;color:#edf4f7!important;border:0;border-bottom:1px solid #304650;background:#10212b;white-space:normal}
#app-shell #rotation-analysis257 .rx-table thead th{background:#09161e;font-size:11px;color:#c2d2dc!important}
#rotation-analysis257 .rx-table small{display:block;font-size:10px;color:#a3b8c6;margin-top:4px}
#app-shell #rotation-analysis257 .rx-minute{min-width:23px;text-align:center;padding:6px 2px!important;font-size:10px}
#app-shell #rotation-analysis257 .rx-minute.played{background:#315639!important;color:#e7f5d9!important}
#app-shell #rotation-analysis257 .rx-minute.rest{background:#09161e!important;color:#6f8795!important}
#rotation-analysis257 .rx-timeline-row{display:grid;grid-template-columns:170px 1fr 48px;gap:10px;align-items:center;min-height:32px;font-size:12px}
#rotation-analysis257 .rx-track{position:relative;height:18px;background:#19313e;border-radius:3px;overflow:hidden}
#rotation-analysis257 .rx-track i{position:absolute;top:0;height:100%;background:#a4cc6a;border-right:2px solid #0d1a23}
#rotation-analysis257 .rx-notice{padding:14px;background:#3a2f1d;border-radius:8px;color:#ffda99}
.rx-live{padding:12px;background:#10212b;border:1px solid #304650;border-radius:10px;color:#edf4f7;margin:10px 0}.rx-live summary{cursor:pointer;min-height:32px;font-size:13px}.rx-live p{font-size:12px;color:#b4c9d6;line-height:1.5}
@media(max-width:700px){#app-shell #rotation-analysis257{padding:12px}#rotation-analysis257 .rx-kpis{grid-template-columns:repeat(2,1fr)}#rotation-analysis257 .rx-timeline-row{grid-template-columns:100px 1fr 40px;font-size:10px;gap:6px}#rotation-analysis257 .rx-kpi{padding:10px}#rotation-analysis257 .rx-tools>*{flex:1 1 auto}}
#app-shell #rotation-analysis257 .rx-table :is(th,td){height:auto!important;min-height:0!important;font-size:12px!important;line-height:1.35!important;letter-spacing:normal!important;text-transform:none!important;vertical-align:middle!important}
#app-shell #rotation-analysis257 .rx-table th:first-child{min-width:150px;position:sticky;left:0;z-index:1;background:#10212b}
#app-shell #rotation-analysis257 .rx-table thead th{white-space:nowrap!important}
#app-shell #rotation-analysis257 .rx-table th small{font-weight:400;text-transform:none!important;letter-spacing:normal!important}
#app-shell #rotation-analysis257 .rx-minute{font-size:10px!important}
#app-shell #rotation-analysis257 .rx-heading{background:transparent!important;border:0!important;border-bottom:1px solid #304650!important;padding:0 0 16px!important;box-shadow:none!important}
#app-shell #rotation-analysis257 .rx-heading:before,#app-shell #rotation-analysis257 .rx-heading:after{display:none!important}
#rotation-analysis257 .rx-axis{display:flex;justify-content:space-between;margin:0 58px 6px 180px;font-size:10px;color:#a3b8c6}
@media(max-width:700px){#rotation-analysis257 .rx-axis{margin-left:106px;margin-right:46px;font-size:9px}}
}
/* Source: css/landing-v260.css */
@layer compatibility{/* Product photography from the current demo; scoped to the public landing. */
#landing.landing-v228 .v227-hero{padding-top:64px}
#landing.landing-v228 .v227-hero:before,#landing.landing-v228 .v227-hero:after{display:none}
#landing.landing-v228 .v227-hero>.v227-wrap>.v227-eyebrow{background:none;border:0;border-radius:0;padding:0;color:#bddb95;font-size:10px;letter-spacing:.16em;margin-bottom:24px}
#landing.landing-v228 .v227-hero-grid{gap:48px}
#landing.landing-v228 .v227-hero-copy{max-width:1050px}
#landing.landing-v228 .v227-hero h1{font-size:clamp(48px,6.8vw,88px);line-height:1.03;text-transform:none!important;letter-spacing:-.055em!important}
#landing.landing-v228 .v227-hero-copy>p{max-width:640px;font-size:18px;line-height:1.7;margin-top:22px;color:#bac7cf}
#landing.landing-v228 .v227-hero-copy>small{display:block;margin-top:16px;font-size:12px;color:#93a7b3}
#landing.landing-v228 .v227-button{border-radius:8px!important;min-height:48px;padding-inline:22px}
#landing.landing-v228 .v227-login{border-radius:8px}
#landing.landing-v228 .v227-hero-figure{max-width:none}
#landing.landing-v228 .v227-hero-figure>a,#landing.landing-v228 .v227-wide-figure>a,#landing.landing-v228 .v227-roster figure>a{display:block;overflow:hidden;border:1px solid #344b58;border-radius:12px;box-shadow:0 16px 45px #0003;background:#0a151c}
#landing.landing-v228 .v227-hero-figure img,#landing.landing-v228 .v227-wide-figure img,#landing.landing-v228 .v227-roster figure img{aspect-ratio:auto!important;object-fit:contain!important;width:100%;height:auto!important;transform:none!important}
#landing.landing-v228 figcaption{font-size:11px;line-height:1.5;color:#9ab0bc;padding-top:12px}
#landing.landing-v228 .v227-shot-label{color:#a7bbc7;font-size:10px;letter-spacing:.12em}
#landing.landing-v228 .v227-intro,#landing.landing-v228 .v227-planning,#landing.landing-v228 .v227-roster{padding-block:76px}
#landing.landing-v228 .v227-planning{background:#0c171f;border-block:1px solid #23343f}
#landing.landing-v228 .v227-section-head h2,#landing.landing-v228 .v227-intro h2,#landing.landing-v228 .v227-roster h2{font-size:clamp(34px,4vw,58px);line-height:1.08;text-transform:none!important}
#landing.landing-v228 .v227-roster-grid{grid-template-columns:1.6fr 1fr;gap:50px;align-items:center}
#landing.landing-v228 .v227-workflow article{border-top:1px solid #334650;padding-top:22px}
#landing.landing-v228 .v227-workflow article>span{color:#bfdc94}
#landing.landing-v228 .v227-workflow h3{font-size:23px!important;margin-block:12px}
#landing.landing-v228 .v227-workflow p{font-size:15px;line-height:1.7}
#landing.landing-v228 .v227-section-head .v227-eyebrow{color:#bfdc94}
@media(max-width:760px){
 #landing.landing-v228 .v227-hero{padding-top:36px}
 #landing.landing-v228 .v227-hero h1{font-size:clamp(42px,9vw,64px)}
 #landing.landing-v228 .v227-hero-copy>p{font-size:16px;line-height:1.65}
 #landing.landing-v228 .v227-hero-grid{gap:30px}
 #landing.landing-v228 .v227-roster-grid{grid-template-columns:1fr;gap:30px}
 #landing.landing-v228 .v227-intro,#landing.landing-v228 .v227-planning,#landing.landing-v228 .v227-roster{padding-block:48px}
 #landing.landing-v228 .v227-shot-label{font-size:8px;letter-spacing:.04em}
 #landing.landing-v228 figcaption{font-size:10px}
}
@media(max-width:480px){#landing.landing-v228 .v227-hero-figure{max-width:350px}#landing.landing-v228 .v227-hero-figure>a{border-radius:10px}}
}
/* Source: css/match-mobile-v261.css */
@layer compatibility{@media(max-width:700px){
 #app-shell #tab-partidos #subtab-rotacion .pm-pro-toolbar{border-radius:12px!important;border-color:#345049!important;background:#0d1b22!important;padding:8px 10px!important}
 #mobile-score255{gap:12px!important;align-items:center}
 #mobile-score255>div{position:relative;cursor:pointer;min-height:44px;padding:2px 4px 13px;border-radius:6px}
 #mobile-score255>div:focus-visible{outline:2px solid #c8f36b}
 #mobile-score255 .score-hint261{position:absolute;bottom:0;left:0;right:0;font:600 9px Arial,sans-serif;color:#c2db9f;text-align:center}
 #mobile-score255 strong{font-variant-numeric:tabular-nums;font-size:25px}
 #app-shell #tab-partidos #pm-pro-clock{font-size:32px!important;letter-spacing:.015em;border:0!important;background:transparent!important}
 #app-shell #tab-partidos #pm-clock-btn-top{border-radius:8px!important;box-shadow:none!important}
 #app-shell #tab-partidos #pm-mobile-tabs{display:grid!important;grid-template-columns:1fr 1fr .75fr;gap:4px;background:#0c1920!important;padding:4px!important;border-radius:10px!important}
 #app-shell #tab-partidos #pm-mobile-tabs .exit{display:none!important}
 #app-shell #tab-partidos #pm-mobile-tabs button{border:0!important;border-radius:7px!important;box-shadow:none!important;min-height:44px!important}
 #app-shell #tab-partidos #pm-mobile-tabs button.active{background:#30432a!important;color:#d9f7ad!important}
 #mobile-action255:not(:has(button:not(:disabled))){display:none!important}
 #app-shell #tab-partidos #pm-mobile-five-v236{border:0!important;background:transparent!important;padding:0!important}
 #pm-mobile-five-v236 .quick-five-title{min-height:44px;margin-bottom:4px;display:flex;justify-content:space-between;align-items:center;gap:8px}
 #pm-mobile-five-v236 [data-multi261]{min-height:44px!important;padding:8px!important;font-size:11px!important;border:1px solid #35505a!important;border-radius:8px!important;background:#132932!important;color:#d6e6eb!important}
 #pm-mobile-five-v236 .live-player-row{border-radius:9px;border-color:#2a434c;background:#10212a;padding:6px 8px}
 #pm-mobile-five-v236 .live-player-data [data-swap]{background:#c8f36b!important;color:#162612!important;border-color:#c8f36b!important;font-weight:750!important;min-width:65px}
 #pm-mobile-five-v236 .live-player-data [data-foul]{background:#162d37!important;color:#c7d9e0!important}
 #pm-mobile-five-v236 .live-player-name>strong{font-size:13px;line-height:1.3}
 #pm-mobile-five-v236 .quick-five-time{color:#cef39f}
 #pm-mobile-five-v236 .live-player-data [data-pm-clock="total"]{color:#a9bfca;font-size:18px}
 #subtab-rotacion:not(.pm-mobile-game) #rotation-live257{display:none!important}
 #subtab-rotacion:not(.pm-mobile-game):not(.pm-finalized) #pm-minutes-card,
 #subtab-rotacion:not(.pm-mobile-game):not(.pm-finalized) .foul-trouble-panel,
 #subtab-rotacion:not(.pm-mobile-game):not(.pm-finalized) .pm-pro-side,
 #subtab-rotacion:not(.pm-finalized) .pm-pro-tip{display:none!important}
 #app-shell #tab-partidos #subtab-rotacion .pm-pro-bench-card{border-radius:9px!important;border-color:#2a434c!important}
 #app-shell #tab-partidos #subtab-rotacion.pm-mobile-game #pm-ops-strip{display:grid!important;grid-template-columns:1fr 1fr;gap:8px;padding:10px}
 #app-shell #tab-partidos #subtab-rotacion.pm-mobile-game #pm-ops-strip>div{display:none!important}
 #app-shell #tab-partidos #pm-ops-strip button{min-height:48px!important;font-size:12px!important;border-radius:8px!important}
 .score-sheet261{position:fixed;inset:0;z-index:2147483100;background:#0009;display:flex;align-items:flex-end;padding:12px 12px max(12px,env(safe-area-inset-bottom));}
 .score-sheet261>section{width:100%;max-width:500px;margin:0 auto;border:1px solid #3c555e;background:#10222c;border-radius:18px;padding:18px;color:#f0f6f5;box-shadow:0 20px 80px #0006}
 .score-sheet261 header{display:flex!important;justify-content:space-between;align-items:center;background:none!important;border:0!important;padding:0!important;position:static!important}
 .score-sheet261 small{font-size:9px;letter-spacing:.1em;color:#a5beaa}.score-sheet261 h3{font-size:22px;margin:5px 0;color:#f0f6f5!important}
 .score-sheet261 button{cursor:pointer;border:1px solid #3d595d;border-radius:10px;min-height:48px;color:#f0f6f5;background:#19343f;font-family:inherit}
 .score-sheet261 [data-close]{width:48px;font-size:26px}
 .score-sheet261 .score-value261{font-size:15px;color:#c3d4db;margin:8px 0 18px}
 .score-buttons261{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
 .score-buttons261 button{min-height:82px;font-weight:750;font-size:28px;background:#c8f36b;color:#132310;border-color:#c8f36b}
 .score-buttons261 span{display:block;font-weight:500;font-size:11px;margin-top:6px}
 .score-sheet261 [data-team-foul]{width:100%;margin-top:14px;font-size:14px}
 .score-sheet261 .score-note261{font-size:11px;color:#a3bbc5;line-height:1.5;margin:14px 0 0}
 body .bench-swap-sheet261 .pm-multi-columns>section:first-child{display:block!important}
 body .bench-swap-sheet261 .pm-multi-columns>section:last-child{display:none!important}
 .bench-swap-label261{color:#c7e3a7;font-size:11px;margin-top:5px}
}
}
/* Source: css/match-screen-v262.css */
@layer compatibility{/* Keep the live court controls together; secondary panels retain their scroll. */
@media(max-width:700px){
 #app-shell #tab-partidos #subtab-rotacion.pm-mobile-court:not(.pm-finalized) .pm-pro-grid{display:none!important}
}
@media(max-width:700px) and (max-height:760px){
 #app-shell #tab-partidos #subtab-rotacion:not(.pm-finalized){padding:4px!important;padding-bottom:max(4px,env(safe-area-inset-bottom))!important}
 html body #app-shell #tab-partidos #subtab-rotacion:not(.pm-finalized) .pm-pro-toolbar{display:grid!important;grid-template-columns:1fr 1fr!important;gap:6px!important;padding:6px!important}
 #mobile-score255{width:auto!important;gap:5px!important;border-bottom:0!important;padding:0!important}
 #mobile-score255>div{gap:2px 4px!important;grid-template-columns:1fr!important;text-align:center;min-width:0;padding:0 2px 11px!important}
 #mobile-score255 strong{font-size:22px!important}
 #mobile-score255 span{font-size:10px!important}
 #mobile-score255 small{font-size:9px!important;white-space:nowrap}
 #mobile-score255 .score-hint261{font-size:8px!important}
 #app-shell #tab-partidos #subtab-rotacion .pm-pro-toolbar-actions{display:flex!important;flex-wrap:nowrap!important;gap:3px!important;justify-content:center!important;padding-top:17px!important}
 #app-shell #tab-partidos #pm-pro-clock{font-size:23px!important;padding:0!important;min-width:0!important}
 #app-shell #tab-partidos #pm-clock-btn-top{min-width:44px!important;padding:6px!important;font-size:12px!important}
 html body #app-shell #tab-partidos #subtab-rotacion #pm-mobile-tabs{padding:2px!important;margin:3px 0!important}
 #mobile-action255{padding:0 6px!important;margin:4px 0!important;min-height:44px!important}
 #mobile-action255>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 html body #app-shell #tab-partidos #pm-mobile-five-v236{margin:3px 0 0!important}
 #pm-mobile-five-v236 .quick-five-title{min-height:20px!important;margin:0 0 3px!important;font-size:12px!important}
 #pm-mobile-five-v236 [data-multi261]{display:none!important}
 #pm-mobile-five-v236 .quick-five-players{gap:4px!important}
 #pm-mobile-five-v236 .live-player-row{padding:1px 6px!important}
 #pm-mobile-five-v236 .live-player-name{margin-bottom:1px!important;gap:4px!important;line-height:16px!important}
 #pm-mobile-five-v236 .live-player-name>strong{font-size:12px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 #pm-mobile-five-v236 .live-player-name>b{font-size:12px!important;min-width:24px!important}
 #pm-mobile-five-v236 .live-player-data{gap:4px!important}
 #pm-mobile-five-v236 .live-player-data strong{font-size:18px!important}
 #pm-mobile-five-v236 .live-player-data small{font-size:8px!important}
 #pm-mobile-five-v236 .live-player-data button{min-height:44px!important;padding:4px!important;font-size:11px!important}
}
}
/* Source: css/match-tidy-v263.css */
@layer compatibility{@media(max-width:700px){
 body:has(#subtab-rotacion.active:not(.pm-finalized)) #toast{pointer-events:none!important}
 /* One live clock and one scoring entry point, shared by the three tabs. */
 #app-shell #tab-partidos #subtab-rotacion:not(.pm-finalized) #pm-match-controls :is(#pm-clock-btn,.pm-control-top>div:first-child,.pm-score-controls,button[onclick="pmOpenInitialFive()"]){display:none!important}
 #app-shell #tab-partidos #subtab-rotacion:not(.pm-finalized) :is([data-multi261],.pm-pro-enter){display:none!important}
 /* Detailed analysis belongs to the match summary, outside live operation. */
 #app-shell #tab-partidos #subtab-rotacion:not(.pm-finalized) :is(.pm-pro-side,#pm-minutes-card,#rotation-live257,.foul-trouble-panel){display:none!important}
 #app-shell #tab-partidos #subtab-rotacion:not(.pm-finalized) .pm-pro-wrap{display:flex!important;flex-direction:column!important}
 #subtab-rotacion:not(.pm-finalized) .pm-pro-toolbar{order:0}
 #subtab-rotacion:not(.pm-finalized) #mobile-action255{order:1}
 #subtab-rotacion:not(.pm-finalized) #pm-mobile-tabs{order:2}
 #subtab-rotacion:not(.pm-finalized) #pm-mobile-five-v236{order:3}
 #subtab-rotacion:not(.pm-finalized) #pm-ops-strip{order:6}
 #subtab-rotacion:not(.pm-finalized) .pm-pro-grid{order:5}
 #subtab-rotacion:not(.pm-finalized) .pm-control-top{display:block!important}
 #subtab-rotacion:not(.pm-finalized) .pm-control-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important;width:100%!important}
 #subtab-rotacion:not(.pm-finalized) .pm-control-actions button[onclick="pmNextQuarter()"]{grid-column:1/-1}
 #subtab-rotacion:not(.pm-finalized) .pm-control-actions button{min-height:44px!important}
 .match-corrections263{margin-top:12px;border:1px solid #304650;border-radius:10px;padding:0 10px;background:#10212b}
 .match-corrections263 summary{min-height:48px;align-content:center;cursor:pointer;color:#d9e6ec;font-size:13px;font-weight:650}
 .match-corrections263[open] summary{border-bottom:1px solid #304650;margin-bottom:10px}
 #app-shell #tab-partidos .match-corrections263:not([open])>*:not(summary){display:none!important}
 #app-shell #tab-partidos #subtab-rotacion.pm-mobile-game:not(.pm-finalized) #pm-ops-strip .finish{display:block!important;grid-column:1/-1;order:10;margin-top:8px}
 html body #app-shell #tab-partidos #subtab-rotacion.pm-mobile-game:not(.pm-finalized) #pm-ops-strip{display:grid!important;grid-template-columns:1fr 1fr!important;margin-top:10px!important}
 #subtab-rotacion #pm-ops-strip [data-return261]{grid-column:1/-1}
 #app-shell #tab-partidos #subtab-rotacion .pm-pro-bench-meta{color:#adc1cb!important}
}
@media(min-width:701px){.match-corrections263{display:contents}.match-corrections263>summary{display:none}.match-corrections263>*:not(summary){display:block}}
}
/* Source: css/match-flow-v270.css */
@layer compatibility{#partido-detalle-card #match-guide270{font-size:13px;color:#b8c7d2;line-height:1.5;margin:12px 0 20px}
#partido-detalle-card .match-fold270{border:1px solid #414e58;border-radius:6px;background:#1c2227;margin:12px 0;overflow:hidden}
#partido-detalle-card .match-fold270>summary{cursor:pointer;min-height:48px;padding:15px 18px;color:#e5edf3;font-size:14px;font-weight:600}
#partido-detalle-card .match-fold270>summary:focus-visible{outline:2px solid #c8e98a;outline-offset:-3px}
#partido-detalle-card .match-fold270[open]>summary{border-bottom:1px solid #414e58}
#partido-detalle-card .match-fold270:not([open])>:not(summary){display:none!important}
#partido-detalle-card .match-fold270[open]>:not(summary){margin:0!important;padding:16px!important;border:0!important}
/* Participation belongs to the report; the editable register remains available. */
#partido-resumen-inteligente .match-summary-card:has(.match-summary-players),#partido-resumen-inteligente .match-summary-actions,#partido-kpis-detalle{display:none!important}
#match-unified-report button[onclick*="imprimir"],#rotation-analysis257 [data-rx-refresh]{display:none!important}
#partido-finalizar-top-btn{display:none!important}
#partido-subtabs{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:4px!important;max-width:640px}
#partido-subtabs .subtab{min-height:44px!important;margin:0!important;text-align:center!important;white-space:normal!important}
#rotation-analysis257 .rx-tools{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px}
#rotation-analysis257 .rx-tools button{min-height:44px;border-radius:5px;background:#c8e98a;color:#1b2314;padding:10px 18px;border:0;font-weight:600}
@media(max-width:700px){#partido-detalle-card #match-guide270{font-size:12px}body:has(#subtab-rotacion.active) #match-guide270{display:none!important}#partido-detalle-card .match-fold270>summary{padding:14px 12px}#partido-detalle-card .match-fold270[open]>:not(summary){padding:10px!important}}
}
/* Source: css/match-focus-v272.css */
@layer compatibility{html body.match-focus272 #app-shell#app-shell#app-shell.product264 #tab-partidos>:not(#partido-detalle-card){display:none!important}
html body.match-focus272 #app-shell#app-shell#app-shell.product264>.app-sidebar,html body.match-focus272 #app-shell#app-shell#app-shell.product264>.app-header{display:none!important}
html body.match-focus272 #app-shell#app-shell#app-shell.product264{padding:var(--tlm-demo-h,0px) 0 0!important;min-height:100dvh!important}
html body.match-focus272 #app-shell#app-shell#app-shell.product264>main{padding:12px!important;max-width:none!important;margin:0!important}
html body.match-focus272 #partido-detalle-card{margin:0!important;border:0!important;border-top:0!important;box-shadow:none!important}
body.match-focus272 #subtab-resumen{display:none!important}
body.match-focus272 #partido-subtabs{grid-template-columns:repeat(2,minmax(0,1fr))!important;max-width:none!important}
body.match-focus272 #partido-workflow-card :is(#wf-btn-iniciar,#wf-btn-pausar,#wf-btn-finalizar){display:none!important}
body.match-focus272 .match-notes270{background:#1c2227!important}
html body.match-focus272 #app-shell #tab-partidos #partido-detalle-card{border-top:0!important}
body.match-focus272 #pm-mobile-five-v236 [data-initial]{min-height:44px;padding:10px 16px;border:1px solid #c8e98a;border-radius:5px;background:#c8e98a;color:#1b2314;font-size:13px;font-weight:600}
body.match-focus272 #partido-detalle-card>div:first-child{padding:12px!important;background:#1c2227!important;border-bottom:1px solid #414e58!important}
@media(max-width:700px){html body.match-focus272 #app-shell#app-shell#app-shell.product264>main{padding:0!important}body.match-focus272 #partido-detalle-card>div:first-child .row{gap:6px!important}body.match-focus272 #partido-detalle-card>div:first-child button{min-height:44px!important}}
@media(max-width:700px){html body.match-focus272 #app-shell #tab-partidos #pm-mobile-tabs{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:2px!important}html body.match-focus272 #app-shell #tab-partidos #pm-mobile-tabs button{display:block!important;min-width:0!important;min-height:44px!important;padding:4px 1px!important;font-size:10px!important;white-space:normal!important}html body.match-focus272 #app-shell #tab-partidos #pm-mobile-tabs .exit{display:block!important}body.match-focus272 #subtab-rotacion.active~#subtab-análisis{display:none!important}}
}
/* Source: css/design-system.css */
@layer components{:root{--ui-font:Inter,system-ui,sans-serif !important;--ui-bg:#141618 !important;--ui-surface:#1c1f22 !important;--ui-raised:#262b2f !important;--ui-border:#424b51 !important;--ui-text:#edf2f4 !important;--ui-muted:#b6bfc5 !important;--ui-action:#c8ed7b !important;--ui-selection:#303d26 !important;--ui-focus:#dfefbc !important;--ui-success:#8cceb1 !important;--ui-warning:#ebc485 !important;--ui-error:#f0a8ae !important;--ui-radius:8px !important;--ui-space-1:4px !important;--ui-space-2:8px !important;--ui-space-3:12px !important;--ui-space-4:16px !important;--ui-space-5:24px !important;--ui-control:44px !important;--ui-fast:140ms !important;--ui-panel:180ms !important;}
html body #app-shell.product264 {--surface-0:#101416 !important;--surface-1:#171d20 !important;--surface-2:#1e272b !important;--line:#354147 !important;--ink:#eff3f2 !important;--ink-muted:#aebdbf !important;--brand:#c8ef82 !important;--bg:var(--surface-0) !important;--card:var(--surface-1) !important;--border:var(--line) !important;--text:var(--ink) !important;--muted:var(--ink-muted) !important;background:var(--surface-0) !important;color:var(--ink) !important;}
html body #app-shell.product264 > main {padding:24px 28px 48px !important;box-sizing:border-box !important;max-width:none !important;background:var(--surface-0) !important;}
html body #app-shell.product264 .command-home__masthead::before, html body #app-shell.product264 .command-home__masthead::after {display:none !important;pointer-events:none !important;}
html body #app-shell.product264 .command-home__masthead {position:relative !important;overflow:visible !important;}
html body #app-shell.product264 .tab-panel .kpi-meta.good {color:rgb(156, 217, 183) !important;}
html body #app-shell.product264 .tab-panel .kpi-meta.bad {color:rgb(240, 172, 179) !important;}
html body #app-shell.product264 .command-home__shortcuts svg {stroke:rgb(181, 201, 193) !important;}
html body #app-shell.product264 .jug-avatar {background:none rgb(41, 54, 59) !important;color:rgb(220, 230, 228) !important;border:1px solid rgb(66, 84, 91) !important;border-radius:9px !important;box-shadow:none !important;}
html body #app-shell.product264 :is(.player-hero, .player-card, .profile-focus-toolbar) {background:rgb(23, 29, 32) !important;border:1px solid rgb(53, 65, 71) !important;border-radius:10px !important;box-shadow:none !important;}
html body #app-shell.product264 .player-card .pc-bg {display:none !important;}
html body #app-shell.product264 .player-card.is-selected {background:rgb(34, 47, 37) !important;border-color:rgb(165, 201, 122) !important;}
html body #app-shell.product264 .player-card .pc-nombre {font-size:15px !important;line-height:1.4 !important;}
html body #app-shell.product264 #perfiles-grid {grid-template-columns:repeat(auto-fit, minmax(250px, 1fr)) !important;gap:14px !important;}
html body #app-shell.product264 .product-roster-tabs264 button[aria-selected="true"] {background:rgb(42, 56, 39) !important;color:rgb(214, 242, 176) !important;border:1px solid rgb(83, 105, 73) !important;}
html body #app-shell.product264 .tab-panel {min-width:0px !important;max-width:1600px !important;margin:0px auto !important;padding:0px !important;background:var(--surface-0) !important;}
html body #app-shell.product264 .tab-panel :is(.fr-kpi, .salud-kpi, .isak-kpi) {background:var(--surface-1) !important;border:1px solid var(--line) !important;box-shadow:none !important;border-radius:10px !important;}
html body #app-shell.product264 .tab-panel :is(.fr-kpi, .salud-kpi, .isak-kpi)::before {display:none !important;}
html body #app-shell.product264 .tab-panel .card-title::after {display:none !important;}
html body #app-shell.product264 .product-location264 {line-height:1.4 !important;letter-spacing:0.08em !important;text-transform:uppercase !important;font-size:11px !important;color:rgb(156, 172, 175) !important;margin:0px 0px 12px !important;}
html body #app-shell.product264 .tab-panel :is(.panel-header, .fr-hero, .isak-hero, .command-home__masthead) {min-height:0px !important;padding:0px 0px 20px !important;margin:0px 0px 20px !important;background:transparent !important;border-top:0px !important;border-right:0px !important;border-left:0px !important;border-image:none !important;border-bottom:1px solid var(--line) !important;border-radius:0px !important;box-shadow:none !important;gap:16px !important;}
html body #app-shell.product264 .tab-panel :is(.panel-header, .fr-hero, .isak-hero)::before, html body #app-shell.product264 .tab-panel :is(.panel-header, .fr-hero, .isak-hero)::after {display:none !important;}
html body #app-shell.product264 .tab-panel :is(h1, h2, .fr-hero h1) {font-size:28px !important;line-height:1.15 !important;letter-spacing:-0.7px !important;font-weight:700 !important;color:var(--ink) !important;}
html body #app-shell.product264 .tab-panel :is(.panel-header, .fr-hero, .isak-hero) p {max-width:760px !important;font-size:13px !important;line-height:1.55 !important;color:var(--ink-muted) !important;}
html body #app-shell.product264 .tab-panel :is(.card, .fr-card, .isak-card, .kpi-card, .kpi, .command-home__fixture) {border:1px solid var(--line) !important;border-radius:10px !important;box-shadow:none !important;background-image:none !important;}
html body #app-shell.product264 .tab-panel :is(.card-title, h3) {font-size:16px !important;line-height:1.4 !important;letter-spacing:-0.15px !important;}
html body #app-shell.product264 .tab-panel .kpi-grid {gap:12px !important;background:none !important;margin:0px 0px 20px !important;}
html body #app-shell.product264 .tab-panel :is(.kpi-card, .kpi) {padding:16px !important;}
html body #app-shell.product264 .tab-panel :is(.kpi-card, .kpi)::before {display:none !important;}
html body #app-shell.product264 .tab-panel .kpi-value {font-variant-numeric:tabular-nums !important;font-size:27px !important;letter-spacing:-0.7px !important;}
html body #app-shell.product264 .tab-panel .kpi-label {font-size:10px !important;letter-spacing:0.07em !important;color:var(--ink-muted) !important;}
html body #app-shell.product264 .tab-panel :is(.table-wrap, .table-wrap-pro) {max-width:100% !important;overflow:auto !important;border:1px solid var(--line) !important;border-radius:8px !important;}
html body #app-shell.product264 .tab-panel table {width:100% !important;border-collapse:collapse !important;background:var(--surface-1) !important;font-size:13px !important;}
html body #app-shell.product264 .tab-panel table :is(td, th) {font-variant-numeric:tabular-nums !important;border-width:0px 0px 1px !important;border-style:none none solid !important;border-color:currentcolor currentcolor rgb(48, 59, 64) !important;border-image:none !important;padding:12px !important;vertical-align:middle !important;box-shadow:none !important;}
html body #app-shell.product264 .tab-panel table th {white-space:nowrap !important;background:var(--surface-2) !important;color:rgb(184, 200, 202) !important;font-size:12px !important;letter-spacing:0.02em !important;}
html body #app-shell.product264 .tab-panel table td {background:transparent !important;color:rgb(225, 233, 233) !important;}
html body #app-shell.product264 .tab-panel table td:first-child, html body #app-shell.product264 .tab-panel table th:first-child {text-align:left !important;}
html body #app-shell.product264 .tab-panel tbody tr:nth-child(2n) {background:rgb(26, 34, 37) !important;}
html body #app-shell.product264 .tab-panel tbody tr:hover {background:rgb(37, 49, 53) !important;}
html body #app-shell.product264 .tab-panel :is(.btn, input:not([type="checkbox"]):not([type="radio"]), select, textarea) {min-height:44px !important;font-size:14px !important;border-radius:7px !important;box-shadow:none !important;}
html body #app-shell.product264 .tab-panel .btn {padding:9px 13px !important;}
html body #app-shell.product264 .tab-panel :is(.btn-primary, .wl-primary) {background:var(--brand) !important;color:rgb(23, 32, 20) !important;border-color:var(--brand) !important;}
html body #app-shell.product264 .tab-panel :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {background:rgb(17, 23, 25) !important;color:var(--ink) !important;border-color:rgb(67, 83, 88) !important;}
html body #app-shell.product264 :is(button, a, input, select, textarea, summary):focus-visible {outline:2px solid var(--brand) !important;outline-offset:3px !important;}
.product-disclosure264 {border:1px solid rgb(53, 65, 71) !important;border-radius:8px !important;background:rgb(23, 29, 32) !important;margin:16px 0px !important;color:rgb(197, 208, 209) !important;}
.product-disclosure264 > summary {cursor:pointer !important;padding:14px 16px !important;font-size:13px !important;font-weight:600 !important;min-height:44px !important;box-sizing:border-box !important;}
.product-disclosure264:not([open]) > :not(summary) {display:none !important;}
.product-disclosure264[open] > :not(summary) {margin:0px !important;border:0px !important;}
html body #app-shell.product264 .product-roster-tabs264 {display:flex !important;gap:6px !important;border-bottom:1px solid var(--line) !important;margin-bottom:20px !important;padding-bottom:8px !important;}
.product-roster-tabs264 button {min-height:44px !important;background:transparent !important;border:1px solid transparent !important;border-radius:7px !important;color:rgb(174, 189, 191) !important;padding:10px 18px !important;cursor:pointer !important;}
.product-roster-tabs264 button[aria-selected="true"] {background:rgb(42, 56, 39) !important;color:rgb(214, 242, 176) !important;border-color:rgb(83, 105, 73) !important;}
.product-roster-panel264[hidden] {display:none !important;}
html body #app-shell.product264 .command-home {display:flex !important;flex-direction:column !important;gap:0px !important;}
html body #app-shell.product264 .command-home__shortcuts {padding:12px !important;margin-bottom:20px !important;}
html body #app-shell.product264 .command-home__shortcuts > h3 {display:none !important;}
html body #app-shell.product264 .command-home__shortcuts > div {grid-template-columns:repeat(4, 1fr) !important;gap:8px !important;}
html body #app-shell.product264 .command-home__shortcuts .btn {flex-direction:row !important;padding:10px !important;justify-content:center !important;}
html body #app-shell.product264 .command-home__priority {margin:0px 0px 20px !important;}
html body #app-shell.product264 .command-home__body {display:grid !important;grid-template-columns:minmax(0px, 2fr) minmax(220px, 1fr) !important;gap:20px !important;}
html body #app-shell.product264 .command-home__rail:empty {display:none !important;}
html body #app-shell.product264 .command-home__body:not(:has(.command-home__fixture)) {grid-template-columns:1fr !important;}
html body #app-shell.product264 .command-home__masthead .dashboard-team-button {font-weight:500 !important;}
@media  (min-width: 901px) {html body #app-shell.product264, html body #app-shell.product264.topnav-compact {--rail264:226px !important;--tlm-topnav-h:0px !important;--tlm-context-h:64px !important;padding:calc(var(--tlm-demo-h) + 64px) 0 0 var(--rail264) !important;}
html body #app-shell.product264.topnav-compact {--rail264:204px !important;}
html body #app-shell.product264 > .app-sidebar {inset:var(--tlm-demo-h) auto 0 0 !important;width:var(--rail264) !important;height:calc(100dvh - var(--tlm-demo-h)) !important;padding:0px 14px !important;display:flex !important;flex-direction:column !important;align-items:stretch !important;gap:0px !important;overflow-y:auto !important;border-right:1px solid rgb(53, 65, 71) !important;background:rgb(19, 25, 28) !important;box-sizing:border-box !important;}
html body #app-shell.product264 > .app-header {inset:var(--tlm-demo-h) 0 auto var(--rail264) !important;width:auto !important;max-width:none !important;height:64px !important;background:rgb(23, 29, 32) !important;padding:0px 28px !important;}
html body #app-shell.product264 .sidebar-brand {height:72px !important;min-height:72px !important;flex:0 0 72px !important;width:100% !important;gap:8px !important;}
html body #app-shell.product264 .app-nav {display:flex !important;flex-direction:column !important;align-items:stretch !important;height:auto !important;overflow:visible !important;gap:3px !important;flex:0 0 auto !important;padding-bottom:24px !important;}
html body #app-shell.product264 .app-nav > .nav-main {width:100% !important;min-width:0px !important;height:38px !important;min-height:38px !important;padding:0px 10px !important;flex:0 0 auto !important;gap:9px !important;border-radius:7px !important;}
html body #app-shell.product264 .app-nav .tab-label {text-align:left !important;font-size:12px !important;white-space:normal !important;}
html body #app-shell.product264 .app-nav .nav-section-label {display:block !important;padding:16px 10px 6px !important;font-size:9px !important;letter-spacing:0.1em !important;color:rgb(130, 151, 157) !important;height:auto !important;}
html body #app-shell.product264 .app-nav .dot {width:6px !important;height:6px !important;margin:0px 5px !important;border-radius:2px !important;background:rgb(119, 143, 149) !important;flex:0 0 auto !important;}
html body #app-shell.product264 .app-nav > .nav-main.active {background:rgb(43, 56, 40) !important;color:rgb(212, 238, 174) !important;}}
@media  (max-width: 900px) {html body #app-shell.product264 .tab-panel :is(.panel-header, .fr-hero, .isak-hero) :is(.row, .fr-actions) {display:flex !important;flex-wrap:wrap !important;white-space:normal !important;overflow:visible !important;width:100% !important;gap:8px !important;}
html body #app-shell.product264 .tab-panel .panel-header .row > .btn {flex:1 1 auto !important;max-width:100% !important;white-space:normal !important;height:auto !important;}
html body #app-shell.product264 > main {padding:18px 16px 32px !important;}
html body #app-shell.product264 .app-nav .nav-section-label {display:block !important;padding:14px 12px 4px !important;color:rgb(145, 164, 170) !important;font-size:10px !important;letter-spacing:0.08em !important;}
html body #app-shell.product264 .tab-panel :is(.panel-header, .fr-hero, .isak-hero, .command-home__masthead) {flex-wrap:wrap !important;gap:12px !important;}
html body #app-shell.product264 .command-home__body {grid-template-columns:1fr !important;}
html body #app-shell.product264 .tab-panel :is(.btn, input:not([type="checkbox"]):not([type="radio"]), select) {min-height:44px !important;}}
@media  (max-width: 600px) {html body #app-shell.product264 > main {padding:16px 10px 28px !important;}
html body #app-shell.product264 .tab-panel :is(h1, h2) {font-size:24px !important;}
html body #app-shell.product264 .command-home__shortcuts > div {grid-template-columns:1fr 1fr !important;}
html body #app-shell.product264 .tab-panel .kpi-grid {grid-template-columns:1fr 1fr !important;gap:8px !important;}
html body #app-shell.product264 .tab-panel .kpi-card {padding:12px !important;}
html body #app-shell.product264 .tab-panel .kpi-value {font-size:24px !important;}}
html body #app-shell.product264, body :is(.modal-back, .pm-five-overlay, .pm-multi-overlay, dialog) {--surface-0:#141618 !important;--surface-1:#1c1f22 !important;--surface-2:#25292d !important;--line:#41474d !important;--ink:#f0f2f3 !important;--ink-muted:#b8bfc5 !important;--brand:#c8e98a !important;--bg:#141618 !important;--card:#1c1f22 !important;--card-alt:#25292d !important;--input:#16191c !important;--calc:#25292d !important;--row-stripe:#22262a !important;--text:#f0f2f3 !important;--text-soft:#d2d7db !important;--muted:#b8bfc5 !important;--border:#41474d !important;--border-strong:#646d75 !important;--primary:#c8e98a !important;--accent:#c8e98a !important;--primary-soft:#303a29 !important;--primary-deep:#d9f4a6 !important;--p-text:#f0f2f3 !important;--p-muted:#b8bfc5 !important;--p-border:#41474d !important;--p-slate-soft:#25292d !important;--module-bg:#1c1f22 !important;--module-bg-2:#25292d !important;--module-text:#f0f2f3 !important;--module-muted:#b8bfc5 !important;--module-line:#41474d !important;}
html body #app-shell.product264 :is(.app-sidebar, .app-header) {background:rgb(28, 31, 34) !important;border-color:rgb(65, 71, 77) !important;}
html body #app-shell.product264 :is(.card, .fr-card, .isak-card, .player-card, .player-hero, .profile-focus-toolbar, .fr-kpi, .salud-kpi, .isak-kpi, .kpi-card, .pm-pro-side-card, .pm-match-controls, .pm-minutes-card, .live-player-row, .pm-pro-bench-card, .product-disclosure264, .match-corrections263) {background:none rgb(28, 31, 34) !important;border-color:rgb(65, 71, 77) !important;}
html body #app-shell.product264 :is(.card-title, .fr-card h3) {border-color:rgb(65, 71, 77) !important;}
html body #app-shell.product264 :is(.muted, .kpi-label, .kpi-meta, .fr-kpi-sub, .fr-kpi-label, .isak-kpi-label, .pc-dorsal, .ph-meta, .lbl) {color:rgb(184, 191, 197) !important;}
html body #app-shell.product264 :is(.btn, .btn-outline, .btn-ghost) {background:none rgb(41, 46, 51) !important;color:rgb(228, 232, 235) !important;border-color:rgb(84, 94, 102) !important;}
html body #app-shell.product264 :is(.btn-primary, .wl-primary, .match-action-primary) {background:rgb(200, 233, 138) !important;color:rgb(27, 35, 20) !important;border-color:rgb(200, 233, 138) !important;}
html body #app-shell.product264 :is(.btn-danger, .delete, .icon-delete-btn) {background:rgb(59, 40, 44) !important;color:rgb(243, 175, 183) !important;border-color:rgb(134, 84, 91) !important;}
html body #app-shell.product264 :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]), select, textarea) {background-color:rgb(22, 25, 28) !important;color:rgb(240, 242, 243) !important;border-color:rgb(100, 109, 117) !important;}
html body #app-shell.product264 :is(input, textarea)::placeholder {color:rgb(174, 183, 190) !important;}
html body #app-shell.product264 .tab-panel table {background:rgb(28, 31, 34) !important;}
html body #app-shell.product264 .tab-panel table th {background:rgb(41, 46, 51) !important;color:rgb(201, 208, 213) !important;}
html body #app-shell.product264 .tab-panel table :is(th, td) {border-color:rgb(65, 71, 77) !important;}
html body #app-shell.product264 .tab-panel tbody tr:nth-child(2n) {background:rgb(34, 38, 42) !important;}
html body #app-shell.product264 .tab-panel tbody tr:hover {background:rgb(48, 54, 59) !important;}
html body #app-shell.product264 :is(.jug-avatar, .ah-user-avatar) {background:rgb(52, 59, 65) !important;color:rgb(224, 230, 234) !important;border-color:rgb(89, 99, 109) !important;}
html body #app-shell.product264 .app-nav > .nav-main.active, html body #app-shell.product264 :is(.subtab.active, .product-roster-tabs264 button[aria-selected="true"]) {background:rgb(48, 58, 41) !important;color:rgb(211, 235, 173) !important;border-color:rgb(129, 150, 99) !important;}
html body #app-shell.product264 .player-card.is-selected {background:rgb(37, 45, 35) !important;border-color:rgb(182, 213, 132) !important;}
html body #app-shell.product264 :is(.badge-success, .pc-estado-disponible, .riesgo-ok, .kpi-meta.good) {color:rgb(159, 223, 188) !important;}
html body #app-shell.product264 :is(.badge-warning, .riesgo-warn, .pc-estado-dudas) {background:rgb(59, 50, 34) !important;color:rgb(239, 202, 139) !important;}
html body #app-shell.product264 :is(.badge-danger, .riesgo-danger, .pc-estado-lesionado) {background:rgb(59, 40, 44) !important;color:rgb(243, 175, 183) !important;}
html body #app-shell.product264 .kpi-meta.bad {color:rgb(243, 175, 183) !important;}
html body #app-shell.product264 .tab-panel .panel-header .btn-primary ~ .btn-primary {background:rgb(41, 46, 51) !important;color:rgb(228, 232, 235) !important;border-color:rgb(84, 94, 102) !important;}
html body #app-shell.product264 #subtab-rotacion {background:rgb(20, 22, 24) !important;}
html body #app-shell.product264 #subtab-rotacion :is(.pm-pro-toolbar, #pm-mobile-tabs, #mobile-action255, #pm-ops-strip) {background:rgb(28, 31, 34) !important;border-color:rgb(65, 71, 77) !important;}
html body #app-shell.product264 #pm-mobile-five-v236 .live-player-data [data-foul] {background:rgb(41, 46, 51) !important;color:rgb(228, 232, 235) !important;border-color:rgb(84, 94, 102) !important;}
html body #app-shell.product264 #pm-mobile-five-v236 .live-player-data [data-swap] {background:rgb(48, 58, 41) !important;color:rgb(211, 235, 173) !important;border-color:rgb(129, 150, 99) !important;}
html body #app-shell.product264 #pm-clock-btn-top {background:rgb(200, 233, 138) !important;color:rgb(27, 35, 20) !important;border-color:rgb(200, 233, 138) !important;}
body :is(.score-sheet261 > section, .pm-five-dialog, .pm-multi-dialog, .modal-back .modal, .modal-back .modal-content) {background:rgb(28, 31, 34) !important;color:rgb(240, 242, 243) !important;border-color:rgb(65, 71, 77) !important;}
body .score-buttons261 button {background:rgb(200, 233, 138) !important;color:rgb(27, 35, 20) !important;border-color:rgb(200, 233, 138) !important;}
#landing .v227-button, #auth .afs-submit {background:rgb(200, 233, 138) !important;color:rgb(27, 35, 20) !important;border-color:rgb(200, 233, 138) !important;}
#auth, #auth .auth-form-section {background:rgb(20, 22, 24) !important;}
#landing :is(.v227-hero, .v227-roster, .v227-final) {background-color:rgb(20, 22, 24) !important;}
html body #app-shell.product264 :is(.fr-chart, .chart-container, .wellness-chart-panel) {background:rgb(22, 25, 28) !important;border-color:rgb(65, 71, 77) !important;}
html body.demo-mode .demo-banner {background:rgb(48, 58, 41) !important;color:rgb(224, 236, 203) !important;border-bottom:1px solid rgb(100, 121, 77) !important;}
html body.demo-mode .demo-banner button {color:rgb(224, 236, 203) !important;}
#landing#landing.landing-v228 {background:rgb(20, 22, 24) !important;color:rgb(240, 242, 243) !important;font-family:Inter, system-ui, sans-serif !important;}
#landing#landing.landing-v228 .v227-wrap {max-width:1240px !important;}
#landing#landing.landing-v228 .v227-hero {padding:56px 0px 30px !important;}
#landing#landing.landing-v228 .v227-hero-grid {display:grid !important;grid-template-columns:1fr 1.15fr !important;align-items:center !important;gap:40px !important;}
#landing#landing.landing-v228 .v227-hero h1 {font-size:clamp(32px, 3.5vw, 48px) !important;font-weight:600 !important;line-height:1.13 !important;letter-spacing:-1.4px !important;}
#landing#landing.landing-v228 .v227-hero-copy > p {font-size:16px !important;line-height:1.65 !important;max-width:490px !important;margin:20px 0px !important;}
#landing#landing.landing-v228 .v227-hero-figure {width:100% !important;max-width:none !important;margin:0px !important;transform:none !important;}
#landing#landing.landing-v228 :is(.v227-hero-figure, .v227-wide-figure, .v227-roster figure) > a {border-radius:5px !important;box-shadow:none !important;border-color:rgb(73, 81, 88) !important;}
#landing#landing.landing-v228 :is(.v227-shot-label, .v227-hero-bottom) {display:none !important;}
#landing#landing.landing-v228 .v227-eyebrow {font-size:12px !important;letter-spacing:0px !important;text-transform:none !important;color:rgb(183, 193, 198) !important;font-weight:500 !important;}
#landing#landing.landing-v228 :is(.v227-intro, .v227-planning, .v227-roster, .v227-pricing, .v227-faq, .v227-final) {padding:48px 0px !important;background:rgb(20, 22, 24) !important;border-top:1px solid rgb(54, 61, 67) !important;color:rgb(240, 242, 243) !important;}
#landing#landing.landing-v228 :is(h2, .v227-section-head h2) {font-size:30px !important;line-height:1.2 !important;font-weight:600 !important;letter-spacing:-0.7px !important;}
#landing#landing.landing-v228 h3 {font-size:19px !important;font-weight:600 !important;}
#landing#landing.landing-v228 :is(p, li) {line-height:1.65 !important;}
#landing#landing.landing-v228 .v227-intro-grid {grid-template-columns:1fr 2fr !important;gap:40px !important;}
#landing#landing.landing-v228 .v227-workflow {gap:30px !important;margin-top:30px !important;}
#landing#landing.landing-v228 .v227-workflow article {background:none !important;border-radius:0px !important;box-shadow:none !important;padding:16px 0px !important;border-top:1px solid rgb(65, 71, 77) !important;}
#landing#landing.landing-v228 .v227-workflow article > span {font-size:10px !important;color:rgb(174, 187, 193) !important;}
#landing#landing.landing-v228 .v227-workflow p {font-size:14px !important;color:rgb(192, 200, 205) !important;}
#landing#landing.landing-v228 .v227-section-head {gap:28px !important;margin-bottom:26px !important;}
#landing#landing.landing-v228 .v227-section-description {font-size:15px !important;color:rgb(192, 200, 205) !important;max-width:520px !important;}
#landing#landing.landing-v228 .v227-roster-grid {grid-template-columns:1.4fr 1fr !important;gap:40px !important;}
#landing#landing.landing-v228 .v227-plans {gap:24px !important;}
#landing#landing.landing-v228 .v227-plans article {background:rgb(28, 31, 34) !important;border:1px solid rgb(65, 71, 77) !important;border-radius:5px !important;box-shadow:none !important;padding:26px !important;color:rgb(240, 242, 243) !important;}
#landing#landing.landing-v228 .v227-plans article::before, #landing#landing.landing-v228 .v227-plans article::after {display:none !important;}
#landing#landing.landing-v228 .v227-price {font-size:36px !important;letter-spacing:-1px !important;font-weight:600 !important;}
#landing#landing.landing-v228 .v227-plans :is(li, header p) {color:rgb(194, 203, 209) !important;}
#landing#landing.landing-v228 :is(.v227-button, .v227-login) {border-radius:5px !important;font-size:13px !important;font-weight:600 !important;box-shadow:none !important;}
#landing#landing.landing-v228 .v227-button.outline {background:transparent !important;color:rgb(237, 242, 244) !important;border-color:rgb(119, 133, 142) !important;}
#landing#landing.landing-v228 .v227-faq details {background:none !important;border-width:0px 0px 1px !important;border-style:none none solid !important;border-color:currentcolor currentcolor rgb(65, 71, 77) !important;border-image:none !important;border-radius:0px !important;}
#landing#landing.landing-v228 .v227-faq summary {font-size:15px !important;color:rgb(237, 242, 244) !important;font-weight:600 !important;}
#landing#landing.landing-v228 .v227-faq p {color:rgb(192, 200, 205) !important;}
html body #app-shell.product264 {font-family:Inter, system-ui, sans-serif !important;}
html body #app-shell.product264 .tab-panel :is(h1, h2, h3, .card-title, .pc-nombre, .ph-nombre) {font-weight:600 !important;letter-spacing:-0.35px !important;}
html body #app-shell.product264 .tab-panel :is(.card, .fr-card, .isak-card) {border-radius:5px !important;box-shadow:none !important;}
html body #app-shell.product264 .tab-panel :is(.card-title, .fr-card > h3) {border:0px !important;border-radius:0px !important;padding-bottom:8px !important;}
html body #app-shell.product264 .tab-panel :is(.btn, .subtab, input, select, textarea) {border-radius:5px !important;}
html body #app-shell.product264 .tab-panel .btn {font-weight:550 !important;}
html body #app-shell.product264 .tab-panel .kpi-grid {border:0px !important;border-block:1px solid rgb(65, 71, 77) !important;border-radius:0px !important;gap:0px !important;padding:0px !important;background:transparent !important;}
html body #app-shell.product264 .tab-panel .kpi-card {border-width:0px 1px 0px 0px !important;border-style:none solid none none !important;border-color:currentcolor rgb(65, 71, 77) currentcolor currentcolor !important;border-image:none !important;background:transparent !important;border-radius:0px !important;padding:18px !important;}
html body #app-shell.product264 .tab-panel .kpi-card:last-child {border-right:0px !important;}
html body #app-shell.product264 .command-home__scorestrip svg {display:none !important;}
html body #app-shell.product264 .command-home__shortcuts {background:none !important;border:0px !important;padding:0px !important;}
html body #app-shell.product264 .command-home__priority {border:0px !important;padding:0px !important;background:none !important;}
html body #app-shell.product264 .command-home__priority > div:first-child {margin-bottom:12px !important;}
html body #app-shell.product264 .tab-panel :is(.kpi-label, .fr-kpi-label, .isak-kpi-label, .lbl) {letter-spacing:0.02em !important;font-weight:500 !important;}
html body #app-shell.product264 .tab-panel :is(.kpi-value, .fr-kpi-value) {font-weight:600 !important;}
html body #app-shell.product264 .player-card {padding:14px !important;border-radius:5px !important;min-height:0px !important;}
html body #app-shell.product264 .player-card .pc-head {padding-top:22px !important;gap:10px !important;margin-bottom:12px !important;}
html body #app-shell.product264 .player-card .jug-avatar {width:36px !important;height:36px !important;min-width:36px !important;font-size:13px !important;border-radius:5px !important;}
html body #app-shell.product264 .player-card .pc-stats {padding:12px 0px !important;gap:10px !important;}
html body #app-shell.product264 .player-card .val {font-size:15px !important;font-weight:600 !important;}
html body #app-shell.product264 .app-nav .nav-section-label {padding-top:12px !important;letter-spacing:0.03em !important;}
html body #app-shell.product264 .app-nav .nav-main {font-weight:500 !important;}
body.theme-public-251 {background:rgb(20, 22, 24) !important;color:rgb(237, 242, 244) !important;font-family:Inter, system-ui, sans-serif !important;}
body.theme-public-251 .hero {background:rgb(28, 31, 34) !important;padding:0px !important;}
body.theme-public-251 .hero h1 {font-size:clamp(28px, 3vw, 42px) !important;font-weight:600 !important;letter-spacing:-0.8px !important;}
body.theme-public-251 :is(.content-section, .summary-card, .contact-card, .value-card, .toc) {background:transparent !important;box-shadow:none !important;border-radius:0px !important;border-width:0px 0px 1px !important;border-style:none none solid !important;border-color:currentcolor currentcolor rgb(65, 71, 77) !important;border-image:none !important;}
body.theme-public-251 .content-section {padding:24px 0px !important;margin:0px !important;}
body.theme-public-251 .content-section h2 {font-weight:600 !important;font-size:23px !important;}
body.theme-public-251 .cta-inner {border-radius:5px !important;box-shadow:none !important;}
body.theme-public-251 .hero-meta {border-color:rgb(129, 150, 99) !important;}
@media  (max-width: 900px) {#landing#landing.landing-v228 .v227-hero-grid {grid-template-columns:1fr !important;}
#landing#landing.landing-v228 .v227-hero-copy {max-width:650px !important;}
#landing#landing.landing-v228 .v227-hero-figure {max-width:760px !important;}
#landing#landing.landing-v228 .v227-roster-grid {grid-template-columns:1fr !important;}}
@media  (max-width: 600px) {#landing#landing.landing-v228 .v227-hero {padding-top:30px !important;}
#landing#landing.landing-v228 .v227-hero h1 {font-size:34px !important;letter-spacing:-0.9px !important;}
#landing#landing.landing-v228 :is(.v227-intro-grid, .v227-workflow) {grid-template-columns:1fr !important;gap:14px !important;}
#landing#landing.landing-v228 :is(.v227-intro, .v227-planning, .v227-roster, .v227-pricing, .v227-faq, .v227-final) {padding-block:32px !important;}
#landing#landing.landing-v228 :is(h2, .v227-section-head h2) {font-size:26px !important;}
html body #app-shell.product264 .tab-panel .kpi-card {padding:14px 10px !important;border-bottom:1px solid rgb(65, 71, 77) !important;}
html body #app-shell.product264 .tab-panel .kpi-card:nth-child(2n) {border-right:0px !important;}}
html body #auth .auth-visual {background:rgb(28, 31, 34) !important;border-right:1px solid rgb(65, 71, 77) !important;}
html body #auth .auth-visual > img {inset:120px 32px auto !important;width:calc(100% - 64px) !important;height:50% !important;object-fit:contain !important;object-position:center top !important;border-radius:5px !important;}
html body #auth .auth-visual-shade {display:none !important;}
html body #auth .auth-visual-copy h2 {font-size:30px !important;font-weight:600 !important;letter-spacing:-0.6px !important;}
html body #auth .auth-visual-copy > div {display:none !important;}
html body #auth .auth-header {border:0px !important;padding-left:0px !important;}
html body #auth .auth-header h1 {font-size:34px !important;font-weight:600 !important;letter-spacing:-0.6px !important;}
html body #auth :is(input, select, .google-auth, .afs-submit) {border-radius:5px !important;box-shadow:none !important;}
html body #auth {background:rgb(20, 22, 24) !important;}
html body #auth :is(input, select, .google-auth) {background:rgb(37, 41, 45) !important;border-color:rgb(65, 71, 77) !important;color:rgb(240, 242, 243) !important;}
html body #auth :is(.auth-header > span, .auth-visual-copy > span) {color:rgb(184, 191, 197) !important;text-transform:none !important;letter-spacing:0px !important;}
html body:not(.match-focus272) #app-shell.product264 {--surface-0:#141618 !important;--surface-1:#1c1f22 !important;--surface-2:#262b2f !important;--line:#363d43 !important;--ink:#edf2f4 !important;--ink-muted:#b6bfc5 !important;--brand:#c8ed7b !important;font-family:Inter, system-ui, sans-serif !important;}
html body:not(.match-focus272) #app-shell.product264 > main {padding:28px 32px 48px !important;}
html body:not(.match-focus272) #app-shell.product264 .product-location264 {margin:0px 0px 12px !important;font-size:11px !important;letter-spacing:0.02em !important;text-transform:none !important;color:rgb(151, 164, 173) !important;}
html body:not(.match-focus272) #app-shell.product264 .command-home__masthead {padding:0px 0px 20px !important;margin:0px 0px 20px !important;}
html body:not(.match-focus272) #app-shell.product264 .command-home__shortcuts {display:none !important;}
html body:not(.match-focus272) #app-shell.product264 .command-home__priority {padding:20px !important;background:rgb(28, 31, 34) !important;border:1px solid rgb(54, 61, 67) !important;border-radius:8px !important;margin:20px 0px !important;}
html body:not(.match-focus272) #app-shell.product264 .tab-panel :is(.card, .fr-card, .isak-card) {padding:20px !important;border-radius:8px !important;border-color:rgb(54, 61, 67) !important;}
html body:not(.match-focus272) #app-shell.product264 .tab-panel :is(h1, h2) {font-size:28px !important;line-height:1.25 !important;font-weight:600 !important;}
html body:not(.match-focus272) #app-shell.product264 .tab-panel :is(.card-title, h3) {font-size:16px !important;font-weight:600 !important;margin-bottom:10px !important;}
html body:not(.match-focus272) #app-shell.product264 .tab-panel table :is(th, td) {padding:12px 14px !important;line-height:1.4 !important;}
html body:not(.match-focus272) #app-shell.product264 .tab-panel table th {font-size:11px !important;letter-spacing:0px !important;text-transform:none !important;color:rgb(186, 197, 204) !important;background:rgb(38, 43, 47) !important;}
html body:not(.match-focus272) #app-shell.product264 .tab-panel :is(.btn, input:not([type="checkbox"]):not([type="radio"]), select, textarea) {border-radius:6px !important;font-family:inherit !important;font-size:13px !important;}
html body:not(.match-focus272) #app-shell.product264 .tab-panel .btn {min-height:40px !important;padding:9px 14px !important;line-height:1.3 !important;}
html body #app-shell :is(button, a, input, select, textarea, summary):focus-visible {outline:rgb(200, 237, 123) solid 2px !important;outline-offset:3px !important;}
html body #app-shell .app-nav .nav-main {font-size:13px !important;padding:10px 12px !important;border-radius:6px !important;margin:2px 0px !important;min-height:42px !important;color:rgb(184, 195, 203) !important;}
html body #app-shell .app-nav .nav-main[aria-current="page"] {background:rgb(43, 53, 36) !important;color:rgb(224, 239, 201) !important;box-shadow:rgb(200, 237, 123) 3px 0px inset !important;}
html body #app-shell .app-nav .nav-main:hover {background:rgb(41, 47, 51) !important;color:rgb(237, 242, 244) !important;}
html body #app-shell .app-nav .nav-section-label {font-size:10px !important;letter-spacing:0.04em !important;color:rgb(146, 159, 168) !important;padding:16px 12px 6px !important;}
.nav-search275 {margin:8px 10px 4px !important;}
.nav-search275 label {display:block !important;font:11px "Segoe UI", sans-serif !important;color:rgb(182, 191, 197) !important;margin-bottom:6px !important;}
.nav-search275 input {width:100% !important;padding:9px 10px !important;background:rgb(20, 22, 24) !important;color:rgb(237, 242, 244) !important;border:1px solid rgb(65, 71, 77) !important;border-radius:6px !important;font:12px "Segoe UI", sans-serif !important;min-height:38px !important;}
.nav-search275 p {font:11px "Segoe UI", sans-serif !important;color:rgb(182, 191, 197) !important;margin:8px 0px !important;}
.app-nav [hidden] {display:none !important;}
@media  (max-width: 900px) {html body:not(.match-focus272) #app-shell.product264 > main {padding:18px 14px 32px !important;}
html body:not(.match-focus272) #app-shell.product264 .tab-panel :is(h1, h2) {font-size:24px !important;}
html body:not(.match-focus272) #app-shell.product264 .tab-panel :is(.card, .fr-card, .isak-card, .command-home__priority) {padding:14px !important;}
html body:not(.match-focus272) #app-shell.product264 .tab-panel .btn {min-height:44px !important;}
.nav-search275 input {min-height:44px !important;}}
html body:not(.match-focus272) #app-shell.product264 .tab-panel {--module-bg:#1c1f22 !important;--module-bg-2:#262b2f !important;--module-line:#363d43 !important;--module-text:#edf2f4 !important;--card-alt:#262b2f !important;--court-paper:#1c1f22 !important;--court-line:#363d43 !important;--isak-soft:#262b2f !important;--isak-blue:#c8ed7b !important;}
html body:not(.match-focus272) #app-shell.product264 .command-home {padding:0px !important;}
html body:not(.match-focus272) #app-shell.product264 .tab-panel :is(.load-week-navigator, .load-days-only, .load-player-toolbar, .load-player-chart, .load-recent, .load-context, .load-day-summary, .acwr-distribution) {background:rgb(28, 31, 34) !important;border-color:rgb(54, 61, 67) !important;border-radius:6px !important;box-shadow:none !important;}
html body:not(.match-focus272) #app-shell.product264 .tab-panel :is(.day-chip, .load-week-arrow, .load-week-today, .subtab, .ce44-day) {background:rgb(38, 43, 47) !important;color:rgb(182, 191, 197) !important;border-color:rgb(65, 71, 77) !important;border-radius:6px !important;box-shadow:none !important;}
html body:not(.match-focus272) #app-shell.product264 .tab-panel :is(.day-chip.active, .subtab.active, .ce44-day.active, .cargas-mode-btn.active) {background:rgb(43, 53, 36) !important;color:rgb(224, 239, 201) !important;border-color:rgb(129, 150, 99) !important;box-shadow:none !important;}
html body:not(.match-focus272) #app-shell.product264 .tab-panel :is(.plc-avatar, .jug-avatar) {background:none rgb(48, 56, 62) !important;color:rgb(225, 232, 236) !important;border-radius:6px !important;border:1px solid rgb(65, 71, 77) !important;}
html body:not(.match-focus272) #app-shell.product264 .tab-panel .player-load-card {border-radius:6px !important;background:rgb(28, 31, 34) !important;}
@media  (max-width: 650px) {html body:not(.match-focus272) #app-shell.product264 .command-home__priority table {min-width:0px !important;width:100% !important;}
html body:not(.match-focus272) #app-shell.product264 .command-home__priority thead {display:none !important;}
html body:not(.match-focus272) #app-shell.product264 .command-home__priority tbody {display:block !important;}
html body:not(.match-focus272) #app-shell.product264 .command-home__priority tbody tr {display:grid !important;grid-template-columns:repeat(3, minmax(0px, 1fr)) !important;gap:6px !important;padding:12px !important;border-bottom:1px solid rgb(54, 61, 67) !important;}
html body:not(.match-focus272) #app-shell.product264 .command-home__priority table td {padding:4px !important;border:0px !important;white-space:normal !important;font-size:13px !important;}
html body:not(.match-focus272) #app-shell.product264 .command-home__priority td:first-child, html body:not(.match-focus272) #app-shell.product264 .command-home__priority td:last-child {grid-column:1 / -1 !important;}
html body:not(.match-focus272) #app-shell.product264 .command-home__priority td[data-label]:not(:first-child):not(:last-child)::before {content:attr(data-label) !important;display:block !important;color:rgb(151, 164, 173) !important;font-size:10px !important;margin-bottom:5px !important;}
html body:not(.match-focus272) #app-shell.product264 .command-home__priority td:last-child .btn {width:100% !important;}}
@media  (max-width: 650px) {html body:not(.match-focus272) #app-shell.product264 .command-home__priority table td {width:auto !important;max-width:none !important;min-width:0px !important;}
html body:not(.match-focus272) #app-shell.product264 .command-home__priority td:last-child button {width:100% !important;min-height:44px !important;white-space:nowrap !important;}}
:root{--tlm-bg:#14191d !important;--tlm-panel:#1b2228 !important;--tlm-raised:#252e36 !important;--tlm-border:#35424d !important;--tlm-text:#edf2f6 !important;--tlm-muted:#aab9c5 !important;--tlm-action:#c8e98a !important;--tlm-space-1:4px !important;--tlm-space-2:8px !important;--tlm-space-3:12px !important;--tlm-space-4:16px !important;--tlm-space-5:24px !important;--tlm-space-6:32px !important;--tlm-radius:8px !important;--tlm-success:#80cdb0 !important;--tlm-warning:#e6bc7c !important;--tlm-danger:#f0a0aa !important;--tlm-court:#80cdb0 !important;--tlm-gym:#8abfe6 !important;--tlm-mixed:#e6bc7c !important;}
html body #app-shell.tlm-ui{--surface-0:var(--tlm-bg) !important;--surface-1:var(--tlm-panel) !important;--surface-2:var(--tlm-raised) !important;--line:var(--tlm-border) !important;--ink:var(--tlm-text) !important;--ink-muted:var(--tlm-muted) !important;--module-bg:var(--tlm-panel) !important;--module-bg-2:var(--tlm-raised) !important;--module-line:var(--tlm-border) !important;--module-text:var(--tlm-text) !important;--module-muted:var(--tlm-muted) !important;font:13px/1.5 "Segoe UI",Arial,sans-serif !important;font-variant-numeric:tabular-nums !important;}
html body #app-shell.tlm-ui :is(.app-sidebar,.app-header){background:var(--tlm-panel) !important;border-color:var(--tlm-border) !important;}
html body #app-shell.tlm-ui .app-header{min-height:64px !important;padding-inline:24px !important;gap:16px !important;}
html body #app-shell.tlm-ui .header-team-select{max-width:320px !important;background:transparent !important;border:0 !important;font-weight:600 !important;}
html body #app-shell.tlm-ui .app-nav .nav-main{font-weight:500 !important;}
html body #app-shell.tlm-ui .app-nav .nav-section-label{margin-top:8px !important;padding-top:8px !important;}
html body:not(.match-focus272) #app-shell.tlm-ui>main{background:var(--tlm-bg) !important;max-width:none !important;padding:24px !important;}
html body:not(.match-focus272) #app-shell.tlm-ui .tab-panel{max-width:1480px !important;--module-bg:var(--tlm-panel) !important;--module-bg-2:var(--tlm-raised) !important;--module-line:var(--tlm-border) !important;--module-text:var(--tlm-text) !important;--module-muted:var(--tlm-muted) !important;}
html body:not(.match-focus272) #app-shell.tlm-ui :is(.panel-header,.fr-hero,.isak-hero){align-items:center !important;padding-bottom:18px !important;margin-bottom:20px !important;border-bottom:1px solid var(--tlm-border) !important;}
html body:not(.match-focus272) #app-shell.tlm-ui .tab-panel :is(.card,.fr-card,.isak-card,.player-card,.player-hero,.profile-focus-toolbar,.command-home__priority,.command-home__fixture,.product-disclosure264){background:var(--tlm-panel) !important;border:1px solid var(--tlm-border) !important;border-radius:var(--tlm-radius) !important;box-shadow:none !important;}
html body:not(.match-focus272) #app-shell.tlm-ui .tab-panel :is(h1,h2){font-size:26px !important;font-weight:600 !important;letter-spacing:-.5px !important;}
html body:not(.match-focus272) #app-shell.tlm-ui .tab-panel h3{font-size:15px !important;font-weight:600 !important;letter-spacing:0 !important;}
html body:not(.match-focus272) #app-shell.tlm-ui .tab-panel :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]),select,textarea){background:#141b21 !important;border:1px solid #566875 !important;color:var(--tlm-text) !important;min-height:40px !important;line-height:1.4 !important;box-shadow:none !important;}
html body:not(.match-focus272) #app-shell.tlm-ui .tab-panel .subtabs{padding:4px !important;background:var(--tlm-panel) !important;border:1px solid var(--tlm-border) !important;border-radius:8px !important;gap:4px !important;flex-wrap:wrap !important;}
html body:not(.match-focus272) #app-shell.tlm-ui .tab-panel .subtab{padding:9px 14px !important;background:transparent !important;border:0 !important;color:var(--tlm-muted) !important;border-radius:5px !important;min-height:38px !important;}
html body:not(.match-focus272) #app-shell.tlm-ui .tab-panel .subtab.active{background:#303c2b !important;color:#dceec4 !important;box-shadow:none !important;border:0 !important;}
html body #app-shell.tlm-ui .tlm-table-region{max-width:100% !important;overflow:auto !important;scrollbar-width:thin !important;scrollbar-color:#566875 transparent !important;}
html body #app-shell.tlm-ui .tab-panel table{background:var(--tlm-panel) !important;line-height:1.45 !important;font-size:12px !important;}
html body #app-shell.tlm-ui .tab-panel table th{background:var(--tlm-raised) !important;color:var(--tlm-muted) !important;font-size:11px !important;letter-spacing:0 !important;}
html body #app-shell.tlm-ui .tab-panel table :is(th,td){border-color:var(--tlm-border) !important;padding:11px 12px !important;}
html body #app-shell.tlm-ui .tab-panel tbody tr:nth-child(even){background:#202a32 !important;}
html body #app-shell.tlm-ui .tab-panel tbody tr:hover{background:#283640 !important;}
html body #app-shell.tlm-ui .command-home__body{gap:20px !important;grid-template-columns:minmax(0,2fr) minmax(250px,1fr) !important;}
html body #app-shell.tlm-ui .command-home__scorestrip{background:var(--tlm-panel) !important;border-radius:8px !important;padding:4px !important;margin-bottom:20px !important;}
html body #app-shell.tlm-ui .command-home__fixture p{color:var(--tlm-muted) !important;}
html body #app-shell.tlm-ui #tab-planificación :is(.pv38-view,.pv38-day,.pv38-month-mini,.pv38-week-card,.plan-v38-tabs){background:var(--tlm-panel) !important;border-color:var(--tlm-border) !important;border-radius:8px !important;box-shadow:none !important;}
html body #app-shell.tlm-ui #tab-planificación .pv38-view{padding:18px !important;}
html body #app-shell.tlm-ui #tab-planificación .pv38-head h3{font-size:22px !important;}
html body #app-shell.tlm-ui #tab-planificación .pv38-kpis{gap:0 !important;border-block:1px solid var(--tlm-border) !important;}
html body #app-shell.tlm-ui #tab-planificación .pv38-kpis>div{background:transparent !important;border:0 !important;border-right:1px solid var(--tlm-border) !important;border-radius:0 !important;padding:12px !important;}
html body #app-shell.tlm-ui #tab-planificación .pv38-kpis b{font-size:20px !important;}
html body #app-shell.tlm-ui #tab-planificación .pv38-grid{gap:6px !important;}
html body #app-shell.tlm-ui #tab-planificación .pv38-day{padding:9px !important;border-top:3px solid var(--day-accent,var(--tlm-border)) !important;}
html body #app-shell.tlm-ui #tab-planificación :is(.pv38-btn,.pv38-day select,.pv38-int){background:#141b21 !important;color:var(--tlm-text) !important;border-color:#566875 !important;border-radius:5px !important;}
html body #app-shell.tlm-ui #tab-planificación .pv38-int.active{background:var(--intensity-color,#303c2b) !important;border-color:var(--intensity-color,#819663) !important;color:#10191d !important;}
html body #app-shell.tlm-ui :is(.load-week-navigator,.load-days-only,.load-day-summary,.load-player-toolbar,.load-player-chart,.load-context,.load-recent,.ce44-method-note,.ce44-filters,.ce44-summary,.wl-card,.wl-toolbar,.salud-leyenda,.availability-row,.isak-filters,.somato-toolbar,.somato-kpis article,.somato-inspector,.somato-note,.somato-compare){background:var(--tlm-panel) !important;border-color:var(--tlm-border) !important;border-radius:8px !important;box-shadow:none !important;}
html body #app-shell.tlm-ui :is(.fr-kpi,.isak-kpi,.salud-kpi,.load-player-summary article,.ce44-metrics>div){background:var(--tlm-raised) !important;border-color:var(--tlm-border) !important;border-radius:6px !important;}
html body #app-shell.tlm-ui .player-load-card{padding:14px !important;border-radius:8px !important;background:var(--tlm-panel) !important;}
html body #app-shell.tlm-ui #wellness-links-panel{border-top:2px solid #819663 !important;padding:16px !important;background:var(--tlm-panel) !important;}
html body #app-shell.tlm-ui :is(.product-disclosure264 summary,.match-notes270 summary){padding:14px 16px !important;color:var(--tlm-text) !important;font-size:13px !important;}
body .modal-back{background:rgba(8,13,18,.8) !important;backdrop-filter:blur(3px) !important;}
body .modal-back .modal{background:var(--tlm-panel) !important;color:var(--tlm-text) !important;border:1px solid var(--tlm-border) !important;border-radius:12px !important;padding:24px !important;max-height:calc(100dvh - 40px) !important;overflow:auto !important;font:13px/1.5 "Segoe UI",Arial,sans-serif !important;}
body .modal-back .modal h3{font-size:20px !important;font-weight:600 !important;color:var(--tlm-text) !important;}
body .modal-back .modal :is(input:not([type=checkbox]):not([type=radio]),select,textarea){background:#141b21 !important;color:var(--tlm-text) !important;border:1px solid #566875 !important;min-height:40px !important;border-radius:6px !important;}
body .modal-back .modal label{color:var(--tlm-muted) !important;font-size:12px !important;text-transform:none !important;letter-spacing:0 !important;}
body .modal-back .modal :is(.btn,.btn-outline){border-radius:6px !important;min-height:40px !important;font-size:13px !important;}
body .modal-back .modal .btn-primary{background:var(--tlm-action) !important;color:#192314 !important;border-color:var(--tlm-action) !important;}
body .modal-back .modal :is(input,select,textarea,button):focus-visible{outline:2px solid var(--tlm-action) !important;outline-offset:2px !important;}
@media (max-width:1000px){html body #app-shell.tlm-ui .command-home__body{grid-template-columns:1fr !important;}}
@media (max-width:650px){html body:not(.match-focus272) #app-shell.tlm-ui>main{padding:16px 12px 28px !important;}
html body #app-shell.tlm-ui .app-header{padding-inline:12px !important;}
html body #app-shell.tlm-ui .tab-panel :is(h1,h2){font-size:23px !important;}
html body #app-shell.tlm-ui .tab-panel .btn{min-height:44px !important;}
body .modal-back .modal{padding:16px !important;max-height:calc(100dvh - 16px) !important;max-width:calc(100vw - 16px) !important;}
html body #app-shell.tlm-ui #tab-planificación .pv38-grid{grid-template-columns:1fr !important;}}
#landing#landing .tlm-public-features{padding:48px 0 !important;background:#14191d !important;border-top:1px solid #35424d !important;}
#landing#landing .tlm-public-feature{display:grid !important;grid-template-columns:1fr 1.4fr !important;gap:40px !important;align-items:center !important;padding:24px 0 40px !important;}
#landing#landing .tlm-public-feature+.tlm-public-feature{border-top:1px solid #35424d !important;padding-top:40px !important;}
#landing#landing .tlm-public-feature h2{font-size:30px !important;line-height:1.2 !important;font-weight:600 !important;letter-spacing:-.6px !important;margin:14px 0 20px !important;}
#landing#landing .tlm-public-feature p,#landing#landing .tlm-public-feature li{color:#b8c5ce !important;font-size:15px !important;line-height:1.65 !important;}
#landing#landing .tlm-public-feature ul{padding-left:20px !important;margin:20px 0 !important;}
#landing#landing .tlm-public-feature figure{margin:0 !important;}
#landing#landing .tlm-public-feature img{width:100% !important;height:auto !important;display:block !important;border:1px solid #41474d !important;border-radius:8px !important;}
#landing#landing .tlm-public-feature figcaption{font-size:11px !important;color:#aab9c5 !important;margin-top:10px !important;}
#landing#landing .tlm-public-feature.live{grid-template-columns:1fr 1fr !important;}
#landing#landing .tlm-public-feature.live figure{max-width:285px !important;margin:auto !important;}
#landing#landing.landing-v228{background:#14191d !important;}
#landing#landing.landing-v228 :is(.v227-intro,.v227-planning,.v227-roster,.v227-pricing,.v227-faq,.v227-final){background:#14191d !important;}
#landing#landing .v227-plans article{border-top:3px solid #566875 !important;}
#landing#landing .v227-plans article:last-child{border-top-color:#c8e98a !important;}
#landing#landing .v227-plans li{font-size:14px !important;}
#landing#landing .v227-hero h1{font-size:clamp(32px,3.4vw,46px) !important;}
#landing#landing .v227-hero-copy>p{font-size:16px !important;line-height:1.6 !important;}
@media (max-width:800px){#landing#landing .tlm-public-feature,#landing#landing .tlm-public-feature.live{grid-template-columns:1fr !important;gap:24px !important;}
#landing#landing .tlm-public-feature.live>figure{order:2 !important;}
#landing#landing .tlm-public-feature h2{font-size:27px !important;}
#landing#landing .tlm-public-feature.live figure{max-width:250px !important;}}
html body #app-shell.tlm-ui #tab-suscripcion :is(.pricing-card,.pricing-card.featured,.pricing-comparison){background:var(--tlm-panel) !important;background-image:none !important;border:1px solid var(--tlm-border) !important;border-radius:8px !important;box-shadow:none !important;color:var(--tlm-text) !important;}
html body #app-shell.tlm-ui #tab-suscripcion .pricing-card.featured{border-top:3px solid var(--tlm-action) !important;}
html body #app-shell.tlm-ui #tab-suscripcion .pricing-price{color:var(--tlm-text) !important;font:600 32px/1.3 "Segoe UI",Arial,sans-serif !important;margin:24px 0 !important;}
html body #app-shell.tlm-ui #tab-suscripcion :is(.pricing-price span,.pricing-desc){color:var(--tlm-muted) !important;}
html body #app-shell.tlm-ui .tab-panel :is(.kpi-card,.isak-kpi,.fr-kpi,.salud-kpi,.wl-kpi,.load-kpi){background:var(--tlm-panel) !important;background-image:none !important;border-color:var(--tlm-border) !important;border-radius:8px !important;box-shadow:none !important;}
html body #app-shell.tlm-ui :is(.ce44-quick-presets button,.ce44-copy-btn,.ce44-week-head,.ce44-day-head){background:var(--tlm-raised) !important;color:var(--tlm-text) !important;border-color:var(--tlm-border) !important;box-shadow:none !important;}
html body #app-shell.tlm-ui #tab-planificación .pv38-empty{background:transparent !important;color:var(--tlm-muted) !important;}
body .modal-back .modal :is(input,select,textarea){min-width:0 !important;box-sizing:border-box !important;max-width:100% !important;}
body .modal-back .modal p{overflow-wrap:break-word !important;}
body .modal-back .modal .modal-footer{background:var(--tlm-panel) !important;border-color:var(--tlm-border) !important;}
@media (max-width:650px){body #modal-isak .modal div[style*="grid-template-columns"]{grid-template-columns:repeat(2,minmax(0,1fr)) !important;gap:10px !important;}}
html body #app-shell.tlm-ui .tab-panel .kpi{background:var(--tlm-panel) !important;border-color:var(--tlm-border) !important;border-radius:8px !important;box-shadow:none !important;}
html body #app-shell.tlm-ui #tab-suscripcion .pricing-card.recommended{border-top:3px solid var(--tlm-action) !important;}
html body #app-shell.tlm-ui #tab-suscripcion .pricing-card.recommended::before{background:#303c2b !important;color:#dceec4 !important;border-color:#819663 !important;box-shadow:none !important;}
body .modal-back .modal :is(.modal-header,.modal-head){background:var(--tlm-panel) !important;border-color:var(--tlm-border) !important;}
body.theme-public-251{--ink:#edf2f6 !important;--navy:#1b2228 !important;--blue:#c8e98a !important;--orange:#c8e98a !important;--muted:#aab9c5 !important;--line:#35424d !important;--paper:#1b2228 !important;--wash:#14191d !important;--soft:#252e36 !important;background:#14191d !important;color:#edf2f6 !important;}
body.theme-public-251 :is(.public-header,.hero,.cta-inner,.form-head,.content-section,.contact-card,.summary-card,.value-card,.toc,.state-card,.questionnaire){background:#1b2228 !important;border-color:#35424d !important;box-shadow:none !important;}
body.theme-public-251 :is(.score-preview,.score-result,.callout,.metric-strip>div,.summary-grid>div,.values-grid>div){background:#252e36 !important;border-color:#35424d !important;}
body.theme-public-251 :is(input:not([type=radio]):not([type=checkbox]),textarea,select,.scale label,.btn.secondary,.language){background:#202930 !important;color:#edf2f6 !important;border-color:#455460 !important;}
body.theme-public-251 :is(.nav-actions .primary,.btn.primary,.btn-primary),body.theme-public-251 .scale input:checked+label{background:#c8e98a !important;color:#172117 !important;border-color:#c8e98a !important;}
#modal-isak .isak-measurement-context{display:grid !important;grid-template-columns:1.4fr 1fr .8fr .8fr !important;gap:12px !important;margin:16px 0 !important;padding:16px !important;background:var(--tlm-raised) !important;border:1px solid var(--tlm-border) !important;border-radius:8px !important;}
#modal-isak .isak-measurement-group{padding:16px !important;margin-bottom:16px !important;border:1px solid var(--tlm-border) !important;border-left:3px solid #667887 !important;border-radius:8px !important;background:var(--tlm-panel) !important;}
#modal-isak .isak-method-badge{margin-left:auto !important;background:var(--tlm-raised) !important;color:var(--tlm-muted) !important;font-size:10px !important;padding:4px 8px !important;border:1px solid var(--tlm-border) !important;border-radius:4px !important;font-weight:600 !important;}
#modal-isak .isak-measurement-group svg{color:var(--tlm-muted) !important;}
@media (max-width:650px){#modal-isak .isak-measurement-context{grid-template-columns:repeat(2,minmax(0,1fr)) !important;padding:12px !important;gap:10px !important;}
#modal-isak .isak-measurement-group{padding:12px !important;}}
#app-shell .tlm-chart-data{grid-column:1/-1 !important;min-width:0 !important;margin:12px 0 0 !important;border-top:1px solid var(--tlm-border) !important;font-size:12px !important;background:var(--tlm-panel) !important;}
#app-shell .tlm-chart-data summary{padding:10px 0 !important;cursor:pointer !important;color:var(--tlm-muted) !important;list-style-position:inside !important;font-weight:600 !important;min-height:40px !important;box-sizing:border-box !important;}
#app-shell .tlm-chart-data summary:hover{color:var(--tlm-text) !important;}
#app-shell .tlm-chart-data p{color:var(--tlm-muted) !important;font-size:11px !important;margin:0 0 10px !important;line-height:1.5 !important;}
#app-shell .tlm-chart-values{max-height:360px !important;max-width:100% !important;overflow:auto !important;border:1px solid var(--tlm-border) !important;border-radius:6px !important;scrollbar-width:thin !important;}
#app-shell .tlm-chart-values table{width:100% !important;min-width:380px !important;border-collapse:collapse !important;font-variant-numeric:tabular-nums !important;}
#app-shell .tlm-chart-values caption{text-align:left !important;padding:12px !important;color:var(--tlm-text) !important;font-size:12px !important;font-weight:600 !important;}
#app-shell .tlm-chart-values th{position:sticky !important;top:0 !important;z-index:1 !important;text-align:left !important;background:var(--tlm-raised) !important;}
#app-shell .tlm-chart-values td:last-child{text-align:right !important;white-space:nowrap !important;}
#app-shell .tlm-chart-data :is(summary,.tlm-chart-values):focus-visible{outline:2px solid var(--tlm-action) !important;outline-offset:2px !important;}
html body #app-shell.tlm-ui #tab-planificación .pv38-day.has-plan{background:color-mix(in srgb,var(--intensity-color) 16%,var(--tlm-panel,#1b2228)) !important;border-top-color:var(--intensity-color) !important;}
html body #app-shell.tlm-ui #tab-planificación .pv38-intensity>div{display:grid !important;grid-template-columns:repeat(5,minmax(0,1fr)) !important;gap:4px !important;}
html body #app-shell.tlm-ui #tab-planificación .pv38-int{min-width:0 !important;min-height:30px !important;padding:3px !important;}
html body #app-shell.tlm-ui #tab-planificación .pv38-type i{background:var(--type-color) !important;}
html body #app-shell .home280{display:flex !important;flex-direction:column !important;gap:22px !important;padding:0 !important;max-width:1440px !important;margin:0 auto !important;}
html body #app-shell .home280 .command-home__masthead{display:flex !important;justify-content:space-between !important;align-items:center !important;gap:20px !important;padding:0 0 22px !important;margin:0 !important;min-height:0 !important;}
html body #app-shell .home280 h2{font-size:30px !important;letter-spacing:-.7px !important;line-height:1.2 !important;}
html body #app-shell .home280 h3{font-size:17px !important;letter-spacing:-.2px !important;}
.home280-team{margin:10px 0 0 !important;color:#c8e98a !important;font-size:14px !important;font-weight:600 !important;}
.home280-team span{display:block !important;color:#aab9c5 !important;font-size:12px !important;font-weight:400 !important;margin-top:5px !important;}
.home280-unit{font-size:13px !important;color:#aab9c5 !important;font-weight:500 !important;}
html body #app-shell .home280 .command-home__scorestrip{display:grid !important;grid-template-columns:repeat(4,minmax(0,1fr)) !important;gap:12px !important;background:none !important;padding:0 !important;border:0 !important;margin:0 !important;}
html body #app-shell .home280 .kpi-card{padding:20px !important;background:#1b2228 !important;border:1px solid #35424d !important;border-radius:10px !important;min-width:0 !important;position:relative !important;}
html body #app-shell .home280 .kpi-label{font-size:11px !important;font-weight:600 !important;letter-spacing:.05em !important;color:#aab9c5 !important;}
html body #app-shell .home280 .kpi-value{font-size:32px !important;line-height:1.2 !important;margin:14px 0 8px !important;color:#edf2f6 !important;}
html body #app-shell .home280 .kpi-meta{font-size:12px !important;line-height:1.5 !important;}
html body #app-shell .home280 .command-home__scorestrip svg{display:block !important;width:20px !important;height:20px !important;color:#aab9c5 !important;opacity:.8 !important;}
html body #app-shell .home280 .command-home__priority{margin:0 !important;padding:20px !important;background:#1b2228 !important;border:1px solid #35424d !important;border-radius:10px !important;}
html body #app-shell .home280 .command-home__priority>div:first-child{gap:16px !important;align-items:center !important;margin-bottom:16px !important;}
html body #app-shell .home280 .command-home__body{display:grid !important;grid-template-columns:minmax(0,1fr) 290px !important;gap:22px !important;margin:0 !important;align-items:start !important;}
html body #app-shell .home280 .command-home__load{margin:0 !important;padding:20px !important;gap:18px !important;min-width:0 !important;background:#1b2228 !important;border:1px solid #35424d !important;border-radius:10px !important;}
html body #app-shell .home280 .command-home__rail{display:grid !important;gap:16px !important;min-width:0 !important;margin:0 !important;}
html body #app-shell .home280 .command-home__shortcuts{display:block !important;padding:18px !important;margin:0 !important;border:1px solid #35424d !important;background:#1b2228 !important;border-radius:10px !important;}
html body #app-shell .home280 .command-home__shortcuts>h3{display:block !important;margin:0 0 14px !important;font-size:12px !important;}
html body #app-shell .home280 .command-home__shortcuts>div{display:grid !important;grid-template-columns:1fr !important;gap:8px !important;}
html body #app-shell .home280 .command-home__shortcuts .btn{justify-content:flex-start !important;flex-direction:row !important;padding:12px !important;gap:12px !important;min-height:44px !important;}
html body #app-shell .home280 .command-home__fixture{padding:18px !important;margin:0 !important;background:#1b2228 !important;border:1px solid #35424d !important;border-radius:10px !important;}
@media (max-width:1050px){html body #app-shell .home280 .command-home__body{grid-template-columns:1fr !important;}
html body #app-shell .home280 .command-home__shortcuts>div{grid-template-columns:repeat(2,minmax(0,1fr)) !important;}}
@media (max-width:600px){html body #app-shell .home280{gap:16px !important;}
html body #app-shell .home280 .command-home__masthead{align-items:flex-start !important;flex-direction:column !important;}
html body #app-shell .home280 h2{font-size:25px !important;}
html body #app-shell .home280 .command-home__scorestrip{grid-template-columns:repeat(2,minmax(0,1fr)) !important;gap:8px !important;}
html body #app-shell .home280 .kpi-card{padding:14px !important;}
html body #app-shell .home280 .kpi-value{font-size:26px !important;}
html body #app-shell .home280 .command-home__priority>div:first-child{align-items:flex-start !important;flex-direction:column !important;}
html body #app-shell .home280 .command-home__load>div:first-child{flex-wrap:wrap !important;gap:12px !important;}
html body #app-shell .home280 .home280-chart{height:260px !important;}}
html body #app-shell .home280 .command-home__body{padding:0 !important;min-height:0 !important;}
html body #app-shell .home280 .command-home__load{width:100% !important;box-sizing:border-box !important;}
html body #app-shell .home280 .command-home__load{grid-area:1 / 1 !important;align-self:start !important;}
html body #app-shell .home280 .command-home__rail{grid-area:1 / 2 !important;align-self:start !important;}
@media (max-width:1050px){html body #app-shell .home280 .command-home__load{grid-area:1 / 1 !important;}
html body #app-shell .home280 .command-home__rail{grid-area:2 / 1 !important;}}
html body #app-shell #partidos-kpis .value{font-size:clamp(20px,2vw,28px) !important;white-space:normal !important;overflow-wrap:anywhere !important;}
html body #app-shell #subtab-rotacion:not(.pm-finalized) .pm-pro-toolbar{background:#1b2228 !important;border:1px solid #35424d !important;border-radius:10px !important;box-shadow:none !important;}
html body #app-shell #subtab-rotacion .pm-pro-name{font-weight:650 !important;font-size:15px !important;}
html body #app-shell #subtab-rotacion :is(.pm-pro-card,.pm-pro-bench-card){background:#1b2228 !important;border:1px solid #35424d !important;border-radius:8px !important;box-shadow:none !important;}
html body #app-shell #subtab-rotacion .pm-pro-bench-card{cursor:pointer !important;}
html body #app-shell #subtab-rotacion .pm-pro-bench-card:hover{border-color:#c8e98a !important;}
html body #app-shell #subtab-rotacion :is(.pm-pro-court,.pm-pro-grid){background:transparent !important;box-shadow:none !important;}
@media (max-width:700px){html body #app-shell #subtab-rotacion #pm-mobile-tabs{background:#14191d !important;border:1px solid #35424d !important;border-radius:8px !important;gap:4px !important;}
html body #app-shell #subtab-rotacion #pm-mobile-tabs button{border-radius:5px !important;font-size:12px !important;}
html body #app-shell #subtab-rotacion #pm-mobile-tabs button.active{background:#c8e98a !important;color:#14191d !important;}
html body #app-shell #subtab-rotacion .live-player-row{background:#1b2228 !important;border:1px solid #35424d !important;border-radius:7px !important;box-shadow:none !important;}
html body #app-shell #subtab-rotacion .live-player-name b{background:#252e36 !important;color:#edf2f6 !important;border-radius:4px !important;}
html body #app-shell #subtab-rotacion .live-player-name strong{font-size:13px !important;color:#edf2f6 !important;}
html body #app-shell #subtab-rotacion .live-player-data small{font-size:9px !important;letter-spacing:.04em !important;color:#aab9c5 !important;}
html body #app-shell #subtab-rotacion .quick-five-time{color:#c8e98a !important;font-variant-numeric:tabular-nums !important;}
html body #app-shell #subtab-rotacion .live-player-data [data-swap]{background:#c8e98a !important;color:#14191d !important;border-color:#c8e98a !important;border-radius:5px !important;font-weight:650 !important;}
html body #app-shell #subtab-rotacion .live-player-data [data-foul]{background:#252e36 !important;color:#edf2f6 !important;border-color:#566875 !important;border-radius:5px !important;}
html body #app-shell #subtab-rotacion .pm-pro-bench-name{font-size:14px !important;color:#edf2f6 !important;}
html body #app-shell #subtab-rotacion .bench-swap-label261{color:#c8e98a !important;}}
body :is(.pm-five-overlay,.pm-multi-overlay,.score-sheet261)>section{background:#1b2228 !important;color:#edf2f6 !important;border:1px solid #35424d !important;box-shadow:0 14px 50px #0008 !important;border-radius:12px !important;}
body :is(.pm-five-player,.pm-multi-player){background:#252e36 !important;color:#edf2f6 !important;border-color:#566875 !important;border-radius:7px !important;min-height:48px !important;}
body :is(.pm-five-player,.pm-multi-player).selected{background:#303c2b !important;border:2px solid #c8e98a !important;color:#edf2f6 !important;}
body :is(.pm-five-overlay,.pm-multi-overlay) [data-confirm]{background:#c8e98a !important;color:#14191d !important;border-color:#c8e98a !important;min-height:44px !important;}
body .score-buttons261 button{background:#252e36 !important;color:#edf2f6 !important;border:1px solid #566875 !important;border-radius:7px !important;min-height:70px !important;}
body .score-buttons261 button:hover{border-color:#c8e98a !important;background:#303c2b !important;}
@media (max-width:700px){html body #app-shell #subtab-rotacion:not(.pm-finalized) #pm-mobile-tabs [data-report272]{display:none !important;}
html body #app-shell #subtab-rotacion #pm-mobile-tabs{grid-template-columns:repeat(4,minmax(0,1fr)) !important;}}
#tab-salud .tone-optimo,#tab-salud .salud-dot-verde{--health-signal:#10b981 !important;}
#tab-salud .tone-alerta,#tab-salud .salud-dot-ambar{--health-signal:#f59e0b !important;}
#tab-salud .tone-critico,#tab-salud .salud-dot-rojo{--health-signal:#ef4444 !important;}
#tab-salud .tone-subcarga,#tab-salud .salud-dot-azul{--health-signal:#3b82f6 !important;}
#tab-salud .tone-lesionado,#tab-salud .salud-dot-negro{--health-signal:#aab9c5 !important;}
#tab-salud .tone-sin_datos,#tab-salud .salud-dot-gris{--health-signal:#7d8a94 !important;}
html body #app-shell #tab-salud .availability-row{border-left:4px solid var(--health-signal,#7d8a94) !important;}
html body #app-shell #tab-salud .availability-state>b{display:inline-flex !important;align-items:center !important;gap:7px !important;font-size:12px !important;padding:6px 9px !important;color:#edf2f6 !important;background:color-mix(in srgb,var(--health-signal) 18%,#1b2228) !important;border:1px solid color-mix(in srgb,var(--health-signal) 55%,#35424d) !important;border-radius:5px !important;}
#tab-salud .availability-state>b:before{content:"" !important;width:8px !important;height:8px !important;flex:none !important;border-radius:50% !important;background:var(--health-signal) !important;}
html body #app-shell #tab-salud .salud-dot{background:var(--health-signal) !important;box-shadow:none !important;animation:none !important;}
.micro283-reference{display:flex !important;align-items:center !important;gap:12px !important;flex-wrap:wrap !important;padding:16px !important;background:#1b2228 !important;border:1px solid #35424d !important;border-radius:8px !important;margin:16px 0 !important;}
.micro283-reference label{font-weight:600 !important;}
.micro283-reference span{font-size:12px !important;color:#aab9c5 !important;}
.micro283-reason{padding:12px 0 !important;border-top:1px solid #35424d !important;}
.micro283-reason strong{font-size:13px !important;color:#c8e98a !important;}
.micro283-reason p{font-size:12px !important;line-height:1.5 !important;color:#aab9c5 !important;margin:7px 0 !important;}
html body #app-shell .micro283 .p26-days{display:grid !important;grid-template-columns:repeat(3,minmax(0,1fr)) !important;gap:14px !important;overflow:visible !important;}
html body #app-shell .micro283 .p26-day{min-width:0 !important;background:#1b2228 !important;border:1px solid #35424d !important;border-radius:8px !important;}
html body #app-shell .micro283 :is(.p26-date,.p50-work-title){font-size:15px !important;}
html body #app-shell .micro283 :is(.p26-plan,.p50-main-line,.p50-sub-line,.p50-c-row,.p50-special-copy){font-size:12px !important;line-height:1.5 !important;}
html body #app-shell .micro283 .p26-context{grid-template-columns:repeat(5,minmax(0,1fr)) !important;}
@media (max-width:1000px){html body #app-shell .micro283 .p26-days{grid-template-columns:repeat(2,minmax(0,1fr)) !important;}
html body #app-shell .micro283 .p26-context{grid-template-columns:repeat(2,minmax(0,1fr)) !important;}}
@media (max-width:600px){html body #app-shell .micro283 .p26-days{grid-template-columns:1fr !important;}
.micro283-reference{align-items:flex-start !important;flex-direction:column !important;}}
.micro283-field{display:block !important;font-size:12px !important;font-weight:600 !important;margin:10px 0 !important;}
.micro283-field select{display:block !important;width:100% !important;max-width:100% !important;margin-top:6px !important;min-height:40px !important;}
.micro283-method{padding:16px !important;margin-top:16px !important;border:1px solid #35424d !important;border-radius:8px !important;font-size:12px !important;line-height:1.6 !important;color:#aab9c5 !important;}
.micro283-method summary{cursor:pointer !important;color:#edf2f6 !important;font-weight:600 !important;}
html body #app-shell .micro283 .p50-work-head{background:#252e36 !important;color:#edf2f6 !important;border-color:#35424d !important;}
html body #app-shell .micro283 .p26-context{grid-template-columns:repeat(3,minmax(0,1fr)) !important;}
html body #app-shell .micro283 .p26-btn{min-height:42px !important;padding:10px 14px !important;font-size:12px !important;border-radius:6px !important;background:#252e36 !important;border:1px solid #566875 !important;color:#edf2f6 !important;}
html body #app-shell .micro283 .p26-btn.primary{background:#c8e98a !important;color:#14191d !important;border-color:#c8e98a !important;}
@media (max-width:700px){html body #app-shell .micro283 .p26-context{grid-template-columns:repeat(2,minmax(0,1fr)) !important;}}
#app-shell .header-team-switcher.is-empty .header-team-empty-cta{align-items:center !important;gap:10px !important;padding:0 14px !important;min-height:42px !important;border:1px solid #495158 !important;border-radius:6px !important;background:#242c32 !important;color:#f0f2f3 !important;box-shadow:none !important;text-align:left !important;}
#app-shell .header-team-switcher.is-empty .header-team-empty-cta strong{color:#f0f2f3 !important;font-size:13px !important;font-weight:600 !important;line-height:1.3 !important;}
#app-shell .header-team-empty-plus{display:grid !important;place-items:center !important;width:22px !important;height:22px !important;border-radius:4px !important;background:transparent !important;color:#c8e98a !important;font-size:23px !important;line-height:1 !important;}
#app-shell .header-team-switcher.is-empty .header-team-empty-cta:hover{background:#303b43 !important;border-color:#74816c !important;}
#app-shell .header-team-switcher.is-empty .header-team-empty-cta:focus-visible{outline:2px solid #c8e98a !important;outline-offset:3px !important;}
.review287{margin-top:20px !important;padding:20px !important;border:1px solid #3a474e !important;border-radius:6px !important;background:#1c252b !important;color:#f0f2f3 !important;}
.review287 h3{margin:0 0 16px !important;font-size:17px !important;}
.review287 p{font-size:12px !important;color:#b7c3c9 !important;line-height:1.6 !important;}
.review287-inputs{display:flex !important;flex-wrap:wrap !important;gap:16px !important;margin:12px 0 !important;}
.review287-inputs label{display:grid !important;gap:8px !important;font-size:12px !important;flex:1 !important;min-width:150px !important;}
.review287 input:not([type=checkbox]){width:100% !important;min-height:42px !important;padding:8px !important;background:#141b20 !important;color:#f0f2f3 !important;border:1px solid #56636a !important;border-radius:4px !important;}
.review287-table{overflow-x:auto !important;}
.review287-table table{width:100% !important;border-collapse:collapse !important;}
.review287-table th,.review287-table td{padding:12px !important;border-bottom:1px solid #3a474e !important;text-align:right !important;font-size:12px !important;}
.review287-table th:first-child,.review287-table td:first-child{text-align:left !important;}
.review287-metrics{display:grid !important;grid-template-columns:repeat(4,1fr) !important;gap:12px !important;margin:16px 0 !important;}
.review287-metrics>div{border-left:2px solid #c8e98a !important;padding:12px !important;}
.review287-metrics small{display:block !important;color:#b7c3c9 !important;}
.review287-metrics strong{display:block !important;font-size:24px !important;margin-top:6px !important;}
.review287-distribution>div{display:grid !important;grid-template-columns:160px 1fr 140px !important;align-items:center !important;gap:12px !important;margin:14px 0 !important;font-size:12px !important;}
.review287-track{height:8px !important;background:#303d44 !important;border-radius:3px !important;overflow:hidden !important;}
.review287-track i{display:block !important;height:100% !important;background:#c8e98a !important;}
.review287-check{display:flex !important;align-items:flex-start !important;gap:10px !important;font-size:12px !important;line-height:1.6 !important;}
.review287-check input{margin-top:4px !important;min-width:18px !important;min-height:18px !important;}
@media (max-width:600px){.review287{padding:14px !important;}
.review287-metrics{grid-template-columns:1fr 1fr !important;}
.review287-distribution>div{grid-template-columns:1fr 90px !important;}
.review287-distribution .review287-track{grid-row:2 !important;grid-column:1/3 !important;}
.review287-table table{min-width:520px !important;}}
.ce288{display:flex !important;flex-direction:column !important;gap:16px !important;}
.ce288 .ce44-calendar-head{margin:0 !important;padding:0 !important;border:0 !important;background:none !important;}
.ce288 .ce44-toolbar-copy{display:none !important;}
.ce288 .ce44-toolbar{margin:0 !important;background:none !important;padding:0 !important;border:0 !important;}
.ce288 .ce44-days{margin:0 !important;max-width:650px !important;}
.ce288 .ce44-session-fields{display:grid !important;grid-template-columns:2fr 2fr 1fr !important;gap:12px !important;padding:18px !important;border:1px solid #35434b !important;border-radius:8px !important;background:#1c252b !important;margin:0 !important;}
.ce288 .ce44-session-fields label{font-size:12px !important;line-height:1.5 !important;color:#c7d1d6 !important;letter-spacing:0 !important;text-transform:none !important;}
.ce288 .ce44-session-fields label:last-child{display:none !important;}
.ce288 input{min-height:42px !important;font-size:14px !important;text-align:left !important;}
.ce288 .ce44-summary{margin:0 !important;background:transparent !important;gap:0 !important;border:1px solid #35434b !important;border-radius:8px !important;overflow:hidden !important;}
.ce288 .ce44-summary>div{padding:14px !important;border:0 !important;border-right:1px solid #35434b !important;border-radius:0 !important;background:#1c252b !important;}
.ce288 .ce44-summary b{font-size:20px !important;line-height:1.4 !important;}
.ce288 .ce44-summary small{font-size:11px !important;color:#b1c0c7 !important;}
.ce288 .ce44-task-toolbar{display:flex !important;flex-wrap:wrap !important;gap:12px !important;padding:16px !important;margin:0 !important;border:1px solid #35434b !important;border-radius:8px !important;background:#1c252b !important;}
.ce288 .ce44-task-toolbar-title{width:100% !important;}
.ce288 .ce44-task-toolbar-title strong{font-size:16px !important;}
.ce288 .ce44-task-toolbar-title small{font-size:12px !important;margin-top:5px !important;}
.ce288 .ce44-task-toolbar button{min-height:42px !important;font-size:13px !important;border-radius:6px !important;padding:8px 14px !important;}
.ce288 .ce44-task-toolbar-main{margin-left:auto !important;flex-wrap:wrap !important;}
.ce288 .ce44-ex{margin:0 !important;padding:16px !important;background:#1c252b !important;border:1px solid #35434b !important;border-radius:8px !important;box-shadow:none !important;}
.ce288 .ce44-ex-head{gap:10px !important;padding:0 0 12px !important;background:none !important;border:0 !important;}
.ce288 .ce44-ex-head input{font-weight:600 !important;flex:1 !important;min-width:100px !important;}
.ce288 .ce44-ex-head .ce44-pill{font-size:11px !important;white-space:nowrap !important;background:#29353b !important;color:#cdd8de !important;}
.ce288 .ce44-bottom{display:grid !important;grid-template-columns:1fr 1fr 1fr !important;gap:14px !important;padding:12px 0 !important;margin:0 !important;background:none !important;border:0 !important;}
.ce288 .ce44-bottom label{font-size:12px !important;color:#c7d1d6 !important;}
.ce288 .ce44-bottom b{font-size:20px !important;color:#d2e9a5 !important;}
.ce288-criteria,.ce288-analysis{border-top:1px solid #35434b !important;padding-top:12px !important;}
.ce288-criteria summary,.ce288-analysis>summary{cursor:pointer !important;font-size:13px !important;font-weight:600 !important;padding:8px 0 !important;color:#d3dde2 !important;}
.ce288 .ce44-metrics{margin-top:12px !important;display:grid !important;grid-template-columns:repeat(3,minmax(0,1fr)) !important;gap:16px !important;background:none !important;}
.ce288 .ce44-metrics small{font-size:12px !important;}
.ce288 .ce44-metrics button{min-height:36px !important;min-width:32px !important;font-size:13px !important;}
.ce288 .ce44-save-ex-btn{margin-top:12px !important;min-height:36px !important;font-size:12px !important;}
.ce288-analysis>summary span{font-weight:400 !important;color:#98aab5 !important;margin-left:12px !important;}
.ce288-analysis .review287{margin-top:12px !important;}
.ce288 .ce44-method-note{font-size:12px !important;margin-top:12px !important;}
.ce288-empty{padding:30px 20px !important;border:1px dashed #45565e !important;border-radius:8px !important;text-align:center !important;color:#c5d1d8 !important;}
.ce288-empty p{font-size:13px !important;margin:8px 0 0 !important;color:#9eafb9 !important;}
@media (max-width:700px){.ce288 .ce44-session-fields{grid-template-columns:1fr 1fr !important;padding:12px !important;}
.ce288 .ce44-session-fields label:first-child{grid-column:1/-1 !important;}
.ce288 .ce44-summary{display:grid !important;grid-template-columns:repeat(2,minmax(0,1fr)) !important;}
.ce288 .ce44-summary>div{border-bottom:1px solid #35434b !important;padding:12px !important;}
.ce288 .ce44-summary>div:last-child{grid-column:1/-1 !important;}
.ce288 .ce44-task-toolbar{padding:12px !important;}
.ce288 .ce44-quick-presets,.ce288 .ce44-task-toolbar-main{display:flex !important;flex-wrap:wrap !important;gap:8px !important;margin:0 !important;}
.ce288 .ce44-ex-head{flex-wrap:wrap !important;}
.ce288 .ce44-ex-head input{width:calc(100% - 65px) !important;flex:auto !important;}
.ce288 .ce44-ex-head .ce44-pill{order:2 !important;}
.ce288 .ce44-bottom{grid-template-columns:1fr 1fr !important;}
.ce288 .ce44-bottom>div{grid-column:1/-1 !important;}
.ce288 .ce44-metrics{grid-template-columns:1fr 1fr !important;gap:12px !important;}
.ce288 .ce44-guide-fab{position:static !important;display:flex !important;gap:8px !important;align-items:center !important;padding:10px !important;width:auto !important;}
.ce288 .ce44-guide-drawer{max-width:calc(100vw - 24px) !important;}}
.ce288 .ce44-guide-pocket{order:9 !important;}
.ce288 .ce44-guide-fab{position:static !important;inset:auto !important;display:flex !important;gap:10px !important;align-items:center !important;width:auto !important;max-width:none !important;padding:12px !important;background:#1c252b !important;border:1px solid #35434b !important;box-shadow:none !important;}
.ce288 .ce44-guide-fab span{background:#35434b !important;}
.ce288 .ce44-guide-fab small{margin-left:auto !important;}
#tab-externa #ce-day-view.ce288 .ce44-ex{display:flex !important;flex-direction:column !important;gap:0 !important;grid-template-columns:none !important;border:1px solid #35434b !important;padding:18px !important;background:#1c252b !important;}
#tab-externa #ce-day-view.ce288 .ce44-ex>.ce44-ex-head{position:static !important;grid-area:auto !important;align-self:stretch !important;display:grid !important;grid-template-columns:24px minmax(180px,1fr) auto auto 44px !important;align-items:center !important;width:100% !important;gap:10px !important;}
#tab-externa #ce-day-view.ce288 .ce44-ex-head input{width:100% !important;min-width:0 !important;font-size:15px !important;box-sizing:border-box !important;}
#tab-externa #ce-day-view.ce288 .ce44-ex-head>button{width:44px !important;height:44px !important;min-width:44px !important;display:grid !important;place-items:center !important;padding:0 !important;color:#f1a5a5 !important;background:#34252b !important;border:1px solid #69454b !important;border-radius:6px !important;font-size:22px !important;line-height:1 !important;}
#tab-externa #ce-day-view.ce288 .ce44-bottom{width:100% !important;box-sizing:border-box !important;}
#tab-externa #ce-day-view.ce288 .ce288-criteria{width:100% !important;box-sizing:border-box !important;}
#tab-externa #ce-day-view.ce288 .ce44-guide-fab,#tab-externa #ce-day-view.ce288 .ce44-guide-pocket[open]>.ce44-guide-fab{position:static !important;inset:auto !important;display:flex !important;width:100% !important;height:auto !important;min-width:0 !important;box-sizing:border-box !important;padding:12px !important;gap:10px !important;}
#tab-externa #ce-day-view.ce288 .ce44-guide-pocket[open]>.ce44-guide-fab>*{display:block !important;}
#tab-externa #ce-day-view.ce288 .ce44-guide-pocket[open]>.ce44-guide-fab:after{content:"Cerrar" !important;font-size:12px !important;margin-left:auto !important;}
@media (max-width:700px){#tab-externa #ce-day-view.ce288 .ce44-ex>.ce44-ex-head{grid-template-columns:24px minmax(0,1fr) 44px !important;}
#tab-externa #ce-day-view.ce288 .ce44-ex-head>button{grid-column:3 !important;grid-row:1 !important;}
#tab-externa #ce-day-view.ce288 .ce44-ex-head .ce44-pill{grid-row:2 !important;grid-column:auto !important;font-size:10px !important;}
#tab-externa #ce-day-view.ce288 .ce44-ex{padding:12px !important;}}
#tab-externa #ce-day-view.ce288 .ce44-guide-drawer{position:static !important;inset:auto !important;width:100% !important;max-width:none !important;height:auto !important;max-height:none !important;transform:none !important;margin:12px 0 0 !important;box-sizing:border-box !important;z-index:auto !important;overflow:visible !important;border:1px solid #35434b !important;background:#1c252b !important;box-shadow:none !important;}
#tab-externa #ce-day-view.ce288 .ce44-guide-pocket:before{display:none !important;}
#tab-externa #ce-day-view.ce288 .ce44-guide-drawer header>span{display:none !important;}
#subtab-rotacion #mobile-score255>div{cursor:pointer !important;min-height:64px !important;border-radius:6px !important;}
#subtab-rotacion #mobile-score255>div:focus-visible{outline:2px solid #c8e98a !important;outline-offset:3px !important;}
#subtab-rotacion #pm-mobile-tabs button{min-height:44px !important;}
#subtab-rotacion .pm-pro-name,#subtab-rotacion .pm-pro-bench-info strong{white-space:normal !important;overflow-wrap:anywhere !important;line-height:1.3 !important;}
#app-shell #tab-partidos #pm-ops-strip [data-return261]{display:none !important;}
#toast{display:flex !important;align-items:center !important;gap:16px !important;max-width:min(500px,calc(100vw - 32px)) !important;padding:14px 16px !important;background:var(--ui-raised) !important;border:1px solid var(--ui-border) !important;border-radius:var(--ui-radius) !important;color:var(--ui-text) !important;font:14px/1.5 var(--ui-font) !important;box-sizing:border-box !important;z-index:100000 !important;}
#toast:not(.show){pointer-events:none !important;}
#toast button{flex:0 0 36px !important;min-height:36px !important;border:0 !important;background:transparent !important;color:inherit !important;font-size:24px !important;cursor:pointer !important;}
#toast.error{border-left:4px solid var(--ui-error) !important;background:var(--ui-raised) !important;}
#toast.success{border-left:4px solid var(--ui-success) !important;background:var(--ui-raised) !important;}
#toast.warn{border-left:4px solid var(--ui-warning) !important;}
.ui-confirm{width:min(480px,calc(100vw - 32px)) !important;padding:24px !important;border:1px solid var(--ui-border) !important;border-radius:12px !important;background:var(--ui-surface) !important;color:var(--ui-text) !important;font:14px/1.6 var(--ui-font) !important;box-sizing:border-box !important;}
.ui-confirm::backdrop{background:#0009 !important;}
.ui-confirm h2{font-size:20px !important;margin:0 0 12px !important;}
.ui-confirm p{white-space:pre-line !important;color:var(--ui-muted) !important;}
.ui-confirm-actions{display:flex !important;justify-content:flex-end !important;gap:12px !important;margin-top:24px !important;}
.ui-confirm button{font:inherit !important;min-height:44px !important;padding:10px 18px !important;border:1px solid var(--ui-border) !important;border-radius:6px !important;background:var(--ui-raised) !important;color:var(--ui-text) !important;cursor:pointer !important;}
.ui-confirm .ui-confirm-accept{color:#172014 !important;background:var(--ui-action) !important;border-color:var(--ui-action) !important;}
.ui-form-error{color:var(--ui-error) !important;background:#38262b !important;padding:12px !important;border-left:3px solid var(--ui-error) !important;font-size:14px !important;line-height:1.5 !important;}
.ui-password-toggle{font:12px var(--ui-font) !important;color:var(--ui-text) !important;background:transparent !important;border:1px solid var(--ui-border) !important;border-radius:6px !important;min-height:36px !important;padding:6px 12px !important;margin:6px 0 12px !important;}
:where(button,a,input,select,textarea,summary):focus-visible{outline:2px solid var(--ui-focus) !important;outline-offset:3px !important;}
:where(button,.btn){transition:background-color var(--ui-fast),border-color var(--ui-fast),color var(--ui-fast) !important;}
:where(button,.btn):active:not(:disabled){filter:brightness(.94) !important;}
:where(button):disabled{opacity:.5 !important;cursor:not-allowed !important;}
:where(#pm-clock-display,#pm-clock-btn-top,.kpi-value){font-variant-numeric:tabular-nums !important;}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation:none !important;transition:none !important;scroll-behavior:auto !important;}}
.ui-day{display:flex !important;flex-direction:column !important;align-items:stretch !important;gap:8px !important;min-width:0 !important;min-height:148px !important;padding:12px !important;background:var(--ui-surface) !important;border:1px solid var(--ui-border) !important;border-top:3px solid transparent !important;border-radius:8px !important;color:var(--ui-text) !important;text-align:left !important;font:13px/1.4 var(--ui-font) !important;cursor:pointer !important;}
.ui-day.is-planned{border-top-color:var(--day-signal) !important;}
.ui-day.is-outside{opacity:.8 !important;}
.ui-day.is-today{outline:2px solid var(--ui-focus) !important;outline-offset:-3px !important;}
.ui-day:hover{background:var(--ui-raised) !important;}
.ui-day-date{display:flex !important;justify-content:space-between !important;gap:4px !important;align-items:center !important;}
.ui-day-date b{font-size:18px !important;}
.ui-day-date small{font-size:11px !important;color:var(--ui-muted) !important;}
.ui-day-add{margin:auto 0 !important;color:var(--ui-muted) !important;font-size:12px !important;}
.ui-day-match{font-size:12px !important;color:#e9b3b9 !important;overflow-wrap:anywhere !important;}
.ui-day>small,.ui-day>span:not(.ui-day-date){font-size:12px !important;}
.ui-day-today{color:var(--ui-focus) !important;}
.ui-day-editor{width:min(620px,calc(100vw - 24px)) !important;max-height:90dvh !important;overflow:auto !important;}
.ui-day-editor h2{font-size:19px !important;text-transform:capitalize !important;}
.ui-day-editor .pv38-day{min-height:0 !important;background:transparent !important;border:0 !important;padding:0 !important;}
.ui-day-editor select{width:100% !important;min-height:44px !important;background:var(--ui-bg) !important;color:var(--ui-text) !important;border:1px solid var(--ui-border) !important;border-radius:6px !important;padding:10px !important;font:14px var(--ui-font) !important;margin:8px 0 !important;}
.ui-day-editor .pv38-day-head{display:none !important;}
.ui-day-editor .pv38-intensity>div{display:grid !important;grid-template-columns:repeat(5,1fr) !important;gap:8px !important;}
.ui-day-editor .pv38-intensity button{min-width:0 !important;min-height:44px !important;width:100% !important;font-size:14px !important;}
.ui-day-editor .pv38-intensity .active{background:var(--ui-selection) !important;outline:2px solid var(--ui-focus) !important;}
@media (max-width:700px){.ui-day{min-height:124px !important;padding:10px !important;}
.ui-day-date b{font-size:16px !important;}}
.ui-plan-features{list-style:none !important;padding:0 !important;margin:24px 0 0 !important;display:grid !important;gap:12px !important;font-size:14px !important;line-height:1.5 !important;}
.ui-plan-features li{padding-bottom:10px !important;border-bottom:1px solid var(--ui-border) !important;}
.ui-day.is-empty{min-height:104px !important;}
#toast{pointer-events:none !important;}
#toast button{pointer-events:auto !important;}
#tab-suscripcion .pricing-card{display:flex !important;flex-direction:column !important;gap:16px !important;padding:28px !important;min-height:0 !important;}
#tab-suscripcion .pc-section{flex:1 !important;}
#tab-suscripcion .pricing-card>.btn{margin-top:auto !important;}
#tab-suscripcion .pricing-price{margin:0 0 12px !important;}
#tab-suscripcion .panel-header{display:block !important;text-align:left !important;}
#tab-suscripcion .panel-header p{margin:10px 0 0 !important;}
#tab-suscripcion .faq-section{margin-top:40px !important;}
#app-shell :is(.kpi-label,.fr-kpi-label,.salud-kpi-label,.isak-kpi-label,.pv38-kicker,.nav-section-label){font-size:11px !important;line-height:1.5 !important;letter-spacing:.025em !important;}
#app-shell :is(.fr-subtitle,.pc-meta,.pv38-head p,.fr-card p){font-size:13px !important;line-height:1.5 !important;}
#app-shell .home280-chart{position:relative !important;min-height:0 !important;}
#app-shell .home280-chart>canvas{height:100% !important;max-height:100% !important;width:100% !important;}
.ui-wellness-overview{display:grid !important;grid-template-columns:minmax(180px,1fr) 1fr 1fr !important;gap:20px !important;padding:20px !important;margin:0 0 16px !important;background:var(--ui-surface) !important;border:1px solid var(--ui-border) !important;border-radius:var(--ui-radius) !important;}
.ui-wellness-overview label{display:grid !important;gap:8px !important;font-size:13px !important;}
.ui-wellness-overview input{min-height:44px !important;color:var(--ui-text) !important;background:var(--ui-bg) !important;border:1px solid var(--ui-border) !important;border-radius:6px !important;padding:8px !important;font:14px var(--ui-font) !important;color-scheme:dark !important;}
.ui-wellness-overview small{font-size:12px !important;color:var(--ui-muted) !important;}
.ui-wellness-overview strong{display:block !important;font-size:27px !important;font-variant-numeric:tabular-nums !important;margin-top:8px !important;}
.ui-wellness-overview p{grid-column:1/-1 !important;color:var(--ui-muted) !important;font-size:12px !important;margin:0 !important;line-height:1.5 !important;}
@media (max-width:600px){.ui-wellness-overview{grid-template-columns:1fr 1fr !important;gap:16px !important;}
.ui-wellness-overview label{grid-column:1/-1 !important;}}
#tab-wellness .wellness-cell{background:transparent !important;color:var(--ui-text) !important;border-radius:0 !important;font-weight:500 !important;padding:3px 6px !important;}
#tab-wellness .wellness-cell[data-color="6"],#tab-wellness .wellness-cell[data-color="7"]{border-bottom:2px solid var(--ui-error) !important;}
#tab-wellness .card:has(#wellness-tabla-último),#tab-wellness .card:has(#wellness-tabla-historico){display:block !important;grid-template-columns:none !important;}
#tab-wellness .card:has(#wellness-tabla-último)>.card-title,#tab-wellness .card:has(#wellness-tabla-historico)>.card-title{position:static !important;margin:0 0 16px !important;grid-area:auto !important;}
html body #app-shell #partidos-kpis{grid-template-columns:repeat(2,minmax(0,1fr)) !important;}
html body #app-shell #partidos-tabla .partido-delete-btn{display:inline-flex !important;align-items:center !important;justify-content:center !important;gap:8px !important;width:auto !important;height:auto !important;min-height:44px !important;padding:8px 12px !important;font-size:12px !important;border-radius:8px !important;background:transparent !important;color:var(--ui-error) !important;border:1px solid var(--ui-border) !important;}
html body #app-shell #partidos-tabla .partido-delete-btn svg{width:18px !important;height:18px !important;flex-shrink:0 !important;fill:none !important;stroke:currentColor !important;stroke-width:1.8 !important;}
html body #app-shell #partidos-tabla td:last-child::before{display:none !important;}
html body #app-shell .match-analysis-launch{display:flex !important;align-items:center !important;justify-content:space-between !important;gap:20px !important;padding:24px !important;}
html body #app-shell .match-analysis-launch h3{margin:8px 0 !important;font-size:22px !important;}
html body #app-shell .match-analysis-launch p{color:var(--ui-muted) !important;line-height:1.5 !important;}
html body #app-shell #subtab-rotacion .pm-pro-toolbar-actions{display:grid !important;grid-template-columns:auto auto auto !important;align-items:center !important;gap:8px !important;min-width:0 !important;width:100% !important;}
html body #app-shell #pm-pro-clock{position:static !important;grid-column:1 !important;grid-row:2 !important;min-width:0 !important;font-size:32px !important;line-height:1.15 !important;letter-spacing:0 !important;background:transparent !important;padding:0 !important;font-variant-numeric:tabular-nums !important;}
html body #app-shell #mobile-clock-state256{grid-column:1/-1 !important;grid-row:1 !important;}
html body #app-shell #pm-clock-btn-top{grid-column:2 !important;grid-row:2 !important;min-width:0 !important;white-space:normal !important;min-height:44px !important;font-size:13px !important;padding:8px !important;}
html body #app-shell #pm-next-quarter-top{grid-column:3 !important;grid-row:2 !important;min-width:0 !important;white-space:normal !important;min-height:44px !important;font-size:12px !important;padding:8px !important;}
html body #app-shell #pm-undo-btn{grid-column:1/-1 !important;grid-row:3 !important;justify-self:end !important;min-height:44px !important;}
html body #app-shell #subtab-rotacion.pm-finalized .pm-pro-toolbar{display:none !important;}
@media (max-width:700px){html body #app-shell #subtab-rotacion:not(.pm-finalized) .pm-pro-toolbar{display:flex !important;flex-direction:column !important;align-items:stretch !important;gap:8px !important;padding:10px !important;position:static !important;}
html body #app-shell #subtab-rotacion .pm-pro-quarter{display:none !important;}
html body #app-shell #subtab-rotacion .pm-pro-toolbar-actions{grid-template-columns:minmax(70px,.9fr) minmax(90px,1.2fr) minmax(80px,1fr) !important;}
html body #app-shell .match-analysis-launch{display:block !important;padding:16px !important;}
html body #app-shell .match-analysis-launch button{width:100% !important;margin-top:12px !important;}
html body #app-shell #partidos-tabla td:last-child{grid-column:1/-1 !important;justify-content:flex-end !important;padding-top:8px !important;}}
html body #app-shell #subtab-rotacion.pm-finalized #pm-match-controls{display:none !important;}
html body #app-shell #pm-ops-strip [data-analysis294]{min-height:44px !important;grid-column:1/-1 !important;background:transparent !important;color:var(--ui-text) !important;border:1px solid var(--ui-border) !important;border-radius:8px !important;padding:10px !important;}
@media (max-width:700px){html body #app-shell #pm-undo-btn{display:none !important;}}}