:root {
    --ink: #eaf5f5;
    --muted: rgba(226, 241, 242, 0.64);
    --cyan: #53d8df;
    --cyan-dark: #0b8792;
    --graphite: #152735;
    --graphite-soft: #294454;
    --glass: rgba(19, 37, 52, 0.58);
    --glass-light: rgba(225, 240, 241, 0.2);
    --line: rgba(255, 255, 255, 0.22);
    --mono: "Cascadia Code", "Courier New", monospace;
    --sans: "Avenir Next", "Century Gothic", sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    color: var(--ink);
    background: linear-gradient(135deg, #273c5c 0%, #6b8f9e 48%, #d1a298 100%);
    font-family: var(--sans);
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image: linear-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.09) 1px, transparent 1px);
    background-size: 32px 32px;
    content: "";
}

h1,
h2,
h3,
p {
    margin: 0;
}

h1,
h2,
h3,
button,
input {
    font-family: inherit;
}

p {
    color: var(--muted);
}

button {
    cursor: pointer;
}

/* Keep the interface focused on learning instead of system-status decoration. */
.hero-kicker,
.hero-footnote,
.section-kicker,
.form-kicker,
.sidebar-status,
.brand-lockup > div > span {
    display: none !important;
}

.status-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 0 4px rgba(83, 216, 223, 0.15), 0 0 14px rgba(83, 216, 223, 0.75);
}

/* Entry and login */

.landing-page,
.login-page {
    position: relative;
    width: min(92%, 1120px);
    min-height: 660px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.38);
    background: linear-gradient(135deg, rgba(19, 35, 60, 0.86), rgba(48, 91, 111, 0.63) 54%, rgba(182, 125, 125, 0.58));
    box-shadow: 0 30px 80px rgba(16, 25, 52, 0.34), inset 0 1px rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.landing-page {
    display: flex;
    align-items: center;
}

.landing-page::before,
.login-page::before {
    position: absolute;
    right: 9%;
    bottom: -12%;
    width: 310px;
    height: 310px;
    border: 1px solid rgba(134, 234, 237, 0.38);
    border-radius: 50%;
    box-shadow: 0 0 0 18px rgba(117, 221, 224, 0.07), 0 0 0 54px rgba(117, 221, 224, 0.04);
    content: "";
}

.hero {
    position: relative;
    z-index: 1;
    width: 680px;
    padding: 76px;
}

.hero::before {
    position: absolute;
    top: 28px;
    left: 76px;
    width: 44px;
    height: 4px;
    background: var(--cyan);
    content: "";
}

.hero-kicker,
.section-kicker,
.form-kicker,
.hero-footnote,
.sidebar-status,
.brand-lockup > div > span {
    color: rgba(218, 246, 246, 0.8);
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
}

.hero-kicker {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
}

.hero h1 {
    color: #f2fbfa;
    font-size: clamp(64px, 10vw, 132px);
    font-weight: 800;
    letter-spacing: -0.08em;
    line-height: 0.82;
}

.title-mark {
    color: var(--cyan);
}

.hero p {
    max-width: 380px;
    margin-top: 30px;
    color: rgba(239, 247, 247, 0.78);
    font-size: 19px;
    line-height: 1.55;
}

.enter-button,
.secondary-button {
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: var(--graphite);
    color: white;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.03em;
    transition: 180ms ease;
}

.enter-button {
    margin-top: 38px;
    padding: 15px 18px;
}

.enter-button span {
    margin-left: 32px;
    color: var(--cyan);
    font-size: 18px;
}

.enter-button:hover,
.secondary-button:hover {
    border-color: var(--cyan);
    background: #0a7c89;
    transform: translateY(-2px);
}

.hero-footnote {
    display: flex;
    gap: 12px;
    margin-top: 72px;
    color: rgba(218, 246, 246, 0.62);
    font-size: 9px;
}

.hero-footnote span {
    color: var(--cyan);
}

.login-page {
    display: none;
    align-items: center;
    justify-content: center;
}

.auth-choice {
    position: relative;
    z-index: 1;
    width: min(90%, 480px);
    padding: 48px;
    border: 1px solid var(--line);
    border-left: 3px solid var(--cyan);
    background: rgba(12, 28, 43, 0.78);
    box-shadow: 0 18px 50px rgba(14, 25, 45, 0.25);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.auth-choice[hidden],
.auth-form[hidden] {
    display: none !important;
}

.auth-choice h1 {
    margin-top: 12px;
    color: white;
    font-size: 34px;
    letter-spacing: -0.04em;
}

.auth-choice > p {
    margin: 10px 0 28px;
    font-size: 14px;
}

.auth-choice-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.auth-choice-actions .enter-button {
    width: 100%;
    margin-top: 0;
    text-align: left;
}

.auth-secondary-button {
    min-height: 52px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.06);
    color: white;
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    text-align: left;
}

.auth-secondary-button span {
    float: right;
    margin-right: 16px;
    color: var(--cyan);
    font-size: 18px;
}

.auth-secondary-button:hover {
    border-color: var(--cyan);
    background: rgba(83, 216, 223, 0.12);
}

.auth-choice .back-button {
    margin-top: 36px;
}

.login-form {
    position: relative;
    z-index: 1;
    width: min(90%, 420px);
    padding: 48px;
    border: 1px solid var(--line);
    border-left: 3px solid var(--cyan);
    background: rgba(12, 28, 43, 0.78);
    box-shadow: 0 18px 50px rgba(14, 25, 45, 0.25);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.back-button {
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 12px;
}

.form-kicker {
    margin-top: 48px;
}

.login-form h1 {
    margin-top: 12px;
    color: white;
    font-size: 32px;
    letter-spacing: -0.04em;
}

.login-form > p {
    margin: 10px 0 28px;
    font-size: 14px;
}

.login-form label {
    margin-top: 12px;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.login-form input {
    width: 100%;
    padding: 13px 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    outline: 0;
    background: transparent;
    color: white;
    font-size: 15px;
}

.login-form input:focus {
    border-color: var(--cyan);
}

.login-form .enter-button {
    width: 100%;
    text-align: left;
}

.login-error {
    min-height: 18px;
    margin-top: 12px;
    color: #ffb4b4;
    font-size: 12px !important;
}

.auth-privacy-note {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(239, 247, 247, 0.58) !important;
    font-family: var(--mono);
    font-size: 9px !important;
    line-height: 1.55;
}

/* Dashboard */

.dashboard {
    width: min(95%, 1480px);
    min-width: 0;
    min-height: min(900px, 94vh);
    display: none;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.36);
    background: rgba(179, 207, 213, 0.4);
    box-shadow: 0 30px 80px rgba(16, 25, 52, 0.34);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
}

.sidebar {
    width: 248px;
    flex: 0 0 248px;
    display: flex;
    flex-direction: column;
    padding: 32px 20px 20px;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    background: linear-gradient(160deg, rgba(15, 29, 43, 0.96), rgba(35, 61, 78, 0.9));
    color: white;
}

.brand-lockup {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 12px;
}

.brand-mark {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid var(--cyan);
    color: var(--cyan);
    font-family: var(--mono);
    font-weight: 700;
}

.brand-lockup h2 {
    font-size: 20px;
    letter-spacing: 0.08em;
}

.brand-lockup > div > span {
    display: block;
    margin-top: 4px;
    color: #9bb4bc;
    font-size: 8px;
    letter-spacing: 0.1em;
}

.sidebar-status {
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 52px 12px 18px;
    color: #abc1c6;
    font-size: 9px;
}

.sidebar-nav {
    list-style: none;
}

.sidebar li {
    margin-bottom: 3px;
    color: #9ab0b6;
    font-size: 13px;
}

.sidebar li:not(:has(.nav-button)) {
    padding: 13px 15px;
}

.nav-button {
    width: 100%;
    padding: 13px 15px;
    border: 0;
    border-left: 2px solid transparent;
    background: transparent;
    color: #9ab0b6;
    font-size: 13px;
    text-align: left;
    transition: 180ms ease;
}

.nav-button:hover,
.nav-button.active {
    border-left-color: var(--cyan);
    background: rgba(85, 153, 168, 0.2);
    color: white;
}

.sidebar-bottom {
    margin-top: auto;
    padding-top: 24px;
}

.account-panel {
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.account-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 8px;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    outline: 0;
    background: transparent;
    color: #abc1c6;
    font-size: 12px;
    text-align: left;
    transition: 180ms ease;
}

.account-item > span {
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    border: 1px solid rgba(83, 216, 223, 0.42);
    color: var(--cyan);
    font-size: 11px;
}

.account-item p {
    color: inherit;
    font-size: inherit;
}

.account-item:hover {
    padding-left: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.account-item.active {
    border-left: 2px solid var(--cyan);
    padding-left: 6px;
    background: rgba(83, 216, 223, 0.1);
    color: white;
}

.dashboard-content {
    min-width: 0;
    flex: 1;
    overflow: auto;
    padding: 42px 48px 52px;
    background: linear-gradient(135deg, rgba(231, 243, 244, 0.42), rgba(89, 135, 151, 0.2));
}

.dashboard-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 38px;
}

.section-kicker {
    margin-bottom: 12px;
    color: var(--cyan-dark);
}

.dashboard-header h1,
.schedule-page-header h1,
.subjects-page-header h1 {
    color: white;
    font-size: clamp(27px, 3vw, 40px);
    letter-spacing: -0.06em;
    text-shadow: 0 2px 12px rgba(24, 50, 65, 0.25);
}

.dashboard-header p {
    margin-top: 8px;
    font-size: 14px;
}

.header-actions {
    display: flex;
    gap: 8px;
}

.header-actions > span,
.header-action-button {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-family: var(--mono);
    font-size: 13px;
}

.header-action-button {
    position: relative;
    cursor: pointer;
}

.header-action-button:hover,
.header-action-button[aria-expanded="true"] {
    border-color: var(--cyan);
    background: rgba(83, 216, 223, 0.16);
}

.notification-wrap {
    position: relative;
}

.notification-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    display: grid;
    width: 18px;
    height: 18px;
    place-items: center;
    border: 2px solid var(--graphite);
    border-radius: 50%;
    background: #ff8b79;
    color: #17222b;
    font-family: var(--mono);
    font-size: 9px;
    font-weight: 700;
}

.notification-badge[hidden] {
    display: none !important;
}

.notification-panel {
    position: absolute;
    top: 50px;
    right: 0;
    z-index: 10;
    width: min(360px, calc(100vw - 32px));
    padding: 20px;
    border: 1px solid var(--line);
    background: rgba(18, 39, 54, 0.94);
    box-shadow: 0 18px 40px rgba(8, 22, 40, 0.28);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.notification-panel-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.notification-panel-heading h2 {
    margin-top: 6px;
    color: white;
    font-size: 16px;
}

.clear-notifications {
    border: 0;
    background: transparent;
    color: var(--cyan);
    cursor: pointer;
    font-family: var(--mono);
    font-size: 9px;
    text-transform: uppercase;
}

.notification-item {
    display: flex;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.notification-item:last-child {
    border-bottom: 0;
}

.notification-marker {
    flex: 0 0 auto;
    width: 7px;
    height: 7px;
    margin-top: 5px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 10px rgba(83, 216, 223, 0.75);
}

.notification-urgent .notification-marker {
    background: #ff8b79;
    box-shadow: 0 0 10px rgba(255, 139, 121, 0.75);
}

.notification-item strong {
    color: white;
    font-size: 12px;
}

.notification-item p {
    margin-top: 4px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.45;
}

.empty-notifications {
    padding: 18px 0 4px;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 10px;
}

.glass-card {
    border: 1px solid var(--line);
    background: var(--glass);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.16), 0 14px 30px rgba(23, 46, 68, 0.14);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 14px;
}

.stat-card {
    position: relative;
    min-height: 120px;
    padding: 22px;
    overflow: hidden;
}

.stat-card::after {
    position: absolute;
    right: 18px;
    bottom: 18px;
    width: 30px;
    height: 30px;
    border-right: 1px solid var(--cyan);
    border-bottom: 1px solid var(--cyan);
    content: "";
}

.stat-number {
    display: block;
    color: white;
    font-family: var(--mono);
    font-size: 25px;
    font-weight: 700;
}

.stat-label {
    display: block;
    margin-top: 12px;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.overview-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(240px, 0.9fr);
    gap: 14px;
    margin-bottom: 14px;
}

.schedule-card,
.exams-card,
.progress-card {
    padding: 24px;
}

.glass-card h2 {
    margin-bottom: 20px;
    color: white;
    font-size: 15px;
    letter-spacing: 0.03em;
}

.schedule-row {
    display: grid;
    grid-template-columns: 48px 1fr minmax(80px, auto);
    align-items: center;
    gap: 8px;
    padding: 13px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.schedule-row:last-child,
.exam:last-child {
    border-bottom: 0;
}

.schedule-row > span {
    color: var(--cyan);
    font-family: var(--mono);
    font-size: 10px;
}

.schedule-row strong,
.exam strong {
    color: white;
    font-size: 13px;
}

.schedule-row .schedule-times,
.exam span {
    color: var(--muted);
    font-family: var(--mono);
    font-size: 10px;
    text-align: right;
    white-space: nowrap;
}

.exam {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.progress-item {
    margin-bottom: 17px;
}

.progress-item > div:first-child {
    display: flex;
    justify-content: space-between;
    margin-bottom: 7px;
    color: white;
    font-size: 12px;
}

.progress-item > div:first-child span:last-child {
    color: var(--cyan);
    font-family: var(--mono);
    font-size: 11px;
}

.progress-bar {
    height: 5px;
    background: rgba(255, 255, 255, 0.15);
}

.progress-fill {
    height: 100%;
    background: var(--cyan);
    transition: width 600ms ease;
}

/* Schedule and subjects */

.schedule-view,
.subjects-view,
.exams-view,
.progress-view,
.notes-view,
.settings-view,
.account-view {
    display: none;
}

.schedule-page-header,
.subjects-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.schedule-page-header p,
.subjects-page-header p,
.schedule-help {
    margin-top: 8px;
    font-size: 13px;
}

.secondary-button {
    padding: 11px 14px;
    font-size: 11px;
}

.schedule-builder {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 14px;
}

.exams-layout {
    display: grid;
    grid-template-columns: minmax(250px, 0.8fr) minmax(0, 1.35fr);
    gap: 14px;
}

.exam-form,
.exam-register-panel {
    padding: 24px;
}

.exam-form .section-kicker,
.exam-register-panel .section-kicker {
    color: var(--cyan);
}

.exam-form h2,
.exam-register-panel h2 {
    margin: 8px 0 22px;
}

.exam-form label {
    display: block;
    margin: 16px 0 7px;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.exam-form input,
.exam-form select {
    width: 100%;
    padding: 12px 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    outline: 0;
    background: transparent;
    color: white;
    font: inherit;
    font-size: 13px;
}

.exam-form select option {
    background: var(--graphite);
    color: white;
}

.exam-form input:focus,
.exam-form select:focus {
    border-color: var(--cyan);
}

.exam-form .secondary-button {
    margin-top: 26px;
}

.exam-form .secondary-button span {
    margin-left: 18px;
    color: var(--cyan);
    font-size: 16px;
}

.exam-form-status {
    min-height: 18px;
    margin-top: 15px;
    color: var(--cyan) !important;
    font-family: var(--mono);
    font-size: 10px;
}

.exam-register-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.exam-register-heading h2 {
    margin-bottom: 0;
}

.exam-register-count {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid rgba(83, 216, 223, 0.5);
    color: var(--cyan);
    font-family: var(--mono);
    font-size: 13px;
}

.exam-register-list {
    margin-top: 10px;
}

.exam-register-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 17px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.exam-register-item:last-child {
    border-bottom: 0;
}

.exam-register-date {
    display: block;
    margin-bottom: 6px;
    color: var(--cyan);
    font-family: var(--mono);
    font-size: 10px;
}

.exam-register-item h3 {
    color: white;
    font-size: 15px;
}

.exam-register-item p {
    margin-top: 5px;
    font-size: 12px;
}

.remove-exam {
    flex: 0 0 auto;
    border: 0;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font-size: 20px;
}

.remove-exam:hover {
    color: #ffb4b4;
}

.empty-exam-register {
    padding: 24px 0;
    font-family: var(--mono);
    font-size: 11px;
}

.progress-layout {
    display: grid;
    grid-template-columns: minmax(250px, 0.8fr) minmax(0, 1.35fr);
    gap: 14px;
}

.topic-form,
.learning-topics-panel {
    padding: 24px;
}

.topic-form h2,
.learning-topics-panel h2 {
    margin: 8px 0 22px;
}

.topic-form .section-kicker,
.learning-topics-panel .section-kicker {
    color: var(--cyan);
}

.topic-form label {
    display: block;
    margin: 16px 0 7px;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.topic-form input,
.topic-form select {
    width: 100%;
    padding: 12px 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    outline: 0;
    background: transparent;
    color: white;
    font: inherit;
    font-size: 13px;
}

.topic-form select option {
    background: var(--graphite);
    color: white;
}

.topic-form input:focus,
.topic-form select:focus {
    border-color: var(--cyan);
}

.topic-form .secondary-button {
    margin-top: 26px;
}

.topic-form .secondary-button span {
    margin-left: 18px;
    color: var(--cyan);
    font-size: 16px;
}

.topic-form-status {
    min-height: 18px;
    margin-top: 15px;
    color: var(--cyan) !important;
    font-family: var(--mono);
    font-size: 10px;
}

.learning-topics-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.learning-topics-heading h2 {
    margin-bottom: 0;
}

.topic-count {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid rgba(83, 216, 223, 0.5);
    color: var(--cyan);
    font-family: var(--mono);
    font-size: 13px;
}

.learning-topics-list {
    margin-top: 10px;
}

.learning-topic-card {
    padding: 18px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.learning-topic-card:last-child {
    border-bottom: 0;
}

.learning-topic-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.learning-topic-subject {
    display: block;
    margin-bottom: 6px;
    color: var(--cyan);
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.learning-topic-heading h3 {
    color: white;
    font-size: 16px;
}

.learning-topic-percent {
    color: var(--cyan);
    font-family: var(--mono);
    font-size: 18px;
    font-weight: 700;
}

.topic-progress-track {
    height: 5px;
    margin: 15px 0;
    background: rgba(255, 255, 255, 0.15);
}

.topic-progress-track span {
    display: block;
    height: 100%;
    background: var(--cyan);
    transition: width 250ms ease;
}

.learning-checklist {
    display: grid;
    gap: 4px;
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    color: rgba(232, 245, 245, 0.82);
    cursor: pointer;
    font-size: 12px;
}

.checklist-item input {
    width: 15px;
    height: 15px;
    accent-color: var(--cyan);
}

.checklist-item.is-complete {
    color: rgba(232, 245, 245, 0.42);
    text-decoration: line-through;
}

.remove-topic {
    margin-top: 12px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.remove-topic:hover {
    color: #ffb4b4;
}

.empty-learning-topics {
    padding: 24px 0;
    font-family: var(--mono);
    font-size: 11px;
}

.notes-layout,
.notes-register-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.notes-layout {
    margin-bottom: 14px;
}

.note-form,
.notes-register-panel {
    padding: 24px;
}

.note-form .section-kicker,
.notes-register-panel .section-kicker {
    color: var(--cyan);
}

.note-form h2,
.notes-register-panel h2 {
    margin: 8px 0 22px;
}

.note-form label {
    display: block;
    margin: 16px 0 7px;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.note-form input,
.note-form select,
.note-form textarea {
    width: 100%;
    padding: 12px 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    outline: 0;
    resize: vertical;
    background: transparent;
    color: white;
    font: inherit;
    font-size: 13px;
}

.note-form textarea {
    min-height: 100px;
    line-height: 1.5;
}

.note-form select option {
    background: var(--graphite);
    color: white;
}

.note-form input:focus,
.note-form select:focus,
.note-form textarea:focus {
    border-color: var(--cyan);
}

.note-form .secondary-button {
    margin-top: 26px;
}

.note-form .secondary-button span {
    margin-left: 18px;
    color: var(--cyan);
    font-size: 16px;
}

.note-form-status {
    min-height: 18px;
    margin-top: 15px;
    color: var(--cyan) !important;
    font-family: var(--mono);
    font-size: 10px;
}

.notes-register-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.notes-register-heading h2 {
    margin-bottom: 0;
}

.notes-count {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid rgba(83, 216, 223, 0.5);
    color: var(--cyan);
    font-family: var(--mono);
    font-size: 13px;
}

.notes-list {
    margin-top: 10px;
}

.personal-note-item,
.homework-item {
    padding: 17px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.personal-note-item:last-child,
.homework-item:last-child {
    border-bottom: 0;
}

.note-item-heading,
.homework-meta {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.note-item-date,
.homework-meta span {
    color: var(--cyan);
    font-family: var(--mono);
    font-size: 10px;
}

.personal-note-item h3 {
    margin-top: 6px;
    color: white;
    font-size: 15px;
}

.personal-note-item > p {
    margin-top: 10px;
    color: rgba(232, 245, 245, 0.72);
    font-size: 12px;
    line-height: 1.55;
    white-space: pre-wrap;
}

.remove-note {
    flex: 0 0 auto;
    border: 0;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font-size: 20px;
}

.remove-note:hover {
    color: #ffb4b4;
}

.homework-check {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    cursor: pointer;
    font-size: 13px;
}

.homework-check input {
    width: 15px;
    height: 15px;
    accent-color: var(--cyan);
}

.homework-item.is-complete .homework-check {
    color: rgba(232, 245, 245, 0.42);
    text-decoration: line-through;
}

.homework-meta {
    align-items: center;
    margin-top: 9px;
    padding-left: 25px;
}

.homework-meta span:nth-child(2) {
    margin-left: auto;
    color: var(--muted);
}

.empty-notes {
    padding: 24px 0;
    font-family: var(--mono);
    font-size: 11px;
}

.account-layout {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(260px, 1fr);
    gap: 14px;
}

.profile-panel,
.credentials-panel,
.password-panel {
    padding: 24px;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 24px;
}

.profile-picture-wrap {
    position: relative;
    flex: 0 0 auto;
}

.profile-picture {
    display: block;
    width: 92px;
    height: 92px;
    border: 1px solid rgba(83, 216, 223, 0.62);
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 6px rgba(83, 216, 223, 0.08), 0 12px 26px rgba(7, 24, 42, 0.24);
}

.profile-online-dot {
    position: absolute;
    right: 3px;
    bottom: 8px;
}

.profile-panel h2,
.credentials-panel h2,
.password-panel h2 {
    margin: 8px 0 5px;
    color: white;
}

.profile-header p {
    font-family: var(--mono);
    font-size: 11px;
}

.profile-picture-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.profile-panel .secondary-button,
.password-panel .secondary-button {
    margin-top: 4px;
}

.profile-remove-button {
    border: 0;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font-family: var(--mono);
    font-size: 10px;
}

.profile-remove-button:hover {
    color: #ffb4b4;
}

.credentials-list {
    display: grid;
    gap: 0;
    margin-top: 20px;
}

.credentials-list div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 13px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.credentials-list div:last-child {
    border-bottom: 0;
}

.credentials-list dt {
    color: var(--muted);
    font-family: var(--mono);
    font-size: 10px;
    text-transform: uppercase;
}

.credentials-list dd {
    color: white;
    font-size: 12px;
    text-align: right;
}

.password-panel {
    grid-column: 1 / -1;
}

.password-panel > p {
    max-width: 520px;
    margin: 10px 0 18px;
    font-size: 12px;
}

.password-request-status {
    min-height: 18px;
    margin-top: 13px !important;
    color: var(--cyan) !important;
    font-family: var(--mono);
    font-size: 10px !important;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.settings-panel {
    padding: 24px;
}

.settings-panel h2 {
    margin: 8px 0 22px;
}

.settings-panel .section-kicker {
    color: var(--cyan);
}

.settings-panel label:not(.setting-toggle) {
    display: block;
    margin: 16px 0 7px;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.settings-panel select {
    width: 100%;
    padding: 12px 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    outline: 0;
    background: transparent;
    color: white;
    font: inherit;
    font-size: 13px;
}

.settings-panel select option {
    background: var(--graphite);
    color: white;
}

.settings-help {
    margin-top: 15px;
    font-size: 12px;
    line-height: 1.5;
}

.settings-accessibility {
    grid-column: 1 / -1;
}

.setting-toggle {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 13px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    cursor: pointer;
}

.setting-toggle:last-child {
    border-bottom: 0;
}

.setting-toggle input {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    accent-color: var(--cyan);
}

.setting-toggle span {
    display: grid;
    gap: 4px;
}

.setting-toggle strong {
    color: white;
    font-size: 13px;
}

.setting-toggle small {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.4;
}

/* User-selected visual and comfort modes */

body.theme-aurora {
    background: linear-gradient(135deg, #234d62 0%, #4d8d8b 48%, #b3d19f 100%);
}

body.theme-aurora .dashboard-content {
    background: linear-gradient(135deg, rgba(208, 244, 226, 0.4), rgba(62, 145, 143, 0.24));
}

body.theme-monochrome {
    --cyan: #d7e1e3;
    --cyan-dark: #d7e1e3;
    --graphite-soft: #3b474d;
    background: linear-gradient(135deg, #252d31 0%, #5a6568 52%, #9aa1a0 100%);
}

body.theme-monochrome .dashboard-content {
    background: linear-gradient(135deg, rgba(218, 225, 225, 0.24), rgba(72, 83, 87, 0.3));
}

body.theme-modern-light {
    --ink: #17222b;
    --muted: #5e6b72;
    --cyan: #087c88;
    --cyan-dark: #087c88;
    --graphite: #18232b;
    --graphite-soft: #dbe7e5;
    --glass: rgba(248, 251, 249, 0.78);
    --line: rgba(23, 34, 43, 0.16);
    background: linear-gradient(135deg, #dce7ef 0%, #c6e0df 52%, #eee0d5 100%);
}

body.theme-modern-light::before {
    background-image: linear-gradient(rgba(23, 34, 43, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(23, 34, 43, 0.06) 1px, transparent 1px);
}

body.theme-modern-light .landing-page,
body.theme-modern-light .login-page,
body.theme-modern-light .dashboard {
    border-color: rgba(255, 255, 255, 0.7);
    background: rgba(244, 249, 247, 0.78);
    box-shadow: 0 30px 80px rgba(54, 79, 88, 0.18), inset 0 1px rgba(255, 255, 255, 0.8);
}

body.theme-modern-light .dashboard-content {
    background: linear-gradient(135deg, rgba(247, 250, 249, 0.62), rgba(184, 215, 216, 0.3));
}

body.theme-modern-light .glass-card {
    border-color: rgba(23, 34, 43, 0.14);
    background: rgba(248, 251, 249, 0.7);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.8), 0 12px 28px rgba(45, 67, 76, 0.08);
}

body.theme-modern-light .dashboard-header h1,
body.theme-modern-light .schedule-page-header h1,
body.theme-modern-light .subjects-page-header h1,
body.theme-modern-light .glass-card h2,
body.theme-modern-light .stat-number,
body.theme-modern-light .schedule-row strong,
body.theme-modern-light .exam strong,
body.theme-modern-light .progress-item > div:first-child,
body.theme-modern-light .subject-chip,
body.theme-modern-light .topic-section ul,
body.theme-modern-light .learning-topic-heading h3,
body.theme-modern-light .personal-note-item h3,
body.theme-modern-light .homework-check,
body.theme-modern-light .credentials-list dd {
    color: var(--ink);
    text-shadow: none;
}

body.theme-modern-light .stat-label,
body.theme-modern-light .schedule-row .schedule-times,
body.theme-modern-light .exam span,
body.theme-modern-light .settings-help,
body.theme-modern-light .setting-toggle small,
body.theme-modern-light p {
    color: var(--muted);
}

body.theme-retro {

    --ink: #e8edf2;
    --muted: #9aa6b2;

    --cyan: #8fb8c7;
    --cyan-dark: #628694;

    --graphite: #20272e;
    --graphite-soft: #2b343c;

    --glass: rgba(180, 205, 215, 0.08);
    --line: rgba(220, 235, 240, 0.16);

    color: var(--ink);

    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(80, 130, 150, 0.18),
            transparent 35%
        ),
        radial-gradient(
            circle at 85% 75%,
            rgba(100, 80, 150, 0.16),
            transparent 35%
        ),
        #0d1217;

    font-family: "MS Sans Serif", Tahoma, Arial, sans-serif;
}

body.theme-retro::before {

    content: "";

    position: fixed;

    inset: 0;

    pointer-events: none;

    background:
        linear-gradient(
            120deg,
            transparent 0%,
            rgba(255,255,255,0.025) 50%,
            transparent 100%
        );

    opacity: 0.7;

    z-index: 0;
}

body.theme-retro .landing-page,
body.theme-retro .login-page,
body.theme-retro .dashboard {

    position: relative;

    border: 1px solid rgba(220, 235, 240, 0.16);

    border-radius: 22px;

    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,0.09),
            rgba(255,255,255,0.035)
        );

    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.45),
        inset 0 1px 1px rgba(255, 255, 255, 0.12),
        inset 0 -1px 1px rgba(0, 0, 0, 0.15);

    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);

    overflow: hidden;
}

body.theme-retro .sidebar {

    border: 1px solid rgba(220, 235, 240, 0.18);

    border-radius: 18px;

    background:
        linear-gradient(
            145deg,
            rgba(180, 205, 215, 0.13),
            rgba(100, 120, 130, 0.05)
        );

    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.35),
        inset 1px 1px 0 rgba(255, 255, 255, 0.09),
        inset -1px -1px 0 rgba(0, 0, 0, 0.15);

    backdrop-filter: blur(32px);
    -webkit-backdrop-filter: blur(32px);

    z-index: 5;
}

body.theme-retro .dashboard-content {

    background: transparent;

    color: var(--ink);
}

body.theme-retro .glass-card,
body.theme-retro .auth-choice,
body.theme-retro .login-form,
body.theme-retro .notification-panel {

    border: 1px solid rgba(220, 235, 240, 0.13);

    border-radius: 16px;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,0.075),
            rgba(255,255,255,0.025)
        );

    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.08),
        0 10px 30px rgba(0, 0, 0, 0.18);

    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
}

body.theme-retro h1,
body.theme-retro h2,
body.theme-retro h3,
body.theme-retro p,
body.theme-retro .dashboard-header h1,
body.theme-retro .schedule-page-header h1,
body.theme-retro .subjects-page-header h1,
body.theme-retro .glass-card h2,
body.theme-retro .stat-number,
body.theme-retro .stat-label,
body.theme-retro .exam strong,
body.theme-retro .schedule-row strong,
body.theme-retro .progress-item > div:first-child,
body.theme-retro .subject-chip,
body.theme-retro .topic-section ul,
body.theme-retro .setting-toggle strong,
body.theme-retro .learning-topic-heading h3,
body.theme-retro .personal-note-item h3,
body.theme-retro .homework-check,
body.theme-retro .credentials-list dd {

    color: var(--ink);

    text-shadow: none;
}

body.theme-retro .enter-button,
body.theme-retro .secondary-button,
body.theme-retro .auth-secondary-button,
body.theme-retro .nav-button,
body.theme-retro .account-item,
body.theme-retro .header-action-button {

    border: 1px solid rgba(220, 235, 240, 0.16);

    border-radius: 10px;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,0.09),
            rgba(255,255,255,0.035)
        );

    color: var(--ink);

    box-shadow:
        inset 1px 1px 0 rgba(255,255,255,0.08),
        inset -1px -1px 0 rgba(0,0,0,0.15);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

body.theme-retro .enter-button:hover,
body.theme-retro .secondary-button:hover,
body.theme-retro .auth-secondary-button:hover,
body.theme-retro .header-action-button:hover {

    background:
        rgba(150, 190, 205, 0.14);

    border-color:
        rgba(190, 220, 230, 0.28);

    transform: translateY(-1px);

    box-shadow:
        inset 1px 1px 0 rgba(255,255,255,0.12),
        0 8px 25px rgba(0,0,0,0.2);
}

body.theme-retro .nav-button,
body.theme-retro .account-item {

    color: rgba(232, 237, 242, 0.65);

    box-shadow: none;
}

body.theme-retro .nav-button:hover,
body.theme-retro .account-item:hover {

    background:
        rgba(255,255,255,0.07);

    color: white;

    transform: translateX(2px);
}

body.theme-retro .nav-button.active,
body.theme-retro .account-item.active {

    background:
        linear-gradient(
            90deg,
            rgba(130, 180, 195, 0.18),
            rgba(130, 180, 195, 0.07)
        );

    border-color:
        rgba(170, 210, 220, 0.25);

    color: white;

    box-shadow:
        inset 2px 0 0 rgba(160, 205, 220, 0.7),
        inset 1px 1px 0 rgba(255,255,255,0.08);
}

body.theme-retro .account-panel {

    border: 1px solid rgba(220, 235, 240, 0.13);

    border-radius: 14px;

    background:
        rgba(255,255,255,0.045);

    box-shadow:
        inset 0 1px 1px rgba(255,255,255,0.08),
        0 8px 25px rgba(0,0,0,0.15);

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

body.theme-retro .profile-picture {

    border-radius: 12px;

    border: 1px solid rgba(220,235,240,0.18);

    box-shadow:
        0 8px 25px rgba(0,0,0,0.25),
        inset 0 1px 1px rgba(255,255,255,0.12);
}

body.theme-retro input,
body.theme-retro textarea,
body.theme-retro select {

    border: 1px solid rgba(220,235,240,0.15);

    border-radius: 10px;

    background:
        rgba(0,0,0,0.18);

    color: var(--ink);

    outline: none;

    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);

    transition: 0.2s ease;
}

body.theme-retro input:focus,
body.theme-retro textarea:focus,
body.theme-retro select:focus {

    border-color:
        rgba(160,205,220,0.45);

    box-shadow:
        0 0 0 3px rgba(120,180,200,0.08);
}

body.theme-retro .progress-bar {

    background:
        rgba(255,255,255,0.07);

    border: 1px solid
        rgba(255,255,255,0.08);

    border-radius: 8px;
}

body.theme-retro .progress-fill {

    background:
        linear-gradient(
            90deg,
            #6f9eac,
            #a5cbd5
        );

    border-radius: 8px;

    box-shadow:
        0 0 12px rgba(130,190,205,0.25);
}

body.theme-modern-light {

    --ink: #18212b;
    --muted: #66717d;

    --cyan: #5f91a3;
    --cyan-dark: #456f7e;

    --graphite: #e7ebef;
    --graphite-soft: #dce2e7;

    --glass: rgba(255, 255, 255, 0.48);
    --line: rgba(255, 255, 255, 0.65);

    color: var(--ink);

    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(130, 190, 215, 0.32),
            transparent 35%
        ),
        radial-gradient(
            circle at 85% 75%,
            rgba(170, 145, 220, 0.25),
            transparent 35%
        ),
        #e9eef3;

    font-family: "MS Sans Serif", Tahoma, Arial, sans-serif;
}

body.theme-modern-light::before {

    content: "";

    position: fixed;

    inset: 0;

    pointer-events: none;

    background:
        linear-gradient(
            120deg,
            transparent 0%,
            rgba(255,255,255,0.45) 50%,
            transparent 100%
        );

    opacity: 0.7;

    z-index: 0;
}

body.theme-modern-light .landing-page,
body.theme-modern-light .login-page,
body.theme-modern-light .dashboard {

    position: relative;

    border: 1px solid rgba(255, 255, 255, 0.75);

    border-radius: 22px;

    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,0.68),
            rgba(255,255,255,0.38)
        );

    box-shadow:

        0 25px 70px rgba(80, 95, 110, 0.18),

        inset 0 1px 1px
        rgba(255,255,255,0.9),

        inset 0 -1px 1px
        rgba(120,140,155,0.08);

    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);

    overflow: hidden;
}

body.theme-modern-light .sidebar {

    border: 1px solid rgba(255,255,255,0.8);

    border-radius: 18px;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,0.72),
            rgba(225,235,242,0.42)
        );

    box-shadow:

        0 18px 45px rgba(70,85,100,0.18),

        inset 1px 1px 0
        rgba(255,255,255,0.9),

        inset -1px -1px 0
        rgba(100,120,135,0.08);

    backdrop-filter: blur(32px);
    -webkit-backdrop-filter: blur(32px);

    z-index: 5;
}

body.theme-modern-light .dashboard-content {

    background: transparent;

    color: var(--ink);
}

body.theme-modern-light .glass-card,
body.theme-modern-light .auth-choice,
body.theme-modern-light .login-form,
body.theme-modern-light .notification-panel {

    border: 1px solid rgba(255,255,255,0.7);

    border-radius: 16px;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,0.62),
            rgba(255,255,255,0.32)
        );

    box-shadow:

        inset 0 1px 1px
        rgba(255,255,255,0.85),

        0 10px 30px
        rgba(70,85,100,0.10);

    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
}

body.theme-modern-light h1,
body.theme-modern-light h2,
body.theme-modern-light h3,
body.theme-modern-light p,
body.theme-modern-light .dashboard-header h1,
body.theme-modern-light .schedule-page-header h1,
body.theme-modern-light .subjects-page-header h1,
body.theme-modern-light .glass-card h2,
body.theme-modern-light .stat-number,
body.theme-modern-light .stat-label,
body.theme-modern-light .exam strong,
body.theme-modern-light .schedule-row strong,
body.theme-modern-light .progress-item > div:first-child,
body.theme-modern-light .subject-chip,
body.theme-modern-light .topic-section ul,
body.theme-modern-light .setting-toggle strong,
body.theme-modern-light .learning-topic-heading h3,
body.theme-modern-light .personal-note-item h3,
body.theme-modern-light .homework-check,
body.theme-modern-light .credentials-list dd {

    color: var(--ink);

    text-shadow: none;
}

body.theme-modern-light .enter-button,
body.theme-modern-light .secondary-button,
body.theme-modern-light .auth-secondary-button,
body.theme-modern-light .nav-button,
body.theme-modern-light .account-item,
body.theme-modern-light .header-action-button {

    border: 1px solid rgba(255,255,255,0.7);

    border-radius: 10px;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,0.65),
            rgba(235,242,246,0.35)
        );

    color: var(--ink);

    box-shadow:

        inset 1px 1px 0
        rgba(255,255,255,0.9),

        inset -1px -1px 0
        rgba(100,120,135,0.08);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

body.theme-modern-light .enter-button:hover,
body.theme-modern-light .secondary-button:hover,
body.theme-modern-light .auth-secondary-button:hover,
body.theme-modern-light .header-action-button:hover {

    background:
        rgba(255,255,255,0.82);

    border-color:
        rgba(255,255,255,0.95);

    transform: translateY(-1px);

    box-shadow:

        inset 1px 1px 0
        rgba(255,255,255,1),

        0 8px 25px
        rgba(70,85,100,0.15);
}

body.theme-modern-light .nav-button,
body.theme-modern-light .account-item {

    color: rgba(24,33,43,0.62);

    box-shadow: none;
}

body.theme-modern-light .nav-button:hover,
body.theme-modern-light .account-item:hover {

    background:
        rgba(255,255,255,0.48);

    color: var(--ink);

    transform: translateX(2px);
}

body.theme-modern-light .nav-button.active,
body.theme-modern-light .account-item.active {

    background:
        linear-gradient(
            90deg,
            rgba(110,165,185,0.18),
            rgba(110,165,185,0.06)
        );

    border-color:
        rgba(100,155,175,0.28);

    color: var(--ink);

    box-shadow:

        inset 2px 0 0
        rgba(85,145,165,0.75),

        inset 1px 1px 0
        rgba(255,255,255,0.7);
}

body.theme-modern-light .account-panel {

    border: 1px solid rgba(255,255,255,0.7);

    border-radius: 14px;

    background:
        rgba(255,255,255,0.42);

    box-shadow:

        inset 0 1px 1px
        rgba(255,255,255,0.8),

        0 8px 25px
        rgba(70,85,100,0.10);

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

body.theme-modern-light .profile-picture {

    border-radius: 12px;

    border: 1px solid rgba(255,255,255,0.75);

    box-shadow:

        0 8px 25px
        rgba(70,85,100,0.15),

        inset 0 1px 1px
        rgba(255,255,255,0.9);
}

body.theme-modern-light input,
body.theme-modern-light textarea,
body.theme-modern-light select {

    border: 1px solid rgba(150,165,175,0.25);

    border-radius: 10px;

    background:
        rgba(255,255,255,0.45);

    color: var(--ink);

    outline: none;

    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);

    transition: 0.2s ease;
}

body.theme-modern-light input:focus,
body.theme-modern-light textarea:focus,
body.theme-modern-light select:focus {

    border-color:
        rgba(90,145,165,0.45);

    box-shadow:
        0 0 0 3px
        rgba(100,160,180,0.10);
}

body.theme-modern-light .progress-bar {

    background:
        rgba(50,70,80,0.08);

    border: 1px solid
        rgba(100,120,130,0.08);

    border-radius: 8px;
}

body.theme-modern-light .progress-fill {

    background:
        linear-gradient(
            90deg,
            #6f9eac,
            #91bac6
        );

    border-radius: 8px;

    box-shadow:
        0 0 12px
        rgba(100,165,180,0.22);
}

body.high-contrast {
    --muted: rgba(255, 255, 255, 0.86);
    --line: rgba(255, 255, 255, 0.52);
}

body.high-contrast .glass-card,
body.high-contrast .timetable-cell {
    border-color: rgba(255, 255, 255, 0.58);
}

body.high-contrast p,
body.high-contrast .settings-help,
body.high-contrast .setting-toggle small {
    color: rgba(255, 255, 255, 0.86);
}

body.large-text {
    font-size: 112%;
}

body.large-text .sidebar li,
body.large-text .nav-button,
body.large-text .account-item,
body.large-text .schedule-row strong,
body.large-text .exam strong {
    font-size: 1.08em;
}

body.reduced-motion *,
body.reduced-motion *::before,
body.reduced-motion *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
}

.subject-palette,
.timetable-panel,
.schedule-status {
    padding: 20px;
}

.subject-palette h2,
.schedule-status h2 {
    margin-bottom: 0;
}

.subject-palette .schedule-help {
    margin-bottom: 18px;
    color: var(--muted);
    line-height: 1.5;
}

.subject-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    padding: 11px 9px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    cursor: grab;
    font-size: 12px;
}

.subject-chip:hover {
    border-color: var(--cyan);
    background: rgba(83, 216, 223, 0.12);
}

.subject-chip small {
    margin-left: auto;
    color: var(--cyan);
    font-family: var(--mono);
    font-size: 8px;
}

.drag-handle {
    color: var(--cyan);
}

.timetable-panel {
    min-width: 0;
    overflow-x: auto;
}

.timetable-grid {
    min-width: 590px;
    display: grid;
    grid-template-columns: 58px repeat(5, minmax(82px, 1fr));
    gap: 5px;
}

.timetable-corner,
.timetable-day,
.timetable-time,
.timetable-cell {
    min-height: 48px;
}

.timetable-day {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.timetable-time {
    display: flex;
    align-items: center;
    color: var(--cyan);
    font-family: var(--mono);
    font-size: 10px;
}

.timetable-cell {
    padding: 4px;
    border: 1px dashed rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.06);
    transition: 180ms ease;
}

.timetable-cell.drop-target {
    border-color: var(--cyan);
    background: rgba(83, 216, 223, 0.16);
}

.scheduled-subject {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    padding: 7px;
    background: rgba(16, 39, 54, 0.88);
    color: white;
    font-size: 10px;
}

.scheduled-subject span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.remove-slot {
    flex: 0 0 auto;
    border: 0;
    background: transparent;
    color: var(--cyan);
    cursor: pointer;
    font-size: 15px;
}

.schedule-status {
    margin-top: 14px;
}

.schedule-status ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    margin: 15px 0;
    padding: 0;
    list-style: none;
}

.schedule-status li {
    display: flex;
    gap: 7px;
    color: var(--muted);
    font-size: 12px;
}

.requirement-met,
.schedule-complete.is-complete {
    color: var(--cyan) !important;
}

.schedule-complete {
    color: var(--muted);
    font-family: var(--mono);
    font-size: 10px;
}

.subjects-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.subject-card {
    padding: 20px;
}

.subject-card-header {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.subject-card-header h2 {
    margin-bottom: 6px;
}

.subject-card-header p {
    font-size: 11px;
}

.subject-progress {
    color: var(--cyan);
    font-family: var(--mono);
    font-size: 20px;
    font-weight: 700;
}

.topic-section {
    padding-top: 18px;
}

.topic-section h3 {
    margin-bottom: 10px;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.topic-section ul {
    padding-left: 16px;
    color: white;
    font-size: 12px;
    line-height: 1.9;
}

.topic-section .tracked-topic {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.tracked-topic small {
    flex: 0 0 auto;
    color: var(--cyan);
    font-family: var(--mono);
    font-size: 9px;
    line-height: 1;
}

@media (max-width: 900px) {
    .dashboard {
        width: 100%;
        min-height: 100vh;
        border: 0;
    }

    .dashboard-content {
        padding: 30px 24px 40px;
    }

    .sidebar {
        width: 190px;
        flex-basis: 190px;
    }

    .overview-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    body {
        align-items: stretch;
    }

    .landing-page,
    .login-page {
        width: 100%;
        min-height: 100vh;
        border: 0;
    }

    .hero {
        width: 100%;
        padding: 48px 28px;
    }

    .hero::before {
        left: 28px;
    }

    .hero-footnote {
        flex-wrap: wrap;
        margin-top: 54px;
    }

    .login-form {
        width: calc(100% - 40px);
        padding: 34px 26px;
    }

    .auth-choice {
        width: calc(100% - 40px);
        padding: 34px 26px;
    }

    .auth-choice-actions {
        grid-template-columns: 1fr;
    }

    .dashboard {
        display: none;
        min-height: 100vh;
    }

    .sidebar {
        width: 100%;
        min-height: auto;
        padding: 18px;
    }

    .sidebar-status,
    .sidebar-bottom,
    .sidebar-nav li:not(:has(.nav-button)) {
        display: none;
    }

    .brand-lockup {
        margin-bottom: 14px;
    }

    .sidebar-nav {
        display: flex;
        gap: 4px;
        overflow-x: auto;
    }

    .sidebar-nav li {
        flex: 0 0 auto;
    }

    .nav-button {
        padding: 9px 11px;
        font-size: 11px;
    }

    .dashboard-content {
        min-width: 0;
        padding: 28px 16px 36px;
    }

    .dashboard-header,
    .schedule-page-header,
    .subjects-page-header {
        display: block;
    }

    .header-actions {
        margin-top: 18px;
    }

    .dashboard-header h1,
    .schedule-page-header h1,
    .subjects-page-header h1 {
        font-size: 30px;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .schedule-builder {
        grid-template-columns: 1fr;
    }

    .exams-layout {
        grid-template-columns: 1fr;
    }

    .progress-layout {
        grid-template-columns: 1fr;
    }

    .notes-layout,
    .notes-register-grid {
        grid-template-columns: 1fr;
    }

    .settings-grid {
        grid-template-columns: 1fr;
    }

    .settings-accessibility {
        grid-column: auto;
    }

    .account-layout {
        grid-template-columns: 1fr;
    }

    .password-panel {
        grid-column: auto;
    }

    .subject-palette {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .subject-palette h2,
    .subject-palette .schedule-help {
        grid-column: 1 / -1;
    }

    .subject-chip {
        margin: 0;
    }

    .schedule-page-header .secondary-button {
        width: 100%;
        margin-top: 18px;
    }

    .schedule-card,
    .exams-card,
    .progress-card,
    .exam-form,
    .exam-register-panel,
    .topic-form,
    .learning-topics-panel,
    .note-form,
    .notes-register-panel,
    .profile-panel,
    .credentials-panel,
    .password-panel,
    .settings-panel {
        padding: 20px;
    }

    .profile-header {
        align-items: flex-start;
        flex-direction: column;
    }
