.student-login-page {
    width: min(620px, calc(100% - 32px));
    margin: 42px auto 90px;
}

.student-back-link {
    display: inline-block;
    margin-bottom: 18px;
    color: #087763;
    font-weight: 800;
    text-decoration: none;
}

.student-login-card {
    padding: clamp(26px, 6vw, 48px);
    border: 1px solid #dce8e4;
    border-radius: 26px;
    background: linear-gradient(150deg, #f2fbf7, #fff 48%);
    box-shadow: 0 20px 60px #123b2d12;
}

.student-login-icon {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    margin-bottom: 20px;
    border-radius: 17px;
    background: #087763;
    color: #fff;
    font-size: 26px;
}

.student-login-card h1,
.student-portal-header h1 {
    margin: 10px 0 8px;
    color: #15333b;
    font: 800 clamp(32px, 7vw, 48px)/1.08 Manrope, sans-serif;
    letter-spacing: -1.8px;
}

.student-login-intro {
    margin: 0 0 24px;
    color: #577078;
    line-height: 1.7;
}

.student-login-form {
    display: grid;
    gap: 17px;
}

.student-login-form label {
    display: grid;
    gap: 8px;
    color: #29454c;
    font-size: 13px;
    font-weight: 800;
}

.student-login-form input {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid #cadbd5;
    border-radius: 11px;
    background: #fff;
    color: #17353b;
    font: inherit;
    font-weight: 500;
}

.student-login-form input:focus-visible {
    outline: 3px solid #08776344;
    border-color: #087763;
}

.student-login-form label small {
    color: #6b8187;
    font-size: 12px;
    font-weight: 500;
}

.student-login-form .button {
    justify-content: center;
    min-height: 50px;
}

.student-status-message,
.student-error-message {
    margin: 0 0 18px;
    padding: 13px 15px;
    border-radius: 11px;
    line-height: 1.55;
}

.student-status-message {
    border: 1px solid #b7e4d0;
    background: #eaf8f0;
    color: #145a3d;
}

.student-error-message {
    border: 1px solid #efc2c2;
    background: #fff1f1;
    color: #8e2727;
}

.student-resend-form {
    margin-top: 13px;
}

.student-text-button {
    padding: 8px 0;
    border: 0;
    background: transparent;
    color: #087763;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.student-login-note {
    display: grid;
    gap: 6px;
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px solid #dce8e4;
    color: #62777c;
    font-size: 12px;
    line-height: 1.6;
}

.student-login-note strong {
    color: #29454c;
}

.student-demo-login {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #dce8e4;
}

.student-demo-login summary {
    color: #087763;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.student-demo-login p {
    color: #62777c;
    font-size: 12px;
    line-height: 1.6;
}

.student-demo-login .student-error-message {
    margin-top: 14px;
}

.student-portal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.student-portal-header h1 {
    font-size: clamp(30px, 5vw, 46px);
    letter-spacing: -1.6px;
}

.student-portal-header p {
    margin: 8px 0 0;
    color: #60777e;
    line-height: 1.6;
}

.student-portal-header form {
    flex: 0 0 auto;
}

.student-portal-header button {
    padding: 10px 14px;
    border: 1px solid #cddcd7;
    border-radius: 10px;
    background: #fff;
    color: #36545a;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.student-portal-anchor-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin: 0 0 22px;
}

.student-portal-anchor-nav a {
    padding: 9px 12px;
    border: 1px solid #dce8e4;
    border-radius: 999px;
    background: #fff;
    color: #36545a;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.student-portal-anchor-nav a:hover {
    border-color: #087763;
    color: #087763;
}

.student-portal-section {
    scroll-margin-top: 24px;
}

.student-demo-banner {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 22px;
    padding: 16px 18px;
    border: 1px solid #efd28d;
    border-radius: 14px;
    background: #fff8df;
    color: #695114;
    line-height: 1.6;
}

.student-demo-banner strong {
    white-space: nowrap;
}

.student-demo-banner span {
    font-size: 13px;
}

.student-payment-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-top: 1px solid #e3ece8;
    color: #36545a;
    font-size: 13px;
}

.student-payment-row strong {
    color: #15333b;
    white-space: nowrap;
}

/* Learner dashboards */
.student-demo-dashboard,
.student-learner-dashboard {
    width: min(1180px, calc(100% - 48px));
    margin: 48px auto 104px;
}

.student-demo-dashboard {
    color: #172f3b;
}

.student-portal-header {
    align-items: center;
    margin-bottom: 26px;
    padding: 0 2px;
}

.student-portal-header .section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #087c72;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .13em;
}

.student-portal-header .section-label::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #16a394;
    box-shadow: 0 0 0 4px #16a39420;
}

.student-portal-header h1 {
    margin-top: 12px;
    color: #102c3d;
    font-size: clamp(30px, 4vw, 42px);
    letter-spacing: -1.5px;
}

.student-portal-header p {
    color: #647984;
    font-size: 14px;
}

.student-portal-header button {
    min-height: 42px;
    padding: 0 17px;
    border-color: #d8e4e9;
    border-radius: 11px;
    color: #385363;
    transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.student-portal-header button:hover {
    transform: translateY(-1px);
    border-color: #b9d2d8;
    background: #f5fafb;
}

.student-demo-dashboard .student-demo-banner {
    gap: 14px;
    align-items: center;
    margin-bottom: 22px;
    padding: 15px 18px;
    border-color: #f0dca7;
    border-radius: 14px;
    background: linear-gradient(105deg, #fff9e9, #fffdf6);
    box-shadow: 0 5px 16px #9a74230b;
}

.student-demo-dashboard .student-demo-banner strong {
    color: #73571a;
    font-size: 13px;
}

.student-demo-dashboard .student-demo-banner span {
    color: #7c6a43;
    font-size: 12px;
}

.student-portal-anchor-nav {
    position: sticky;
    z-index: 8;
    top: 12px;
    width: fit-content;
    max-width: 100%;
    gap: 5px;
    margin: 0 0 34px;
    padding: 5px;
    overflow-x: auto;
    border: 1px solid #e4ebef;
    border-radius: 14px;
    background: #ffffffed;
    box-shadow: 0 8px 24px #17364a0b;
    backdrop-filter: blur(12px);
    scrollbar-width: thin;
}

.student-portal-anchor-nav a {
    flex: 0 0 auto;
    padding: 9px 14px;
    border-color: transparent;
    border-radius: 10px;
    color: #5c707b;
    font-size: 12px;
    transition: color .18s ease, background .18s ease, border-color .18s ease;
}

.student-portal-anchor-nav a:hover,
.student-portal-anchor-nav a:focus-visible {
    border-color: #d6ece8;
    background: #eef8f6;
    color: #087c72;
    outline: none;
}

.student-demo-section,
.student-portal-section {
    margin-top: 44px;
    scroll-margin-top: 90px;
}

#demo-overview { margin-top: 0; }

.student-demo-section-heading,
.student-real-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.student-demo-section-heading .section-label,
.student-real-section-heading .section-label {
    color: #13877a;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .14em;
}

.student-demo-section-heading h2,
.student-real-section-heading h2 {
    margin: 6px 0 0;
    color: #153445;
    font: 800 clamp(21px, 2.4vw, 27px)/1.2 Manrope, sans-serif;
    letter-spacing: -.6px;
}

.student-demo-section-heading > .text-link {
    flex: 0 0 auto;
    margin-bottom: 4px;
    color: #087c72;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.student-demo-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

.student-demo-stat {
    position: relative;
    min-width: 0;
    min-height: 142px;
    padding: 20px 21px 18px;
    overflow: hidden;
    border: 1px solid #e0e9ed;
    border-radius: 16px;
    background: linear-gradient(145deg, #fff 0%, #fbfdfe 100%);
    box-shadow: 0 5px 18px #18394d08;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.student-demo-stat:hover {
    transform: translateY(-2px);
    border-color: #c8e1df;
    box-shadow: 0 12px 24px #18394d0c;
}

.student-demo-stat small,
.access-card > div > small {
    display: block;
    color: #71848d;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .09em;
    line-height: 1.5;
}

.student-demo-stat strong {
    display: block;
    margin-top: 11px;
    color: #17394b;
    font: 800 clamp(22px, 2.2vw, 27px)/1.15 Manrope, sans-serif;
    letter-spacing: -.7px;
}

.student-demo-stat > span {
    display: block;
    margin-top: 6px;
    color: #71838c;
    font-size: 12px;
    line-height: 1.5;
}

.student-demo-progress {
    height: 6px;
    margin-top: 14px;
    overflow: hidden;
    border-radius: 999px;
    background: #e8f0f1;
}

.student-demo-progress i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #078a7b, #36c3b0);
    box-shadow: 0 0 12px #12a89336;
}

.student-demo-overview-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
    align-items: stretch;
    gap: 16px;
}

.student-demo-dashboard .access-card {
    min-width: 0;
    min-height: 210px;
    padding: 27px;
    border: 1px solid #e0e9ed;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 24px #18394d09;
    transition: transform .2s ease, box-shadow .2s ease;
}

.student-demo-dashboard .access-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px #18394d10;
}

.student-demo-dashboard .access-card.featured {
    position: relative;
    overflow: hidden;
    border-color: #123d50;
    background: radial-gradient(ellipse at 100% 0%, #155b6b 0%, transparent 48%), linear-gradient(135deg, #092b3c, #0d3548 72%, #104251);
    box-shadow: 0 12px 30px #092b3c20;
}

.student-demo-dashboard .access-card.featured::after {
    position: absolute;
    right: -34px;
    bottom: -70px;
    width: 200px;
    height: 200px;
    border: 1px solid #ffffff12;
    border-radius: 50%;
    box-shadow: 0 0 0 24px #ffffff06, 0 0 0 48px #ffffff04;
    content: "";
    pointer-events: none;
}

.student-demo-dashboard .access-card h3 {
    margin: 10px 0 12px;
    color: #17394b;
    font: 800 19px/1.35 Manrope, sans-serif;
    letter-spacing: -.35px;
}

.student-demo-dashboard .access-card.featured h3 {
    color: #fff;
}

.student-demo-dashboard .access-card p {
    margin: 0 0 12px;
    color: #687d87;
    font-size: 13px;
    line-height: 1.75;
}

.student-demo-dashboard .access-card.featured p {
    color: #c8dce1;
}

.student-demo-dashboard .access-card.featured strong {
    color: #49d7c0;
}

.student-demo-legend {
    flex: 0 0 auto;
    padding: 7px 11px;
    border: 1px solid #e1e9ed;
    border-radius: 999px;
    background: #fff;
    color: #637780;
    font-size: 11px;
}

.student-demo-help,
.student-real-section-heading p {
    max-width: 760px;
    margin: -5px 0 18px;
    color: #6c7f88;
    font-size: 13px;
    line-height: 1.7;
}

.student-demo-module-list,
.student-real-module-list {
    display: grid;
    gap: 10px;
}

.student-demo-module {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e0e9ed;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 4px 14px #18394d06;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.student-demo-module:hover {
    transform: translateY(-1px);
    border-color: #c6dcdf;
    box-shadow: 0 9px 21px #18394d0b;
}

.student-demo-module > summary,
.student-demo-module-summary {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto 20px;
    align-items: center;
    gap: 14px;
    min-height: 76px;
    padding: 13px 17px;
    list-style: none;
}

.student-demo-module-summary {
    grid-template-columns: 48px minmax(0, 1fr) auto;
}

.student-demo-module > summary {
    cursor: pointer;
}

.student-demo-module > summary::-webkit-details-marker {
    display: none;
}

.student-demo-module > summary:focus-visible {
    outline: 3px solid #13a38b55;
    outline-offset: -3px;
}

.student-demo-week {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid #d8e9e7;
    border-radius: 12px;
    background: linear-gradient(145deg, #eef9f6, #e7f3f5);
    color: #087a70;
    font: 800 12px Manrope, sans-serif;
}

.student-demo-module-title {
    display: grid;
    min-width: 0;
    gap: 4px;
}

.student-demo-module-title small {
    color: #82919a;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .11em;
}

.student-demo-module-title strong {
    overflow: hidden;
    color: #203c4a;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.45;
    text-overflow: ellipsis;
}

.student-demo-module-status,
.student-demo-payment-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 27px;
    padding: 4px 10px;
    border: 1px solid #dce8ec;
    border-radius: 999px;
    background: #f7fafb;
    color: #647985;
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
}

.student-demo-module-completed .student-demo-module-status {
    border-color: #cbe9dd;
    background: #effaf5;
    color: #157252;
}

.student-demo-module-in-progress .student-demo-module-status {
    border-color: #f1dfb2;
    background: #fff9e9;
    color: #896617;
}

.student-demo-module-locked {
    background: #f9fbfc;
}

.student-demo-module-locked .student-demo-week {
    border-color: #e5eaed;
    background: #f1f4f6;
    color: #80919a;
}

.student-demo-chevron {
    color: #78909a;
    font-size: 19px;
    text-align: center;
    transition: transform .2s ease;
}

.student-demo-module[open] .student-demo-chevron {
    transform: rotate(45deg);
}

.student-demo-module-body {
    padding: 0 20px 20px 79px;
    border-top: 1px solid #edf1f3;
}

.student-demo-module-body > p {
    margin: 16px 0;
    color: #627883;
    font-size: 13px;
    line-height: 1.7;
}

.student-demo-daily-plan {
    margin-top: 14px;
    padding: 16px;
    border: 1px solid #dce9ef;
    border-radius: 14px;
    background: linear-gradient(145deg, #f5faff, #f7fbfb);
}

.student-demo-daily-plan > strong {
    display: block;
    margin-bottom: 12px;
    color: #284657;
    font-size: 12px;
}

.student-demo-day-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 9px;
}

.student-demo-day-grid article {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 7px;
    padding: 12px;
    border: 1px solid #e2ebef;
    border-radius: 11px;
    background: #fff;
}

.student-demo-day-grid small {
    color: #087a70;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .06em;
}

.student-demo-day-grid article > strong {
    color: #203c4a;
    font-size: 11px;
    line-height: 1.5;
}

.student-demo-day-grid p,
.student-demo-day-grid span,
.student-demo-day-grid em {
    margin: 0;
    color: #687d87;
    font-size: 10px;
    font-style: normal;
    line-height: 1.55;
}

.student-demo-day-grid em {
    color: #456579;
    font-weight: 750;
}

@media (max-width: 860px) {
    .student-demo-day-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
    .student-demo-day-grid { grid-template-columns: 1fr; }
}

.student-demo-module-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.student-demo-module-columns > div,
.student-demo-practical {
    min-width: 0;
    padding: 15px 16px;
    border: 1px solid #e6edef;
    border-radius: 12px;
    background: #f8fbfc;
}

.student-demo-module-columns h3,
.student-demo-practical strong {
    margin: 0 0 7px;
    color: #2d4b59;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
}

.student-demo-module-columns p,
.student-demo-practical p {
    margin: 0;
    color: #687d87;
    font-size: 12px;
    line-height: 1.65;
}

.student-demo-practical {
    margin-top: 12px;
    border-color: #cfe8e3;
    background: #f0faf7;
}

.student-demo-practical strong {
    display: block;
    color: #087a70;
}

.student-demo-dashboard .student-demo-section .access-grid {
    gap: 16px;
}

.student-demo-dashboard .student-demo-section .access-grid .access-card {
    min-height: 190px;
}

.student-demo-dashboard .access-card ul {
    margin: 12px 0 0;
    padding-left: 18px;
    color: #687d87;
    font-size: 13px;
    line-height: 1.75;
}

.student-demo-payment-note {
    margin: 0 0 14px !important;
    padding: 11px 14px !important;
}

.student-demo-payment-table {
    overflow: hidden;
    border: 1px solid #e0e9ed;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 7px 22px #18394d08;
}

.student-demo-payment-table table {
    min-width: 520px;
}

.student-demo-payment-table th {
    padding: 14px 18px;
    background: #f4f8fa;
    color: #6b7e88;
}

.student-demo-payment-table td {
    padding: 16px 18px;
    color: #37515f;
}

.student-demo-payment-table tfoot th {
    border-top: 1px solid #e5ecef;
    background: #f8fbfc;
    color: #1c3c4b;
}

.student-real-module {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    min-width: 0;
    padding: 14px 17px;
    border: 1px solid #e0e9ed;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 4px 14px #18394d06;
}

.student-real-module-info {
    display: grid;
    min-width: 0;
    gap: 4px;
}

.student-real-module-info small {
    color: #82919a;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .11em;
}

.student-real-module-info strong {
    color: #203c4a;
    font-size: 13px;
    line-height: 1.45;
}

.student-real-module-info > span,
.student-real-module-lock {
    color: #71838c;
    font-size: 11px;
    line-height: 1.5;
}

.student-real-module-lock {
    padding: 7px 10px;
    border: 1px solid #e3e9ec;
    border-radius: 999px;
    background: #f7fafb;
    text-align: center;
}

@media (max-width: 760px) {
    .student-demo-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .student-demo-dashboard .access-card {
        min-height: 0;
    }
}

@media (max-width: 600px) {
    .student-login-page {
        margin-top: 26px;
    }

    .student-demo-dashboard,
    .student-learner-dashboard {
        width: calc(100% - 28px);
        margin-top: 26px;
        margin-bottom: 76px;
    }

    .student-portal-header {
        display: block;
    }

    .student-portal-header form {
        margin-top: 15px;
    }

    .student-portal-header button {
        width: 100%;
    }

    .student-demo-banner {
        display: grid;
    }

    .student-demo-dashboard .student-demo-banner {
        gap: 5px;
        padding: 14px;
    }

    .student-demo-section,
    .student-portal-section {
        margin-top: 34px;
    }

    .student-demo-section-heading,
    .student-real-section-heading {
        align-items: flex-start;
    }

    .student-demo-stat-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .student-demo-stat {
        min-height: 0;
        padding: 17px 18px;
    }

    .student-demo-stat strong {
        margin-top: 7px;
    }

    .student-demo-dashboard .access-card {
        padding: 21px;
        border-radius: 15px;
    }

    #demo-curriculum .student-demo-section-heading {
        display: grid;
        gap: 9px;
    }

    .student-demo-legend {
        justify-self: start;
    }

    .student-demo-module > summary,
    .student-demo-module-summary {
        grid-template-columns: 40px minmax(0, 1fr) 18px;
        gap: 10px;
        min-height: 70px;
        padding: 11px 12px;
    }

    .student-demo-module-summary {
        grid-template-columns: 40px minmax(0, 1fr);
    }

    .student-demo-week {
        width: 38px;
        height: 38px;
        border-radius: 11px;
    }

    .student-demo-module-status {
        grid-column: 2;
        justify-self: start;
        min-height: 23px;
        margin-top: 2px;
        font-size: 9px;
    }

    .student-demo-module-summary .student-demo-module-status {
        grid-column: 2;
    }

    .student-demo-chevron {
        grid-column: 3;
        grid-row: 1 / span 2;
    }

    .student-demo-module-body {
        padding: 0 12px 14px;
    }

    .student-demo-module-columns {
        grid-template-columns: 1fr;
        gap: 9px;
    }

    .student-demo-section-heading h2,
    .student-real-section-heading h2 {
        font-size: 21px;
    }

    .student-real-module {
        grid-template-columns: 40px minmax(0, 1fr);
        gap: 10px;
        padding: 12px;
    }

    .student-real-module > .text-link,
    .student-real-module-lock {
        grid-column: 2;
        justify-self: start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .student-demo-stat,
    .student-demo-module,
    .student-demo-dashboard .access-card,
    .student-portal-anchor-nav a,
    .student-portal-header button {
        transition: none;
    }
}

/* Student workspace shell: console-style navigation without a top bar. */
.student-workspace {
    min-height: 100vh;
    background: #f4f7f9;
}

.student-workspace-shell {
    display: grid;
    grid-template-columns: 258px minmax(0, 1fr);
    min-height: 100vh;
}

.student-workspace-sidebar {
    position: sticky;
    top: 0;
    z-index: 60;
    display: flex;
    flex-direction: column;
    width: 258px;
    height: 100vh;
    min-height: 600px;
    padding: 22px 15px 16px;
    overflow-y: auto;
    border-right: 1px solid #183950;
    background: linear-gradient(180deg, #092438 0%, #071d30 100%);
    color: #fff;
}

.student-workspace-brand {
    display: grid;
    gap: 4px;
    padding: 4px 8px 22px;
    text-decoration: none;
}

.student-workspace-brand img {
    display: block;
    width: 178px;
    height: 44px;
    object-fit: contain;
    object-position: left center;
}

.student-workspace-brand > span {
    padding-left: 3px;
    color: #81a5b5;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .16em;
}

.student-workspace-profile {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
    margin: 0 0 23px;
    padding: 12px 10px;
    border: 1px solid #ffffff14;
    border-radius: 13px;
    background: #ffffff08;
}

.student-workspace-avatar {
    display: grid;
    flex: 0 0 36px;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid #5bd8d249;
    border-radius: 11px;
    background: linear-gradient(145deg, #123e52, #10504f);
    color: #8ff1e1;
    font: 800 14px Manrope, sans-serif;
}

.student-workspace-profile > span:last-child {
    display: grid;
    min-width: 0;
    gap: 4px;
}

.student-workspace-profile strong {
    overflow: hidden;
    color: #f4fbff;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.student-workspace-profile small {
    color: #90aeba;
    font-size: 10px;
}

.student-sidebar-label {
    display: block;
    margin: 0 10px 8px;
    color: #7897a6;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .15em;
}

.student-sidebar-tools-label {
    margin-top: 23px;
}

.student-workspace-nav {
    display: grid;
    gap: 4px;
}

.student-workspace-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 43px;
    padding: 0 11px;
    border: 1px solid transparent;
    border-radius: 10px;
    color: #bdced7;
    font-size: 12px;
    font-weight: 650;
    text-decoration: none;
    transition: color .16s ease, background .16s ease, border-color .16s ease;
}

.student-workspace-link .icon {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    color: #87a6b5;
}

.student-workspace-link:hover {
    border-color: #ffffff12;
    background: #ffffff09;
    color: #fff;
}

.student-workspace-link.active {
    border-color: #27b9b127;
    background: linear-gradient(90deg, #0d807c38, #0b445333);
    color: #f5fffe;
}

.student-workspace-link.active::before {
    position: absolute;
    top: 9px;
    bottom: 9px;
    left: -1px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: #4ce0cb;
    content: "";
}

.student-workspace-link.active .icon {
    color: #6ce4d3;
}

.student-sidebar-bottom {
    display: grid;
    gap: 11px;
    margin-top: auto;
    padding-top: 24px;
}

.student-sidebar-security {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 11px 9px;
    border: 1px solid #ffffff12;
    border-radius: 11px;
    background: #ffffff07;
}

.student-sidebar-security > .icon {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    color: #71dccb;
}

.student-sidebar-security span {
    display: grid;
    gap: 4px;
}

.student-sidebar-security strong {
    color: #d5e6ed;
    font-size: 10px;
}

.student-sidebar-security small,
.student-sidebar-footnote {
    color: #829eaa;
    font-size: 9px;
}

.student-sidebar-signout {
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    min-height: 41px;
    padding: 0 10px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    color: #c4d3da;
    font: inherit;
    font-size: 12px;
    font-weight: 650;
    text-align: left;
    cursor: pointer;
}

.student-sidebar-signout:hover {
    border-color: #ffffff12;
    background: #ffffff09;
    color: #fff;
}

.student-sidebar-signout .icon {
    width: 18px;
    height: 18px;
    color: #91a9b3;
}

.student-sidebar-footnote {
    padding: 0 10px;
}

.student-workspace-main {
    min-width: 0;
    padding: 1px 0 38px;
}

.student-workspace-skip {
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 100;
    padding: 10px 13px;
    transform: translateY(-150%);
    border-radius: 8px;
    background: #fff;
    color: #103348;
}

.student-workspace-skip:focus {
    transform: translateY(0);
}

.student-sidebar-trigger {
    display: none;
}

.student-sidebar-scrim {
    display: none;
}

.student-workspace-alert {
    display: flex;
    align-items: center;
    gap: 9px;
    width: min(1180px, calc(100% - 48px));
    margin: 18px auto 0;
    padding: 12px 15px;
    border: 1px solid #bde6d4;
    border-radius: 12px;
    background: #effaf4;
    color: #176644;
    font-size: 13px;
}

.student-workspace-alert.error {
    border-color: #f0c8c6;
    background: #fff3f2;
    color: #913c39;
}

.student-workspace-alert .icon {
    flex: 0 0 17px;
    width: 17px;
    height: 17px;
}

/* Student outcomes: attendance, weekly completion and score breakdowns. */
.student-learning-analytics {
    margin-top: 40px;
    scroll-margin-top: 28px;
}

.student-analytics-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 13px;
    margin: 18px 0;
}

.student-analytics-metric {
    display: grid;
    align-content: start;
    gap: 8px;
    min-width: 0;
    min-height: 132px;
    padding: 17px 17px 15px;
    border: 1px solid #e0e9ed;
    border-radius: 15px;
    background: linear-gradient(145deg, #fff, #fbfdfe);
    box-shadow: 0 5px 16px #19394b08;
}

.student-analytics-metric > span {
    color: #778a94;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .09em;
    line-height: 1.5;
}

.student-analytics-metric > strong {
    color: #17394b;
    font: 800 25px/1.1 Manrope, sans-serif;
    letter-spacing: -.7px;
}

.student-analytics-metric > strong small {
    color: #71838c;
    font-size: 12px;
    letter-spacing: 0;
}

.student-analytics-metric > small {
    color: #73858e;
    font-size: 10px;
    line-height: 1.5;
}

.student-analytics-track {
    height: 5px;
    overflow: hidden;
    border-radius: 999px;
    background: #e8eff1;
}

.student-analytics-track i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #087c72, #45cbb3);
}

.student-analytics-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 15px;
}

.student-chart-card {
    min-width: 0;
    padding: 19px;
    border: 1px solid #e0e9ed;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 7px 20px #18394d08;
}

.student-chart-card-wide {
    grid-column: 1 / -1;
}

.student-chart-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.student-chart-heading > div > span {
    color: #81919a;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .12em;
}

.student-chart-heading h3 {
    margin: 5px 0 0;
    color: #1b3949;
    font: 800 16px/1.3 Manrope, sans-serif;
    letter-spacing: -.25px;
}

.student-chart-heading > small {
    flex: 0 0 auto;
    color: #798b94;
    font-size: 10px;
}

.student-week-bars {
    display: grid;
    grid-template-columns: repeat(24, minmax(25px, 1fr));
    gap: 7px;
    min-height: 150px;
    padding: 10px 2px 0;
    overflow-x: auto;
    scrollbar-color: #c4d6dc transparent;
    scrollbar-width: thin;
}

.student-week-bar {
    display: grid;
    grid-template-rows: auto 1fr auto;
    justify-items: center;
    gap: 7px;
    min-width: 25px;
    height: 132px;
}

.student-week-bar > span,
.student-week-bar > small {
    color: #748791;
    font-size: 8px;
    font-weight: 750;
    white-space: nowrap;
}

.student-week-bar-track {
    display: flex;
    align-items: end;
    width: 100%;
    height: 83px;
    padding: 2px;
    border-radius: 6px;
    background: #f0f4f6;
}

.student-week-bar-track i {
    display: block;
    width: 100%;
    min-height: 5px;
    border-radius: 4px;
    background: #cbd7dc;
}

.student-week-bar-track i.is-complete {
    background: linear-gradient(180deg, #36c7ae, #087c72);
}

.student-week-bar-track i.is-started {
    background: linear-gradient(180deg, #f2c969, #d89c34);
}

.student-chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #edf1f3;
}

.student-chart-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #687e88;
    font-size: 10px;
}

.student-chart-legend i {
    width: 8px;
    height: 8px;
    border-radius: 3px;
    background: #cbd7dc;
}

.student-chart-legend .legend-complete { background: #129985; }
.student-chart-legend .legend-started { background: #e2ad48; }

.student-score-row {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(55px, .75fr) 48px;
    align-items: center;
    gap: 10px;
    min-height: 43px;
    padding: 7px 0;
    border-top: 1px solid #eff3f4;
}

.student-score-label {
    display: grid;
    grid-template-columns: 33px minmax(0, 1fr);
    align-items: center;
    gap: 7px;
    min-width: 0;
}

.student-score-label > span {
    color: #8798a0;
    font-size: 9px;
    font-weight: 800;
}

.student-score-label > strong {
    overflow: hidden;
    color: #4a626e;
    font-size: 10px;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.student-score-track {
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: #edf2f4;
}

.student-score-track i {
    display: block;
    height: 100%;
    min-width: 3px;
    border-radius: inherit;
    background: linear-gradient(90deg, #078a7b, #45cbb3);
}

.student-score-track i.score-assessment {
    background: linear-gradient(90deg, #398bb6, #6bc4e1);
}

.student-score-track i.attendance-present {
    background: linear-gradient(90deg, #159878, #58c99c);
}

.student-score-track i.attendance-absent {
    background: linear-gradient(90deg, #d87973, #efaaa1);
}

.student-score-row > b {
    color: #385462;
    font-size: 10px;
    font-weight: 800;
    text-align: right;
}

.student-score-row > b.attendance-text-present { color: #167452; }
.student-score-row > b.attendance-text-absent { color: #a14b46; }

.student-chart-empty {
    margin: 0;
    padding: 20px 0 8px;
    color: #768991;
    font-size: 12px;
    line-height: 1.65;
}

.student-report-note {
    margin: 15px 2px 0;
    color: #6d818a;
    font-size: 11px;
    line-height: 1.65;
}

.student-workspace .ai-launcher {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.student-workspace .ai-launcher .icon {
    width: 16px;
    height: 16px;
}

@media (max-width: 1000px) {
    .student-analytics-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .student-workspace-shell {
        display: block;
    }

    .student-workspace-sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        width: min(286px, calc(100vw - 48px));
        height: 100dvh;
        min-height: 0;
        transform: translateX(-105%);
        transition: transform .22s ease;
    }

    .student-menu-open .student-workspace-sidebar {
        transform: translateX(0);
    }

    .student-sidebar-scrim {
        position: fixed;
        inset: 0;
        z-index: 59;
        background: #07172580;
        opacity: 0;
        pointer-events: none;
        transition: opacity .2s ease;
    }

    .student-menu-open .student-sidebar-scrim {
        display: block;
        opacity: 1;
        pointer-events: auto;
    }

    .student-sidebar-trigger {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        min-height: 39px;
        margin: 15px 0 -30px 14px;
        padding: 0 11px;
        border: 1px solid #dce6ea;
        border-radius: 10px;
        background: #fff;
        color: #254a5d;
        font: inherit;
        font-size: 11px;
        font-weight: 750;
        cursor: pointer;
    }

    .student-sidebar-trigger .icon {
        width: 16px;
        height: 16px;
    }

    .student-workspace-main {
        padding-top: 1px;
    }

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

    .student-chart-card-wide {
        grid-column: auto;
    }
}

@media (max-width: 600px) {
    .student-analytics-summary {
        grid-template-columns: 1fr 1fr;
        gap: 9px;
    }

    .student-analytics-metric {
        min-height: 119px;
        padding: 13px 12px;
    }

    .student-analytics-metric > span {
        font-size: 8px;
    }

    .student-analytics-metric > strong {
        font-size: 22px;
    }

    .student-chart-card {
        padding: 15px 13px;
        border-radius: 14px;
    }

    .student-score-row {
        grid-template-columns: minmax(0, 1fr) 56px 42px;
        gap: 7px;
    }

    .student-score-label {
        grid-template-columns: 29px minmax(0, 1fr);
        gap: 5px;
    }

    .student-learning-analytics {
        margin-top: 32px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .student-workspace-sidebar,
    .student-sidebar-scrim {
        transition: none;
    }
}
