:root {
    --heritage: rgb(0 15 70);
    --heritage-dark: rgb(0 11 52);
    --heritage-75: rgb(64 75 116);
    --heritage-25: rgb(191 195 209);
    --blue-light: rgb(70 200 240);
    --blue-light-25: rgb(209 241 251);
    --sage: rgb(171 193 167);
    --sage-25: rgb(234 239 233);
    --grey-25: rgb(241 241 241);
    --grey-50: rgb(228 228 228);
    --grey-100: rgb(45 45 45);
    --green: rgb(44 66 29);
    --green-light: rgb(159 184 37);
    --yellow: rgb(255 214 41);
    --red: rgb(120 0 13);
    --red-light: rgb(255 45 60);
    --pink: rgb(235 123 190);
    --brown: rgb(168 69 0);
    --blue-dark: rgb(0 60 85);
    --maroon: rgb(115 35 75);
    --white: #fff;
    --shadow: 0 22px 60px rgb(0 11 52 / 12%);
    --radius: 8px;
    --body-font: "Source Sans 3", sans-serif;
    --title-font: "Source Sans 3", sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--grey-25);
    color: var(--heritage);
    font-family: "Source Sans 3", sans-serif !important;
    font-size: 16px;
    line-height: 1.55;
}

a {
    color: var(--heritage);
    font-weight: 700;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -4rem;
    background: var(--blue-light);
    color: var(--heritage);
    padding: .75rem 1rem;
    z-index: 20;
}

.skip-link:focus {
    top: 1rem;
}

.site-header {
    background: var(--heritage);
    color: var(--white);
}

.brand-bar,
.page-shell,
.site-footer {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.brand-bar {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.brand {
    color: var(--white);
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    text-decoration: none;
}

.brand-mark {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 2px solid var(--blue-light);
    color: var(--blue-light);
    font-weight: 800;
    letter-spacing: 0;
}

.brand strong,
.brand small {
    display: block;
}

.brand small {
    color: var(--blue-light-25);
    font-weight: 500;
}

.main-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .5rem;
}

.main-nav a {
    color: var(--white);
    text-decoration: none;
    padding: .55rem .8rem;
    border-bottom: 3px solid transparent;
}

.main-nav a:hover,
.main-nav a.active {
    border-color: var(--blue-light);
    color: var(--blue-light);
}

.page-shell {
    padding: 2rem 0 4rem;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr);
    gap: 2rem;
    align-items: stretch;
    background: var(--heritage);
    color: var(--white);
    padding: clamp(2rem, 5vw, 4.5rem);
    border-bottom: 8px solid var(--blue-light);
}

.hero h1,
.section-heading h1 {
    margin: 0;
    max-width: 850px;
    font-family: var(--title-font);
    font-size: clamp(2.3rem, 5vw, 4.8rem);
    line-height: 1.02;
    letter-spacing: 0;
}

.hero .lead,
.section-heading p {
    max-width: 760px;
    font-size: 1.18rem;
}

.eyebrow {
    margin: 0 0 .75rem;
    color: var(--blue-light);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: .8rem;
    margin-top: 2rem;
}

.button,
button {
    border: 0;
    border-radius: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: .72rem 1rem;
    font: 700 1rem/1 var(--body-font);
    text-decoration: none;
}

.button.primary {
    background: var(--blue-light);
    color: var(--heritage);
}

.button.secondary {
    background: var(--sage);
    color: var(--heritage);
}

.button.ghost,
.button.compact {
    background: var(--grey-50);
    color: var(--heritage);
}

.button.compact {
    min-height: 36px;
    padding: .45rem .75rem;
}

.button.full {
    width: 100%;
}

.unimelb-login-body {
    min-height: 100vh;
    background: rgb(0 15 70);
    color: var(--white);
    font-family: var(--body-font);
}

.unimelb-login-screen {
    min-height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr;
    justify-items: center;
    padding: 46px 16px;
}

.unimelb-login-intro {
    text-align: center;
}

.unimelb-login-intro h1 {
    margin: 0;
    color: var(--white);
    font: 800 18px/1.35 var(--body-font);
}

.unimelb-login-panel {
    width: min(100%, 316px);
    display: grid;
    align-content: start;
    justify-items: center;
    margin-top: 72px;
}

.unimelb-login-logo {
    width: 120px;
    height: 120px;
    display: block;
    object-fit: contain;
}

.unimelb-login-panel h2 {
    margin: 24px 0 22px;
    color: var(--white);
    font: 800 24px/1 var(--body-font);
}

.unimelb-login-form {
    width: 100%;
    display: grid;
    gap: 28px;
}

.unimelb-login-form label {
    color: var(--white);
    font-size: 17px;
    font-weight: 800;
}

.unimelb-login-form small {
    display: block;
    margin-top: 4px;
    color: var(--white);
    font-size: 14px;
    font-weight: 800;
}

.unimelb-login-form input {
    min-height: 40px;
    margin-top: 10px;
    border: 0;
    background: var(--white);
    color: #000;
    font: 600 18px/1.2 var(--body-font);
    padding: 7px 9px;
}

.unimelb-password-field {
    display: none;
}

.unimelb-password-field.is-visible {
    display: grid;
}

.unimelb-submit-button {
    min-height: 50px;
    justify-content: flex-start;
    gap: 14px;
    background: var(--blue-light);
    color: #000;
    font: 800 18px/1 var(--body-font);
    padding: 0 20px;
}

.unimelb-submit-button span {
    font-size: 28px;
    line-height: 1;
}

.unimelb-login-links {
    display: grid;
    justify-items: center;
    gap: 12px;
    margin-top: 31px;
}

.unimelb-login-links a {
    color: var(--white);
    font-size: 16px;
    font-weight: 800;
}

.unimelb-login-flash {
    width: 100%;
    margin-bottom: 18px;
    background: rgb(255 202 206);
    color: #000;
    font-weight: 800;
    padding: 10px 12px;
}

.login-panel,
.form-card {
    background: var(--white);
    color: var(--heritage);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.login-panel h2,
.form-card h2,
.course-card h2 {
    margin-top: 0;
}

label {
    display: grid;
    gap: .35rem;
    font-weight: 700;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--heritage-25);
    border-radius: 0;
    color: var(--heritage);
    font: 500 1rem/1.3 var(--body-font);
    min-height: 44px;
    padding: .65rem .75rem;
    background: var(--white);
}

textarea {
    resize: vertical;
}

form {
    display: grid;
    gap: 1rem;
}

.form-note,
.empty {
    color: var(--grey-100);
    margin-bottom: 0;
}

.section-heading {
    margin-bottom: 2rem;
}

.narrow {
    width: min(520px, 100%);
    margin: 0 auto;
}

.wide-form {
    width: min(900px, 100%);
}

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

.feature-grid,
.stat-grid,
.course-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.feature-grid article,
.stat-grid article,
.course-card,
.request-list article {
    background: var(--white);
    padding: 1.25rem;
    box-shadow: 0 1px 0 var(--grey-50);
}

.feature-grid article {
    border-top: 5px solid var(--sage);
}

.stat-grid article {
    border-top: 5px solid var(--blue-light);
}

.stat-grid span {
    display: block;
    font-family: var(--title-font);
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
}

.stat-grid p {
    margin: .5rem 0 0;
    font-weight: 700;
}

.two-column {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: 1.5rem;
    align-items: start;
}

.section-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.table-wrap {
    overflow-x: auto;
    background: var(--white);
    box-shadow: 0 1px 0 var(--grey-50);
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

th,
td {
    padding: .8rem;
    text-align: left;
    border-bottom: 1px solid var(--grey-50);
    vertical-align: top;
}

th {
    background: var(--heritage);
    color: var(--white);
}

.course-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.course-card {
    display: grid;
    gap: 1rem;
    border-top: 5px solid var(--heritage);
}

.course-card form {
    grid-template-columns: 1fr auto;
    align-items: center;
}

.course-code {
    color: var(--maroon);
    font-weight: 800;
}

.capacity {
    display: grid;
    gap: .35rem;
    font-weight: 700;
}

meter {
    width: 100%;
    height: 12px;
}

.status {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    padding: .25rem .55rem;
    background: var(--grey-50);
    color: var(--heritage);
    font-weight: 800;
    text-transform: capitalize;
}

.status.enrolled,
.status.active,
.status.approved,
.status.completed {
    background: var(--sage-25);
    color: var(--green);
}

.status.waitlisted,
.status.in_review,
.status.submitted,
.status.pending {
    background: var(--blue-light-25);
    color: var(--heritage);
}

.status.closed,
.status.inactive,
.status.declined,
.status.dropped {
    background: rgb(255 202 206);
    color: var(--red);
}

.request-list {
    display: grid;
    gap: 1rem;
}

.request-list article {
    border-left: 5px solid var(--blue-light);
}

.admin-note {
    background: var(--sage-25);
    padding: .8rem;
}

.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: 1.5rem;
}

.tabs a {
    background: var(--white);
    color: var(--heritage);
    padding: .7rem 1rem;
    text-decoration: none;
    border-bottom: 4px solid transparent;
}

.tabs a.active {
    border-color: var(--blue-light);
    background: var(--heritage);
    color: var(--white);
}

.inline-form {
    display: flex;
    gap: .5rem;
    align-items: center;
}

.admin-request-form {
    grid-template-columns: minmax(160px, .25fr) minmax(240px, 1fr) auto;
    align-items: end;
    margin-top: 1rem;
}

.table-wrap td label {
    margin-bottom: .65rem;
    font-size: .9rem;
}

.table-wrap td label:last-child {
    margin-bottom: 0;
}

.table-wrap td input,
.table-wrap td select {
    min-height: 36px;
    padding: .45rem .55rem;
    font-size: .95rem;
}

.class-table-groups {
    display: grid;
    gap: 1rem;
}

.class-table-group {
    display: grid;
    gap: .75rem;
}

.class-table-group .section-title-row {
    background: var(--white);
    border-left: 5px solid var(--blue-light);
    padding: .9rem 1rem;
}

.class-table-group h2 {
    margin: 0;
}

.flash {
    padding: .8rem 1rem;
    margin-bottom: 1rem;
    background: var(--blue-light-25);
    border-left: 5px solid var(--blue-light);
    font-weight: 700;
}

.flash-success {
    background: var(--sage-25);
    border-color: var(--sage);
}

.flash-danger {
    background: rgb(255 202 206);
    border-color: var(--red);
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 2rem 0;
    color: var(--white);
}

footer.site-footer {
    width: 100%;
    max-width: none;
    padding-left: max(16px, calc((100vw - 1180px) / 2));
    padding-right: max(16px, calc((100vw - 1180px) / 2));
    background: var(--heritage-dark);
}

.site-footer div {
    display: grid;
}

@media (max-width: 820px) {
    .brand-bar,
    .site-footer,
    .section-title-row,
    .inline-form,
    .admin-request-form {
        align-items: stretch;
        flex-direction: column;
    }

    .brand-bar,
    .site-footer {
        padding: 1rem 0;
    }

    .main-nav {
        justify-content: flex-start;
    }

    .hero,
    .two-column,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .feature-grid,
    .stat-grid {
        grid-template-columns: 1fr;
    }

    .admin-request-form {
        grid-template-columns: 1fr;
    }
}

.portal-body {
    background: var(--grey-25);
    color: var(--grey-100);
    font-family: var(--body-font);
    overflow: hidden;
}

.portal-topbar {
    height: 52px;
    background: #000f46;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
}

.portal-logo {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.portal-logo img {
    display: block;
    width: auto;
    height: 42px;
    max-width: min(230px, 42vw);
    object-fit: contain;
}

.portal-tools {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
}

.portal-tools .bx {
    color: var(--blue-light-25);
    font-size: 20px;
}

.portal-tools a {
    color: var(--blue-light-25);
    text-decoration: none;
}

.notification-dot {
    min-width: 16px;
    height: 16px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: var(--red-light);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
}

.portal-avatar {
    width: 36px;
    height: 36px;
    display: inline-grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: var(--white);
    font-weight: 700;
    object-fit: cover;
    background: var(--heritage);
}

.portal-layout {
    height: calc(100vh - 52px);
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    transition: grid-template-columns .2s ease;
}

.portal-layout.nav-collapsed {
    grid-template-columns: 54px minmax(0, 1fr);
}

.student-sidenav {
    background: var(--heritage);
    color: var(--blue-light-25);
    min-height: 0;
    overflow-y: auto;
    position: relative;
}

.term-box {
    min-height: 50px;
    background: var(--blue-light);
    color: var(--heritage);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
}

.term-box strong,
.term-box small {
    display: block;
}

.term-box small {
    opacity: .9;
    font-size: 11px;
}

.term-icon {
    font-size: 24px;
    line-height: 1;
}

.student-sidenav nav {
    padding-bottom: 64px;
}

.side-home,
.side-group summary,
.side-group a {
    color: var(--blue-light-25);
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
}

.side-home,
.side-group summary {
    padding-right: 16px;
    border-bottom: 1px solid rgb(255 255 255 / 12%);
}

.side-group summary {
    cursor: pointer;
    list-style: none;
}

.side-group summary::-webkit-details-marker {
    display: none;
}

.side-icon {
    width: 43px;
    align-self: stretch;
    display: grid;
    place-items: center;
    color: var(--white);
    border-left: 3px solid var(--item-color);
    border-right: 1px solid rgb(255 255 255 / 12%);
    flex: 0 0 auto;
}

.side-icon .bx {
    font-size: 20px;
    line-height: 1;
}

.side-chevron {
    margin-left: auto;
    color: var(--blue-light);
    font-size: 18px;
    transition: transform .16s ease;
}

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

.side-home.is-active,
.side-group a.is-active {
    background: var(--heritage-dark);
    color: var(--white);
}

.side-group ul {
    margin: 0;
    padding: 6px 0 8px 43px;
    background: rgb(0 11 52 / 45%);
}

.side-group li {
    list-style: none;
}

.side-group a {
    min-height: 34px;
    padding: 0 12px;
    font-size: 13px;
    font-weight: 600;
}

.side-group a .bx {
    font-size: 20px;
    line-height: 1;
}

.side-badge {
    background: var(--red-light);
    color: var(--white);
    border-radius: 12px;
    padding: 2px 7px;
    font-size: 11px;
}

.collapse-control {
    position: absolute;
    right: 10px;
    bottom: 8px;
    width: 30px;
    height: 30px;
    min-height: 30px;
    padding: 0;
    background: var(--heritage-dark);
    color: var(--white);
    border-radius: 2px;
}

.collapse-control .bx {
    transition: transform .2s ease;
}

.portal-layout.nav-collapsed .collapse-control .bx {
    transform: rotate(180deg);
}

.portal-layout.nav-collapsed .term-box {
    justify-content: center;
    padding-inline: 0;
}

.portal-layout.nav-collapsed .term-box > div,
.portal-layout.nav-collapsed .side-home > span:last-child,
.portal-layout.nav-collapsed .side-group summary > span:not(.side-icon),
.portal-layout.nav-collapsed .side-badge,
.portal-layout.nav-collapsed .side-chevron,
.portal-layout.nav-collapsed .side-group ul {
    display: none;
}

.portal-layout.nav-collapsed .side-home,
.portal-layout.nav-collapsed .side-group summary {
    padding-right: 0;
}

.portal-main {
    min-width: 0;
    min-height: 0;
    display: grid;
    grid-template-rows: 34px minmax(0, 1fr);
}

.portal-crumb {
    background: var(--white);
    border-bottom: 1px solid var(--grey-50);
    display: flex;
    align-items: center;
    padding: 0 14px;
    color: var(--heritage);
    font-size: 13px;
    gap: 6px;
}

.portal-crumb .bx {
    font-size: 16px;
}

.portal-content {
    min-height: 0;
    overflow: auto;
    padding: 20px 24px 32px;
}

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

.portal-content-header h1 {
    margin: 0;
    color: var(--heritage);
    font: 600 28px/1.15 var(--body-font);
}

.portal-content-header p {
    margin: 4px 0 0;
}

.portal-content .eyebrow {
    color: var(--blue-dark);
    font-size: 12px;
    margin: 0 0 4px;
}

.empty-page {
    background: var(--white);
    border: 1px dashed var(--heritage-25);
    padding: 32px;
}

.empty-page h2 {
    margin-top: 0;
    color: var(--heritage);
}

.trips-empty-state {
    min-height: 320px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 10px;
    background: var(--white);
    color: var(--heritage-75);
    text-align: center;
}

.trips-empty-state .bx {
    color: var(--grey-50);
    font-size: 54px;
    line-height: 1;
}

.trips-empty-state p {
    margin: 0;
    font-size: 14px;
}

.exam-schedule-empty-panel {
    background: var(--white);
    border: 1px solid #43c6c5;
    color: #555;
    font-size: 13px;
}

.exam-schedule-empty-panel header {
    min-height: 45px;
    display: flex;
    align-items: center;
    background: #60c9c8;
    color: var(--white);
    font-size: 12px;
    font-weight: 700;
    padding: 0 13px;
}

.exam-schedule-empty-body {
    padding: 34px 15px 15px;
}

.exam-schedule-alert {
    min-height: 36px;
    display: flex;
    align-items: center;
    gap: 3px;
    background: #e9e9e9;
    border: 1px solid #d1d1d1;
    color: #555;
    padding: 0 6px;
}

.exam-schedule-alert .bx {
    color: #555;
    font-size: 12px;
    line-height: 1;
}

.questionnaire-page {
    color: #005762;
    font-size: 12px;
}

.questionnaire-count {
    margin: 0 8px 14px;
    color: #333;
    text-align: left;
}

.questionnaire-count span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ffb31a;
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
}

.questionnaire-notice {
    background: #dff9fb;
    border: 1px solid #00b7e3;
    color: #005762;
    padding: 15px 28px;
    margin-bottom: 28px;
}

.questionnaire-notice ul {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0 0 0 18px;
}

.questionnaire-notice li {
    font-weight: 700;
}

.questionnaire-course-list {
    display: grid;
    gap: 14px;
}

.questionnaire-course-card {
    background: var(--white);
    border: 1px solid #c8c8c8;
    border-radius: 2px;
}

.questionnaire-course-card header {
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background: #e9e9e9;
    border-bottom: 1px solid #c8c8c8;
    color: #000;
    font-size: 13px;
    font-weight: 700;
    padding: 0 14px;
}

.questionnaire-course-card p {
    min-height: 35px;
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    color: #ff9900;
    font-size: 12px;
    padding: 0 14px;
}

.questionnaire-course-card .bx {
    font-size: 14px;
}

.quizzes-page {
    color: #68727c;
    font-size: 12px;
}

.quizzes-heading {
    margin: 0 0 22px;
}

.quizzes-heading h1 {
    margin: 0 0 4px;
    color: #4f5963;
    font: 400 24px/1.15 var(--body-font);
}

.quizzes-heading p {
    margin: 0;
    color: #8a949e;
    font-size: 11px;
}

.quiz-course-list {
    display: grid;
    gap: 18px;
}

.quiz-course-card {
    background: var(--white);
    border: 1px solid #c8c8c8;
}

.quiz-course-card header {
    min-height: 48px;
    display: flex;
    align-items: center;
    background: #e9e9e9;
    border-bottom: 1px solid #c8c8c8;
    color: #001b3f;
    font-size: 13px;
    font-weight: 700;
    padding: 0 14px;
}

.quiz-course-card div {
    padding: 14px;
}

.quiz-course-card strong {
    color: #00a5b5;
    font-size: 13px;
}

.quiz-course-card p {
    margin: 6px 0 0 8px;
    color: #6c7882;
    font-size: 12px;
}

.assignments-page {
    color: #68727c;
    font-size: 12px;
}

.assignments-heading {
    margin: 0 0 22px;
}

.assignments-heading h1 {
    margin: 0 0 4px;
    color: #4f5963;
    font: 400 24px/1.15 var(--body-font);
}

.assignments-heading p {
    margin: 0;
    color: #8a949e;
    font-size: 11px;
}

.assignment-course-list {
    display: grid;
    gap: 16px;
}

.assignment-course-card {
    background: var(--white);
    border: 1px solid #c8c8c8;
}

.assignment-course-card summary {
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #e9e9e9;
    border-bottom: 1px solid #c8c8c8;
    color: #001b3f;
    font-size: 13px;
    font-weight: 700;
    padding: 0 14px;
    cursor: pointer;
    list-style: none;
}

.assignment-course-card summary::-webkit-details-marker {
    display: none;
}

.assignment-course-card summary span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.assignment-accordion-icon {
    flex: 0 0 auto;
    color: #68727c;
    font-size: 18px;
    transition: transform 160ms ease;
}

.assignment-course-card[open] .assignment-accordion-icon {
    transform: rotate(180deg);
}

.assignment-empty-state {
    min-height: 194px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 14px;
    border-bottom: 1px solid #c8c8c8;
    color: #001b3f;
    text-align: center;
}

.assignment-empty-state .bx {
    color: #d6d6d6;
    font-size: 76px;
    line-height: 1;
}

.assignment-empty-state p {
    margin: 0;
    font-size: 11px;
}

.assignment-course-total {
    padding: 14px;
}

.assignment-course-total strong {
    color: #00a5b5;
    font-size: 13px;
}

.assignment-course-total p {
    margin: 6px 0 0 8px;
    color: #6c7882;
    font-size: 12px;
}

.discussions-page {
    color: #68727c;
    font-size: 12px;
}

.discussions-heading {
    margin: 0 0 22px;
}

.discussions-heading h1 {
    margin: 0 0 4px;
    color: #4f5963;
    font: 400 24px/1.15 var(--body-font);
}

.discussions-heading p {
    margin: 0;
    color: #8a949e;
    font-size: 11px;
}

.discussion-course-list {
    display: grid;
    gap: 16px;
}

.discussion-course-card {
    background: var(--white);
    border: 1px solid #c8c8c8;
}

.discussion-course-card summary {
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #e9e9e9;
    border-bottom: 1px solid #c8c8c8;
    color: #001b3f;
    font-size: 13px;
    font-weight: 700;
    padding: 0 14px;
    cursor: pointer;
    list-style: none;
}

.discussion-course-card summary::-webkit-details-marker {
    display: none;
}

.discussion-course-card summary span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.discussion-accordion-icon {
    flex: 0 0 auto;
    color: #68727c;
    font-size: 18px;
    transition: transform 160ms ease;
}

.discussion-course-card[open] .discussion-accordion-icon {
    transform: rotate(180deg);
}

.discussion-empty-state {
    min-height: 174px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 12px;
    border-bottom: 1px solid #c8c8c8;
    color: #001b3f;
    text-align: center;
}

.discussion-empty-state .bx {
    color: #d6d6d6;
    font-size: 60px;
    line-height: 1;
}

.discussion-empty-state p {
    margin: 0;
    font-size: 11px;
}

.discussion-course-total {
    padding: 14px;
}

.discussion-course-total strong {
    color: #74b62a;
    font-size: 13px;
}

.discussion-course-total p {
    margin: 6px 0 0 8px;
    color: #6c7882;
    font-size: 12px;
}

.meetings-page {
    color: #68727c;
    font-size: 12px;
}

.meetings-heading {
    margin: 0 0 22px;
}

.meetings-title-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 4px;
}

.meetings-title-row h1 {
    margin: 0;
    color: #4f5963;
    font: 400 24px/1.15 var(--body-font);
}

.meetings-title-row span {
    display: inline-flex;
    align-items: center;
    min-height: 18px;
    border-radius: 2px;
    background: #f0a53a;
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    padding: 1px 9px;
}

.meetings-heading p {
    margin: 0;
    color: #8a949e;
    font-size: 11px;
}

.meeting-course-list {
    display: grid;
    gap: 18px;
}

.meeting-course-card {
    background: var(--white);
    border: 1px solid #c8c8c8;
}

.meeting-course-card header {
    min-height: 52px;
    display: flex;
    align-items: center;
    background: #e9e9e9;
    border-bottom: 1px solid #c8c8c8;
    color: #001b3f;
    font-size: 13px;
    font-weight: 700;
    padding: 0 14px;
}

.meeting-course-total {
    padding: 14px;
}

.meeting-course-total strong {
    color: #00a5b5;
    font-size: 13px;
}

.meeting-course-total p {
    margin: 6px 0 0 8px;
    color: #6c7882;
    font-size: 12px;
}

.registration-proposal-page {
    color: #68727c;
    font-size: 12px;
}

.registration-proposal-heading {
    margin: 0 0 22px;
}

.registration-proposal-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.registration-proposal-title-row h1 {
    margin: 0;
    color: #4f5963;
    font: 400 24px/1.15 var(--body-font);
}

.registration-proposal-title-row a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #f3c8ce;
    font-size: 11px;
    text-decoration: none;
}

.registration-proposal-title-row .bx {
    font-size: 13px;
}

.registration-proposal-heading p {
    margin: 0;
    color: #8a949e;
    font-size: 11px;
}

.registered-courses-panel {
    background: var(--white);
    border: 1px solid #43c6c5;
}

.registered-courses-panel > header {
    min-height: 68px;
    display: flex;
    align-items: center;
    background: #60c9c8;
    color: var(--white);
    font-size: 13px;
    font-weight: 700;
    padding: 0 14px;
}

.registered-course-list {
    display: grid;
    gap: 18px;
    padding: 14px;
}

.registered-course-card {
    display: grid;
    gap: 12px;
    background: #f4f4f4;
    border: 1px solid #c8c8c8;
    border-radius: 3px;
    padding: 14px;
}

.registered-course-title {
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px dashed #c8c8c8;
    color: #001b3f;
    padding-bottom: 10px;
}

.registered-course-title strong {
    font-size: 12px;
}

.registered-course-title span {
    display: inline-flex;
    align-items: center;
    min-height: 16px;
    border-radius: 8px;
    background: #e8e8e8;
    color: #5e6570;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    padding: 1px 9px;
}

.registered-course-card dl {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin: 0;
}

.registered-course-card dl div {
    display: flex;
    gap: 4px;
    min-width: 0;
}

.registered-course-card dt,
.registered-course-card dd {
    margin: 0;
    color: #7d8791;
    font-size: 11px;
}

.registered-courses-total {
    border-top: 1px solid #d7d7d7;
    padding: 14px 14px 16px;
}

.registered-courses-total strong {
    color: #4aaa34;
    font-size: 13px;
}

.registered-courses-total p {
    margin: 6px 0 0 10px;
    color: #6c7882;
    font-size: 12px;
}

.studying-schedule-page {
    color: #68727c;
    font-size: 12px;
}

.studying-schedule-heading {
    margin: 0 0 22px;
}

.studying-schedule-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.studying-schedule-title-row h1 {
    margin: 0;
    color: #4f5963;
    font: 400 24px/1.15 var(--body-font);
}

.studying-schedule-title-row a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #f08c97;
    font-size: 11px;
    text-decoration: none;
}

.studying-schedule-title-row .bx {
    font-size: 13px;
}

.studying-schedule-heading p {
    margin: 0;
    color: #8a949e;
    font-size: 11px;
}

.studying-schedule-wrap {
    overflow-x: auto;
    background: var(--white);
    border: 1px solid #c8c8c8;
}

.studying-schedule-grid {
    position: relative;
    min-width: 1880px;
    display: grid;
    grid-template-columns: 36px repeat(20, 92px);
    grid-template-rows: 32px repeat(7, 112px);
}

.schedule-corner,
.schedule-time,
.schedule-day,
.schedule-cell {
    border-right: 1px solid #cfcfcf;
    border-bottom: 1px solid #d6d6d6;
}

.schedule-corner {
    grid-column: 1;
    grid-row: 1;
    background: #fff;
}

.schedule-time {
    position: relative;
    grid-column: var(--col);
    grid-row: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #34404b;
    font-size: 10px;
}

.schedule-time::before {
    content: "";
    position: absolute;
    top: 6px;
    width: 18px;
    border-top: 1px dashed #69f27a;
}

.schedule-day {
    grid-column: 1;
    grid-row: var(--row);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #34404b;
    font-size: 10px;
}

.schedule-cell {
    grid-column: var(--col);
    grid-row: var(--row);
    background:
        linear-gradient(to bottom, transparent 0, transparent 55px, #d9d9d9 55px, #d9d9d9 56px, transparent 56px);
}

.schedule-event {
    grid-column: var(--col) / span var(--span);
    grid-row: var(--row);
    z-index: 1;
    align-self: start;
    display: grid;
    gap: 1px;
    max-height: 101px;
    overflow: hidden;
    border-radius: 3px;
    color: #000;
    font-size: 10px;
    line-height: 1.25;
    margin: 6px 4px 0;
    padding: 8px 7px;
}

.schedule-event strong {
    font-size: 10px;
}

.schedule-event-lecture {
    background: #78d275;
}

.schedule-event-practical {
    background: #fedb83;
}

.schedule-colors-key {
    margin-top: 22px;
}

.schedule-colors-key h2 {
    margin: 0 0 8px;
    color: #4f5963;
    font: 400 18px/1.2 var(--body-font);
}

.schedule-colors-key p {
    margin: 0 0 14px;
    color: #8a949e;
    font-size: 11px;
}

.schedule-colors-key div {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    padding-left: 22px;
}

.schedule-key {
    display: inline-flex;
    align-items: center;
    min-height: 16px;
    border-radius: 2px;
    color: var(--white);
    font-size: 9px;
    font-weight: 700;
    line-height: 1;
    padding: 2px 7px;
}

.schedule-key-lecture,
.schedule-key-didactic {
    background: #78d275;
}

.schedule-key-practical,
.schedule-key-lab {
    background: #fedb83;
}

.schedule-key-tutorial,
.schedule-key-mixed,
.schedule-key-exercise {
    background: #63d4d2;
}

.schedule-key-clinical {
    background: #f47d88;
}

.final-results-page {
    color: #68727c;
    font-size: 13px;
}

.final-results-heading {
    margin: 0 0 22px;
}

.final-results-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 3px;
}

.final-results-title-row h1 {
    margin: 0;
    color: #4f5963;
    font: 400 24px/1.15 var(--body-font);
}

.final-results-title-row a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #f08c97;
    font-size: 11px;
    text-decoration: none;
}

.final-results-title-row .bx {
    font-size: 13px;
}

.final-results-heading p {
    margin: 0;
    color: #8a949e;
    font-size: 11px;
}

.final-results-panel {
    background: var(--white);
    border: 1px solid #43c6c5;
}

.final-results-panel > header {
    min-height: 68px;
    display: flex;
    align-items: center;
    background: #60c9c8;
    color: var(--white);
    font-size: 13px;
    font-weight: 700;
    padding: 0 14px;
}

.final-results-summary {
    padding: 17px 28px 14px;
}

.final-results-summary p {
    margin: 0 0 8px;
    color: #68727c;
    font-size: 12px;
}

.final-results-summary p:not(:first-child) {
    padding-left: 14px;
}

.final-results-summary strong {
    color: #001b3f;
}

.final-results-summary span,
.final-result-course b {
    display: inline-flex;
    align-items: center;
    min-height: 16px;
    border-radius: 8px;
    background: #e8e8e8;
    color: #5e6570;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    padding: 1px 6px;
}

.final-result-list {
    display: grid;
    gap: 14px;
    border-top: 1px dashed #bfc4c8;
    margin: 0 14px 14px;
    padding-top: 23px;
}

.final-result-card {
    min-height: 65px;
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    align-items: center;
    background: #f4f4f4;
    border: 1px solid #c8c8c8;
    border-radius: 3px;
}

.final-result-status {
    min-height: 48px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 4px;
    border-right: 1px solid #c8c8c8;
    color: #6fbd38;
}

.final-result-status .bx {
    font-size: 16px;
    font-weight: 700;
}

.final-result-status span {
    font-size: 11px;
}

.final-result-course {
    min-width: 0;
    display: grid;
    gap: 12px;
    padding: 0 14px;
}

.final-result-course strong {
    color: #001b3f;
    font-size: 13px;
    font-weight: 700;
}

.final-result-course span {
    color: #8a949e;
    font-size: 12px;
}

.gradebook-report-page {
    color: #68727c;
    font-size: 12px;
}

.gradebook-report-heading {
    margin: 0 0 22px;
}

.gradebook-report-heading h1 {
    margin: 0 0 3px;
    color: #4f5963;
    font: 400 24px/1.15 var(--body-font);
}

.gradebook-report-heading p {
    margin: 0;
    color: #8a949e;
    font-size: 11px;
}

.gradebook-export-button {
    min-height: 31px;
    gap: 5px;
    border: 1px solid #bfc4c8;
    background: #f8f8f8;
    color: #34404b;
    font-size: 12px;
    font-weight: 400;
    padding: 0 11px;
    margin-bottom: 28px;
}

.gradebook-export-button .bx {
    font-size: 14px;
}

.gradebook-course-section {
    background: #e9e9e9;
    border: 1px solid #c8c8c8;
    margin-bottom: 19px;
}

.gradebook-course-section > summary {
    min-height: 67px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #001b3f;
    font-size: 13px;
    font-weight: 700;
    padding: 0 14px;
    cursor: pointer;
    list-style: none;
}

.gradebook-course-section > summary::-webkit-details-marker {
    display: none;
}

.gradebook-course-title {
    min-width: 0;
    overflow-wrap: anywhere;
}

.gradebook-course-section[open] > summary {
    min-height: 66px;
}

.gradebook-accordion-icon {
    flex: 0 0 auto;
    color: #68727c;
    font-size: 18px;
    transition: transform 160ms ease;
}

.gradebook-course-section[open] .gradebook-accordion-icon {
    transform: rotate(180deg);
}

.gradebook-table-wrap {
    overflow-x: auto;
}

.gradebook-table-wrap table {
    min-width: 1250px;
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    background: #f7f7f7;
}

.gradebook-table-wrap th,
.gradebook-table-wrap td {
    border: 1px solid #c8c8c8;
    color: #4f5963;
    text-align: center;
    vertical-align: middle;
    font-size: 11px;
    font-weight: 400;
    padding: 8px 10px;
}

.gradebook-table-wrap th {
    height: 46px;
    background: #e3e3e3;
    font-weight: 700;
}

.gradebook-table-wrap td {
    background: #f8f8f8;
}

.gradebook-table-wrap tbody tr:first-child td {
    background: #eeeeee;
}

.gradebook-table-wrap th:first-child,
.gradebook-table-wrap td:first-child {
    width: 32px;
}

.gradebook-table-wrap th:nth-child(2),
.gradebook-table-wrap td:nth-child(2) {
    width: 36px;
}

.gradebook-table-wrap input[type="checkbox"] {
    width: 12px;
    height: 12px;
    margin: 0;
}

.party-empty-state {
    min-height: 320px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 14px;
    background: var(--white);
    color: var(--heritage-75);
    text-align: center;
}

.party-empty-state .bx {
    color: var(--grey-50);
    font-size: 54px;
    line-height: 1;
}

.party-empty-state p {
    margin: 0;
    font-size: 14px;
}

.party-empty-title {
    color: var(--red-light);
    font-weight: 700;
}

.portal-panel,
.student-profile-card,
.portal-welcome {
    background: var(--white);
    border: 1px solid var(--grey-50);
    box-shadow: 0 1px 2px rgb(0 0 0 / 4%);
}

.portal-panel {
    padding: 18px;
    margin-bottom: 18px;
}

.portal-panel h2,
.student-profile-card h2,
.portal-welcome h2 {
    margin: 0 0 12px;
    color: var(--heritage);
    font: 600 20px/1.25 var(--body-font);
}

.portal-dashboard {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 18px;
    align-items: start;
}

.portal-welcome {
    min-height: 170px;
    padding: 22px;
}

.portal-welcome h2 {
    color: var(--blue-dark);
    font-size: 24px;
    margin-bottom: 4px;
}

.portal-welcome strong {
    display: block;
    color: var(--heritage-75);
    font-size: 18px;
    margin-bottom: 18px;
}

.student-profile-card {
    padding: 18px;
}

.profile-avatar {
    width: 66px;
    height: 66px;
    border-radius: 50%;
    border: 0;
    display: grid;
    place-items: center;
    background: var(--heritage);
    color: var(--white);
    font-weight: 800;
    font-size: 28px;
    margin-bottom: 10px;
    object-fit: cover;
}

.student-profile-card p {
    margin: 0 0 14px;
}

.mini-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: var(--blue-light);
    color: var(--heritage);
    text-align: center;
    margin: 14px 0 22px;
}

.mini-stats span {
    display: grid;
    gap: 2px;
    padding: 12px 6px;
    font-size: 12px;
    text-transform: uppercase;
}

.mini-stats span + span {
    border-left: 1px solid rgb(0 15 70 / 25%);
}

.mini-stats strong {
    font-size: 18px;
}

.student-profile-card dl {
    display: grid;
    grid-template-columns: 82px 1fr;
    gap: 10px;
    margin: 0;
    font-size: 13px;
}

.student-profile-card dt {
    color: var(--heritage-75);
    text-transform: uppercase;
}

.student-profile-card dd {
    margin: 0;
}

.portal-tabs-panel {
    margin-top: 18px;
}

.portal-stat-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 18px;
}

.portal-stat-row article {
    background: var(--white);
    border-top: 4px solid var(--blue-light);
    padding: 14px;
}

.portal-stat-row strong {
    display: block;
    color: var(--blue-dark);
    font-size: 28px;
    line-height: 1;
}

.portal-stat-row span {
    color: var(--heritage-75);
    font-weight: 700;
}

.portal-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-items: start;
}

.portal-table-wrap {
    background: var(--white);
    border: 1px solid var(--grey-50);
    overflow-x: auto;
    margin-bottom: 18px;
}

.portal-table-wrap table {
    min-width: 620px;
}

.portal-table-wrap th {
    background: var(--heritage);
    color: var(--white);
    font-size: 13px;
}

.portal-table-wrap td {
    color: var(--grey-100);
    background: var(--white);
}

.attachment-thumb {
    width: 68px;
    height: 48px;
    display: inline-grid;
    place-items: center;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--grey-50);
    background: var(--grey-25);
    text-decoration: none;
}

.attachment-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.attachment-file {
    color: var(--heritage);
    font-weight: 800;
    border-color: var(--blue-light);
    background: var(--blue-light-25);
}

.attachment-file span {
    font-size: 12px;
    letter-spacing: .04em;
}

.portal-form {
    max-width: 820px;
}

.portal-form.wide-form {
    max-width: 980px;
}

.portal-form button {
    justify-self: start;
}

.compact-list {
    display: grid;
    gap: 10px;
}

.compact-list article {
    padding: 12px;
    border-left: 4px solid var(--blue-light);
    background: var(--grey-25);
}

.compact-list strong,
.compact-list span {
    display: block;
}

.compact-list span {
    color: var(--heritage-75);
    font-size: 13px;
}

.portal-course-list,
.portal-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.portal-course-card {
    background: var(--white);
    border: 1px solid var(--grey-50);
    border-top: 4px solid var(--blue-light);
    padding: 16px;
    display: grid;
    gap: 14px;
}

.portal-course-card h2 {
    margin: 5px 0;
    color: var(--heritage);
    font-size: 18px;
}

.portal-course-card p {
    margin: 0 0 10px;
}

.portal-course-card form {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.portal-course-card meter,
.gpa-bars meter {
    width: 100%;
    height: 14px;
}

.program-chart-page {
    display: grid;
    gap: 14px;
}

.program-chart-heading {
    display: grid;
    gap: 4px;
}

.program-chart-heading p {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: var(--heritage-75);
    font-size: 14px;
}

.program-chart-heading small {
    color: var(--heritage-75);
}

.program-chart-key {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--heritage);
    font-size: 12px;
}

.program-chart-key strong {
    width: 100%;
    font-size: 14px;
}

.program-chart-key span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.key-dot {
    width: 7px;
    height: 7px;
    display: inline-block;
    border-radius: 50%;
}

.key-dot.registered {
    background: rgb(255 174 25);
}

.key-dot.passed {
    background: rgb(112 186 68);
}

.key-dot.failed {
    background: var(--red-light);
}

.key-dot.withdrawn {
    background: var(--blue-light);
}

.program-chart-groups {
    display: grid;
    gap: 12px;
}

.program-chart-section {
    border: 1px solid var(--heritage-25);
    background: var(--white);
}

.program-chart-section h2 {
    margin: 0;
    padding: 12px 14px;
    background: var(--grey-50);
    color: var(--heritage);
    font-size: 14px;
}

.program-course-grid {
    min-height: 72px;
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
    padding: 18px 14px;
}

.program-course-card {
    position: relative;
    width: 134px;
    min-height: 48px;
    display: grid;
    place-items: center;
    gap: 2px;
    border: 1px solid var(--heritage-25);
    background: var(--white);
    padding: 9px 10px 7px;
    text-align: center;
    color: var(--heritage);
    font-size: 10px;
    line-height: 1.2;
}

.program-course-card.available {
    border-color: var(--heritage-25);
}

.program-course-card.registered {
    border-color: rgb(255 174 25);
}

.program-course-card.passed {
    border-color: rgb(112 186 68);
}

.program-course-card.failed {
    border-color: var(--red-light);
}

.program-course-card.withdrawn {
    border-color: var(--blue-light);
}

.program-course-card strong {
    font-size: 10px;
}

.program-course-card span:not(.course-level):not(.course-tag) {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.course-level {
    position: absolute;
    top: 4px;
    right: 5px;
    width: 15px;
    height: 15px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: var(--grey-50);
    color: var(--heritage);
    font-size: 9px;
    font-weight: 800;
}

.program-course-card.registered .course-level {
    background: rgb(255 174 25);
    color: var(--white);
}

.program-course-card.passed .course-level {
    background: rgb(112 186 68);
    color: var(--white);
}

.program-course-card.failed .course-level {
    background: var(--red-light);
    color: var(--white);
}

.program-course-card.withdrawn .course-level {
    background: var(--blue-light);
    color: var(--white);
}

.course-tag {
    position: absolute;
    top: 5px;
    left: 6px;
    color: rgb(255 174 25);
    font-size: 8px;
    font-weight: 800;
}

.program-chart-section footer {
    display: flex;
    gap: 14px;
    padding: 9px 14px;
    background: var(--grey-50);
    color: var(--heritage-75);
    font-size: 11px;
}

.program-chart-section footer b {
    color: var(--blue-dark);
}

.course-history-timeline {
    --timeline-axis: 50%;
    position: relative;
    width: min(760px, 100%);
    margin: 0 auto;
    padding: 24px 0 12px;
}

.course-history-timeline::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--timeline-axis);
    width: 1px;
    background: var(--heritage-25);
}

.history-term {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px minmax(0, 1fr);
    align-items: center;
    margin: 0 0 32px;
}

.history-marker {
    grid-column: 2;
    display: grid;
    place-items: center;
    z-index: 1;
}

.history-marker span {
    width: 22px;
    height: 22px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: rgb(255 174 25);
    color: var(--heritage);
    border: 2px solid var(--white);
    font-size: 10px;
    font-weight: 800;
    box-shadow: 0 0 0 1px rgb(255 174 25);
}

.history-card {
    position: relative;
    min-width: 0;
    border: 1px solid var(--heritage-25);
    background: var(--white);
    box-shadow: 0 1px 0 rgb(0 11 52 / 8%);
}

.history-term.left .history-card {
    grid-column: 1;
    justify-self: end;
    width: min(330px, 100%);
}

.history-term.right .history-card {
    grid-column: 3;
    justify-self: start;
    width: min(330px, 100%);
}

.history-card::before {
    content: "";
    position: absolute;
    top: 22px;
    width: 24px;
    height: 1px;
    background: var(--heritage-25);
}

.history-term.left .history-card::before {
    right: -24px;
}

.history-term.right .history-card::before {
    left: -24px;
}

.history-card header {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 10px;
    border-bottom: 1px dashed var(--heritage-25);
}

.history-card.is-current header {
    background: var(--blue-light);
    color: var(--heritage);
    border-bottom: 0;
}

.history-card h2 {
    margin: 0;
    color: inherit;
    font-size: 12px;
}

.history-card header small {
    color: inherit;
    font-size: 10px;
    white-space: nowrap;
}

.history-course-list {
    display: grid;
    gap: 4px;
    padding: 8px 10px;
}

.history-course-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    line-height: 1.25;
}

.history-course-row span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.history-course-row b {
    color: var(--heritage);
}

.history-course-row em {
    min-width: 31px;
    display: inline-grid;
    place-items: center;
    border-radius: 8px;
    padding: 2px 5px;
    color: var(--white);
    font-size: 8px;
    font-style: normal;
    font-weight: 800;
    line-height: 1;
}

.history-course-row em.passed {
    background: rgb(112 186 68);
}

.history-course-row em.registered {
    background: rgb(255 174 25);
}

.history-course-row em.failed {
    background: var(--red-light);
}

.history-card footer {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 10px;
    border-top: 1px dashed var(--heritage-25);
    color: var(--heritage-75);
    font-size: 9px;
}

.cgpa-progress-page {
    display: grid;
    gap: 18px;
}

.cgpa-heading {
    display: grid;
    gap: 4px;
}

.cgpa-heading p {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: var(--heritage-75);
    font-size: 22px;
    line-height: 1.2;
}

.cgpa-heading small {
    color: var(--heritage-75);
}

.cgpa-chart-panel {
    border: 1px solid var(--blue-light);
    background: var(--white);
}

.cgpa-chart-panel > header {
    min-height: 58px;
    display: flex;
    align-items: center;
    background: rgb(89 197 196);
    color: var(--white);
    padding: 0 14px;
    font-size: 14px;
    font-weight: 800;
}

.cgpa-chart-wrap {
    min-height: 390px;
    padding: 28px 24px 18px;
    overflow-x: auto;
}

.cgpa-chart {
    width: 100%;
    min-width: 980px;
    height: 390px;
    display: block;
}

.cgpa-grid-line {
    stroke: rgb(210 210 210);
    stroke-width: 1;
}

.cgpa-axis-label,
.semester-label,
.cgpa-legend text {
    fill: var(--heritage);
    font-size: 11px;
    font-weight: 700;
}

.semester-label {
    font-size: 10px;
}

.cgpa-axis-title {
    fill: var(--heritage);
    font-size: 14px;
    font-weight: 800;
}

.cgpa-line {
    fill: none;
    stroke: rgb(44 132 43);
    stroke-width: 2;
}

.cgpa-line-sample {
    stroke: rgb(44 132 43);
    stroke-width: 2;
}

.graduate-line,
.graduate-line-sample {
    stroke: var(--red-light);
    stroke-width: 2;
    stroke-dasharray: 2 3;
}

.sgpa-point {
    fill: rgb(37 154 214);
    stroke: rgb(37 154 214);
}

.cgpa-single-point {
    fill: rgb(44 132 43);
    stroke: rgb(44 132 43);
}

.sgpa-value {
    fill: var(--heritage);
    font-size: 10px;
    font-weight: 800;
}

.cgpa-empty {
    min-height: 300px;
    display: grid;
    place-items: center;
    color: var(--heritage-75);
    font-weight: 700;
}

.gpa-bars {
    display: grid;
    gap: 12px;
}

.gpa-bars label {
    display: grid;
    grid-template-columns: 140px 42px 1fr;
    align-items: center;
}

.finance-total {
    border-top: 4px solid var(--blue-light);
}

.finance-total strong {
    display: block;
    color: var(--blue-dark);
    font-size: 42px;
    line-height: 1;
}

.announcement-list {
    max-width: 760px;
}

.graduation-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    align-items: start;
    margin-bottom: 20px;
}

.graduation-card {
    background: var(--white);
    border: 1px solid var(--sage);
    padding: 18px;
}

.graduation-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px dashed var(--heritage-25);
    padding-bottom: 14px;
    margin-bottom: 14px;
}

.graduation-card h2,
.graduation-card h3,
.graduation-info-form h2,
.graduation-info-form h3 {
    margin: 0;
    color: var(--heritage);
}

.graduation-card-icon {
    color: var(--heritage-75);
    font-size: 22px;
    line-height: 1;
}

.graduation-status {
    display: grid;
    grid-template-columns: minmax(120px, .2fr) 1fr;
    gap: 14px;
    align-items: center;
    background: var(--grey-25);
    border: 1px solid var(--grey-50);
    padding: 14px;
    margin: 16px 0;
}

.graduation-status.pending {
    background: var(--blue-light-25);
    border-color: var(--blue-light);
}

.graduation-status.approved {
    background: var(--sage-25);
    border-color: var(--sage);
}

.graduation-status.declined {
    background: rgb(255 202 206);
    border-color: var(--red);
}

.graduation-status strong {
    color: var(--heritage);
}

.graduation-status ul,
.graduation-rules ul {
    margin: 0;
}

.graduation-preview {
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: var(--grey-25);
    border: 1px solid var(--grey-50);
    padding: 16px;
    margin-bottom: 16px;
}

.graduation-preview .attachment-thumb {
    width: 128px;
    height: 128px;
}

.empty-document-preview {
    color: var(--heritage-75);
    font-weight: 700;
}

.graduation-rules {
    background: var(--grey-25);
    border: 1px solid var(--grey-50);
    padding: 16px;
    margin: 16px 0;
}

.graduation-rules h3 {
    margin-bottom: 10px;
}

.graduation-upload-form {
    display: grid;
    gap: 12px;
}

.graduation-info-form {
    max-width: none;
}

.document-request-form {
    max-width: none;
}

.plain-fieldset {
    border: 0;
    padding: 0;
    margin: 0;
}

.plain-fieldset legend {
    font-weight: 700;
    margin-bottom: 8px;
}

.required {
    color: var(--red-light);
}

.radio-row {
    display: flex;
    gap: 20px;
    align-items: center;
}

.radio-row label {
    display: flex;
    grid-template-columns: none;
    gap: 6px;
    align-items: center;
    font-weight: 500;
}

.radio-row input {
    width: auto;
    min-height: auto;
}

.document-upload-zone {
    position: relative;
    min-height: 150px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 6px;
    border: 1px dashed var(--heritage-75);
    background: var(--white);
    color: var(--heritage-75);
    text-align: center;
    overflow: hidden;
}

.document-upload-zone input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.upload-arrow {
    color: var(--blue-dark);
    font-weight: 800;
    font-size: 24px;
    line-height: 1;
}

.document-upload-zone .file-upload-name {
    max-width: min(560px, 90%);
    padding: 0;
}

.activity-application-form {
    display: grid;
    gap: 12px;
    color: var(--heritage);
    direction: ltr;
}

.activity-panel,
.activity-choice-panel {
    border: 1px solid var(--heritage-25);
    background: var(--white);
}

.activity-panel header,
.activity-choice-panel legend {
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    background: var(--grey-50);
    color: var(--heritage);
    padding: 9px 12px;
    font-size: 12px;
    font-weight: 800;
}

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

.activity-student-grid label,
.activity-notes-label,
.activity-upload-label {
    text-align: left;
    font-size: 12px;
}

.activity-student-grid input {
    min-height: 28px;
    padding: 4px 8px;
    font-size: 12px;
}

.activity-warning {
    border: 2px solid rgb(255 95 56);
    background: rgb(255 238 233);
    color: var(--red);
    padding: 10px 12px;
    text-align: left;
    font-size: 12px;
    font-weight: 800;
}

.activity-selection-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 14px;
}

.activity-choice-panel {
    margin: 0;
    padding: 0 8px 8px;
}

.activity-choice-panel div {
    display: grid;
}

.activity-choice-panel label {
    min-height: 26px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    border-bottom: 1px solid var(--heritage-25);
    font-size: 12px;
    font-weight: 600;
    text-align: left;
}

.activity-choice-panel input {
    width: auto;
    min-height: auto;
}

.activity-notes-label textarea {
    min-height: 58px;
    font-size: 12px;
}

.activity-upload-zone {
    position: relative;
    min-height: 118px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 6px;
    border: 1px dashed var(--heritage-75);
    background: var(--white);
    color: var(--heritage-75);
    text-align: center;
    overflow: hidden;
}

.activity-upload-zone input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.activity-upload-zone .file-upload-name {
    max-width: min(560px, 90%);
    padding: 0;
}

.activity-actions {
    display: flex;
    justify-content: flex-start;
}

.activity-actions .button {
    min-height: 30px;
    padding: 6px 12px;
    font-size: 12px;
}

.document-request-start {
    display: grid;
    gap: 24px;
}

.document-request-heading {
    display: grid;
    gap: 4px;
}

.document-request-heading p {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: var(--heritage-75);
    font-size: 14px;
}

.document-request-heading h2 {
    margin: 0;
    color: var(--heritage);
    font-size: 22px;
}

.document-request-heading small {
    color: var(--heritage-75);
}

.document-choice-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(260px, 1fr));
    gap: 18px;
}

.document-choice-card {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    min-height: 138px;
    background: var(--white);
    border: 1px solid var(--grey-50);
    padding: 18px 20px;
}

.document-choice-number {
    width: 30px;
    height: 30px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: var(--blue-light);
    color: var(--white);
    font-weight: 800;
}

.document-choice-card h3 {
    margin: 0 0 4px;
    color: var(--heritage);
    font-size: 15px;
}

.document-choice-card p {
    margin: 0 0 8px;
    color: var(--heritage-75);
    font-size: 12px;
    line-height: 1.45;
}

.document-choice-card .document-issued {
    color: var(--grey-100);
    font-weight: 700;
}

.document-choice-card a {
    color: var(--blue-dark);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.document-form-heading {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 16px;
}

.document-form-heading h2 {
    margin: 0;
    color: var(--heritage);
    font-size: 20px;
}

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

.payment-panel,
.document-request-terms {
    border: 1px solid var(--grey-50);
    background: var(--white);
    padding: 16px;
}

.fee-table table {
    min-width: 760px;
}

.fee-table td:nth-child(3),
.fee-table td:nth-child(4),
.fee-table th:nth-child(3),
.fee-table th:nth-child(4) {
    text-align: right;
}

.document-request-terms {
    background: var(--grey-25);
}

.document-request-terms h2 {
    margin-top: 0;
    color: var(--heritage);
}

.checkbox-line {
    display: flex;
    grid-template-columns: none;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.checkbox-line input {
    width: auto;
    min-height: auto;
}

.portal-modal {
    width: min(560px, calc(100% - 32px));
    border: 0;
    padding: 0;
    background: transparent;
}

.image-preview-modal {
    width: 100vw;
    max-width: none;
    height: 100vh;
    max-height: none;
    border: 0;
    padding: 56px 24px 24px;
    background: rgb(0 11 52 / 96%);
    color: var(--white);
}

.image-preview-modal::backdrop {
    background: rgb(0 11 52 / 82%);
}

.image-preview-modal img {
    width: 100%;
    height: calc(100vh - 128px);
    object-fit: contain;
    display: block;
}

.image-preview-modal p {
    margin: 12px 0 0;
    text-align: center;
    color: var(--white);
    font-weight: 700;
}

.preview-close {
    position: fixed;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    min-height: 40px;
    padding: 0;
    background: var(--blue-light);
    color: var(--heritage);
    z-index: 2;
}

.portal-modal::backdrop {
    background: rgb(0 11 52 / 62%);
}

.modal-card {
    background: var(--white);
    border: 1px solid var(--grey-50);
    box-shadow: 0 22px 60px rgb(0 11 52 / 28%);
    padding: 20px;
}

.modal-header,
.modal-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.modal-header {
    margin-bottom: 16px;
}

.modal-header h2 {
    margin: 0;
    color: var(--heritage);
}

.modal-close {
    width: 34px;
    height: 34px;
    min-height: 34px;
    padding: 0;
    background: var(--grey-50);
    color: var(--heritage);
}

.modal-actions {
    justify-content: flex-end;
}

.file-upload-control {
    position: relative;
    min-height: 48px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    border: 1px solid var(--heritage-25);
    background: var(--white);
    overflow: hidden;
}

.file-upload-button {
    height: 100%;
    display: inline-flex;
    align-items: center;
    padding: 0 14px;
    background: var(--blue-light);
    color: var(--heritage);
    font-weight: 700;
}

.file-upload-name {
    min-width: 0;
    padding: 0 14px;
    color: var(--heritage-75);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-upload-control input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

@media (max-width: 900px) {
    .portal-body {
        overflow: auto;
    }

    .portal-layout {
        height: auto;
        grid-template-columns: 1fr;
    }

    .student-sidenav {
        max-height: 55vh;
    }

    .portal-main {
        display: block;
    }

    .collapse-control {
        display: none;
    }

    .portal-topbar,
    .portal-content-header {
        flex-direction: column;
        align-items: stretch;
        height: auto;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .portal-dashboard,
    .portal-grid-2,
    .portal-stat-row,
    .activity-selection-grid,
    .activity-student-grid,
    .document-choice-grid,
    .document-form-grid,
    .graduation-grid,
    .gpa-bars label {
        grid-template-columns: 1fr;
    }

    .document-form-heading {
        display: grid;
    }

    .course-history-timeline {
        --timeline-axis: 14px;
        width: 100%;
        padding-left: 28px;
    }

    .history-term {
        display: block;
    }

    .history-marker {
        position: absolute;
        left: -24px;
        top: 14px;
    }

    .history-term.left .history-card,
    .history-term.right .history-card {
        width: 100%;
    }

    .history-card::before {
        left: -24px;
        right: auto;
    }

    .registered-course-card dl {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .registered-course-title {
        flex-wrap: wrap;
    }

    .final-result-card {
        grid-template-columns: 62px minmax(0, 1fr);
    }

    .final-result-course {
        padding: 10px 12px;
    }

    .gradebook-export-button {
        margin-bottom: 18px;
    }

    .gradebook-course-section > summary {
        min-height: 54px;
    }
}
