:root {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: #17383d;
    background: #f5f7f3;
    font-synthesis: none;
}
* {
    box-sizing: border-box;
}
html {
    min-height: 100%;
    scroll-behavior: smooth;
}
body {
    margin: 0;
    min-height: 100vh;
}
button,
input,
select {
    font: inherit;
}
button {
    cursor: pointer;
}
button:disabled {
    cursor: wait;
    opacity: 0.6;
}
[hidden] {
    display: none !important;
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.site-shell {
    max-width: 1020px;
    margin: 0 auto;
    padding: 0 26px;
}
.topbar {
    height: 88px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.brand-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: #0b5362;
    color: #fff;
    font-family: Georgia, serif;
    font-size: 25px;
    font-weight: 700;
    box-shadow: 0 6px 16px #0b536225;
}
.brand-name {
    display: flex;
    flex-direction: column;
    line-height: 1.18;
    gap: 4px;
}
.brand-name strong {
    font-size: 16px;
    letter-spacing: 0.05em;
}
.brand-name span {
    color: #739094;
    font-size: 11px;
    letter-spacing: 0.12em;
}
.connection-badge {
    margin-left: auto;
    border: 1px solid #c8ded6;
    border-radius: 100px;
    color: #286b56;
    background: #e9f4ed;
    padding: 7px 11px;
    font-size: 12px;
    font-weight: 700;
}
.connection-badge.offline {
    color: #9b5b28;
    background: #fff1e2;
    border-color: #efcda6;
}
.hero {
    position: relative;
    min-height: 244px;
    overflow: hidden;
    padding: 38px 44px;
    border-radius: 24px;
    background: linear-gradient(115deg, #0b5362, #176778 52%, #347f84);
    color: #fff;
    box-shadow: 0 22px 50px #0b53621d;
}
.hero:before,
.hero:after {
    content: "";
    position: absolute;
    border: 1px solid #ffffff30;
    border-radius: 50%;
    pointer-events: none;
}
.hero:before {
    width: 560px;
    height: 560px;
    right: -175px;
    top: -357px;
}
.hero:after {
    width: 340px;
    height: 340px;
    right: 4px;
    bottom: -276px;
}
.hero-copy {
    position: relative;
    z-index: 1;
    max-width: 600px;
}
.eyebrow {
    font-size: 10px;
    letter-spacing: 0.19em;
    font-weight: 800;
    color: #bde7dc;
}
.hero h1 {
    margin: 14px 0 12px;
    font-size: 38px;
    letter-spacing: -0.03em;
    line-height: 1.28;
    font-weight: 800;
}
.hero h1 em {
    font-style: normal;
    color: #c8edb1;
}
.hero p {
    margin: 0;
    color: #e5f0ee;
    font-size: 14px;
    line-height: 1.7;
}
.hero-orb {
    position: absolute;
    right: 52px;
    top: 47px;
    width: 148px;
    height: 148px;
    border: 1px solid #ffffff4d;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transform: rotate(-12deg);
    background: #ffffff0f;
}
.hero-orb span {
    font:
        700 43px Georgia,
        serif;
    letter-spacing: 0.04em;
}
.hero-orb small {
    font-size: 11px;
    letter-spacing: 0.3em;
    color: #c2e3da;
}
.notice {
    margin-top: 20px;
    padding: 14px 17px;
    border-radius: 13px;
    background: #fff1e6;
    color: #8b4d1f;
    border: 1px solid #f3d7b7;
    font-size: 14px;
    line-height: 1.5;
}
.notice.success {
    background: #e8f5eb;
    color: #23624a;
    border-color: #c8e8d3;
}
.panel {
    background: #fff;
    border: 1px solid #e3ebe5;
    border-radius: 20px;
    box-shadow: 0 9px 32px #183e3010;
}
.loading-panel {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 25px 0;
    padding: 35px;
}
.loading-panel p {
    margin: 0;
    color: #6d8584;
}
.spinner {
    width: 22px;
    height: 22px;
    border: 3px solid #d5e7e4;
    border-top-color: #0b5362;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
.login-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(250px, 0.75fr);
    gap: 22px;
    margin: 24px 0 42px;
}
.login-panel {
    padding: 31px 34px;
}
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #3e8a73;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
}
.kicker-line {
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: #5fb58a;
}
.login-panel h2,
.app-heading h2 {
    font-size: 27px;
    margin: 12px 0 10px;
    letter-spacing: -0.025em;
}
.muted {
    color: #718487;
    line-height: 1.75;
    font-size: 14px;
}
.login-panel form {
    display: flex;
    flex-direction: column;
    margin-top: 27px;
}
.login-panel label {
    font-size: 13px;
    font-weight: 700;
    margin: 0 0 8px;
}
.login-panel input,
.grade-tools input {
    width: 100%;
    border: 1px solid #dce5e3;
    border-radius: 11px;
    background: #f9fbfa;
    color: #17383d;
    outline: none;
    padding: 13px 14px;
    font-size: 15px;
}
.login-panel input {
    margin-bottom: 18px;
}
.login-panel input:focus,
.grade-tools input:focus,
select:focus {
    border-color: #2f9d7b;
    box-shadow: 0 0 0 3px #2f9d7b21;
}
.primary-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    border: 0;
    border-radius: 11px;
    background: #0b5362;
    color: #fff;
    padding: 15px 18px;
    margin-top: 6px;
    font-weight: 800;
    box-shadow: 0 8px 18px #0b53622c;
}
.primary-button:hover {
    background: #146779;
}
.primary-button span:last-child {
    font-size: 20px;
}
.fine-print {
    margin: 20px 0 0;
    color: #8ba09c;
    font-size: 11px;
    line-height: 1.75;
}
.install-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-height: 330px;
    padding: 32px;
    border-radius: 20px;
    background: #e6f0e5;
    border: 1px solid #d4e5d2;
}
.install-icon {
    display: grid;
    place-items: center;
    width: 47px;
    height: 47px;
    border-radius: 14px;
    color: #0b5362;
    background: #fff;
    font-size: 26px;
}
.install-card h3 {
    font-size: 21px;
    margin: 23px 0 8px;
}
.install-card p {
    color: #627b74;
    line-height: 1.85;
    font-size: 14px;
    margin: 0;
}
.install-card strong {
    color: #0b5362;
}
.install-card small {
    margin-top: 30px;
    color: #5d8270;
    font-size: 12px;
}
.app-view {
    margin: 27px 0 40px;
}
.app-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.app-heading h2 {
    margin-bottom: 22px;
}
.text-button {
    border: 0;
    background: none;
    color: #64817c;
    font-size: 13px;
    padding: 10px;
}
.text-button:hover {
    text-decoration: underline;
}
.semester-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 17px 20px;
}
.semester-bar > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 145px;
}
.semester-bar strong {
    font-size: 15px;
}
.tiny-label {
    font-size: 11px;
    color: #8aa09b;
}
.semester-bar select,
.week-row select {
    border: 1px solid #dce5e3;
    border-radius: 10px;
    background: #f7faf8;
    color: #214a4b;
    padding: 10px 28px 10px 12px;
    font-size: 13px;
    font-weight: 700;
    min-width: 0;
}
.icon-button {
    display: grid;
    place-items: center;
    margin-left: auto;
    width: 40px;
    height: 40px;
    border: 1px solid #dce5e3;
    border-radius: 10px;
    color: #0b5362;
    background: #f7faf8;
    font-size: 25px;
}
.tabs {
    display: flex;
    gap: 8px;
    margin-top: 28px;
    border-bottom: 1px solid #dce8e4;
}
.tab {
    border: 0;
    border-bottom: 3px solid transparent;
    background: none;
    padding: 0 18px 13px;
    color: #78918e;
    font-size: 15px;
    font-weight: 700;
}
.tab.active {
    color: #0b5362;
    border-color: #0b5362;
}
.content-section {
    padding: 28px 0;
}
.content-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
}
.eyebrow.dark {
    color: #66a18a;
    font-size: 10px;
}
.content-heading h3 {
    font-size: 24px;
    margin: 8px 0 0;
}
.count-pill {
    border: 1px solid #dce8e3;
    background: #ebf4ec;
    color: #377862;
    border-radius: 100px;
    padding: 7px 11px;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 700;
}
.week-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
}
.week-row label {
    font-size: 13px;
    font-weight: 700;
}
.week-row span {
    color: #9aaba6;
    font-size: 11px;
}
.day-chips {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
    margin: 23px 0;
}
.day-chip {
    border: 1px solid #dfe9e3;
    border-radius: 13px;
    background: #fff;
    padding: 11px 4px;
    color: #6d8580;
    font-size: 13px;
    font-weight: 700;
}
.day-chip.active {
    background: #0b5362;
    border-color: #0b5362;
    color: #fff;
    box-shadow: 0 5px 13px #0b53622b;
}
.course-list,
.grade-list {
    display: grid;
    gap: 12px;
}
.course-card {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
    padding: 18px 20px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #e2ebe5;
    box-shadow: 0 5px 17px #2149370b;
}
.course-time {
    display: flex;
    flex-direction: column;
    gap: 3px;
    color: #0d6574;
}
.course-time strong {
    font-size: 18px;
}
.course-time span {
    font-size: 11px;
}
.course-card h4,
.grade-card h4 {
    margin: 0 0 8px;
    font-size: 17px;
    color: #17383d;
}
.course-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 16px;
    color: #6d8784;
    font-size: 12px;
    line-height: 1.5;
}
.course-weeks {
    margin-top: 10px;
    color: #77a68a;
    font-size: 11px;
}
.empty-state {
    display: grid;
    place-items: center;
    min-height: 150px;
    padding: 28px;
    border: 1px dashed #cbded2;
    border-radius: 16px;
    background: #f9fbf8;
    color: #8ba39b;
    text-align: center;
}
.empty-state span {
    font-size: 30px;
}
.empty-state p {
    margin: 6px 0 0;
    font-size: 13px;
}
.grade-tools {
    display: flex;
    gap: 10px;
    margin: 24px 0;
}
.grade-tools input {
    flex: 1;
}
.secondary-button {
    border: 0;
    border-radius: 11px;
    background: #0b5362;
    color: #fff;
    padding: 0 19px;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}
.grade-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 17px 20px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #e2ebe5;
}
.grade-card h4 {
    margin-bottom: 6px;
}
.grade-card p {
    margin: 0;
    color: #849891;
    font-size: 12px;
}
.grade-score {
    min-width: 66px;
    text-align: center;
    color: #17687a;
    font-size: 24px;
    font-weight: 800;
}
.grade-score.unpublished {
    font-size: 13px;
    color: #a18a67;
}
footer {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid #dfe9e3;
    padding: 20px 0 35px;
    color: #91a4a0;
    font-size: 11px;
}
@media (max-width: 700px) {
    .site-shell {
        padding: 0 16px;
    }
    .topbar {
        height: 70px;
    }
    .hero {
        padding: 31px 26px;
        min-height: 226px;
    }
    .hero h1 {
        font-size: 31px;
    }
    .hero p {
        max-width: 300px;
    }
    .hero-orb {
        right: -35px;
        top: 72px;
        opacity: 0.35;
    }
    .login-layout {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-top: 17px;
    }
    .login-panel {
        padding: 27px 23px;
    }
    .install-card {
        min-height: 0;
        padding: 24px;
        display: block;
    }
    .install-icon {
        float: right;
    }
    .install-card h3 {
        margin: 0 0 5px;
    }
    .install-card small {
        display: block;
        margin-top: 12px;
    }
    .semester-bar {
        flex-wrap: wrap;
        padding: 15px;
    }
    .semester-bar > div {
        min-width: 100%;
        flex-direction: row;
        align-items: baseline;
        gap: 12px;
    }
    .semester-bar select {
        flex: 1;
    }
    .semester-bar .icon-button {
        margin: 0;
    }
    .week-row {
        flex-wrap: wrap;
    }
    .week-row span {
        width: 100%;
        margin-top: -5px;
    }
    .day-chips {
        gap: 4px;
    }
    .day-chip {
        padding: 10px 1px;
        font-size: 11px;
        border-radius: 10px;
    }
    .course-card {
        grid-template-columns: 58px 1fr;
        padding: 15px;
        gap: 10px;
    }
    .course-time strong {
        font-size: 16px;
    }
    footer {
        flex-direction: column;
        gap: 4px;
    }
}
@media (max-width: 390px) {
    .hero h1 {
        font-size: 27px;
    }
    .semester-bar select {
        font-size: 12px;
        padding-left: 8px;
    }
    .grade-tools {
        gap: 6px;
    }
    .secondary-button {
        padding: 0 12px;
    }
    .content-heading h3 {
        font-size: 22px;
    }
}
@media (prefers-reduced-motion: reduce) {
    *,
    *:before,
    *:after {
        animation-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
