:root {
    color-scheme: light;
    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    --background: #f3f5f8;
    --surface: #ffffff;
    --text: #172033;
    --muted: #687386;
    --border: #dde3ec;
    --primary: #315efb;
    --primary-dark: #2448c9;
    --success: #16865c;
    --warning: #b96c05;
    --danger: #c33737;
    --shadow: 0 12px 35px rgb(24 35 55 / 8%);

    /* LAYOUT_RESPONSIVE_FLUID_V1 */
    --layout-fluid-gutter: clamp(16px, 2.5vw, 72px);
    --layout-sidebar-width: 78px;
}


* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--background);
    color: var(--text);
}

button,
input,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

[hidden] {
    display: none !important;
}

.login-view {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(
            circle at top left,
            #dce5ff,
            transparent 40%
        ),
        var(--background);
}

.login-card {
    width: min(100%, 420px);
    padding: 36px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.login-card h1 {
    margin-bottom: 6px;
}

.brand-mark {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: var(--primary);
    color: white;
    font-weight: 800;
}

.brand-mark.small {
    width: 42px;
    height: 42px;
    border-radius: 12px;
}

form {
    display: grid;
    gap: 18px;
}

label {
    display: grid;
    gap: 7px;
    font-size: 14px;
    font-weight: 600;
}

input,
textarea {
    width: 100%;
    padding: 12px 14px;
    color: var(--text);
    background: white;
    border: 1px solid var(--border);
    border-radius: 10px;
    outline: none;
}

input:focus,
textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgb(49 94 251 / 12%);
}

.primary-button,
.secondary-button {
    min-height: 42px;
    padding: 10px 17px;
    border-radius: 10px;
    font-weight: 700;
}

.primary-button {
    color: white;
    background: var(--primary);
    border: 0;
}

.primary-button:hover {
    background: var(--primary-dark);
}

.secondary-button {
    color: var(--text);
    background: white;
    border: 1px solid var(--border);
}

.topbar {
    min-height: 72px;
    padding: 12px max(20px, calc((100% - 1280px) / 2));
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.brand,
.user-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand small,
.user-area small {
    display: block;
    margin-top: 2px;
    color: var(--muted);
}

.user-area {
    text-align: right;
}

.page {
    box-sizing: border-box;
    width: calc(100% - var(--layout-fluid-gutter) - var(--layout-fluid-gutter));
    max-width: none;
    margin: 32px auto 80px;
}

.page-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.page-heading h1,
.panel h2 {
    margin: 0 0 6px;
}

.muted {
    color: var(--muted);
}

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

.stat-card,
.panel,
.course-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.stat-card {
    padding: 20px;
}

.stat-card strong {
    display: block;
    margin-top: 8px;
    font-size: 28px;
}

.content-grid {
    display: grid;
    grid-template-columns:
        minmax(300px, 0.8fr)
        minmax(400px, 1.2fr);
    gap: 20px;
}

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

.table-wrapper {
    overflow-x: auto;
}

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

th,
td {
    padding: 13px 10px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

th {
    color: var(--muted);
    font-size: 13px;
}

.badge {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    background: #eef1f6;
}

.badge.ready,
.badge.published,
.badge.active {
    color: var(--success);
    background: #e8f7f1;
}

.badge.processing,
.badge.queued {
    color: var(--warning);
    background: #fff4df;
}

.badge.failed,
.badge.cancelled {
    color: var(--danger);
    background: #fff0f0;
}

.link-button {
    padding: 0;
    color: var(--primary);
    background: transparent;
    border: 0;
    font-weight: 700;
}

#video-player {
    width: 100%;
    max-height: 420px;
    background: #10131a;
    border-radius: 12px;
}

.player-title {
    margin-bottom: 0;
    font-weight: 700;
}

.empty-state {
    padding: 30px;
    color: var(--muted);
    text-align: center;
    border: 1px dashed var(--border);
    border-radius: 12px;
}

.course-grid {
    display: grid;
    grid-template-columns:
        repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.course-card {
    padding: 20px;
}

.course-card h3 {
    margin-top: 0;
}

.module {
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.lesson {
    margin: 8px 0 0 18px;
    color: var(--muted);
}

.toast {
    position: fixed;
    z-index: 100;
    right: 22px;
    bottom: 22px;
    max-width: 380px;
    padding: 14px 18px;
    color: white;
    background: #182033;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

@media (max-width: 850px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .content-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 580px) {
    .page {
        width: calc(100% - 24px);
        max-width: none;
        margin-top: 20px;
    }

    .topbar {
        padding: 12px;
    }

    .brand small,
    .user-area div {
        display: none;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .login-card {
        padding: 26px;
    }
}


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

.section-heading h2 {
    margin-bottom: 5px;
}

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

.user-editor {
    margin-bottom: 22px;
    padding: 20px;
    background: #f8f9fc;
    border: 1px solid var(--border);
    border-radius: 14px;
}

select {
    width: 100%;
    min-height: 44px;
    padding: 10px 13px;
    color: var(--text);
    background: white;
    border: 1px solid var(--border);
    border-radius: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    grid-template-columns: auto 1fr;
    gap: 9px;
    margin-top: 17px;
}

.checkbox-label input {
    width: auto;
}

.editor-actions {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.users-toolbar {
    display: grid;
    grid-template-columns:
        minmax(250px, 1fr)
        190px
        190px
        auto;
    gap: 10px;
    margin-bottom: 18px;
}

.online-state {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-weight: 700;
}

.online-state::before {
    width: 9px;
    height: 9px;
    content: "";
    border-radius: 50%;
    background: #8a94a6;
}

.online-state.online {
    color: var(--success);
}

.online-state.online::before {
    background: var(--success);
    box-shadow:
        0 0 0 4px
        rgb(22 134 92 / 12%);
}

.online-state.offline {
    color: var(--muted);
}

.user-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.small-button {
    min-height: 34px;
    padding: 7px 10px;
    color: var(--text);
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
}

.small-button.danger {
    color: var(--danger);
}

.small-button.warning {
    color: var(--warning);
}

.small-button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.user-secondary {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
}

@media (max-width: 950px) {
    .users-toolbar {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 650px) {
    .section-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .form-grid,
    .users-toolbar {
        grid-template-columns: 1fr;
    }

    .user-actions {
        min-width: 220px;
    }
}

/*
 * Layout administrativo minimalista
 */

body.admin-layout-active {
    background: #07111f;
}

.admin-layout-active .topbar {
    display: none;
}

.admin-layout-active .page {
    width: calc(
        100vw
        - var(--layout-sidebar-width)
        - var(--layout-fluid-gutter)
        - var(--layout-fluid-gutter)
    );
    max-width: none;
    margin:
        0
        var(--layout-fluid-gutter)
        70px
        calc(var(--layout-sidebar-width) + var(--layout-fluid-gutter));
    padding: clamp(24px, 1.8vw, 42px) 0 0;
}

.admin-shell {
    min-height: 100vh;
}

.admin-main {
    width: 100%;
}

.admin-section {
    animation:
        admin-section-enter
        180ms
        ease;
}

.admin-section[hidden] {
    display: none !important;
}

@keyframes admin-section-enter {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/*
 * Barra lateral:
 * 78 px recolhida
 * 260 px expandida
 */

.admin-sidebar {
    position: fixed;
    z-index: 100;
    top: 0;
    bottom: 0;
    left: 0;
    width: 78px;
    overflow: hidden;
    color: #ffffff;
    background:
        linear-gradient(
            180deg,
            #102448 0%,
            #091831 100%
        );
    border-right:
        1px solid
        rgb(255 255 255 / 8%);
    box-shadow:
        10px 0 32px
        rgb(15 35 70 / 14%);
    transition:
        width 220ms ease;
}

.admin-sidebar:hover,
.admin-sidebar:focus-within {
    width: 260px;
}

.admin-sidebar-brand {
    width: 260px;
    min-height: 92px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 17px;
    border-bottom:
        1px solid
        rgb(255 255 255 / 8%);
}

.admin-sidebar-logo {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background:
        linear-gradient(
            145deg,
            #3970ff,
            #2549d8
        );
    border-radius: 13px;
    box-shadow:
        0 8px 22px
        rgb(49 94 251 / 30%);
    font-size: 15px;
    font-weight: 800;
}

.admin-sidebar-brand-text {
    min-width: 0;
    opacity: 0;
    transform: translateX(-7px);
    transition:
        opacity 150ms ease,
        transform 180ms ease;
}

.admin-sidebar:hover
.admin-sidebar-brand-text,
.admin-sidebar:focus-within
.admin-sidebar-brand-text {
    opacity: 1;
    transform: translateX(0);
}

.admin-sidebar-brand-text strong {
    display: block;
    overflow: hidden;
    font-size: 15px;
    white-space: nowrap;
}

.admin-sidebar-brand-text small {
    display: block;
    margin-top: 4px;
    color: #91a1bd;
    font-size: 12px;
    white-space: nowrap;
}

.admin-sidebar-navigation {
    width: 260px;
    display: grid;
    gap: 8px;
    padding: 20px 13px;
}

.admin-sidebar-bottom {
    position: absolute;
    right: 0;
    bottom: 18px;
    left: 0;
    width: 260px;
    display: grid;
    gap: 8px;
    padding:
        18px
        13px
        0;
    border-top:
        1px solid
        rgb(255 255 255 / 9%);
}

.admin-nav-button {
    width: 234px;
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 8px 13px;
    color: #b9c5d9;
    background: transparent;
    border: 0;
    border-radius: 12px;
    text-align: left;
    transition:
        color 150ms ease,
        background 150ms ease,
        transform 150ms ease;
}

.admin-nav-button:hover {
    color: #ffffff;
    background:
        rgb(255 255 255 / 8%);
}

.admin-nav-button.active {
    color: #ffffff;
    background:
        linear-gradient(
            135deg,
            #315efb,
            #274ed6
        );
    box-shadow:
        0 9px 20px
        rgb(24 68 195 / 25%);
}

.admin-nav-icon {
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    display: grid;
    place-items: center;
}

.admin-nav-icon svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.admin-nav-button:first-child
.admin-nav-icon svg path {
    fill: currentColor;
    stroke: none;
}

.admin-nav-label {
    overflow: hidden;
    opacity: 0;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    transform: translateX(-7px);
    transition:
        opacity 150ms ease,
        transform 180ms ease;
}

.admin-sidebar:hover
.admin-nav-label,
.admin-sidebar:focus-within
.admin-nav-label {
    opacity: 1;
    transform: translateX(0);
}

.admin-logout-button {
    color: #ff979d;
}

.admin-logout-button:hover {
    color: #ffffff;
    background:
        rgb(198 55 67 / 24%);
}


/*
 * Conteúdo
 */

.admin-section-heading {
    margin-bottom: 24px;
}

.admin-section-heading h1 {
    margin-bottom: 7px;
}

.admin-shell .panel,
.admin-shell .stat-card {
    border: 1px solid rgba(130, 158, 207, 0.18);
    box-shadow: 0 22px 58px rgba(0, 0, 0, 0.27);
}

.admin-shell .stats-grid {
    gap: 18px;
}

.admin-courses-workspace {
    display: grid;
    grid-template-columns:
        minmax(300px, 0.85fr)
        minmax(430px, 1.15fr);
    gap: 20px;
}

.admin-courses-workspace
.panel {
    min-width: 0;
}

[data-admin-panel="courses"]
#course-form {
    max-width: 760px;
}

[data-admin-panel="courses"]
#video-player {
    max-height: 560px;
}


/*
 * Perfil administrativo
 */

.admin-profile-panel {
    max-width: 900px;
}

.admin-profile-summary {
    display: flex;
    align-items: center;
    gap: 18px;
}

.admin-profile-avatar {
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background:
        linear-gradient(
            145deg,
            #315efb,
            #6546d9
        );
    border-radius: 20px;
    font-size: 23px;
    font-weight: 800;
}

.admin-profile-summary h2 {
    margin-bottom: 4px;
}

.admin-profile-summary p {
    margin:
        0
        0
        9px;
}

.admin-profile-divider {
    height: 1px;
    margin: 26px 0;
    background: var(--border);
}

.admin-profile-password {
    display: grid;
    gap: 20px;
}

.admin-profile-password
.primary-button {
    justify-self: start;
}


/*
 * Responsividade
 */

@media (max-width: 980px) {
    /*
     * O dashboard continua com duas colunas.
     * Somente o formulário interno se adapta.
     */

    .student-flashcard-create-layout {
        grid-template-columns:
            minmax(0, 1fr);
    }

    .student-flashcard-create-preview {
        display: none;
    }
}

@media (max-width: 650px) {
    .admin-sidebar {
        width: 66px;
    }

    .admin-sidebar:hover,
    .admin-sidebar:focus-within {
        width: 240px;
    }

    .admin-sidebar-brand,
    .admin-sidebar-navigation,
    .admin-sidebar-bottom {
        width: 240px;
    }

    .admin-nav-button {
        width: 214px;
    }

    .admin-sidebar-brand {
        padding-left: 11px;
    }

    .admin-layout-active .page {
        --layout-sidebar-width: 66px;
        --layout-fluid-gutter: 14px;
        width: calc(
            100vw
            - var(--layout-sidebar-width)
            - var(--layout-fluid-gutter)
            - var(--layout-fluid-gutter)
        );
        margin:
            0
            var(--layout-fluid-gutter)
            56px
            calc(var(--layout-sidebar-width) + var(--layout-fluid-gutter));
        padding: 20px 0 0;
    }
}

@media (hover: none) {
    .admin-sidebar:hover {
        width: 78px;
    }

    .admin-sidebar:hover
    .admin-nav-label,
    .admin-sidebar:hover
    .admin-sidebar-brand-text {
        opacity: 0;
    }
}


/*
 * Administração de vídeos
 */

.admin-video-upload {
    margin-bottom: 28px;
    padding: 20px;
    background: #f8faff;
    border: 1px solid var(--border);
    border-radius: 14px;
}

.admin-video-upload-heading {
    margin-bottom: 17px;
}

.admin-video-upload-heading h3,
.admin-video-list-heading h3 {
    margin: 0 0 5px;
}

.admin-video-upload-heading p {
    margin: 0;
}

.admin-video-upload-grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 15px;
}

.admin-video-upload-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 18px;
}

.admin-video-list-heading {
    margin-bottom: 12px;
}

.video-admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.admin-video-upload
input[type="file"] {
    min-height: 44px;
    padding: 8px;
    background: white;
}

.admin-video-upload
input[type="file"]::file-selector-button {
    margin-right: 12px;
    padding: 8px 12px;
    color: var(--text);
    background: #eef2ff;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
}

@media (max-width: 780px) {
    .admin-video-upload-grid {
        grid-template-columns: 1fr;
    }

    .admin-video-upload-footer {
        align-items: stretch;
        flex-direction: column;
    }
}


/*
 * Gestão administrativa de cursos
 * e seleção de vídeos prontos
 */

.course-actions-heading,
.course-actions-cell {
    width: 110px;
    text-align: right;
}

.course-actions-cell
.small-button {
    min-width: 76px;
}

.ready-video-selector {
    display: grid;
    grid-template-columns:
        minmax(240px, 1fr)
        auto;
    align-items: end;
    gap: 12px;
    margin:
        12px
        0
        18px;
    padding: 15px;
    background: #f8faff;
    border: 1px solid var(--border);
    border-radius: 12px;
}

.ready-video-selector
.primary-button {
    min-width: 155px;
}

@media (max-width: 680px) {
    /*
     * Não transforma o dashboard em uma coluna.
     * A área pode ser deslocada horizontalmente.
     */

    .student-flashcard-modal {
        padding: 8px;
    }

    .student-flashcard-workspace {
        max-height:
            calc(100vh - 16px);
    }

    .student-flashcard-workspace-header,
    .student-flashcard-workspace-content {
        padding-right: 17px;
        padding-left: 17px;
    }

    .student-flashcard-form-grid,
    .student-flashcard-resource-buttons,
    .student-flashcard-difficulty-grid {
        grid-template-columns:
            minmax(0, 1fr);
    }

    .student-flashcard-section-heading {
        flex-direction: column;
    }

    .student-flashcard-section-heading p {
        max-width: none;
    }
}

/*
 * Criação rápida de módulo e aula
 */

.admin-video-field-action {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        auto;
    align-items: end;
    gap: 10px;
}

.admin-video-field-action
label {
    min-width: 0;
}

.admin-quick-create-button {
    min-width: 125px;
    white-space: nowrap;
}

@media (max-width: 780px) {
    .admin-video-field-action {
        grid-template-columns: 1fr;
    }

    .admin-quick-create-button {
        width: 100%;
    }
}

/* STUDENT LAYOUT V2 START */

#student-view
#student-courses[hidden],
#student-view
#student-content[hidden] {
    display: none !important;
}

#student-view
#student-courses:not([hidden]) {
    display: block !important;
    grid-template-columns: none !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 auto !important;
}

#student-view
#student-content:not([hidden]) {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 auto !important;
}

#student-view
.student-modern-course-grid {
    display: grid !important;
    grid-template-columns:
        repeat(
            auto-fill,
            minmax(360px, 430px)
        ) !important;
    grid-column: 1 / -1 !important;
    justify-content: start !important;
    align-items: stretch !important;
    gap: 26px !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin-top: 30px !important;
}

#student-view
.student-modern-course-card {
    display: flex;
    flex-direction: column;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #dae2ef;
    border-radius: 20px;
    box-shadow:
        0 18px 45px
        rgba(20, 42, 90, 0.1);
    transition:
        transform 180ms ease,
        box-shadow 180ms ease;
}

#student-view
.student-modern-course-card:hover {
    transform: translateY(-5px);
    box-shadow:
        0 25px 60px
        rgba(20, 42, 90, 0.16);
}

#student-view
.student-modern-course-cover {
    position: relative;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    aspect-ratio: 16 / 9 !important;
    overflow: hidden;
    background:
        linear-gradient(
            135deg,
            #07162f,
            #315cff
        );
}

#student-view
.student-modern-course-cover img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
}

.student-modern-cover-placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(
            135deg,
            #07162f,
            #315cff
        );
}

.student-modern-play-symbol {
    display: grid;
    place-items: center;
    width: 70px;
    height: 70px;
    padding-left: 4px;
    color: #315cff;
    font-size: 26px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow:
        0 14px 35px
        rgba(0, 0, 0, 0.3);
}

.student-modern-cover-overlay {
    position: absolute;
    inset: auto 0 0;
    padding: 40px 22px 17px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.1em;
    background:
        linear-gradient(
            transparent,
            rgba(2, 9, 25, 0.92)
        );
}

#student-view
.student-modern-course-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    width: auto !important;
    min-width: 0 !important;
    padding: 24px;
}

.student-modern-course-label {
    color: #315cff;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.13em;
}

#student-view
.student-modern-course-body h2 {
    margin: 9px 0 12px;
    overflow-wrap: normal !important;
    word-break: normal !important;
    color: #071a3e;
    font-size: 22px;
    line-height: 1.28;
    hyphens: none !important;
}

#student-view
.student-modern-course-body p {
    display: -webkit-box;
    min-height: 67px;
    margin: 0;
    overflow: hidden;
    color: #64718a;
    font-size: 14px;
    line-height: 1.58;
    overflow-wrap: break-word;
    word-break: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.student-modern-course-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin: 20px 0;
}

.student-modern-course-meta span {
    padding: 7px 11px;
    color: #52617d;
    font-size: 12px;
    font-weight: 750;
    background: #eef3fb;
    border-radius: 999px;
}

.student-modern-open-course {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    min-height: 47px;
    margin-top: auto;
}

/* NEXUS_STUDENT_LOADING_DARK_V6_R7_R7_START */
.student-modern-loading-grid {
    display: grid;
    grid-template-columns:
        repeat(
            auto-fill,
            minmax(360px, 430px)
        );
    align-items: stretch;
    gap: 26px;
    width: 100%;
    min-width: 0;
    margin-top: 30px;
}

/*
 * Placeholder canônico de Videoaulas.
 * Mantém a mesma caixa reservada do card final, porém sem qualquer cor clara,
 * evitando flash branco e salto de layout durante refresh/carregamento.
 */
.student-modern-skeleton {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    max-width: 430px;
    min-width: 0;
    min-height: 430px;
    overflow: hidden;
    border: 1px solid rgba(111, 146, 205, 0.18);
    border-radius: 20px;
    background:
        linear-gradient(
            180deg,
            #132742 0%,
            #10223b 56%,
            #0d1d33 56%,
            #0b192c 100%
        );
    box-shadow:
        0 18px 45px
        rgba(0, 0, 0, 0.14);
}

.student-modern-skeleton::before {
    content: "";
    position: absolute;
    top: 56%;
    right: 24px;
    bottom: 24px;
    left: 24px;
    border-radius: 10px;
    background:
        linear-gradient(
            #1b3556 0 0
        ) 0 18px / 28% 10px no-repeat,
        linear-gradient(
            #203d61 0 0
        ) 0 48px / 72% 15px no-repeat,
        linear-gradient(
            #193351 0 0
        ) 0 76px / 88% 9px no-repeat,
        linear-gradient(
            #193351 0 0
        ) 0 96px / 62% 9px no-repeat,
        linear-gradient(
            #17304e 0 0
        ) 0 calc(100% - 4px) / 100% 42px no-repeat;
    opacity: 0.78;
}

.student-modern-skeleton::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-110%);
    background:
        linear-gradient(
            100deg,
            transparent 22%,
            rgba(91, 132, 205, 0.05) 40%,
            rgba(111, 93, 226, 0.10) 50%,
            rgba(91, 132, 205, 0.05) 60%,
            transparent 78%
        );
    animation:
        student-dark-shimmer-r7-r7
        1.45s ease-in-out infinite;
    pointer-events: none;
}

@keyframes student-dark-shimmer-r7-r7 {
    to {
        transform: translateX(110%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .student-modern-skeleton::after {
        animation: none;
        transform: none;
        opacity: 0.35;
    }
}
/* NEXUS_STUDENT_LOADING_DARK_V6_R7_R7_END */

.student-modern-empty {
    max-width: 560px;
    margin: 55px auto;
    padding: 50px 30px;
    text-align: center;
    background: #ffffff;
    border: 1px solid #dae2ef;
    border-radius: 22px;
}

.student-modern-empty-icon {
    display: grid;
    place-items: center;
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    padding-left: 4px;
    color: #ffffff;
    font-size: 27px;
    background: #315cff;
    border-radius: 50%;
}


/* LAYOUT VIDEOAULA PREMIUM V1 START */

html.student-course-exclusive-mode
#student-view > .page-heading,
body.student-course-exclusive-mode
#student-view > .page-heading {
    display: none !important;
}

html.student-course-exclusive-mode
#student-content,
body.student-course-exclusive-mode
#student-content {
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.student-modern-classroom {
    width: 100%;
    max-width: none;
    min-width: 0;
    margin: 0 auto;
    padding: clamp(18px, 2.2vw, 30px);
    color: #eef3ff;
    background:
        radial-gradient(
            circle at 12% 0%,
            rgba(48, 91, 164, 0.20),
            transparent 34%
        ),
        linear-gradient(
            145deg,
            #101a2f 0%,
            #111a2d 52%,
            #0b1426 100%
        );
    border: 1px solid rgba(130, 156, 205, 0.15);
    border-radius: 26px;
    box-shadow:
        0 30px 70px rgba(10, 20, 42, 0.24);
}

.student-modern-classroom-header {
    display: grid;
    gap: 10px;
    margin-bottom: 20px;
}

.student-premium-breadcrumb {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 9px;
    color: #8ba9d7;
    font-size: 12px;
    font-weight: 750;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.student-premium-breadcrumb > span,
.student-premium-breadcrumb > strong,
.student-premium-breadcrumb > button {
    min-width: 0;
}

.student-premium-breadcrumb > span:not([aria-hidden]),
.student-premium-breadcrumb > strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.student-premium-breadcrumb > span[aria-hidden] {
    flex: 0 0 auto;
    color: #5f6e8d;
    font-size: 19px;
    font-weight: 400;
    line-height: 1;
}

.student-premium-breadcrumb > strong {
    color: #ffffff;
}

.student-premium-breadcrumb-home {
    display: inline;
    min-height: 0;
    padding: 0;
    color: #82a9e4;
    font: inherit;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    cursor: pointer;
    text-transform: inherit;
}

.student-premium-breadcrumb-home:hover {
    color: #b9d3ff;
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    transform: none;
}

.student-premium-breadcrumb-home:focus-visible {
    outline: 2px solid #80a8ff;
    outline-offset: 4px;
}

.student-premium-course-context {
    display: flex;
    align-items: baseline;
    min-width: 0;
    gap: 7px;
    margin: 0;
    color: #8f9bb2;
    font-size: 14px;
    line-height: 1.45;
}

.student-premium-course-context strong {
    flex: 0 0 auto;
    color: #c7d6f1;
}

.student-premium-course-context span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.student-modern-back {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: fit-content;
    padding: 7px 11px 7px 8px;
    color: #89b4ee;
    font-size: 13px;
    font-weight: 750;
    line-height: 1;
    background: rgba(27, 43, 72, 0.64);
    border: 1px solid rgba(117, 151, 207, 0.18);
    border-radius: 10px;
    box-shadow: none;
    cursor: pointer;
    transition:
        color 150ms ease,
        background 150ms ease,
        border-color 150ms ease;
}

.student-modern-back:hover {
    color: #ffffff;
    background: rgba(43, 65, 105, 0.78);
    border-color: rgba(132, 171, 235, 0.34);
    box-shadow: none;
    transform: none;
}

.student-modern-back:focus-visible {
    outline: 3px solid rgba(90, 140, 236, 0.32);
    outline-offset: 2px;
}

.student-modern-back-icon {
    width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    color: #8fbaff;
    background: transparent;
    border-radius: 0;
    font-size: 17px;
}

#refresh-student.is-updating {
    cursor: progress;
    opacity: 0.72;
}

.student-modern-classroom-grid {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        clamp(320px, 26vw, 520px);
    align-items: start;
    gap: clamp(20px, 2vw, 28px);
    min-width: 0;
}

.student-modern-player-column {
    min-width: 0;
}

.student-modern-player-shell {
    position: relative;
    isolation: isolate;
    display: grid;
    place-items: center;
    width: 100%;
    min-width: 0;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background:
        linear-gradient(
            145deg,
            #152b3e,
            #07101d 78%
        );
    border: 1px solid rgba(135, 164, 215, 0.16);
    border-radius: 14px 14px 0 0;
    box-shadow:
        0 22px 55px rgba(0, 0, 0, 0.30);
}

.student-modern-player-shell video {
    position: absolute;
    z-index: 1;
    inset: 0;
    display: block;
    width: 100% !important;
    height: 100% !important;
    background: #000000;
    object-fit: contain;
}

.student-modern-player-loader {
    position: absolute;
    z-index: 4;
    inset: 0;
    display: none;
    place-items: center;
    background: rgba(0, 0, 0, 0.18);
    pointer-events: none;
}

.student-modern-player-shell.is-loading
.student-modern-player-loader {
    display: grid;
}

.student-modern-player-loader span {
    width: 42px;
    height: 42px;
    border: 4px solid rgba(255, 255, 255, 0.30);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation:
        student-player-spin
        800ms linear infinite;
}

@keyframes student-player-spin {
    to {
        transform: rotate(360deg);
    }
}

#student-modern-video:fullscreen,
#student-modern-video:-webkit-full-screen {
    width: 100vw !important;
    height: 100vh !important;
    max-width: none !important;
    max-height: none !important;
    background: #000000;
    object-fit: contain;
}

.student-modern-no-video {
    padding: 35px;
    color: #ffffff;
    text-align: center;
}

.student-modern-no-video span {
    display: block;
    margin-bottom: 14px;
    font-size: 44px;
}

.student-modern-now-playing {
    padding: 16px 20px 17px;
    background:
        linear-gradient(
            135deg,
            rgba(43, 55, 87, 0.97),
            rgba(31, 40, 67, 0.97)
        );
    border: 1px solid rgba(135, 164, 215, 0.14);
    border-top: 0;
    border-radius: 0 0 14px 14px;
}

.student-modern-now-playing > span {
    color: #73a6ff;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.14em;
}

.student-modern-now-playing h2 {
    display: -webkit-box;
    overflow: hidden;
    margin: 5px 0 3px;
    color: #f7f9ff;
    font-size: clamp(17px, 1.7vw, 21px);
    line-height: 1.3;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.student-modern-now-playing p {
    margin: 0;
    color: #a8b5cc;
    font-size: 12px;
}

.student-modern-about-course {
    display: grid;
    grid-template-columns: minmax(150px, 0.36fr) minmax(0, 1fr);
    align-items: start;
    gap: 22px;
    margin-top: 16px;
    padding: 18px 20px;
    background: rgba(31, 42, 69, 0.64);
    border: 1px solid rgba(135, 164, 215, 0.13);
    border-radius: 14px;
}

.student-modern-about-course div > span {
    color: #718fc4;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.13em;
}

.student-modern-about-course h1 {
    margin: 5px 0 0;
    color: #f1f5ff;
    font-size: 17px;
    line-height: 1.35;
}

.student-modern-about-course p {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: #a5b2c9;
    font-size: 13px;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

.student-modern-sidebar {
    display: grid;
    min-width: 0;
    gap: 18px;
}

.student-modern-instructor-card,
.student-modern-lessons-card {
    min-width: 0;
    background:
        linear-gradient(
            145deg,
            rgba(39, 48, 77, 0.98),
            rgba(31, 40, 66, 0.98)
        );
    border: 1px solid rgba(135, 164, 215, 0.14);
    border-radius: 14px;
    box-shadow:
        0 18px 42px rgba(3, 10, 24, 0.18);
}

.student-modern-instructor-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 16px;
}

.student-modern-instructor-avatar {
    position: relative;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    overflow: hidden;
    color: #dbe8ff;
    font-size: 15px;
    font-weight: 900;
    background: #3a4f78;
    border: 2px solid rgba(255, 255, 255, 0.78);
    border-radius: 50%;
}

.student-modern-instructor-avatar img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.student-modern-instructor-copy {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.student-modern-instructor-copy span {
    color: #788bac;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.student-modern-instructor-copy strong {
    overflow: hidden;
    color: #f8faff;
    font-size: 15px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.student-modern-instructor-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 8px;
    color: #d9e4ff;
    font-size: 10px;
    font-weight: 750;
    white-space: nowrap;
    background: rgba(88, 111, 169, 0.46);
    border: 1px solid rgba(141, 168, 226, 0.18);
    border-radius: 999px;
}

.student-modern-lessons-card {
    overflow: hidden;
}

.student-modern-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 17px 18px;
    border-bottom: 1px solid rgba(135, 164, 215, 0.13);
}

.student-modern-sidebar-header span {
    color: #7589ad;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.13em;
}

.student-modern-sidebar-header h2 {
    margin: 4px 0 0;
    color: #ffffff;
    font-size: 19px;
}

.student-modern-sidebar-header > strong {
    display: grid;
    place-items: center;
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    color: #b9d3ff;
    font-size: 13px;
    background: rgba(68, 91, 140, 0.50);
    border-radius: 10px;
}

.student-modern-modules-scroll {
    max-height: min(53vh, 560px);
    overflow-y: auto;
    scrollbar-color: #53688f transparent;
    scrollbar-width: thin;
}

.student-modern-module + .student-modern-module {
    border-top: 1px solid rgba(135, 164, 215, 0.12);
}

.student-modern-module-title {
    display: grid;
    gap: 3px;
    padding: 13px 17px 9px;
}

.student-modern-module-title span {
    color: #7183a3;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.student-modern-module-title strong {
    overflow: hidden;
    color: #c5d0e3;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.student-modern-lessons {
    display: grid;
}

.student-modern-lesson {
    display: grid;
    grid-template-columns:
        auto
        minmax(0, 1fr)
        auto;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-width: 0;
    padding: 12px 17px;
    color: #dbe3f2;
    text-align: left;
    background: transparent;
    border: 0;
    border-top: 1px solid rgba(135, 164, 215, 0.08);
    cursor: pointer;
    transition:
        background 150ms ease,
        color 150ms ease;
}

.student-modern-lesson:hover {
    background: rgba(74, 99, 151, 0.22);
}

.student-modern-lesson.selected {
    color: #ffffff;
    background:
        linear-gradient(
            90deg,
            rgba(68, 86, 132, 0.58),
            rgba(55, 71, 112, 0.36)
        );
}

.student-modern-lesson:disabled {
    cursor: not-allowed;
    opacity: 0.52;
}

.student-modern-lesson-number {
    display: grid;
    place-items: center;
    width: 27px;
    height: 27px;
    color: #8fa6c9;
    font-size: 10px;
    font-weight: 900;
    background: rgba(70, 88, 129, 0.48);
    border: 1px solid rgba(139, 168, 221, 0.12);
    border-radius: 50%;
}

.student-modern-lesson.selected
.student-modern-lesson-number {
    color: #092a23;
    background: #50d29a;
    border-color: transparent;
}

.student-modern-lesson-text {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 3px;
}

.student-modern-lesson-text strong {
    display: -webkit-box;
    overflow: hidden;
    color: inherit;
    font-size: 12px;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.student-modern-lesson-text small {
    color: #8290a9;
    font-size: 10px;
}

.student-modern-lesson-play {
    display: grid;
    place-items: center;
    width: 27px;
    height: 27px;
    flex: 0 0 27px;
    color: #8caef1;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    background: rgba(71, 94, 145, 0.46);
    border-radius: 8px;
}

.student-modern-lesson.is-playing
.student-modern-lesson-play {
    color: #0f2c26;
    background: #50d29a;
}

.student-modern-sidebar-empty {
    padding: 30px 22px;
    color: #91a0b8;
    text-align: center;
}

@media (max-width: 1080px) {
    .student-modern-classroom-grid {
        grid-template-columns:
            minmax(0, 1fr)
            clamp(285px, 31vw, 350px);
    }

    .student-modern-instructor-card {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .student-modern-instructor-badge {
        grid-column: 1 / -1;
        justify-self: start;
    }
}

@media (max-width: 920px) {
    .student-modern-classroom-grid {
        grid-template-columns: 1fr;
    }

    .student-modern-sidebar {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }

    .student-course-progress-summary {
        grid-column: 1 / -1;
    }

    .student-modern-modules-scroll {
        max-height: 480px;
    }
}

@media (max-width: 720px) {
    #student-view
    .student-modern-course-grid,
    .student-modern-loading-grid {
        grid-template-columns:
            minmax(0, 1fr) !important;
    }

    #student-view
    .student-modern-course-card {
        max-width: none !important;
    }

    .student-modern-classroom {
        padding: 14px;
        border-radius: 18px;
    }

    .student-premium-breadcrumb {
        gap: 6px;
        font-size: 10px;
    }

    .student-premium-breadcrumb-module,
    #student-premium-breadcrumb-module {
        display: none;
    }

    .student-premium-breadcrumb > span[aria-hidden]:nth-of-type(2) {
        display: none;
    }

    .student-premium-course-context {
        align-items: flex-start;
        flex-direction: column;
        gap: 2px;
        font-size: 12px;
    }

    .student-premium-course-context span[aria-hidden] {
        display: none;
    }

    .student-premium-course-context span:last-child {
        display: -webkit-box;
        white-space: normal;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .student-modern-player-shell {
        border-radius: 11px 11px 0 0;
    }

    .student-modern-now-playing {
        padding: 14px 15px;
        border-radius: 0 0 11px 11px;
    }

    .student-modern-about-course {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 15px;
    }

    .student-modern-sidebar {
        grid-template-columns: 1fr;
    }

    .student-course-progress-summary {
        grid-column: auto;
    }
}

@media (max-width: 460px) {
    .student-modern-instructor-card {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .student-modern-instructor-badge {
        grid-column: 1 / -1;
    }

    .student-modern-lesson.student-progress-lesson {
        grid-template-columns:
            auto
            minmax(0, 1fr)
            auto;
    }

    .student-modern-lesson.student-progress-lesson
    .student-progress-badge {
        grid-column: 2 / -1;
        justify-self: start;
    }
}

/* LAYOUT VIDEOAULA PREMIUM V1 END */

/* STUDENT LAYOUT V2 END */


/* ADMIN ENROLLMENT UI START */

body.admin-enrollment-open {
    overflow: hidden;
}

.admin-enrollment-modal {
    position: fixed;
    z-index: 20000;
    inset: 0;
    display: grid;
    padding: 24px;
    overflow: auto;
    place-items: center;
    background:
        rgba(5, 15, 38, 0.58);
    backdrop-filter: blur(5px);
}

.admin-enrollment-modal[hidden] {
    display: none !important;
}

.admin-enrollment-dialog {
    width: min(760px, 100%);
    max-height: min(760px, calc(100vh - 48px));
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #dce4f1;
    border-radius: 22px;
    box-shadow:
        0 30px 80px
        rgba(6, 20, 50, 0.3);
}

.admin-enrollment-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 25px 27px 21px;
    border-bottom: 1px solid #e5eaf3;
}

.admin-enrollment-eyebrow {
    color: #315cff;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.13em;
}

.admin-enrollment-header h2 {
    margin: 5px 0 4px;
    color: #071a3e;
    font-size: 24px;
}

.admin-enrollment-header p {
    margin: 0;
    color: #6c7890;
    font-size: 14px;
}

.admin-enrollment-close {
    flex: 0 0 auto;
}

.admin-enrollment-header
.admin-enrollment-close {
    display: grid;
    width: 38px;
    height: 38px;
    padding: 0;
    color: #5c6880;
    font-size: 26px;
    line-height: 1;
    background: #f2f5fa;
    border: 0;
    border-radius: 11px;
    place-items: center;
    cursor: pointer;
}

.admin-enrollment-content {
    max-height: 520px;
    padding: 22px 27px;
    overflow: auto;
}

.admin-enrollment-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 15px;
    color: #66728a;
    font-size: 13px;
}

.admin-enrollment-summary strong {
    color: #18243d;
}

.admin-enrollment-list {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.admin-enrollment-course {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px;
    background: #f8faff;
    border: 1px solid #dfe6f2;
    border-radius: 15px;
}

.admin-enrollment-course-info {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 13px;
}

.admin-enrollment-course-icon {
    display: grid;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    padding-left: 3px;
    color: #ffffff;
    background: #315cff;
    border-radius: 12px;
    place-items: center;
}

.admin-enrollment-course h3 {
    margin: 0 0 7px;
    color: #14213b;
    font-size: 15px;
    line-height: 1.35;
}

.admin-enrollment-status {
    display: inline-flex;
    padding: 5px 9px;
    font-size: 11px;
    font-weight: 800;
    border-radius: 999px;
}

.admin-enrollment-status.active {
    color: #087956;
    background: #dcf6ec;
}

.admin-enrollment-status.inactive {
    color: #9a5b05;
    background: #fff0cf;
}

.admin-enrollment-status.not-enrolled {
    color: #647087;
    background: #e9eef6;
}

.admin-enrollment-grant {
    flex: 0 0 auto;
    color: #ffffff;
    background: #315cff;
    border-color: #315cff;
}

.admin-enrollment-grant.enrolled,
.admin-enrollment-grant:disabled {
    color: #087956;
    background: #dcf6ec;
    border-color: #c8ecdf;
    cursor: default;
    opacity: 1;
}

.admin-enrollment-loading {
    display: grid;
    min-height: 250px;
    color: #68758d;
    place-items: center;
    align-content: center;
    gap: 14px;
}

.admin-enrollment-loading span {
    width: 38px;
    height: 38px;
    border: 4px solid
        rgba(49, 92, 255, 0.18);
    border-top-color: #315cff;
    border-radius: 50%;
    animation:
        admin-enrollment-spin
        700ms linear infinite;
}

@keyframes admin-enrollment-spin {
    to {
        transform: rotate(360deg);
    }
}

.admin-enrollment-empty {
    padding: 45px 25px;
    color: #68758d;
    text-align: center;
    background: #f8faff;
    border: 1px dashed #ccd6e7;
    border-radius: 15px;
}

.admin-enrollment-empty strong {
    display: block;
    margin-bottom: 8px;
    color: #14213b;
    font-size: 17px;
}

.admin-enrollment-empty p {
    margin: 0;
}

.admin-enrollment-empty.error {
    color: #9d3030;
    background: #fff5f5;
    border-color: #efcccc;
}

.admin-enrollment-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 17px 27px;
    background: #f8faff;
    border-top: 1px solid #e5eaf3;
}

.admin-enrollment-footer p {
    margin: 0;
    color: #6c7890;
    font-size: 12px;
}

.manage-user-courses {
    color: #315cff;
    border-color: #bfcdf7;
    background: #eef3ff;
}

@media (max-width: 680px) {
    .admin-enrollment-modal {
        padding: 10px;
    }

    .admin-enrollment-dialog {
        max-height: calc(100vh - 20px);
    }

    .admin-enrollment-header,
    .admin-enrollment-content,
    .admin-enrollment-footer {
        padding-right: 18px;
        padding-left: 18px;
    }

    .admin-enrollment-course {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-enrollment-grant {
        width: 100%;
    }

    .admin-enrollment-summary,
    .admin-enrollment-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* ADMIN ENROLLMENT UI END */

/* VIDEO PROGRESS FRONTEND START */


.student-progress-lesson {
    position: relative;
    grid-template-columns:
        auto
        minmax(0, 1fr)
        auto
        auto;
}

.student-progress-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex: 0 0 auto;
    padding: 6px 8px;
    font-size: 9px;
    font-weight: 850;
    line-height: 1;
    white-space: nowrap;
    border: 1px solid transparent;
    border-radius: 999px;
}

.student-progress-badge::before {
    display: grid;
    place-items: center;
    width: 14px;
    height: 14px;
    font-size: 9px;
    font-weight: 900;
    border-radius: 50%;
}

.student-progress-badge.completed {
    color: #69dda9;
    background: rgba(40, 143, 101, 0.20);
    border-color: rgba(86, 211, 159, 0.14);
}

.student-progress-badge.completed::before {
    content: "✓";
    color: #08251c;
    background: #5bd8a4;
}

.student-progress-badge.in-progress {
    color: #ffd76b;
    background: rgba(168, 125, 24, 0.22);
    border-color: rgba(240, 196, 75, 0.16);
}

.student-progress-badge.in-progress::before {
    content: "◷";
    color: #f6ca4d;
    background: transparent;
}

.student-progress-badge.not-started {
    color: #aab4c8;
    background: rgba(93, 107, 135, 0.24);
    border-color: rgba(154, 170, 201, 0.10);
}

.student-progress-badge.not-started::before {
    content: "";
    border: 1px solid #7d8ba5;
}

.student-course-progress-summary {
    display: grid;
    gap: 15px;
    margin: 0;
    padding: 18px;
    background:
        linear-gradient(
            145deg,
            rgba(39, 48, 77, 0.98),
            rgba(31, 40, 66, 0.98)
        );
    border: 1px solid rgba(135, 164, 215, 0.14);
    border-radius: 14px;
    box-shadow:
        0 18px 42px rgba(3, 10, 24, 0.18);
}

.student-premium-progress-main {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 16px;
}

.student-premium-progress-ring {
    position: relative;
    display: grid;
    place-items: center;
    width: 112px;
    height: 112px;
    flex: 0 0 112px;
    background:
        conic-gradient(
            from 8deg,
            #55d59e 0deg,
            #4f80ff var(--student-progress-angle),
            #35415f var(--student-progress-angle),
            #35415f 360deg
        );
    border-radius: 50%;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.04),
        0 12px 28px rgba(7, 13, 29, 0.20);
}

.student-premium-progress-ring::before {
    position: absolute;
    content: "";
    width: 82px;
    height: 82px;
    background: #242d49;
    border: 1px solid rgba(143, 166, 216, 0.12);
    border-radius: 50%;
}

.student-premium-progress-ring > div {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
}

.student-premium-progress-ring strong {
    color: #ffffff;
    font-size: 27px;
    line-height: 1;
}

.student-premium-progress-ring span {
    margin-top: 4px;
    color: #94a4bf;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.student-premium-progress-copy {
    display: grid;
    min-width: 0;
    gap: 4px;
}

.student-premium-progress-copy > span {
    color: #7e92b7;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.13em;
}

.student-premium-progress-copy > strong {
    color: #f5f8ff;
    font-size: 16px;
}

.student-premium-progress-copy > small {
    color: #9aa7bd;
    font-size: 11px;
}

.student-premium-progress-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.student-premium-progress-stats > span {
    display: grid;
    gap: 2px;
    min-width: 0;
    padding: 9px 8px;
    color: #8f9db5;
    font-size: 8px;
    line-height: 1.25;
    background: rgba(20, 29, 50, 0.42);
    border: 1px solid rgba(136, 162, 211, 0.08);
    border-radius: 9px;
}

.student-premium-progress-stats strong {
    color: #eef3ff;
    font-size: 15px;
}

.student-premium-progress-stats .completed strong {
    color: #5bd8a4;
}

.student-premium-progress-stats .in-progress strong {
    color: #f2cb5c;
}

.student-premium-progress-stats .not-started strong {
    color: #9eabc1;
}

.student-current-video-progress {
    margin: 11px 0 0;
    padding: 10px 11px;
    background: rgba(15, 24, 44, 0.46);
    border: 1px solid rgba(135, 164, 215, 0.10);
    border-radius: 9px;
}

.student-current-video-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 9px;
    margin-bottom: 8px;
    color: #9facbf;
    font-size: 10px;
}

.student-current-video-heading strong {
    overflow: hidden;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.student-current-video-bar,
.admin-progress-lesson-bar {
    height: 6px;
    overflow: hidden;
    background: #38435f;
    border-radius: 999px;
}

.student-current-video-bar span,
.admin-progress-lesson-bar span {
    display: block;
    height: 100%;
    background:
        linear-gradient(
            90deg,
            #4f80ff,
            #55d59e
        );
    border-radius: inherit;
    transition: width 250ms ease;
}

@media (max-width: 390px) {
    .student-premium-progress-main {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .student-premium-progress-stats {
        grid-template-columns: 1fr;
    }
}

body.admin-progress-open {
    overflow: hidden;
}

.admin-progress-modal {
    position: fixed;
    z-index: 22000;
    inset: 0;
    display: grid;
    padding: 24px;
    overflow: auto;
    place-items: center;
    background: rgba(5, 14, 34, 0.64);
    backdrop-filter: blur(5px);
}

.admin-progress-modal[hidden] {
    display: none !important;
}

.admin-progress-dialog {
    width: min(920px, 100%);
    max-height: calc(100vh - 48px);
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #dce4f1;
    border-radius: 22px;
    box-shadow:
        0 30px 90px
        rgba(4, 15, 40, 0.35);
}

.admin-progress-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 24px 27px;
    border-bottom: 1px solid #e4e9f2;
}

.admin-progress-header span {
    color: #315cff;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.admin-progress-header h2 {
    margin: 5px 0;
    color: #0c1d3d;
    font-size: 25px;
}

.admin-progress-header p {
    margin: 0;
    color: #6b7890;
    font-size: 13px;
}

.admin-progress-close {
    display: grid;
    flex: 0 0 auto;
    width: 39px;
    height: 39px;
    padding: 0;
    color: #5e6a80;
    font-size: 26px;
    background: #f0f3f8;
    border: 0;
    border-radius: 11px;
    place-items: center;
    cursor: pointer;
}

.admin-progress-content {
    max-height: calc(100vh - 175px);
    padding: 24px 27px 30px;
    overflow: auto;
}

.admin-progress-summary {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 25px;
}

.admin-progress-summary > div {
    padding: 16px;
    background: #f7f9ff;
    border: 1px solid #dfe6f3;
    border-radius: 14px;
}

.admin-progress-summary strong {
    display: block;
    margin-bottom: 4px;
    color: #17347d;
    font-size: 24px;
}

.admin-progress-summary span {
    color: #69758b;
    font-size: 12px;
}

.admin-progress-course {
    margin-top: 23px;
}

.admin-progress-course > h3 {
    margin: 0 0 12px;
    color: #102143;
    font-size: 18px;
}

.admin-progress-lesson {
    margin-bottom: 11px;
    padding: 16px;
    background: #ffffff;
    border: 1px solid #dee5f0;
    border-radius: 14px;
}

.admin-progress-lesson-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 13px;
}

.admin-progress-lesson-heading span:first-child {
    color: #68758d;
    font-size: 11px;
}

.admin-progress-lesson h4 {
    margin: 4px 0 0;
    color: #16233e;
    font-size: 15px;
}

.admin-progress-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-top: 11px;
    color: #6a768c;
    font-size: 11px;
}

.admin-progress-empty,
.admin-progress-loading {
    padding: 55px 20px;
    color: #68758d;
    text-align: center;
    background: #f8faff;
    border: 1px dashed #ccd6e7;
    border-radius: 15px;
}

.admin-progress-empty.error {
    color: #a03434;
    background: #fff5f5;
    border-color: #efcaca;
}

.view-user-progress {
    color: #315cff;
    background: #edf2ff;
    border-color: #bfcef9;
}

@media (max-width: 720px) {
    .admin-progress-modal {
        padding: 10px;
    }

    .admin-progress-summary {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .admin-progress-header,
    .admin-progress-content {
        padding-right: 17px;
        padding-left: 17px;
    }

    .admin-progress-lesson-heading {
        flex-direction: column;
    }

    .student-course-progress-counts {
        flex-direction: column;
    }
}

/* VIDEO PROGRESS FRONTEND END */

/* STUDENT FLASHCARD LAYOUT START */


#student-view #student-courses {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    padding-bottom: 22px;
}

.student-dashboard-split {
    display: grid !important;

    grid-template-columns:
        minmax(360px, 460px)
        minmax(290px, 350px)
        !important;

    align-items: start !important;
    justify-content: start !important;

    column-gap:
        clamp(64px, 7vw, 120px)
        !important;

    row-gap: 0 !important;

    width: max-content !important;
    min-width: 780px;
    max-width: none !important;

    margin-top: 28px;
    padding-right: 24px;
    padding-bottom: 20px;
}

.student-dashboard-split
.student-modern-course-grid {
    grid-template-columns:
        minmax(0, 1fr);
    width: 100%;
    max-width: 460px;
    margin-top: 0;
}

.student-dashboard-split
.student-modern-course-card {
    width: 100%;
    max-width: 460px;
}

.student-flashcard-widget {
    position: relative;
    width: 100%;
    max-width: 390px;
    min-width: 0;
    padding: 20px;
    overflow: hidden;
    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #f8faff 100%
        );
    border: 1px solid #dce4f2;
    border-radius: 20px;
    box-shadow:
        0 18px 45px
        rgba(18, 39, 78, 0.08);
}

.student-flashcard-preview-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 18px;
}

.student-flashcard-preview-identity {
    display: flex;
    align-items: center;
    gap: 11px;
}

.student-flashcard-preview-icon {
    display: grid;
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    color: #315cff;
    font-size: 21px;
    background: #eef3ff;
    border-radius: 12px;
    place-items: center;
}

.student-flashcard-preview-heading h2 {
    margin: 0 0 3px;
    color: #102344;
    font-size: 20px;
}

.student-flashcard-preview-heading p {
    margin: 0;
    color: #728098;
    font-size: 12px;
}

.student-flashcard-open {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 12px;
    color: #273650;
    font-size: 12px;
    font-weight: 800;
    background: #ffffff;
    border: 1px solid #d9e1ef;
    border-radius: 10px;
    cursor: pointer;
}

.student-flashcard-open span {
    font-size: 18px;
}

.student-flashcard-demo {
    position: relative;
    min-height: 260px;
    margin: 0 15px 26px 0;
}

.student-flashcard-demo-layer {
    position: absolute;
    top: 15px;
    right: -14px;
    bottom: 0;
    left: 20px;
    background: #ffffff;
    border: 1px solid #e0e6f1;
    border-radius: 17px;
    box-shadow:
        0 15px 28px
        rgba(20, 39, 76, 0.08);
}

.student-flashcard-demo-layer-one {
    transform:
        translateX(14px)
        translateY(8px);
    opacity: 0.75;
}

.student-flashcard-demo-layer-two {
    transform:
        translateX(28px)
        translateY(16px);
    opacity: 0.45;
}

.student-flashcard-demo-card {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    min-height: 260px;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #dce4f0;
    border-radius: 17px;
    box-shadow:
        0 16px 32px
        rgba(20, 39, 76, 0.1);
}

.student-flashcard-demo-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.student-flashcard-demo-area {
    display: inline-flex;
    padding: 6px 9px;
    color: #315cff;
    font-size: 11px;
    font-weight: 800;
    background: #edf2ff;
    border-radius: 999px;
}

.student-flashcard-demo-counter {
    color: #69758a;
    font-size: 11px;
    font-weight: 800;
}

.student-flashcard-demo-label {
    margin-top: 25px;
    color: #71809a;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.1em;
}

.student-flashcard-demo-card h3 {
    margin: 11px 0 20px;
    color: #122440;
    font-size: 18px;
    line-height: 1.45;
}

.student-flashcard-demo-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: auto;
    color: #78859a;
    font-size: 10px;
}

.student-flashcard-demo-footer button {
    padding: 6px 9px;
    color: #315cff;
    font-size: 11px;
    font-weight: 800;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.student-flashcard-preview-note {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 12px;
    color: #61708a;
    font-size: 11px;
    line-height: 1.4;
    background: #f2f6ff;
    border-radius: 11px;
}

.student-flashcard-preview-note span {
    color: #315cff;
}

.student-flashcard-preview-note p {
    margin: 0;
}

html.student-flashcard-modal-open {
    overflow: hidden;
}

.student-flashcard-modal {
    position: fixed;
    z-index: 24000;
    inset: 0;
    display: grid;
    padding: 24px;
    overflow: auto;
    place-items: center;
    background:
        rgba(5, 15, 38, 0.66);
    backdrop-filter: blur(6px);
}

.student-flashcard-modal[hidden] {
    display: none !important;
}

.student-flashcard-workspace {
    width: min(1080px, 100%);
    max-height:
        calc(100vh - 48px);
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #dce4f1;
    border-radius: 23px;
    box-shadow:
        0 32px 95px
        rgba(4, 14, 38, 0.38);
}

.student-flashcard-workspace-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 28px 20px;
    border-bottom: 1px solid #e5eaf2;
}

.student-flashcard-workspace-eyebrow {
    color: #315cff;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.student-flashcard-workspace-header h2 {
    margin: 5px 0;
    color: #0d2144;
    font-size: 27px;
}

.student-flashcard-workspace-header p {
    margin: 0;
    color: #6a7890;
    font-size: 13px;
}

.student-flashcard-workspace-close {
    display: grid;
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    padding: 0;
    color: #59677e;
    font-size: 27px;
    background: #f0f3f8;
    border: 0;
    border-radius: 11px;
    cursor: pointer;
    place-items: center;
}

.student-flashcard-workspace-tabs {
    display: flex;
    gap: 7px;
    padding: 14px 28px 0;
}

.student-flashcard-workspace-tabs button {
    padding: 10px 14px;
    color: #68758c;
    font-size: 12px;
    font-weight: 800;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 10px;
    cursor: pointer;
}

.student-flashcard-workspace-tabs button.is-active {
    color: #315cff;
    background: #eef3ff;
    border-color: #d7e1ff;
}

.student-flashcard-workspace-content {
    max-height:
        calc(100vh - 190px);
    padding: 22px 28px 30px;
    overflow: auto;
}

.student-flashcard-create-layout {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        300px;
    gap: 27px;
}

.student-flashcard-form-panel {
    min-width: 0;
}

.student-flashcard-section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.student-flashcard-section-heading span,
.student-flashcard-preview-caption,
.student-flashcard-study-information > span,
.student-flashcard-difficulty-section > div > span {
    color: #315cff;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.11em;
}

.student-flashcard-section-heading h3,
.student-flashcard-study-information h3 {
    margin: 5px 0 0;
    color: #142643;
    font-size: 21px;
}

.student-flashcard-section-heading p {
    max-width: 270px;
    margin: 0;
    color: #6c7990;
    font-size: 12px;
    line-height: 1.5;
}

.student-flashcard-form-grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 13px;
}

.student-flashcard-form-grid label,
.student-flashcard-field,
.student-flashcard-url-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.student-flashcard-form-grid label > span,
.student-flashcard-field > span,
.student-flashcard-url-field > span {
    color: #45536b;
    font-size: 11px;
    font-weight: 800;
}

.student-flashcard-form-grid input,
.student-flashcard-form-grid select,
.student-flashcard-field textarea,
.student-flashcard-url-field input {
    width: 100%;
    padding: 12px 13px;
    color: #172843;
    font: inherit;
    font-size: 13px;
    background: #ffffff;
    border: 1px solid #d8e0ed;
    border-radius: 10px;
    outline: none;
}

.student-flashcard-field {
    margin-top: 14px;
}

.student-flashcard-field textarea {
    resize: vertical;
}

.student-flashcard-resource-section {
    margin-top: 17px;
    padding: 17px;
    background: #f8faff;
    border: 1px solid #e0e7f3;
    border-radius: 13px;
}

.student-flashcard-resource-heading {
    margin-bottom: 13px;
}

.student-flashcard-resource-heading strong {
    display: block;
    margin-bottom: 4px;
    color: #1a2d4b;
    font-size: 13px;
}

.student-flashcard-resource-heading span {
    color: #748097;
    font-size: 11px;
}

.student-flashcard-resource-buttons {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-top: 11px;
}

.student-flashcard-resource-buttons button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 42px;
    padding: 8px;
    color: #40516d;
    font-size: 10px;
    font-weight: 800;
    background: #ffffff;
    border: 1px solid #dae2ef;
    border-radius: 9px;
    cursor: pointer;
}

.student-flashcard-resource-buttons button span {
    color: #315cff;
    font-size: 14px;
}

.student-flashcard-resource-warning {
    margin: 11px 0 0;
    color: #768298;
    font-size: 10px;
    line-height: 1.45;
}

.student-flashcard-form-footer {
    display: flex;
    justify-content: flex-end;
    gap: 9px;
    margin-top: 17px;
}

.student-flashcard-primary-button,
.student-flashcard-secondary-button {
    padding: 11px 16px;
    font-size: 12px;
    font-weight: 800;
    border-radius: 10px;
    cursor: pointer;
}

.student-flashcard-primary-button {
    color: #ffffff;
    background: #315cff;
    border: 1px solid #315cff;
}

.student-flashcard-secondary-button {
    color: #475570;
    background: #ffffff;
    border: 1px solid #d5deeb;
}

.student-flashcard-create-preview {
    min-width: 0;
    padding: 17px;
    background: #f5f8ff;
    border: 1px solid #dee6f5;
    border-radius: 15px;
}

.student-flashcard-mini-stack {
    position: relative;
    min-height: 310px;
    margin-top: 15px;
}

.student-flashcard-mini-stack > div {
    position: absolute;
    inset: 15px 0 0 15px;
    background: #ffffff;
    border: 1px solid #dde4ef;
    border-radius: 15px;
}

.student-flashcard-mini-stack > div:nth-child(2) {
    transform:
        translateX(11px)
        translateY(9px);
    opacity: 0.55;
}

.student-flashcard-mini-stack article {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    min-height: 280px;
    padding: 19px;
    background: #ffffff;
    border: 1px solid #dce4ef;
    border-radius: 15px;
    box-shadow:
        0 14px 28px
        rgba(17, 38, 74, 0.1);
}

.student-flashcard-mini-stack article span {
    color: #315cff;
    font-size: 10px;
    font-weight: 900;
}

.student-flashcard-mini-stack article strong {
    margin-top: 45px;
    color: #1c2d49;
    font-size: 17px;
    line-height: 1.5;
}

.student-flashcard-mini-stack article small {
    margin-top: auto;
    color: #768299;
    font-size: 10px;
    line-height: 1.4;
}

.student-flashcard-study-layout {
    max-width: 760px;
    margin: auto;
}

.student-flashcard-study-information {
    margin-bottom: 18px;
    text-align: center;
}

.student-flashcard-study-information p {
    margin: 7px 0 0;
    color: #6e7a90;
    font-size: 12px;
}

.student-flashcard-study-card-shell {
    perspective: 1200px;
}

.student-flashcard-study-card {
    position: relative;
    min-height: 330px;
    cursor: pointer;
    transform-style: preserve-3d;
}

.student-flashcard-study-face {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    padding: 30px;
    background: #ffffff;
    border: 1px solid #dce4ef;
    border-radius: 18px;
    box-shadow:
        0 18px 40px
        rgba(18, 39, 78, 0.12);
    backface-visibility: hidden;
    transition:
        transform 450ms ease,
        opacity 450ms ease;
}

.student-flashcard-study-face.front {
    transform: rotateY(0);
}

.student-flashcard-study-face.back {
    opacity: 0;
    transform: rotateY(180deg);
}

.student-flashcard-study-card.is-flipped
.student-flashcard-study-face.front {
    opacity: 0;
    transform: rotateY(180deg);
}

.student-flashcard-study-card.is-flipped
.student-flashcard-study-face.back {
    opacity: 1;
    transform: rotateY(0);
}

.student-flashcard-study-face span {
    color: #315cff;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.1em;
}

.student-flashcard-study-face strong {
    margin: auto 0;
    color: #172a49;
    font-size: 22px;
    line-height: 1.55;
    text-align: center;
}

.student-flashcard-study-face small {
    color: #768399;
    text-align: center;
}

.student-flashcard-difficulty-section {
    margin-top: 25px;
}

.student-flashcard-difficulty-section h4 {
    margin: 5px 0 13px;
    color: #1b2e4c;
    font-size: 15px;
}

.student-flashcard-difficulty-grid {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));
    gap: 9px;
}

.student-flashcard-difficulty {
    padding: 13px 10px;
    text-align: left;
    background: #f8faff;
    border: 1px solid #dce4ef;
    border-radius: 11px;
    cursor: pointer;
}

.student-flashcard-difficulty strong {
    display: block;
    margin-bottom: 4px;
    color: #263853;
    font-size: 12px;
}

.student-flashcard-difficulty span {
    color: #748097;
    font-size: 9px;
    line-height: 1.35;
}

.student-flashcard-difficulty.is-selected {
    background: #edf2ff;
    border-color: #9eb2ff;
    box-shadow:
        0 0 0 2px
        rgba(49, 92, 255, 0.1);
}

@media (max-width: 980px) {
    .student-dashboard-split {
        grid-template-columns:
            minmax(0, 460px);
        row-gap: 34px;
    }

    .student-flashcard-widget {
        max-width: 390px;
    }

    .student-flashcard-create-layout {
        grid-template-columns:
            minmax(0, 1fr);
    }

    .student-flashcard-create-preview {
        display: none;
    }
}

@media (max-width: 680px) {
    .student-dashboard-split,
    .student-dashboard-split
    .student-modern-course-grid,
    .student-dashboard-split
    .student-modern-course-card,
    .student-flashcard-widget {
        width: 100%;
        max-width: none;
    }

    .student-flashcard-modal {
        padding: 8px;
    }

    .student-flashcard-workspace {
        max-height:
            calc(100vh - 16px);
    }

    .student-flashcard-workspace-header,
    .student-flashcard-workspace-content {
        padding-right: 17px;
        padding-left: 17px;
    }

    .student-flashcard-form-grid,
    .student-flashcard-resource-buttons,
    .student-flashcard-difficulty-grid {
        grid-template-columns:
            minmax(0, 1fr);
    }

    .student-flashcard-section-heading {
        flex-direction: column;
    }

    .student-flashcard-section-heading p {
        max-width: none;
    }
}

/* STUDENT FLASHCARD LAYOUT END */

/* STUDENT FLASHCARD LEGACY FINAL POSITION REMOVED
 * O coordenador V11 de shared-dashboard.css é a única fonte de layout.
 */

/* STUDENT FLASHCARD SHOWCASE START */

#student-flashcard-widget {
    box-sizing: border-box;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 0 !important;
    overflow: hidden !important;
}

.student-flashcard-showcase {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    padding: 18px;
}

.student-flashcard-showcase-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.student-flashcard-showcase-brand {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 10px;
}

.student-flashcard-showcase-icon {
    display: grid;
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    color: #315cff;
    font-size: 19px;
    background: #edf2ff;
    border-radius: 11px;
    place-items: center;
}

.student-flashcard-showcase-brand h2 {
    margin: 0 0 2px;
    color: #112440;
    font-size: 19px;
    line-height: 1.2;
}

.student-flashcard-showcase-brand p {
    margin: 0;
    color: #768299;
    font-size: 11px;
}

.student-flashcard-showcase-open {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    padding: 9px 12px;
    color: #243650;
    font-size: 11px;
    font-weight: 800;
    background: #ffffff;
    border: 1px solid #d7e0ee;
    border-radius: 10px;
    cursor: pointer;
}

.student-flashcard-showcase-open span {
    font-size: 17px;
    line-height: 1;
}

.student-flashcard-showcase-mode {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 20px;
    color: #63718a;
    font-size: 9px;
    font-weight: 700;
}

.student-flashcard-showcase-mode span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.student-flashcard-showcase-mode i {
    width: 7px;
    height: 7px;
    background: #315cff;
    border-radius: 50%;
    box-shadow:
        0 0 0 4px
        rgba(49, 92, 255, 0.12);
}

.student-flashcard-showcase-stage {
    position: relative;
    flex: 1;
    min-height: 360px;
    margin-top: 17px;
}

.student-flashcard-showcase-card {
    box-sizing: border-box;
    position: absolute;
    top: 0;
    left: 0;
    width: calc(100% - 58px);
    height: calc(100% - 28px);
    min-height: 340px;
    padding: 19px;
    overflow: hidden;
    background:
        linear-gradient(
            155deg,
            #ffffff 0%,
            #f7faff 100%
        );
    border: 1px solid #dbe3ef;
    border-radius: 16px;
    box-shadow:
        0 16px 35px
        rgba(16, 37, 72, 0.12);
    transform-origin: center center;
}

.student-flashcard-showcase-card-back {
    pointer-events: none;
}

.student-flashcard-showcase-card-back > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.student-flashcard-showcase-card-back span {
    display: inline-flex;
    padding: 5px 8px;
    color: #6f7f98;
    font-size: 9px;
    font-weight: 800;
    background: #eef2f8;
    border-radius: 999px;
}

.student-flashcard-showcase-card-back small {
    color: #7a879b;
    font-size: 9px;
    font-weight: 800;
}

.student-flashcard-showcase-card-back strong {
    display: block;
    margin-top: 42px;
    color: #7d899a;
    font-size: 14px;
    line-height: 1.45;
}

.student-flashcard-showcase-card-back-one {
    z-index: 3;
    opacity: 0.92;
    transform:
        translateX(24px)
        translateY(8px)
        rotate(3deg);
}

.student-flashcard-showcase-card-back-two {
    z-index: 2;
    opacity: 0.72;
    transform:
        translateX(43px)
        translateY(18px)
        rotate(6deg);
}

.student-flashcard-showcase-card-back-three {
    z-index: 1;
    opacity: 0.48;
    transform:
        translateX(59px)
        translateY(28px)
        rotate(9deg);
}

.student-flashcard-showcase-card-front {
    z-index: 5;
    display: flex;
    flex-direction: column;
    animation:
        student-flashcard-showcase-enter
        430ms
        cubic-bezier(
            0.2,
            0.8,
            0.2,
            1
        )
        both;
    transform:
        translateX(0)
        rotate(-1.2deg);
}

.student-flashcard-showcase-card-front.is-leaving {
    animation:
        student-flashcard-showcase-leave
        300ms
        ease-in
        forwards;
    pointer-events: none;
}

.student-flashcard-showcase-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.student-flashcard-showcase-area {
    display: inline-flex;
    padding: 6px 9px;
    color: #315cff;
    font-size: 9px;
    font-weight: 800;
    background: #edf2ff;
    border-radius: 999px;
}

.student-flashcard-showcase-counter {
    color: #65728a;
    font-size: 10px;
    font-weight: 800;
}

.student-flashcard-showcase-label {
    margin-top: 32px;
    color: #748198;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 0.1em;
}

.student-flashcard-showcase-card-front h3 {
    display: -webkit-box;
    margin: 13px 0;
    overflow: hidden;
    color: #102541;
    font-size: 18px;
    line-height: 1.52;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 6;
}

.student-flashcard-showcase-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
}

.student-flashcard-showcase-dots {
    display: flex;
    align-items: center;
    gap: 5px;
}

.student-flashcard-showcase-dots span {
    width: 6px;
    height: 6px;
    background: #dce2ec;
    border-radius: 50%;
    transition:
        width 180ms ease,
        background 180ms ease;
}

.student-flashcard-showcase-dots span.is-active {
    width: 16px;
    background: #315cff;
    border-radius: 999px;
}

.student-flashcard-showcase-navigation button {
    display: grid;
    width: 28px;
    height: 28px;
    padding: 0;
    color: #315cff;
    font-size: 22px;
    line-height: 1;
    background: #edf2ff;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    place-items: center;
}

.student-flashcard-showcase-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 39px;
    margin-top: 5px;
    padding: 9px 11px;
    color: #68758d;
    font-size: 10px;
    background: #f3f6fc;
    border-radius: 10px;
}

.student-flashcard-showcase-footer span {
    color: #315cff;
}

.student-flashcard-showcase-footer p {
    margin: 0;
}

@keyframes student-flashcard-showcase-enter {
    from {
        opacity: 0;
        transform:
            translateX(75px)
            rotate(5deg)
            scale(0.96);
    }

    to {
        opacity: 1;
        transform:
            translateX(0)
            rotate(-1.2deg)
            scale(1);
    }
}

@keyframes student-flashcard-showcase-leave {
    from {
        opacity: 1;
        transform:
            translateX(0)
            rotate(-1.2deg)
            scale(1);
    }

    to {
        opacity: 0;
        transform:
            translateX(-90px)
            rotate(-8deg)
            scale(0.94);
    }
}

@media (max-width: 900px) {
    #student-flashcard-widget {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
    }

    .student-flashcard-showcase {
        padding: 14px;
    }

    .student-flashcard-showcase-mode {
        align-items: flex-start;
        flex-direction: column;
    }

    .student-flashcard-showcase-stage {
        min-height: 330px;
    }

    .student-flashcard-showcase-card {
        width: calc(100% - 35px);
        height: calc(100% - 23px);
        min-height: 310px;
        padding: 15px;
    }

    .student-flashcard-showcase-card-back-one {
        transform:
            translateX(14px)
            translateY(7px)
            rotate(3deg);
    }

    .student-flashcard-showcase-card-back-two {
        transform:
            translateX(25px)
            translateY(15px)
            rotate(6deg);
    }

    .student-flashcard-showcase-card-back-three {
        transform:
            translateX(35px)
            translateY(23px)
            rotate(8deg);
    }

    .student-flashcard-showcase-card-front h3 {
        font-size: 15px;
    }
}

/* STUDENT FLASHCARD SHOWCASE END */

/* STUDENT FLASHCARD DATA UI START */

.student-flashcard-selected-files {
    display: grid;
    gap: 5px;
    margin-top: 11px;
    color: #6d7990;
    font-size: 10px;
}

.student-flashcard-selected-files span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.student-flashcard-data-loading,
.student-flashcard-study-empty {
    display: grid;
    min-height: 390px;
    padding: 40px 20px;
    color: #6b7890;
    text-align: center;
    place-items: center;
    align-content: center;
    gap: 12px;
}

.student-flashcard-study-empty > span {
    display: grid;
    width: 58px;
    height: 58px;
    color: #315cff;
    font-size: 27px;
    background: #edf2ff;
    border-radius: 17px;
    place-items: center;
}

.student-flashcard-study-empty h3 {
    margin: 4px 0 0;
    color: #172944;
    font-size: 20px;
}

.student-flashcard-study-empty p {
    max-width: 420px;
    margin: 0 0 8px;
    line-height: 1.5;
}

.student-flashcard-study-resources {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}

.student-flashcard-study-resource {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 12px;
    color: #315cff;
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
    background: #edf2ff;
    border: 1px solid #d7e1ff;
    border-radius: 10px;
    cursor: pointer;
}

.student-flashcard-study-footer {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 18px;
}

/* STUDENT FLASHCARD DATA UI END */

/* GLOBAL NOTIFICATION LAYER START */

/*
 * As notificações devem permanecer acima
 * de modais, diálogos e fundos escurecidos.
 */
#toast,
.toast,
.toast-container,
.app-toast,
.notification-toast {
    z-index: 65000 !important;
}

/*
 * O aviso principal da plataforma é fixado
 * diretamente acima de qualquer janela.
 */
#toast,
body > .toast,
body > .toast-container,
body > .app-toast,
body > .notification-toast {
    position: fixed !important;
    isolation: isolate;
}

/*
 * Mantém a mensagem visível mesmo quando
 * uma janela possui filtros ou transparência.
 */
#toast:not([hidden]),
.toast:not([hidden]),
.app-toast:not([hidden]),
.notification-toast:not([hidden]) {
    visibility: visible !important;
    opacity: 1 !important;
}

/* GLOBAL NOTIFICATION LAYER END */



/* STUDENT FLASHCARD INLINE AUDIO START */

.student-flashcard-study-resources
.student-flashcard-inline-audio {
    display: grid;
    flex: 1 0 100%;
    box-sizing: border-box;
    width: 100%;
    gap: 10px;
    padding: 13px 14px;
    background:
        linear-gradient(
            145deg,
            #f4f7ff 0%,
            #eef3ff 100%
        );
    border: 1px solid #d7e1ff;
    border-radius: 13px;
    box-shadow:
        0 8px 22px
        rgba(31, 66, 130, 0.08);
}

.student-flashcard-inline-audio-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 0;
    gap: 12px;
}

.student-flashcard-inline-audio-heading span {
    color: #315cff;
    font-size: 11px;
    font-weight: 850;
}

.student-flashcard-inline-audio-heading small {
    overflow: hidden;
    color: #6d7990;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.student-flashcard-inline-audio audio {
    display: block;
    width: 100%;
    height: 42px;
    margin: 0;
    accent-color: #315cff;
}

@media (max-width: 680px) {
    .student-flashcard-inline-audio-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
    }

    .student-flashcard-inline-audio-heading small {
        width: 100%;
    }
}

/* STUDENT FLASHCARD INLINE AUDIO END */

/* STUDENT CLASSROOM STABILITY V1 START */

/*
 * Regra única da sala: o próprio fluxo moderno informa quando a
 * sala abre ou fecha. Somente os contabilizadores são ocultados;
 * nenhum observer, polling ou regra altera as dimensões do dashboard.
 */
html.student-course-exclusive-mode
#shared-dashboard-stats,
body.student-course-exclusive-mode
#shared-dashboard-stats {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* STUDENT CLASSROOM STABILITY V1 END */

/* DASHBOARD PRINCIPAL DARK PREMIUM V1 START */

body.student-premium-layout-active {
    --student-premium-bg: #07111f;
    --student-premium-bg-deep: #040b16;
    --student-premium-panel: rgba(16, 29, 52, 0.9);
    --student-premium-panel-soft: rgba(18, 33, 59, 0.74);
    --student-premium-card: #111f38;
    --student-premium-card-deep: #0c192e;
    --student-premium-border: rgba(130, 158, 207, 0.18);
    --student-premium-border-strong: rgba(84, 127, 255, 0.42);
    --student-premium-text: #f4f7fc;
    --student-premium-muted: #a9b6ca;
    --student-premium-subtle: #8291aa;
    --student-premium-primary: #3f6dff;
    --student-premium-primary-strong: #315cff;
    min-height: 100vh;
    color: var(--student-premium-text);
    background:
        radial-gradient(
            circle at 76% 4%,
            rgba(62, 83, 190, 0.2),
            transparent 31%
        ),
        radial-gradient(
            circle at 8% 90%,
            rgba(28, 87, 196, 0.14),
            transparent 34%
        ),
        linear-gradient(
            145deg,
            var(--student-premium-bg-deep),
            var(--student-premium-bg) 52%,
            #081429
        );
    background-attachment: fixed;
    color-scheme: dark;
}

body.student-premium-layout-active .topbar {
    display: none !important;
}

body.student-premium-layout-active .page {
    box-sizing: border-box;
    width: calc(
        100vw
        - var(--layout-sidebar-width)
        - var(--layout-fluid-gutter)
        - var(--layout-fluid-gutter)
    );
    max-width: none;
    margin:
        0
        var(--layout-fluid-gutter)
        80px
        calc(var(--layout-sidebar-width) + var(--layout-fluid-gutter));
    padding: clamp(22px, 1.65vw, 38px) 0 0;
}

body.student-premium-layout-active #student-view {
    color: var(--student-premium-text);
}

body.student-premium-layout-active #student-view .page-heading {
    align-items: flex-start;
    margin-bottom: 26px;
}

body.student-premium-layout-active #student-view .page-heading h1 {
    margin: 0 0 8px;
    color: var(--student-premium-text);
    font-size: clamp(29px, 2.5vw, 38px);
    line-height: 1.08;
    letter-spacing: -0.035em;
}

body.student-premium-layout-active #student-view .page-heading .muted {
    margin: 0;
    color: var(--student-premium-muted);
    font-size: 15px;
}

body.student-premium-layout-active #refresh-student {
    min-height: 44px;
    padding: 10px 17px;
    color: #edf3ff;
    background:
        linear-gradient(
            145deg,
            rgba(27, 48, 86, 0.9),
            rgba(19, 35, 64, 0.88)
        );
    border: 1px solid rgba(107, 137, 207, 0.34);
    border-radius: 12px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 12px 30px rgba(0, 0, 0, 0.18);
}

body.student-premium-layout-active #refresh-student:hover:not(:disabled) {
    color: #ffffff;
    border-color: rgba(99, 138, 255, 0.62);
    background:
        linear-gradient(
            145deg,
            rgba(39, 67, 119, 0.94),
            rgba(25, 47, 86, 0.94)
        );
}

body.student-premium-layout-active #refresh-student:focus-visible,
body.student-premium-layout-active .student-premium-nav-button:focus-visible,
body.student-premium-layout-active .student-modern-open-course:focus-visible,
body.student-premium-layout-active .student-flashcard-showcase-open:focus-visible {
    outline: 3px solid rgba(83, 126, 255, 0.42);
    outline-offset: 3px;
}

.student-premium-sidebar {
    position: fixed;
    z-index: 260;
    inset: 0 auto 0 0;
    width: 78px;
    overflow: hidden;
    color: #ffffff;
    background:
        linear-gradient(
            180deg,
            rgba(11, 25, 48, 0.98),
            rgba(5, 14, 29, 0.99)
        );
    border-right: 1px solid rgba(139, 164, 210, 0.12);
    box-shadow: 14px 0 42px rgba(0, 0, 0, 0.26);
    backdrop-filter: blur(18px);
    transition: width 210ms ease;
}

.student-premium-sidebar:hover,
.student-premium-sidebar:focus-within {
    width: 264px;
}

.student-premium-sidebar-brand {
    width: 264px;
    min-height: 92px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 17px;
    border-bottom: 1px solid rgba(139, 164, 210, 0.11);
}

.student-premium-sidebar-logo {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background:
        linear-gradient(
            145deg,
            #4b7cff,
            #3153e6
        );
    border: 1px solid rgba(139, 175, 255, 0.42);
    border-radius: 13px;
    box-shadow:
        0 0 0 6px rgba(63, 109, 255, 0.08),
        0 12px 28px rgba(37, 75, 199, 0.35);
    font-size: 14px;
    font-weight: 900;
}

.student-premium-sidebar-brand-copy,
.student-premium-nav-label,
.student-premium-sidebar-user-copy {
    min-width: 0;
    opacity: 0;
    transform: translateX(-7px);
    transition:
        opacity 150ms ease,
        transform 180ms ease;
}

.student-premium-sidebar:hover .student-premium-sidebar-brand-copy,
.student-premium-sidebar:focus-within .student-premium-sidebar-brand-copy,
.student-premium-sidebar:hover .student-premium-nav-label,
.student-premium-sidebar:focus-within .student-premium-nav-label,
.student-premium-sidebar:hover .student-premium-sidebar-user-copy,
.student-premium-sidebar:focus-within .student-premium-sidebar-user-copy {
    opacity: 1;
    transform: translateX(0);
}

.student-premium-sidebar-brand-copy strong,
.student-premium-sidebar-brand-copy small,
.student-premium-sidebar-user-copy strong,
.student-premium-sidebar-user-copy small {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.student-premium-sidebar-brand-copy strong {
    font-size: 15px;
}

.student-premium-sidebar-brand-copy small,
.student-premium-sidebar-user-copy small {
    margin-top: 4px;
    color: #91a2bd;
    font-size: 11px;
}

.student-premium-sidebar-navigation {
    width: 264px;
    display: grid;
    gap: 8px;
    padding: 20px 13px;
}

.student-premium-sidebar-bottom {
    position: absolute;
    right: 0;
    bottom: 18px;
    left: 0;
    width: 264px;
    display: grid;
    gap: 10px;
    padding: 16px 13px 0;
    border-top: 1px solid rgba(139, 164, 210, 0.11);
}

.student-premium-nav-button {
    width: 238px;
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 8px 13px;
    color: #aebbd0;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 12px;
    text-align: left;
    transition:
        color 150ms ease,
        background 150ms ease,
        border-color 150ms ease,
        transform 150ms ease;
}

.student-premium-nav-button:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.065);
    border-color: rgba(139, 164, 210, 0.11);
}

.student-premium-nav-button.active {
    color: #ffffff;
    background:
        linear-gradient(
            135deg,
            rgba(63, 109, 255, 0.92),
            rgba(55, 76, 211, 0.92)
        );
    border-color: rgba(139, 175, 255, 0.38);
    box-shadow:
        0 10px 24px rgba(29, 61, 174, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.student-premium-nav-icon {
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    display: grid;
    place-items: center;
}

.student-premium-nav-icon svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.student-premium-nav-label {
    overflow: hidden;
    font-size: 14px;
    font-weight: 760;
    white-space: nowrap;
}

.student-premium-sidebar-user {
    width: 238px;
    min-height: 52px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 9px;
}

.student-premium-sidebar-avatar {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: grid;
    place-items: center;
    color: #eef4ff;
    background: rgba(78, 111, 201, 0.3);
    border: 1px solid rgba(123, 154, 235, 0.3);
    border-radius: 11px;
    font-size: 11px;
    font-weight: 900;
}

.student-premium-sidebar-user-copy strong {
    max-width: 162px;
    color: #eef3fb;
    font-size: 12px;
}

.student-premium-logout-button {
    color: #ff9ca6;
}

.student-premium-logout-button:hover {
    color: #ffffff;
    background: rgba(196, 58, 75, 0.22);
    border-color: rgba(255, 137, 151, 0.2);
}

body.student-premium-layout-active #student-view .student-modern-course-card {
    overflow: hidden;
    color: var(--student-premium-text);
    background:
        linear-gradient(
            165deg,
            rgba(17, 32, 58, 0.98),
            rgba(10, 22, 42, 0.98)
        );
    border: 1px solid rgba(87, 128, 255, 0.42);
    box-shadow:
        0 0 0 1px rgba(76, 113, 231, 0.08),
        0 0 34px rgba(48, 91, 228, 0.12),
        0 24px 58px rgba(0, 0, 0, 0.32);
}

body.student-premium-layout-active #student-view .student-modern-course-card:hover {
    border-color: rgba(99, 145, 255, 0.58);
    box-shadow:
        0 0 0 1px rgba(94, 135, 255, 0.12),
        0 0 42px rgba(48, 91, 228, 0.17),
        0 28px 64px rgba(0, 0, 0, 0.38);
}

body.student-premium-layout-active #student-view .student-modern-course-cover {
    border-bottom: 1px solid rgba(112, 142, 202, 0.14);
}

body.student-premium-layout-active #student-view .student-modern-course-body {
    background:
        linear-gradient(
            180deg,
            rgba(17, 31, 56, 0.99),
            rgba(10, 22, 41, 0.99)
        );
}

body.student-premium-layout-active #student-view .student-modern-course-label {
    color: #77a0ff;
}

body.student-premium-layout-active #student-view .student-modern-course-body h2 {
    color: #f7f9fd;
}

body.student-premium-layout-active #student-view .student-modern-course-body p {
    color: var(--student-premium-muted);
}

body.student-premium-layout-active #student-view .student-modern-course-meta span {
    color: #b9c7dc;
    background: rgba(84, 111, 166, 0.18);
    border: 1px solid rgba(124, 149, 201, 0.14);
}

body.student-premium-layout-active #student-view .student-modern-open-course {
    color: #ffffff;
    background:
        linear-gradient(
            120deg,
            #3672ff,
            #3158f4 58%,
            #5b48e8
        );
    border: 1px solid rgba(142, 176, 255, 0.38);
    box-shadow:
        0 12px 28px rgba(44, 82, 220, 0.35),
        0 0 24px rgba(57, 101, 255, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.17);
}

body.student-premium-layout-active #student-view .student-modern-open-course:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

body.student-premium-layout-active #student-flashcard-widget {
    color: var(--student-premium-text);
    background:
        linear-gradient(
            165deg,
            rgba(17, 31, 56, 0.96),
            rgba(10, 22, 42, 0.97)
        );
    border: 1px solid var(--student-premium-border);
    box-shadow:
        0 24px 58px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

body.student-premium-layout-active .student-flashcard-showcase-icon {
    color: #79a0ff;
    background: rgba(64, 102, 206, 0.2);
    border: 1px solid rgba(108, 143, 231, 0.18);
}

body.student-premium-layout-active .student-flashcard-showcase-brand h2 {
    color: #f4f7fc;
}

body.student-premium-layout-active .student-flashcard-showcase-brand p,
body.student-premium-layout-active .student-flashcard-showcase-mode,
body.student-premium-layout-active .student-flashcard-showcase-footer p {
    color: var(--student-premium-muted);
}

body.student-premium-layout-active .student-flashcard-showcase-open {
    color: #edf3ff;
    background: rgba(20, 38, 68, 0.9);
    border-color: rgba(117, 145, 205, 0.28);
}

body.student-premium-layout-active .student-flashcard-showcase-open:hover {
    border-color: rgba(91, 132, 255, 0.54);
    background: rgba(29, 51, 91, 0.96);
}

body.student-premium-layout-active .student-flashcard-showcase-card {
    background:
        linear-gradient(
            155deg,
            #142440,
            #0d1a30
        );
    border-color: rgba(118, 148, 207, 0.2);
    box-shadow:
        0 18px 38px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

body.student-premium-layout-active .student-flashcard-showcase-card-back {
    background:
        linear-gradient(
            155deg,
            #152640,
            #0e1b31
        );
}

body.student-premium-layout-active .student-flashcard-showcase-card-back span,
body.student-premium-layout-active .student-flashcard-showcase-area {
    color: #9db7ff;
    background: rgba(67, 104, 205, 0.18);
    border-color: rgba(98, 135, 230, 0.16);
}

body.student-premium-layout-active .student-flashcard-showcase-card-back small,
body.student-premium-layout-active .student-flashcard-showcase-card-back strong,
body.student-premium-layout-active .student-flashcard-showcase-counter,
body.student-premium-layout-active .student-flashcard-showcase-label {
    color: #9baac0;
}

body.student-premium-layout-active .student-flashcard-showcase-card-front h3 {
    color: #f2f6fc;
}

body.student-premium-layout-active .student-flashcard-showcase-dots span {
    background: #41506a;
}

body.student-premium-layout-active .student-flashcard-showcase-dots span.is-active {
    background: #4b78ff;
    box-shadow: 0 0 12px rgba(67, 113, 255, 0.5);
}

body.student-premium-layout-active .student-flashcard-showcase-navigation button {
    color: #7fa3ff;
    background: rgba(60, 91, 169, 0.17);
    border: 1px solid rgba(101, 136, 223, 0.2);
}

body.student-premium-layout-active .student-flashcard-showcase-footer {
    color: var(--student-premium-muted);
    background: rgba(15, 29, 52, 0.78);
    border: 1px solid rgba(116, 142, 194, 0.09);
}

body.student-premium-layout-active .student-modern-empty,
body.student-premium-layout-active .student-modern-loading-grid {
    color: var(--student-premium-muted);
}

body.student-premium-layout-active .student-modern-empty {
    background: rgba(16, 29, 52, 0.82);
    border-color: rgba(120, 146, 199, 0.18);
}

body.student-premium-layout-active #student-courses {
    scrollbar-color: rgba(87, 119, 195, 0.62) rgba(7, 16, 31, 0.3);
}

@media (max-width: 760px) {
    .student-premium-sidebar {
        width: 66px;
    }

    .student-premium-sidebar:hover,
    .student-premium-sidebar:focus-within {
        width: 238px;
    }

    .student-premium-sidebar-brand,
    .student-premium-sidebar-navigation,
    .student-premium-sidebar-bottom {
        width: 238px;
    }

    .student-premium-nav-button,
    .student-premium-sidebar-user {
        width: 212px;
    }

    body.student-premium-layout-active .page {
        --layout-sidebar-width: 66px;
        --layout-fluid-gutter: 14px;
        width: calc(
            100vw
            - var(--layout-sidebar-width)
            - var(--layout-fluid-gutter)
            - var(--layout-fluid-gutter)
        );
        margin:
            0
            var(--layout-fluid-gutter)
            56px
            calc(var(--layout-sidebar-width) + var(--layout-fluid-gutter));
        padding: 22px 0 0;
    }

    body.student-premium-layout-active #student-view .page-heading {
        align-items: stretch;
        flex-direction: column;
    }

    body.student-premium-layout-active #refresh-student {
        width: 100%;
    }
}

@media (hover: none) {
    .student-premium-sidebar:hover {
        width: 78px;
    }

    .student-premium-sidebar:hover .student-premium-sidebar-brand-copy,
    .student-premium-sidebar:hover .student-premium-nav-label,
    .student-premium-sidebar:hover .student-premium-sidebar-user-copy {
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .student-premium-sidebar,
    .student-premium-nav-button,
    body.student-premium-layout-active #student-view .student-modern-open-course {
        transition: none !important;
    }
}

/* LAYOUT RESPONSIVE FLUID V1 START */

.admin-layout-active .admin-main,
body.student-premium-layout-active #student-view,
body.student-premium-layout-active #student-courses,
body.student-premium-layout-active #student-content,
body.student-premium-layout-active .student-modern-classroom {
    width: 100%;
    max-width: none;
    min-width: 0;
}

@media (min-width: 1920px) {
    .student-modern-classroom-grid {
        grid-template-columns:
            minmax(0, 1fr)
            clamp(380px, 25vw, 560px);
        gap: clamp(24px, 1.8vw, 38px);
    }
}

@media (min-width: 2560px) {
    :root {
        --layout-fluid-gutter: clamp(56px, 2.5vw, 84px);
    }

    .student-modern-classroom-grid {
        grid-template-columns:
            minmax(0, 1fr)
            clamp(440px, 24vw, 600px);
    }
}

@media (max-width: 1366px) {
    :root {
        --layout-fluid-gutter: clamp(18px, 2.5vw, 34px);
    }

    .admin-layout-active .page,
    body.student-premium-layout-active .page {
        padding-top: 24px;
    }
}

/* LAYOUT RESPONSIVE FLUID V1 END */

/* DASHBOARD PRINCIPAL DARK PREMIUM V1 END */


/* VIDEOAULAS NAVIGATION FIXES V1 START */

/*
 * A rota /aulas/:courseId é uma página lógica independente.
 * Oculta integralmente o dashboard, inclusive regras mais específicas
 * do shared-dashboard, preservando apenas a barra lateral e a sala.
 */
html.student-course-exclusive-mode
#student-view.shared-responsive-view
#shared-dashboard-stats,
body.student-course-exclusive-mode
#student-view.shared-responsive-view
#shared-dashboard-stats,
html.student-course-exclusive-mode
#student-view.shared-responsive-view
#student-courses,
body.student-course-exclusive-mode
#student-view.shared-responsive-view
#student-courses {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

html.student-course-exclusive-mode
#student-view.shared-responsive-view
#student-content,
body.student-course-exclusive-mode
#student-view.shared-responsive-view
#student-content {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.student-course-exclusive-mode
#student-view.shared-responsive-view {
    padding-top: 0 !important;
}

/* VIDEOAULAS NAVIGATION FIXES V1 END */

/* GLOBAL PLATFORM DARK MODE V1 START */

/* Evita qualquer flash claro durante o restauro da sessão. */
html.auth-session-present,
html.auth-session-present body {
    background: #07111f;
    color-scheme: dark;
}

/* Login também participa do tema global. */
.login-view {
    color: #f4f7fc;
    background:
        radial-gradient(circle at 78% 8%, rgba(62, 83, 190, 0.22), transparent 32%),
        radial-gradient(circle at 9% 92%, rgba(28, 87, 196, 0.16), transparent 35%),
        linear-gradient(145deg, #040b16, #07111f 52%, #081429);
    background-attachment: fixed;
}

.login-card {
    color: #f4f7fc;
    background: linear-gradient(160deg, rgba(18, 34, 61, 0.96), rgba(9, 20, 39, 0.97));
    border-color: rgba(130, 158, 207, 0.2);
    box-shadow: 0 30px 78px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(18px);
}

.login-card h1 { color: #f7f9fd; }
.login-card .muted { color: #a9b6ca; }
.login-card input {
    color: #eef3fb;
    background: rgba(7, 17, 33, 0.86);
    border-color: rgba(126, 151, 201, 0.25);
}
.login-card input:focus {
    border-color: rgba(91, 132, 255, 0.72);
    box-shadow: 0 0 0 3px rgba(63, 109, 255, 0.2);
}

/* Tema único para todas as páginas administrativas e de instrutor. */
body.admin-layout-active {
    --background: #07111f;
    --surface: #101d34;
    --text: #f4f7fc;
    --muted: #a9b6ca;
    --border: rgba(130, 158, 207, 0.18);
    --primary: #3f6dff;
    --primary-dark: #3158e8;
    --success: #56d59d;
    --warning: #ffd166;
    --danger: #ff8f9b;
    --shadow: 0 22px 58px rgba(0, 0, 0, 0.28);
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at 78% 3%, rgba(62, 83, 190, 0.2), transparent 31%),
        radial-gradient(circle at 7% 90%, rgba(28, 87, 196, 0.14), transparent 34%),
        linear-gradient(145deg, #040b16, #07111f 52%, #081429) !important;
    background-attachment: fixed !important;
    color-scheme: dark;
}

body.admin-layout-active #app-view,
body.admin-layout-active #admin-view,
body.admin-layout-active .admin-shell,
body.admin-layout-active .admin-main,
body.admin-layout-active .admin-section {
    color: var(--text);
    background: transparent;
}

body.admin-layout-active .admin-sidebar {
    background: linear-gradient(180deg, rgba(11, 25, 48, 0.99), rgba(5, 14, 29, 1));
    border-right-color: rgba(139, 164, 210, 0.12);
    box-shadow: 14px 0 42px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(18px);
}

body.admin-layout-active .admin-section-heading h1,
body.admin-layout-active .admin-section-heading h2,
body.admin-layout-active .page-heading h1,
body.admin-layout-active .page-heading h2,
body.admin-layout-active .section-heading h2,
body.admin-layout-active .panel h2,
body.admin-layout-active .panel h3,
body.admin-layout-active .admin-profile-summary h2,
body.admin-layout-active .admin-video-upload-heading h3,
body.admin-layout-active .admin-video-list-heading h3 {
    color: #f7f9fd;
}

body.admin-layout-active .muted,
body.admin-layout-active .admin-section-heading p,
body.admin-layout-active .page-heading p,
body.admin-layout-active .section-heading p,
body.admin-layout-active .admin-video-upload-heading p,
body.admin-layout-active .user-secondary {
    color: #a9b6ca;
}

body.admin-layout-active .panel,
body.admin-layout-active .stat-card,
body.admin-layout-active .course-card,
body.admin-layout-active .admin-video-upload,
body.admin-layout-active .user-editor,
body.admin-layout-active .admin-profile-panel {
    color: #edf3fb;
    background: linear-gradient(160deg, rgba(18, 34, 61, 0.94), rgba(9, 20, 39, 0.96));
    border-color: rgba(130, 158, 207, 0.18);
    box-shadow: 0 22px 58px rgba(0, 0, 0, 0.27), inset 0 1px 0 rgba(255, 255, 255, 0.035);
    backdrop-filter: blur(14px);
}

body.admin-layout-active .admin-shell .panel,
body.admin-layout-active .admin-shell .stat-card {
    border-color: rgba(130, 158, 207, 0.18);
    box-shadow: 0 22px 58px rgba(0, 0, 0, 0.27), inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

body.admin-layout-active #refresh-admin,
body.admin-layout-active .secondary-button,
body.admin-layout-active .small-button,
body.admin-layout-active .admin-course-publish-button {
    color: #edf3ff;
    background: rgba(17, 32, 58, 0.82);
    border-color: rgba(117, 145, 205, 0.3);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

body.admin-layout-active #refresh-admin:hover:not(:disabled),
body.admin-layout-active .secondary-button:hover:not(:disabled),
body.admin-layout-active .small-button:hover:not(:disabled),
body.admin-layout-active .admin-course-publish-button:hover:not(:disabled) {
    color: #ffffff;
    background: rgba(28, 50, 88, 0.96);
    border-color: rgba(91, 132, 255, 0.58);
}

body.admin-layout-active .primary-button,
body.admin-layout-active .admin-video-field-action,
body.admin-layout-active .admin-quick-create-button {
    color: #ffffff;
    background: linear-gradient(120deg, #3672ff, #3158f4 58%, #5b48e8);
    border-color: rgba(142, 176, 255, 0.38);
    box-shadow: 0 12px 28px rgba(44, 82, 220, 0.32), 0 0 22px rgba(57, 101, 255, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

body.admin-layout-active .primary-button:hover:not(:disabled) { filter: brightness(1.08); }
body.admin-layout-active .small-button.danger { color: #ff9ca6; }
body.admin-layout-active .small-button.warning { color: #ffd166; }

body.admin-layout-active input,
body.admin-layout-active textarea,
body.admin-layout-active select {
    color: #eef3fb;
    background: rgba(7, 17, 33, 0.86);
    border-color: rgba(126, 151, 201, 0.24);
}

body.admin-layout-active input::placeholder,
body.admin-layout-active textarea::placeholder { color: #75849e; }
body.admin-layout-active select option { color: #eef3fb; background: #0d1a30; }
body.admin-layout-active input:focus,
body.admin-layout-active textarea:focus,
body.admin-layout-active select:focus {
    border-color: rgba(91, 132, 255, 0.7);
    box-shadow: 0 0 0 3px rgba(63, 109, 255, 0.18);
}

body.admin-layout-active label,
body.admin-layout-active th { color: #a9b6ca; }
body.admin-layout-active td { color: #dce5f2; }
body.admin-layout-active th,
body.admin-layout-active td { border-bottom-color: rgba(130, 158, 207, 0.13); }
body.admin-layout-active tbody tr:hover { background: rgba(74, 111, 196, 0.08); }
body.admin-layout-active .table-wrapper { scrollbar-color: rgba(87, 119, 195, 0.65) rgba(7, 16, 31, 0.35); }

/* NEXUS_USERS_ROLE_BADGE_V1_START: página "Usuários e acessos" (coluna Permissão legível, colunas alinhadas) */
body.admin-layout-active #users-list th {
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}

body.admin-layout-active #users-list td {
    font-size: 14px;
    vertical-align: middle;
}

body.admin-layout-active #users-list td strong {
    display: block;
    color: #f3f7fd;
    font-size: 15px;
}

body.admin-layout-active #users-list td:nth-child(2),
body.admin-layout-active #users-list td:nth-child(3),
body.admin-layout-active #users-list td:nth-child(4),
body.admin-layout-active #users-list .user-last-seen {
    white-space: nowrap;
}

body.admin-layout-active #users-list .user-last-seen {
    color: #a9b6ca;
    font-size: 13px;
}

body.admin-layout-active #users-list .online-state {
    font-size: 14px;
}

body.admin-layout-active #users-list .nexus-role-badge {
    padding: 5px 12px;
    color: #c9d6ea;
    background: rgba(130, 158, 207, 0.16);
    border: 1px solid rgba(130, 158, 207, 0.32);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

body.admin-layout-active #users-list .nexus-role-badge.student {
    color: #9fc4ff;
    background: rgba(70, 126, 255, 0.16);
    border-color: rgba(106, 154, 255, 0.4);
}

body.admin-layout-active #users-list .nexus-role-badge.instructor {
    color: #c9b6ff;
    background: rgba(139, 102, 255, 0.17);
    border-color: rgba(172, 144, 255, 0.4);
}

body.admin-layout-active #users-list .nexus-role-badge.admin {
    color: #ffd98a;
    background: rgba(245, 175, 50, 0.15);
    border-color: rgba(255, 203, 107, 0.4);
}
/* Ações em grade de 3 colunas (3 + 2) quando a tela não comporta os cinco botões em uma linha; evita botão sozinho na segunda linha. */
@media (max-width: 1600px) {
    body.admin-layout-active #users-list .user-actions {
        display: grid;
        grid-template-columns: repeat(3, max-content);
    }
}
/* NEXUS_USERS_ROLE_BADGE_V1_END */

body.admin-layout-active .admin-profile-divider { background: rgba(130, 158, 207, 0.16); }
body.admin-layout-active .admin-video-upload { background: rgba(14, 28, 52, 0.8); }

/* Janelas administrativas e workspaces permanecem escuros. */
body.admin-layout-active .admin-enrollment-dialog,
body.admin-layout-active .admin-progress-dialog,
body.admin-layout-active .student-flashcard-workspace {
    color: #edf3fb;
    background: linear-gradient(160deg, #12223d, #091629);
    border-color: rgba(130, 158, 207, 0.22);
    box-shadow: 0 34px 96px rgba(0, 0, 0, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body.admin-layout-active .admin-enrollment-header,
body.admin-layout-active .admin-enrollment-footer,
body.admin-layout-active .admin-progress-header,
body.admin-layout-active .student-flashcard-workspace-header {
    background: rgba(12, 26, 48, 0.76);
    border-color: rgba(130, 158, 207, 0.15);
}

body.admin-layout-active .admin-enrollment-header h2,
body.admin-layout-active .admin-progress-header h2,
body.admin-layout-active .student-flashcard-workspace-header h2,
body.admin-layout-active .student-flashcard-section-heading h3,
body.admin-layout-active .student-flashcard-study-information h3,
body.admin-layout-active .student-flashcard-difficulty-section h4 {
    color: #f4f7fc;
}

body.admin-layout-active .admin-enrollment-header p,
body.admin-layout-active .admin-enrollment-footer p,
body.admin-layout-active .admin-progress-header p,
body.admin-layout-active .student-flashcard-workspace-header p,
body.admin-layout-active .student-flashcard-section-heading p,
body.admin-layout-active .student-flashcard-study-information p {
    color: #a9b6ca;
}

body.admin-layout-active .admin-enrollment-close,
body.admin-layout-active .admin-progress-close,
body.admin-layout-active .student-flashcard-workspace-close {
    color: #c4d0e2;
    background: rgba(70, 92, 136, 0.2);
}

body.admin-layout-active .admin-enrollment-course,
body.admin-layout-active .admin-enrollment-empty,
body.admin-layout-active .admin-progress-summary > div,
body.admin-layout-active .admin-progress-lesson,
body.admin-layout-active .admin-progress-empty,
body.admin-layout-active .admin-progress-loading,
body.admin-layout-active .student-flashcard-resource-section,
body.admin-layout-active .student-flashcard-create-preview,
body.admin-layout-active .student-flashcard-difficulty {
    color: #dce5f2;
    background: rgba(16, 31, 56, 0.82);
    border-color: rgba(130, 158, 207, 0.17);
}

body.admin-layout-active .admin-enrollment-course h3,
body.admin-layout-active .admin-enrollment-summary strong,
body.admin-layout-active .admin-enrollment-empty strong,
body.admin-layout-active .admin-progress-summary strong,
body.admin-layout-active .admin-progress-lesson h4,
body.admin-layout-active .student-flashcard-resource-heading strong,
body.admin-layout-active .student-flashcard-difficulty strong {
    color: #eef3fb;
}

body.admin-layout-active .student-flashcard-resource-buttons button,
body.admin-layout-active .student-flashcard-secondary-button {
    color: #c5d2e5;
    background: rgba(16, 31, 56, 0.9);
    border-color: rgba(130, 158, 207, 0.2);
}

body.admin-layout-active .student-flashcard-mini-stack > div,
body.admin-layout-active .student-flashcard-mini-stack article,
body.admin-layout-active .student-flashcard-study-face {
    color: #eef3fb;
    background: linear-gradient(155deg, #142440, #0d1a30);
    border-color: rgba(118, 148, 207, 0.2);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

body.admin-layout-active .student-flashcard-mini-stack article strong,
body.admin-layout-active .student-flashcard-study-face strong { color: #f2f6fc; }
body.admin-layout-active .student-flashcard-mini-stack article small,
body.admin-layout-active .student-flashcard-study-face small { color: #9baac0; }

body.admin-layout-active .badge.ready,
body.admin-layout-active .badge.published,
body.admin-layout-active .badge.active { color: #69dda9; background: rgba(40, 143, 101, 0.2); }
body.admin-layout-active .badge.processing,
body.admin-layout-active .badge.queued { color: #ffd76b; background: rgba(168, 125, 24, 0.22); }
body.admin-layout-active .badge.failed,
body.admin-layout-active .badge.cancelled { color: #ff9ca6; background: rgba(170, 54, 70, 0.2); }

body.admin-layout-active :focus-visible {
    outline-color: rgba(83, 126, 255, 0.52);
}

body.admin-layout-active ::-webkit-scrollbar { width: 11px; height: 11px; }
body.admin-layout-active ::-webkit-scrollbar-track { background: rgba(5, 13, 26, 0.42); }
body.admin-layout-active ::-webkit-scrollbar-thumb {
    background: rgba(85, 112, 173, 0.56);
    border: 3px solid transparent;
    border-radius: 999px;
    background-clip: padding-box;
}

/* GLOBAL PLATFORM DARK MODE V1 END */

/* LOGIN PREMIUM MEDICAL V7 START */

/*
 * Fundo aprovado: estetoscópio realista à esquerda e ECG à direita.
 * A arte é aplicada somente como camada de fundo, com 77% de transparência,
 * enquanto o formulário real permanece funcional e centralizado.
 */
.login-view {
    position: relative;
    isolation: isolate;
    width: 100%;
    min-height: 100svh;
    padding: clamp(20px, 3vw, 54px);
    display: grid;
    place-items: center;
    overflow: hidden;
    color: #f7f9fd;
    background:
        radial-gradient(circle at 50% 16%, rgba(49, 93, 194, 0.16), transparent 28%),
        linear-gradient(180deg, #071632 0%, #051227 100%);
}

.login-view::before {
    content: "";
    position: absolute;
    z-index: 0;
    inset: 0;
    pointer-events: none;
    background-image: url("/assets/login/login-background-medical-v7.png");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    opacity: 0.23; /* 77% de transparência */
    filter: saturate(1.02) brightness(0.97);
}

.login-view::after {
    content: "";
    position: absolute;
    z-index: 0;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 50% 46%, rgba(73, 124, 255, 0.08), transparent 28%),
        linear-gradient(90deg, rgba(3, 10, 24, 0.06), rgba(3, 10, 24, 0.14));
}

.login-card {
    position: relative;
    z-index: 2;
    width: min(100%, 460px);
    padding: clamp(34px, 3vw, 48px);
    color: #f7f9fd;
    background: linear-gradient(155deg, rgba(18, 42, 79, 0.88), rgba(5, 17, 37, 0.93));
    border: 1px solid rgba(132, 177, 245, 0.42);
    border-radius: 24px;
    box-shadow:
        0 34px 90px rgba(0, 0, 0, 0.48),
        0 0 68px rgba(45, 101, 255, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(18px) saturate(122%);
    -webkit-backdrop-filter: blur(18px) saturate(122%);
}

.login-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255,255,255,.055), transparent 38%);
}

.login-card::after {
    content: "";
    position: absolute;
    top: -1px;
    left: 21%;
    width: 58%;
    height: 2px;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(99, 164, 255, .96), transparent);
    box-shadow: 0 0 20px rgba(71, 132, 255, .76);
}

.login-card > * {
    position: relative;
    z-index: 1;
}

.login-card h1 {
    margin: 0 0 13px;
    color: #ffffff;
    font-size: clamp(31px, 2.15vw, 40px);
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.login-card .muted {
    margin: 0 0 25px;
    color: #b9c5d7;
    font-size: 16px;
}

.login-card form {
    gap: 20px;
}

.login-card label {
    color: #f3f6fc;
    font-size: 15px;
    font-weight: 700;
}

.login-card input {
    min-height: 56px;
    padding-inline: 18px;
    color: #f7f9fd;
    caret-color: #79a3ff;
    background: rgba(1, 10, 24, 0.84);
    border: 1px solid rgba(122, 157, 216, 0.33);
    border-radius: 12px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.025);
}

.login-card input::placeholder {
    color: #8290a7;
    opacity: 1;
}

.login-card input:hover {
    border-color: rgba(122, 165, 232, 0.54);
}

.login-card input:focus {
    border-color: rgba(95, 145, 255, 0.96);
    box-shadow:
        0 0 0 3px rgba(62, 108, 255, 0.21),
        0 0 28px rgba(62, 108, 255, 0.11);
}

.login-card .primary-button {
    min-height: 56px;
    margin-top: 4px;
    color: #fff;
    border: 1px solid rgba(125, 165, 255, 0.44);
    border-radius: 12px;
    background: linear-gradient(135deg, #3977ff, #315cff 57%, #4b49f0);
    box-shadow:
        0 15px 36px rgba(49, 94, 251, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.20);
    transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.login-card .primary-button:hover:not(:disabled) {
    transform: translateY(-1px);
    filter: brightness(1.07);
    box-shadow:
        0 19px 44px rgba(49, 94, 251, 0.43),
        inset 0 1px 0 rgba(255, 255, 255, 0.23);
}

.login-card .primary-button:active:not(:disabled) {
    transform: translateY(0);
}

@media (min-aspect-ratio: 2/1) {
    .login-view::before {
        background-size: 100% auto;
    }
}

@media (max-width: 1100px) {
    .login-card {
        width: min(100%, 440px);
    }
}

@media (max-width: 820px) {
    .login-view {
        padding: 22px;
    }

    .login-view::before {
        background-position: 48% center;
    }

    .login-card {
        background: linear-gradient(155deg, rgba(18, 42, 79, 0.93), rgba(5, 17, 37, 0.96));
    }
}

@media (max-width: 560px) {
    .login-view {
        padding: 18px;
    }

    .login-view::before {
        background-position: 45% center;
        opacity: 0.18;
    }

    .login-card {
        width: 100%;
        padding: 28px 22px;
        border-radius: 20px;
    }

    .login-card .brand-mark {
        width: 54px;
        height: 54px;
        margin-bottom: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .login-card .primary-button {
        transition: none;
    }
}

/* LOGIN PREMIUM MEDICAL V7 END */

/* VIDEO DICAS EXTRA V1 START */

html.student-tips-exclusive-mode,
body.student-tips-exclusive-mode {
    background: #07111f;
}

html.student-tips-exclusive-mode
#student-view.shared-responsive-view
#shared-dashboard-stats,
body.student-tips-exclusive-mode
#student-view.shared-responsive-view
#shared-dashboard-stats,
html.student-tips-exclusive-mode
#student-view.shared-responsive-view
#student-courses,
body.student-tips-exclusive-mode
#student-view.shared-responsive-view
#student-courses {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

html.student-tips-exclusive-mode
#student-view.shared-responsive-view
#student-content,
body.student-tips-exclusive-mode
#student-view.shared-responsive-view
#student-content {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.student-tips-shell {
    width: 100%;
    color: #f5f8ff;
}

.student-tips-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: clamp(24px, 2.2vw, 38px);
    padding: clamp(22px, 2.4vw, 38px);
    overflow: hidden;
    background:
        radial-gradient(circle at 88% 10%, rgba(84, 91, 255, 0.22), transparent 32%),
        linear-gradient(135deg, rgba(17, 36, 68, 0.96), rgba(9, 24, 47, 0.94));
    border: 1px solid rgba(112, 145, 211, 0.24);
    border-radius: 24px;
    box-shadow: 0 24px 56px rgba(0, 5, 18, 0.28);
}

.student-tips-hero > div > span,
.student-tip-eyebrow {
    color: #6f91ff;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.student-tips-hero h1,
.student-tip-detail-copy h1 {
    margin: 10px 0 8px;
    color: #ffffff;
    font-size: clamp(28px, 2.3vw, 42px);
    line-height: 1.08;
}

.student-tips-hero p,
.student-tip-detail-copy p {
    max-width: 740px;
    margin: 0;
    color: #aebbd2;
    font-size: 15px;
    line-height: 1.65;
}

.student-tips-count {
    padding: 9px 13px;
    color: #dbe6ff;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
    background: rgba(48, 88, 170, 0.2);
    border: 1px solid rgba(110, 149, 230, 0.25);
    border-radius: 999px;
}

.student-tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 520px));
    gap: 26px;
}

.student-tip-card,
.student-tip-player-card,
.student-tip-about-card {
    overflow: hidden;
    background:
        linear-gradient(150deg, rgba(18, 37, 70, 0.96), rgba(8, 23, 45, 0.96));
    border: 1px solid rgba(101, 139, 211, 0.24);
    border-radius: 22px;
    box-shadow:
        0 24px 52px rgba(0, 6, 20, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.student-tip-card {
    transition:
        transform 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease;
}

.student-tip-card:hover,
.student-tip-card:focus-within {
    transform: translateY(-4px);
    border-color: rgba(77, 119, 255, 0.62);
    box-shadow:
        0 28px 64px rgba(0, 7, 24, 0.44),
        0 0 34px rgba(43, 94, 255, 0.13);
}

.student-tip-cover {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    padding: 0;
    overflow: hidden;
    background: #020a15;
    border: 0;
}

.student-tip-cover img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 260ms ease;
}

.student-tip-card:hover .student-tip-cover img,
.student-tip-card:focus-within .student-tip-cover img {
    transform: scale(1.025);
}

.student-tip-cover-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, transparent 38%, rgba(2, 9, 22, 0.78)),
        linear-gradient(90deg, rgba(3, 12, 28, 0.12), transparent);
}

.student-tip-play {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    padding-left: 4px;
    color: #ffffff;
    font-size: 23px;
    background: linear-gradient(135deg, #2f6dff, #5648ff);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    box-shadow: 0 14px 34px rgba(24, 69, 255, 0.35);
    transform: translate(-50%, -50%);
}

.student-tip-duration {
    position: absolute;
    right: 14px;
    bottom: 13px;
    padding: 5px 8px;
    color: #ffffff;
    font-size: 11px;
    font-weight: 850;
    background: rgba(2, 8, 20, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 8px;
    backdrop-filter: blur(8px);
}

.student-tip-card-body {
    padding: 23px;
}

.student-tip-card-body h2 {
    margin: 8px 0 10px;
    color: #ffffff;
    font-size: 24px;
}

.student-tip-card-body p {
    margin: 0;
    color: #aebbd2;
    font-size: 14px;
    line-height: 1.62;
}

.student-tip-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 22px;
}

.student-tip-card-footer > span {
    color: #8292ae;
    font-size: 11px;
    font-weight: 750;
}

.student-tip-open-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 150px;
    background: linear-gradient(135deg, #316fff, #5148f5) !important;
    box-shadow: 0 12px 28px rgba(37, 82, 255, 0.23);
}

.student-tip-back {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 20px;
    padding: 9px 13px;
    color: #b9caf0;
    font-size: 12px;
    font-weight: 800;
    background: rgba(18, 39, 74, 0.72);
    border: 1px solid rgba(101, 139, 211, 0.28);
    border-radius: 10px;
}

.student-tip-back:hover {
    color: #ffffff;
    border-color: rgba(77, 119, 255, 0.65);
}

.student-tip-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(280px, 22vw, 360px);
    gap: clamp(20px, 2vw, 32px);
    align-items: start;
}

.student-tip-player-frame {
    overflow: hidden;
    background: #010711;
    border-bottom: 1px solid rgba(101, 139, 211, 0.2);
}

.student-tip-video {
    display: block;
    width: 100%;
    max-height: min(72vh, 760px);
    aspect-ratio: 16 / 9;
    background: #000;
    object-fit: contain;
}

.student-tip-detail-copy {
    padding: clamp(22px, 2.3vw, 36px);
}

.student-tip-detail-copy h1 {
    font-size: clamp(26px, 2vw, 38px);
}

.student-tip-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 24px;
}

.student-tip-meta span {
    padding: 7px 10px;
    color: #aebfe0;
    font-size: 11px;
    font-weight: 750;
    background: rgba(30, 57, 105, 0.48);
    border: 1px solid rgba(100, 136, 205, 0.2);
    border-radius: 999px;
}

.student-tip-about-card {
    padding: 25px;
}

.student-tip-about-icon {
    display: grid;
    place-items: center;
    width: 43px;
    height: 43px;
    color: #91aaff;
    font-size: 19px;
    background: rgba(48, 91, 190, 0.22);
    border: 1px solid rgba(94, 132, 224, 0.28);
    border-radius: 13px;
}

.student-tip-about-card h2 {
    margin: 16px 0 8px;
    color: #ffffff;
    font-size: 20px;
}

.student-tip-about-card > p {
    margin: 0;
    color: #a7b5cc;
    font-size: 13px;
    line-height: 1.6;
}

.student-tip-progress-note {
    display: grid;
    gap: 7px;
    margin-top: 22px;
    padding: 15px;
    background: rgba(32, 70, 119, 0.2);
    border: 1px solid rgba(76, 139, 192, 0.2);
    border-radius: 14px;
}

.student-tip-progress-note strong {
    color: #69d7b1;
    font-size: 12px;
}

.student-tip-progress-note span {
    color: #95a6c1;
    font-size: 11px;
    line-height: 1.55;
}

@media (max-width: 980px) {
    .student-tip-detail-grid {
        grid-template-columns: 1fr;
    }

    .student-tip-about-card {
        order: 2;
    }
}

@media (max-width: 620px) {
    .student-tips-hero {
        align-items: flex-start;
        flex-direction: column;
        padding: 21px;
        border-radius: 18px;
    }

    .student-tips-grid {
        grid-template-columns: 1fr;
    }

    .student-tip-card-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .student-tip-open-button {
        width: 100%;
    }

    .student-tip-detail-copy,
    .student-tip-about-card {
        padding: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .student-tip-card,
    .student-tip-cover img {
        transition: none;
    }
}

/* VIDEO DICAS EXTRA V1 END */

/* STUDENT LOCAL FLASHCARD PAGE TURN V2 START */

/* Restaura e uniformiza a virada do Flashcards Aluno. */
#student-flashcard-widget .student-flashcard-showcase-card-front {
  animation: flashcard-page-turn-v2-in 430ms cubic-bezier(0.2, 0.8, 0.2, 1) both !important;
  transform-origin: 12% 50%;
  backface-visibility: hidden;
}

#student-flashcard-widget .student-flashcard-showcase-card-front.is-leaving {
  animation: flashcard-page-turn-v2-out 300ms ease-in forwards !important;
  pointer-events: none;
}

/* STUDENT LOCAL FLASHCARD PAGE TURN V2 END */

/* FLASHCARDS ALUNO WORKSPACE DARK V1 START */

/* Modal "Meus Flashcards" alinhado ao dark mode premium da plataforma. */
.student-flashcard-modal {
    color-scheme: dark;
    background: rgba(2, 8, 18, 0.88) !important;
    backdrop-filter: blur(10px) saturate(115%) !important;
    -webkit-backdrop-filter: blur(10px) saturate(115%) !important;
}

.student-flashcard-workspace {
    color: #eef4fc !important;
    background:
        radial-gradient(circle at 88% 4%, rgba(65, 96, 205, 0.17), transparent 30%),
        linear-gradient(155deg, #132542 0%, #0b192e 68%, #081426 100%) !important;
    border: 1px solid rgba(115, 148, 211, 0.24) !important;
    box-shadow:
        0 34px 100px rgba(0, 0, 0, 0.62),
        0 0 50px rgba(47, 94, 220, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.045) !important;
}

.student-flashcard-workspace-header {
    border-bottom-color: rgba(122, 151, 205, 0.16) !important;
    background: rgba(10, 25, 48, 0.34);
}

.student-flashcard-workspace-eyebrow,
.student-flashcard-preview-heading,
.student-flashcard-section-heading > span {
    color: #7198ff !important;
}

.student-flashcard-workspace-header h2,
.student-flashcard-section-heading h3,
.student-flashcard-resource-heading h4,
.student-flashcard-difficulty-section h4,
.student-flashcard-study-information h3 {
    color: #f4f7fc !important;
}

.student-flashcard-workspace-header p,
.student-flashcard-section-heading p,
.student-flashcard-resource-heading p,
.student-flashcard-study-information p,
.student-flashcard-selected-files,
.student-flashcard-resource-warning {
    color: #95a6bd !important;
}

.student-flashcard-workspace-close {
    color: #b9c9df !important;
    background: rgba(30, 50, 82, 0.86) !important;
    border: 1px solid rgba(116, 148, 207, 0.18) !important;
}

.student-flashcard-workspace-close:hover {
    color: #ffffff !important;
    background: rgba(48, 75, 125, 0.92) !important;
}

.student-flashcard-workspace-tabs button {
    color: #93a3ba !important;
}

.student-flashcard-workspace-tabs button:hover {
    color: #dbe6f5 !important;
    background: rgba(42, 65, 108, 0.30) !important;
    border-color: rgba(112, 145, 213, 0.14) !important;
}

.student-flashcard-workspace-tabs button.is-active {
    color: #a9c0ff !important;
    background: rgba(54, 91, 194, 0.20) !important;
    border-color: rgba(95, 136, 240, 0.36) !important;
    box-shadow: 0 0 18px rgba(55, 101, 235, 0.10);
}

.student-flashcard-workspace-content {
    scrollbar-color: rgba(91, 121, 180, 0.68) rgba(5, 14, 28, 0.34);
}

.student-flashcard-form-grid label > span,
.student-flashcard-field > span,
.student-flashcard-url-field > span {
    color: #c5d1e1 !important;
}

.student-flashcard-form-grid input,
.student-flashcard-form-grid select,
.student-flashcard-field textarea,
.student-flashcard-url-field input {
    color: #eef4fc !important;
    background: rgba(4, 14, 29, 0.88) !important;
    border-color: rgba(111, 143, 201, 0.28) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.student-flashcard-form-grid input::placeholder,
.student-flashcard-field textarea::placeholder,
.student-flashcard-url-field input::placeholder {
    color: #71819a !important;
    opacity: 1;
}

.student-flashcard-form-grid input:focus,
.student-flashcard-form-grid select:focus,
.student-flashcard-field textarea:focus,
.student-flashcard-url-field input:focus {
    border-color: #6189ff !important;
    box-shadow: 0 0 0 3px rgba(66, 110, 255, 0.16) !important;
}

.student-flashcard-form-grid select {
    color-scheme: dark;
}

.student-flashcard-resource-section,
.student-flashcard-create-preview,
.student-flashcard-study-resource,
.student-flashcard-study-resources,
.student-flashcard-inline-audio {
    color: #c9d5e5 !important;
    background: rgba(17, 35, 63, 0.78) !important;
    border-color: rgba(113, 145, 202, 0.18) !important;
}

.student-flashcard-resource-buttons button,
.student-flashcard-secondary-button {
    color: #a9bded !important;
    background: rgba(15, 31, 57, 0.90) !important;
    border-color: rgba(102, 137, 210, 0.28) !important;
}

.student-flashcard-resource-buttons button:hover,
.student-flashcard-secondary-button:hover {
    color: #ffffff !important;
    background: rgba(39, 65, 112, 0.92) !important;
    border-color: rgba(105, 148, 245, 0.46) !important;
}

.student-flashcard-primary-button {
    color: #ffffff !important;
    background: linear-gradient(135deg, #3877ff, #315cff 58%, #5349e8) !important;
    border-color: rgba(129, 165, 255, 0.42) !important;
    box-shadow: 0 13px 30px rgba(49, 92, 255, 0.28) !important;
}

.student-flashcard-preview-caption,
.student-flashcard-demo,
.student-flashcard-study-empty {
    color: #a9b8cd !important;
    background: rgba(12, 27, 50, 0.86) !important;
    border-color: rgba(112, 144, 204, 0.18) !important;
}

.student-flashcard-demo-card,
.student-flashcard-study-card,
.student-flashcard-study-face {
    color: #eef4fc !important;
    background: linear-gradient(145deg, #172b4b, #10213c) !important;
    border-color: rgba(114, 148, 213, 0.24) !important;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.34) !important;
}

.student-flashcard-demo-card h3,
.student-flashcard-study-card h3,
.student-flashcard-study-face h3 {
    color: #f2f6fc !important;
}

.student-flashcard-demo-area,
.student-flashcard-showcase-area,
.student-flashcard-demo-label {
    color: #8facff !important;
}

.student-flashcard-preview-note {
    color: #9eafc5 !important;
    background: rgba(10, 25, 47, 0.88) !important;
    border: 1px solid rgba(107, 139, 199, 0.14);
}

.student-flashcard-difficulty {
    color: #cbd6e5 !important;
    background: rgba(14, 29, 53, 0.90) !important;
    border-color: rgba(105, 137, 198, 0.20) !important;
}

.student-flashcard-difficulty strong {
    color: #eaf0f8 !important;
}

.student-flashcard-difficulty span {
    color: #8f9fb5 !important;
}

.student-flashcard-difficulty:hover,
.student-flashcard-difficulty.is-selected {
    background: rgba(42, 68, 119, 0.88) !important;
    border-color: rgba(102, 143, 245, 0.48) !important;
    box-shadow: 0 0 0 2px rgba(62, 108, 255, 0.12) !important;
}

.student-flashcard-workspace ::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.student-flashcard-workspace ::-webkit-scrollbar-track {
    background: rgba(4, 13, 27, 0.38);
}

.student-flashcard-workspace ::-webkit-scrollbar-thumb {
    background: rgba(87, 117, 177, 0.58);
    border: 3px solid transparent;
    border-radius: 999px;
    background-clip: padding-box;
}

@media (max-width: 680px) {
    .student-flashcard-workspace {
        border-radius: 18px;
    }
}

/* FLASHCARDS ALUNO WORKSPACE DARK V1 END */

/* FLASHCARDS HIDE COPY CLEAN DASHBOARD V1 APP START */
.student-flashcard-showcase-mode > span:nth-child(2),
.student-flashcard-showcase-footer {
    display: none !important;
}
/* FLASHCARDS HIDE COPY CLEAN DASHBOARD V1 APP END */

/* STUDENT_PAGES_EXCLUSIVE_ROUTING_V1_START */
html.student-route-flashcards-pending
#student-view > .page-heading,
html.student-route-flashcards-pending
#shared-dashboard-stats,
html.student-route-flashcards-pending
#student-courses,
html.student-flashcards-empty-page-mode
#student-view > .page-heading,
html.student-flashcards-empty-page-mode
#shared-dashboard-stats,
html.student-flashcards-empty-page-mode
#student-courses {
    display: none !important;
}

html.student-route-flashcards-pending
#student-content:not(.student-flashcards-empty-page) {
    display: none !important;
}

html.student-flashcards-empty-page-mode
#student-content.student-flashcards-empty-page {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    min-height: calc(100vh - 96px) !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.student-flashcards-empty-heading,
.student-flashcards-empty-heading h1 {
    margin: 0;
}
/* STUDENT_PAGES_EXCLUSIVE_ROUTING_V1_END */\n\n/* STUDENT_PAGES_HARD_ISOLATION_V1_START */
html[data-student-page="flashcards"]
#student-view > .page-heading,
html[data-student-page="flashcards"]
#shared-dashboard-stats,
html[data-student-page="flashcards"]
#student-courses,
html[data-student-page="flashcards"]
#student-flashcard-widget,
html[data-student-page="flashcards"]
#student-instructor-flashcard-widget {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

html[data-student-page="flashcards"]
#student-content.student-flashcards-empty-page {
    display: block !important;
    visibility: visible !important;
    width: 100% !important;
    max-width: none !important;
    min-height: calc(100vh - 96px) !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

html[data-student-page="flashcards"]
#student-view {
    display: block !important;
}

.student-flashcards-empty-heading,
.student-flashcards-empty-heading h1 {
    margin: 0;
}
/* STUDENT_PAGES_HARD_ISOLATION_V1_END */

/* STUDENT_OWN_FLASHCARDS_PAGE_V1_START */
html[data-student-page="videoaulas"]
#student-flashcard-widget {
    display: none !important;
}

html[data-student-page="my-flashcards"]
#student-view > .page-heading,
html[data-student-page="my-flashcards"]
#shared-dashboard-stats,
html[data-student-page="my-flashcards"]
#student-courses,
html[data-student-page="my-flashcards"]
#student-instructor-flashcard-widget {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

html[data-student-page="my-flashcards"]
#student-content.student-own-flashcards-page-shell {
    display: block !important;
    visibility: visible !important;
    width: 100% !important;
    max-width: none !important;
    min-height: calc(100vh - 96px) !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

html[data-student-page="my-flashcards"]
#student-view {
    display: block !important;
}

.student-own-flashcards-page-shell
.student-flashcards-empty-heading p {
    margin: 8px 0 0;
    color: #aab8cd;
}

.student-own-flashcards-page {
    display: grid;
    grid-template-columns: minmax(300px, 360px);
    align-items: start;
    justify-content: start;
    width: 100%;
    margin-top: 28px;
}

.student-own-flashcards-page
> #student-flashcard-widget,
.student-own-flashcards-page
> #student-flashcard-widget
.student-flashcard-showcase {
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: var(--student-uniform-card-height, 570px) !important;
    min-height: var(--student-uniform-card-height, 570px) !important;
    max-height: var(--student-uniform-card-height, 570px) !important;
    margin: 0 !important;
    overflow: hidden !important;
}

.student-own-flashcards-page
> #student-flashcard-widget
.student-flashcard-showcase-stage {
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    overflow: hidden !important;
}

.student-own-flashcards-page
> #student-flashcard-widget
.student-flashcard-showcase-card {
    max-height: 100% !important;
    min-height: 0 !important;
    overflow: hidden !important;
}

@media (max-width: 720px) {
    .student-own-flashcards-page {
        grid-template-columns: minmax(0, 1fr);
    }
}
/* STUDENT_OWN_FLASHCARDS_PAGE_V1_END */


/* USER_CHANGE_PASSWORD_V1_START */
.student-premium-sidebar-user {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    color: inherit;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 12px;
    text-align: left;
    cursor: pointer;
    transition: background 150ms ease, border-color 150ms ease;
}

.student-premium-sidebar-user:hover,
.student-premium-sidebar-user:focus-visible {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(139, 164, 210, 0.12);
    outline: none;
}

body.student-password-modal-open { overflow: hidden; }

.student-password-modal {
    position: fixed;
    z-index: 30000;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(2, 8, 23, 0.72);
    backdrop-filter: blur(7px);
}

.student-password-modal[hidden] { display: none !important; }

.student-password-dialog {
    width: min(480px, 100%);
    overflow: hidden;
    border: 1px solid rgba(113, 145, 207, 0.25);
    border-radius: 22px;
    background: linear-gradient(155deg, rgba(17, 32, 58, 0.99), rgba(9, 20, 38, 0.99));
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.46);
}

.student-password-dialog > header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 24px 25px 20px;
    border-bottom: 1px solid rgba(139, 164, 210, 0.12);
}

.student-password-dialog > header span {
    color: #6f9cff;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.13em;
}

.student-password-dialog > header h2 { margin: 6px 0 5px; color: #f4f7fc; }
.student-password-dialog > header p { margin: 0; color: #91a2bd; font-size: 13px; }

.student-password-close {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    color: #bdc9dc;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(139, 164, 210, 0.12);
    border-radius: 11px;
    font-size: 24px;
    cursor: pointer;
}

#student-password-form { display: grid; gap: 16px; padding: 23px 25px 25px; }
#student-password-form label { display: grid; gap: 8px; color: #cbd5e1; font-size: 13px; font-weight: 750; }

#student-password-form input {
    box-sizing: border-box;
    width: 100%;
    padding: 12px 13px;
    color: #f8fafc;
    background: #0b182c;
    border: 1px solid rgba(139, 164, 210, 0.2);
    border-radius: 11px;
    outline: none;
}

#student-password-form input:focus {
    border-color: rgba(81, 126, 255, 0.72);
    box-shadow: 0 0 0 3px rgba(63, 109, 255, 0.12);
}

#student-password-form footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 4px;
}
/* USER_CHANGE_PASSWORD_V1_END */

/* COURSES_LESSONS_LAYOUT_V1_START */
/* Normalização exclusiva da página Cursos e Aulas. */
body.admin-layout-active [data-admin-panel="courses"] {
  --courses-gap: 18px;
  min-width: 0;
}

body.admin-layout-active [data-admin-panel="courses"] *,
body.admin-layout-active [data-admin-panel="courses"] *::before,
body.admin-layout-active [data-admin-panel="courses"] *::after {
  box-sizing: border-box;
}

body.admin-layout-active [data-admin-panel="courses"] .admin-courses-workspace {
  display: grid;
  grid-template-columns: minmax(320px, .92fr) minmax(420px, 1.08fr);
  align-items: stretch;
  gap: var(--courses-gap);
  width: 100%;
  margin-bottom: var(--courses-gap);
}

body.admin-layout-active [data-admin-panel="courses"] .admin-courses-workspace > .panel {
  min-width: 0;
  min-height: 322px;
  margin: 0;
  padding: 20px;
  overflow: hidden;
}

body.admin-layout-active [data-admin-panel="courses"] .panel {
  min-width: 0;
  border-radius: 15px;
}

body.admin-layout-active [data-admin-panel="courses"] .panel > h2 {
  margin: 0 0 14px;
  font-size: clamp(18px, 1.35vw, 22px);
  line-height: 1.2;
}

body.admin-layout-active [data-admin-panel="courses"] #course-form {
  display: grid;
  gap: 14px;
  max-width: none;
}

body.admin-layout-active [data-admin-panel="courses"] #course-form label,
body.admin-layout-active [data-admin-panel="courses"] .admin-video-upload label,
body.admin-layout-active [data-admin-panel="courses"] .ready-video-selector label {
  display: grid;
  min-width: 0;
  gap: 7px;
  margin: 0;
  font-size: 13px;
  font-weight: 650;
}

body.admin-layout-active [data-admin-panel="courses"] input,
body.admin-layout-active [data-admin-panel="courses"] textarea,
body.admin-layout-active [data-admin-panel="courses"] select {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 10px;
  outline: none;
}

body.admin-layout-active [data-admin-panel="courses"] textarea {
  min-height: 86px;
  max-height: 180px;
  resize: vertical;
}

body.admin-layout-active [data-admin-panel="courses"] #course-form .primary-button {
  width: 100%;
  min-height: 42px;
  margin-top: 2px;
}

/* O contêiner de campo não pode herdar aparência de botão. */
body.admin-layout-active [data-admin-panel="courses"] .admin-video-field-action {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
  min-width: 0;
  padding: 0;
  color: inherit;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0;
  box-shadow: none !important;
}

body.admin-layout-active [data-admin-panel="courses"] .admin-quick-create-button {
  min-width: 118px;
  min-height: 42px;
  white-space: nowrap;
}

body.admin-layout-active [data-admin-panel="courses"] .ready-video-selector {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
  margin: 0 0 14px;
  padding: 13px;
  color: #edf3fb;
  background: rgba(7, 17, 33, .62);
  border: 1px solid rgba(126, 151, 201, .18);
  border-radius: 12px;
}

body.admin-layout-active [data-admin-panel="courses"] .ready-video-selector .primary-button {
  min-width: 142px;
  min-height: 42px;
}

body.admin-layout-active [data-admin-panel="courses"] #player-empty {
  display: grid;
  place-items: center;
  min-height: 110px;
  padding: 22px;
  background: rgba(7, 17, 33, .34);
}

body.admin-layout-active [data-admin-panel="courses"] #player-area {
  min-width: 0;
}

body.admin-layout-active [data-admin-panel="courses"] #video-player {
  display: block;
  width: 100%;
  max-height: 430px;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #030914;
}

body.admin-layout-active [data-admin-panel="courses"] .admin-video-upload {
  margin: 0 0 20px;
  padding: 18px;
  overflow: hidden;
  background: rgba(7, 17, 33, .42);
  border-radius: 13px;
}

body.admin-layout-active [data-admin-panel="courses"] .admin-video-upload-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
}

body.admin-layout-active [data-admin-panel="courses"] .admin-video-upload input[type="file"] {
  min-height: 44px;
  padding: 6px;
  color: #a9b6ca;
  background: rgba(7, 17, 33, .86);
}

body.admin-layout-active [data-admin-panel="courses"] .admin-video-upload input[type="file"]::file-selector-button {
  min-height: 32px;
  margin-right: 10px;
  padding: 6px 10px;
  color: #edf3fb;
  background: rgba(39, 65, 111, .78);
  border: 1px solid rgba(117, 145, 205, .28);
  border-radius: 8px;
}

body.admin-layout-active [data-admin-panel="courses"] .admin-video-upload-footer {
  align-items: center;
  min-width: 0;
  margin-top: 16px;
}

body.admin-layout-active [data-admin-panel="courses"] #admin-video-upload-status {
  min-width: 0;
  overflow-wrap: anywhere;
}

body.admin-layout-active [data-admin-panel="courses"] .table-wrapper {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid rgba(130, 158, 207, .10);
  border-radius: 11px;
}

body.admin-layout-active [data-admin-panel="courses"] table {
  width: 100%;
  min-width: 720px;
  table-layout: auto;
}

body.admin-layout-active [data-admin-panel="courses"] th,
body.admin-layout-active [data-admin-panel="courses"] td {
  min-width: 0;
  padding: 12px 10px;
  vertical-align: middle;
}

body.admin-layout-active [data-admin-panel="courses"] td:first-child,
body.admin-layout-active [data-admin-panel="courses"] th:first-child {
  width: 42%;
  overflow-wrap: anywhere;
}

body.admin-layout-active [data-admin-panel="courses"] td:nth-child(3),
body.admin-layout-active [data-admin-panel="courses"] th:nth-child(3) {
  overflow-wrap: anywhere;
  word-break: break-word;
}

body.admin-layout-active [data-admin-panel="courses"] .course-actions-heading,
body.admin-layout-active [data-admin-panel="courses"] .course-actions-cell {
  width: 96px;
  white-space: nowrap;
}

body.admin-layout-active [data-admin-panel="courses"] .video-admin-actions {
  flex-wrap: nowrap;
  white-space: nowrap;
}

body.admin-layout-active [data-admin-panel="courses"] .badge {
  max-width: 100%;
  white-space: nowrap;
}

@media (max-width: 1100px) {
  body.admin-layout-active [data-admin-panel="courses"] .admin-courses-workspace {
    grid-template-columns: 1fr;
  }
  body.admin-layout-active [data-admin-panel="courses"] .admin-courses-workspace > .panel {
    min-height: 0;
  }
}

@media (max-width: 780px) {
  body.admin-layout-active [data-admin-panel="courses"] .admin-video-upload-grid,
  body.admin-layout-active [data-admin-panel="courses"] .ready-video-selector,
  body.admin-layout-active [data-admin-panel="courses"] .admin-video-field-action {
    grid-template-columns: 1fr;
  }
  body.admin-layout-active [data-admin-panel="courses"] .admin-quick-create-button,
  body.admin-layout-active [data-admin-panel="courses"] .ready-video-selector .primary-button,
  body.admin-layout-active [data-admin-panel="courses"] .admin-video-upload-footer .primary-button {
    width: 100%;
  }
  body.admin-layout-active [data-admin-panel="courses"] .admin-video-upload-footer {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  body.admin-layout-active [data-admin-panel="courses"] .panel,
  body.admin-layout-active [data-admin-panel="courses"] .admin-courses-workspace > .panel {
    padding: 15px;
    border-radius: 13px;
  }
  body.admin-layout-active [data-admin-panel="courses"] .admin-video-upload {
    padding: 14px;
  }
}
/* COURSES_LESSONS_LAYOUT_V1_END */

/* COURSES_STATUS_VISIBILITY_V1_START */
/* Status legíveis no tema escuro da página Cursos e Aulas. */
body.admin-layout-active [data-admin-panel="courses"] .badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 82px;
  min-height: 28px;
  padding: 5px 11px;
  color: #dbe7fb;
  background: rgba(74, 103, 160, .22);
  border: 1px solid rgba(126, 157, 220, .28);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .01em;
  text-align: center;
  text-shadow: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
}

body.admin-layout-active [data-admin-panel="courses"] .badge.draft {
  color: #dce8ff !important;
  background: rgba(61, 102, 190, .26) !important;
  border-color: rgba(105, 148, 238, .38) !important;
}

body.admin-layout-active [data-admin-panel="courses"] .badge.published,
body.admin-layout-active [data-admin-panel="courses"] .badge.ready,
body.admin-layout-active [data-admin-panel="courses"] .badge.active {
  color: #87efbd !important;
  background: rgba(25, 126, 88, .24) !important;
  border-color: rgba(70, 196, 139, .28) !important;
}

body.admin-layout-active [data-admin-panel="courses"] .badge.processing,
body.admin-layout-active [data-admin-panel="courses"] .badge.queued {
  color: #ffe08a !important;
  background: rgba(161, 112, 19, .24) !important;
  border-color: rgba(238, 180, 57, .26) !important;
}

body.admin-layout-active [data-admin-panel="courses"] .badge.failed,
body.admin-layout-active [data-admin-panel="courses"] .badge.cancelled {
  color: #ffadb5 !important;
  background: rgba(153, 44, 61, .23) !important;
  border-color: rgba(236, 85, 105, .26) !important;
}

body.admin-layout-active [data-admin-panel="courses"] td:nth-child(2),
body.admin-layout-active [data-admin-panel="courses"] th:nth-child(2) {
  width: 118px;
  min-width: 118px;
  white-space: nowrap;
}
/* COURSES_STATUS_VISIBILITY_V1_END */


/* PASSWORD_RESET_EMAIL_V1_START */
.forgot-password-button{margin-top:10px;width:100%;border:0;background:transparent;color:#9fc3ff;font-weight:700;cursor:pointer;padding:10px;border-radius:10px}.forgot-password-button:hover,.forgot-password-button:focus-visible{background:rgba(59,130,246,.12);color:#fff}.password-reset-modal{position:fixed;inset:0;z-index:10000;display:grid;place-items:center;padding:20px;background:rgba(2,8,23,.76);backdrop-filter:blur(8px)}.password-reset-modal[hidden]{display:none}.password-reset-dialog{position:relative;width:min(440px,100%);padding:30px;border:1px solid rgba(96,165,250,.42);border-radius:22px;background:linear-gradient(155deg,#132748,#0b1c36);box-shadow:0 28px 80px rgba(0,0,0,.45)}.password-reset-dialog h2{margin:0 42px 8px 0;font-size:1.55rem}.password-reset-dialog p{color:#afbdd2;line-height:1.5}.password-reset-dialog form{display:grid;gap:16px;margin-top:20px}.password-reset-dialog label{display:grid;gap:7px;font-weight:700}.password-reset-dialog input{width:100%;min-height:48px;padding:0 14px;border:1px solid #34527b;border-radius:12px;background:#07162b;color:#fff}.password-reset-dialog form button{min-height:48px;border:0;border-radius:12px;background:linear-gradient(90deg,#3478ff,#5b46ef);color:#fff;font-weight:800;cursor:pointer}.password-reset-close{position:absolute;right:16px;top:14px;width:40px;height:40px;border:1px solid #34527b;border-radius:12px;background:#10243f;color:#c7d5e8;font-size:24px;cursor:pointer}.password-reset-message{min-height:22px;margin-top:16px;color:#bad3ff}.password-reset-open{overflow:hidden}@media(max-width:520px){.password-reset-dialog{padding:24px 18px;border-radius:18px}}
/* PASSWORD_RESET_EMAIL_V1_END */

/* PASSWORD_RESET_UI_CONTRAST_V1_START */
.password-reset-dialog {
  color: #f8fafc !important;
}

.password-reset-dialog h2,
.password-reset-dialog #password-reset-title {
  color: #ffffff !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

.password-reset-dialog p,
.password-reset-dialog #password-reset-description {
  color: #cbd5e1 !important;
  opacity: 1 !important;
}

.password-reset-dialog label {
  color: #e5edf8 !important;
  opacity: 1 !important;
}

.password-reset-dialog input {
  color: #ffffff !important;
  caret-color: #ffffff;
  background: #07162b !important;
  border-color: #3b5f8f !important;
}

.password-reset-dialog input::placeholder {
  color: #91a4bd !important;
  opacity: 1 !important;
}

.password-reset-dialog input:focus {
  border-color: #60a5fa !important;
  outline: 3px solid rgba(96, 165, 250, .18) !important;
  box-shadow: 0 0 0 1px rgba(96, 165, 250, .35) !important;
}

.password-reset-dialog form button {
  color: #ffffff !important;
  opacity: 1 !important;
}

.password-reset-close {
  color: #dbeafe !important;
  opacity: 1 !important;
}

.password-reset-message,
#password-reset-message,
#password-reset-login-message {
  color: #bfdbfe !important;
  opacity: 1 !important;
}
/* PASSWORD_RESET_UI_CONTRAST_V1_END */



/* LOGIN_ORIGINAL_WALLPAPER_SOFT_PURPLE_V1_START */

#login-view .login-card {
    border-color: rgba(119, 93, 183, 0.34);
    box-shadow:
        0 22px 58px rgba(0, 0, 0, 0.28),
        0 0 22px rgba(105, 73, 174, 0.045);
}

#login-view .login-brand-nexus-med,
#login-view .login-brand-nexus-med span,
#login-view .login-brand-nexus-med strong {
    text-shadow:
        0 0 8px rgba(126, 88, 197, 0.07);
}

#login-view .primary-button,
#login-view #login-button {
    background:
        linear-gradient(
            90deg,
            #3d78ff 0%,
            #4f66ef 58%,
            #6650dd 100%
        );
    box-shadow:
        0 8px 18px rgba(72, 63, 175, 0.12);
}

/* LOGIN_ORIGINAL_WALLPAPER_SOFT_PURPLE_V1_END */

/* LOGIN_LOGO_NEXUS_FULL_V1_START */

#login-view .login-logo-nexus-full {
    display: grid;
    justify-items: center;
    width: 100%;
    margin: 0 0 24px;
    color: #f4f5fa;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system,
        BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1;
    user-select: none;
}

#login-view .login-logo-nexus-word {
    display: grid;
    grid-template-columns: auto clamp(64px, 5.4vw, 92px) auto;
    align-items: center;
    justify-content: center;
    column-gap: clamp(6px, 0.75vw, 13px);
    min-height: clamp(72px, 6vw, 100px);
}

#login-view .login-logo-nexus-ne,
#login-view .login-logo-nexus-us {
    color: rgba(246, 247, 251, 0.98);
    font-size: clamp(34px, 3.2vw, 54px);
    font-weight: 300;
    letter-spacing: 0.08em;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

#login-view .login-logo-nexus-x {
    position: relative;
    display: block;
    width: clamp(64px, 5.4vw, 92px);
    height: clamp(72px, 6vw, 100px);
    filter: drop-shadow(0 0 7px rgba(119, 70, 223, 0.28));
}

#login-view .login-logo-nexus-x-stroke {
    position: absolute;
    left: 50%;
    top: 50%;
    width: clamp(14px, 1.15vw, 19px);
    height: 112%;
    border: 1px solid rgba(215, 197, 255, 0.54);
    border-radius: 3px;
    transform-origin: center;
    background: linear-gradient(
        180deg,
        #8b68f2 0%,
        #7548de 46%,
        #5127b7 100%
    );
    box-shadow:
        inset 0 0 6px rgba(255, 255, 255, 0.13),
        0 0 8px rgba(113, 61, 212, 0.23);
}

#login-view .login-logo-nexus-x-a {
    transform: translate(-50%, -50%) rotate(45deg);
}

#login-view .login-logo-nexus-x-b {
    transform: translate(-50%, -50%) rotate(-45deg);
    background: linear-gradient(
        180deg,
        #9c71f5 0%,
        #7544df 48%,
        #4b24aa 100%
    );
}

#login-view .login-logo-nexus-medline {
    display: grid;
    grid-template-columns: minmax(42px, 1fr) auto minmax(42px, 1fr);
    align-items: center;
    gap: 18px;
    width: min(100%, 340px);
    margin-top: -2px;
}

#login-view .login-logo-nexus-line {
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(110, 62, 216, 0.70) 100%
    );
}

#login-view .login-logo-nexus-line:last-child {
    background: linear-gradient(
        90deg,
        rgba(110, 62, 216, 0.70) 0%,
        transparent 100%
    );
}

#login-view .login-logo-nexus-med {
    color: #7d4be0;
    font-size: clamp(24px, 2.2vw, 34px);
    font-weight: 600;
    letter-spacing: 0.31em;
    text-indent: 0.31em;
    text-shadow: 0 0 8px rgba(115, 63, 211, 0.16);
}

#login-view .login-logo-nexus-platform {
    margin-top: 12px;
    color: rgba(242, 243, 248, 0.92);
    font-size: clamp(13px, 1.25vw, 18px);
    font-weight: 400;
    letter-spacing: 0.45em;
    text-indent: 0.45em;
}

#login-view .login-logo-nexus-full + .muted {
    margin-top: 0;
}

@media (max-width: 620px) {
    #login-view .login-logo-nexus-word {
        grid-template-columns: auto 56px auto;
        column-gap: 5px;
        min-height: 66px;
    }

    #login-view .login-logo-nexus-ne,
    #login-view .login-logo-nexus-us {
        font-size: clamp(27px, 9vw, 38px);
    }

    #login-view .login-logo-nexus-x {
        width: 56px;
        height: 66px;
    }

    #login-view .login-logo-nexus-medline {
        width: min(100%, 275px);
        gap: 12px;
    }

    #login-view .login-logo-nexus-med {
        font-size: 21px;
    }

    #login-view .login-logo-nexus-platform {
        font-size: 11px;
        letter-spacing: 0.35em;
        text-indent: 0.35em;
    }
}

/* LOGIN_LOGO_NEXUS_FULL_V1_END */

/* NEXUS_STUDENT_PLAYBACK_CONTROLS_V1_R32_R3_START */
#student-modern-player-shell
#student-modern-center-play {
    position: absolute;
    z-index: 5;
    top: 50%;
    left: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 92px;
    height: 92px;
    padding: 0;
    color: #ffffff;
    background: rgba(38, 91, 230, 0.94);
    border: 2px solid rgba(255, 255, 255, 0.82);
    border-radius: 50%;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.38);
    cursor: pointer;
    transform: translate(-50%, -50%);
    transition:
        opacity 140ms ease,
        transform 140ms ease;
}

#student-modern-player-shell
#student-modern-center-play span {
    padding-left: 3px;
    font-size: 28px;
    line-height: 1;
}

#student-modern-player-shell
#student-modern-center-play small {
    font-size: 10px;
    font-weight: 800;
}

#student-modern-player-shell
#student-modern-center-play:hover:not(:disabled) {
    transform:
        translate(-50%, -50%)
        scale(1.05);
}

#student-modern-player-shell
#student-modern-center-play:disabled {
    opacity: 0;
    pointer-events: none;
}

#student-modern-player-shell.is-playing
#student-modern-center-play,
#student-modern-center-play[hidden] {
    display: none !important;
}

#student-modern-player-shell.is-loading
#student-modern-center-play {
    opacity: 0;
    pointer-events: none;
}
/* NEXUS_STUDENT_PLAYBACK_CONTROLS_V1_R32_R3_END */

/* NEXUS_STUDENT_PICTURE_IN_PICTURE_V1_R33_START */
#student-modern-player-shell
#student-modern-pip {
    position: absolute;
    z-index: 7;
    top: 16px;
    right: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 40px;
    padding: 9px 12px;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    background: rgba(4, 12, 30, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 10px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(8px);
    cursor: pointer;
    transition:
        opacity 140ms ease,
        transform 140ms ease,
        background 140ms ease;
}

#student-modern-player-shell
#student-modern-pip:hover:not(:disabled) {
    background: rgba(38, 91, 230, 0.96);
    transform: translateY(-1px);
}

#student-modern-player-shell
#student-modern-pip.is-active {
    background: rgba(38, 91, 230, 0.96);
}

#student-modern-player-shell
#student-modern-pip span {
    font-size: 18px;
    line-height: 1;
}

#student-modern-player-shell
#student-modern-pip small {
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

#student-modern-player-shell
#student-modern-pip:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

#student-modern-player-shell
#student-modern-pip[hidden] {
    display: none !important;
}

@media (max-width: 720px) {
    #student-modern-player-shell
    #student-modern-pip {
        top: 10px;
        right: 10px;
        width: 40px;
        min-height: 40px;
        padding: 0;
    }

    #student-modern-player-shell
    #student-modern-pip small {
        display: none;
    }

    #student-modern-player-shell
    #student-modern-pip span {
        font-size: 19px;
    }
}
/* NEXUS_STUDENT_PICTURE_IN_PICTURE_V1_R33_END */

/* NEXUS_SIDEBAR_LABEL_STATE_SYNC_V1_R35_R3_START */
.student-premium-sidebar-brand-copy,
.student-premium-nav-label,
.student-premium-sidebar-user-copy,
.admin-sidebar-brand-text,
.admin-nav-label,
.nexus-ux-v6-admin-identity,
.nexus-ux-v6-admin-identity > strong,
.nexus-ux-v6-admin-identity > small {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateX(-7px);
    transition: opacity 150ms ease, transform 180ms ease;
}

html.nexus-sidebar-expanded-v6-r5 .student-premium-sidebar.nexus-sidebar-labels-open-r35 .student-premium-sidebar-brand-copy,
html.nexus-sidebar-expanded-v6-r5 .student-premium-sidebar.nexus-sidebar-labels-open-r35 .student-premium-nav-label,
html.nexus-sidebar-expanded-v6-r5 .student-premium-sidebar.nexus-sidebar-labels-open-r35 .student-premium-sidebar-user-copy,
html.nexus-sidebar-expanded-v6-r5 .admin-sidebar.nexus-sidebar-labels-open-r35 .admin-sidebar-brand-text,
html.nexus-sidebar-expanded-v6-r5 .admin-sidebar.nexus-sidebar-labels-open-r35 .admin-nav-label,
html.nexus-sidebar-expanded-v6-r5 .admin-sidebar.nexus-sidebar-labels-open-r35 .nexus-ux-v6-admin-identity,
html.nexus-sidebar-expanded-v6-r5 .admin-sidebar.nexus-sidebar-labels-open-r35 .nexus-ux-v6-admin-identity > strong,
html.nexus-sidebar-expanded-v6-r5 .admin-sidebar.nexus-sidebar-labels-open-r35 .nexus-ux-v6-admin-identity > small {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(0) !important;
}

html.nexus-sidebar-expanded-v6-r5 .student-premium-sidebar.nexus-sidebar-labels-open-r35 .student-premium-sidebar-user-copy,
html.nexus-sidebar-expanded-v6-r5 .student-premium-sidebar.nexus-sidebar-labels-open-r35 .student-premium-sidebar-brand-copy,
html.nexus-sidebar-expanded-v6-r5 .admin-sidebar.nexus-sidebar-labels-open-r35 .admin-sidebar-brand-text,
html.nexus-sidebar-expanded-v6-r5 .admin-sidebar.nexus-sidebar-labels-open-r35 .nexus-ux-v6-admin-identity {
    min-width: 0;
}
/* NEXUS_SIDEBAR_LABEL_FIT_V1_START */
html.nexus-sidebar-expanded-v6-r5 .admin-nav-button .admin-nav-label,
html.nexus-sidebar-expanded-v6-r5 .student-premium-nav-button .student-premium-nav-label {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

html.nexus-sidebar-expanded-v6-r5 .admin-nav-button .nexus-student-ux-badge,
html.nexus-sidebar-expanded-v6-r5 .student-premium-nav-button .nexus-student-ux-badge {
    flex: 0 0 auto;
    margin-left: -6px; /* NEXUS_SIDEBAR_BADGES_ALL_PAGES_V1: o rótulo mais longo (Flashcards Shared) cabe inteiro ao lado do número */
}

/* NEXUS_SIDEBAR_BADGES_MORE_PAGES_V1: "Central de Documentos" é o rótulo mais longo do menu; com o número ao lado ele ganha um pouco de folga para não ser cortado */
html.nexus-sidebar-expanded-v6-r5 .admin-nav-button[data-nexus-documents-nav-r19]:has(.nexus-student-ux-badge) .admin-nav-label {
    font-size: 13px;
    letter-spacing: -0.04em;
}

html.nexus-sidebar-expanded-v6-r5 .admin-nav-button[data-nexus-documents-nav-r19] .nexus-student-ux-badge {
    margin-left: -8px;
}
/* NEXUS_SIDEBAR_LABEL_FIT_V1_END */
/* NEXUS_SIDEBAR_BADGE_EXPANDED_ONLY_V1_START */
.admin-nav-button .nexus-student-ux-badge,
.student-premium-nav-button .nexus-student-ux-badge {
    display: none !important;
}

html.nexus-sidebar-expanded-v6-r5 .admin-sidebar.nexus-sidebar-labels-open-r35 .admin-nav-button .nexus-student-ux-badge,
html.nexus-sidebar-expanded-v6-r5 .student-premium-sidebar.nexus-sidebar-labels-open-r35 .student-premium-nav-button .nexus-student-ux-badge,
body.nexus-admin-sidebar-open-r24 .admin-sidebar .admin-nav-button .nexus-student-ux-badge {
    display: inline-flex !important;
}
/* NEXUS_SIDEBAR_BADGE_EXPANDED_ONLY_V1_END */
/* NEXUS_SIDEBAR_LABEL_STATE_SYNC_V1_R35_R3_END */

/* NEXUS_SESSION_UI_RESET_V1_START */
/* As regras html[data-student-page=...] #student-view { display:block !important } venciam o atributo hidden;
   uma view marcada como oculta nunca é exibida. */
html body #student-view[hidden],
html body #admin-view[hidden],
html[data-student-page] body #student-view[hidden] {
    display: none !important;
}
/* NEXUS_SESSION_UI_RESET_V1_END */

