/* Campus Preparamates v0.31.2 · Navegación modular de tutores y opositores */
.cp-panel-shell {
    --cp-panel-blue: #174fa6;
    --cp-panel-blue-dark: #082f6b;
    --cp-panel-blue-soft: #edf4ff;
    --cp-panel-gold: #d7ad3d;
    --cp-panel-border: #d8e2f0;
    display: grid;
    grid-template-columns: minmax(220px, 258px) minmax(0, 1fr);
    gap: 24px;
    width: 100%;
    min-width: 0;
    align-items: start;
}

.cp-panel-sidebar {
    position: sticky;
    top: 96px;
    overflow: hidden;
    border: 1px solid rgba(215, 173, 61, .72);
    border-radius: 18px;
    background:
        radial-gradient(circle at 100% 0, rgba(71, 139, 231, .32), transparent 38%),
        linear-gradient(155deg, #062755 0%, #0b3c80 58%, #155bb4 100%);
    color: #fff;
    box-shadow: 0 18px 42px rgba(6, 39, 85, .17);
}

.cp-panel-sidebar__heading {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 20px 18px 17px;
    border-bottom: 1px solid rgba(255, 255, 255, .14);
}

.cp-panel-sidebar__heading > .dashicons {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid rgba(215, 173, 61, .75);
    border-radius: 12px;
    background: rgba(255, 255, 255, .1);
    color: #f4d77f;
    font-size: 22px;
}

.cp-panel-sidebar__heading div,
.cp-panel-nav button > span:nth-child(2) {
    min-width: 0;
}

.cp-panel-sidebar__heading strong,
.cp-panel-sidebar__heading small {
    display: block;
}

.cp-panel-sidebar__heading strong {
    color: #fff;
    font-family: "Lato", "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    font-weight: 900;
    line-height: 1.2;
}

.cp-panel-sidebar__heading small {
    margin-top: 4px;
    color: rgba(255, 255, 255, .72);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.cp-panel-nav {
    display: grid;
    gap: 7px;
    padding: 14px;
}

.cp-panel-nav button {
    -webkit-appearance: none;
    appearance: none;
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    width: 100%;
    min-height: 50px;
    padding: 11px 12px;
    border: 1px solid transparent;
    border-radius: 11px;
    background: transparent;
    color: rgba(255, 255, 255, .86);
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.25;
    text-align: left;
    cursor: pointer;
    transition: border-color .16s ease, background .16s ease, color .16s ease, transform .16s ease;
}

.cp-panel-nav button .dashicons {
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    color: #f2d274;
    font-size: 19px;
}

.cp-panel-nav button small {
    display: grid;
    min-width: 25px;
    height: 25px;
    padding: 0 6px;
    place-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    font-size: 11px;
    font-weight: 900;
}

.cp-panel-nav button:hover,
.cp-panel-nav button:focus-visible {
    border-color: rgba(255, 255, 255, .24);
    background: rgba(255, 255, 255, .09);
    color: #fff;
    transform: translateX(2px);
}

.cp-panel-nav button:focus-visible {
    outline: 3px solid rgba(244, 215, 127, .42);
    outline-offset: -2px;
}

.cp-panel-nav button.is-active {
    border-color: rgba(215, 173, 61, .9);
    background: linear-gradient(135deg, #1f65c4, #174f9f);
    color: #fff;
    box-shadow: inset 4px 0 0 #efd26e, 0 8px 20px rgba(1, 23, 54, .22);
}

.cp-panel-content,
.cp-panel-view {
    min-width: 0;
}

.cp-panel-content {
    display: grid;
}

.cp-panel-view {
    display: grid;
    gap: 18px;
}

.cp-panel-shell.is-ready .cp-panel-view[hidden] {
    display: none !important;
}

.cp-panel-view__heading {
    display: grid;
    gap: 6px;
    padding: 19px 22px;
    border: 1px solid var(--cp-panel-border);
    border-left: 5px solid var(--cp-panel-gold);
    border-radius: 15px;
    background: linear-gradient(135deg, #fff 0%, #f3f7fd 100%);
    box-shadow: 0 9px 25px rgba(23, 79, 166, .055);
}

.cp-panel-view__heading :is(h2, h3),
.cp-panel-empty h3 {
    margin: 0;
    color: #082f6b;
    font-family: "Lato", "Helvetica Neue", Arial, sans-serif;
    font-weight: 900;
}

.cp-panel-view__heading > p:not(.cp-campus-eyebrow),
.cp-panel-empty p {
    margin: 0;
    color: #607088;
    line-height: 1.55;
}

.cp-panel-mobile-select {
    display: none;
}

.cp-panel-module-placeholder,
.cp-panel-empty {
    display: flex;
    gap: 13px;
    align-items: center;
    padding: 22px;
    border: 1px dashed #b9c8dc;
    border-radius: 14px;
    background: #f8faff;
    color: #607088;
}

.cp-panel-module-placeholder .dashicons,
.cp-panel-empty > .dashicons {
    color: var(--cp-panel-blue);
    font-size: 23px;
}

.cp-panel-shell--opponent .cp-dashboard-hero,
.cp-panel-shell--opponent .cp-dashboard-notifications,
.cp-panel-shell--opponent .cp-dashboard-priority-content,
.cp-panel-shell--opponent .cp-dashboard-role-section--opponent {
    margin: 0;
}

.cp-panel-shell--tutor-home .cp-dashboard-hero,
.cp-panel-shell--tutor-home .cp-dashboard-notifications,
.cp-panel-shell--tutor-home .cp-dashboard-priority-content,
.cp-panel-shell--tutor-home .cp-dashboard-role-section--tutor {
    margin: 0;
}

.cp-panel-shell--opponent .cp-dashboard-priority-content > :first-child,
.cp-panel-shell--opponent [data-cp-student-tasks-slot] > :first-child,
.cp-panel-shell--opponent [data-cp-profile-editor-slot] > :first-child,
.cp-panel-shell--tutor-home .cp-dashboard-priority-content > :first-child,
.cp-panel-shell--tutor-home [data-cp-profile-editor-slot] > :first-child,
.cp-panel-shell--tutor [data-cp-tutor-workflow-slot] > :first-child {
    margin-top: 0;
}

.cp-panel-shell--opponent .cp-student-tasks__compact {
    border-color: var(--cp-panel-border);
}

.cp-panel-shell--opponent .cp-student-tasks__header {
    cursor: default;
}

.cp-panel-shell--tutor .cp-tutor-public-profile {
    margin: 0;
}

.cp-tutor-group {
    display: block;
    overflow: hidden;
    padding: 0;
}

.cp-tutor-group + .cp-tutor-group {
    margin-top: 14px;
}

.cp-tutor-group__toggle {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto 24px;
    gap: 13px;
    align-items: center;
    padding: 17px 19px;
    list-style: none;
    background: linear-gradient(135deg, #f8fbff, #edf4ff);
    color: #082f6b;
    cursor: pointer;
}

.cp-tutor-group__toggle::-webkit-details-marker {
    display: none;
}

.cp-tutor-group__toggle:focus-visible {
    outline: 3px solid rgba(23, 79, 166, .25);
    outline-offset: -3px;
}

.cp-tutor-group__toggle-icon {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 12px;
    background: #174fa6;
    color: #fff;
    font-size: 22px;
    box-shadow: 0 8px 18px rgba(23, 79, 166, .2);
}

.cp-tutor-group__toggle > span:nth-child(2) {
    min-width: 0;
}

.cp-tutor-group__toggle strong,
.cp-tutor-group__toggle small {
    display: block;
}

.cp-tutor-group__toggle strong {
    font-family: "Lato", "Helvetica Neue", Arial, sans-serif;
    font-size: 18px;
    font-weight: 900;
}

.cp-tutor-group__toggle small {
    margin-top: 3px;
    color: #607088;
    font-size: 12px;
    font-weight: 700;
}

.cp-tutor-group__toggle-count {
    padding: 7px 10px;
    border: 1px solid #dfc36f;
    border-radius: 999px;
    background: #fff9e9;
    color: #6d5415;
    font-size: 11px;
    font-weight: 900;
    white-space: nowrap;
}

.cp-tutor-group__toggle-chevron {
    transition: transform .18s ease;
}

.cp-tutor-group[open] .cp-tutor-group__toggle {
    border-bottom: 1px solid var(--cp-panel-border);
}

.cp-tutor-group[open] .cp-tutor-group__toggle-chevron {
    transform: rotate(180deg);
}

.cp-tutor-group__body {
    display: grid;
    gap: 18px;
    padding: 22px;
}

.cp-panel-shell--tutor .cp-workflow-admin {
    margin: 0;
}

.cp-panel-shell--tutor .cp-workflow-admin__hero {
    display: none;
}

@media (max-width: 900px) {
    .cp-panel-shell {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .cp-panel-sidebar {
        position: static;
        overflow: visible;
        border-radius: 15px;
    }

    .cp-panel-sidebar__heading {
        padding: 15px 16px 13px;
    }

    .cp-panel-nav {
        display: none;
    }

    .cp-panel-mobile-select {
        display: grid;
        gap: 6px;
        padding: 13px 15px 16px;
        color: rgba(255, 255, 255, .82);
        font-size: 12px;
        font-weight: 800;
    }

    .cp-panel-mobile-select select {
        width: 100%;
        min-height: 46px;
        padding: 9px 38px 9px 12px;
        border: 1px solid #dfc36f;
        border-radius: 10px;
        background-color: #fff;
        color: #082f6b;
        font: inherit;
        font-size: 14px;
        font-weight: 800;
    }
}

@media (max-width: 620px) {
    .cp-panel-view__heading {
        padding: 17px;
    }

    .cp-tutor-group__toggle {
        grid-template-columns: 40px minmax(0, 1fr) 22px;
        padding: 14px;
    }

    .cp-tutor-group__toggle-icon {
        width: 40px;
        height: 40px;
    }

    .cp-tutor-group__toggle-count {
        grid-column: 2;
        justify-self: start;
    }

    .cp-tutor-group__toggle-chevron {
        grid-column: 3;
        grid-row: 1 / span 2;
    }

    .cp-tutor-group__body {
        padding: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cp-panel-nav button,
    .cp-tutor-group__toggle-chevron {
        transition: none;
    }
}
