:root {
    --ink: #172d45;
    --muted: #6f7d88;
    --line: #d8e2e4;
    --paper: #f7faf8;
    --blue: #1554b8;
    --deep: #0b2648;
    --green: #53c976;
    --mint: #eaf7f0;
    font-family: Georgia, 'Times New Roman', serif;
    color: var(--ink);
    background: var(--paper);
    font-synthesis: none;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--paper);
}

a {
    color: inherit;
    text-decoration: none;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid #4f8df1;
    outline-offset: 4px;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

button:disabled {
    cursor: wait;
    opacity: .65;
}

header {
    background: #fff;
    border-bottom: 1px solid var(--line);
}

.top {
    max-width: 1160px;
    margin: auto;
    padding: 18px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 20px;
    letter-spacing: -.4px;
}

.brandmark {
    width: 112px;
    height: 42px;
    object-fit: contain;
    object-position: left center;
}

.brand>span {
    display: grid;
    gap: 2px;
}

.brand strong {
    font-size: 19px;
}

.brand small {
    color: #6d7a84;
    font-family: Arial, sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.account {
    display: flex;
    align-items: center;
    gap: 12px;
}

.accountname {
    font-family: Arial, sans-serif;
    font-size: 14px;
    color: var(--muted);
}

.tag {
    font-family: Arial, sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #69758c;
    text-transform: uppercase;
}

.nav {
    border: 0;
    border-radius: 6px;
    padding: 10px 14px;
    color: #24539a;
    background: #edf4ff;
    font-family: Arial, sans-serif;
    font-size: 13px;
}

.role {
    border-radius: 20px;
    padding: 6px 12px;
    color: #15786e;
    background: #eaf7f5;
    font-family: Arial, sans-serif;
    font-size: 13px;
    text-transform: capitalize;
}

main {
    max-width: 1160px;
    margin: auto;
    padding: 48px 28px 60px;
}

.eyebrow {
    margin-bottom: 14px;
    color: #168e65;
    font-family: Arial, sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

h1 {
    margin: 0 0 12px;
    font-size: 42px;
    line-height: 1.1;
    letter-spacing: -1.8px;
}

h2 {
    letter-spacing: -.7px;
}

.intro {
    margin: 0;
    color: var(--muted);
    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
}

.welcome {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
    align-items: center;
    gap: 40px;
    min-height: 430px;
    margin: -8px 0 62px;
    padding: 58px 62px;
    overflow: hidden;
    border-radius: 26px;
    background: var(--deep);
    color: #fff;
    isolation: isolate;
}

.welcome::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -2;
    background: linear-gradient(115deg, #0b2445, #123e67 55%, #126e69);
}

.welcome::after {
    content: '';
    position: absolute;
    z-index: -1;
    width: 560px;
    height: 560px;
    right: -130px;
    top: -130px;
    border: 1px solid #ffffff24;
    border-radius: 50%;
    box-shadow: 0 0 0 46px #ffffff08, 0 0 0 92px #ffffff05;
}

.welcome-copy {
    max-width: 570px;
}

.welcome .eyebrow {
    color: #6ee1aa;
}

.welcome h1 {
    max-width: 600px;
    margin-bottom: 22px;
    font-size: clamp(44px, 5vw, 72px);
    letter-spacing: -3px;
    line-height: 1.02;
}

.welcome .intro {
    max-width: 500px;
    color: #d2dfeb;
    font-size: 18px;
}

.welcome-actions {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 32px;
}

.welcome .primary {
    color: #09263b;
    background: var(--green);
}

.welcome .primary span,
.quiet-link span {
    margin-left: 8px;
    font-size: 18px;
}

.quiet-link {
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
}

.trustline {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 38px;
    color: #aac3cf;
    font-family: Arial, sans-serif;
    font-size: 12px;
}

.pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #75df93;
    box-shadow: 0 0 0 5px #75df9320;
}

.orbit {
    position: relative;
    min-height: 300px;
}

.orbit-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 1px solid #ffffff36;
    border-radius: 50%;
    transform: translate(-50%, -50%) rotate(-18deg);
}

.ring-one {
    width: 270px;
    height: 150px;
}

.ring-two {
    width: 205px;
    height: 280px;
    transform: translate(-50%, -50%) rotate(54deg);
}

.orbit-core {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    place-items: center;
    width: 128px;
    height: 128px;
    border-radius: 50%;
    color: #123965;
    background: #f4f8f2;
    box-shadow: 0 15px 44px #051a303d;
    transform: translate(-50%, -50%);
}

.orbit-core::before {
    content: '';
    position: absolute;
    inset: 11px;
    border: 2px solid #5cc979;
    border-radius: 50%;
}

.orbit-core span {
    z-index: 1;
    font-family: Arial, sans-serif;
    font-size: 32px;
    font-weight: 850;
    letter-spacing: -2px;
}

.orbit-core small {
    z-index: 1;
    color: #3989a0;
    font-family: Arial, sans-serif;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 3px;
}

.orbit-label {
    position: absolute;
    padding: 7px 10px;
    border: 1px solid #ffffff40;
    border-radius: 3px;
    color: #d7f2df;
    background: #ffffff12;
    font-family: Arial, sans-serif;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.6px;
}

.label-one {
    top: 28px;
    right: 20px;
}

.label-two {
    bottom: 35px;
    left: 5px;
}

.label-three {
    right: 43px;
    bottom: 12px;
}

.portal-section {
    margin-bottom: 58px;
}

.section-heading {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: end;
    margin-bottom: 22px;
}

.section-heading h2 {
    max-width: 480px;
    margin: 0;
    font-size: 30px;
    line-height: 1.15;
}

.section-heading p {
    max-width: 420px;
    margin: 0;
    color: var(--muted);
    font-family: Arial, sans-serif;
    line-height: 1.7;
}

.signal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid #cedbd9;
    border-bottom: 1px solid #cedbd9;
}

.signal-grid article {
    padding: 25px 25px 25px 0;
}

.signal-grid article+article {
    border-left: 1px solid #cedbd9;
    padding-left: 25px;
}

.signal-number {
    display: block;
    margin-bottom: 25px;
    color: #169766;
    font-family: Arial, sans-serif;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
}

.signal-grid h3 {
    margin: 0 0 9px;
    font-size: 22px;
}

.signal-grid p {
    max-width: 270px;
    margin: 0;
    color: var(--muted);
    font-family: Arial, sans-serif;
    font-size: 14px;
    line-height: 1.65;
}

.loginchoices {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: none;
}

.logincard {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 22px;
    padding: 27px 30px;
    border: 1px solid #d2dcde;
    border-radius: 5px;
    background: #fff;
    transition: transform .18s, box-shadow .18s, border-color .18s;
}

.logincard:hover {
    border-color: #4d91bb;
    box-shadow: 0 12px 28px #12396512;
    transform: translateY(-2px);
}

.student-card {
    background: #f1f8f4;
}

.admin-card {
    background: #f2f5fb;
}

.portalicon {
    display: inline-flex;
    padding: 12px 17px;
    border-radius: 4px;
    color: #2458b8;
    background: #e5efff;
    font-family: Arial, sans-serif;
    font-size: 25px;
    font-weight: 800;
}

.logincard h2 {
    margin: 3px 0 5px;
    font-size: 23px;
}

.logincard p {
    margin: 0;
    color: var(--muted);
    font-family: Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
}

.card-kicker {
    color: #188c64 !important;
    font-size: 10px !important;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.portalcta {
    margin: 0;
    color: #164f72;
    font-family: Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.portal-footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 58px;
    padding-top: 20px;
    border-top: 1px solid #d7e0e0;
    color: #74838a;
    font-family: Arial, sans-serif;
    font-size: 12px;
}

.heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 34px;
}

.pill {
    padding: 8px 13px;
    border: 1px solid #e0e6ef;
    border-radius: 30px;
    color: #5c6981;
    background: #fff;
    font-family: Arial, sans-serif;
    font-size: 13px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    min-height: 132px;
    padding: 24px;
    border: 1px solid #e0e6ef;
    border-radius: 14px;
    background: #fff;
    transition: transform .18s, border-color .18s, box-shadow .18s;
}

.card:hover {
    border-color: #8b9fe8;
    box-shadow: 0 9px 23px #1935640c;
    transform: translateY(-3px);
}

.number {
    display: grid;
    place-items: center;
    width: 60px;
    height: 66px;
    flex-shrink: 0;
    border-radius: 10px;
    color: #3457cb;
    background: #edf2ff;
    font-family: Arial, sans-serif;
    font-size: 28px;
    font-weight: 700;
}

.card:nth-child(3n+2) .number {
    color: #15786e;
    background: #eaf7f5;
}

.card:nth-child(3n) .number {
    color: #a9620b;
    background: #fff3e2;
}

.card h2 {
    margin: 0 0 9px;
    font-size: 20px;
}

.card p {
    margin: 0;
    color: #738096;
    font-family: Arial, sans-serif;
    font-size: 14px;
}

.arrow {
    margin-left: auto;
    color: #8793ac;
    font-size: 23px;
}

.breadcrumb {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    color: #748097;
    font-family: Arial, sans-serif;
    font-size: 14px;
}

.breadcrumb a,
.back {
    color: #4261c0;
}

.back {
    display: inline-block;
    margin-top: 26px;
    font-family: Arial, sans-serif;
    font-size: 14px;
}

.tablebox,
.uploadpanel,
.loginform {
    border: 1px solid #dfe5ef;
    border-radius: 14px;
    background: #fff;
}

.tablebox {
    overflow: hidden;
}

.tabletitle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 26px;
    border-bottom: 1px solid #e6eaf2;
}

.tabletitle h2 {
    margin: 0;
    font-family: Arial, sans-serif;
    font-size: 18px;
}

.tabletitle span {
    color: #758095;
    font-family: Arial, sans-serif;
    font-size: 13px;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

th {
    padding: 17px 26px;
    color: #6c7890;
    background: #f9fafd;
    font-family: Arial, sans-serif;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

td {
    padding: 22px 16px;
    border-top: 1px solid #e9edf4;
    font-family: Arial, sans-serif;
    font-size: 16px;
}

td:first-child {
    color: #66718a;
    font-size: 14px;
}

.resource {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border: 1px solid #e0e5ee;
    border-radius: 7px;
    color: #3156c4;
    background: #eef3ff;
    font-family: Arial, sans-serif;
    font-size: 13px;
}

.resourcename,
.filesize,
.unavailable {
    display: block;
    font-family: Arial, sans-serif;
}

.resourcename {
    max-width: 200px;
    overflow-wrap: anywhere;
    font-size: 14px;
}

.filesize {
    margin: 5px 0 10px;
    color: #738096;
    font-size: 12px;
}

.resourceactions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.note,
.formhint {
    color: #77829a;
    font-family: Arial, sans-serif;
    font-size: 13px;
    line-height: 1.6;
}

.note {
    margin: 0;
    padding: 18px 26px;
    border-top: 1px solid #e9edf4;
    background: #fcfdff;
}

.uploadpanel {
    margin: 25px 0;
    padding: 26px;
}

.uploadpanel h2 {
    margin: 0 0 12px;
    font-family: Arial, sans-serif;
    font-size: 19px;
}

.formgrid,
.filegrid {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 20px;
}

.filegrid {
    grid-template-columns: 1fr 1fr;
    margin-top: 20px;
}

.filefield {
    min-width: 0;
    padding: 16px;
    border: 1px dashed #cbd5e6;
    border-radius: 10px;
}

.filefield label {
    margin-top: 0;
}

input[type=file] {
    max-width: 100%;
    font-family: Arial, sans-serif;
    font-size: 14px;
}

input::file-selector-button {
    margin-right: 10px;
    padding: 8px;
    border: 1px solid #cfdaec;
    border-radius: 6px;
    color: #3457cb;
    background: #edf2ff;
}

label {
    display: block;
    margin: 15px 0 9px;
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
}

input:not([type=file]) {
    width: 100%;
    min-height: 44px;
    padding: 11px 12px;
    border: 1px solid #cad4e5;
    border-radius: 7px;
    color: var(--ink);
    background: #fff;
}

input:focus {
    outline: 2px solid #7292f4;
    outline-offset: 1px;
}

.primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border: 0;
    border-radius: 8px;
    color: #fff;
    background: #294cce;
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
}

.loginintro {
    margin: 25px 0 36px;
    text-align: center;
}

.loginform {
    max-width: 440px;
    margin: 30px auto;
    padding: 30px;
}

.loginform h1 {
    font-size: 30px;
}

.loginform form {
    margin-top: 24px;
}

.loginform .primary {
    width: 100%;
    margin-top: 22px;
}

.error,
.success {
    padding: 12px 15px;
    border-radius: 7px;
    font-family: Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.error {
    color: #a82a3b;
    background: #fff0f2;
}

.success {
    color: #116651;
    background: #eaf7f0;
}

fieldset {
    min-width: 0;
    padding: 0;
    border: 0;
}

.studentlist {
    padding: 0;
    margin: 0;
    list-style: none;
}

.studentlist li {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 25px;
    border-top: 1px solid #e7edf5;
    font-family: Arial, sans-serif;
    font-size: 14px;
}

.studentlist span {
    color: #667189;
}

.studentlist small {
    margin-left: auto;
    color: #738096;
}

.viewer {
    width: 100%;
    min-height: 400px;
    height: 70vh;
    border: 1px solid #dfe5ef;
    border-radius: 12px;
    background: #fff;
}

.filename {
    overflow-wrap: anywhere;
    font-size: 26px;
}

.missing {
    padding: 35px;
    border-radius: 14px;
    background: #fff;
}

@media (max-width: 850px) {
    .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .card {
        gap: 15px;
        padding: 20px;
    }

    td,
    th {
        padding: 20px 16px;
    }
}

@media (max-width: 760px) {
    .welcome {
        grid-template-columns: 1fr;
        min-height: 0;
        margin: -12px -8px 48px;
        padding: 40px 28px 22px;
        border-radius: 18px;
    }

    .orbit {
        min-height: 235px;
    }

    .section-heading {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .signal-grid {
        grid-template-columns: 1fr;
    }

    .signal-grid article,
    .signal-grid article+article {
        padding: 21px 0;
        border-left: 0;
    }

    .signal-grid article+article {
        border-top: 1px solid #cedbd9;
    }
}

@media (max-width: 650px) {
    .top {
        padding: 16px;
    }

    .accountname {
        display: none;
    }

    .role {
        display: none;
    }

    .account {
        gap: 6px;
    }

    .account .nav {
        padding: 8px;
        font-size: 12px;
    }

    .loginchoices,
    .filegrid {
        grid-template-columns: 1fr;
    }

    .formgrid {
        grid-template-columns: 90px 1fr;
        gap: 12px;
    }

    .loginform,
    .uploadpanel {
        padding: 24px;
    }

    .studentlist li {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
    }

    .studentlist small {
        margin: 0;
    }

    .heading {
        align-items: flex-start;
        flex-wrap: wrap;
    }
}

@media (max-width: 560px) {
    .brandmark {
        width: 88px;
    }

    .brand strong {
        font-size: 16px;
    }

    .brand small {
        font-size: 8px;
        letter-spacing: 1px;
    }

    main {
        padding: 32px 20px;
    }

    .welcome {
        padding: 34px 22px 16px;
    }

    .welcome h1 {
        font-size: 44px;
    }

    .welcome .intro {
        font-size: 16px;
    }

    .orbit {
        margin-bottom: -35px;
        transform: scale(.85);
        transform-origin: top center;
    }

    .logincard {
        grid-template-columns: auto 1fr;
        gap: 14px;
        padding: 21px;
    }

    .portalcta {
        grid-column: 2;
    }

    .grid {
        gap: 12px;
    }

    .card {
        display: block;
        min-height: 170px;
        padding: 18px;
    }

    .number {
        width: 48px;
        height: 48px;
        margin-bottom: 16px;
        font-size: 24px;
    }

    .arrow {
        position: absolute;
        top: 29px;
        right: 17px;
    }

    table,
    tbody,
    tr,
    td {
        display: block;
    }

    thead {
        display: none;
    }

    tr {
        padding: 19px 20px;
        border-bottom: 1px solid #e7edf5;
    }

    td {
        padding: 7px 0;
        border: 0;
    }

    td:nth-child(3),
    td:nth-child(4) {
        display: block !important;
    }

    .resourceactions {
        margin: 10px 0;
    }

    .tabletitle {
        padding: 20px;
    }

    .note {
        padding: 18px 20px;
    }

    .portal-footer {
        flex-direction: column;
        gap: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .card,
    .logincard {
        transition: none;
    }
}