:root {
  font-family: "DM Sans", sans-serif;
  color: #20243a;
  background: #f6f7fb;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --ink: #20243a;
  --muted: #85899e;
  --purple: #6858de;
  --border: #ececf3;
  --sidebar-width: 246px;
}

* { box-sizing: border-box; }
body { min-width: 320px; min-height: 100vh; margin: 0; }
button, input, select { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.app-shell { min-height: 100vh; }
.app-shell[hidden], .welcome-screen[hidden] { display: none; }
.portal-view[hidden] { display: none; }
.welcome-screen { min-height: 100vh; padding: 35px 22px 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; background: radial-gradient(ellipse at 50% 45%, #fff 0%, #fbfaff 44%, #f2f1fb 100%); }
.welcome-card { position: relative; width: min(100%, 520px); padding: 43px 48px 38px; overflow: hidden; border: 1px solid rgba(232,230,245,.9); border-radius: 20px; background: rgba(255,255,255,.88); box-shadow: 0 22px 75px rgba(51,46,104,.09); }
.welcome-brand { position: relative; z-index: 1; width: fit-content; display: flex; align-items: center; gap: 11px; margin-bottom: 66px; }
.welcome-logo { width: 46px; height: 46px; display: grid; place-items: center; color: #6858de; }
.welcome-logo svg { width: 46px; height: 46px; stroke: none; }
.welcome-brand-copy { display: flex; flex-direction: column; gap: 2px; }
.welcome-brand-copy strong { color: #292c42; font: 800 20px/1.1 "Manrope", sans-serif; letter-spacing: -.8px; }
.welcome-brand-copy small { color: #989bad; font-size: 8px; letter-spacing: 1.5px; font-weight: 700; }
.welcome-card > .eyebrow, .welcome-card > h1, .welcome-description, .welcome-actions, .welcome-note { position: relative; z-index: 1; }
.welcome-card > .eyebrow { margin-bottom: 12px; }
.welcome-card h1 { margin: 0; font-size: 34px; line-height: 1.22; }
.welcome-description { max-width: 350px; margin: 13px 0 27px; color: #85899e; font-size: 13px; line-height: 1.7; }
.welcome-actions { display: flex; gap: 10px; }
.welcome-login, .welcome-signup { min-height: 43px; padding: 0 17px; border-radius: 8px; font-size: 11px; font-weight: 700; cursor: pointer; transition: background .15s, border-color .15s, transform .15s; }
.welcome-login { min-width: 130px; border: 1px solid #6858de; background: #6858de; color: #fff; box-shadow: 0 5px 12px rgba(104,88,222,.16); }
.welcome-login:hover { background: #5747c8; transform: translateY(-1px); }
.welcome-login span { margin-left: 10px; }
.welcome-signup { border: 1px solid #e7e6ef; background: #fff; color: #585c70; }
.welcome-signup:hover { border-color: #c9c3f4; background: #faf9ff; }
.welcome-note { margin: 22px 0 0; color: #a0a2b0; font-size: 9px; }
.welcome-note a { color: #6858d7; font-weight: 700; }
.welcome-decoration { position: absolute; border: 1px solid rgba(111,96,220,.09); border-radius: 50%; pointer-events: none; }
.welcome-decoration-one { width: 310px; height: 310px; top: -180px; right: -120px; box-shadow: 0 0 0 18px rgba(111,96,220,.025), 0 0 0 40px rgba(111,96,220,.02); }
.welcome-decoration-two { width: 190px; height: 190px; right: 25px; bottom: 40px; box-shadow: 0 0 0 15px rgba(111,96,220,.025); }
.welcome-footer { margin: 16px 0 0; color: #a5a7b4; font-size: 9px; }
.sidebar {
  width: var(--sidebar-width);
  background: #fff;
  border-right: 1px solid #eeeff5;
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  padding: 27px 16px 16px;
}
.brand { display: flex; align-items: center; gap: 11px; padding: 0 10px; }
.brand-mark { width: 37px; height: 37px; color: #6858de; display: grid; place-items: center; }
.brand-mark svg { width: 37px; height: 37px; stroke: none; }
.brand-copy { display: flex; flex-direction: column; gap: 1px; }
.brand-copy strong { font: 800 18px/1.1 "Manrope", sans-serif; letter-spacing: -1px; }
.brand-copy small { color: #989bad; font-size: 8px; letter-spacing: 1.5px; font-weight: 700; }
.nav-group { margin-top: 53px; }
.nav-label { padding: 0 13px; margin: 0 0 11px; color: #a6a8b8; font-size: 10px; line-height: 1; font-weight: 700; letter-spacing: 1.15px; }
.sidebar nav { display: grid; gap: 5px; }
.nav-link { min-height: 44px; width: 100%; border: 0; border-radius: 9px; padding: 0 12px; display: flex; gap: 13px; align-items: center; color: #767b91; background: transparent; font-size: 13px; font-weight: 500; text-align: left; cursor: pointer; transition: background .18s, color .18s; }
.nav-link:hover { background: #f7f6ff; color: #5746cb; }
.nav-link svg { width: 18px; height: 18px; }
.nav-link.active { color: #5f4fda; background: #f0efff; font-weight: 700; }
.nav-dot { margin-left: auto; width: 6px; height: 6px; border-radius: 50%; background: #7262ea; }
.message-count { margin-left: auto; min-width: 20px; height: 20px; display: grid; place-items: center; background: #eeedff; color: #6353d6; border-radius: 7px; font-size: 10px; font-weight: 700; }
.sidebar-bottom { margin-top: auto; }
.help-card { margin: 0 2px 19px; background: #f7f7fc; border: 1px solid #f0f0f6; border-radius: 11px; padding: 14px 13px 13px; display: flex; flex-direction: column; align-items: flex-start; }
.help-icon { width: 29px; height: 29px; border-radius: 8px; background: #eeecff; color: #6d5cdd; display: grid; place-items: center; margin-bottom: 10px; }
.help-icon svg { width: 16px; height: 16px; }
.help-card strong { font-size: 12px; }
.help-card > span:not(.help-icon) { margin-top: 3px; font-size: 11px; color: #9296a8; }
.help-card a { margin-top: 13px; color: #6354d5; font-size: 11px; font-weight: 700; }
.settings-link { margin-bottom: 15px; }
.sidebar-profile { border-top: 1px solid #f0f0f4; padding: 15px 3px 0; display: flex; align-items: center; gap: 10px; }
.avatar { width: 37px; height: 37px; border-radius: 50%; display: grid; place-items: center; background: #e9e3ff; color: #6552c7; font-weight: 700; font-size: 11px; }
.avatar-small { width: 34px; height: 34px; font-size: 10px; }
.profile-copy { min-width: 0; display: grid; gap: 3px; }
.profile-copy strong { font-size: 11px; white-space: nowrap; }
.profile-copy span { color: #9296a8; font-size: 10px; white-space: nowrap; }
.more-button { margin-left: auto; border: 0; background: transparent; color: #989bad; font-size: 18px; letter-spacing: 1px; cursor: pointer; }

.main-content { min-height: 100vh; margin-left: var(--sidebar-width); }
.topbar { min-height: 72px; padding: 0 46px; border-bottom: 1px solid #edeeF4; display: flex; align-items: center; justify-content: space-between; background: rgba(255,255,255,.76); }
.header-brand { display: flex; align-items: center; gap: 17px; }
.header-brand-lockup { display: flex; align-items: center; gap: 8px; }
.header-brand-lockup .brand-mark, .header-brand-lockup .brand-mark svg { width: 30px; height: 30px; }
.header-brand-copy { display: flex; flex-direction: column; gap: 1px; }
.header-brand-copy strong { color: #292c42; font: 800 14px/1.1 "Manrope", sans-serif; letter-spacing: -.5px; }
.header-brand-copy small { color: #989bad; font-size: 7px; letter-spacing: 1.1px; font-weight: 700; }
.brand-divider { width: 1px; height: 23px; background: #e9e9f0; }
.breadcrumb { display: flex; gap: 11px; align-items: center; color: #a0a3b3; font-size: 11px; }
.breadcrumb strong { color: #484c61; font-weight: 600; }
.crumb-divider { color: #d0d1dc; }
.topbar-actions { display: flex; align-items: center; gap: 20px; }
.search-box { width: 218px; height: 36px; padding: 0 9px; display: flex; align-items: center; gap: 8px; background: #f7f7fa; border: 1px solid #f1f1f5; border-radius: 8px; color: #a1a4b3; }
.search-box svg { width: 16px; height: 16px; }
.search-box input, .table-search input { min-width: 0; width: 100%; padding: 0; border: 0; outline: 0; background: transparent; color: #34384c; font-size: 11px; }
.search-box input::placeholder, .table-search input::placeholder { color: #a6a8b7; }
kbd { flex: 0 0 auto; padding: 3px 4px; border: 1px solid #e6e6ee; border-radius: 4px; color: #9c9eae; font-size: 8px; white-space: nowrap; }
.icon-button { position: relative; width: 33px; height: 33px; display: grid; place-items: center; border: 0; background: transparent; color: #74798e; cursor: pointer; }
.icon-button svg { width: 18px; height: 18px; }
.notification-button > span { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: #ee8292; top: 6px; right: 6px; border: 1px solid #fff; }
.topbar-avatar { width: 32px; height: 32px; font-size: 10px; }
.login-button { height: 34px; padding: 0 12px; border: 0; border-radius: 7px; background: #6858de; color: #fff; font-size: 10px; font-weight: 700; cursor: pointer; transition: background .15s; }
.login-button:hover, .login-submit:hover { background: #5747c8; }
.login-button span { margin-left: 5px; }
.page-content { width: min(100%, 1250px); padding: 35px 46px 22px; margin: 0 auto; }
.portal-view { min-height: calc(100vh - 72px); }
.portal-view h1 { margin-bottom: 6px; }
.portal-view .page-subtitle { margin-bottom: 24px; }
.portal-view .course-grid { margin-top: 15px; }
.portal-panel { padding: 19px; border: 1px solid #ececf3; border-radius: 10px; background: #fff; }
.portal-panel + .portal-panel { margin-top: 14px; }
.portal-panel h2 { margin-bottom: 13px; }
.schedule-table { width: 100%; border-collapse: collapse; }
.schedule-table th, .schedule-table td { height: auto; padding: 12px 10px; border-bottom: 1px solid #f0f0f5; font-size: 10px; text-align: left; }
.schedule-table th { color: #9699aa; font-size: 8px; letter-spacing: .6px; }
.schedule-table tr:last-child td { border-bottom: 0; }
.message-list { display: grid; gap: 9px; }
.message-item { padding: 14px; border: 1px solid #ededf3; border-radius: 9px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; }
.message-item.unread { border-color: #dedaf8; background: #faf9ff; }
.message-item strong { color: #373a50; font-size: 11px; }
.message-item p { margin: 4px 0 0; color: #85899c; font-size: 10px; line-height: 1.5; }
.message-meta { margin-top: 5px; color: #a2a4b1; font-size: 9px; }
.small-action { padding: 7px 9px; border: 1px solid #e7e6ef; border-radius: 6px; background: #fff; color: #6254d3; font-size: 9px; font-weight: 700; cursor: pointer; }
.small-action:hover { background: #f5f3ff; }
.settings-list { display: grid; gap: 0; }
.setting-row { min-height: 57px; padding: 12px 0; border-bottom: 1px solid #f0f0f5; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.setting-row:last-child { border-bottom: 0; }
.setting-row strong { display: block; color: #414458; font-size: 10px; }
.setting-row span { display: block; margin-top: 4px; color: #9699aa; font-size: 9px; }
.setting-row input { width: 16px; height: 16px; accent-color: #6858de; cursor: pointer; }
.dialog-action { min-height: 35px; padding: 0 12px; border: 0; border-radius: 7px; background: #6858de; color: #fff; font-size: 10px; font-weight: 700; cursor: pointer; }
.dialog-action:hover { background: #5747c8; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 25px; }
.eyebrow { display: flex; align-items: center; gap: 8px; color: #9699aa; font-size: 9px; font-weight: 700; letter-spacing: 1.2px; margin: 0 0 9px; }
.eyebrow-line { width: 17px; height: 2px; border-radius: 2px; background: #7868e7; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 5px; color: #22253b; font: 800 30px/1.25 "Manrope", sans-serif; letter-spacing: -1.2px; }
h1 span { color: #7566e5; }
.page-subtitle { margin: 0; color: #9094a7; font-size: 12px; }
.term-select-wrap { position: relative; min-width: 196px; height: 39px; display: flex; align-items: center; gap: 9px; padding: 0 11px; border: 1px solid #e9e9f0; background: #fff; border-radius: 8px; color: #757a8e; }
.term-select-wrap > svg:first-of-type { width: 16px; height: 16px; color: #878b9e; }
.term-select-wrap select { flex: 1; min-width: 0; padding: 0 15px 0 0; appearance: none; border: 0; outline: 0; background: transparent; color: #4a4e62; font-size: 10px; font-weight: 600; cursor: pointer; }
.term-select-wrap .select-chevron { position: absolute; right: 10px; width: 13px; height: 13px; pointer-events: none; }
.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; }

.summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.summary-card { min-height: 174px; padding: 17px 18px 14px; border: 1px solid #ececf3; border-radius: 11px; background: #fff; box-shadow: 0 2px 5px rgba(31,35,64,.018); }
.summary-card-top { display: flex; align-items: center; justify-content: space-between; min-height: 32px; }
.summary-icon { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; }
.summary-icon svg { width: 17px; height: 17px; }
.gpa-icon { background: #f0edff; color: #735fe2; }
.gpa-icon svg { fill: #735fe2; stroke: #735fe2; }
.average-icon { background: #eaf7f2; color: #43a883; }
.assignments-icon { background: #fff4e7; color: #e39b43; }
.trend-pill { padding: 5px 7px; background: #edf8f3; border-radius: 6px; color: #399879; font-size: 9px; font-weight: 700; }
.trend-pill span { margin-left: 2px; color: #79a897; font-weight: 500; }
.subtle-caption { color: #a2a5b3; font-size: 9px; }
.due-pill { display: inline-flex; align-items: center; gap: 5px; padding: 5px 7px; border-radius: 6px; background: #fff7eb; color: #ca8d3f; font-size: 9px; font-weight: 700; }
.due-pill span, .new-activity span { width: 5px; height: 5px; background: #e4a24e; border-radius: 50%; }
.summary-label { margin: 13px 0 3px; color: #85899c; font-size: 10px; font-weight: 500; }
.summary-value { color: #22253b; font: 800 27px/1.2 "Manrope", sans-serif; letter-spacing: -.8px; }
.summary-unit { color: #9a9dad; font: 500 12px "DM Sans", sans-serif; letter-spacing: 0; }
.grade-letter { margin-left: 9px; padding: 4px 6px; vertical-align: 4px; border-radius: 5px; background: #edf8f3; color: #3e9b7a; font: 700 9px "DM Sans", sans-serif; letter-spacing: 0; }
.summary-foot { min-height: 22px; margin-top: 12px; display: flex; align-items: center; gap: 8px; color: #999cad; font-size: 9px; }
.mini-bars { height: 17px; display: flex; align-items: flex-end; gap: 2px; }
.mini-bars i { width: 3px; border-radius: 2px; background: #b8acee; }
.mini-bars i:nth-child(1), .mini-bars i:nth-child(2) { height: 6px; }
.mini-bars i:nth-child(3), .mini-bars i:nth-child(4) { height: 9px; }
.mini-bars i:nth-child(5), .mini-bars i:nth-child(6) { height: 7px; }
.mini-bars i:nth-child(7), .mini-bars i:nth-child(8) { height: 12px; }
.mini-bars i:nth-child(9), .mini-bars i:nth-child(10) { height: 10px; }
.mini-bars i:nth-child(11) { height: 14px; background: #7465e0; }
.mini-bars i:nth-child(12) { height: 17px; background: #7465e0; }
.progress-track { height: 5px; flex: 1; max-width: 125px; background: #edf0f4; border-radius: 5px; overflow: hidden; }
.progress-track span { height: 100%; display: block; border-radius: 5px; background: #55b392; }
.due-date strong { color: #62667b; font-weight: 700; }
.text-link { color: #6555d8; font-size: 10px; font-weight: 700; white-space: nowrap; }
.text-link span { padding-left: 3px; }
.assignments-card .summary-foot { justify-content: space-between; }

.courses-section { margin-top: 31px; }
.section-heading { margin-bottom: 14px; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.section-title-row { display: flex; align-items: center; gap: 9px; }
h2 { margin: 0; color: #272a40; font: 700 16px/1.35 "Manrope", sans-serif; letter-spacing: -.35px; }
.section-heading p { margin: 4px 0 0; color: #9699aa; font-size: 10px; }
.count-badge { min-width: 20px; height: 19px; padding: 0 6px; display: grid; place-items: center; border-radius: 6px; background: #eeedff; color: #6554d6; font-size: 9px; font-weight: 700; }
.plain-link { border: 0; background: none; padding: 0 0 2px; color: #6858d7; font-size: 10px; font-weight: 600; cursor: pointer; }
.plain-link span { margin-left: 4px; }
.course-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.course-card { min-width: 0; padding: 13px 14px 12px; border: 1px solid #ececf3; background: #fff; border-radius: 10px; box-shadow: 0 2px 5px rgba(31,35,64,.015); }
.course-card-top { display: flex; align-items: center; gap: 9px; }
.course-icon { width: 31px; height: 31px; flex: 0 0 auto; border-radius: 9px; display: grid; place-items: center; }
.course-icon svg { width: 16px; height: 16px; }
.course-copy { min-width: 0; }
.course-copy strong { display: block; overflow: hidden; color: #36394e; font-size: 10px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.course-copy span { display: block; margin-top: 3px; overflow: hidden; color: #9b9eae; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.course-copy .course-teacher { color: #656a80; font-size: 9px; font-weight: 600; }
.course-grade { margin-left: auto; flex: 0 0 auto; text-align: right; }
.course-grade strong { display: block; color: #303349; font: 700 16px/1.15 "Manrope", sans-serif; }
.course-grade span { display: block; margin-top: 2px; color: #999cad; font-size: 9px; }
.course-progress-row { margin-top: 12px; display: flex; align-items: center; gap: 8px; }
.course-progress { height: 4px; flex: 1; background: #f0f0f4; border-radius: 4px; overflow: hidden; }
.course-progress span { height: 100%; display: block; border-radius: 4px; }
.course-progress-row > span { color: #a0a2b1; font-size: 8px; }
.course-progress-row .course-trend { color: #40a07d; font-size: 9px; font-weight: 600; }
.course-progress-row .course-trend.negative { color: #ce8b72; }

.gradebook-section { margin-top: 31px; }
.gradebook-heading { margin-bottom: 13px; align-items: flex-end; }
.new-activity { display: inline-flex; align-items: center; gap: 5px; color: #a4a6b4; font-size: 8px; font-weight: 700; letter-spacing: .6px; }
.new-activity span { background: #60bb98; box-shadow: 0 0 0 3px #eaf7f1; }
.gradebook-actions { display: flex; align-items: center; gap: 8px; }
.table-search { height: 34px; width: 183px; padding: 0 9px; display: flex; align-items: center; gap: 7px; border: 1px solid #e9e9f0; border-radius: 7px; background: #fff; color: #a2a5b4; }
.table-search svg { width: 15px; height: 15px; }
.table-search input { font-size: 9px; }
.download-button { height: 34px; display: flex; align-items: center; gap: 7px; padding: 0 10px; border: 1px solid #e9e9f0; border-radius: 7px; background: #fff; color: #686d81; font-size: 9px; font-weight: 600; white-space: nowrap; cursor: pointer; transition: border-color .15s, background .15s; }
.download-button:hover { border-color: #c8c2f4; background: #faf9ff; }
.download-button svg { width: 14px; height: 14px; }
.table-card { overflow: hidden; border: 1px solid #ececf3; border-radius: 10px; background: #fff; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
thead { background: #fafafd; }
th { height: 37px; padding: 0 13px; color: #a1a3b1; font-size: 8px; font-weight: 700; letter-spacing: .75px; white-space: nowrap; }
th:first-child, td:first-child { padding-left: 17px; }
tbody tr { border-top: 1px solid #f1f1f5; }
tbody tr:hover { background: #fcfcff; }
td { height: 46px; padding: 0 13px; color: #73778b; font-size: 9px; white-space: nowrap; }
.assignment-name { display: flex; align-items: center; gap: 9px; color: #383b50; font-size: 10px; font-weight: 600; }
.assignment-icon { width: 25px; height: 25px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 7px; }
.assignment-icon svg { width: 13px; height: 13px; }
.teacher-name { display: block; margin-top: 2px; color: #a0a2b0; font-size: 8px; font-weight: 400; }
.class-cell { color: #62667b; }
.status-pill { display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; border-radius: 5px; font-size: 8px; font-weight: 600; }
.status-pill::before { width: 4px; height: 4px; border-radius: 50%; content: ""; }
.status-graded { background: #edf8f3; color: #479b7c; }
.status-graded::before { background: #55b391; }
.status-pending { background: #fff5e9; color: #c99048; }
.status-pending::before { background: #dfa452; }
.status-late { background: #fff0f1; color: #d36c76; }
.status-late::before { background: #df7a82; }
.grade-cell { color: #383b50; font-size: 10px; font-weight: 700; }
.grade-cell small { margin-left: 3px; color: #a2a4b1; font-size: 8px; font-weight: 400; }
.grade-none { color: #b0b2be; font-weight: 500; }
.row-more { border: 0; background: transparent; color: #a8aab7; font-size: 15px; cursor: pointer; }
.empty-state { padding: 30px 16px; text-align: center; color: #85899c; font-size: 11px; }
.table-footer { min-height: 42px; padding: 0 16px; border-top: 1px solid #f1f1f5; display: flex; align-items: center; justify-content: space-between; color: #9b9eae; font-size: 9px; }
.page-footer { padding: 21px 1px 0; display: flex; justify-content: space-between; color: #a5a7b4; font-size: 9px; }
.page-footer a { color: #7465dc; font-weight: 600; }
.toast { position: fixed; right: 25px; bottom: 24px; z-index: 10; padding: 11px 15px; border: 1px solid #e6e3f7; border-radius: 9px; background: #fff; color: #44475e; box-shadow: 0 8px 30px rgba(30,32,57,.12); font-size: 11px; opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.visible { opacity: 1; transform: translateY(0); }
.login-dialog { width: min(420px, calc(100% - 32px)); padding: 0; border: 0; border-radius: 15px; background: #fff; color: var(--ink); box-shadow: 0 20px 70px rgba(27,29,54,.25); }
.login-dialog::backdrop { background: rgba(30,31,55,.42); backdrop-filter: blur(3px); }
.portal-dialog { position: relative; width: min(470px, calc(100% - 32px)); max-height: min(80vh, 650px); overflow-y: auto; padding: 26px; border: 0; border-radius: 14px; background: #fff; color: var(--ink); box-shadow: 0 20px 70px rgba(27,29,54,.25); }
.portal-dialog::backdrop { background: rgba(30,31,55,.42); backdrop-filter: blur(3px); }
.portal-dialog h2 { padding-right: 30px; margin: 0 0 7px; font-size: 19px; }
.portal-dialog .dialog-subtitle { margin: 0 0 17px; color: #9295a5; font-size: 10px; line-height: 1.5; }
.notification-list { display: grid; gap: 8px; }
.notification-item { padding: 11px; border-radius: 8px; background: #f8f8fc; color: #55596e; font-size: 10px; line-height: 1.5; }
.notification-item.unread { background: #f2f0ff; }
.notification-item time { display: block; margin-top: 4px; color: #9a9dad; font-size: 8px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; margin: 16px 0; }
.detail-field { padding: 10px; border-radius: 7px; background: #f8f8fc; }
.detail-field span { display: block; color: #999cad; font-size: 8px; }
.detail-field strong { display: block; margin-top: 5px; color: #414458; font-size: 10px; }
.profile-details { display: grid; gap: 10px; margin: 17px 0; }
.login-form { position: relative; padding: 30px; display: flex; flex-direction: column; }
.dialog-close { position: absolute; top: 13px; right: 15px; width: 30px; height: 30px; border: 0; background: transparent; color: #9295a5; font-size: 24px; line-height: 1; cursor: pointer; }
.login-mark { width: 39px; height: 39px; margin-bottom: 20px; display: grid; place-items: center; color: #6858de; }
.login-mark svg { width: 39px; height: 39px; stroke: none; }
.login-form .eyebrow { margin-bottom: 7px; font-size: 8px; }
.login-form h2 { font-size: 22px; }
.login-form h2 span { color: #7566e5; }
.login-description { margin: 8px 0 19px; color: #9094a7; font-size: 11px; line-height: 1.5; }
.auth-view[hidden] { display: none; }
.login-label { margin: 0 0 6px; color: #55596e; font-size: 10px; font-weight: 600; }
.login-input { height: 39px; margin-bottom: 14px; padding: 0 11px; border: 1px solid #e8e9f0; border-radius: 7px; outline: 0; background: #fff; color: #36394e; font-size: 11px; }
.login-form .password-field { margin-bottom: 14px; }
.login-form .password-field > .login-input { min-width: 0; flex: 1; margin: 0; padding-right: 61px; }
.login-form .password-toggle { position: absolute; right: 4px; }
.login-input:focus { border-color: #968be9; box-shadow: 0 0 0 3px #f0efff; }
.login-input::placeholder { color: #b0b2be; }
.login-submit { height: 39px; margin-top: 2px; border: 0; border-radius: 7px; background: #6858de; color: #fff; font-size: 11px; font-weight: 700; cursor: pointer; transition: background .15s; }
.login-submit:disabled { opacity: .65; cursor: wait; }
.auth-switch { margin: 13px 0 0; color: #85899c; text-align: center; font-size: 10px; }
.auth-switch button { padding: 0; border: 0; background: none; color: #6555d8; font-size: inherit; font-weight: 700; cursor: pointer; }
.login-notice { margin: 12px 0 0; padding: 9px 10px; border-radius: 7px; background: #f7f7fc; color: #85899c; font-size: 9px; line-height: 1.5; }

.admin-body {
  background:
    radial-gradient(ellipse at 88% 7%, rgba(127,76,255,.3), transparent 37%),
    radial-gradient(ellipse at 5% 70%, rgba(39,197,255,.14), transparent 34%),
    linear-gradient(135deg, #100b24 0%, #0b1021 52%, #14102d 100%);
  background-attachment: fixed;
  color: #f4f4f8;
}
.admin-shell { min-height: 100vh; display: flex; flex-direction: column; }
.admin-topbar { min-height: 72px; padding: 0 max(24px, calc((100vw - 1180px) / 2)); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(190,166,255,.2); background: rgba(13,11,29,.76); }
.admin-brand { display: flex; align-items: center; gap: 9px; }
.admin-brand .brand-mark, .admin-brand .brand-mark svg { width: 32px; height: 32px; }
.admin-brand .brand-mark { color: #b996ff; filter: drop-shadow(0 0 10px rgba(168,118,255,.65)); }
.admin-brand .header-brand-copy strong { color: #f5f4fb; font-size: 15px; letter-spacing: .1px; }
.admin-brand .header-brand-copy small { color: #a3a3b1; }
.admin-back-link { color: #c7b5ff; font-size: 10px; font-weight: 700; transition: color .15s; }
.admin-back-link:hover { color: #fff; }
.admin-content { width: min(100% - 48px, 1100px); margin: 0 auto; padding: 40px 0 28px; flex: 1; }
.admin-content > .eyebrow { margin-bottom: 10px; color: #d3c5ff; }
.admin-content > .eyebrow .eyebrow-line { background: linear-gradient(90deg, #33dcff, #b35bff); box-shadow: 0 0 12px rgba(138,91,255,.8); }
.admin-content > h1 { color: #f5f4fb; font-size: 30px; }
.admin-content > h1 span { color: #bf8cff; text-shadow: 0 0 20px rgba(173,104,255,.72); }
.admin-content > .page-subtitle { margin-bottom: 25px; color: #b1b2c1; }
.admin-login-card { width: min(100%, 420px); padding: 22px; border: 1px solid #e7ddff; border-radius: 11px; background: #fff; box-shadow: 0 14px 50px rgba(124,78,255,.2), 0 0 24px rgba(57,200,255,.08); }
.admin-auth-tabs { display: flex; gap: 5px; padding: 4px; margin: -4px -4px 18px; border-radius: 8px; background: #f3efff; }
.admin-auth-tab { min-height: 33px; flex: 1; padding: 0 8px; border: 0; border-radius: 6px; background: transparent; color: #85899c; font-size: 9px; font-weight: 600; cursor: pointer; }
.admin-auth-tab[hidden] { display: none; }
.admin-auth-tab.active { background: linear-gradient(110deg, #7048ed, #a844ef); color: #fff; box-shadow: 0 3px 11px rgba(120,70,226,.28); }
.admin-auth-view[hidden] { display: none; }
.admin-login-card h2 { margin-bottom: 6px; }
.admin-auth-view > p:not(.admin-error) { margin-bottom: 16px; color: #9295a5; font-size: 10px; line-height: 1.5; }
.admin-login-card form { display: grid; gap: 9px; }
.admin-login-card label { color: #55596e; font-size: 10px; font-weight: 600; }
.admin-login-card input { height: 39px; padding: 0 11px; border: 1px solid #e8e9f0; border-radius: 7px; outline: 0; background: #fff; font-size: 11px; }
.password-field { min-width: 0; display: flex; align-items: center; position: relative; }
.password-field > input { min-width: 0; width: 100%; }
.admin-login-card .password-field > input { padding-right: 64px; }
.password-toggle { flex: 0 0 auto; padding: 7px 9px; border: 0; border-radius: 5px; background: transparent; color: #6858d7; font-size: 10px; font-weight: 700; cursor: pointer; }
.admin-login-card .password-toggle { position: absolute; right: 4px; }
.admin-login-card input:focus { border-color: #9a69f4; box-shadow: 0 0 0 3px #eee5ff; }
.admin-login-card .welcome-login { margin-top: 3px; }
.admin-body .welcome-login { border-color: #824cef; background: linear-gradient(105deg, #7048ed, #a844ef 62%, #d14fd0); box-shadow: 0 6px 18px rgba(134,67,223,.3); }
.admin-body .welcome-login:hover { background: linear-gradient(105deg, #5e39d6, #9136d8 62%, #bd39bb); }
.admin-create-entry { margin-top: 12px; padding: 0; border: 0; background: transparent; color: #7048cf; font-size: 10px; font-weight: 700; cursor: pointer; }
.admin-create-entry:hover, .admin-cancel-create:hover { color: #aa36d5; }
.admin-login-card button:disabled { opacity: .65; cursor: wait; }
.admin-security-note { margin: 12px 0 0 !important; color: #805c22 !important; font-size: 9px !important; }
.admin-cancel-create { margin-top: 12px; padding: 0; border: 0; background: transparent; color: #6858d7; font-size: 10px; font-weight: 700; cursor: pointer; }
.admin-error { min-height: 15px; margin: 8px 0 0; color: #bd5a66; font-size: 10px; }
.admin-registrations[hidden], .admin-login-card[hidden] { display: none; }
.online-grade-notice { margin: 18px 32px 0; padding: 11px 14px; border: 1px solid #e4dfff; border-radius: 9px; background: #f5f3ff; color: #5746cb; font-size: 11px; line-height: 1.5; }
.admin-toolbar { margin-bottom: 13px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.admin-stats { display: flex; align-items: baseline; gap: 8px; color: #d0c9e7; font-size: 10px; }
.admin-stats span:first-child { color: #fff; font: 800 23px "Manrope", sans-serif; text-shadow: 0 0 16px rgba(185,133,255,.7); }
.admin-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.admin-search { width: 215px; }
.admin-search:focus-within { border-color: #a577f2; box-shadow: 0 0 0 3px rgba(153,103,245,.18); }
.admin-actions .download-button:hover { border-color: #a77af2; background: #f7f1ff; }
.admin-actions #export-registrations { border-color: #8453e9; background: linear-gradient(105deg, #7048ed, #a844ef); color: #fff; box-shadow: 0 4px 13px rgba(134,67,223,.24); }
.admin-actions #export-registrations:hover { border-color: #693bd4; background: linear-gradient(105deg, #5e39d6, #9136d8); }
.admin-table-card table { min-width: 590px; }
.admin-table-card thead { background: linear-gradient(90deg, #f1ebff, #f1f8ff); }
.admin-table-card th { color: #7352a8; }
.admin-table-card tbody tr { transition: background .15s; }
.admin-table-card tbody tr:hover { background: #faf7ff; }
.admin-empty { margin: 0; padding: 28px 15px; color: #85899c; text-align: center; font-size: 11px; }
.admin-privacy-note { margin: 12px 0 0; color: #9295a5; font-size: 9px; }
.admin-footer { padding: 18px 24px; border-top: 1px solid rgba(190,166,255,.2); color: #aaa4bf; text-align: center; font-size: 9px; }

@media (min-width: 1500px) {
  .page-content { padding-top: 43px; }
  .summary-card { min-height: 185px; padding: 19px 21px; }
  .course-card { padding: 15px 16px 14px; }
}
@media (max-width: 1150px) {
  :root { --sidebar-width: 216px; }
  .topbar { padding: 0 30px; }
  .page-content { padding: 31px 30px 20px; }
  .summary-grid { gap: 10px; }
  .summary-card { padding-left: 14px; padding-right: 14px; }
  .course-grid { gap: 9px; }
  .course-card { padding-left: 10px; padding-right: 10px; }
}
@media (max-width: 900px) {
  :root { --sidebar-width: 70px; }
  .sidebar { padding: 22px 11px 13px; align-items: center; }
  .brand { padding: 0; }
  .brand-mark, .brand-mark svg { width: 35px; height: 35px; }
  .brand-copy, .nav-label, .nav-link > span:not(.nav-dot):not(.message-count), .help-card, .profile-copy, .more-button { display: none; }
  .nav-group { width: 100%; margin-top: 47px; }
  .sidebar nav { gap: 9px; }
  .sidebar .nav-link { justify-content: center; padding: 0; }
  .sidebar .nav-link svg { width: 19px; height: 19px; }
  .sidebar .nav-dot { position: absolute; margin: -20px 0 0 25px; }
  .message-count { position: absolute; margin: -23px 0 0 24px; min-width: 15px; height: 15px; font-size: 8px; }
  .sidebar-bottom { width: 100%; }
  .settings-link { margin-bottom: 12px; }
  .sidebar-profile { justify-content: center; padding: 13px 0 0; }
  .avatar-small { width: 33px; height: 33px; }
  .main-content { margin-left: var(--sidebar-width); }
  .summary-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .summary-card { min-height: 169px; }
  .course-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 650px) {
  :root { --sidebar-width: 0px; }
  .sidebar { display: none; }
  .welcome-screen { padding: 18px; }
  .welcome-card { padding: 34px 25px 29px; border-radius: 16px; }
  .welcome-brand { margin-bottom: 53px; }
  .welcome-card h1 { font-size: 29px; }
  .welcome-description { font-size: 12px; }
  .welcome-actions { flex-direction: column; }
  .welcome-login, .welcome-signup { width: 100%; }
  .main-content { margin-left: 0; }
  .topbar { min-height: 59px; padding: 0 17px; }
  .topbar-actions { gap: 8px; }
  .search-box { width: min(43vw, 190px); height: 33px; }
  .search-box kbd { display: none; }
  .header-brand { gap: 10px; }
  .header-brand-lockup { gap: 6px; }
  .header-brand-lockup .brand-mark, .header-brand-lockup .brand-mark svg { width: 27px; height: 27px; }
  .header-brand-copy strong { font-size: 12px; }
  .header-brand-copy small { font-size: 6px; }
  .brand-divider { height: 20px; }
  .breadcrumb { gap: 6px; font-size: 9px; }
  .topbar-avatar { width: 29px; height: 29px; }
  .page-content { padding: 26px 17px 19px; }
  .portal-view { min-height: calc(100vh - 59px); }
  .portal-panel { padding: 14px; }
  .schedule-scroll { overflow-x: auto; }
  .schedule-table { min-width: 560px; }
  .message-item { grid-template-columns: 1fr; }
  .page-heading { align-items: flex-start; gap: 15px; flex-direction: column; margin-bottom: 20px; }
  h1 { font-size: 27px; }
  .term-select-wrap { min-width: 190px; height: 36px; }
  .summary-grid { grid-template-columns: 1fr; gap: 9px; }
  .summary-card { min-height: 147px; padding: 14px 15px; }
  .summary-label { margin-top: 9px; }
  .summary-foot { margin-top: 8px; }
  .courses-section, .gradebook-section { margin-top: 27px; }
  .section-heading { align-items: flex-start; }
  .course-grid { grid-template-columns: 1fr; gap: 8px; }
  .course-card { padding: 12px 13px; }
  .gradebook-heading { flex-direction: column; }
  .gradebook-actions { width: 100%; }
  .table-search { flex: 1; width: auto; }
  .download-button { padding: 0 8px; }
  .download-button span { display: none; }
  .table-card { margin-left: -1px; margin-right: -1px; }
  table { min-width: 660px; }
  .table-footer { padding: 0 11px; }
  .table-footer .text-link { font-size: 9px; }
  .page-footer { gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
