/**
 * Acento del escudo del equipo activo (taller + sala en vivo).
 * `body.rtp-team-accent-on` + `--rtp-team-accent` los pone `lib/team-accent-theme.js` desde el
 * sync del top bar; solo en sesión con equipo. Mezclas 24–36 % sobre navy: el texto sigue siendo
 * el token de marca y los CTA siguen en `--rtp-brand-primary`. Nunca aplica en el dashboard.
 */

/* ---------- Top bar (taller y sala) ---------- */
body.rtp-team-accent-on .app-top-bar {
    background: color-mix(in srgb, var(--rtp-team-accent) 36%, var(--rtp-surface));
    border-bottom-color: color-mix(in srgb, var(--rtp-team-accent) 42%, var(--rtp-border));
}

body.rtp-team-accent-on .top-bar-club-logo {
    border-color: color-mix(in srgb, var(--rtp-team-accent) 70%, var(--rtp-border));
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--rtp-team-accent) 28%, transparent);
}

/* ---------- Taller: panel de edición ---------- */
body.rtp-team-accent-on .creation-editor-panel {
    background: color-mix(in srgb, var(--rtp-team-accent) 24%, var(--rtp-workshop-panel-bg));
    border-left-color: color-mix(in srgb, var(--rtp-team-accent) 45%, #000);
}

body.rtp-team-accent-on .creation-cloud-library {
    border-top-color: color-mix(in srgb, var(--rtp-team-accent) 55%, transparent);
}

body.rtp-team-accent-on .creation-new-play-sheet {
    border-color: color-mix(in srgb, var(--rtp-team-accent) 35%, transparent);
}

/* Biblioteca: categoría y jugada activa en el color del club (el tema base usa !important) */
body.rtp-team-accent-on .creation-cat-btn-active {
    background: color-mix(in srgb, var(--rtp-team-accent) 45%, var(--rtp-workshop-panel-raised)) !important;
    border-color: color-mix(in srgb, var(--rtp-team-accent) 80%, #fff) !important;
}

body.rtp-team-accent-on .creation-cat-btn:hover,
body.rtp-team-accent-on .creation-play-name:hover:not(:disabled),
body.rtp-team-accent-on #creation-new-play-btn.creation-new-play-btn:hover,
body.rtp-team-accent-on button.creation-btn.creation-new-play-btn:hover {
    border-color: color-mix(in srgb, var(--rtp-team-accent) 80%, #fff);
}

body.rtp-team-accent-on .creation-play-name.creation-play-cloud-active {
    background: color-mix(in srgb, var(--rtp-team-accent) 45%, var(--rtp-workshop-panel-raised)) !important;
    border-color: color-mix(in srgb, var(--rtp-team-accent) 80%, #fff) !important;
}

body.rtp-team-accent-on .creation-step-nav-btn:hover,
body.rtp-team-accent-on .creation-step-nav-btn.creation-step-nav-active,
body.rtp-team-accent-on .creation-step-name-edit.creation-step-nav-active {
    border-color: color-mix(in srgb, var(--rtp-team-accent) 80%, #fff) !important;
    background: color-mix(in srgb, var(--rtp-team-accent) 36%, var(--rtp-workshop-panel-raised)) !important;
}

/* ---------- Sala en vivo: menú coach + playbook ---------- */
body.rtp-team-accent-on #coach-menu-toggle {
    background: linear-gradient(
        145deg,
        color-mix(in srgb, var(--rtp-team-accent) 60%, var(--rtp-surface)) 0%,
        color-mix(in srgb, var(--rtp-team-accent) 28%, var(--rtp-surface)) 100%
    );
    border-color: color-mix(in srgb, var(--rtp-team-accent) 55%, var(--rtp-border));
}

body.rtp-team-accent-on #coach-menu-content {
    background: color-mix(in srgb, var(--rtp-team-accent) 28%, var(--rtp-surface));
    border-color: color-mix(in srgb, var(--rtp-team-accent) 40%, var(--rtp-border));
}

body.rtp-team-accent-on .coach-playbook-panel,
body.rtp-team-accent-on #plays-menu.coach-playbook-panel {
    background: color-mix(in srgb, var(--rtp-team-accent) 24%, color-mix(in srgb, var(--rtp-surface) 92%, transparent));
    border-color: color-mix(in srgb, var(--rtp-team-accent) 38%, var(--rtp-border));
}

body.rtp-team-accent-on .coach-playbook-category[open] > .coach-playbook-category__summary,
body.rtp-team-accent-on .coach-playbook-item--active {
    border-color: color-mix(in srgb, var(--rtp-team-accent) 80%, #fff) !important;
    background: color-mix(in srgb, var(--rtp-team-accent) 42%, var(--rtp-surface-raised)) !important;
}

body.rtp-team-accent-on .coach-playbook-category__summary:hover,
body.rtp-team-accent-on .coach-playbook-item:hover:not(:disabled) {
    border-color: color-mix(in srgb, var(--rtp-team-accent) 80%, #fff) !important;
}

body.rtp-team-accent-on .live-playbook-bar {
    border-color: color-mix(in srgb, var(--rtp-team-accent) 50%, var(--rtp-border));
    background: color-mix(in srgb, var(--rtp-team-accent) 28%, color-mix(in srgb, var(--rtp-surface) 94%, transparent));
}
