: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}
