:root {
    --coach-bg: #f4f6fb;
    --coach-card: #ffffff;
    --coach-text: #111827;
    --coach-muted: #667085;
    --coach-primary: #2563eb;
    --coach-primary-dark: #1d4ed8;
    --coach-border: #e5e7eb;
    --coach-sidebar: #0f172a;
}

body .coach-public-page,
body .coach-app {
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.coach-public-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at 20% 10%, rgba(79, 109, 150, .24) 0, transparent 32%),
        radial-gradient(circle at 85% 20%, rgba(37, 99, 235, .12) 0, transparent 28%),
        linear-gradient(135deg, #050b14 0%, #07111f 48%, #0b1626 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    box-sizing: border-box;
}

.coach-login-screen {
    position: relative;
    overflow: hidden;
}

.coach-login-screen::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, transparent 0%, transparent 46%, rgba(255,255,255,.08) 47%, transparent 48%),
        linear-gradient(300deg, transparent 0%, transparent 74%, rgba(255,255,255,.05) 75%, transparent 76%);
    pointer-events: none;
}

.coach-login-shell {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 520px;
    text-align: center;
}

.coach-login-brand {
    width: min(420px, 92vw);
    height: auto;
    display: block;
    margin: 0 auto 18px;
    filter: drop-shadow(0 18px 45px rgba(0,0,0,.32));
}

.coach-login-title {
    color: rgba(226, 232, 240, .74);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .34em;
    text-transform: uppercase;
    margin: 0 0 28px;
}

.coach-login-card {
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
    background: rgba(255, 255, 255, .96);
    border: 1px solid rgba(255, 255, 255, .78);
    border-radius: 28px;
    padding: 38px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, .34);
    backdrop-filter: blur(12px);
    text-align: left;
    box-sizing: border-box;
}

.coach-brand-mark,
.coach-logo {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, #53657f, #c7c9cc);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    letter-spacing: -.04em;
    box-shadow: 0 12px 30px rgba(83, 101, 127, .32);
}

.coach-login-card h1 {
    margin: 0 0 8px;
    font-size: 30px;
    line-height: 1.1;
    color: var(--coach-text);
    text-align: left;
}

.coach-login-card p {
    color: var(--coach-muted);
    margin: 0 0 26px;
}

.coach-login-card label {
    color: var(--coach-text);
    font-weight: 750;
    display: block;
    margin-bottom: 8px;
}

.coach-login-card input[type="text"],
.coach-login-card input[type="password"] {
    width: 100%;
    padding: 14px 15px;
    border: 1px solid var(--coach-border);
    border-radius: 14px;
    margin-top: 6px;
    box-sizing: border-box;
    background: #fff;
}

.coach-login-card input[type="text"]:focus,
.coach-login-card input[type="password"]:focus {
    outline: none;
    border-color: #53657f;
    box-shadow: 0 0 0 4px rgba(83, 101, 127, .12);
}

.coach-login-card input[type="submit"],
.coach-primary-btn {
    width: 100%;
    background: linear-gradient(135deg, #53657f, #1f2f45);
    color: #fff;
    border: none;
    border-radius: 14px;
    padding: 14px 18px;
    font-weight: 850;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 14px 28px rgba(31, 47, 69, .22);
}

.coach-login-card input[type="submit"]:hover,
.coach-primary-btn:hover {
    background: linear-gradient(135deg, #64748b, #0f172a);
}

.coach-login-card .login-remember,
.coach-login-card .login-submit {
    margin-bottom: 0;
}

.coach-login-card .login-remember label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--coach-muted);
    font-size: 14px;
    font-weight: 650;
}

.coach-login-card input[type="checkbox"] {
    width: 16px;
    height: 16px;
}

@media (max-width: 560px) {
    .coach-public-page {
        padding: 28px 16px;
        align-items: flex-start;
    }
    .coach-login-brand {
        width: min(320px, 92vw);
        margin-top: 16px;
    }
    .coach-login-title {
        font-size: 11px;
        letter-spacing: .22em;
        margin-bottom: 20px;
    }
    .coach-login-card {
        padding: 26px 22px;
        border-radius: 22px;
    }
    .coach-login-card h1 {
        font-size: 26px;
    }
}

.coach-alert {
    padding: 12px 14px;
    border-radius: 12px;
    margin-bottom: 18px;
    font-weight: 650;
}

.coach-alert-error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.coach-app {
    position: fixed;
    inset: 0;
    background: var(--coach-bg);
    display: grid;
    grid-template-columns: 272px 1fr;
    overflow: hidden;
    color: var(--coach-text);
}

.coach-sidebar {
    background: radial-gradient(circle at top left, rgba(59, 130, 246, .22), transparent 30%), var(--coach-sidebar);
    color: #fff;
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 26px;
    min-width: 0;
}

.coach-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 4px 4px 12px;
}

.coach-sidebar-brand strong {
    display: block;
    font-size: 16px;
    line-height: 1.1;
}

.coach-sidebar-brand span {
    display: block;
    color: #cbd5e1;
    font-size: 13px;
    margin-top: 4px;
}

.coach-nav {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.coach-nav a,
.coach-sidebar-footer a {
    color: #cbd5e1;
    text-decoration: none;
    padding: 12px 13px;
    border-radius: 14px;
    font-weight: 750;
    display: flex;
    align-items: center;
    gap: 11px;
    transition: .18s ease;
}

.coach-nav a:hover,
.coach-nav a.active {
    background: rgba(255,255,255,.12);
    color: #fff;
    transform: translateX(2px);
}

.coach-nav-icon {
    width: 24px;
    display: inline-flex;
    justify-content: center;
}

.coach-sidebar-footer {
    margin-top: auto;
    display: grid;
    gap: 12px;
}

.coach-mini-user {
    display: flex;
    gap: 11px;
    align-items: center;
    padding: 12px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.06);
    border-radius: 16px;
}

.coach-avatar {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: #fff;
    color: #1d4ed8;
    display: grid;
    place-items: center;
    font-weight: 900;
}

.coach-mini-user strong {
    display: block;
    font-size: 13px;
    line-height: 1.1;
}

.coach-mini-user span {
    display: block;
    color: #cbd5e1;
    font-size: 12px;
    margin-top: 3px;
}

.coach-logout {
    background: rgba(255,255,255,.06);
}

.coach-main {
    padding: 34px 38px;
    overflow-y: auto;
    overflow-x: hidden;
}

.coach-topbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.coach-kicker {
    display: block;
    color: var(--coach-primary);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 900;
    margin-bottom: 8px;
}

.coach-topbar h1 {
    margin: 0 0 6px;
    font-size: 34px;
    line-height: 1.05;
    color: var(--coach-text);
    letter-spacing: -.04em;
}

.coach-topbar p {
    margin: 0;
    color: var(--coach-muted);
    font-size: 15px;
}

.coach-topbar-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.coach-user-pill {
    background: #fff;
    border: 1px solid var(--coach-border);
    border-radius: 999px;
    padding: 10px 15px;
    color: var(--coach-text);
    font-weight: 850;
    box-shadow: 0 10px 25px rgba(15,23,42,.06);
}

.coach-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(160px, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

.coach-stat,
.coach-card,
.coach-panel {
    background: rgba(255,255,255,.94);
    border: 1px solid var(--coach-border);
    border-radius: 22px;
    box-shadow: 0 14px 38px rgba(15,23,42,.06);
}

.coach-stat {
    padding: 18px;
}

.coach-stat span {
    display: block;
    color: var(--coach-muted);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 8px;
}

.coach-stat strong {
    display: block;
    font-size: 30px;
    line-height: 1;
    letter-spacing: -.04em;
}

.coach-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(190px, 1fr));
    gap: 18px;
}

.coach-card {
    padding: 23px;
    position: relative;
    overflow: hidden;
    transition: .2s ease;
}

.coach-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 50px rgba(15,23,42,.1);
}

.coach-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 15px;
    background: #eef2ff;
    display: grid;
    place-items: center;
    font-size: 22px;
    margin-bottom: 18px;
}

.coach-card-meta {
    position: absolute;
    right: 18px;
    top: 18px;
    color: var(--coach-primary);
    background: #eff6ff;
    border-radius: 999px;
    padding: 5px 9px;
    font-size: 12px;
    font-weight: 900;
}

.coach-card h2,
.coach-panel h2 {
    margin: 0 0 8px;
    color: var(--coach-text);
    font-size: 21px;
    letter-spacing: -.03em;
}

.coach-card p,
.coach-panel p {
    margin: 0 0 18px;
    color: var(--coach-muted);
    font-size: 14px;
}

.coach-card a,
.coach-card button,
.coach-secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background: #eef2ff;
    color: var(--coach-primary);
    border: none;
    border-radius: 12px;
    padding: 10px 14px;
    font-weight: 800;
}

.coach-card button:disabled {
    opacity: .62;
    cursor: not-allowed;
}

.coach-panel {
    margin-bottom: 20px;
    padding: 24px;
}

.coach-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.coach-form {
    display: grid;
    gap: 16px;
}

.coach-form-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(190px, 1fr));
    gap: 16px;
}

.coach-form label {
    color: var(--coach-text);
    font-weight: 750;
    font-size: 14px;
}

.coach-form input,
.coach-form select,
.coach-form textarea {
    width: 100%;
    margin-top: 7px;
    padding: 12px 13px;
    border: 1px solid var(--coach-border);
    border-radius: 12px;
    background: #fff;
    box-sizing: border-box;
    outline: none;
}

.coach-form input:focus,
.coach-form select:focus,
.coach-form textarea:focus {
    border-color: rgba(37,99,235,.7);
    box-shadow: 0 0 0 4px rgba(37,99,235,.1);
}

.coach-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.coach-table-wrap {
    overflow-x: auto;
}

.coach-table {
    width: 100%;
    border-collapse: collapse;
}

.coach-table th,
.coach-table td {
    text-align: left;
    border-bottom: 1px solid var(--coach-border);
    padding: 14px 12px;
    vertical-align: middle;
}

.coach-table th {
    color: var(--coach-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.coach-table td strong {
    display: block;
    color: var(--coach-text);
}

.coach-table td span {
    display: block;
    color: var(--coach-muted);
    font-size: 13px;
    margin-top: 2px;
}

.coach-status {
    display: inline-flex !important;
    width: fit-content;
    padding: 5px 9px;
    border-radius: 999px;
    font-weight: 850;
    font-size: 12px !important;
}

.coach-status.is-active {
    background: #ecfdf3;
    color: #027a48;
}

.coach-status.is-inactive {
    background: #f2f4f7;
    color: #475467;
}

.coach-row-actions {
    white-space: nowrap;
}

.coach-row-actions a {
    font-weight: 800;
    text-decoration: none;
    margin-right: 10px;
    color: var(--coach-primary);
}

.coach-row-actions a.danger {
    color: #dc2626;
}

@media (max-width: 1180px) {
    .coach-cards-grid,
    .coach-stats-grid {
        grid-template-columns: repeat(2, minmax(180px, 1fr));
    }
}

@media (max-width: 820px) {
    .coach-app {
        grid-template-columns: 1fr;
        position: relative;
        min-height: 100vh;
        overflow: visible;
    }

    .coach-sidebar {
        border-radius: 0 0 24px 24px;
    }

    .coach-main {
        padding: 22px;
    }

    .coach-cards-grid,
    .coach-stats-grid,
    .coach-form-grid {
        grid-template-columns: 1fr;
    }

    .coach-topbar {
        flex-direction: column;
    }
}

/* v0.2.2 UI refinements */
.coach-main {
    background:
        radial-gradient(circle at top right, rgba(37,99,235,.10), transparent 34%),
        linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
}

.coach-topbar {
    background: rgba(255,255,255,.78);
    border: 1px solid rgba(229,231,235,.9);
    border-radius: 24px;
    padding: 22px 24px;
    box-shadow: 0 18px 45px rgba(15,23,42,.06);
    backdrop-filter: blur(10px);
}

.coach-module-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin: 0 0 18px;
}

.coach-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1d4ed8;
    background: #fff;
    border: 1px solid var(--coach-border);
    border-radius: 999px;
    padding: 11px 15px;
    font-weight: 850;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(15,23,42,.05);
}

.coach-back-btn:hover,
.coach-secondary-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(15,23,42,.08);
}

.coach-panel-header-pro {
    padding: 18px;
    border-radius: 20px;
    background: linear-gradient(135deg, #eff6ff, #ffffff 60%);
    border: 1px solid #dbeafe;
}

.coach-player-panel {
    padding: 20px;
}

.coach-player-form {
    gap: 18px;
}

.coach-form-section {
    background: #fff;
    border: 1px solid var(--coach-border);
    border-radius: 20px;
    padding: 18px;
    box-shadow: 0 10px 26px rgba(15,23,42,.04);
}

.coach-form-section-title {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.coach-form-section-title > span {
    width: 32px;
    height: 32px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    font-weight: 900;
    box-shadow: 0 10px 22px rgba(37,99,235,.22);
    flex: 0 0 32px;
}

.coach-form-section-title h3 {
    margin: 0 0 4px;
    font-size: 18px;
    line-height: 1.15;
    letter-spacing: -.02em;
    color: var(--coach-text);
}

.coach-form-section-title p {
    margin: 0;
    color: var(--coach-muted);
    font-size: 13px;
}

.coach-form input[readonly] {
    background: #f8fafc;
    color: #64748b;
}

.coach-sticky-actions {
    position: sticky;
    bottom: 0;
    background: rgba(244,246,251,.88);
    padding: 14px 0 2px;
    backdrop-filter: blur(10px);
    z-index: 5;
}

@media (max-width: 820px) {
    .coach-module-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .coach-back-btn,
    .coach-secondary-btn,
    .coach-primary-btn {
        width: 100%;
    }
}

/* v0.2.4 - Ajustes de legibilidad y ficha de jugador */
.coach-form input,
.coach-form select,
.coach-form textarea {
    font-size: 14px;
    line-height: 1.35;
}

.coach-form input::placeholder,
.coach-form textarea::placeholder {
    font-size: 13px;
    color: #98a2b3;
    font-weight: 500;
}

.coach-form select {
    color: #344054;
    font-weight: 600;
}

.coach-form label {
    line-height: 1.25;
}

.coach-field-wide {
    grid-column: span 2;
}

.coach-family-grid {
    align-items: end;
}

.coach-sticky-actions {
    border-top: 1px solid rgba(229,231,235,.9);
    margin-top: 4px;
    padding-left: 4px;
}

@media (max-width: 980px) {
    .coach-form-grid {
        grid-template-columns: repeat(2, minmax(180px, 1fr));
    }
    .coach-field-wide {
        grid-column: span 2;
    }
}

@media (max-width: 640px) {
    .coach-form-grid {
        grid-template-columns: 1fr;
    }
    .coach-field-wide {
        grid-column: span 1;
    }
}


/* v0.2.5 - Dropdowns más compactos y categorías múltiples */
.coach-form select {
    font-size: 13px;
    line-height: 1.2;
    padding: 9px 12px;
    min-height: 42px;
    font-weight: 500;
}

.coach-form select option {
    font-size: 13px;
    font-weight: 500;
}

.coach-form .coach-multi-select {
    min-height: 104px;
    padding: 8px 10px;
}

.coach-field-hint {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.25;
    color: #667085;
    font-weight: 500;
}

/* v0.2.6 - Colegio dropdown, observaciones por sección y categorías con checkboxes */
.coach-form input::placeholder,
.coach-form textarea::placeholder,
.coach-form select {
    font-size: 12.5px;
}

.coach-field-full {
    grid-column: 1 / -1;
}

.coach-label-text {
    display: block;
    font-weight: 800;
    font-size: 13px;
    color: #0f172a;
    margin-bottom: 8px;
}

.coach-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    padding: 10px;
    border: 1px solid #dfe3ea;
    border-radius: 14px;
    background: #fff;
}

.coach-check-option {
    min-height: 38px;
    display: flex !important;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #f8fafc;
    font-size: 12.5px !important;
    font-weight: 700;
    cursor: pointer;
}

.coach-check-option input {
    width: 15px !important;
    height: 15px !important;
    min-height: auto !important;
    margin: 0;
    box-shadow: none !important;
}

.coach-check-option span {
    line-height: 1.1;
}

@media (max-width: 980px) {
    .coach-checkbox-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .coach-checkbox-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* v0.3.1 - Dashboard UI refresh real */
:root {
    --coach-bg: #f5f7fb;
    --coach-card: #ffffff;
    --coach-text: #0b1220;
    --coach-muted: #667085;
    --coach-primary: #315cf6;
    --coach-primary-dark: #2348d8;
    --coach-border: #e3e8f2;
    --coach-sidebar: #0b1327;
}

.coach-app {
    background:
        radial-gradient(circle at 18% 0%, rgba(49,92,246,.10), transparent 28%),
        radial-gradient(circle at 96% 12%, rgba(16,185,129,.08), transparent 24%),
        linear-gradient(180deg, #f8fbff 0%, #eef3fa 100%);
}

.coach-main {
    padding: 34px 40px 48px;
    max-width: 1280px;
    width: 100%;
    box-sizing: border-box;
}

.coach-sidebar {
    padding: 26px 22px;
    background:
        radial-gradient(circle at 20% 0%, rgba(74, 117, 255, .30), transparent 28%),
        linear-gradient(180deg, #0b1327 0%, #111b33 100%);
    box-shadow: inset -1px 0 0 rgba(255,255,255,.08);
}

.coach-sidebar-brand {
    padding: 0 4px 20px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.coach-sidebar-brand strong { font-size: 17px; letter-spacing: -.02em; }
.coach-sidebar-brand span { font-size: 12.5px; opacity: .9; }

.coach-nav a,
.coach-sidebar-footer a {
    border: 1px solid transparent;
    border-radius: 16px;
    padding: 13px 14px;
    color: #d8e2f3;
}

.coach-nav a:hover,
.coach-nav a.active {
    background: rgba(255,255,255,.10);
    border-color: rgba(255,255,255,.10);
    color: #fff;
    transform: none;
}

.coach-sidebar-footer { gap: 12px; }
.coach-mini-user,
.coach-logout {
    background: rgba(255,255,255,.08) !important;
    border-color: rgba(255,255,255,.12);
}

.coach-topbar {
    margin-bottom: 26px;
    padding: 26px 28px;
    border-radius: 28px;
    background:
        linear-gradient(135deg, rgba(255,255,255,.98), rgba(255,255,255,.82)),
        radial-gradient(circle at 100% 0%, rgba(49,92,246,.18), transparent 34%);
    border: 1px solid rgba(226,232,240,.95);
    box-shadow: 0 20px 55px rgba(15,23,42,.08);
}

.coach-kicker {
    color: var(--coach-primary);
    font-size: 12px;
    letter-spacing: .12em;
}

.coach-topbar h1 {
    font-size: 36px;
    letter-spacing: -.045em;
}

.coach-topbar p {
    font-size: 15px;
    color: #667085;
}

.coach-user-pill {
    border-radius: 14px;
    padding: 11px 16px;
    box-shadow: 0 12px 26px rgba(15,23,42,.07);
}

.coach-stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 22px;
}

.coach-stat {
    min-height: 106px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 26px;
    border: 1px solid rgba(226,232,240,.95);
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    box-shadow: 0 18px 42px rgba(15,23,42,.07);
}

.coach-stat span {
    margin: 0 0 12px;
    font-size: 13px;
    color: #475467;
    line-height: 1.2;
}

.coach-stat strong {
    font-size: 34px;
    color: #0b1220;
}

.coach-cards-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    align-items: stretch;
}

.coach-card {
    min-height: 230px;
    padding: 24px;
    border-radius: 28px;
    border: 1px solid rgba(226,232,240,.95);
    background:
        radial-gradient(circle at 100% 0%, rgba(49,92,246,.08), transparent 30%),
        linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    box-shadow: 0 20px 54px rgba(15,23,42,.08);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.coach-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 26px 70px rgba(15,23,42,.12);
}

.coach-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 18px;
    margin-bottom: 18px;
    background: linear-gradient(135deg, #eef4ff, #e0eaff);
    color: var(--coach-primary);
}

.coach-card-meta {
    top: 20px;
    right: 20px;
    padding: 7px 11px;
    border-radius: 999px;
    background: #eef4ff;
    color: var(--coach-primary);
    font-size: 12px;
}

.coach-card h2 {
    font-size: 23px;
    margin-bottom: 10px;
}

.coach-card p {
    font-size: 14.5px;
    line-height: 1.55;
    margin-bottom: 22px;
    color: #52607a;
}

.coach-card a,
.coach-card button,
.coach-secondary-btn,
.coach-primary-btn {
    border-radius: 14px;
    min-height: 42px;
    padding: 11px 16px;
    font-size: 14px;
    font-weight: 850;
    box-shadow: none;
}

.coach-card a {
    color: #fff;
    background: linear-gradient(135deg, var(--coach-primary), #4f46e5);
}

.coach-card button:disabled {
    background: #f1f5ff;
    color: #6d8ff7;
    opacity: 1;
}

.coach-panel,
.coach-form-section {
    border-radius: 26px;
    border-color: rgba(226,232,240,.95);
    box-shadow: 0 18px 44px rgba(15,23,42,.06);
}

.coach-form input,
.coach-form select,
.coach-form textarea {
    border-radius: 14px;
    border-color: #dfe5ef;
    min-height: 42px;
}

.coach-form select,
.coach-form select option,
.coach-form input::placeholder,
.coach-form textarea::placeholder {
    font-size: 12px !important;
    font-weight: 500;
}

@media (max-width: 1180px) {
    .coach-cards-grid,
    .coach-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
    .coach-main { max-width: none; padding: 22px; }
    .coach-topbar { padding: 22px; }
    .coach-stats-grid,
    .coach-cards-grid { grid-template-columns: 1fr; }
    .coach-card { min-height: auto; }
}


/* v0.4.0 - SaaS PRO UI */
:root {
    --coach-bg: #f6f8fc;
    --coach-card: #ffffff;
    --coach-text: #07111f;
    --coach-muted: #667085;
    --coach-primary: #3b5bff;
    --coach-primary-dark: #283fd6;
    --coach-border: #dfe7f3;
    --coach-sidebar: #081225;
    --coach-success: #12b76a;
    --coach-warning: #f79009;
}
.coach-app {
    grid-template-columns: 272px minmax(0, 1fr);
    background:
        radial-gradient(circle at 0% 0%, rgba(59,91,255,.10), transparent 27%),
        radial-gradient(circle at 100% 0%, rgba(18,183,106,.08), transparent 26%),
        linear-gradient(180deg, #fbfdff 0%, #eef4fb 100%);
}
.coach-main { max-width: 1440px; padding: 30px 40px 56px; }
.coach-sidebar {
    background:
        radial-gradient(circle at 18% 2%, rgba(86,119,255,.34), transparent 26%),
        linear-gradient(180deg, #081225 0%, #111a30 100%);
    padding: 24px 22px;
}
.coach-logo { border-radius: 16px; }
.coach-sidebar-brand { border-bottom: 1px solid rgba(255,255,255,.10); padding-bottom: 22px; }
.coach-nav { gap: 9px; }
.coach-nav a { font-size: 14px; padding: 12px 14px; opacity: .94; }
.coach-nav a.active { background: rgba(255,255,255,.13); box-shadow: inset 0 0 0 1px rgba(255,255,255,.10); }
.coach-nav-icon { background: rgba(255,255,255,.08); border-radius: 10px; width: 30px; height: 30px; align-items: center; }
.coach-topbar {
    align-items: center;
    margin-bottom: 22px;
    border-radius: 30px;
    padding: 22px 24px;
    background: rgba(255,255,255,.78);
    border: 1px solid rgba(223,231,243,.90);
    box-shadow: 0 18px 50px rgba(15,23,42,.06);
    backdrop-filter: blur(14px);
}
.coach-topbar h1 { font-size: 32px; letter-spacing: -.05em; }
.coach-topbar p { font-size: 14px; }
.coach-date-pill,
.coach-user-pill,
.coach-soft-pill {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 38px; padding: 0 14px; border-radius: 999px;
    background: #fff; border: 1px solid var(--coach-border);
    font-size: 13px; font-weight: 850; color: #344054;
    box-shadow: 0 10px 25px rgba(15,23,42,.05);
}
.coach-soft-pill { background: #eef4ff; color: var(--coach-primary); border-color: #dbe7ff; }
.coach-hero-dashboard {
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
    padding: 30px; border-radius: 32px; margin-bottom: 18px;
    background:
        linear-gradient(135deg, rgba(59,91,255,.95), rgba(91,65,255,.88)),
        radial-gradient(circle at 85% 20%, rgba(255,255,255,.26), transparent 25%);
    color: #fff; box-shadow: 0 24px 70px rgba(59,91,255,.24);
    overflow: hidden; position: relative;
}
.coach-hero-dashboard:after { content:""; position:absolute; right:-70px; bottom:-90px; width:240px; height:240px; border-radius:50%; background:rgba(255,255,255,.12); }
.coach-hero-dashboard .coach-kicker { color: rgba(255,255,255,.78); }
.coach-hero-dashboard h2 { margin: 0 0 8px; max-width: 680px; font-size: 30px; line-height: 1.06; letter-spacing: -.045em; }
.coach-hero-dashboard p { margin: 0; max-width: 650px; color: rgba(255,255,255,.82); font-size: 15px; }
.coach-hero-actions { display:flex; gap:10px; align-items:center; z-index:1; }
.coach-hero-actions .coach-primary-btn { background:#fff; color: var(--coach-primary); box-shadow: 0 18px 38px rgba(0,0,0,.12); }
.coach-stats-grid-pro { gap: 14px; margin-bottom: 18px; }
.coach-stat { padding: 18px 20px; border-radius: 24px; background: rgba(255,255,255,.86); box-shadow: 0 14px 40px rgba(15,23,42,.055); }
.coach-stat span { font-size: 12px; text-transform: uppercase; letter-spacing:.04em; }
.coach-stat strong { font-size: 34px; color: #07111f; }
.coach-stat small { display:block; margin-top:8px; color: var(--coach-muted); font-weight:700; }
.coach-dashboard-layout { display:grid; grid-template-columns: minmax(0,1fr) 340px; gap:18px; align-items:start; }
.coach-modules-panel,
.coach-insights-panel {
    background: rgba(255,255,255,.72); border:1px solid rgba(223,231,243,.9); border-radius: 30px; padding: 22px;
    box-shadow: 0 18px 55px rgba(15,23,42,.055); backdrop-filter: blur(14px);
}
.coach-section-heading { display:flex; align-items:center; justify-content:space-between; margin-bottom:16px; }
.coach-section-heading h2 { margin:0; font-size:20px; letter-spacing:-.035em; }
.coach-section-heading.compact { display:block; }
.coach-cards-grid-pro { grid-template-columns: repeat(2, minmax(220px, 1fr)); gap: 14px; }
.coach-card-pro {
    min-height: 190px; padding: 20px; border-radius: 26px;
    background: linear-gradient(180deg,#fff 0%,#f9fbff 100%);
    box-shadow: 0 14px 40px rgba(15,23,42,.06);
    display:flex; flex-direction:column;
}
.coach-card-pro:hover { transform: translateY(-4px); box-shadow: 0 24px 60px rgba(15,23,42,.10); }
.coach-card-top { display:flex; align-items:center; justify-content:space-between; margin-bottom: 18px; }
.coach-card-pro .coach-card-icon { margin:0; width:46px; height:46px; border-radius:16px; background:linear-gradient(135deg,#eef4ff,#ffffff); box-shadow: inset 0 0 0 1px #e4ebf7; }
.coach-card-pro .coach-card-meta { position: static; font-size: 11px; }
.coach-card-pro h2 { font-size: 22px; margin-bottom: 8px; }
.coach-card-pro p { font-size: 14px; line-height: 1.45; margin-bottom: 18px; }
.coach-card-footer { margin-top:auto; display:flex; align-items:center; justify-content:space-between; gap:12px; border-top:1px solid #eef2f7; padding-top:14px; }
.coach-card-footer strong { font-size: 20px; letter-spacing:-.04em; }
.coach-card-footer a { background: var(--coach-primary); color:#fff; border-radius: 999px; padding: 9px 13px; }
.coach-card-footer button { border-radius: 999px; padding: 9px 13px; }
.coach-recent-list { display:grid; gap:10px; }
.coach-recent-item { display:flex; align-items:center; gap:12px; padding:12px; border:1px solid #edf1f7; background:#fff; border-radius:18px; }
.coach-recent-avatar { width:38px; height:38px; border-radius:14px; background:#eef4ff; color:var(--coach-primary); display:grid; place-items:center; font-weight:900; }
.coach-recent-item strong { display:block; font-size:13px; }
.coach-recent-item span { display:block; margin-top:2px; font-size:12px; color:var(--coach-muted); }
.coach-empty-state { padding:18px; border-radius:18px; background:#f8fafc; color:var(--coach-muted); font-weight:700; }
.coach-next-box { margin-top:14px; padding:16px; border-radius:22px; background:linear-gradient(135deg,#f0fdf4,#ffffff); border:1px solid #dcfce7; }
.coach-next-box span { display:block; color:#027a48; font-size:12px; text-transform:uppercase; letter-spacing:.04em; font-weight:900; }
.coach-next-box strong { display:block; margin-top:6px; font-size:16px; }
.coach-next-box p { margin:6px 0 0; color:var(--coach-muted); font-size:13px; line-height:1.4; }
.coach-panel { border-radius: 28px; }
.coach-form-section { border-radius: 24px; }
@media (max-width: 1180px) { .coach-dashboard-layout { grid-template-columns: 1fr; } .coach-cards-grid-pro { grid-template-columns: repeat(2,minmax(180px,1fr)); } }
@media (max-width: 820px) { .coach-main { padding: 20px; } .coach-hero-dashboard { flex-direction:column; align-items:flex-start; } .coach-cards-grid-pro { grid-template-columns: 1fr; } .coach-hero-actions { flex-wrap:wrap; } }

/* v0.4.1 - Minimal SaaS UI real */
:root {
    --coach-bg: #f7f9fc;
    --coach-card: #ffffff;
    --coach-text: #101828;
    --coach-muted: #667085;
    --coach-primary: #3157f6;
    --coach-primary-dark: #2444d8;
    --coach-border: #e4e9f2;
    --coach-sidebar: #0b1324;
}
html, body { background: var(--coach-bg) !important; }
.coach-app {
    grid-template-columns: 272px minmax(0, 1fr);
    background: #f7f9fc;
}
.coach-sidebar {
    padding: 26px 22px;
    background: linear-gradient(180deg, #0b1324 0%, #101a31 100%);
    box-shadow: inset -1px 0 0 rgba(255,255,255,.08);
}
.coach-logo {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    box-shadow: none;
}
.coach-sidebar-brand {
    padding: 0 4px 22px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.coach-sidebar-brand strong { font-size: 16px; }
.coach-sidebar-brand span { font-size: 12.5px; color: #b8c2d5; }
.coach-nav { gap: 6px; }
.coach-nav a,
.coach-sidebar-footer a {
    min-height: 44px;
    padding: 10px 12px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 750;
    color: #cbd5e1;
    border: 1px solid transparent;
}
.coach-nav-icon {
    width: 28px;
    height: 28px;
    border-radius: 10px;
    background: rgba(255,255,255,.07);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.coach-nav a:hover,
.coach-nav a.active {
    background: rgba(255,255,255,.09);
    border-color: rgba(255,255,255,.10);
    transform: none;
}
.coach-sidebar-footer { gap: 10px; }
.coach-mini-user {
    padding: 11px;
    border-radius: 16px;
    background: rgba(255,255,255,.065) !important;
}
.coach-logout {
    justify-content: center;
    min-height: 42px;
    background: rgba(255,255,255,.055) !important;
}
.coach-main {
    max-width: 1180px;
    width: 100%;
    margin: 0 auto;
    padding: 42px 48px 64px;
    background: transparent !important;
    box-sizing: border-box;
}
.coach-topbar {
    padding: 0;
    margin-bottom: 34px;
    background: transparent;
    border: 0;
    box-shadow: none;
    border-radius: 0;
    backdrop-filter: none;
}
.coach-topbar h1 {
    font-size: 34px;
    line-height: 1.08;
    letter-spacing: -.045em;
    color: var(--coach-text);
}
.coach-topbar p {
    font-size: 14.5px;
    color: var(--coach-muted);
}
.coach-topbar-actions { gap: 8px; }
.coach-date-pill,
.coach-user-pill,
.coach-soft-pill {
    min-height: 36px;
    padding: 0 13px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--coach-border);
    color: #475467;
    box-shadow: none;
    font-size: 12.5px;
}
.coach-kicker {
    margin-bottom: 8px;
    font-size: 11px;
    letter-spacing: .12em;
    color: var(--coach-primary);
}
.coach-dashboard-intro {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 22px;
}
.coach-dashboard-intro h2 {
    margin: 0 0 6px;
    font-size: 24px;
    line-height: 1.15;
    letter-spacing: -.035em;
    color: var(--coach-text);
}
.coach-dashboard-intro p {
    margin: 0;
    max-width: 620px;
    color: var(--coach-muted);
    font-size: 14.5px;
    line-height: 1.55;
}
.coach-primary-btn,
.coach-secondary-btn,
.coach-card a,
.coach-card button {
    min-height: 42px;
    border-radius: 13px;
    padding: 0 16px;
    font-size: 14px;
    font-weight: 800;
    box-shadow: none;
}
.coach-primary-btn {
    background: var(--coach-primary);
    color: #fff;
}
.coach-primary-btn:hover { background: var(--coach-primary-dark); }
.coach-stats-grid-clean,
.coach-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 22px;
}
.coach-stat {
    min-height: 118px;
    padding: 24px;
    border-radius: 24px;
    background: #fff;
    border: 1px solid var(--coach-border);
    box-shadow: 0 10px 32px rgba(16,24,40,.045);
    justify-content: space-between;
}
.coach-stat span {
    margin: 0;
    color: #475467;
    font-size: 11.5px;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: .07em;
    font-weight: 850;
}
.coach-stat strong {
    margin-top: 14px;
    display: block;
    color: var(--coach-text);
    font-size: 32px;
    letter-spacing: -.04em;
}
.coach-stat small {
    margin-top: 8px;
    display: block;
    color: var(--coach-muted);
    font-size: 12.5px;
    font-weight: 650;
}
.coach-modules-panel-clean,
.coach-modules-panel {
    width: 100%;
    padding: 28px;
    border-radius: 28px;
    background: #fff;
    border: 1px solid var(--coach-border);
    box-shadow: 0 16px 44px rgba(16,24,40,.055);
    box-sizing: border-box;
}
.coach-dashboard-layout,
.coach-insights-panel,
.coach-hero-dashboard { display: none !important; }
.coach-section-heading {
    margin-bottom: 22px;
    align-items: flex-end;
}
.coach-section-heading h2 {
    margin: 0;
    font-size: 22px;
    line-height: 1.15;
    letter-spacing: -.035em;
    color: var(--coach-text);
}
.coach-cards-grid-clean,
.coach-cards-grid,
.coach-cards-grid-pro {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
}
.coach-card-clean,
.coach-card,
.coach-card-pro {
    min-height: 245px;
    padding: 24px;
    border-radius: 24px;
    background: #fff;
    border: 1px solid var(--coach-border);
    box-shadow: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow: hidden;
}
.coach-card-clean:hover,
.coach-card:hover,
.coach-card-pro:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 38px rgba(16,24,40,.07);
}
.coach-card-clean-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 26px;
}
.coach-card-clean .coach-card-icon,
.coach-card .coach-card-icon,
.coach-card-pro .coach-card-icon {
    width: 42px;
    height: 42px;
    margin: 0;
    border-radius: 14px;
    background: #f3f6ff;
    color: var(--coach-primary);
    box-shadow: none;
    font-size: 20px;
}
.coach-card-clean .coach-card-meta,
.coach-card .coach-card-meta,
.coach-card-pro .coach-card-meta {
    position: static;
    padding: 6px 10px;
    border-radius: 999px;
    background: #f3f6ff;
    color: var(--coach-primary);
    font-size: 11px;
    line-height: 1;
    font-weight: 850;
}
.coach-card-clean-body { flex: 1; }
.coach-card-clean h2,
.coach-card h2,
.coach-card-pro h2 {
    margin: 0 0 10px;
    font-size: 21px;
    line-height: 1.2;
    letter-spacing: -.035em;
    color: var(--coach-text);
}
.coach-card-clean p,
.coach-card p,
.coach-card-pro p {
    margin: 0;
    color: var(--coach-muted);
    font-size: 14px;
    line-height: 1.55;
}
.coach-card-clean-action {
    margin-top: 28px;
}
.coach-card-clean-action a,
.coach-card-clean-action button {
    width: 100%;
    background: #f3f6ff;
    color: var(--coach-primary);
    border: 0;
    text-decoration: none;
}
.coach-card-clean.is-available .coach-card-clean-action a {
    background: var(--coach-primary);
    color: #fff;
}
.coach-card-clean-action button:disabled {
    opacity: 1;
    cursor: not-allowed;
}
.coach-panel,
.coach-form-section {
    border-radius: 24px;
    border: 1px solid var(--coach-border);
    box-shadow: 0 12px 34px rgba(16,24,40,.05);
}
.coach-panel { padding: 28px; }
.coach-panel-header-pro {
    background: #fff;
    border-color: var(--coach-border);
    padding: 0 0 22px;
    border-radius: 0;
    border-width: 0 0 1px;
}
.coach-player-panel { padding: 28px; }
.coach-form-section { padding: 26px; }
.coach-form-section-title { margin-bottom: 22px; }
.coach-form-section-title h3 { font-size: 18px; }
.coach-form-grid { gap: 18px; }
.coach-form input,
.coach-form select,
.coach-form textarea {
    min-height: 44px;
    border-radius: 13px;
    border-color: #dfe5ef;
    font-size: 13.5px;
}
.coach-form select,
.coach-form select option,
.coach-form input::placeholder,
.coach-form textarea::placeholder {
    font-size: 12px !important;
    font-weight: 500;
}
@media (max-width: 1180px) {
    .coach-main { max-width: none; padding: 34px 34px 54px; }
    .coach-cards-grid-clean,
    .coach-cards-grid,
    .coach-cards-grid-pro,
    .coach-stats-grid-clean,
    .coach-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
    .coach-app { grid-template-columns: 1fr; position: relative; overflow: visible; }
    .coach-main { padding: 24px; }
    .coach-topbar,
    .coach-dashboard-intro { flex-direction: column; align-items: flex-start; }
    .coach-cards-grid-clean,
    .coach-cards-grid,
    .coach-cards-grid-pro,
    .coach-stats-grid-clean,
    .coach-stats-grid { grid-template-columns: 1fr; }
    .coach-card-clean,
    .coach-card,
    .coach-card-pro { min-height: auto; }
}

/* v0.5.0 - Premium SaaS UI rebuilt from the approved mockup */
:root {
    --coach-bg: #f6f8fd;
    --coach-surface: #ffffff;
    --coach-surface-soft: #f8fbff;
    --coach-text: #101828;
    --coach-heading: #07111f;
    --coach-muted: #667085;
    --coach-primary: #3157f6;
    --coach-primary-2: #4f46e5;
    --coach-border: #e4eaf5;
    --coach-sidebar: #071225;
    --coach-shadow: 0 18px 48px rgba(16, 24, 40, .07);
    --coach-shadow-soft: 0 10px 28px rgba(16, 24, 40, .045);
}

html, body { background: var(--coach-bg) !important; }
body .coach-app { font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }

.coach-app {
    grid-template-columns: 246px minmax(0, 1fr) !important;
    background:
        radial-gradient(circle at 16% 4%, rgba(49, 87, 246, .06), transparent 28%),
        radial-gradient(circle at 94% 0%, rgba(124, 58, 237, .06), transparent 25%),
        var(--coach-bg) !important;
}

.coach-sidebar {
    padding: 22px 17px !important;
    background:
        radial-gradient(circle at 18% 0%, rgba(49, 87, 246, .28), transparent 26%),
        linear-gradient(180deg, #071225 0%, #0d182d 100%) !important;
    box-shadow: inset -1px 0 0 rgba(255,255,255,.07) !important;
}

.coach-sidebar-brand {
    padding: 0 4px 24px !important;
    margin-bottom: 4px;
    border-bottom: 1px solid rgba(255,255,255,.08) !important;
    gap: 12px !important;
}
.coach-logo { width: 40px !important; height: 40px !important; border-radius: 13px !important; font-size: 13px; background: linear-gradient(135deg,#2563eb,#5b4bff) !important; }
.coach-sidebar-brand strong { font-size: 15px !important; letter-spacing: -.02em; color: #fff; }
.coach-sidebar-brand span { font-size: 12px !important; color: #b8c4d8 !important; }

.coach-nav { gap: 7px !important; margin-top: 0; }
.coach-nav a,
.coach-sidebar-footer a {
    min-height: 40px !important;
    padding: 9px 12px !important;
    border-radius: 10px !important;
    color: #cbd5e1 !important;
    font-size: 13px !important;
    font-weight: 760 !important;
    letter-spacing: -.01em;
    border: 1px solid transparent !important;
    opacity: 1 !important;
}
.coach-nav a.active {
    color: #fff !important;
    background: linear-gradient(135deg, rgba(49,87,246,.95), rgba(79,70,229,.82)) !important;
    box-shadow: 0 14px 34px rgba(49,87,246,.23) !important;
}
.coach-nav a:not(.active):hover {
    background: rgba(255,255,255,.08) !important;
    color: #fff !important;
}
.coach-nav-disabled { opacity: .72 !important; cursor: default !important; }
.coach-nav-icon {
    width: 24px !important;
    height: 24px !important;
    border-radius: 8px !important;
    background: transparent !important;
    font-size: 15px;
}

.coach-sidebar-footer { gap: 10px !important; }
.coach-mini-user {
    padding: 10px !important;
    border-radius: 13px !important;
    background: rgba(255,255,255,.075) !important;
    border-color: rgba(255,255,255,.09) !important;
}
.coach-avatar { width: 34px !important; height: 34px !important; font-size: 14px; }
.coach-mini-user strong { font-size: 12.5px !important; color: #fff; }
.coach-mini-user span { font-size: 11.5px !important; color: #b8c4d8 !important; }
.coach-logout { justify-content: center !important; background: rgba(255,255,255,.06) !important; }

.coach-main {
    max-width: 1280px !important;
    width: 100% !important;
    padding: 22px 34px 42px !important;
    margin: 0 auto !important;
    background: transparent !important;
}

.coach-premium-topbar,
.coach-topbar {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 26px !important;
    padding: 0 !important;
    margin: 0 0 28px !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
}
.coach-topbar-title h1,
.coach-topbar h1 {
    font-size: 26px !important;
    line-height: 1.1 !important;
    margin: 0 0 6px !important;
    color: var(--coach-heading) !important;
    letter-spacing: -.045em !important;
}
.coach-topbar-title p,
.coach-topbar p { margin: 0 !important; color: #55627a !important; font-size: 14px !important; }
.coach-premium-actions { display: flex !important; align-items: center !important; gap: 14px !important; }
.coach-search-pill,
.coach-icon-pill,
.coach-date-pill {
    min-height: 44px !important;
    border-radius: 12px !important;
    background: #fff !important;
    border: 1px solid var(--coach-border) !important;
    box-shadow: 0 12px 28px rgba(16,24,40,.055) !important;
    color: #52607a !important;
}
.coach-search-pill { width: 260px; padding: 0 14px; display:flex; align-items:center; justify-content:space-between; font-size:12.5px; }
.coach-search-pill strong { font-size: 22px; color:#24314a; line-height: 0; transform: translateY(-1px); }
.coach-icon-pill { width: 48px; display:grid; place-items:center; font-size: 17px; }
.coach-date-pill { padding: 0 16px !important; gap: 8px; display: inline-flex !important; align-items:center; font-weight: 850 !important; font-size: 12.5px !important; }
.coach-date-pill small { display:block; color:#667085; font-weight:700; font-size: 10.5px; margin-left: 4px; }
.coach-user-pill { display: none !important; }

/* Dashboard */
.coach-dashboard-intro {
    display: none !important;
}
.coach-stats-grid-clean,
.coach-stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 18px !important;
    margin-bottom: 24px !important;
}
.coach-stat {
    min-height: 116px !important;
    padding: 22px 24px !important;
    border-radius: 18px !important;
    background: rgba(255,255,255,.92) !important;
    border: 1px solid var(--coach-border) !important;
    box-shadow: var(--coach-shadow-soft) !important;
    display: grid !important;
    grid-template-columns: 54px minmax(0,1fr) !important;
    grid-template-areas: "icon label" "icon value" !important;
    column-gap: 18px !important;
    align-items: center !important;
    justify-content: center !important;
}
.coach-stat:before {
    content: "👥";
    grid-area: icon;
    width: 52px;
    height: 52px;
    border-radius: 15px;
    display: grid;
    place-items: center;
    color: var(--coach-primary);
    background: #edf2ff;
    font-size: 24px;
}
.coach-stat:nth-child(2):before { content: "🛡️"; background:#eafaf4; color:#039855; }
.coach-stat:nth-child(3):before { content: "🗓️"; background:#fff1e6; color:#f97316; }
.coach-stat:nth-child(4):before { content: "☑️"; background:#f3e8ff; color:#7c3aed; }
.coach-stat span {
    grid-area: label;
    margin: 0 !important;
    font-size: 13px !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    color: #263247 !important;
    font-weight: 850 !important;
    align-self: end;
}
.coach-stat strong {
    grid-area: value;
    margin: 0 !important;
    font-size: 28px !important;
    line-height: 1.05 !important;
    color: #07111f !important;
    align-self: start;
}
.coach-stat small {
    grid-area: value;
    align-self: end;
    margin: 24px 0 0 !important;
    font-size: 12px !important;
    color: #667085 !important;
}

.coach-modules-panel-clean,
.coach-modules-panel {
    padding: 24px !important;
    border-radius: 20px !important;
    background: rgba(255,255,255,.88) !important;
    border: 1px solid var(--coach-border) !important;
    box-shadow: var(--coach-shadow) !important;
}
.coach-section-heading { margin-bottom: 18px !important; }
.coach-section-heading h2 { font-size: 20px !important; letter-spacing: -.035em; }
.coach-kicker { color: var(--coach-primary) !important; font-size: 11px !important; letter-spacing: .16em !important; font-weight: 950 !important; }
.coach-cards-grid-clean,
.coach-cards-grid,
.coach-cards-grid-pro {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 18px !important;
}
.coach-card-clean,
.coach-card,
.coach-card-pro {
    min-height: 168px !important;
    padding: 22px !important;
    border-radius: 18px !important;
    background: #fff !important;
    border: 1px solid var(--coach-border) !important;
    box-shadow: none !important;
    display: grid !important;
    grid-template-columns: 56px minmax(0,1fr) !important;
    grid-template-rows: auto 1fr auto !important;
    column-gap: 16px !important;
    align-items: center !important;
}
.coach-card-clean-head {
    display: contents !important;
}
.coach-card-clean .coach-card-icon,
.coach-card .coach-card-icon,
.coach-card-pro .coach-card-icon {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 56px !important;
    height: 56px !important;
    border-radius: 17px !important;
    margin: 0 !important;
    background: #edf2ff !important;
    font-size: 25px !important;
}
.coach-card-clean:nth-child(2) .coach-card-icon { background:#eafaf4 !important; }
.coach-card-clean:nth-child(3) .coach-card-icon { background:#fff1e6 !important; }
.coach-card-clean:nth-child(4) .coach-card-icon { background:#f3e8ff !important; }
.coach-card-clean .coach-card-meta { display: none !important; }
.coach-card-clean-body { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.coach-card-clean h2,
.coach-card h2,
.coach-card-pro h2 {
    font-size: 17px !important;
    margin: 0 0 8px !important;
    line-height: 1.2 !important;
    letter-spacing: -.02em !important;
}
.coach-card-clean p,
.coach-card p,
.coach-card-pro p {
    font-size: 12.5px !important;
    line-height: 1.45 !important;
    margin: 0 !important;
    color: #596579 !important;
}
.coach-card-clean-action {
    grid-column: 1 / -1;
    grid-row: 3;
    margin-top: 20px !important;
}
.coach-card-clean-action a,
.coach-card-clean-action button {
    min-height: 38px !important;
    width: 100% !important;
    border-radius: 9px !important;
    font-size: 12.5px !important;
    font-weight: 850 !important;
}
.coach-card-clean.is-available .coach-card-clean-action a { background: linear-gradient(135deg, var(--coach-primary), var(--coach-primary-2)) !important; }
.coach-card-clean:nth-child(2) .coach-card-clean-action button { background:#eafaf4 !important; color:#039855 !important; }
.coach-card-clean:nth-child(3) .coach-card-clean-action button { background:#fff1e6 !important; color:#f97316 !important; }
.coach-card-clean:nth-child(4) .coach-card-clean-action button { background:#f3e8ff !important; color:#7c3aed !important; }

/* Players form */
.coach-module-toolbar {
    margin: 0 0 14px !important;
    display: flex !important;
    justify-content: space-between !important;
}
.coach-back-btn,
.coach-secondary-btn {
    border-radius: 10px !important;
    background: #fff !important;
    border: 1px solid var(--coach-border) !important;
    color: #344054 !important;
    box-shadow: var(--coach-shadow-soft) !important;
    min-height: 40px !important;
}
.coach-secondary-btn { background: var(--coach-primary) !important; color:#fff !important; }
.coach-player-panel {
    padding: 0 !important;
    border-radius: 18px !important;
    background: #fff !important;
    overflow: hidden !important;
    box-shadow: var(--coach-shadow) !important;
    border: 1px solid var(--coach-border) !important;
}
.coach-panel-header-pro {
    padding: 24px 28px 22px !important;
    border: 0 !important;
    border-bottom: 1px solid var(--coach-border) !important;
    background: #fff !important;
}
.coach-panel-header-pro h2 { font-size: 22px !important; }
.coach-panel-header-pro p { font-size: 13px !important; margin-bottom: 0 !important; }
.coach-player-form { display: block !important; }
.coach-player-layout {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    background: linear-gradient(90deg, #f8fbff 0%, #f8fbff 270px, #fff 270px, #fff 100%);
}
.coach-player-step-nav {
    padding: 22px 0;
    border-right: 1px solid var(--coach-border);
}
.coach-player-step-nav a {
    position: relative;
    display: grid;
    grid-template-columns: 34px minmax(0,1fr);
    gap: 12px;
    padding: 13px 22px;
    color: #344054;
    text-decoration: none;
    border-left: 3px solid transparent;
}
.coach-player-step-nav a.is-active,
.coach-player-step-nav a:hover {
    background: linear-gradient(90deg, rgba(49,87,246,.08), transparent);
    border-left-color: var(--coach-primary);
}
.coach-player-step-nav span {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: #eef2ff;
    color: var(--coach-primary);
    font-weight: 900;
    font-size: 12px;
}
.coach-player-step-nav a.is-active span { background: var(--coach-primary); color:#fff; }
.coach-player-step-nav strong { font-size: 12.5px; line-height: 1.2; align-self:end; }
.coach-player-step-nav small { grid-column: 2; display:block; margin-top: 3px; color:#667085; font-size: 11.5px; }
.coach-player-sections {
    padding: 22px;
    display: grid;
    gap: 18px;
}
.coach-form-section {
    padding: 24px !important;
    border-radius: 16px !important;
    background: #fff !important;
    border: 1px solid var(--coach-border) !important;
    box-shadow: 0 8px 28px rgba(16,24,40,.045) !important;
}
.coach-form-section:first-child {
    border-color: rgba(49,87,246,.25) !important;
    box-shadow: 0 14px 38px rgba(49,87,246,.08) !important;
}
.coach-form-section-title {
    margin-bottom: 22px !important;
    align-items: center !important;
}
.coach-form-section-title > span {
    width: 34px !important;
    height: 34px !important;
    border-radius: 12px !important;
    box-shadow: none !important;
}
.coach-form-section-title h3 { font-size: 18px !important; margin-bottom: 3px !important; }
.coach-form-section-title p { font-size: 12.5px !important; color: #667085 !important; }
.coach-form-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 16px 20px !important; }
.coach-form label { font-size: 12.5px !important; font-weight: 850 !important; color:#111827 !important; }
.coach-form input,
.coach-form select,
.coach-form textarea {
    min-height: 42px !important;
    margin-top: 7px !important;
    border-radius: 10px !important;
    border: 1px solid #dfe6f1 !important;
    background: #fff !important;
    font-size: 13px !important;
    box-shadow: inset 0 1px 0 rgba(16,24,40,.02) !important;
}
.coach-form input:focus,
.coach-form select:focus,
.coach-form textarea:focus {
    border-color: rgba(49,87,246,.55) !important;
    box-shadow: 0 0 0 4px rgba(49,87,246,.08) !important;
}
.coach-field-full { grid-column: 1 / -1 !important; }
.coach-checkbox-grid { grid-template-columns: repeat(5, minmax(0,1fr)) !important; border-radius: 12px !important; background:#f8fbff !important; }
.coach-check-option { background:#fff !important; border-radius: 10px !important; font-size: 12px !important; }
.coach-sticky-actions {
    position: sticky !important;
    bottom: 0 !important;
    z-index: 10 !important;
    margin: 0 -22px -22px !important;
    padding: 14px 22px !important;
    background: rgba(255,255,255,.92) !important;
    border-top: 1px solid var(--coach-border) !important;
    backdrop-filter: blur(12px) !important;
}
.coach-autosave-note { margin-left:auto; color:#667085; font-size: 12.5px; }
.coach-panel:not(.coach-player-panel) {
    margin-top: 22px !important;
    border-radius: 18px !important;
    padding: 24px !important;
    box-shadow: var(--coach-shadow-soft) !important;
}

@media (max-width: 1180px) {
    .coach-main { padding: 24px !important; }
    .coach-stats-grid-clean, .coach-stats-grid, .coach-cards-grid-clean, .coach-cards-grid, .coach-cards-grid-pro { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .coach-player-layout { grid-template-columns: 1fr; background:#fff; }
    .coach-player-step-nav { border-right:0; border-bottom:1px solid var(--coach-border); display:grid; grid-template-columns: repeat(2,minmax(0,1fr)); padding: 12px; }
    .coach-player-step-nav a { border-left:0; border-radius:12px; padding: 12px; }
}
@media (max-width: 820px) {
    .coach-app { grid-template-columns: 1fr !important; position: relative !important; overflow: visible !important; }
    .coach-premium-topbar, .coach-topbar, .coach-premium-actions, .coach-module-toolbar { flex-direction: column !important; align-items: stretch !important; }
    .coach-search-pill { width: auto !important; }
    .coach-stats-grid-clean, .coach-stats-grid, .coach-cards-grid-clean, .coach-cards-grid, .coach-cards-grid-pro, .coach-form-grid { grid-template-columns: 1fr !important; }
    .coach-player-step-nav { grid-template-columns: 1fr; }
    .coach-checkbox-grid { grid-template-columns: repeat(2, minmax(0,1fr)) !important; }
    .coach-autosave-note { margin-left: 0; }
}

/* v0.7.6 - Mobile global layout fix for all Coach Digital panels */
@media (max-width: 820px) {
    html,
    body {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
    }

    body .coach-app {
        position: relative !important;
        inset: auto !important;
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        min-height: 100vh !important;
        height: auto !important;
        overflow: visible !important;
        background: var(--coach-bg) !important;
    }

    body .coach-sidebar {
        width: 100% !important;
        max-width: 100% !important;
        min-height: auto !important;
        box-sizing: border-box !important;
        padding: 16px !important;
        border-radius: 0 0 24px 24px !important;
        gap: 14px !important;
    }

    body .coach-sidebar-brand {
        padding-bottom: 8px !important;
    }

    body .coach-sidebar-brand strong {
        font-size: 15px !important;
    }

    body .coach-nav {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }

    body .coach-nav a,
    body .coach-sidebar-footer a {
        min-height: 44px !important;
        padding: 10px 11px !important;
        border-radius: 12px !important;
        font-size: 13px !important;
        justify-content: flex-start !important;
        transform: none !important;
        box-sizing: border-box !important;
    }

    body .coach-sidebar-footer {
        margin-top: 8px !important;
        gap: 8px !important;
    }

    body .coach-mini-user {
        padding: 10px !important;
    }

    body .coach-main {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 18px 14px 28px !important;
        height: auto !important;
        min-height: 0 !important;
        overflow: visible !important;
    }

    body .coach-topbar,
    body .coach-premium-topbar,
    body .coach-dashboard-intro,
    body .coach-panel-header,
    body .coach-panel-header-pro,
    body .coach-section-heading,
    body .coach-module-toolbar,
    body .coach-topbar-actions,
    body .coach-premium-actions,
    body .coach-actions,
    body .coach-filter-actions {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    body .coach-topbar h1,
    body .coach-dashboard-intro h2,
    body .coach-panel-header h2,
    body .coach-panel-header-pro h2 {
        font-size: 24px !important;
        line-height: 1.15 !important;
        letter-spacing: -.02em !important;
    }

    body .coach-topbar p,
    body .coach-dashboard-intro p,
    body .coach-panel-header p,
    body .coach-panel-header-pro p {
        font-size: 13px !important;
        line-height: 1.45 !important;
    }

    body .coach-search-pill,
    body .coach-date-pill,
    body .coach-icon-pill,
    body .coach-primary-btn,
    body .coach-secondary-btn,
    body .coach-back-btn,
    body button,
    body input[type="submit"] {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        justify-content: center !important;
        text-align: center !important;
        white-space: normal !important;
    }

    body .coach-stats-grid,
    body .coach-stats-grid-clean,
    body .coach-kpi-grid,
    body .coach-cards-grid,
    body .coach-cards-grid-clean,
    body .coach-cards-grid-pro,
    body .coach-form-grid,
    body .coach-filters-grid,
    body .coach-config-grid,
    body .coach-settings-grid,
    body .coach-teams-grid,
    body .coach-dashboard-layout,
    body .coach-player-layout {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    body .coach-panel,
    body .coach-player-panel,
    body .coach-modules-panel,
    body .coach-card,
    body .coach-card-clean,
    body .coach-stat,
    body .coach-form-section,
    body .coach-table-card,
    body .coach-config-card,
    body .coach-team-card {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        padding: 16px !important;
        border-radius: 16px !important;
        overflow: visible !important;
    }

    body .coach-player-panel,
    body .coach-panel.coach-player-panel {
        padding: 0 !important;
        overflow: hidden !important;
    }

    body .coach-player-layout {
        background: #fff !important;
    }

    body .coach-player-step-nav {
        display: grid !important;
        grid-template-columns: 1fr !important;
        width: 100% !important;
        padding: 10px !important;
        border-right: 0 !important;
        border-bottom: 1px solid var(--coach-border) !important;
        box-sizing: border-box !important;
    }

    body .coach-player-sections {
        padding: 14px !important;
    }

    body .coach-form-section-title {
        display: grid !important;
        grid-template-columns: 36px minmax(0, 1fr) !important;
        gap: 10px !important;
        align-items: start !important;
    }

    body .coach-form label,
    body .coach-form input,
    body .coach-form select,
    body .coach-form textarea,
    body .coach-panel input,
    body .coach-panel select,
    body .coach-panel textarea {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    body .coach-checkbox-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 8px !important;
        padding: 10px !important;
    }

    body .coach-sticky-actions {
        position: static !important;
        margin: 12px 0 0 !important;
        padding: 14px !important;
        border-radius: 14px !important;
    }

    body .coach-table-wrap,
    body .coach-table-responsive,
    body .coach-scroll-x,
    body .coach-panel table {
        width: 100% !important;
        max-width: 100% !important;
    }

    body .coach-table-wrap,
    body .coach-table-responsive,
    body .coach-scroll-x {
        display: block !important;
        overflow-x: auto !important;
        overflow-y: visible !important;
        -webkit-overflow-scrolling: touch !important;
        border-radius: 14px !important;
    }

    body .coach-table,
    body table.coach-table,
    body .coach-panel table {
        min-width: 720px !important;
        width: max-content !important;
        border-collapse: collapse !important;
    }

    body .coach-table th,
    body .coach-table td,
    body .coach-panel table th,
    body .coach-panel table td {
        white-space: nowrap !important;
        font-size: 12.5px !important;
        padding: 11px 10px !important;
    }

    body .coach-table td:last-child,
    body .coach-panel table td:last-child {
        white-space: normal !important;
        min-width: 150px !important;
    }

    body .coach-attendance-list,
    body .coach-attendance-row,
    body .coach-attendance-actions,
    body .coach-presence-actions,
    body .coach-absence-actions {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    body .coach-attendance-actions,
    body .coach-presence-actions,
    body .coach-absence-actions {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }

    body .coach-attendance-actions button,
    body .coach-presence-actions button,
    body .coach-absence-actions button {
        width: 100% !important;
    }

    body .coach-mobile-scroll-note {
        display: block !important;
        margin: 8px 0 10px !important;
        color: var(--coach-muted) !important;
        font-size: 12px !important;
        font-weight: 750 !important;
    }
}

@media (max-width: 460px) {
    body .coach-nav {
        grid-template-columns: 1fr !important;
    }

    body .coach-main {
        padding: 14px 10px 24px !important;
    }

    body .coach-panel,
    body .coach-card,
    body .coach-stat,
    body .coach-form-section {
        padding: 14px !important;
    }
}

/* v0.7.7 - Mobile UX rebuild global */
@media (max-width: 640px) {
  body .coach-sidebar { max-width: 100% !important; }
  body .coach-nav-disabled { display: none !important; }

  /* Jugadores > Datos deportivos: categorias/equipos legibles en celular */
  body .coach-category-field,
  body .coach-checkbox-grid,
  body .coach-check-option { width: 100% !important; max-width: 100% !important; box-sizing: border-box !important; }
  body .coach-checkbox-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    padding: 10px !important;
    overflow: hidden !important;
  }
  body .coach-check-option {
    display: grid !important;
    grid-template-columns: 42px minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 12px !important;
    min-height: 64px !important;
    padding: 12px 14px !important;
    overflow: hidden !important;
    text-align: left !important;
  }
  body .coach-check-option input {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
    justify-self: center !important;
    margin: 0 !important;
  }
  body .coach-check-option span {
    display: block !important;
    min-width: 0 !important;
    max-width: 100% !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
    line-height: 1.18 !important;
    font-size: 15px !important;
  }

  /* Tablas de asistencia y ranking como cards mobile */
  body .coach-attendance-form .coach-table-wrap,
  body .coach-attendance-ranking .coach-table-wrap {
    overflow: visible !important;
    border: 0 !important;
    background: transparent !important;
    padding: 0 !important;
  }
  body .coach-attendance-form .coach-table-wrap:before,
  body .coach-attendance-ranking .coach-table-wrap:before { display: none !important; }
  body .coach-attendance-table,
  body .coach-attendance-ranking-table,
  body .coach-attendance-table thead,
  body .coach-attendance-ranking-table thead,
  body .coach-attendance-table tbody,
  body .coach-attendance-ranking-table tbody,
  body .coach-attendance-table tr,
  body .coach-attendance-ranking-table tr,
  body .coach-attendance-table td,
  body .coach-attendance-ranking-table td {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  body .coach-attendance-table,
  body .coach-attendance-ranking-table { min-width: 0 !important; border: 0 !important; }
  body .coach-attendance-table thead,
  body .coach-attendance-ranking-table thead { display: none !important; }
  body .coach-attendance-table tr,
  body .coach-attendance-ranking-table tr {
    margin: 0 0 14px !important;
    padding: 14px !important;
    border: 1px solid #e8eef7 !important;
    border-radius: 18px !important;
    background: #fff !important;
    box-shadow: 0 10px 24px rgba(15,23,42,.045) !important;
  }
  body .coach-attendance-table tr.is-absent { background: #fff7ed !important; border-color: #fed7aa !important; }
  body .coach-attendance-table td,
  body .coach-attendance-ranking-table td {
    padding: 10px 0 !important;
    border: 0 !important;
  }
  body .coach-attendance-table td + td,
  body .coach-attendance-ranking-table td + td { border-top: 1px solid #eef2f7 !important; }
  body .coach-attendance-table td[data-label]:before,
  body .coach-attendance-ranking-table td[data-label]:before {
    content: attr(data-label);
    display: block;
    margin-bottom: 6px;
    font-size: 11px;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #94a3b8;
    font-weight: 900;
  }
  body .coach-attendance-table select,
  body .coach-attendance-table input,
  body .coach-attendance-table textarea {
    width: 100% !important;
    min-height: 48px !important;
    font-size: 16px !important;
    padding: 12px 14px !important;
    border-radius: 16px !important;
  }
  body .coach-attendance-table .coach-other-reason { margin-top: 10px !important; }
  body .coach-attendance-ranking-table td[data-label="Asistencia"] strong {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 68px !important;
    min-height: 42px !important;
    padding: 0 12px !important;
    border-radius: 999px !important;
    background: #eef2ff !important;
    color: #3155f6 !important;
    font-size: 20px !important;
  }
  body .coach-attendance-reasons { border-radius: 18px !important; padding: 16px !important; }
  body .coach-reason-bar { padding: 14px 0 !important; }
  body .coach-reason-bar span { font-size: 16px !important; }
  body .coach-reason-bar strong { font-size: 14px !important; padding: 6px 12px !important; }
}


/* v0.7.8 - Mobile Compact UX: carga de asistencia rápida desde celular */
@media (max-width: 640px) {
  html body .coach-app .coach-attendance-form .coach-panel,
  html body .coach-app .coach-attendance-metrics.coach-panel {
    padding: 12px !important;
  }

  html body .coach-app .coach-attendance-table tr,
  html body .coach-app .coach-attendance-ranking-table tr {
    margin: 0 0 10px !important;
    padding: 11px 12px !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 18px rgba(15,23,42,.035) !important;
  }

  html body .coach-app .coach-attendance-table td,
  html body .coach-app .coach-attendance-ranking-table td {
    padding: 7px 0 !important;
  }

  html body .coach-app .coach-attendance-table td + td,
  html body .coach-app .coach-attendance-ranking-table td + td {
    border-top: 1px solid #f1f5f9 !important;
  }

  html body .coach-app .coach-attendance-table td[data-label]:before,
  html body .coach-app .coach-attendance-ranking-table td[data-label]:before {
    margin-bottom: 5px !important;
    font-size: 9.5px !important;
    letter-spacing: .12em !important;
    color: #94a3b8 !important;
  }

  html body .coach-app .coach-attendance-table td[data-label="Jugador"] {
    padding-top: 2px !important;
    padding-bottom: 9px !important;
  }

  html body .coach-app .coach-attendance-table td[data-label="Jugador"] strong,
  html body .coach-app .coach-attendance-ranking-table td[data-label="Jugador"] strong {
    display: block !important;
    font-size: 15px !important;
    line-height: 1.18 !important;
    color: #111827 !important;
  }

  html body .coach-app .coach-attendance-table td[data-label="Jugador"] small,
  html body .coach-app .coach-attendance-ranking-table td[data-label="Jugador"] small {
    display: block !important;
    margin-top: 3px !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
    color: #6b7280 !important;
  }

  html body .coach-app .coach-attendance-table select,
  html body .coach-app .coach-attendance-table input,
  html body .coach-app .coach-attendance-table textarea {
    width: 100% !important;
    min-height: 38px !important;
    height: 38px !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
    padding: 8px 11px !important;
    border-radius: 13px !important;
  }

  html body .coach-app .coach-attendance-table input::placeholder,
  html body .coach-app .coach-attendance-table textarea::placeholder {
    font-size: 13px !important;
    color: #9ca3af !important;
  }

  html body .coach-app .coach-attendance-table .coach-other-reason {
    margin-top: 7px !important;
  }

  html body .coach-app .coach-attendance-ranking-table td[data-label="Asistencia"] strong {
    min-width: 58px !important;
    min-height: 34px !important;
    height: 34px !important;
    padding: 0 10px !important;
    font-size: 17px !important;
  }

  html body .coach-app .coach-attendance-ranking-table td[data-label="Presentes"],
  html body .coach-app .coach-attendance-ranking-table td[data-label="Ausentes"] {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    font-size: 14px !important;
  }

  html body .coach-app .coach-attendance-ranking-table td[data-label="Presentes"]:before,
  html body .coach-app .coach-attendance-ranking-table td[data-label="Ausentes"]:before {
    margin: 0 !important;
  }

  html body .coach-app .coach-attendance-reasons {
    padding: 14px !important;
    border-radius: 18px !important;
  }

  html body .coach-app .coach-attendance-reasons h3 {
    margin-bottom: 14px !important;
    font-size: 18px !important;
  }

  html body .coach-app .coach-reason-bar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    min-height: 44px !important;
    padding: 10px 0 !important;
    gap: 12px !important;
  }

  html body .coach-app .coach-reason-bar span {
    min-width: 0 !important;
    font-size: 15px !important;
    line-height: 1.15 !important;
    overflow-wrap: anywhere !important;
  }

  html body .coach-app .coach-reason-bar strong {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 34px !important;
    height: 28px !important;
    padding: 0 10px !important;
    border-radius: 999px !important;
    background: #eef2ff !important;
    color: #3155f6 !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    flex: 0 0 auto !important;
  }
}

/* v0.7.9 - Fix final Motivos de ausencia mobile */
.coach-attendance-reasons,
.coach-attendance-reasons * {
  box-sizing: border-box;
}
.coach-reason-main {
  min-width: 0;
  flex: 1 1 auto;
}
.coach-reason-main span,
.coach-reason-main small {
  display: block;
}
.coach-reason-main small {
  margin-top: 3px;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
}
@media (max-width: 640px) {
  html body .coach-app .coach-attendance-reasons {
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
    padding: 16px !important;
  }
  html body .coach-app .coach-attendance-reasons .coach-muted {
    display: block !important;
    padding: 12px 0 2px !important;
    font-size: 14px !important;
    line-height: 1.35 !important;
    color: #64748b !important;
  }
  html body .coach-app .coach-reason-bar {
    width: 100% !important;
    max-width: 100% !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    column-gap: 12px !important;
    min-height: 54px !important;
    padding: 12px 0 !important;
    border-bottom: 1px solid #eef2f7 !important;
  }
  html body .coach-app .coach-reason-bar:last-child {
    border-bottom: 0 !important;
  }
  html body .coach-app .coach-reason-main {
    min-width: 0 !important;
    width: 100% !important;
    overflow: hidden !important;
  }
  html body .coach-app .coach-reason-main span,
  html body .coach-app .coach-reason-bar > span {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    overflow-wrap: anywhere !important;
    font-size: 15px !important;
    line-height: 1.2 !important;
    color: #334155 !important;
    font-weight: 900 !important;
  }
  html body .coach-app .coach-reason-main small {
    display: block !important;
    margin-top: 4px !important;
    font-size: 11.5px !important;
    line-height: 1.2 !important;
    color: #94a3b8 !important;
    font-weight: 800 !important;
  }
  html body .coach-app .coach-reason-bar strong {
    position: static !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-width: 36px !important;
    max-width: none !important;
    height: 30px !important;
    padding: 0 11px !important;
    margin: 0 !important;
    border-radius: 999px !important;
    background: #eef2ff !important;
    color: #3155f6 !important;
    font-size: 13px !important;
    line-height: 1 !important;
    font-weight: 950 !important;
    white-space: nowrap !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    z-index: 1 !important;
  }
}


/* === Coach Digital Core v0.9.3 - Asistencia home KPI cards fix === */
.coach-attendance-overview-v91{
  display:block!important;
  padding:24px!important;
  border-radius:28px!important;
  background:#fff!important;
  border:1px solid #e7edf6!important;
  box-shadow:0 18px 45px rgba(15,23,42,.055)!important;
  margin:0 0 18px!important;
}
.coach-attendance-overview-header{margin-bottom:16px!important;}
.coach-attendance-overview-header h2{margin:4px 0 8px!important;font-size:30px!important;line-height:1.1!important;color:#0f172a!important;letter-spacing:-.035em!important;}
.coach-attendance-overview-header p{margin:0!important;color:#64748b!important;font-weight:650!important;}
.coach-attendance-global-grid-v92{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:14px!important;
  margin:18px 0!important;
}
.coach-attendance-global-grid-v92 article{
  display:block!important;
  min-width:0!important;
  padding:18px!important;
  border:1px solid #e8eef7!important;
  border-radius:22px!important;
  background:linear-gradient(135deg,#f8fbff,#fff)!important;
  box-shadow:0 10px 24px rgba(15,23,42,.035)!important;
}
.coach-attendance-global-grid-v92 span{display:block!important;font-size:11px!important;text-transform:uppercase!important;letter-spacing:.07em!important;color:#64748b!important;font-weight:900!important;margin:0!important;}
.coach-attendance-global-grid-v92 strong{display:block!important;margin:8px 0 4px!important;font-size:30px!important;line-height:1!important;color:#0f172a!important;letter-spacing:-.04em!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
.coach-attendance-global-grid-v92 small{display:block!important;color:#94a3b8!important;font-weight:800!important;margin:0!important;}
.coach-top-teams-v91{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:12px!important;margin-top:14px!important;}
.coach-top-team-card-v91{display:flex!important;align-items:center!important;gap:12px!important;padding:16px!important;border:1px solid #e8eef7!important;border-radius:22px!important;background:#fff!important;box-shadow:0 10px 24px rgba(15,23,42,.035)!important;}
.coach-top-team-medal{width:46px!important;height:46px!important;border-radius:16px!important;display:grid!important;place-items:center!important;background:#eef2ff!important;font-size:22px!important;flex:0 0 46px!important;}
.coach-top-team-card-v91 span,.coach-top-team-card-v91 small{display:block!important;color:#64748b!important;font-weight:800!important;margin:0!important;}
.coach-top-team-card-v91 strong{display:block!important;color:#0f172a!important;font-size:18px!important;margin:2px 0!important;}
.coach-empty-state-v91{display:grid!important;gap:4px!important;padding:16px!important;border:1px dashed #cbd5e1!important;border-radius:18px!important;background:#f8fafc!important;color:#64748b!important;margin-top:14px!important;}
.coach-empty-state-v91 strong{color:#0f172a!important;}
.coach-attendance-discipline-v91{display:block!important;padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important;margin:18px 0 0!important;}
.coach-discipline-section-title{display:grid!important;place-items:center!important;text-align:center!important;gap:6px!important;margin:4px 0 18px!important;padding:22px 18px!important;border:1px solid #c7d2fe!important;border-radius:22px!important;background:linear-gradient(135deg,#eef2ff 0%,#f8fbff 55%,#ffffff 100%)!important;box-shadow:0 14px 34px rgba(49,85,246,.08)!important;}
.coach-discipline-section-title span{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;padding:7px 13px!important;border-radius:999px!important;background:#fff!important;color:#3155f6!important;font-size:11px!important;text-transform:uppercase!important;letter-spacing:.14em!important;font-weight:900!important;box-shadow:0 8px 20px rgba(49,85,246,.08)!important;}
.coach-discipline-section-title span:before{content:"🏷️"!important;letter-spacing:0!important;font-size:13px!important;}
.coach-discipline-section-title h3{margin:0!important;font-size:26px!important;line-height:1.1!important;color:#0f172a!important;letter-spacing:-.04em!important;}
.coach-attendance-team-kpi-grid-v91{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:16px!important;align-items:stretch!important;}
.coach-attendance-team-kpi-card-v91{display:grid!important;grid-template-rows:auto auto auto auto auto!important;gap:14px!important;padding:20px!important;border:1px solid #e8eef7!important;border-radius:26px!important;background:#fff!important;box-shadow:0 16px 38px rgba(15,23,42,.055)!important;transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease!important;min-width:0!important;}
.coach-attendance-team-kpi-card-v91:hover{transform:translateY(-2px)!important;border-color:#b9c7ff!important;box-shadow:0 22px 50px rgba(15,23,42,.085)!important;}
.coach-team-card-head-v92{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;}
.coach-discipline-badge-v92,.coach-team-loads-v92{display:inline-flex!important;align-items:center!important;min-height:28px!important;padding:5px 10px!important;border-radius:999px!important;font-size:11px!important;font-weight:900!important;text-transform:uppercase!important;letter-spacing:.06em!important;line-height:1!important;}
.coach-discipline-badge-v92{background:#eef2ff!important;color:#3155f6!important;}
.coach-team-loads-v92{background:#f8fafc!important;color:#64748b!important;border:1px solid #edf2f7!important;}
.coach-attendance-team-kpi-card-v91 h2{margin:0!important;color:#0f172a!important;font-size:24px!important;line-height:1.1!important;letter-spacing:-.04em!important;}
.coach-team-percent-v92{display:flex!important;align-items:flex-end!important;gap:8px!important;}
.coach-team-percent-v92 strong{display:block!important;font-size:44px!important;line-height:.95!important;color:#3155f6!important;letter-spacing:-.06em!important;}
.coach-team-percent-v92 span{display:block!important;padding-bottom:5px!important;color:#64748b!important;font-weight:900!important;}
.coach-team-progress-v91{height:10px!important;border-radius:999px!important;background:#eef2f7!important;overflow:hidden!important;}
.coach-team-progress-v91 span{display:block!important;height:100%!important;border-radius:999px!important;background:#3155f6!important;min-width:0!important;}
.coach-team-kpi-mini-v91{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important;}
.coach-team-kpi-mini-v91 span{display:block!important;padding:10px 11px!important;border-radius:16px!important;background:#f8fafc!important;border:1px solid #eef2f7!important;color:#64748b!important;font-weight:800!important;font-size:12px!important;line-height:1.2!important;}
.coach-team-kpi-mini-v91 b{display:block!important;color:#0f172a!important;font-size:17px!important;line-height:1.1!important;margin:0 0 2px!important;}
.coach-team-btn{display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;min-height:44px!important;border-radius:16px!important;background:#3155f6!important;color:#fff!important;text-decoration:none!important;font-weight:900!important;box-shadow:0 12px 22px rgba(49,85,246,.20)!important;}
@media(max-width:1100px){.coach-attendance-global-grid-v92{grid-template-columns:repeat(2,minmax(0,1fr))!important}.coach-top-teams-v91{grid-template-columns:1fr!important}.coach-attendance-team-kpi-grid-v91{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:720px){.coach-attendance-overview-v91{padding:18px!important;border-radius:22px!important}.coach-attendance-global-grid-v92,.coach-attendance-team-kpi-grid-v91{grid-template-columns:1fr!important}.coach-team-kpi-mini-v91{grid-template-columns:1fr 1fr!important}.coach-team-percent-v92 strong{font-size:38px!important}}


/* === Coach Digital Core v0.9.4 - Ajustes pre-clonación === */
.coach-player-layout {
    grid-template-columns: 1fr !important;
    background: #fff !important;
}
.coach-player-sections-full {
    width: 100% !important;
    max-width: 100% !important;
}
.coach-accordion-section {
    padding: 0 !important;
    overflow: hidden !important;
}
.coach-accordion-section > summary.coach-form-section-title {
    cursor: pointer !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 22px 24px !important;
    user-select: none !important;
}
.coach-accordion-section > summary.coach-form-section-title::-webkit-details-marker {
    display: none !important;
}
.coach-accordion-section > summary.coach-form-section-title::after {
    content: "⌄";
    margin-left: auto;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: #f2f5ff;
    color: var(--coach-primary);
    font-weight: 900;
    transition: transform .18s ease;
}
.coach-accordion-section[open] > summary.coach-form-section-title {
    border-bottom: 1px solid var(--coach-border) !important;
}
.coach-accordion-section[open] > summary.coach-form-section-title::after {
    transform: rotate(180deg);
}
.coach-accordion-section > .coach-form-grid {
    padding: 24px !important;
}
.coach-accordion-section:first-child {
    border-color: rgba(49,87,246,.25) !important;
    box-shadow: 0 14px 38px rgba(49,87,246,.08) !important;
}
@media (max-width: 782px) {
    body .coach-accordion-section > summary.coach-form-section-title {
        padding: 16px !important;
        grid-template-columns: 36px minmax(0, 1fr) 30px !important;
    }
    body .coach-accordion-section > .coach-form-grid {
        padding: 16px !important;
    }
}


/* Coach Digital asistencia v0.9.17 - no truncar nombres y tabla con encabezado fijo */
.coach-attendance-global-grid-v92 strong,
.coach-top-team-card-v91 strong,
.coach-attendance-team-kpi-card-v91 h2,
.coach-best-player-copy strong{
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    word-break: normal !important;
    overflow-wrap: anywhere !important;
}
.coach-attendance-global-grid-v92 strong{
    font-size: 25px !important;
    line-height: 1.08 !important;
}
.coach-top-team-card-v91 strong{
    font-size: 17px !important;
    line-height: 1.15 !important;
}
.coach-attendance-team-kpi-card-v91 h2{
    font-size: 22px !important;
    line-height: 1.15 !important;
    min-height: 50px !important;
    display: flex !important;
    align-items: center !important;
}
.coach-best-player-card{
    display: grid !important;
    grid-template-columns: 44px minmax(0,1fr) !important;
    align-items: center !important;
    overflow: visible !important;
}
.coach-best-player-copy{
    min-width: 0 !important;
    align-content: center !important;
}
.coach-best-player-copy strong{
    font-size: 20px !important;
    line-height: 1.15 !important;
    max-width: none !important;
    margin: 0 !important;
}
.coach-best-player-copy span{
    margin-top: 6px !important;
    font-size: 13px !important;
    line-height: 1.15 !important;
}
.coach-best-player-copy small{
    margin-top: 6px !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
}
.coach-player-metrics-table-wrap{
    max-height: 62vh !important;
    overflow: auto !important;
    border-radius: 20px !important;
    border: 1px solid #e2e8f0 !important;
    background: #fff !important;
    position: relative !important;
}
.coach-player-metrics-table-wrap .coach-table{
    border-collapse: separate !important;
    border-spacing: 0 !important;
    width: 100% !important;
}
.coach-player-metrics-table-wrap .coach-table thead{
    position: sticky !important;
    top: 0 !important;
    z-index: 20 !important;
}
.coach-player-metrics-table-wrap .coach-table thead th{
    position: sticky !important;
    top: 0 !important;
    z-index: 21 !important;
    background: #f8fafc !important;
    box-shadow: 0 1px 0 #e2e8f0, 0 10px 18px rgba(15,23,42,.08) !important;
}
.coach-player-metrics-table-wrap .coach-table tbody td{
    background: #fff !important;
}
@media(max-width:1100px){
    .coach-attendance-global-grid-v92 strong{font-size:23px !important}
    .coach-best-player-copy strong{font-size:19px !important}
}
@media(max-width:720px){
    .coach-attendance-team-kpi-card-v91 h2{min-height:auto !important}
    .coach-player-metrics-table-wrap{max-height:none !important;overflow:visible !important}
    .coach-player-metrics-table-wrap .coach-table thead,
    .coach-player-metrics-table-wrap .coach-table thead th{position:static !important}
}


/* Coach Digital asistencia v0.9.18 - filtros compactos e historial con encabezado fijo */
.coach-attendance-history-filters{
    display:grid !important;
    grid-template-columns:minmax(210px,1.25fr) minmax(190px,1fr) minmax(150px,.75fr) minmax(150px,.75fr) auto !important;
    gap:14px !important;
    align-items:end !important;
    padding:18px !important;
    margin:20px 0 18px !important;
    background:#f8fbff !important;
    border:1px solid #e4eaf5 !important;
    border-radius:20px !important;
}
.coach-attendance-history-filters label{
    margin:0 !important;
    min-width:0 !important;
    width:auto !important;
}
.coach-attendance-history-filters label span{
    display:block !important;
    margin:0 0 7px !important;
    font-size:11px !important;
    line-height:1 !important;
    font-weight:900 !important;
    letter-spacing:.08em !important;
    text-transform:uppercase !important;
    color:#5b6b86 !important;
}
.coach-attendance-history-filters select,
.coach-attendance-history-filters input[type="date"]{
    width:100% !important;
    min-height:44px !important;
    border-radius:13px !important;
    background:#fff !important;
    border:1px solid #d7dfec !important;
    box-shadow:none !important;
}
.coach-attendance-history-filters .coach-primary-btn,
.coach-attendance-history-filters button[type="submit"]{
    min-height:44px !important;
    padding:0 22px !important;
    border-radius:13px !important;
    align-self:end !important;
    white-space:nowrap !important;
}
.coach-attendance-overview-history-v94 .coach-table-wrap,
.coach-attendance-records-wrap{
    max-height:64vh !important;
    overflow:auto !important;
    border:1px solid #e2e8f0 !important;
    border-radius:18px !important;
    background:#fff !important;
    position:relative !important;
    -webkit-overflow-scrolling:touch !important;
}
.coach-attendance-overview-history-v94 .coach-table,
.coach-attendance-records-wrap .coach-table{
    border-collapse:separate !important;
    border-spacing:0 !important;
    width:100% !important;
}
.coach-attendance-overview-history-v94 .coach-table thead th,
.coach-attendance-records-wrap .coach-table thead th{
    position:sticky !important;
    top:0 !important;
    z-index:30 !important;
    background:#f8fafc !important;
    box-shadow:0 1px 0 #e2e8f0, 0 10px 18px rgba(15,23,42,.07) !important;
}
.coach-attendance-overview-history-v94 .coach-table tbody td,
.coach-attendance-records-wrap .coach-table tbody td{
    background:#fff !important;
}
@media(max-width:1180px){
    .coach-attendance-history-filters{
        grid-template-columns:repeat(2,minmax(0,1fr)) auto !important;
    }
}
@media(max-width:720px){
    .coach-attendance-history-filters{
        grid-template-columns:1fr !important;
        padding:14px !important;
    }
    .coach-attendance-overview-history-v94 .coach-table-wrap,
    .coach-attendance-records-wrap{
        max-height:none !important;
        overflow-x:auto !important;
        overflow-y:visible !important;
    }
    .coach-attendance-overview-history-v94 .coach-table thead th,
    .coach-attendance-records-wrap .coach-table thead th{
        position:static !important;
    }
}


/* Coach Digital Core v0.9.19 - filtros compactos consistentes y encabezados fijos globales */
.coach-attendance-filter-v9{
    padding:16px 18px !important;
    border-radius:22px !important;
    background:#fff !important;
}
.coach-attendance-filter-v9 .coach-attendance-filter-form{
    display:grid !important;
    grid-template-columns:minmax(240px,1.15fr) minmax(170px,.75fr) auto !important;
    gap:12px !important;
    align-items:end !important;
    max-width:760px !important;
    margin:0 !important;
}
.coach-attendance-filter-form label,
.coach-attendance-history-filters label,
.coach-attendance-inline-filters label{
    display:flex !important;
    flex-direction:column !important;
    gap:7px !important;
    margin:0 !important;
}
.coach-attendance-filter-form label span,
.coach-attendance-history-filters label span,
.coach-attendance-inline-filters label span{
    font-size:11px !important;
    line-height:1 !important;
    font-weight:900 !important;
    letter-spacing:.08em !important;
    text-transform:uppercase !important;
    color:#5b6b86 !important;
}
.coach-attendance-filter-form select,
.coach-attendance-filter-form input[type="date"],
.coach-attendance-history-filters select,
.coach-attendance-history-filters input[type="date"],
.coach-attendance-inline-filters input[type="date"]{
    min-height:42px !important;
    height:42px !important;
    border-radius:12px !important;
    background:#fff !important;
    border:1px solid #d7dfec !important;
    box-shadow:none !important;
    font-size:14px !important;
}
.coach-attendance-filter-v9 .coach-primary-btn,
.coach-attendance-history-filters .coach-primary-btn,
.coach-attendance-inline-filters .coach-primary-btn{
    min-height:42px !important;
    height:42px !important;
    border-radius:13px !important;
    padding:0 18px !important;
    white-space:nowrap !important;
}
.coach-attendance-history-filters{
    grid-template-columns:minmax(190px,1fr) minmax(180px,1fr) minmax(145px,.65fr) minmax(145px,.65fr) auto !important;
    gap:12px !important;
    padding:14px !important;
    align-items:end !important;
}
.coach-table-wrap,
.coach-player-metrics-table-wrap,
.coach-attendance-records-wrap{
    max-height:68vh !important;
    overflow:auto !important;
    position:relative !important;
    border-radius:18px !important;
    border:1px solid #e2e8f0 !important;
    background:#fff !important;
    -webkit-overflow-scrolling:touch !important;
}
.coach-table-wrap .coach-table,
.coach-player-metrics-table-wrap .coach-table,
.coach-attendance-records-wrap .coach-table{
    border-collapse:separate !important;
    border-spacing:0 !important;
    width:100% !important;
    margin:0 !important;
}
.coach-table thead,
.coach-table thead tr{
    position:relative !important;
    z-index:60 !important;
}
.coach-table thead th,
.coach-table-wrap .coach-table thead th,
.coach-player-metrics-table-wrap .coach-table thead th,
.coach-attendance-records-wrap .coach-table thead th{
    position:sticky !important;
    top:0 !important;
    z-index:80 !important;
    background:#f8fafc !important;
    box-shadow:0 1px 0 #e2e8f0, 0 8px 16px rgba(15,23,42,.08) !important;
}
.coach-table tbody td{
    background:#fff !important;
}
@media(max-width:980px){
    .coach-attendance-filter-v9 .coach-attendance-filter-form{
        grid-template-columns:1fr 1fr auto !important;
        max-width:none !important;
    }
    .coach-attendance-history-filters{
        grid-template-columns:repeat(2,minmax(0,1fr)) auto !important;
    }
}
@media(max-width:720px){
    .coach-attendance-filter-v9 .coach-attendance-filter-form,
    .coach-attendance-history-filters{
        grid-template-columns:1fr !important;
    }
    .coach-table-wrap,
    .coach-player-metrics-table-wrap,
    .coach-attendance-records-wrap{
        max-height:none !important;
        overflow-x:auto !important;
        overflow-y:visible !important;
    }
}

/* Public player profile update */
.coach-profile-screen{
    min-height:100vh;
    background:radial-gradient(circle at top left,rgba(67,97,238,.18),transparent 36%),linear-gradient(180deg,#07111f 0%,#0b1628 100%);
    padding:32px 18px;
    display:flex;
    align-items:flex-start;
    justify-content:center;
    box-sizing:border-box;
}
.coach-profile-shell{width:100%;max-width:920px;margin:0 auto}
.coach-profile-brand{text-align:center;color:#dbe6f7;margin:8px 0 24px}
.coach-profile-logo{width:320px;max-width:86%;height:auto;display:block;margin:0 auto 10px}
.coach-profile-brand p{margin:0;color:#93a4bd;font-size:14px;letter-spacing:.12em;text-transform:uppercase}
.coach-profile-card{background:#fff;border:1px solid rgba(148,163,184,.28);border-radius:26px;box-shadow:0 24px 80px rgba(0,0,0,.28);padding:34px;box-sizing:border-box}
.coach-profile-card h1{margin:0 0 8px;color:#0f172a;font-size:30px;line-height:1.15}
.coach-profile-muted{margin:0 0 24px;color:#64748b;font-size:15px}
.coach-profile-form label{display:block;font-weight:800;color:#0f172a;font-size:13px;margin:0 0 8px}
.coach-profile-form input,.coach-profile-form select,.coach-profile-form textarea{width:100%;border:1px solid #dbe3ef;border-radius:14px;padding:14px 15px;font-size:15px;color:#0f172a;background:#fff;box-sizing:border-box;outline:none}
.coach-profile-form input:focus,.coach-profile-form select:focus,.coach-profile-form textarea:focus{border-color:#4361ee;box-shadow:0 0 0 4px rgba(67,97,238,.12)}
.coach-profile-form>label{margin-top:8px}
.coach-profile-button{display:inline-flex;align-items:center;justify-content:center;width:100%;min-height:52px;border:0;border-radius:14px;background:#4361ee;color:#fff!important;font-weight:900;text-decoration:none;cursor:pointer;margin-top:18px;box-shadow:0 12px 30px rgba(67,97,238,.25)}
.coach-profile-button:hover{filter:brightness(.98);transform:translateY(-1px)}
.coach-profile-button-secondary{max-width:260px;margin:16px auto 0}
.coach-profile-alert{border-radius:16px;padding:14px 16px;margin-bottom:18px;font-weight:800;font-size:14px}
.coach-profile-alert-success{background:#ecfdf5;color:#047857;border:1px solid #a7f3d0}
.coach-profile-alert-error{background:#fef2f2;color:#b91c1c;border:1px solid #fecaca}
.coach-profile-player-header{display:flex;justify-content:space-between;gap:16px;align-items:center;margin-bottom:20px;padding-bottom:18px;border-bottom:1px solid #edf2f7}
.coach-profile-player-header span{display:block;color:#4361ee;text-transform:uppercase;letter-spacing:.12em;font-size:12px;font-weight:900;margin-bottom:6px}
.coach-profile-player-header p{margin:0;color:#64748b;font-weight:700}
.coach-profile-grid-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.coach-profile-full,.coach-profile-section-title{grid-column:1/-1}
.coach-profile-section-title{font-size:12px;text-transform:uppercase;letter-spacing:.14em;font-weight:900;color:#4361ee;margin:12px 0 -4px;padding-top:10px;border-top:1px solid #edf2f7}
.coach-profile-readonly{background:#f8fafc;border:1px solid #e2e8f0;border-radius:16px;padding:14px}
.coach-profile-readonly label{color:#64748b;margin-bottom:4px}
.coach-profile-readonly strong{display:block;color:#0f172a;font-size:15px}
.coach-profile-actions{display:flex;align-items:center;gap:14px;justify-content:space-between;margin-top:8px}
.coach-profile-actions .coach-profile-button{max-width:260px;margin-top:0}
.coach-profile-link{color:#4361ee;font-weight:800;text-decoration:none}
.coach-profile-done{text-align:center;padding:10px 0 4px}
.coach-profile-done p{color:#64748b;margin:0}
@media (max-width:720px){.coach-profile-screen{padding:22px 12px}.coach-profile-card{padding:24px;border-radius:22px}.coach-profile-card h1{font-size:24px}.coach-profile-grid-form{grid-template-columns:1fr}.coach-profile-actions{display:block}.coach-profile-actions .coach-profile-button{max-width:100%}.coach-profile-link{display:block;text-align:center;margin-top:14px}.coach-profile-logo{width:260px}}

/* v0.9.24 - Perfil público con misma ficha del Panel Jugadores */
.coach-profile-screen .coach-profile-shell{max-width:1120px}
.coach-profile-screen .coach-profile-card:has(.coach-public-real-player-form){padding:28px;background:#f8fafc}
.coach-public-real-player-form{margin-top:18px}
.coach-public-real-player-form .coach-form-section{background:#fff}
.coach-public-real-player-form input[readonly]{background:#f1f5f9;color:#64748b;cursor:not-allowed}
.coach-profile-readonly-inline{background:#f8fafc;border:1px solid #dbe4ff;border-radius:18px;padding:16px 18px;display:flex;align-items:center;justify-content:space-between;gap:16px}
.coach-profile-readonly-inline strong{color:#0f172a;font-size:15px;text-align:right}
.coach-profile-player-header-real{margin-bottom:8px}

/* Players dashboard v1.0.19 */
.coach-players-toolbar{align-items:center;gap:12px;flex-wrap:wrap}.coach-toolbar-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-left:auto}.coach-player-metrics-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:14px;margin-top:18px}.coach-player-total-card{border-left:4px solid currentColor}.coach-player-team-card strong,.coach-player-total-card strong{font-size:30px;line-height:1}.coach-player-filters{display:grid;grid-template-columns:2fr 1fr 1fr auto;gap:12px;align-items:end;margin:16px 0 18px;padding:14px;border:1px solid rgba(15,23,42,.08);border-radius:18px;background:rgba(248,250,252,.8)}.coach-player-filters label{display:flex;flex-direction:column;gap:6px;font-weight:700;font-size:13px;color:#334155}.coach-player-filters input,.coach-player-filters select{width:100%;min-height:42px;border:1px solid rgba(15,23,42,.14);border-radius:12px;padding:8px 10px;background:#fff}.coach-filter-actions{display:flex;gap:8px;align-items:center;justify-content:flex-end}.coach-sticky-table-wrap{max-height:68vh;overflow:auto}.coach-players-table thead th{position:sticky;top:0;z-index:2;background:#f8fafc}.coach-players-table td:first-child strong{white-space:normal;line-height:1.25}.coach-players-table td:first-child span{display:block;font-size:12px;color:#64748b;margin-top:3px}.coach-players-list-panel .coach-table-wrap{border-radius:18px}
@media (max-width: 900px){.coach-player-filters{grid-template-columns:1fr}.coach-filter-actions{justify-content:stretch}.coach-filter-actions .coach-primary-btn,.coach-filter-actions .coach-secondary-btn,.coach-toolbar-actions .coach-primary-btn,.coach-toolbar-actions .coach-secondary-btn{width:100%;justify-content:center;text-align:center}.coach-toolbar-actions{width:100%;margin-left:0}.coach-sticky-table-wrap{max-height:70vh}.coach-players-table{min-width:760px}}

/* v1.0.20 - Players UX: persistent new player action + export below list */
.coach-players-toolbar{
    justify-content:flex-start;
    margin-bottom:14px;
}
.coach-floating-new-player{
    position:fixed;
    right:32px;
    bottom:28px;
    z-index:9999;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    min-height:54px;
    padding:0 22px;
    border-radius:999px;
    background:var(--coach-primary, #3156f6);
    color:#fff !important;
    font-weight:800;
    text-decoration:none !important;
    box-shadow:0 18px 38px rgba(49,86,246,.28), 0 8px 18px rgba(15,23,42,.14);
    border:1px solid rgba(255,255,255,.28);
    transition:transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.coach-floating-new-player:hover{
    transform:translateY(-2px);
    background:var(--coach-primary-dark, #2444c9);
    box-shadow:0 22px 48px rgba(49,86,246,.34), 0 10px 24px rgba(15,23,42,.18);
}
.coach-floating-new-player-icon{
    width:28px;
    height:28px;
    border-radius:999px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    background:rgba(255,255,255,.18);
    font-size:22px;
    line-height:1;
}
.coach-list-bottom-actions{
    display:flex;
    justify-content:flex-end;
    gap:10px;
    padding-top:18px;
    margin-top:4px;
}
.coach-export-bottom-btn{
    min-height:44px;
    padding:0 18px;
}

.coach-export-panel{
    align-items:flex-end;
    flex-wrap:wrap;
}
.coach-export-columns{
    flex:1 1 680px;
    border:1px solid rgba(148,163,184,.32);
    border-radius:18px;
    background:#fff;
    padding:14px 16px;
}
.coach-export-columns summary{
    cursor:pointer;
    font-weight:800;
    color:#0f172a;
    list-style:none;
}
.coach-export-columns summary::-webkit-details-marker{display:none;}
.coach-export-columns-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(160px,1fr));
    gap:10px 14px;
    margin-top:14px;
}
.coach-export-columns-grid label{
    display:flex;
    align-items:center;
    gap:8px;
    min-height:34px;
    padding:8px 10px;
    border-radius:12px;
    background:#f8fafc;
    font-size:13px;
    font-weight:700;
    color:#334155;
}
.coach-export-columns-grid input{width:auto;}
@media (max-width: 900px){
    .coach-floating-new-player{
        left:16px;
        right:16px;
        bottom:16px;
        width:auto;
        min-height:52px;
        border-radius:18px;
    }
    .coach-list-bottom-actions{
        justify-content:stretch;
        padding-bottom:74px;
    }
    .coach-list-bottom-actions .coach-secondary-btn{
        width:100%;
        justify-content:center;
        text-align:center;
    }
    .coach-export-columns{
        flex-basis:100%;
        width:100%;
    }
    .coach-export-columns-grid{
        grid-template-columns:1fr;
    }
}

/* v1.0.29 - Navegación superior fija */
body .coach-app {
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-template-rows: 78px minmax(0, 1fr) !important;
    position: fixed !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100vh !important;
    overflow: hidden !important;
}

body .coach-sidebar {
    grid-row: 1 !important;
    grid-column: 1 !important;
    width: 100% !important;
    min-height: 78px !important;
    height: 78px !important;
    max-width: 100% !important;
    padding: 12px 26px !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 18px !important;
    border-radius: 0 !important;
    background:
        radial-gradient(circle at 8% 0%, rgba(49, 87, 246, .28), transparent 28%),
        linear-gradient(90deg, #071225 0%, #0d182d 100%) !important;
    box-shadow: 0 10px 34px rgba(7, 18, 37, .18) !important;
    z-index: 50 !important;
    overflow: hidden !important;
}

body .coach-sidebar-brand {
    flex: 0 0 auto !important;
    min-width: 190px !important;
    max-width: 260px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    display: flex !important;
    align-items: center !important;
}

body .coach-sidebar-brand strong {
    white-space: normal !important;
    line-height: 1.08 !important;
}

body .coach-sidebar-brand span {
    display: block !important;
}

body .coach-nav {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 0 !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scrollbar-width: thin !important;
    -webkit-overflow-scrolling: touch !important;
}

body .coach-nav a,
body .coach-sidebar-config,
body .coach-logout {
    flex: 0 0 auto !important;
    min-height: 42px !important;
    height: 42px !important;
    padding: 8px 12px !important;
    border-radius: 12px !important;
    white-space: nowrap !important;
    justify-content: center !important;
}

body .coach-sidebar-footer {
    flex: 0 0 auto !important;
    margin-top: 0 !important;
    margin-left: auto !important;
    display: flex !important;
    grid-template-columns: none !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 10px !important;
    min-width: 0 !important;
}

body .coach-mini-user {
    min-height: 42px !important;
    height: 42px !important;
    padding: 6px 10px !important;
    border-radius: 12px !important;
    flex: 0 0 auto !important;
}

body .coach-mini-user .coach-avatar {
    width: 30px !important;
    height: 30px !important;
}

body .coach-mini-user span {
    display: none !important;
}

body .coach-main {
    grid-row: 2 !important;
    grid-column: 1 !important;
    width: 100% !important;
    max-width: 1280px !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 auto !important;
    padding: 28px 34px 42px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
}

@media (min-width: 1281px) {
    body .coach-main {
        max-width: 1440px !important;
        padding-left: 48px !important;
        padding-right: 48px !important;
    }
}

@media (max-width: 1024px) {
    body .coach-app {
        grid-template-rows: auto minmax(0, 1fr) !important;
    }
    body .coach-sidebar {
        height: auto !important;
        min-height: 78px !important;
        flex-wrap: wrap !important;
        align-items: flex-start !important;
        gap: 10px !important;
        padding: 12px 16px !important;
        overflow: visible !important;
    }
    body .coach-sidebar-brand {
        min-width: 0 !important;
        max-width: calc(100% - 150px) !important;
    }
    body .coach-nav {
        order: 3 !important;
        width: 100% !important;
        flex-basis: 100% !important;
        padding-bottom: 2px !important;
    }
    body .coach-sidebar-footer {
        margin-left: auto !important;
    }
    body .coach-main {
        max-width: none !important;
        padding: 20px 16px 32px !important;
    }
}

@media (max-width: 640px) {
    body .coach-app {
        position: relative !important;
        min-height: 100vh !important;
        height: auto !important;
        overflow: visible !important;
    }
    body .coach-sidebar {
        position: sticky !important;
        top: 0 !important;
        border-radius: 0 0 18px 18px !important;
    }
    body .coach-sidebar-brand {
        max-width: 100% !important;
        width: 100% !important;
    }
    body .coach-sidebar-footer {
        width: 100% !important;
        justify-content: space-between !important;
        flex-wrap: wrap !important;
    }
    body .coach-mini-user {
        display: none !important;
    }
    body .coach-nav {
        display: flex !important;
        grid-template-columns: none !important;
        gap: 8px !important;
        overflow-x: auto !important;
    }
    body .coach-nav a,
    body .coach-sidebar-config,
    body .coach-logout {
        width: auto !important;
        max-width: none !important;
        min-width: max-content !important;
        white-space: nowrap !important;
    }
    body .coach-main {
        padding: 18px 12px 28px !important;
        overflow: visible !important;
    }
}


/* v1.0.32 - Navegación superior SaaS Pro */
body .coach-app{
    display:grid !important;
    grid-template-columns:1fr !important;
    grid-template-rows:76px minmax(0,1fr) !important;
    position:fixed !important;
    inset:0 !important;
    width:100% !important;
    height:100vh !important;
    overflow:hidden !important;
    background:linear-gradient(180deg,#f7f9ff 0%,#f3f6fb 100%) !important;
}
body .coach-sidebar{
    grid-row:1 !important;
    grid-column:1 !important;
    width:100% !important;
    height:76px !important;
    min-height:76px !important;
    padding:10px 22px !important;
    display:flex !important;
    flex-direction:row !important;
    align-items:center !important;
    gap:18px !important;
    border-radius:0 !important;
    background:rgba(7,18,37,.96) !important;
    box-shadow:0 12px 30px rgba(7,18,37,.18) !important;
    overflow:visible !important;
    z-index:100 !important;
    box-sizing:border-box !important;
}
body .coach-sidebar-brand{
    flex:0 0 230px !important;
    min-width:230px !important;
    max-width:230px !important;
    padding:0 !important;
    margin:0 !important;
    border:0 !important;
    display:flex !important;
    align-items:center !important;
    gap:12px !important;
}
body .coach-sidebar-brand .coach-logo{
    width:42px !important;
    height:42px !important;
    border-radius:12px !important;
    flex:0 0 42px !important;
}
body .coach-sidebar-brand strong{
    display:block !important;
    color:#fff !important;
    font-size:14px !important;
    line-height:1.15 !important;
    letter-spacing:-.02em !important;
}
body .coach-sidebar-brand span{
    display:block !important;
    color:#aebbd0 !important;
    font-size:12px !important;
    margin-top:3px !important;
}
body .coach-nav{
    flex:1 1 auto !important;
    min-width:0 !important;
    height:46px !important;
    padding:4px !important;
    display:flex !important;
    flex-direction:row !important;
    align-items:center !important;
    justify-content:flex-start !important;
    gap:4px !important;
    overflow-x:auto !important;
    overflow-y:hidden !important;
    scrollbar-width:none !important;
    border:1px solid rgba(255,255,255,.08) !important;
    border-radius:18px !important;
    background:rgba(255,255,255,.045) !important;
}
body .coach-nav::-webkit-scrollbar{display:none !important;}
body .coach-nav a{
    flex:0 0 auto !important;
    height:38px !important;
    min-height:38px !important;
    padding:0 14px !important;
    border-radius:14px !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    gap:8px !important;
    color:#d8e0ef !important;
    font-size:13px !important;
    font-weight:850 !important;
    text-decoration:none !important;
    border:1px solid transparent !important;
    background:transparent !important;
    box-shadow:none !important;
    white-space:nowrap !important;
}
body .coach-nav a:hover{
    color:#fff !important;
    background:rgba(255,255,255,.09) !important;
}
body .coach-nav a.active{
    color:#0b1327 !important;
    background:#fff !important;
    border-color:rgba(255,255,255,.9) !important;
    box-shadow:0 10px 22px rgba(0,0,0,.14) !important;
}
body .coach-nav-icon{
    width:auto !important;
    height:auto !important;
    min-width:0 !important;
    border-radius:0 !important;
    background:transparent !important;
    font-size:14px !important;
    line-height:1 !important;
}
body .coach-sidebar-footer{
    flex:0 0 auto !important;
    margin:0 !important;
    padding:0 !important;
    display:flex !important;
    flex-direction:row !important;
    align-items:center !important;
    gap:8px !important;
}
body .coach-sidebar-config{
    width:auto !important;
    height:46px !important;
    min-height:46px !important;
    margin:0 !important;
    padding:0 18px !important;
    border-radius:16px !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    gap:8px !important;
    color:#fff !important;
    background:linear-gradient(135deg,#3157f6,#4f46e5) !important;
    box-shadow:0 12px 26px rgba(49,87,246,.28) !important;
    border:1px solid rgba(255,255,255,.12) !important;
    white-space:nowrap !important;
}
body .coach-sidebar-config.active{
    background:#fff !important;
    color:#0b1327 !important;
    box-shadow:0 10px 22px rgba(0,0,0,.14) !important;
}
body .coach-mini-user{
    height:46px !important;
    min-height:46px !important;
    padding:6px 10px !important;
    border-radius:16px !important;
    display:flex !important;
    align-items:center !important;
    background:rgba(255,255,255,.07) !important;
    border:1px solid rgba(255,255,255,.08) !important;
}
body .coach-mini-user .coach-avatar{width:32px !important;height:32px !important;}
body .coach-mini-user span{display:none !important;}
body .coach-logout{
    width:46px !important;
    min-width:46px !important;
    height:46px !important;
    min-height:46px !important;
    padding:0 !important;
    border-radius:16px !important;
    overflow:hidden !important;
    text-indent:-999px !important;
    position:relative !important;
    background:rgba(255,255,255,.07) !important;
    border:1px solid rgba(255,255,255,.08) !important;
}
body .coach-logout:after{
    content:"↪" !important;
    position:absolute !important;
    inset:0 !important;
    display:grid !important;
    place-items:center !important;
    text-indent:0 !important;
    color:#fff !important;
    font-size:18px !important;
    font-weight:900 !important;
}
body .coach-main{
    grid-row:2 !important;
    grid-column:1 !important;
    width:100% !important;
    max-width:1440px !important;
    height:100% !important;
    min-height:0 !important;
    margin:0 auto !important;
    padding:30px 38px 46px !important;
    overflow-y:auto !important;
    overflow-x:hidden !important;
    box-sizing:border-box !important;
}
@media (max-width:1100px){
    body .coach-sidebar{height:auto !important;min-height:76px !important;align-items:flex-start !important;flex-wrap:wrap !important;padding:12px 16px !important;}
    body .coach-sidebar-brand{flex:1 1 260px !important;min-width:0 !important;max-width:none !important;}
    body .coach-nav{order:3;flex:1 0 100% !important;width:100% !important;}
    body .coach-sidebar-footer{margin-left:auto !important;}
}
@media (max-width:640px){
    body .coach-app{position:relative !important;height:auto !important;min-height:100vh !important;overflow:visible !important;grid-template-rows:auto 1fr !important;}
    body .coach-sidebar{position:sticky !important;top:0 !important;border-radius:0 0 20px 20px !important;}
    body .coach-mini-user{display:none !important;}
    body .coach-sidebar-config{height:40px !important;min-height:40px !important;padding:0 12px !important;}
    body .coach-logout{width:40px !important;min-width:40px !important;height:40px !important;min-height:40px !important;}
    body .coach-main{height:auto !important;overflow:visible !important;padding:18px 12px 28px !important;}
}

/* v1.0.33 - Navegación superior SaaS Pro en dos niveles */
body .coach-app {
    display: block !important;
    min-height: 100vh !important;
    padding-top: 138px !important;
}

body .coach-sidebar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 9999 !important;
    width: 100% !important;
    min-height: 126px !important;
    padding: 12px 26px 14px !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 10px 18px !important;
    background: linear-gradient(180deg, #071225 0%, #0b1730 100%) !important;
    box-shadow: 0 18px 42px rgba(6, 18, 39, .18) !important;
    overflow: visible !important;
}

body .coach-sidebar-brand {
    order: 1 !important;
    flex: 0 1 310px !important;
    min-width: 220px !important;
    padding: 0 !important;
    margin: 0 !important;
    border-bottom: 0 !important;
}

body .coach-sidebar-footer {
    order: 2 !important;
    margin-left: auto !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 10px !important;
}

body .coach-nav {
    order: 3 !important;
    flex: 1 0 100% !important;
    display: grid !important;
    grid-template-columns: repeat(5, minmax(130px, 1fr)) !important;
    gap: 10px !important;
    margin: 4px 0 0 !important;
    padding: 10px !important;
    border-radius: 18px !important;
    background: rgba(255,255,255,.065) !important;
    border: 1px solid rgba(255,255,255,.09) !important;
    overflow: visible !important;
}

body .coach-nav a {
    min-height: 48px !important;
    justify-content: center !important;
    gap: 8px !important;
    border-radius: 14px !important;
    background: rgba(255,255,255,.06) !important;
    color: #dbe7ff !important;
    text-decoration: none !important;
    white-space: nowrap !important;
}

body .coach-nav a.active {
    background: linear-gradient(135deg, #3157f6, #5147e8) !important;
    color: #fff !important;
    box-shadow: 0 12px 26px rgba(49,87,246,.32) !important;
}

body .coach-sidebar-config,
body .coach-logout {
    min-height: 42px !important;
    padding: 0 16px !important;
    border-radius: 13px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
    text-decoration: none !important;
}

body .coach-sidebar-config {
    background: rgba(255,255,255,.08) !important;
}

body .coach-sidebar-config.active {
    background: linear-gradient(135deg, #3157f6, #5147e8) !important;
    color: #fff !important;
}

body .coach-logout {
    background: rgba(255,255,255,.12) !important;
    color: #fff !important;
}

body .coach-mini-user {
    min-height: 42px !important;
    padding: 6px 12px !important;
    display: flex !important;
    align-items: center !important;
    white-space: nowrap !important;
}

body .coach-main {
    max-width: 1280px !important;
    margin: 0 auto !important;
    padding: 28px 34px 48px !important;
}

@media (max-width: 980px) {
    body .coach-app { padding-top: 188px !important; }
    body .coach-sidebar { padding: 12px 14px !important; min-height: 176px !important; }
    body .coach-sidebar-brand { flex: 1 1 100% !important; }
    body .coach-sidebar-footer { order: 2 !important; margin-left: 0 !important; width: 100% !important; overflow-x: auto !important; padding-bottom: 2px !important; }
    body .coach-nav { grid-template-columns: repeat(5, minmax(118px, 1fr)) !important; overflow-x: auto !important; }
    body .coach-main { padding: 22px 18px 42px !important; }
}


/* =========================================================
   v1.0.34 - Navegacion superior en dos niveles SaaS Pro
   Corrige cache/version y fuerza layout final.
   Nivel 1: marca + acciones.
   Nivel 2: modulos como botones.
   ========================================================= */
body .coach-app{
    display:block !important;
    min-height:100vh !important;
    padding-top:154px !important;
    background:linear-gradient(180deg,#f4f7ff 0%,#f8fafc 100%) !important;
}
body .coach-sidebar{
    position:fixed !important;
    top:0 !important;
    left:0 !important;
    right:0 !important;
    z-index:9999 !important;
    width:100% !important;
    min-height:126px !important;
    height:auto !important;
    padding:14px 28px 16px !important;
    background:#08152b !important;
    border-right:0 !important;
    border-bottom:1px solid rgba(255,255,255,.10) !important;
    display:grid !important;
    grid-template-columns:minmax(240px, 1fr) auto !important;
    grid-template-areas:"brand actions" "modules modules" !important;
    gap:14px 20px !important;
    align-items:center !important;
    box-shadow:0 18px 42px rgba(6,18,39,.20) !important;
    overflow:visible !important;
}
body .coach-sidebar-brand{
    grid-area:brand !important;
    min-width:0 !important;
    margin:0 !important;
    padding:0 !important;
    border:0 !important;
    display:flex !important;
    align-items:center !important;
    gap:12px !important;
}
body .coach-sidebar-footer{
    grid-area:actions !important;
    margin:0 !important;
    padding:0 !important;
    display:flex !important;
    flex-direction:row !important;
    align-items:center !important;
    justify-content:flex-end !important;
    gap:10px !important;
    min-width:0 !important;
}
body .coach-nav{
    grid-area:modules !important;
    width:100% !important;
    min-width:0 !important;
    margin:0 !important;
    padding:0 !important;
    display:grid !important;
    grid-template-columns:repeat(5,minmax(130px,1fr)) !important;
    gap:10px !important;
    background:transparent !important;
    border:0 !important;
    box-shadow:none !important;
    overflow:visible !important;
}
body .coach-nav a{
    min-height:46px !important;
    width:100% !important;
    padding:0 16px !important;
    border-radius:15px !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    gap:9px !important;
    background:rgba(255,255,255,.075) !important;
    border:1px solid rgba(255,255,255,.08) !important;
    color:#dce8ff !important;
    font-weight:800 !important;
    font-size:14px !important;
    line-height:1 !important;
    text-decoration:none !important;
    white-space:nowrap !important;
}
body .coach-nav a:hover{
    background:rgba(255,255,255,.13) !important;
    transform:translateY(-1px) !important;
}
body .coach-nav a.active{
    background:linear-gradient(135deg,#3157f6,#5147e8) !important;
    border-color:rgba(255,255,255,.18) !important;
    color:#fff !important;
    box-shadow:0 14px 28px rgba(49,87,246,.32) !important;
}
body .coach-nav-icon{
    width:auto !important;
    height:auto !important;
    min-width:0 !important;
    background:transparent !important;
    border-radius:0 !important;
    display:inline-flex !important;
}
body .coach-sidebar-config,
body .coach-logout{
    min-height:42px !important;
    padding:0 16px !important;
    border-radius:14px !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    gap:8px !important;
    white-space:nowrap !important;
    text-decoration:none !important;
    font-weight:800 !important;
    border:1px solid rgba(255,255,255,.08) !important;
}
body .coach-sidebar-config{background:rgba(255,255,255,.08) !important;color:#eaf1ff !important;}
body .coach-sidebar-config.active{background:linear-gradient(135deg,#3157f6,#5147e8) !important;color:#fff !important;}
body .coach-logout{background:rgba(255,255,255,.12) !important;color:#fff !important;}
body .coach-mini-user{
    min-height:42px !important;
    padding:5px 12px !important;
    border-radius:14px !important;
    background:rgba(255,255,255,.08) !important;
    border:1px solid rgba(255,255,255,.08) !important;
    display:flex !important;
    align-items:center !important;
    gap:8px !important;
    white-space:nowrap !important;
}
body .coach-main{
    width:100% !important;
    max-width:1280px !important;
    margin:0 auto !important;
    padding:28px 34px 56px !important;
}
@media (max-width:980px){
    body .coach-app{padding-top:220px !important;}
    body .coach-sidebar{padding:12px 14px 14px !important;grid-template-columns:1fr !important;grid-template-areas:"brand" "actions" "modules" !important;gap:10px !important;}
    body .coach-sidebar-footer{justify-content:flex-start !important;overflow-x:auto !important;padding-bottom:2px !important;}
    body .coach-nav{grid-template-columns:repeat(5,minmax(122px,1fr)) !important;overflow-x:auto !important;padding-bottom:2px !important;}
    body .coach-main{padding:22px 18px 44px !important;}
}

/* v1.0.35 - Panel de métricas del jugador */
.coach-player-metrics-filters{display:grid;grid-template-columns:minmax(180px,1.4fr) repeat(2,minmax(150px,1fr)) auto;gap:14px;align-items:end;margin-top:18px}.coach-player-metrics-filters label{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:700}.coach-player-metrics-filters input,.coach-player-metrics-filters select{min-height:42px}.coach-player-metrics-summary{display:grid;grid-template-columns:repeat(6,minmax(145px,1fr));gap:14px;margin:18px 0}.coach-player-detail-stats{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 18px}.coach-player-detail-stats span{background:#f4f7fb;border:1px solid #e1e7ef;border-radius:12px;padding:10px 14px;font-size:13px}.coach-player-detail-stats strong{font-size:18px;margin-right:4px}.coach-metric-badge{display:inline-flex;padding:5px 9px;border-radius:999px;font-size:12px;font-weight:800}.coach-metric-badge.is-positive{background:#e8f8ef;color:#177345}.coach-metric-badge.is-negative{background:#fdecec;color:#a52a2a}.coach-player-metrics-table td{vertical-align:top}.coach-row-actions{gap:8px;flex-wrap:wrap}
@media(max-width:1100px){.coach-player-metrics-summary{grid-template-columns:repeat(3,1fr)}}
@media(max-width:820px){.coach-player-metrics-filters{grid-template-columns:1fr}.coach-player-metrics-summary{grid-template-columns:repeat(2,1fr)}}
@media(max-width:520px){.coach-player-metrics-summary{grid-template-columns:1fr}}

/* Player metrics UX v1.0.36 — mobile first */
.coach-player-metrics-block{margin:18px 0 22px}
.coach-player-metrics-block-head{margin:0 0 12px;padding:0 4px}
.coach-player-metrics-block-head h3{margin:3px 0 0;font-size:20px;line-height:1.2;color:#0f172a}
.coach-player-metrics-summary{display:grid;gap:14px;margin:0}
.coach-player-metrics-summary-training{grid-template-columns:repeat(3,minmax(0,1fr))}
.coach-player-metrics-summary-matches{grid-template-columns:repeat(4,minmax(0,1fr))}
.coach-metric-card{position:relative;display:grid;grid-template-columns:48px minmax(0,1fr);gap:12px;align-items:center;min-width:0;padding:18px;border:1px solid #dfe6f0;border-radius:20px;background:#fff;box-shadow:0 8px 24px rgba(15,23,42,.055);overflow:hidden}
.coach-metric-card-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:15px;background:#eef2ff;color:#3346d3;font-size:21px;font-weight:900}
.coach-metric-card-copy{min-width:0}
.coach-metric-card-copy>span{display:block;font-size:12px;line-height:1.2;font-weight:850;letter-spacing:.025em;text-transform:uppercase;color:#475569;white-space:normal;overflow-wrap:normal;word-break:normal}
.coach-metric-card-copy>strong{display:block;margin-top:3px;font-size:32px;line-height:1;font-weight:900;color:#0f172a}
.coach-metric-card-copy>small{display:block;margin-top:6px;font-size:12px;line-height:1.35;color:#64748b;white-space:normal}
.coach-metric-progress{grid-column:1/-1;height:6px;border-radius:999px;background:#e9eef6;overflow:hidden}
.coach-metric-progress i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#365cf5,#6047ee)}
.coach-player-metrics-hero .coach-panel-header-pro{margin-bottom:4px}

@media(max-width:1100px){
  .coach-player-metrics-summary-training,.coach-player-metrics-summary-matches{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:760px){
  .coach-player-metrics-hero{padding:18px!important}
  .coach-player-metrics-hero h2{font-size:24px!important}
  .coach-player-metrics-filters{display:grid;grid-template-columns:1fr 1fr!important;gap:10px!important}
  .coach-player-metrics-filters label:first-of-type{grid-column:1/-1}
  .coach-player-metrics-filters .coach-filter-actions{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:10px}
  .coach-player-metrics-filters .coach-primary-btn,.coach-player-metrics-filters .coach-secondary-btn{width:100%;min-height:44px;display:flex;align-items:center;justify-content:center}
  .coach-player-metrics-summary-training,.coach-player-metrics-summary-matches{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .coach-metric-card{display:block;padding:14px;min-height:150px;border-radius:18px}
  .coach-metric-card-icon{width:40px;height:40px;border-radius:13px;font-size:18px;margin-bottom:12px}
  .coach-metric-card-copy>span{font-size:11px;min-height:27px}
  .coach-metric-card-copy>strong{font-size:30px}
  .coach-metric-card-copy>small{font-size:11px;min-height:30px}
  .coach-metric-progress{position:absolute;left:14px;right:14px;bottom:13px;height:5px}
  .coach-player-detail-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .coach-player-detail-stats span{padding:10px 11px;font-size:12px}
  .coach-player-detail-stats strong{display:block;font-size:20px;margin:0 0 2px}
  .coach-player-metrics-table-wrap,.coach-player-metrics-table{overflow:visible!important}
  .coach-player-metrics-table thead{display:none}
  .coach-player-metrics-table,.coach-player-metrics-table tbody,.coach-player-metrics-table tr,.coach-player-metrics-table td{display:block;width:100%}
  .coach-player-metrics-table tr{margin:0 0 12px;padding:12px 14px;border:1px solid #dfe6f0;border-radius:16px;background:#fff;box-shadow:0 5px 16px rgba(15,23,42,.04)}
  .coach-player-metrics-table td{display:grid;grid-template-columns:112px minmax(0,1fr);gap:10px;padding:7px 0!important;border:0!important;text-align:right;align-items:start}
  .coach-player-metrics-table td:before{content:attr(data-label);font-size:11px;font-weight:850;letter-spacing:.03em;text-transform:uppercase;color:#64748b;text-align:left}
  .coach-player-metrics-table td:empty{display:none}
}
@media(max-width:390px){
  .coach-player-metrics-summary-training,.coach-player-metrics-summary-matches{grid-template-columns:1fr 1fr}
  .coach-metric-card{padding:12px;min-height:145px}
  .coach-metric-card-copy>strong{font-size:27px}
  .coach-player-metrics-table td{grid-template-columns:96px minmax(0,1fr)}
}


/* Player metrics UX v1.0.37 — spacing and true mobile cards */
.coach-player-metrics-block{
  padding:22px;
  border:1px solid #e3e9f2;
  border-radius:22px;
  background:#fff;
  box-shadow:0 10px 30px rgba(15,23,42,.045);
}
.coach-player-metrics-block-head{padding:0 2px 4px}
.coach-metric-card{
  padding:24px;
  column-gap:16px;
  row-gap:18px;
  min-height:164px;
}
.coach-metric-card-icon{width:52px;height:52px;border-radius:16px}
.coach-metric-card-copy>strong{margin-top:7px;font-size:38px}
.coach-metric-card-copy>small{margin-top:9px;line-height:1.45}
.coach-player-metrics-table-wrap{
  width:100%;
  border:1px solid #e2e8f0;
  border-radius:18px;
  background:#fff;
  overflow:auto;
}

@media(max-width:760px){
  .coach-player-metrics-block{
    margin:14px 0 18px;
    padding:16px;
    border-radius:20px;
  }
  .coach-player-metrics-block-head{margin-bottom:14px;padding:0}
  .coach-player-metrics-block-head h3{font-size:18px}
  .coach-player-metrics-summary-training,
  .coach-player-metrics-summary-matches{gap:12px}
  .coach-metric-card{
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    justify-content:flex-start;
    gap:10px;
    min-height:174px;
    padding:18px 16px 30px;
    border-radius:18px;
  }
  .coach-metric-card-icon{width:42px;height:42px;margin:0;flex:0 0 42px}
  .coach-metric-card-copy{width:100%}
  .coach-metric-card-copy>span{min-height:0;font-size:10px;line-height:1.25}
  .coach-metric-card-copy>strong{margin-top:5px;font-size:31px}
  .coach-metric-card-copy>small{min-height:0;margin-top:7px;font-size:11px;line-height:1.35}
  .coach-metric-progress{left:16px;right:16px;bottom:15px}

  .coach-panel:has(.coach-player-metrics-table){padding:16px!important}
  .coach-panel:has(.coach-player-metrics-table) .coach-panel-header{margin-bottom:14px!important}
  .coach-panel:has(.coach-player-metrics-table) .coach-panel-header h2{font-size:22px!important}
  .coach-panel:has(.coach-player-metrics-table) .coach-panel-header p{font-size:13px;line-height:1.45}

  .coach-player-metrics-table-wrap{
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    overflow:visible!important;
  }
  .coach-player-metrics-table{border:0!important;background:transparent!important}
  .coach-player-metrics-table tbody{display:grid!important;gap:12px!important}
  .coach-player-metrics-table tr{
    margin:0!important;
    padding:16px!important;
    border:1px solid #dfe6f0!important;
    border-radius:18px!important;
    background:#fff!important;
    box-shadow:0 7px 20px rgba(15,23,42,.055)!important;
  }
  .coach-player-metrics-table td{
    display:grid!important;
    grid-template-columns:minmax(82px,38%) minmax(0,1fr)!important;
    gap:12px!important;
    padding:8px 0!important;
    text-align:right!important;
    line-height:1.35!important;
    overflow-wrap:anywhere;
  }
  .coach-player-metrics-table td+td{border-top:1px solid #eef2f7!important}
  .coach-player-metrics-table td:before{
    font-size:10px!important;
    line-height:1.35!important;
    align-self:start;
  }
  .coach-player-metrics-table td[colspan]{
    display:block!important;
    text-align:center!important;
    padding:18px 8px!important;
  }
  .coach-player-metrics-table td[colspan]:before{display:none!important}
}

@media(max-width:390px){
  .coach-player-metrics-block{padding:13px}
  .coach-player-metrics-summary-training,
  .coach-player-metrics-summary-matches{gap:9px}
  .coach-metric-card{min-height:168px;padding:15px 13px 28px}
  .coach-metric-card-copy>strong{font-size:28px}
  .coach-metric-progress{left:13px;right:13px;bottom:13px}
  .coach-player-metrics-table tr{padding:14px!important}
  .coach-player-metrics-table td{grid-template-columns:78px minmax(0,1fr)!important;gap:9px!important}
}

/* ==========================================================
 * Player metrics mobile UX v1.0.38
 * Final overrides: intentionally placed at the end of the CSS
 * ========================================================== */
body .coach-player-metrics-block {
    padding: 26px !important;
}
body .coach-player-metrics-block .coach-metric-card {
    box-sizing: border-box !important;
    padding: 22px !important;
}

@media screen and (max-width: 820px) {
    body .coach-main {
        overflow-x: hidden !important;
    }

    body .coach-player-metrics-hero,
    body .coach-player-metrics-block,
    body .coach-player-metrics-history-panel {
        box-sizing: border-box !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    body .coach-player-metrics-block {
        padding: 18px !important;
        margin: 14px 0 18px !important;
        border-radius: 20px !important;
    }

    body .coach-player-metrics-summary-training,
    body .coach-player-metrics-summary-matches {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
        width: 100% !important;
    }

    body .coach-player-metrics-block .coach-metric-card {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        gap: 10px !important;
        min-width: 0 !important;
        min-height: 178px !important;
        padding: 18px 16px 34px !important;
        border-radius: 18px !important;
    }

    body .coach-player-metrics-block .coach-metric-card-icon {
        width: 42px !important;
        height: 42px !important;
        flex: 0 0 42px !important;
        margin: 0 !important;
    }

    body .coach-player-metrics-block .coach-metric-card-copy {
        width: 100% !important;
        min-width: 0 !important;
    }

    body .coach-player-metrics-block .coach-metric-card-copy > span {
        min-height: 0 !important;
        font-size: 10px !important;
        line-height: 1.25 !important;
        overflow-wrap: anywhere !important;
    }

    body .coach-player-metrics-block .coach-metric-card-copy > strong {
        margin-top: 6px !important;
        font-size: 31px !important;
        line-height: 1 !important;
    }

    body .coach-player-metrics-block .coach-metric-card-copy > small {
        min-height: 0 !important;
        margin-top: 8px !important;
        font-size: 11px !important;
        line-height: 1.4 !important;
        overflow-wrap: anywhere !important;
    }

    body .coach-player-metrics-block .coach-metric-progress {
        position: absolute !important;
        left: 16px !important;
        right: 16px !important;
        bottom: 15px !important;
        width: auto !important;
    }

    body .coach-player-metrics-history-panel {
        padding: 18px !important;
        overflow: visible !important;
    }

    body .coach-player-metrics-history-panel .coach-panel-header {
        margin-bottom: 14px !important;
    }

    body .coach-player-metrics-history-panel .coach-panel-header h2 {
        font-size: 22px !important;
        line-height: 1.15 !important;
    }

    body .coach-player-metrics-history-panel .coach-panel-header p {
        font-size: 13px !important;
        line-height: 1.45 !important;
    }

    body .coach-player-metrics-history-panel .coach-player-detail-stats {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 9px !important;
        width: 100% !important;
    }

    body .coach-player-metrics-history-panel .coach-player-detail-stats span {
        box-sizing: border-box !important;
        min-width: 0 !important;
        padding: 12px !important;
    }

    body .coach-player-metrics-history-panel .coach-player-metrics-table-wrap {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        overflow: visible !important;
    }

    body .coach-player-metrics-history-panel table.coach-player-metrics-table,
    body .coach-player-metrics-history-panel table.coach-player-metrics-table tbody {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        border: 0 !important;
        background: transparent !important;
        table-layout: auto !important;
    }

    body .coach-player-metrics-history-panel table.coach-player-metrics-table thead {
        display: none !important;
    }

    body .coach-player-metrics-history-panel table.coach-player-metrics-table tbody {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    body .coach-player-metrics-history-panel table.coach-player-metrics-table tr {
        display: block !important;
        box-sizing: border-box !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 16px !important;
        border: 1px solid #dfe6f0 !important;
        border-radius: 18px !important;
        background: #fff !important;
        box-shadow: 0 7px 20px rgba(15, 23, 42, .055) !important;
        overflow: hidden !important;
    }

    body .coach-player-metrics-history-panel table.coach-player-metrics-table td {
        display: grid !important;
        grid-template-columns: minmax(88px, 38%) minmax(0, 1fr) !important;
        align-items: start !important;
        gap: 12px !important;
        box-sizing: border-box !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding: 9px 0 !important;
        border: 0 !important;
        text-align: right !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
    }

    body .coach-player-metrics-history-panel table.coach-player-metrics-table td + td {
        border-top: 1px solid #eef2f7 !important;
    }

    body .coach-player-metrics-history-panel table.coach-player-metrics-table td::before {
        content: attr(data-label) !important;
        display: block !important;
        min-width: 0 !important;
        font-size: 10px !important;
        line-height: 1.35 !important;
        font-weight: 850 !important;
        letter-spacing: .03em !important;
        text-transform: uppercase !important;
        color: #64748b !important;
        text-align: left !important;
        overflow-wrap: anywhere !important;
    }

    body .coach-player-metrics-history-panel table.coach-player-metrics-table td:empty {
        display: none !important;
    }

    body .coach-player-metrics-history-panel table.coach-player-metrics-table td[colspan] {
        display: block !important;
        padding: 18px 8px !important;
        text-align: center !important;
    }

    body .coach-player-metrics-history-panel table.coach-player-metrics-table td[colspan]::before {
        display: none !important;
    }
}

@media screen and (max-width: 420px) {
    body .coach-player-metrics-block {
        padding: 14px !important;
    }

    body .coach-player-metrics-summary-training,
    body .coach-player-metrics-summary-matches {
        gap: 9px !important;
    }

    body .coach-player-metrics-block .coach-metric-card {
        min-height: 172px !important;
        padding: 16px 13px 32px !important;
    }

    body .coach-player-metrics-block .coach-metric-card-copy > strong {
        font-size: 28px !important;
    }

    body .coach-player-metrics-history-panel {
        padding: 14px !important;
    }

    body .coach-player-metrics-history-panel table.coach-player-metrics-table tr {
        padding: 14px !important;
    }

    body .coach-player-metrics-history-panel table.coach-player-metrics-table td {
        grid-template-columns: 80px minmax(0, 1fr) !important;
        gap: 9px !important;
    }
}

/* ==========================================================
 * Player metrics mobile records v1.0.40
 * Real mobile cards: tables are desktop-only.
 * ========================================================== */
.coach-player-metrics-mobile-list{display:none}

@media screen and (max-width:1200px){
  body .coach-player-metrics-desktop-table{display:none!important}
  body .coach-player-metrics-mobile-list{
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    gap:12px!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    margin:0!important;
    padding:0!important;
    box-sizing:border-box!important;
    overflow:hidden!important;
  }
  body .coach-player-mobile-record{
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    box-sizing:border-box!important;
    margin:0!important;
    padding:16px!important;
    border:1px solid #dfe6f0!important;
    border-radius:18px!important;
    background:#fff!important;
    box-shadow:0 7px 20px rgba(15,23,42,.055)!important;
    overflow:hidden!important;
  }
  body .coach-player-mobile-record-head{
    display:flex!important;
    align-items:flex-start!important;
    justify-content:space-between!important;
    gap:12px!important;
    width:100%!important;
    min-width:0!important;
    padding-bottom:13px!important;
    margin-bottom:4px!important;
    border-bottom:1px solid #eef2f7!important;
  }
  body .coach-player-mobile-record-head>div{min-width:0!important}
  body .coach-player-mobile-record-head strong{
    display:block!important;
    min-width:0!important;
    font-size:16px!important;
    line-height:1.3!important;
    color:#0f172a!important;
    overflow-wrap:anywhere!important;
  }
  body .coach-player-mobile-record-head small{
    display:block!important;
    margin-bottom:3px!important;
    color:#64748b!important;
    font-size:11px!important;
    font-weight:800!important;
  }
  body .coach-player-mobile-percent{
    flex:0 0 auto!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    min-width:52px!important;
    padding:8px 10px!important;
    border-radius:12px!important;
    background:#eef2ff!important;
    color:#3346d3!important;
    font-size:14px!important;
    font-weight:900!important;
  }
  body .coach-player-mobile-record-grid{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
    gap:0 14px!important;
    width:100%!important;
    min-width:0!important;
  }
  body .coach-player-mobile-record-grid>div{
    min-width:0!important;
    padding:11px 0!important;
    border-bottom:1px solid #f0f3f8!important;
  }
  body .coach-player-mobile-record-grid>div:nth-last-child(-n+2){border-bottom:0!important}
  body .coach-player-mobile-record-grid small{
    display:block!important;
    margin-bottom:4px!important;
    color:#64748b!important;
    font-size:10px!important;
    line-height:1.2!important;
    font-weight:850!important;
    letter-spacing:.04em!important;
    text-transform:uppercase!important;
  }
  body .coach-player-mobile-record-grid span{
    display:block!important;
    min-width:0!important;
    color:#1e293b!important;
    font-size:13px!important;
    line-height:1.35!important;
    font-weight:750!important;
    white-space:normal!important;
    overflow-wrap:anywhere!important;
    word-break:normal!important;
  }
  body .coach-player-mobile-empty{
    width:100%!important;
    box-sizing:border-box!important;
    padding:18px!important;
    border:1px dashed #cbd5e1!important;
    border-radius:16px!important;
    color:#64748b!important;
    text-align:center!important;
  }
}

@media screen and (max-width:390px){
  body .coach-player-mobile-record{padding:14px!important}
  body .coach-player-mobile-record-grid{grid-template-columns:minmax(0,1fr)!important}
  body .coach-player-mobile-record-grid>div,
  body .coach-player-mobile-record-grid>div:nth-last-child(-n+2){border-bottom:1px solid #f0f3f8!important}
  body .coach-player-mobile-record-grid>div:last-child{border-bottom:0!important}
}


/* Robust responsive fallback for installations that report a desktop-like viewport on phones. */
.coach-player-metrics-history-panel{
  container-type:inline-size;
  container-name:playerMetricsHistory;
}
@container playerMetricsHistory (max-width: 900px){
  .coach-player-metrics-desktop-table{display:none!important}
  .coach-player-metrics-mobile-list{display:grid!important}
}
@media screen and (max-width:1200px){
  html,body{max-width:100%;overflow-x:hidden}
  body .coach-player-metrics-history-panel,
  body .coach-player-metrics-history-panel *{box-sizing:border-box}
  body .coach-player-metrics-history-panel{width:100%!important;max-width:100%!important;overflow:hidden!important}
}

/* ==========================================================
 * Player metrics UX v1.0.41
 * Mobile-first ficha del jugador. Desktop tables are never
 * rendered together with mobile cards.
 * ========================================================== */
.coach-player-profile-card{padding:24px!important}
.coach-player-profile-main{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:18px;margin-bottom:22px}
.coach-player-profile-avatar{width:72px;height:72px;border-radius:24px;display:grid;place-items:center;background:linear-gradient(135deg,#e9efff,#f5f1ff);color:#3155f6;font-size:24px;font-weight:950;box-shadow:inset 0 0 0 1px rgba(49,85,246,.08)}
.coach-player-profile-copy{min-width:0}
.coach-player-profile-copy h2{margin:4px 0 6px!important;font-size:30px!important;line-height:1.05!important;color:#0f172a!important;letter-spacing:-.04em}
.coach-player-profile-copy p{margin:0;color:#64748b;font-weight:750;overflow-wrap:anywhere}
.coach-player-profile-tags{display:flex;flex-wrap:wrap;gap:8px;margin-top:11px}
.coach-player-profile-tags span{display:inline-flex;align-items:center;min-height:28px;padding:5px 10px;border-radius:999px;background:#eef2ff;color:#3155f6;font-size:11px;font-weight:900}
.coach-player-metrics-nav{position:sticky;top:12px;z-index:8;display:flex;gap:8px;width:max-content;max-width:100%;margin:0 auto 18px;padding:6px;border:1px solid #e4eaf3;border-radius:18px;background:rgba(255,255,255,.94);backdrop-filter:blur(12px);box-shadow:0 12px 30px rgba(15,23,42,.09);overflow:auto}
.coach-player-metrics-nav a{padding:10px 15px;border-radius:13px;color:#475569;text-decoration:none;font-weight:900;white-space:nowrap}
.coach-player-metrics-nav a:first-child{background:#3155f6;color:#fff}
.coach-player-metrics-history-panel{scroll-margin-top:130px}

/* Definitive mutually-exclusive history layouts. */
.coach-player-metrics-mobile-list{display:none!important}
.coach-player-metrics-desktop-table{display:block!important}

@media screen and (max-width: 900px){
  body .coach-player-metrics-history-panel .coach-player-metrics-desktop-table,
  body .coach-player-metrics-history-panel .coach-player-metrics-desktop-table *,
  body .coach-player-metrics-history-panel .coach-table-wrap.coach-player-metrics-desktop-table{display:none!important;visibility:hidden!important;height:0!important;min-height:0!important;max-height:0!important;margin:0!important;padding:0!important;border:0!important;overflow:hidden!important}
  body .coach-player-metrics-history-panel .coach-player-metrics-mobile-list{display:grid!important;visibility:visible!important;height:auto!important;max-height:none!important}
  .coach-module-toolbar .coach-secondary-btn{display:none}
  .coach-player-profile-card{padding:18px!important;border-radius:22px!important}
  .coach-player-profile-main{grid-template-columns:auto minmax(0,1fr);gap:14px;margin-bottom:18px}
  .coach-player-profile-avatar{width:58px;height:58px;border-radius:19px;font-size:19px}
  .coach-player-profile-copy h2{font-size:24px!important}
  .coach-player-profile-edit{grid-column:1/-1;width:100%;justify-content:center;box-sizing:border-box}
  .coach-player-metrics-filters{grid-template-columns:1fr!important;gap:11px!important}
  .coach-player-metrics-filters label{width:100%!important}
  .coach-player-metrics-filters input,.coach-player-metrics-filters select{width:100%!important;box-sizing:border-box!important}
  .coach-player-metrics-filters .coach-filter-actions{display:grid!important;grid-template-columns:1fr 1fr!important;width:100%!important;gap:9px!important}
  .coach-player-metrics-filters .coach-filter-actions>*{width:100%!important;box-sizing:border-box!important;text-align:center!important;justify-content:center!important}
  .coach-player-metrics-nav{top:8px;width:100%;box-sizing:border-box;margin-bottom:14px}
  .coach-player-metrics-nav a{flex:1;text-align:center;padding:10px 11px;font-size:12px}
  .coach-player-metrics-block{padding:18px!important;border-radius:22px!important}
  .coach-player-metrics-block-head{margin-bottom:14px!important}
  .coach-player-metrics-summary-training{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .coach-player-metrics-summary-training .coach-metric-card:last-child{grid-column:1/-1}
  .coach-player-metrics-summary-matches{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body .coach-player-metrics-block .coach-metric-card{min-height:154px!important;padding:18px 16px 28px!important;border-radius:20px!important}
  body .coach-player-metrics-block .coach-metric-card-copy>strong{font-size:32px!important;line-height:1!important}
  body .coach-player-metrics-block .coach-metric-card-copy>span{font-size:12px!important;line-height:1.25!important}
  body .coach-player-metrics-block .coach-metric-card-copy>small{font-size:11px!important;line-height:1.35!important}
  .coach-player-detail-stats{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
  .coach-player-detail-stats span{padding:15px!important;border-radius:16px!important}
  body .coach-player-metrics-history-panel{padding:18px!important;border-radius:22px!important;overflow:visible!important}
  body .coach-player-mobile-record{padding:16px!important;border-radius:20px!important;box-shadow:0 10px 28px rgba(15,23,42,.06)!important}
  body .coach-player-mobile-record-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media screen and (max-width: 390px){
  .coach-player-profile-main{grid-template-columns:1fr;text-align:center}
  .coach-player-profile-avatar{margin:auto}
  .coach-player-profile-tags{justify-content:center}
  .coach-player-metrics-nav a{font-size:11px;padding:9px 7px}
  .coach-player-metrics-summary-training,.coach-player-metrics-summary-matches{gap:10px!important}
  body .coach-player-metrics-block .coach-metric-card{padding:15px 12px 26px!important;min-height:150px!important}
  body .coach-player-mobile-record-grid{grid-template-columns:1fr!important}
}
@media screen and (min-width: 901px){
  .coach-player-metrics-history-panel .coach-player-metrics-desktop-table{display:block!important;visibility:visible!important;height:auto!important;max-height:none!important}
  .coach-player-metrics-history-panel .coach-player-metrics-mobile-list{display:none!important}
}


/* ==========================================================
 * Player metrics desktop table UX v1.0.42
 * Scroll interno vertical y encabezados fijos en escritorio.
 * ========================================================== */
@media screen and (min-width: 901px){
  body .coach-player-metrics-history-panel .coach-player-metrics-desktop-table{
    display:block!important;
    width:100%!important;
    max-height:520px!important;
    overflow-x:auto!important;
    overflow-y:auto!important;
    overscroll-behavior:contain;
    scrollbar-gutter:stable;
    border:1px solid #e2e8f0!important;
    border-radius:18px!important;
    background:#fff!important;
  }
  body .coach-player-metrics-history-panel .coach-player-metrics-desktop-table table{
    width:100%!important;
    min-width:820px;
    border-collapse:separate!important;
    border-spacing:0!important;
    margin:0!important;
  }
  body .coach-player-metrics-history-panel .coach-player-metrics-desktop-table thead{
    position:relative!important;
    z-index:4!important;
  }
  body .coach-player-metrics-history-panel .coach-player-metrics-desktop-table thead th{
    position:sticky!important;
    top:0!important;
    z-index:5!important;
    background:#f8fafc!important;
    box-shadow:0 1px 0 #e2e8f0,0 6px 12px rgba(15,23,42,.04)!important;
  }
  body .coach-player-metrics-history-panel .coach-player-metrics-desktop-table tbody tr:last-child td{
    border-bottom:0!important;
  }
}

/* Coach Digital v1.0.43 - Ficha integral imprimible del jugador */
.coach-player-name-link{color:inherit;text-decoration:none}.coach-player-name-link:hover{color:#3155f6;text-decoration:underline}.coach-profile-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px}.coach-profile-toolbar-actions{display:flex;gap:10px}.coach-player-full-profile{background:#fff;border:1px solid #e5eaf2;border-radius:28px;overflow:hidden;box-shadow:0 18px 50px rgba(15,23,42,.07)}.coach-player-full-profile-header{padding:28px 30px;background:linear-gradient(135deg,#0f172a,#172554);color:#fff;display:flex;justify-content:space-between;align-items:center;gap:28px}.coach-profile-club-brand,.coach-profile-player-heading{display:flex;align-items:center;gap:16px}.coach-profile-club-brand img{width:68px;height:68px;border-radius:16px;object-fit:contain;background:#fff;padding:6px}.coach-profile-club-brand span,.coach-profile-player-heading span{display:block;font-size:11px;text-transform:uppercase;letter-spacing:.12em;opacity:.7;font-weight:800}.coach-profile-club-brand h1,.coach-profile-player-heading h2{margin:3px 0 4px;color:#fff}.coach-profile-club-brand p,.coach-profile-player-heading p{margin:0;color:rgba(255,255,255,.75)}.coach-profile-player-heading .coach-player-profile-avatar{background:#fff;color:#172554;width:66px;height:66px;flex:0 0 66px}.coach-profile-info-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;padding:24px}.coach-profile-info-card{border:1px solid #e7ecf3;border-radius:22px;padding:22px;background:#fff}.coach-profile-info-card h3,.coach-profile-metrics-summary h3{margin:0 0 18px;color:#0f172a}.coach-profile-sports-card{grid-column:1/-1}.coach-profile-info-card dl{margin:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 18px}.coach-profile-info-card dl>div{padding-bottom:10px;border-bottom:1px solid #eef2f7;min-width:0}.coach-profile-info-card dl>div.wide{grid-column:1/-1}.coach-profile-info-card dt{font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:#64748b;font-weight:800;margin-bottom:5px}.coach-profile-info-card dd{margin:0;color:#172033;font-weight:750;overflow-wrap:anywhere}.coach-profile-metrics-summary{padding:0 24px 26px}.coach-profile-metrics-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}.coach-profile-metrics-grid article{padding:18px;border:1px solid #e8edf5;border-radius:18px;background:#f8fafc}.coach-profile-metrics-grid span,.coach-profile-metrics-grid small{display:block;color:#64748b}.coach-profile-metrics-grid strong{display:block;font-size:30px;line-height:1.15;margin:8px 0;color:#0f172a}
@media(max-width:900px){.coach-player-full-profile-header{align-items:flex-start;flex-direction:column}.coach-profile-info-grid{grid-template-columns:1fr}.coach-profile-sports-card{grid-column:auto}.coach-profile-metrics-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.coach-profile-toolbar{align-items:stretch;flex-direction:column}.coach-profile-toolbar-actions{display:grid;grid-template-columns:1fr 1fr}.coach-player-full-profile{border-radius:20px}.coach-player-full-profile-header{padding:22px 18px}.coach-profile-club-brand,.coach-profile-player-heading{align-items:flex-start}.coach-profile-club-brand img{width:54px;height:54px}.coach-profile-player-heading .coach-player-profile-avatar{width:54px;height:54px;flex-basis:54px}.coach-profile-info-grid{padding:14px;gap:12px}.coach-profile-info-card{padding:18px;border-radius:18px}.coach-profile-info-card dl{grid-template-columns:1fr}.coach-profile-info-card dl>div.wide{grid-column:auto}.coach-profile-metrics-summary{padding:0 14px 18px}.coach-profile-metrics-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.coach-profile-metrics-grid article{padding:14px}.coach-profile-metrics-grid strong{font-size:26px}}
@media print{
  body *{visibility:hidden!important}
  .coach-player-full-profile,.coach-player-full-profile *{visibility:visible!important}
  .coach-player-full-profile{position:absolute!important;left:0!important;top:0!important;width:100%!important;border:0!important;box-shadow:none!important;border-radius:0!important;overflow:visible!important}
  .coach-sidebar,.coach-topbar,.coach-module-toolbar,.no-print{display:none!important}
  .coach-player-full-profile-header{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    align-items:center!important;
    gap:14px!important;
    padding:12px 14px!important;
    margin:0 0 10px!important;
    background:#f3f6fb!important;
    border:1px solid #dfe6f1!important;
    border-radius:12px!important;
    color:#0f172a!important;
    -webkit-print-color-adjust:exact!important;
    print-color-adjust:exact!important;
    break-inside:avoid!important;
  }
  .coach-profile-club-brand,.coach-profile-player-heading{display:flex!important;align-items:center!important;gap:10px!important;min-width:0!important}
  .coach-profile-club-brand img{width:48px!important;height:48px!important;border-radius:10px!important;padding:4px!important;background:#fff!important}
  .coach-profile-player-heading{justify-content:flex-end!important;text-align:left!important}
  .coach-profile-player-heading .coach-player-profile-avatar{width:48px!important;height:48px!important;flex:0 0 48px!important;background:#fff!important;color:#172554!important;border:1px solid #dbe3ef!important}
  .coach-profile-club-brand span,.coach-profile-player-heading span{color:#64748b!important;opacity:1!important;font-size:9px!important}
  .coach-profile-club-brand h1,.coach-profile-player-heading h2{color:#0f172a!important;margin:2px 0!important;font-size:18px!important;line-height:1.15!important}
  .coach-profile-club-brand p,.coach-profile-player-heading p{color:#475569!important;margin:0!important;font-size:10px!important}
  .coach-profile-info-grid{grid-template-columns:repeat(2,1fr)!important;gap:10px!important;padding:0!important}
  .coach-profile-info-card{padding:12px!important;border-radius:12px!important;break-inside:avoid!important}
  .coach-profile-info-card h3{margin:0 0 10px!important;font-size:15px!important}
  .coach-profile-info-card dl{gap:8px 12px!important}
  .coach-profile-info-card dl>div{padding-bottom:6px!important}
  .coach-profile-info-card dt{font-size:8px!important;margin-bottom:3px!important}
  .coach-profile-info-card dd{font-size:10px!important;line-height:1.25!important}
  .coach-profile-sports-card{grid-column:1/-1!important}
  .coach-profile-metrics-summary{padding:10px 0 0!important;break-inside:avoid!important}
  .coach-profile-metrics-summary h3{margin:0 0 8px!important;font-size:15px!important}
  .coach-profile-metrics-grid{grid-template-columns:repeat(3,1fr)!important;gap:8px!important}
  .coach-profile-metrics-grid article{padding:12px 14px!important;min-height:74px!important;border-radius:12px!important;background:#f8fafc!important;break-inside:avoid!important;-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important}
  .coach-profile-metrics-grid span{font-size:10px!important;line-height:1.2!important}
  .coach-profile-metrics-grid strong{font-size:24px!important;line-height:1!important;margin:6px 0 5px!important}
  .coach-profile-metrics-grid small{font-size:8px!important;line-height:1.2!important}
  @page{size:A4;margin:8mm}
}

/* Planning MVP */
.coach-plans-list,.coach-plan-form{padding:0 28px 32px}.coach-plan-row{display:grid;grid-template-columns:72px 1fr auto;gap:18px;align-items:center;background:#fff;border:1px solid #e7ebf1;border-radius:16px;padding:16px;margin-bottom:12px}.coach-plan-date{width:58px;height:58px;border-radius:14px;background:#eef4ff;display:flex;flex-direction:column;align-items:center;justify-content:center}.coach-plan-date strong{font-size:22px}.coach-plan-date span{text-transform:uppercase;font-size:12px}.coach-plan-summary h3{margin:0 0 5px}.coach-plan-summary p{margin:0 0 6px;color:#536174}.coach-plan-summary small{color:#718096}.coach-plan-actions{display:flex;gap:10px;flex-wrap:wrap}.coach-plan-actions a{font-weight:600;text-decoration:none}.coach-plan-actions .is-danger{color:#c53030}.coach-empty-state{background:#fff;border:1px dashed #cbd5e0;border-radius:16px;padding:34px;text-align:center}.coach-plan-general-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:14px;background:#fff;border:1px solid #e7ebf1;border-radius:16px;padding:18px;margin-bottom:16px}.coach-plan-form label{font-weight:600;color:#25324a;display:flex;flex-direction:column;gap:7px}.coach-plan-form input,.coach-plan-form select,.coach-plan-form textarea{width:100%;box-sizing:border-box;border:1px solid #d7deea;border-radius:10px;padding:11px 12px;background:#fff;font:inherit}.coach-plan-wide-label{background:#fff;border:1px solid #e7ebf1;border-radius:16px;padding:18px;margin-bottom:20px}.coach-plan-section-title{display:flex;justify-content:space-between;align-items:end;gap:15px;margin:26px 0 12px}.coach-plan-section-title h3{margin:2px 0}.coach-plan-section-title p{margin:4px 0 0;color:#667085}.coach-plan-block,.coach-plan-group{background:#fff;border:1px solid #e7ebf1;border-radius:16px;padding:18px;margin-bottom:14px}.coach-plan-block-top{display:grid;grid-template-columns:1fr 170px auto;gap:12px;align-items:center;margin-bottom:12px}.coach-block-title{font-size:18px!important;font-weight:700}.coach-remove-block,.coach-remove-group{border:0;background:transparent;color:#b42318;cursor:pointer;font-weight:600}.coach-photo-box{display:flex;gap:16px;align-items:center;border:1px dashed #bfc9d8;border-radius:14px;padding:14px;margin-top:12px;background:#fafcff}.coach-photo-box img{width:150px;height:100px;object-fit:cover;border-radius:10px}.coach-photo-box p{margin:4px 0 10px;color:#667085}.coach-plan-group-head{display:flex;gap:10px;align-items:center;margin-bottom:12px}.coach-plan-group-head input{max-width:260px;font-weight:700}.coach-player-checks{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.coach-player-checks label{display:flex;flex-direction:row;align-items:center;font-weight:500;background:#f7f9fc;padding:9px;border-radius:9px}.coach-player-checks input{width:auto}.coach-plan-savebar{position:sticky;bottom:0;display:flex;justify-content:flex-end;gap:12px;background:rgba(247,249,252,.95);padding:16px 0 4px}.coach-secondary-btn{display:inline-flex;align-items:center;justify-content:center;border:1px solid #d7deea;background:#fff;color:#25324a;border-radius:10px;padding:10px 14px;text-decoration:none;font-weight:600;cursor:pointer}.coach-plan-form-heading{align-items:center}
@media(max-width:900px){.coach-plans-list,.coach-plan-form{padding:0 14px 24px}.coach-plan-general-grid{grid-template-columns:1fr 1fr}.coach-plan-row{grid-template-columns:58px 1fr}.coach-plan-actions{grid-column:1/-1}.coach-plan-block-top{grid-template-columns:1fr}.coach-player-checks{grid-template-columns:1fr 1fr}.coach-photo-box{align-items:flex-start;flex-direction:column}.coach-photo-box img{width:100%;height:auto}}
@media(max-width:560px){.coach-plan-general-grid,.coach-player-checks{grid-template-columns:1fr}.coach-plan-section-title{align-items:flex-start;flex-direction:column}.coach-plan-row{grid-template-columns:1fr}.coach-plan-date{width:100%;height:auto;flex-direction:row;gap:6px;padding:8px}.coach-plan-date strong{font-size:18px}}


/* v1.0.49 - Planificación: acceso visible y seis módulos en navegación */
body .coach-nav {
    grid-template-columns: repeat(6, minmax(120px, 1fr)) !important;
}
body .coach-dashboard-intro.coach-planning-intro,
body .coach-dashboard-intro.coach-plan-form-heading {
    display: flex !important;
}
@media (max-width: 980px) {
    body .coach-nav {
        grid-template-columns: repeat(6, minmax(122px, 1fr)) !important;
        overflow-x: auto !important;
    }
}
@media (max-width: 820px) {
    body .coach-dashboard-intro.coach-planning-intro,
    body .coach-dashboard-intro.coach-plan-form-heading {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
    }
}

/* Planning calendar + printable session view v1.0.50 */
.coach-new-session-btn{gap:8px;min-width:190px;font-size:15px;box-shadow:0 8px 18px rgba(49,76,244,.18)}
.coach-new-session-btn span{font-size:20px;line-height:1}
.coach-planning-calendar-wrap{padding:0 28px 34px}
.coach-calendar-toolbar{display:flex;align-items:center;gap:10px;background:#fff;border:1px solid #e7ebf1;border-bottom:0;border-radius:16px 16px 0 0;padding:14px 16px}
.coach-calendar-toolbar h3{margin:0;min-width:210px;text-align:center;text-transform:capitalize}
.coach-calendar-nav,.coach-calendar-today{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;border:1px solid #d7deea;background:#fff;color:#25324a;border-radius:10px;height:38px;padding:0 13px;font-weight:700}
.coach-calendar-nav{width:38px;padding:0;font-size:25px}
.coach-calendar-today{margin-left:auto}
.coach-calendar-scroll{overflow-x:auto;border:1px solid #e7ebf1;background:#fff}
.coach-session-calendar{display:grid;grid-template-columns:repeat(7,minmax(130px,1fr));min-width:910px}
.coach-calendar-weekday{padding:11px 10px;text-align:center;font-size:12px;font-weight:800;color:#5c6b80;background:#f7f9fc;border-right:1px solid #edf0f5;border-bottom:1px solid #e7ebf1;text-transform:uppercase}
.coach-calendar-day{min-height:142px;padding:9px;border-right:1px solid #edf0f5;border-bottom:1px solid #edf0f5;background:#fff}
.coach-calendar-day.is-outside{background:#fafbfc}
.coach-calendar-day.is-today{box-shadow:inset 0 0 0 2px #3657f5;background:#f8faff}
.coach-calendar-day-number{font-weight:800;color:#25324a;margin-bottom:7px}
.coach-calendar-events{display:flex;flex-direction:column;gap:7px}
.coach-calendar-event{display:block;text-decoration:none;background:#eef3ff;border-left:4px solid #3657f5;border-radius:9px;padding:8px;color:#172033}
.coach-calendar-event:hover{background:#e4ebff}
.coach-calendar-event-time{display:block;font-size:11px;font-weight:800;color:#3657f5;margin-bottom:2px}
.coach-calendar-event strong{display:block;font-size:13px;margin-bottom:2px}
.coach-calendar-event span:last-child{display:block;font-size:11px;line-height:1.3;color:#536174}
.coach-calendar-empty{background:#fff;border:1px solid #e7ebf1;border-top:0;border-radius:0 0 16px 16px;padding:18px;text-align:center;color:#667085}

.coach-session-view-actions{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:0 28px 16px}
.coach-session-view-actions>div{display:flex;gap:10px;flex-wrap:wrap}
.coach-session-sheet{max-width:980px;margin:0 auto 40px;background:#fff;border:1px solid #e4e8ef;border-radius:18px;padding:34px;box-shadow:0 10px 30px rgba(16,24,40,.06)}
.coach-session-sheet-header{display:flex;justify-content:space-between;gap:24px;padding-bottom:22px;border-bottom:2px solid #172033}
.coach-session-sheet-header h1{margin:6px 0 5px;font-size:30px}
.coach-session-date-line{margin:0;color:#5d6a7d}
.coach-session-sheet-mark{font-weight:900;line-height:1.05;text-align:right;color:#3657f5;letter-spacing:.08em}
.coach-session-objective{margin:24px 0;background:#f5f7ff;border-left:5px solid #3657f5;border-radius:12px;padding:18px 20px}
.coach-session-objective span{display:block;text-transform:uppercase;font-size:12px;font-weight:900;color:#3657f5;letter-spacing:.08em;margin-bottom:6px}
.coach-session-objective p{margin:0;line-height:1.55}
.coach-session-blocks-view{display:flex;flex-direction:column;gap:20px}
.coach-session-block-view{display:grid;grid-template-columns:44px 1fr;gap:16px;padding-bottom:20px;border-bottom:1px solid #e8ecf2}
.coach-session-block-number{width:38px;height:38px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#172033;color:#fff;font-weight:900}
.coach-session-block-heading{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:10px}
.coach-session-block-heading h2{margin:0;font-size:21px}
.coach-session-block-heading span{white-space:nowrap;background:#eef3ff;color:#3657f5;border-radius:999px;padding:6px 10px;font-weight:800;font-size:12px}
.coach-session-description{line-height:1.6;color:#39475a;white-space:normal}
.coach-session-image{margin:15px 0 0}
.coach-session-image img{display:block;max-width:100%;max-height:560px;object-fit:contain;border:1px solid #e1e6ee;border-radius:12px;background:#fafafa}
.coach-session-groups-view,.coach-session-observations{margin-top:26px;padding-top:20px;border-top:2px solid #172033}
.coach-session-groups-view h2,.coach-session-observations h2{margin:0 0 14px;font-size:20px}
.coach-session-groups-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.coach-session-group-card{border:1px solid #dfe5ee;border-radius:12px;padding:15px}
.coach-session-group-card h3{margin:0 0 10px}
.coach-session-group-card ul{columns:2;margin:0;padding-left:18px}
.coach-session-group-card li{margin-bottom:5px}
.coach-session-observations p{margin:0;line-height:1.6}

@media(max-width:900px){
  .coach-planning-calendar-wrap,.coach-session-view-actions{padding-left:14px;padding-right:14px}
  .coach-session-sheet{margin:0 14px 28px;padding:22px}
}
@media(max-width:620px){
  .coach-planning-intro{align-items:stretch!important;flex-direction:column}
  .coach-new-session-btn{width:100%}
  .coach-calendar-toolbar{flex-wrap:wrap}
  .coach-calendar-toolbar h3{order:-1;width:100%;text-align:left;min-width:0}
  .coach-calendar-today{margin-left:auto}
  .coach-session-view-actions{align-items:stretch;flex-direction:column}
  .coach-session-view-actions>div{display:grid;grid-template-columns:1fr 1fr}
  .coach-session-view-actions>div .coach-primary-btn{grid-column:1/-1}
  .coach-session-sheet-header{flex-direction:column}
  .coach-session-sheet-mark{text-align:left}
  .coach-session-block-view{grid-template-columns:1fr}
  .coach-session-block-number{width:32px;height:32px}
  .coach-session-block-heading{align-items:flex-start;flex-direction:column}
  .coach-session-groups-grid{grid-template-columns:1fr}
  .coach-session-group-card ul{columns:1}
}
@media print{
  body,html{background:#fff!important;overflow:visible!important}
  .coach-topbar,.coach-sidebar,.coach-main-header,.no-print,.coach-session-view-actions{display:none!important}
  .coach-app,.coach-main{position:static!important;height:auto!important;overflow:visible!important;background:#fff!important}
  .coach-main{padding:0!important}
  .coach-session-sheet{max-width:none;margin:0;border:0;border-radius:0;box-shadow:none;padding:0}
  .coach-session-block-view,.coach-session-objective,.coach-session-group-card{break-inside:avoid}
  .coach-session-image img{max-height:420px}
}

/* v1.0.51 - Mejoras de acción Nueva sesión e impresión */
body .coach-planning-intro .coach-new-session-btn{
  flex:0 0 auto!important;
  width:auto!important;
  min-width:0!important;
  min-height:46px!important;
  padding:0 20px 0 12px!important;
  border-radius:14px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:10px!important;
  font-size:14px!important;
  font-weight:850!important;
  line-height:1!important;
  text-decoration:none!important;
  white-space:nowrap!important;
  box-shadow:0 10px 22px rgba(49,76,244,.22)!important;
}
body .coach-planning-intro .coach-new-session-btn span{
  width:28px!important;
  height:28px!important;
  border-radius:9px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  background:rgba(255,255,255,.18)!important;
  font-size:19px!important;
  line-height:1!important;
  font-weight:500!important;
}
body .coach-planning-intro .coach-new-session-btn:hover{
  transform:translateY(-1px)!important;
  box-shadow:0 13px 25px rgba(49,76,244,.28)!important;
}
@media(max-width:620px){
  body .coach-planning-intro .coach-new-session-btn{
    width:100%!important;
  }
}

@media print{
  /* La ficha imprimible del jugador oculta globalmente el contenido. Se habilita
     explícitamente la hoja de sesión para evitar una vista previa en blanco. */
  body .coach-session-sheet,
  body .coach-session-sheet *{
    visibility:visible!important;
  }
  body .coach-session-sheet{
    display:block!important;
    position:absolute!important;
    left:0!important;
    top:0!important;
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    border-radius:0!important;
    box-shadow:none!important;
    background:#fff!important;
    overflow:visible!important;
  }
  body .coach-session-sheet-header,
  body .coach-session-objective,
  body .coach-session-block-view,
  body .coach-session-group-card,
  body .coach-session-observations{
    visibility:visible!important;
  }
  @page{size:A4;margin:10mm}
}

/* v1.0.52 - Vista institucional y dos modos de impresión */
.print-only{display:none!important}
.coach-session-institutional-header{align-items:center}
.coach-session-club-brand{display:flex;align-items:center;gap:16px;min-width:0}
.coach-session-club-brand img{width:64px;height:64px;object-fit:contain;border-radius:14px;background:#fff;border:1px solid #e2e8f0;padding:5px}
.coach-session-club-brand span,.coach-session-title-data span{display:block;color:#64748b;font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.08em}
.coach-session-club-brand h1{margin:4px 0 0!important;font-size:25px!important;line-height:1.15}
.coach-session-title-data{text-align:right}
.coach-session-title-data strong{display:block;font-size:24px;color:#0f172a;margin-bottom:5px}
.coach-session-title-data span{text-transform:none;letter-spacing:0;font-weight:600}
.coach-session-meta-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:18px 0 0}
.coach-session-meta-grid>div{padding:12px 14px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px}
.coach-session-meta-grid span{display:block;font-size:10px;text-transform:uppercase;letter-spacing:.08em;color:#64748b;font-weight:850;margin-bottom:4px}
.coach-session-meta-grid strong{display:block;color:#172033;font-size:14px;overflow-wrap:anywhere}
.coach-session-meta-wide{grid-column:span 2}
.coach-session-print-footer{display:flex;justify-content:space-between;align-items:center;margin-top:26px;padding-top:12px;border-top:1px solid #dfe5ee;color:#64748b;font-size:11px}
.coach-session-print-footer strong{color:#3657f5}
.coach-print-menu{position:relative}
.coach-print-menu-toggle span{font-size:16px;margin-left:4px}
.coach-print-menu-options{position:absolute;right:0;top:calc(100% + 8px);z-index:50;width:310px;padding:8px;background:#fff;border:1px solid #dbe3ef;border-radius:14px;box-shadow:0 18px 45px rgba(15,23,42,.18)}
.coach-print-menu-options button{display:block;width:100%;padding:12px;border:0;border-radius:10px;text-align:left;background:#fff;cursor:pointer;color:#172033}
.coach-print-menu-options button:hover{background:#f3f6ff}
.coach-print-menu-options strong,.coach-print-menu-options small{display:block}
.coach-print-menu-options strong{font-size:14px;margin-bottom:3px}
.coach-print-menu-options small{font-size:11px;line-height:1.35;color:#64748b}

.coach-field-sheet{background:#fff;color:#0f172a}
.coach-field-sheet-inner{transform-origin:top left;transform:scale(var(--field-scale,1));width:calc(100% / var(--field-scale,1));font-family:Arial,sans-serif}
.coach-field-header{display:flex;justify-content:space-between;align-items:center;padding-bottom:8px;border-bottom:2px solid #172033}
.coach-field-brand{display:flex;align-items:center;gap:10px}
.coach-field-brand img{width:46px;height:46px;object-fit:contain}
.coach-field-brand span{display:block;font-size:9px;text-transform:uppercase;letter-spacing:.1em;color:#64748b;font-weight:800}
.coach-field-brand h1{margin:2px 0 0;font-size:18px;line-height:1.05}
.coach-field-duration{display:flex;align-items:baseline;gap:3px;padding:7px 10px;border:1px solid #cbd5e1;border-radius:10px}
.coach-field-duration strong{font-size:22px}.coach-field-duration span{font-size:10px;font-weight:800;color:#64748b;text-transform:uppercase}
.coach-field-meta{display:grid;grid-template-columns:1.35fr .85fr .85fr 1.1fr;gap:6px;margin:8px 0}
.coach-field-meta>div{padding:6px 8px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px}
.coach-field-meta span{display:block;font-size:8px;text-transform:uppercase;color:#64748b;font-weight:800;margin-bottom:2px}
.coach-field-meta strong{display:block;font-size:10px}
.coach-field-objective{display:grid;grid-template-columns:74px 1fr;gap:8px;align-items:start;padding:7px 9px;margin-bottom:7px;background:#eef3ff;border-left:4px solid #3657f5;border-radius:8px}
.coach-field-objective span{font-size:9px;text-transform:uppercase;font-weight:900;color:#3657f5}
.coach-field-objective p{margin:0;font-size:10px;line-height:1.3}
.coach-field-blocks{display:flex;flex-direction:column;gap:5px}
.coach-field-block{display:grid;grid-template-columns:24px 1fr;gap:7px;align-items:start;padding:6px 0;border-bottom:1px solid #dfe5ee;break-inside:avoid}
.coach-field-block.has-image{grid-template-columns:24px 1fr 108px}
.coach-field-block-number{width:21px;height:21px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#172033;color:#fff;font-size:10px;font-weight:900}
.coach-field-block-copy>div{display:flex;justify-content:space-between;gap:8px;align-items:center}
.coach-field-block-copy h2{margin:0;font-size:12px}.coach-field-block-copy strong{font-size:10px;white-space:nowrap}
.coach-field-block-copy p{margin:3px 0 0;font-size:9px;line-height:1.25;color:#334155}
.coach-field-block img{width:108px;height:68px;object-fit:contain;border:1px solid #dbe3ef;border-radius:6px;background:#fafafa}
.coach-field-groups{margin-top:7px;padding-top:6px;border-top:2px solid #172033}
.coach-field-groups>h2,.coach-field-notes h2{margin:0 0 5px;font-size:11px;text-transform:uppercase;letter-spacing:.06em}
.coach-field-groups>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.coach-field-groups article{padding:6px 7px;border:1px solid #dfe5ee;border-radius:7px}
.coach-field-groups h3{margin:0 0 3px;font-size:10px}.coach-field-groups p{margin:0;font-size:8.5px;line-height:1.25}
.coach-field-notes{margin-top:7px}.coach-field-notes>div{height:42px;border:1px solid #cbd5e1;border-radius:7px;background:repeating-linear-gradient(to bottom,#fff 0,#fff 13px,#e2e8f0 14px)}
.coach-field-sheet footer{display:flex;justify-content:space-between;margin-top:6px;padding-top:4px;border-top:1px solid #dfe5ee;font-size:8px;color:#64748b}
.coach-field-sheet footer strong{color:#3657f5}

@media(max-width:720px){
  .coach-session-meta-grid{grid-template-columns:1fr 1fr}
  .coach-session-meta-wide{grid-column:span 2}
  .coach-session-institutional-header{align-items:flex-start}
  .coach-session-title-data{text-align:left}
  .coach-print-menu-options{right:auto;left:0;width:min(310px,86vw)}
}

@media print{
  @page{size:A4;margin:18mm}
  body.coach-print-complete .coach-field-sheet{display:none!important}
  body.coach-print-field .coach-complete-sheet{display:none!important}

  body.coach-print-complete .coach-complete-sheet,
  body.coach-print-complete .coach-complete-sheet *,
  body.coach-print-field .coach-field-sheet,
  body.coach-print-field .coach-field-sheet *{visibility:visible!important}

  body.coach-print-complete .coach-complete-sheet,
  body.coach-print-field .coach-field-sheet{
    display:block!important;position:absolute!important;left:0!important;top:0!important;width:100%!important;
    max-width:none!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:#fff!important;overflow:visible!important
  }

  body.coach-print-complete .coach-session-institutional-header{padding-bottom:10px!important}
  body.coach-print-complete .coach-session-club-brand img{width:48px!important;height:48px!important}
  body.coach-print-complete .coach-session-club-brand h1{font-size:18px!important}
  body.coach-print-complete .coach-session-title-data strong{font-size:17px!important}
  body.coach-print-complete .coach-session-title-data span{font-size:9px!important}
  body.coach-print-complete .coach-session-meta-grid{margin-top:10px!important;gap:6px!important}
  body.coach-print-complete .coach-session-meta-grid>div{padding:7px 9px!important;border-radius:8px!important}
  body.coach-print-complete .coach-session-meta-grid span{font-size:7px!important}
  body.coach-print-complete .coach-session-meta-grid strong{font-size:9px!important}
  body.coach-print-complete .coach-session-objective{margin:10px 0!important;padding:9px 11px!important;border-radius:8px!important}
  body.coach-print-complete .coach-session-objective span{font-size:8px!important}
  body.coach-print-complete .coach-session-objective p{font-size:10px!important;line-height:1.35!important}
  body.coach-print-complete .coach-session-blocks-view{gap:10px!important}
  body.coach-print-complete .coach-session-block-view{grid-template-columns:28px 1fr!important;gap:9px!important;padding-bottom:10px!important}
  body.coach-print-complete .coach-session-block-number{width:24px!important;height:24px!important;font-size:10px!important}
  body.coach-print-complete .coach-session-block-heading{margin-bottom:5px!important}
  body.coach-print-complete .coach-session-block-heading h2{font-size:13px!important}
  body.coach-print-complete .coach-session-block-heading span{font-size:8px!important;padding:3px 6px!important}
  body.coach-print-complete .coach-session-description{font-size:9px!important;line-height:1.35!important}
  body.coach-print-complete .coach-session-image{margin-top:7px!important}
  body.coach-print-complete .coach-session-image img{max-height:360px!important;border-radius:7px!important}
  body.coach-print-complete .coach-session-groups-view,body.coach-print-complete .coach-session-observations{margin-top:12px!important;padding-top:9px!important}
  body.coach-print-complete .coach-session-groups-view h2,body.coach-print-complete .coach-session-observations h2{font-size:12px!important;margin-bottom:6px!important}
  body.coach-print-complete .coach-session-group-card{padding:8px!important;border-radius:7px!important}
  body.coach-print-complete .coach-session-group-card h3{font-size:10px!important;margin-bottom:4px!important}
  body.coach-print-complete .coach-session-group-card ul{font-size:8px!important;columns:2!important}
  body.coach-print-complete .coach-session-observations p{font-size:9px!important}
  body.coach-print-complete .coach-session-print-footer{margin-top:10px!important;font-size:8px!important}

  body.coach-print-field .coach-field-sheet{height:261mm!important;overflow:hidden!important}
  body.coach-print-field .coach-field-sheet-inner{max-height:261mm!important}
}


/* v1.0.53 - Refinamiento visual de Planificación y experiencia mobile */
:root{
  --coach-plan-space-1:8px;
  --coach-plan-space-2:16px;
  --coach-plan-space-3:24px;
  --coach-plan-space-4:32px;
  --coach-plan-radius:16px;
  --coach-plan-border:#e1e7f0;
  --coach-plan-muted:#64748b;
  --coach-plan-text:#172033;
  --coach-plan-soft:#f7f9fc;
}

/* Barra de acciones */
.coach-session-view-actions{
  max-width:1048px;
  margin:0 auto;
  padding:10px 34px 20px;
}
.coach-session-view-actions .coach-secondary-btn,
.coach-session-view-actions .coach-primary-btn{
  min-height:44px;
  padding:0 17px;
  border-radius:12px;
  font-size:14px;
  font-weight:800;
}
.coach-session-view-actions .coach-edit-session-btn{
  box-shadow:0 8px 18px rgba(49,76,244,.18);
}
.coach-session-view-actions .coach-print-menu-toggle{
  background:#fff;
  color:#25324a;
}

/* Hoja de lectura */
.coach-session-sheet{
  max-width:980px;
  margin:0 auto 48px;
  padding:38px;
  border:1px solid var(--coach-plan-border);
  border-radius:20px;
  box-shadow:0 14px 38px rgba(15,23,42,.07);
}
.coach-session-sheet-header{
  padding-bottom:26px;
  gap:28px;
}
.coach-session-club-brand{gap:18px}
.coach-session-club-brand img{
  width:70px;
  height:70px;
  border-radius:16px;
  padding:7px;
}
.coach-session-club-brand h1{font-size:27px!important}
.coach-session-title-data strong{font-size:26px}

/* Cards de datos generales */
.coach-session-meta-grid{
  gap:14px;
  margin:24px 0 0;
}
.coach-session-meta-grid>div{
  min-height:82px;
  padding:17px 18px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  background:var(--coach-plan-soft);
  border:1px solid var(--coach-plan-border);
  border-radius:15px;
}
.coach-session-meta-grid span{
  font-size:10px;
  margin-bottom:7px;
}
.coach-session-meta-grid strong{
  font-size:15px;
  line-height:1.35;
}

/* Objetivo destacado */
.coach-session-objective{
  margin:28px 0 30px;
  padding:21px 23px;
  border-left-width:5px;
  border-radius:14px;
}
.coach-session-objective span{margin-bottom:9px}
.coach-session-objective p{font-size:16px;line-height:1.6}

/* Bloques como cards */
.coach-session-blocks-view{gap:18px}
.coach-session-block-view{
  grid-template-columns:46px minmax(0,1fr);
  gap:18px;
  padding:22px;
  border:1px solid var(--coach-plan-border);
  border-radius:var(--coach-plan-radius);
  background:#fff;
  box-shadow:0 4px 14px rgba(15,23,42,.035);
}
.coach-session-block-number{
  width:40px;
  height:40px;
  box-shadow:0 5px 12px rgba(15,23,42,.12);
}
.coach-session-block-heading{margin-bottom:12px}
.coach-session-block-heading h2{font-size:21px}
.coach-session-description{font-size:15px;line-height:1.65}
.coach-session-image{
  margin:18px auto 0;
  text-align:center;
}
.coach-session-image img{
  display:block;
  width:auto;
  max-width:min(100%,680px);
  max-height:540px;
  margin:0 auto;
  object-fit:contain;
  border:1px solid var(--coach-plan-border);
  border-radius:14px;
  background:#fafbfd;
  padding:6px;
  box-shadow:0 7px 20px rgba(15,23,42,.07);
}

/* Equipos más livianos */
.coach-session-groups-view{
  margin-top:28px;
  padding-top:25px;
  border-top:1px solid var(--coach-plan-border);
}
.coach-session-groups-view>h2{margin:0 0 16px}
.coach-session-groups-grid{gap:24px}
.coach-session-group-card{
  padding:0 18px 0 0;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
}
.coach-session-group-card+ .coach-session-group-card{
  padding-left:24px;
  border-left:1px solid var(--coach-plan-border);
}
.coach-session-group-card h3{
  margin:0 0 11px;
  padding-bottom:9px;
  border-bottom:1px solid var(--coach-plan-border);
}
.coach-session-group-card ul{margin-top:0}
.coach-session-group-card li{margin-bottom:7px}

.coach-session-observations{
  margin-top:28px;
  padding:20px 22px;
  border:1px solid var(--coach-plan-border);
  border-radius:15px;
  background:var(--coach-plan-soft);
}
.coach-session-print-footer{margin-top:30px;padding-top:15px}

/* Calendario y botón */
.coach-planning-intro{
  gap:24px;
  align-items:center!important;
}
body .coach-planning-intro .coach-new-session-btn{
  min-height:48px!important;
  padding:0 22px 0 13px!important;
  border-radius:13px!important;
}
.coach-planning-calendar-wrap{padding:0 34px 40px}
.coach-calendar-toolbar{padding:16px 18px}
.coach-calendar-day{padding:11px;min-height:148px}
.coach-calendar-event{padding:9px 10px;border-radius:10px}

@media(max-width:820px){
  .coach-session-view-actions{
    padding:8px 18px 16px;
    gap:10px;
  }
  .coach-session-view-actions>div{
    display:grid;
    grid-template-columns:1fr 1fr;
    width:100%;
    gap:10px;
  }
  .coach-session-view-actions>div .coach-edit-session-btn{
    grid-column:1/-1;
    grid-row:1;
  }
  .coach-session-view-actions>div>.coach-secondary-btn,
  .coach-session-view-actions .coach-print-menu,
  .coach-session-view-actions .coach-print-menu-toggle{
    width:100%;
  }
  .coach-session-sheet{
    margin:0 18px 34px;
    padding:26px;
    border-radius:18px;
  }
  .coach-session-sheet-header{gap:18px;padding-bottom:20px}
  .coach-session-meta-grid{gap:10px;margin-top:20px}
  .coach-session-meta-grid>div{min-height:76px;padding:14px 15px}
  .coach-session-objective{margin:22px 0 24px}
  .coach-session-block-view{padding:19px;gap:15px}
  .coach-session-groups-grid{gap:18px}
  .coach-planning-calendar-wrap{padding:0 18px 30px}
}

@media(max-width:560px){
  .coach-session-view-actions{
    padding:6px 14px 14px;
  }
  .coach-session-view-actions>a{
    width:100%;
  }
  .coach-session-view-actions>div{
    grid-template-columns:1fr;
  }
  .coach-session-view-actions>div .coach-edit-session-btn,
  .coach-session-view-actions>div>.coach-secondary-btn,
  .coach-session-view-actions .coach-print-menu{
    grid-column:1;
  }
  .coach-print-menu-options{
    position:fixed;
    left:14px!important;
    right:14px!important;
    bottom:14px;
    top:auto;
    width:auto!important;
    max-width:none;
  }
  .coach-session-sheet{
    margin:0 10px 26px;
    padding:18px 16px 22px;
    border-radius:16px;
  }
  .coach-session-sheet-header{
    padding-bottom:18px;
    border-bottom-width:1px;
  }
  .coach-session-club-brand{gap:12px}
  .coach-session-club-brand img{width:54px;height:54px;border-radius:13px}
  .coach-session-club-brand h1{font-size:20px!important}
  .coach-session-title-data strong{font-size:22px}
  .coach-session-title-data span{font-size:13px;line-height:1.4}
  .coach-session-meta-grid{grid-template-columns:1fr;margin-top:16px}
  .coach-session-meta-wide{grid-column:1}
  .coach-session-meta-grid>div{
    min-height:auto;
    padding:14px 15px;
  }
  .coach-session-meta-grid span{margin-bottom:4px}
  .coach-session-meta-grid strong{font-size:14px}
  .coach-session-objective{
    margin:18px 0 20px;
    padding:17px 17px;
  }
  .coach-session-objective p{font-size:15px;line-height:1.55}
  .coach-session-blocks-view{gap:14px}
  .coach-session-block-view{
    grid-template-columns:1fr;
    padding:16px;
    gap:12px;
  }
  .coach-session-block-number{width:34px;height:34px}
  .coach-session-block-heading{
    flex-direction:row;
    align-items:flex-start;
    gap:10px;
  }
  .coach-session-block-heading h2{font-size:18px;line-height:1.3}
  .coach-session-block-heading span{padding:5px 9px}
  .coach-session-description{font-size:14px;line-height:1.6}
  .coach-session-image img{
    width:100%;
    max-width:100%;
    max-height:none;
  }
  .coach-session-groups-view{margin-top:22px;padding-top:20px}
  .coach-session-groups-grid{grid-template-columns:1fr;gap:18px}
  .coach-session-group-card,
  .coach-session-group-card+ .coach-session-group-card{
    padding:0;
    border-left:0;
  }
  .coach-session-observations{padding:17px;margin-top:22px}
  .coach-planning-intro{padding-left:14px!important;padding-right:14px!important}
  body .coach-planning-intro .coach-new-session-btn{width:100%!important}
  .coach-planning-calendar-wrap{padding:0 14px 24px}
  .coach-calendar-toolbar{
    display:grid;
    grid-template-columns:40px 1fr 40px;
    gap:8px;
    padding:12px;
  }
  .coach-calendar-toolbar h3{min-width:0;font-size:16px}
  .coach-calendar-today{grid-column:1/-1;width:100%;margin:0}
  .coach-calendar-scroll{border-radius:0 0 14px 14px}
}

/* No modificar el documento impreso con las reglas visuales de pantalla */
@media print{
  body.coach-print-complete .coach-session-sheet{
    padding:0!important;
    margin:0!important;
    border:0!important;
    box-shadow:none!important;
  }
  body.coach-print-complete .coach-session-block-view{
    border:0!important;
    border-bottom:1px solid #e8ecf2!important;
    border-radius:0!important;
    box-shadow:none!important;
    padding:0 0 14px!important;
  }
  body.coach-print-complete .coach-session-group-card,
  body.coach-print-complete .coach-session-group-card+ .coach-session-group-card{
    border-left:0!important;
    padding:0!important;
  }
}

/* ========================================================================== 
   Coach Digital v1.0.54 — Sprint UX #1 · Fundación visual global
   Capa de consistencia: no modifica lógica, datos ni sincronizaciones.
   ========================================================================== */

body.coach-ux-foundation-v1 {
  --coach-bg: #f5f7fb;
  --coach-surface: #ffffff;
  --coach-surface-soft: #f8fafc;
  --coach-text: #172033;
  --coach-heading: #0f172a;
  --coach-muted: #667085;
  --coach-border: #e4e9f1;
  --coach-border-strong: #d7deea;
  --coach-primary: #2563eb;
  --coach-primary-hover: #1d4ed8;
  --coach-danger: #dc2626;
  --coach-success: #15803d;
  --coach-warning: #b45309;
  --coach-radius-sm: 10px;
  --coach-radius-md: 14px;
  --coach-radius-lg: 18px;
  --coach-shadow-sm: 0 1px 2px rgba(15, 23, 42, .04);
  --coach-shadow-md: 0 10px 28px rgba(15, 23, 42, .07);
  --coach-space-1: 8px;
  --coach-space-2: 16px;
  --coach-space-3: 24px;
  --coach-space-4: 32px;
  --coach-space-5: 48px;
}

body.coach-ux-foundation-v1 .coach-app {
  background: var(--coach-bg);
}

body.coach-ux-foundation-v1 .coach-main {
  padding: 32px 40px 56px;
}

/* Jerarquía tipográfica común */
body.coach-ux-foundation-v1 .coach-main h1,
body.coach-ux-foundation-v1 .coach-main h2,
body.coach-ux-foundation-v1 .coach-main h3,
body.coach-ux-foundation-v1 .coach-main h4 {
  color: var(--coach-heading);
  letter-spacing: -.025em;
}

body.coach-ux-foundation-v1 .coach-main h1 { font-size: 30px; line-height: 1.18; }
body.coach-ux-foundation-v1 .coach-main h2 { font-size: 24px; line-height: 1.25; }
body.coach-ux-foundation-v1 .coach-main h3 { font-size: 18px; line-height: 1.35; }
body.coach-ux-foundation-v1 .coach-main p { color: var(--coach-muted); }

/* Encabezados globales de módulo */
body.coach-ux-foundation-v1 .coach-dashboard-intro,
body.coach-ux-foundation-v1 .coach-planning-intro,
body.coach-ux-foundation-v1 .coach-module-toolbar,
body.coach-ux-foundation-v1 .coach-panel-header,
body.coach-ux-foundation-v1 .coach-panel-header-pro,
body.coach-ux-foundation-v1 .coach-settings-hero,
body.coach-ux-foundation-v1 .coach-matches-hero-v104,
body.coach-ux-foundation-v1 .coach-attendance-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--coach-space-3);
  margin: 0 0 var(--coach-space-3);
  padding: 0 0 var(--coach-space-3);
  border-bottom: 1px solid var(--coach-border);
  background: transparent;
  box-shadow: none;
}

body.coach-ux-foundation-v1 .coach-dashboard-intro h2,
body.coach-ux-foundation-v1 .coach-planning-intro h2,
body.coach-ux-foundation-v1 .coach-module-toolbar h2,
body.coach-ux-foundation-v1 .coach-panel-header h2,
body.coach-ux-foundation-v1 .coach-panel-header-pro h2,
body.coach-ux-foundation-v1 .coach-settings-hero h2,
body.coach-ux-foundation-v1 .coach-matches-hero-v104 h2,
body.coach-ux-foundation-v1 .coach-attendance-header h2 {
  margin: 0 0 6px !important;
  font-size: 28px !important;
  line-height: 1.2;
}

body.coach-ux-foundation-v1 .coach-dashboard-intro p,
body.coach-ux-foundation-v1 .coach-planning-intro p,
body.coach-ux-foundation-v1 .coach-module-toolbar p,
body.coach-ux-foundation-v1 .coach-panel-header p,
body.coach-ux-foundation-v1 .coach-panel-header-pro p,
body.coach-ux-foundation-v1 .coach-settings-hero p,
body.coach-ux-foundation-v1 .coach-matches-hero-v104 p,
body.coach-ux-foundation-v1 .coach-attendance-header p {
  margin: 0 !important;
  max-width: 720px;
  font-size: 14px !important;
  line-height: 1.55;
}

/* Cards y paneles */
body.coach-ux-foundation-v1 :is(
  .coach-card,
  .coach-card-clean,
  .coach-panel,
  .coach-player-panel,
  .coach-config-section,
  .coach-settings-ux-panel,
  .coach-attendance-history-card,
  .coach-match-details-card-v104,
  .coach-match-stats-card-v104,
  .coach-match-timeline-card-v104,
  .coach-match-summary-card-v124,
  .coach-session-sheet,
  .coach-planning-calendar-wrap
) {
  background: var(--coach-surface);
  border: 1px solid var(--coach-border);
  border-radius: var(--coach-radius-lg);
  box-shadow: var(--coach-shadow-sm);
}

body.coach-ux-foundation-v1 :is(.coach-card, .coach-card-clean, .coach-panel, .coach-player-panel, .coach-config-section) {
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

body.coach-ux-foundation-v1 :is(.coach-card, .coach-card-clean):hover {
  border-color: var(--coach-border-strong);
  box-shadow: var(--coach-shadow-md);
  transform: translateY(-1px);
}

/* Botones: primario, secundario, peligro y ghost */
body.coach-ux-foundation-v1 :is(
  .coach-primary-btn,
  .coach-new-session-btn,
  .coach-edit-session-btn,
  .coach-profile-button,
  button[type="submit"],
  input[type="submit"]
) {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--coach-primary);
  border-radius: var(--coach-radius-md);
  background: var(--coach-primary);
  color: #fff;
  font-size: 14px;
  font-weight: 750;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(37, 99, 235, .16);
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

body.coach-ux-foundation-v1 :is(
  .coach-primary-btn,
  .coach-new-session-btn,
  .coach-edit-session-btn,
  .coach-profile-button,
  button[type="submit"],
  input[type="submit"]
):hover {
  background: var(--coach-primary-hover);
  border-color: var(--coach-primary-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 9px 20px rgba(37, 99, 235, .21);
}

body.coach-ux-foundation-v1 :is(
  .coach-secondary-btn,
  .coach-ghost-btn,
  .coach-back-btn,
  .coach-profile-button-secondary,
  .coach-calendar-nav,
  .coach-calendar-today
) {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 15px;
  border: 1px solid var(--coach-border-strong);
  border-radius: var(--coach-radius-md);
  background: var(--coach-surface);
  color: var(--coach-heading);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: none;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

body.coach-ux-foundation-v1 :is(
  .coach-secondary-btn,
  .coach-ghost-btn,
  .coach-back-btn,
  .coach-profile-button-secondary,
  .coach-calendar-nav,
  .coach-calendar-today
):hover {
  background: var(--coach-surface-soft);
  border-color: #c7d0de;
  color: var(--coach-heading);
  transform: translateY(-1px);
}

body.coach-ux-foundation-v1 :is(.coach-danger-link, .coach-delete-soft, .coach-event-delete-v105) {
  color: var(--coach-danger);
  font-weight: 700;
}

/* Formularios */
body.coach-ux-foundation-v1 .coach-main :is(input, select, textarea) {
  font: inherit;
}

body.coach-ux-foundation-v1 .coach-main :is(
  input[type="text"], input[type="email"], input[type="number"], input[type="date"],
  input[type="time"], input[type="tel"], input[type="url"], input[type="password"],
  select, textarea
) {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--coach-border-strong);
  border-radius: var(--coach-radius-md);
  background: #fff;
  color: var(--coach-text);
  box-sizing: border-box;
  transition: border-color .18s ease, box-shadow .18s ease;
}

body.coach-ux-foundation-v1 .coach-main textarea { min-height: 104px; resize: vertical; }

body.coach-ux-foundation-v1 .coach-main :is(
  input[type="text"], input[type="email"], input[type="number"], input[type="date"],
  input[type="time"], input[type="tel"], input[type="url"], input[type="password"],
  select, textarea
):focus {
  outline: none;
  border-color: var(--coach-primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .11);
}

body.coach-ux-foundation-v1 .coach-main label {
  color: var(--coach-heading);
  font-size: 13px;
  font-weight: 700;
}

/* Tablas */
body.coach-ux-foundation-v1 .coach-main table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--coach-surface);
  color: var(--coach-text);
}

body.coach-ux-foundation-v1 .coach-main table thead th {
  padding: 12px 14px;
  border-top: 1px solid var(--coach-border);
  border-bottom: 1px solid var(--coach-border);
  background: var(--coach-surface-soft);
  color: #475467;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .035em;
  text-transform: uppercase;
  text-align: left;
  white-space: nowrap;
}

body.coach-ux-foundation-v1 .coach-main table tbody td {
  padding: 14px;
  border-bottom: 1px solid var(--coach-border);
  vertical-align: middle;
}

body.coach-ux-foundation-v1 .coach-main table tbody tr {
  transition: background .16s ease;
}

body.coach-ux-foundation-v1 .coach-main table tbody tr:hover {
  background: #f9fbfe;
}

/* Estados vacíos y alertas */
body.coach-ux-foundation-v1 :is(.coach-empty-state, .coach-empty-state-v91, .coach-settings-empty, .coach-calendar-empty) {
  padding: 40px 24px;
  border: 1px dashed var(--coach-border-strong);
  border-radius: var(--coach-radius-lg);
  background: var(--coach-surface-soft);
  color: var(--coach-muted);
  text-align: center;
}

body.coach-ux-foundation-v1 :is(.coach-alert, .coach-profile-alert, .coach-attendance-notice) {
  border-radius: var(--coach-radius-md);
  padding: 13px 15px;
  font-size: 14px;
  font-weight: 650;
}

/* Navegación lateral */
body.coach-ux-foundation-v1 .coach-sidebar {
  border-right: 1px solid rgba(255,255,255,.08);
}

body.coach-ux-foundation-v1 .coach-nav a {
  min-height: 44px;
  border-radius: 12px;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

body.coach-ux-foundation-v1 .coach-nav a:hover {
  transform: translateX(2px);
}

/* Consistencia de secciones y separaciones */
body.coach-ux-foundation-v1 :is(
  .coach-section-heading,
  .coach-plan-section-title,
  .coach-form-section-title,
  .coach-discipline-section-title,
  .coach-block-title
) {
  margin-bottom: var(--coach-space-2);
}

body.coach-ux-foundation-v1 :is(
  .coach-form-actions,
  .coach-attendance-actions,
  .coach-history-actions,
  .coach-row-actions,
  .coach-premium-actions
) {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Mobile first cleanup global */
@media (max-width: 820px) {
  body.coach-ux-foundation-v1 .coach-main {
    padding: 20px 16px 36px !important;
  }

  body.coach-ux-foundation-v1 :is(
    .coach-dashboard-intro,
    .coach-planning-intro,
    .coach-module-toolbar,
    .coach-panel-header,
    .coach-panel-header-pro,
    .coach-settings-hero,
    .coach-matches-hero-v104,
    .coach-attendance-header
  ) {
    align-items: stretch;
    flex-direction: column;
    gap: 16px;
    padding-bottom: 18px;
  }

  body.coach-ux-foundation-v1 :is(
    .coach-dashboard-intro h2,
    .coach-planning-intro h2,
    .coach-module-toolbar h2,
    .coach-panel-header h2,
    .coach-panel-header-pro h2,
    .coach-settings-hero h2,
    .coach-matches-hero-v104 h2,
    .coach-attendance-header h2
  ) {
    font-size: 24px !important;
  }

  body.coach-ux-foundation-v1 .coach-main :is(
    .coach-primary-btn,
    .coach-new-session-btn,
    .coach-edit-session-btn,
    button[type="submit"],
    input[type="submit"]
  ) {
    width: 100%;
  }

  body.coach-ux-foundation-v1 .coach-main table {
    min-width: 680px;
  }

  body.coach-ux-foundation-v1 :is(
    .coach-players-list-panel,
    .coach-attendance-records-wrap,
    .coach-player-metrics-table-wrap,
    .coach-match-post-table-wrap-v114
  ) {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.coach-ux-foundation-v1 *,
  body.coach-ux-foundation-v1 *::before,
  body.coach-ux-foundation-v1 *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Impresión: esta capa global no debe alterar fichas ni planificaciones impresas. */
@media print {
  body.coach-ux-foundation-v1 .coach-main {
    padding: 0 !important;
  }
}

/* =========================================================
   Coach Digital v1.0.55 — Sprint UX #2: Dashboard
   ========================================================= */
body.coach-ux-foundation-v1 .coach-dashboard-v2 { display:grid; gap:24px; }
body.coach-ux-foundation-v1 .coach-dashboard-welcome { display:flex; align-items:flex-end; justify-content:space-between; gap:24px; padding:4px 0 2px; }
body.coach-ux-foundation-v1 .coach-dashboard-welcome h2 { margin:5px 0 6px; font-size:clamp(24px,3vw,34px); letter-spacing:-.035em; color:var(--cd-text,#132238); }
body.coach-ux-foundation-v1 .coach-dashboard-welcome p { margin:0; color:var(--cd-muted,#65748b); }
body.coach-ux-foundation-v1 .coach-dashboard-kpis { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; }
body.coach-ux-foundation-v1 .coach-dashboard-kpi { display:flex; gap:14px; align-items:center; min-width:0; padding:20px; background:#fff; border:1px solid var(--cd-border,#e5eaf1); border-radius:var(--cd-radius-lg,16px); box-shadow:var(--cd-shadow-sm,0 4px 16px rgba(20,35,60,.05)); }
body.coach-ux-foundation-v1 .coach-dashboard-kpi-icon { width:44px; height:44px; flex:0 0 44px; display:grid; place-items:center; border-radius:13px; background:#edf4ff; font-size:21px; }
body.coach-ux-foundation-v1 .coach-dashboard-kpi div { min-width:0; display:grid; gap:2px; }
body.coach-ux-foundation-v1 .coach-dashboard-kpi small { color:#6d7b90; font-weight:700; font-size:12px; }
body.coach-ux-foundation-v1 .coach-dashboard-kpi strong { font-size:28px; line-height:1.1; color:#10223b; letter-spacing:-.03em; }
body.coach-ux-foundation-v1 .coach-dashboard-kpi span:last-child { color:#7b8799; font-size:12px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
body.coach-ux-foundation-v1 .coach-dashboard-main-grid { display:grid; grid-template-columns:minmax(0,1.65fr) minmax(280px,.75fr); gap:20px; }
body.coach-ux-foundation-v1 .coach-dashboard-activity-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
body.coach-ux-foundation-v1 .coach-dashboard-panel { background:#fff; border:1px solid var(--cd-border,#e5eaf1); border-radius:var(--cd-radius-lg,16px); padding:22px; box-shadow:var(--cd-shadow-sm,0 4px 16px rgba(20,35,60,.05)); min-width:0; }
body.coach-ux-foundation-v1 .coach-dashboard-panel-head { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; margin-bottom:20px; }
body.coach-ux-foundation-v1 .coach-dashboard-panel-head h3 { margin:4px 0 0; font-size:19px; color:#132238; }
body.coach-ux-foundation-v1 .coach-dashboard-panel-head > a { color:var(--cd-primary,#1f6fff); text-decoration:none; font-size:13px; font-weight:800; white-space:nowrap; }
body.coach-ux-foundation-v1 .coach-team-distribution { display:grid; gap:16px; }
body.coach-ux-foundation-v1 .coach-team-distribution-row { display:grid; gap:7px; }
body.coach-ux-foundation-v1 .coach-team-distribution-label { display:flex; justify-content:space-between; align-items:center; gap:14px; font-size:13px; }
body.coach-ux-foundation-v1 .coach-team-distribution-label strong { color:#24344b; }
body.coach-ux-foundation-v1 .coach-team-distribution-label span { color:#758197; white-space:nowrap; }
body.coach-ux-foundation-v1 .coach-team-distribution-track { height:8px; overflow:hidden; border-radius:99px; background:#edf1f6; }
body.coach-ux-foundation-v1 .coach-team-distribution-track span { display:block; height:100%; border-radius:inherit; background:linear-gradient(90deg,#1f6fff,#5a8fff); }
body.coach-ux-foundation-v1 .coach-dashboard-panel-foot { display:flex; justify-content:space-between; flex-wrap:wrap; gap:8px; margin-top:20px; padding-top:16px; border-top:1px solid #edf0f5; color:#6d7a8e; font-size:12px; }
body.coach-ux-foundation-v1 .coach-dashboard-warning { color:#a45c00; font-weight:800; }
body.coach-ux-foundation-v1 .coach-dashboard-summary-list { margin:0 0 18px; display:grid; gap:0; }
body.coach-ux-foundation-v1 .coach-dashboard-summary-list > div { display:flex; justify-content:space-between; gap:16px; padding:13px 0; border-bottom:1px solid #edf0f5; }
body.coach-ux-foundation-v1 .coach-dashboard-summary-list dt { color:#65748a; font-size:13px; }
body.coach-ux-foundation-v1 .coach-dashboard-summary-list dd { margin:0; color:#172840; font-weight:800; }
body.coach-ux-foundation-v1 .coach-dashboard-summary-list dd.is-warning { color:#a45c00; }
body.coach-ux-foundation-v1 .coach-dashboard-full-btn { display:flex!important; width:100%; justify-content:center; }
body.coach-ux-foundation-v1 .coach-dashboard-timeline { display:grid; gap:8px; }
body.coach-ux-foundation-v1 .coach-dashboard-event { display:grid; grid-template-columns:48px minmax(0,1fr) 16px; align-items:center; gap:12px; padding:11px; border:1px solid transparent; border-radius:12px; text-decoration:none!important; transition:.18s ease; }
body.coach-ux-foundation-v1 .coach-dashboard-event:hover { background:#f7faff; border-color:#dfe9fa; transform:translateY(-1px); }
body.coach-ux-foundation-v1 .coach-dashboard-event time { width:44px; height:48px; display:grid; place-content:center; text-align:center; border-radius:11px; background:#edf4ff; color:#1f5fca; }
body.coach-ux-foundation-v1 .coach-dashboard-event time strong { font-size:17px; line-height:1; }
body.coach-ux-foundation-v1 .coach-dashboard-event time span { margin-top:2px; font-size:10px; text-transform:uppercase; font-weight:800; }
body.coach-ux-foundation-v1 .coach-dashboard-event > div { min-width:0; display:grid; gap:3px; }
body.coach-ux-foundation-v1 .coach-dashboard-event > div strong { color:#1e2e45; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
body.coach-ux-foundation-v1 .coach-dashboard-event > div span { color:#748197; font-size:12px; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
body.coach-ux-foundation-v1 .coach-dashboard-event > span { color:#8f9aae; font-size:22px; }
body.coach-ux-foundation-v1 .coach-empty-state-compact { padding:24px 14px!important; min-height:0!important; }
@media (max-width:1100px) {
  body.coach-ux-foundation-v1 .coach-dashboard-kpis { grid-template-columns:repeat(2,minmax(0,1fr)); }
  body.coach-ux-foundation-v1 .coach-dashboard-main-grid { grid-template-columns:1fr; }
}
@media (max-width:760px) {
  body.coach-ux-foundation-v1 .coach-dashboard-v2 { gap:16px; }
  body.coach-ux-foundation-v1 .coach-dashboard-welcome { align-items:stretch; flex-direction:column; }
  body.coach-ux-foundation-v1 .coach-dashboard-welcome .coach-primary-btn { width:100%; justify-content:center; }
  body.coach-ux-foundation-v1 .coach-dashboard-kpis { grid-template-columns:1fr 1fr; gap:10px; }
  body.coach-ux-foundation-v1 .coach-dashboard-kpi { padding:15px 13px; align-items:flex-start; }
  body.coach-ux-foundation-v1 .coach-dashboard-kpi-icon { width:36px; height:36px; flex-basis:36px; font-size:17px; }
  body.coach-ux-foundation-v1 .coach-dashboard-kpi strong { font-size:23px; }
  body.coach-ux-foundation-v1 .coach-dashboard-kpi span:last-child { white-space:normal; }
  body.coach-ux-foundation-v1 .coach-dashboard-activity-grid { grid-template-columns:1fr; }
  body.coach-ux-foundation-v1 .coach-dashboard-panel { padding:17px; }
}
@media (max-width:440px) {
  body.coach-ux-foundation-v1 .coach-dashboard-kpis { grid-template-columns:1fr; }
}

/* =========================================================
   Coach Digital v1.0.55.1 — Ajustes Dashboard UX
   - elimina el bloque introductorio duplicado
   - alinea KPIs y paneles con la fundación visual global
   ========================================================= */
body.coach-ux-foundation-v1 .coach-dashboard-v2 {
  gap: var(--coach-space-3, 24px);
}

body.coach-ux-foundation-v1 .coach-dashboard-kpis {
  gap: var(--coach-space-2, 16px);
}

body.coach-ux-foundation-v1 .coach-dashboard-kpi.coach-stat {
  min-height: 112px;
  padding: 18px;
  border-radius: var(--coach-radius-lg, 16px);
  border: 1px solid var(--coach-border);
  background: var(--coach-surface, #fff);
  box-shadow: var(--coach-shadow-sm, 0 8px 24px rgba(15,23,42,.06));
}

body.coach-ux-foundation-v1 .coach-dashboard-kpi.coach-stat small,
body.coach-ux-foundation-v1 .coach-dashboard-kpi.coach-stat strong,
body.coach-ux-foundation-v1 .coach-dashboard-kpi.coach-stat span:last-child {
  margin: 0;
}

body.coach-ux-foundation-v1 .coach-dashboard-kpi-icon {
  border-radius: var(--coach-radius-md, 12px);
  background: var(--coach-surface-soft, #f4f7fb);
}

body.coach-ux-foundation-v1 .coach-dashboard-panel.coach-card {
  padding: 24px;
  border-radius: var(--coach-radius-lg, 16px);
  border: 1px solid var(--coach-border);
  background: var(--coach-surface, #fff);
  box-shadow: var(--coach-shadow-sm, 0 8px 24px rgba(15,23,42,.06));
  transform: none;
}

body.coach-ux-foundation-v1 .coach-dashboard-panel.coach-card:hover {
  transform: none;
  box-shadow: var(--coach-shadow-sm, 0 8px 24px rgba(15,23,42,.06));
}

body.coach-ux-foundation-v1 .coach-dashboard-main-grid,
body.coach-ux-foundation-v1 .coach-dashboard-activity-grid {
  gap: var(--coach-space-3, 24px);
}

@media (max-width: 760px) {
  body.coach-ux-foundation-v1 .coach-dashboard-kpi.coach-stat {
    min-height: 0;
    padding: 16px;
  }

  body.coach-ux-foundation-v1 .coach-dashboard-panel.coach-card {
    padding: 18px;
  }
}

/* =========================================================
   Coach Digital v1.0.55.2 — Dashboard layout isolation fix
   Evita que estilos históricos de .coach-card y .coach-stat
   alteren la estructura interna del nuevo Dashboard.
   ========================================================= */
body.coach-ux-foundation-v1 .coach-dashboard-v2,
body.coach-ux-foundation-v1 .coach-dashboard-v2 * {
  box-sizing: border-box;
}

body.coach-ux-foundation-v1 .coach-dashboard-kpi {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  min-width: 0;
  min-height: 112px;
  padding: 20px;
  overflow: hidden;
  background: var(--coach-surface, #fff);
  border: 1px solid var(--coach-border, #dfe5ee);
  border-radius: var(--coach-radius-lg, 16px);
  box-shadow: var(--coach-shadow-sm, 0 8px 24px rgba(15,23,42,.06));
}
body.coach-ux-foundation-v1 .coach-dashboard-kpi-icon {
  width: 48px;
  height: 48px;
  margin: 0;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 14px;
  background: var(--coach-surface-soft, #f4f7fb);
  color: inherit;
  font-size: 22px;
  line-height: 1;
  text-transform: none;
  letter-spacing: normal;
}
body.coach-ux-foundation-v1 .coach-dashboard-kpi > div {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3px;
  min-width: 0;
}
body.coach-ux-foundation-v1 .coach-dashboard-kpi small {
  display: block;
  margin: 0;
  color: #667085;
  font-size: 12px;
  line-height: 1.25;
  font-weight: 750;
  text-transform: none;
  letter-spacing: 0;
}
body.coach-ux-foundation-v1 .coach-dashboard-kpi strong {
  display: block;
  margin: 0;
  color: var(--coach-text, #101828);
  font-size: 30px;
  line-height: 1.05;
  font-weight: 850;
  letter-spacing: -.035em;
}
body.coach-ux-foundation-v1 .coach-dashboard-kpi > div > span {
  display: block;
  margin: 0;
  min-width: 0;
  overflow: hidden;
  color: var(--coach-muted, #667085);
  font-size: 12px;
  line-height: 1.35;
  font-weight: 500;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-transform: none;
  letter-spacing: 0;
}

body.coach-ux-foundation-v1 .coach-dashboard-panel {
  display: block;
  min-width: 0;
  min-height: 0;
  padding: 24px;
  overflow: hidden;
  background: var(--coach-surface, #fff);
  border: 1px solid var(--coach-border, #dfe5ee);
  border-radius: var(--coach-radius-lg, 16px);
  box-shadow: var(--coach-shadow-sm, 0 8px 24px rgba(15,23,42,.06));
}
body.coach-ux-foundation-v1 .coach-dashboard-panel:hover {
  transform: none;
  box-shadow: var(--coach-shadow-sm, 0 8px 24px rgba(15,23,42,.06));
}
body.coach-ux-foundation-v1 .coach-dashboard-panel a:not(.coach-primary-btn):not(.coach-secondary-btn) {
  min-height: 0;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}
body.coach-ux-foundation-v1 .coach-dashboard-panel-head {
  position: static;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 20px;
  padding: 0;
}
body.coach-ux-foundation-v1 .coach-dashboard-panel-head .coach-kicker {
  display: block;
  margin: 0 0 7px;
}
body.coach-ux-foundation-v1 .coach-dashboard-panel-head h3 {
  margin: 0;
  line-height: 1.2;
}
body.coach-ux-foundation-v1 .coach-dashboard-summary-list {
  width: 100%;
}
body.coach-ux-foundation-v1 .coach-dashboard-summary-list > div {
  width: 100%;
  align-items: center;
}
body.coach-ux-foundation-v1 .coach-dashboard-full-btn {
  display: flex !important;
  width: 100%;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 13px;
}
body.coach-ux-foundation-v1 .coach-dashboard-event {
  min-height: 0 !important;
  padding: 11px !important;
  border-radius: 12px !important;
}
body.coach-ux-foundation-v1 .coach-dashboard-panel-foot {
  align-items: center;
}

@media (max-width: 760px) {
  body.coach-ux-foundation-v1 .coach-dashboard-kpi {
    grid-template-columns: 42px minmax(0,1fr);
    min-height: 0;
    padding: 16px;
    gap: 13px;
  }
  body.coach-ux-foundation-v1 .coach-dashboard-kpi-icon {
    width: 42px;
    height: 42px;
    font-size: 19px;
  }
  body.coach-ux-foundation-v1 .coach-dashboard-kpi strong { font-size: 26px; }
  body.coach-ux-foundation-v1 .coach-dashboard-panel { padding: 18px; }
}

/* =========================================================
   Coach Digital v1.0.55.3 — Dashboard card UX refinement
   Corrige padding real, jerarquía y composición de paneles.
   ========================================================= */
body.coach-ux-foundation-v1 .coach-dashboard-main-grid,
body.coach-ux-foundation-v1 .coach-dashboard-activity-grid {
  align-items: start;
}

body.coach-ux-foundation-v1 .coach-dashboard-panel {
  padding: 0 !important;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .05);
}

body.coach-ux-foundation-v1 .coach-dashboard-panel-head {
  margin: 0 !important;
  padding: 22px 24px 18px !important;
  border-bottom: 1px solid #edf1f6;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
}

body.coach-ux-foundation-v1 .coach-dashboard-panel-head .coach-kicker {
  margin-bottom: 8px;
  color: #2563eb;
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

body.coach-ux-foundation-v1 .coach-dashboard-panel-head h3 {
  color: #0f172a;
  font-size: 19px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -.02em;
}

body.coach-ux-foundation-v1 .coach-dashboard-panel-head > a {
  align-self: center;
  color: #2563eb;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none !important;
  white-space: nowrap;
}

body.coach-ux-foundation-v1 .coach-team-distribution {
  padding: 20px 24px 4px !important;
}

body.coach-ux-foundation-v1 .coach-team-distribution-row {
  padding: 0 0 18px;
}

body.coach-ux-foundation-v1 .coach-team-distribution-label {
  margin-bottom: 9px;
}

body.coach-ux-foundation-v1 .coach-team-distribution-label strong {
  color: #172033;
  font-size: 14px;
  font-weight: 750;
}

body.coach-ux-foundation-v1 .coach-team-distribution-label span {
  color: #718096;
  font-size: 12px;
}

body.coach-ux-foundation-v1 .coach-team-distribution-track {
  height: 8px;
  background: #edf2f7;
  border-radius: 999px;
  overflow: hidden;
}

body.coach-ux-foundation-v1 .coach-team-distribution-track > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2563eb 0%, #5b8cff 100%);
}

body.coach-ux-foundation-v1 .coach-dashboard-panel-foot {
  margin: 0 24px !important;
  padding: 17px 0 20px !important;
  border-top: 1px solid #edf1f6;
  color: #667085;
  font-size: 12px;
}

body.coach-ux-foundation-v1 .coach-dashboard-summary-list {
  margin: 0 !important;
  padding: 4px 24px 8px !important;
}

body.coach-ux-foundation-v1 .coach-dashboard-summary-list > div {
  min-height: 54px;
  padding: 15px 0 !important;
}

body.coach-ux-foundation-v1 .coach-dashboard-summary-list dt {
  color: #667085;
  font-size: 13px;
  line-height: 1.4;
}

body.coach-ux-foundation-v1 .coach-dashboard-summary-list dd {
  color: #101828;
  font-size: 15px;
  font-weight: 800;
}

body.coach-ux-foundation-v1 .coach-dashboard-full-btn {
  width: auto !important;
  margin: 8px 24px 24px !important;
  min-height: 44px;
}

body.coach-ux-foundation-v1 .coach-dashboard-timeline {
  padding: 16px 20px 20px !important;
  gap: 10px;
}

body.coach-ux-foundation-v1 .coach-dashboard-event {
  padding: 12px !important;
  background: #f8fafc;
  border: 1px solid #e8edf4 !important;
  border-radius: 14px !important;
}

body.coach-ux-foundation-v1 .coach-dashboard-event:hover {
  background: #f3f7ff;
  border-color: #cfe0ff !important;
}

body.coach-ux-foundation-v1 .coach-empty-state-compact {
  margin: 0;
  padding: 28px 20px !important;
  border: 1px dashed #d8e0ea;
  border-radius: 14px;
  background: #fbfcfe;
}

@media (max-width: 760px) {
  body.coach-ux-foundation-v1 .coach-dashboard-panel-head {
    padding: 18px 18px 15px !important;
  }
  body.coach-ux-foundation-v1 .coach-dashboard-panel-head h3 {
    font-size: 17px;
  }
  body.coach-ux-foundation-v1 .coach-team-distribution {
    padding: 18px 18px 2px !important;
  }
  body.coach-ux-foundation-v1 .coach-dashboard-panel-foot {
    margin: 0 18px !important;
    padding-bottom: 18px !important;
  }
  body.coach-ux-foundation-v1 .coach-dashboard-summary-list {
    padding: 2px 18px 6px !important;
  }
  body.coach-ux-foundation-v1 .coach-dashboard-full-btn {
    margin: 8px 18px 18px !important;
  }
  body.coach-ux-foundation-v1 .coach-dashboard-timeline {
    padding: 14px 14px 16px !important;
  }
}
