/**
 * INFO-TEC CHILE — Dashboard étudiant « pro » (oct. 2026)
 *
 * Couche de présentation chargée après toutes les autres feuilles.
 * Tout est limité à #app-interface.app-student-shell : le panneau
 * administrateur ne change pas. Palette navy / or (design-system.css).
 */

#app-interface.app-student-shell {
    --sp-bg: #0A1433;
    --sp-side: #081030;
    --sp-surface: #0F1C45;
    --sp-surface-2: #13245A;
    --sp-surface-3: #1A2E6B;
    --sp-line: rgba(255, 255, 255, 0.08);
    --sp-line-2: rgba(255, 255, 255, 0.14);
    --sp-text: #EEF1FA;
    --sp-muted: #9AA6C6;
    --sp-faint: #6B7799;
    --sp-gold: var(--itc-gold-500, #DAB63E);
    --sp-gold-2: #F0CF5A;
    --sp-gold-soft: rgba(218, 182, 62, 0.12);
    --sp-green: #22C55E;
    --sp-green-soft: rgba(34, 197, 94, 0.12);
    --sp-red: #F87171;
    --sp-radius: 12px;
    --sp-radius-sm: 8px;
    --sp-font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --sp-font-title: "Montserrat", "Inter", system-ui, sans-serif;
    font-family: var(--sp-font);
    background: var(--sp-bg);
    color: var(--sp-text);
}

#app-interface.app-student-shell .main-area,
#app-interface.app-student-shell #view-student,
#app-interface.app-student-shell .student-app-tab {
    background: var(--sp-bg);
}

/* ── Primitives ─────────────────────────────────────────────── */

#app-interface.app-student-shell .stu-card {
    background: var(--sp-surface);
    border: 1px solid var(--sp-line);
    border-radius: var(--sp-radius);
}

#app-interface.app-student-shell .stu-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--sp-surface-2);
    color: var(--sp-muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    white-space: nowrap;
}

#app-interface.app-student-shell .stu-chip--gold {
    background: var(--sp-gold-soft);
    color: var(--sp-gold);
}

#app-interface.app-student-shell .stu-chip .fa-circle { font-size: 7px; }

#app-interface.app-student-shell .stu-bar {
    display: block;
    height: 6px;
    background: var(--sp-surface-3);
    border-radius: 999px;
    overflow: hidden;
}

#app-interface.app-student-shell .stu-bar > span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--sp-gold), var(--sp-gold-2));
    transition: width 0.4s ease;
}

#app-interface.app-student-shell .stu-muted { color: var(--sp-muted); }

#app-interface.app-student-shell .stu-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--sp-line);
}

#app-interface.app-student-shell .stu-card-head h3 {
    margin: 0;
    font-family: var(--sp-font-title);
    font-size: 15px;
    font-weight: 700;
    color: var(--sp-text);
    letter-spacing: 0;
    text-transform: none;
}

#app-interface.app-student-shell .stu-link-btn {
    background: none;
    border: 0;
    padding: 0;
    color: var(--sp-gold);
    font: 600 12.5px var(--sp-font);
    white-space: nowrap;
    cursor: pointer;
}

#app-interface.app-student-shell .stu-link-btn:hover { text-decoration: underline; }

#app-interface.app-student-shell button:focus-visible,
#app-interface.app-student-shell .menu-item:focus-visible {
    outline: 2px solid var(--sp-gold);
    outline-offset: 2px;
}

/* ── Menu latéral ───────────────────────────────────────────── */

#app-interface.app-student-shell .sidebar {
    background: var(--sp-side);
    border-right: 1px solid var(--sp-line);
    box-shadow: none;
}

#app-interface.app-student-shell .sidebar .brand {
    border-bottom: 0;
    padding-bottom: 12px;
}

#app-interface.app-student-shell #menu-student .stu-nav-heading {
    color: var(--sp-faint);
    font: 600 10.5px var(--sp-font);
    letter-spacing: 0.08em;
    margin: 16px 22px 4px;
}

#app-interface.app-student-shell #menu-student .menu-item {
    position: relative;
    margin: 2px 12px;
    min-height: 40px;
    padding: 9px 12px;
    border: 0;
    border-radius: var(--sp-radius-sm);
    background: transparent;
    box-shadow: none;
    color: var(--sp-muted);
    font: 500 14px var(--sp-font);
    gap: 12px;
}

#app-interface.app-student-shell #menu-student .menu-item i {
    width: 18px;
    text-align: center;
    font-size: 14px;
    color: inherit;
}

#app-interface.app-student-shell #menu-student .menu-item:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--sp-text);
}

#app-interface.app-student-shell #menu-student .menu-item.active {
    background: var(--sp-surface-2);
    color: var(--sp-text);
    border: 0;
    box-shadow: none;
}

#app-interface.app-student-shell #menu-student .menu-item.active::before {
    content: "";
    position: absolute;
    left: -12px;
    top: 8px;
    bottom: 8px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--sp-gold);
}

#app-interface.app-student-shell #menu-student .menu-item.active i { color: var(--sp-gold); }

#app-interface.app-student-shell #menu-student .stu-nav-divider { border-color: var(--sp-line); background: var(--sp-line); }

#app-interface.app-student-shell .sidebar .user-profile {
    background: transparent;
    border: 1px solid var(--sp-line);
    border-radius: var(--sp-radius);
    box-shadow: none;
}

#app-interface.app-student-shell .sidebar .user-profile .avatar {
    background: linear-gradient(135deg, var(--sp-gold), #a8862a);
    color: #14110a;
    border: 0;
}

#app-interface.app-student-shell .user-profile-name {
    font: 600 13px var(--sp-font);
    color: var(--sp-text);
}

#app-interface.app-student-shell .user-profile-role {
    font: 400 11.5px var(--sp-font);
    color: var(--sp-muted);
}

#app-interface.app-student-shell .user-profile-logout { color: var(--sp-faint); }

/* ── Barre du haut ──────────────────────────────────────────── */

#app-interface.app-student-shell .top-bar {
    background: rgba(10, 20, 51, 0.92);
    border-bottom: 1px solid var(--sp-line);
    box-shadow: none;
    backdrop-filter: blur(8px);
}

#app-interface.app-student-shell .top-bar #page-title {
    font: 600 15px var(--sp-font);
    color: var(--sp-text);
    letter-spacing: 0;
}

#app-interface.app-student-shell .app-status-pill { display: none; }

#app-interface.app-student-shell .glow-kinetic-core {
    width: 64px;
    height: 36px;
    border-radius: var(--sp-radius-sm);
}

#app-interface.app-student-shell .glow-kinetic-core .kinetic-gears-bg,
#app-interface.app-student-shell .glow-kinetic-core .kinetic-heat-haze,
#app-interface.app-student-shell .glow-kinetic-core .kinetic-neon-ring {
    display: none;
}

#app-interface.app-student-shell .glow-kinetic-core .kinetic-facet {
    background: var(--sp-surface);
    border: 1px solid var(--sp-line-2);
    border-radius: var(--sp-radius-sm);
    box-shadow: none;
}

#app-interface.app-student-shell .glow-kinetic-core .kf-code {
    color: var(--sp-gold);
    font: 700 13px var(--sp-font);
    text-shadow: none;
    letter-spacing: 0.04em;
}

#app-interface.app-student-shell .glow-kinetic-core .kf-name {
    color: var(--sp-muted);
    font: 500 8px var(--sp-font);
    text-shadow: none;
}

/* ── Mes cours : en-tête ────────────────────────────────────── */

#app-interface.app-student-shell #tab-lms {
    padding: 24px 28px 40px;
}

#app-interface.app-student-shell .stu-course-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin: 0 0 20px;
    padding: 0;
    height: auto;
    min-height: 0;
    background: none;
    border: 0;
    box-shadow: none;
}

#app-interface.app-student-shell .stu-course-head::before,
#app-interface.app-student-shell .stu-course-head::after { display: none; }

#app-interface.app-student-shell .stu-course-head__copy { min-width: 0; }

#app-interface.app-student-shell .stu-course-head h1 {
    margin: 10px 0 6px;
    font: 700 24px/1.25 var(--sp-font-title);
    color: var(--sp-text);
    letter-spacing: -0.01em;
    text-transform: none;
    text-shadow: none;
}

#app-interface.app-student-shell .stu-course-head p {
    margin: 0;
    max-width: 640px;
    color: var(--sp-muted);
    font: 400 14px/1.55 var(--sp-font);
}

#app-interface.app-student-shell .stu-course-head__progress {
    flex: 0 0 auto;
    min-width: 300px;
    padding: 14px 16px;
}

#app-interface.app-student-shell .stu-course-head__progress-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 10px;
    color: var(--sp-muted);
    font-size: 13px;
}

#app-interface.app-student-shell .stu-course-head__progress-top strong {
    color: var(--sp-text);
    font: 700 20px var(--sp-font-title);
}

#app-interface.app-student-shell .stu-course-head__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    margin-top: 10px;
    color: var(--sp-muted);
    font-size: 12.5px;
}

#app-interface.app-student-shell .stu-course-head__meta i { color: var(--sp-gold); margin-right: 4px; }
#app-interface.app-student-shell .stu-course-head__meta strong { color: var(--sp-text); font-weight: 600; }

/* ── Mes cours : grille, lecteur ────────────────────────────── */

#app-interface.app-student-shell .student-lms-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 20px;
    align-items: start;
    padding: 0;
    margin: 0;
}

#app-interface.app-student-shell .student-video-panel {
    background: var(--sp-surface);
    border: 1px solid var(--sp-line);
    border-radius: var(--sp-radius);
    box-shadow: none;
    padding: 0;
    overflow: hidden;
}

#app-interface.app-student-shell .student-video-stage {
    background: #050a1f;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    margin: 0;
    padding: 0;
}

#app-interface.app-student-shell .private-video-card {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: #050a1f;
    margin: 0;
}

#app-interface.app-student-shell .private-video-title { display: none; }

#app-interface.app-student-shell .private-video-shell { border-radius: 0; }

#app-interface.app-student-shell .private-video-fullscreen-btn {
    background: rgba(8, 16, 48, 0.78);
    color: #fff;
    border: 1px solid var(--sp-line-2);
    border-radius: var(--sp-radius-sm);
    box-shadow: none;
    font: 600 12px var(--sp-font);
}

#app-interface.app-student-shell .student-video-meta { padding: 0; margin: 0; }

#app-interface.app-student-shell .private-video-footer {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 0;
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

#app-interface.app-student-shell .stu-lesson-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
}

#app-interface.app-student-shell .stu-lesson-head { flex-wrap: wrap; }

#app-interface.app-student-shell .stu-lesson-copy {
    flex: 1 1 340px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    min-width: 0;
}

#app-interface.app-student-shell .stu-lesson-kicker {
    color: var(--sp-gold);
    font: 600 12px var(--sp-font);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

#app-interface.app-student-shell .stu-lesson-title {
    margin: 0;
    color: var(--sp-text);
    font: 700 18px/1.3 var(--sp-font-title);
    text-transform: none;
    letter-spacing: 0;
}

#app-interface.app-student-shell .private-video-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: auto;
    margin: 0;
    padding: 4px 10px;
    border: 0;
    border-radius: 999px;
    font: 600 12px var(--sp-font);
    box-shadow: none;
}

#app-interface.app-student-shell .private-video-badge.completed { background: var(--sp-green-soft); color: var(--sp-green); }
#app-interface.app-student-shell .private-video-badge.pending { background: var(--sp-gold-soft); color: var(--sp-gold); }

#app-interface.app-student-shell .stu-lesson-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    flex: 0 0 auto;
}

#app-interface.app-student-shell .private-video-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: auto;
    min-height: 38px;
    margin: 0;
    padding: 9px 14px;
    border-radius: var(--sp-radius-sm);
    border: 1px solid var(--sp-gold);
    background: var(--sp-gold);
    color: #14110a;
    font: 600 13px var(--sp-font);
    text-transform: none;
    letter-spacing: 0;
    box-shadow: none;
    cursor: pointer;
}

#app-interface.app-student-shell .private-video-action-btn:hover { background: var(--sp-gold-2); }

#app-interface.app-student-shell .private-video-action-btn.secondary {
    background: transparent;
    border-color: var(--sp-line-2);
    color: var(--sp-text);
}

#app-interface.app-student-shell .private-video-action-btn.secondary:hover { background: rgba(255, 255, 255, 0.05); }

#app-interface.app-student-shell .private-video-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0 20px;
    margin: 0;
}

#app-interface.app-student-shell .private-video-actions:not(:has(> :not(.mis-clases-toggle-btn))) { padding: 0; }

#app-interface.app-student-shell .private-video-actions > :last-child { margin-bottom: 16px; }

#app-interface.app-student-shell .private-video-actions > .mis-clases-toggle-btn { display: none; }

#app-interface.app-student-shell .private-video-hint {
    margin: 0;
    color: var(--sp-muted);
    font-size: 13px;
}

/* Documents du module (sous la vidéo) */
#app-interface.app-student-shell .student-video-materials {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
    margin: 0;
    padding: 16px 20px 20px;
    border-top: 1px solid var(--sp-line);
}

#app-interface.app-student-shell .student-video-materials:empty { display: none; }

#app-interface.app-student-shell .student-video-materials .student-materials-title {
    grid-column: 1 / -1;
    margin: 0;
    color: var(--sp-text);
    font: 600 13px var(--sp-font);
}

#app-interface.app-student-shell .student-materials-title i { color: var(--sp-gold); }

#app-interface.app-student-shell .student-material-item {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 12px;
    margin: 0;
    border: 1px solid var(--sp-line);
    border-left: 1px solid var(--sp-line);
    border-radius: var(--sp-radius-sm);
    background: var(--sp-bg);
    box-shadow: none;
    color: var(--sp-text);
}

#app-interface.app-student-shell .student-material-item:hover { border-color: rgba(218, 182, 62, 0.45); }

#app-interface.app-student-shell .student-material-item > i {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: var(--sp-gold-soft);
    color: var(--sp-gold);
    font-size: 16px;
}

#app-interface.app-student-shell .student-material-item strong {
    font: 600 13px/1.3 var(--sp-font);
    color: var(--sp-text);
}

#app-interface.app-student-shell .student-material-item .student-video-status {
    color: var(--sp-muted);
    font: 400 11.5px var(--sp-font);
}

/* ── Programme du cours (colonne droite) ────────────────────── */

#app-interface.app-student-shell .student-syllabus-panel {
    background: var(--sp-surface);
    border: 1px solid var(--sp-line);
    border-radius: var(--sp-radius);
    box-shadow: none;
    padding: 0;
    overflow: hidden;
    position: sticky;
    top: 16px;
    max-height: calc(100vh - 110px);
    display: flex;
    flex-direction: column;
}

#app-interface.app-student-shell .stu-syllabus-head {
    display: block;
    padding: 16px 18px;
    margin: 0;
    border-bottom: 1px solid var(--sp-line);
    background: none;
}

#app-interface.app-student-shell .stu-syllabus-head__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

#app-interface.app-student-shell .stu-syllabus-head .student-syllabus-title {
    margin: 0;
    color: var(--sp-text);
    font: 700 15px var(--sp-font-title);
    text-transform: none;
    letter-spacing: 0;
}

#app-interface.app-student-shell .stu-syllabus-course {
    margin: 4px 0 12px;
    color: var(--sp-muted);
    font-size: 12.5px;
}

#app-interface.app-student-shell #student-course-list {
    overflow-y: auto;
    padding: 0;
    margin: 0;
    gap: 0;
    display: block;
}

#app-interface.app-student-shell .student-module-accordion {
    margin: 0;
    border: 0;
    border-bottom: 1px solid var(--sp-line);
    border-radius: 0;
    background: none;
    box-shadow: none;
}

#app-interface.app-student-shell .student-module-header {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 13px 18px;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    color: var(--sp-text);
    font: 600 13.5px var(--sp-font);
    text-transform: none;
    letter-spacing: 0;
    text-align: left;
}

#app-interface.app-student-shell .student-module-accordion.is-open .student-module-header { background: none; color: var(--sp-text); }

#app-interface.app-student-shell .student-module-header:hover,
#app-interface.app-student-shell .student-module-accordion.is-open .student-module-header:hover { background: rgba(255, 255, 255, 0.03); }

#app-interface.app-student-shell .student-module-header .stu-mod-index i,
#app-interface.app-student-shell .student-module-header .student-module-lock-pill i { transform: none; }

#app-interface.app-student-shell .stu-mod-index {
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border-radius: 7px;
    background: var(--sp-surface-2);
    color: var(--sp-muted);
    font: 700 12px var(--sp-font);
}

#app-interface.app-student-shell .stu-mod-index.is-open { background: var(--sp-gold-soft); color: var(--sp-gold); }
#app-interface.app-student-shell .stu-mod-index.is-done { background: var(--sp-green-soft); color: var(--sp-green); }

#app-interface.app-student-shell .stu-mod-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

#app-interface.app-student-shell .stu-mod-text small {
    color: var(--sp-muted);
    font: 400 11.5px var(--sp-font);
}

#app-interface.app-student-shell .student-module-header > .fa-chevron-down {
    margin-left: auto;
    color: var(--sp-faint);
    font-size: 12px;
}

#app-interface.app-student-shell .student-module-lock-pill {
    background: none;
    border: 0;
    color: var(--sp-faint);
    padding: 0;
}

#app-interface.app-student-shell .student-module-content {
    padding: 0 0 8px;
    margin: 0;
    background: none;
    border: 0;
}

#app-interface.app-student-shell .student-module-content.active { display: block; }

#app-interface.app-student-shell .student-module-lock-banner {
    margin: 0 18px 8px;
    color: var(--sp-muted);
    font-size: 12px;
}

#app-interface.app-student-shell .student-module-content .syllabus-item.student-video-button,
#app-interface.app-student-shell .student-module-content .syllabus-item.student-video-pending {
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    min-height: 0;
    margin: 0;
    padding: 9px 18px 9px 30px;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    color: var(--sp-muted);
    text-align: left;
    font: 400 13px var(--sp-font);
}

#app-interface.app-student-shell .student-module-content .syllabus-item > i { display: none; }

#app-interface.app-student-shell .student-module-content .syllabus-item > div {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    align-items: center;
    gap: 11px;
    min-width: 0;
}

#app-interface.app-student-shell .student-module-content .syllabus-item > div > small,
#app-interface.app-student-shell .student-module-content .syllabus-item > div > br { display: none; }

#app-interface.app-student-shell .student-module-content .syllabus-item strong {
    font: 400 13px/1.35 var(--sp-font);
    color: inherit;
}

#app-interface.app-student-shell .student-module-content .syllabus-item .student-video-status {
    flex: 0 0 16px;
    margin: 0;
    padding: 0;
    background: none;
    color: var(--sp-faint);
    font-size: 14px;
}

#app-interface.app-student-shell .student-module-content .syllabus-item .student-video-status span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

#app-interface.app-student-shell .student-module-content .syllabus-item .student-video-status.completed { color: var(--sp-green); }
#app-interface.app-student-shell .student-module-content .syllabus-item .student-video-status.next-up { color: var(--sp-gold); }

#app-interface.app-student-shell .student-module-content .syllabus-item:not(:disabled):hover {
    background: rgba(255, 255, 255, 0.03);
    color: var(--sp-text);
}

#app-interface.app-student-shell .student-module-content .syllabus-item.active {
    background: var(--sp-gold-soft);
    color: var(--sp-text);
    box-shadow: inset 3px 0 0 var(--sp-gold);
}

#app-interface.app-student-shell .student-module-content .syllabus-item.active .student-video-status { color: var(--sp-gold); }

#app-interface.app-student-shell .student-module-content .syllabus-item.is-locked { opacity: 0.55; }

/* Documents dans la colonne Programme */
#app-interface.app-student-shell .student-module-content .student-module-materials:not(.student-video-materials) {
    margin: 6px 18px 4px 30px;
    gap: 6px;
}

#app-interface.app-student-shell .student-module-content .student-module-materials:not(.student-video-materials) .student-material-item {
    padding: 8px 10px;
}

#app-interface.app-student-shell .student-module-content .student-module-materials:not(.student-video-materials) .student-material-item > i {
    flex-basis: 30px;
    width: 30px;
    height: 30px;
    font-size: 13px;
}

#app-interface.app-student-shell .student-module-exam-panel { margin: 6px 18px 4px 30px; }

#app-interface.app-student-shell .student-final-exam-card {
    margin: 14px;
    padding: 14px;
    border: 1px dashed var(--sp-line-2);
    border-radius: var(--sp-radius-sm);
    background: none;
    box-shadow: none;
}

#app-interface.app-student-shell .student-final-exam-card h4 {
    margin: 0 0 4px;
    color: var(--sp-text);
    font: 600 13.5px var(--sp-font);
}

#app-interface.app-student-shell .student-final-exam-card h4 i { color: var(--sp-gold); }

#app-interface.app-student-shell .student-final-exam-card p {
    margin: 0;
    color: var(--sp-muted);
    font-size: 12.5px;
}

/* ── Mon panel ──────────────────────────────────────────────── */

#app-interface.app-student-shell .student-dashboard-home .stu-dash-inner {
    max-width: 1320px;
    padding: 24px 28px 40px;
    gap: 20px;
}

#app-interface.app-student-shell .student-dashboard-home .stu-dash-hero {
    padding: 0;
    margin: 0;
    background: none;
    border: 0;
    box-shadow: none;
    overflow: visible;
    animation: none;
}

#app-interface.app-student-shell .student-dashboard-home .stu-dash-hero-inner {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    padding: 0;
}

#app-interface.app-student-shell .student-dashboard-home .stu-dash-hero .stu-dash-badge { display: none; }

#app-interface.app-student-shell .stu-dash-date {
    display: block;
    color: var(--sp-muted);
    font-size: 13px;
}

#app-interface.app-student-shell .student-dashboard-home .stu-dash-hero h1 {
    margin: 4px 0;
    font: 700 24px/1.25 var(--sp-font-title);
    color: var(--sp-text);
    letter-spacing: -0.01em;
}

#app-interface.app-student-shell .student-dashboard-home #stu-welcome-name { color: var(--sp-text); }

#app-interface.app-student-shell .student-dashboard-home .stu-dash-hero p {
    margin: 0;
    color: var(--sp-muted);
    font: 400 13.5px/1.5 var(--sp-font);
}

#app-interface.app-student-shell .student-dashboard-home .stu-dash-hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 0;
    border-radius: var(--sp-radius-sm);
    background: var(--sp-gold);
    color: #14110a;
    font: 600 13.5px var(--sp-font);
    box-shadow: none;
    text-transform: none;
}

#app-interface.app-student-shell .student-dashboard-home .stu-dash-hero-btn:hover { background: var(--sp-gold-2); }

#app-interface.app-student-shell .student-dashboard-home .stu-dash-kpi-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin: 0;
}

#app-interface.app-student-shell .student-dashboard-home .stu-dash-kpi {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px 18px;
    background: var(--sp-surface);
    border: 1px solid var(--sp-line);
    border-radius: var(--sp-radius);
    box-shadow: none;
}

#app-interface.app-student-shell .student-dashboard-home .stu-dash-kpi:hover { transform: none; }

#app-interface.app-student-shell .stu-dash-kpi-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#app-interface.app-student-shell .student-dashboard-home .stu-dash-kpi-label {
    color: var(--sp-muted);
    font: 500 12.5px var(--sp-font);
    letter-spacing: 0;
    text-transform: none;
}

#app-interface.app-student-shell .student-dashboard-home .stu-dash-kpi-icon {
    width: 30px;
    height: 30px;
    min-width: 30px;
    border-radius: 8px;
    border: 0;
    background: var(--sp-surface-2);
    color: var(--sp-gold);
    font-size: 13px;
    box-shadow: none;
}

#app-interface.app-student-shell .student-dashboard-home .stu-dash-kpi-value {
    display: block;
    margin: 10px 0 8px;
    color: var(--sp-text);
    font: 700 26px/1.1 var(--sp-font-title);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#app-interface.app-student-shell .student-dashboard-home .stu-dash-kpi-value--danger { color: var(--sp-text); }
#app-interface.app-student-shell .student-dashboard-home .stu-dash-kpi-value--success { color: var(--sp-green); }

#app-interface.app-student-shell .stu-dash-kpi-sub {
    color: var(--sp-muted);
    font-size: 12px;
}

#app-interface.app-student-shell .stu-home-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 20px;
}

#app-interface.app-student-shell .stu-resume-body {
    display: flex;
    align-items: center;
    gap: 18px;
    width: 100%;
    padding: 18px;
    border: 0;
    background: none;
    color: inherit;
    text-align: left;
    cursor: pointer;
    font: inherit;
}

#app-interface.app-student-shell .stu-resume-thumb {
    flex: 0 0 220px;
    aspect-ratio: 16 / 9;
    display: grid;
    place-items: center;
    border-radius: var(--sp-radius-sm);
    background: radial-gradient(120% 90% at 30% 20%, #2a3f86 0%, #0d1638 70%);
}

#app-interface.app-student-shell .stu-play {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--sp-gold);
    color: #14110a;
    font-size: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s ease;
}

#app-interface.app-student-shell .stu-resume-body:hover .stu-play { transform: scale(1.08); }

#app-interface.app-student-shell .stu-resume-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    flex: 1;
    min-width: 0;
}

#app-interface.app-student-shell .stu-resume-copy strong {
    color: var(--sp-text);
    font: 700 16px/1.3 var(--sp-font-title);
}

#app-interface.app-student-shell .stu-resume-course { color: var(--sp-muted); font-size: 13px; }
#app-interface.app-student-shell .stu-resume-copy .stu-bar { width: 100%; margin-top: 8px; }
#app-interface.app-student-shell .stu-resume-copy small { color: var(--sp-muted); font-size: 12px; }

#app-interface.app-student-shell .stu-steps {
    list-style: none;
    margin: 0;
    padding: 6px 18px 12px;
}

#app-interface.app-student-shell .stu-step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid var(--sp-line);
}

#app-interface.app-student-shell .stu-step:last-child { border-bottom: 0; }

#app-interface.app-student-shell .stu-step-check {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 2px solid var(--sp-line-2);
    font-size: 10px;
}

#app-interface.app-student-shell .stu-step.is-done .stu-step-check { background: var(--sp-green); border-color: var(--sp-green); color: #06210f; }
#app-interface.app-student-shell .stu-step.is-current .stu-step-check { border-color: var(--sp-gold); }

#app-interface.app-student-shell .stu-step-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

#app-interface.app-student-shell .stu-step-copy strong { color: var(--sp-text); font: 600 13px var(--sp-font); }
#app-interface.app-student-shell .stu-step-copy small { color: var(--sp-muted); font-size: 12px; }

#app-interface.app-student-shell .student-dashboard-home .stu-quick-actions {
    margin: 0;
    padding: 0;
}

#app-interface.app-student-shell .student-dashboard-home .stu-section-title {
    display: block;
    margin: 0;
}

#app-interface.app-student-shell .student-dashboard-home .stu-quick-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    padding: 16px;
}

#app-interface.app-student-shell .student-dashboard-home .stu-quick-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    min-height: 0;
    padding: 14px;
    border: 1px solid var(--sp-line);
    border-radius: var(--sp-radius-sm);
    background: var(--sp-bg);
    box-shadow: none;
    text-align: left;
}

#app-interface.app-student-shell .student-dashboard-home .stu-quick-card:hover {
    border-color: rgba(218, 182, 62, 0.45);
    transform: none;
}

#app-interface.app-student-shell .student-dashboard-home .stu-quick-icon {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    border: 0;
    background: var(--sp-gold-soft);
    color: var(--sp-gold);
    font-size: 14px;
    box-shadow: none;
}

#app-interface.app-student-shell .student-dashboard-home .stu-quick-title {
    color: var(--sp-text);
    font: 600 13px var(--sp-font);
    text-transform: none;
    letter-spacing: 0;
}

#app-interface.app-student-shell .stu-home-pay-body { padding: 18px; }

#app-interface.app-student-shell .stu-home-pay-big {
    display: block;
    margin: 4px 0 12px;
    color: var(--sp-text);
    font: 700 24px var(--sp-font-title);
}

#app-interface.app-student-shell .stu-home-pay-rows { margin: 14px 0 0; }

#app-interface.app-student-shell .stu-home-pay-rows > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    border-top: 1px solid var(--sp-line);
    font-size: 13px;
}

#app-interface.app-student-shell .stu-home-pay-rows dt { color: var(--sp-muted); }
#app-interface.app-student-shell .stu-home-pay-rows dd { margin: 0; color: var(--sp-text); font-weight: 600; }

/* Cartes Sécurité / Profil gardées en bas du panel */
#app-interface.app-student-shell .student-dashboard-home .stu-password-card,
#app-interface.app-student-shell .student-dashboard-home .stu-profile-card {
    background: var(--sp-surface);
    border: 1px solid var(--sp-line);
    border-radius: var(--sp-radius);
    box-shadow: none;
}

/* ── Autres onglets : en-têtes plus sobres ──────────────────── */

#app-interface.app-student-shell .stu-page-header h2,
#app-interface.app-student-shell .exam-student-hero h1 {
    font-family: var(--sp-font-title);
    text-transform: none;
    letter-spacing: -0.01em;
    text-shadow: none;
}

/* ── Tablette / téléphone ───────────────────────────────────── */

@media (max-width: 1180px) {
    #app-interface.app-student-shell .student-lms-grid { grid-template-columns: minmax(0, 1fr) 300px; }
    #app-interface.app-student-shell .student-dashboard-home .stu-dash-kpi-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    #app-interface.app-student-shell .stu-home-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
    #app-interface.app-student-shell #tab-lms { padding: 16px 16px 24px; }

    #app-interface.app-student-shell .stu-course-head {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        margin-bottom: 16px;
    }

    #app-interface.app-student-shell .stu-course-head h1 { font-size: 20px; }
    #app-interface.app-student-shell .stu-course-head p { font-size: 13.5px; }
    #app-interface.app-student-shell .stu-course-head__progress { min-width: 0; }

    #app-interface.app-student-shell .student-lms-grid { grid-template-columns: 1fr; }
    #app-interface.app-student-shell .student-lms-grid .student-syllabus-panel { display: none; }

    #app-interface.app-student-shell .stu-lesson-head {
        flex-direction: column;
        padding: 16px;
    }

    #app-interface.app-student-shell .stu-lesson-copy { flex: none; }
    #app-interface.app-student-shell .stu-lesson-title { font-size: 17px; }
    #app-interface.app-student-shell .stu-lesson-nav { width: 100%; justify-content: stretch; }
    #app-interface.app-student-shell .stu-lesson-nav .private-video-action-btn { flex: 1 1 0; min-height: 44px; }

    #app-interface.app-student-shell .private-video-actions { padding: 0 16px; }
    #app-interface.app-student-shell .private-video-actions > .mis-clases-toggle-btn {
        display: inline-flex;
        width: 100%;
        min-height: 46px;
        background: var(--sp-surface-2);
        border: 1px solid var(--sp-line-2);
        box-shadow: none;
        outline: 0;
        color: var(--sp-text);
    }

    #app-interface.app-student-shell .student-video-materials {
        grid-template-columns: 1fr;
        padding: 16px;
    }

    #app-interface.app-student-shell .student-dashboard-home .stu-dash-inner { padding: 16px 16px 24px; gap: 16px; }

    #app-interface.app-student-shell .student-dashboard-home .stu-dash-hero-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    #app-interface.app-student-shell .student-dashboard-home .stu-dash-hero h1 { font-size: 21px; }
    #app-interface.app-student-shell .student-dashboard-home .stu-dash-kpi-row { gap: 12px; }
    #app-interface.app-student-shell .student-dashboard-home .stu-dash-kpi { padding: 14px; }
    #app-interface.app-student-shell .student-dashboard-home .stu-dash-kpi-value { font-size: 22px; }

    #app-interface.app-student-shell .stu-resume-body { flex-direction: column; align-items: stretch; }
    #app-interface.app-student-shell .stu-resume-thumb { flex-basis: auto; width: 100%; }
    #app-interface.app-student-shell .student-dashboard-home .stu-quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    /* Feuille « Mes classes » : même style de liste que la colonne Programme */
    #app-interface.app-student-shell .student-classes-panel { background: var(--sp-surface); }
    #app-interface.app-student-shell #student-classes-list { padding: 0; gap: 0; }
}

@media (prefers-reduced-motion: reduce) {
    #app-interface.app-student-shell .stu-bar > span,
    #app-interface.app-student-shell .stu-play { transition: none; }
}
