:root {
  font-family: "DM Sans", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #172033;
  background: #f5f7fb;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-optical-sizing: auto;
  font-weight: 400;
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; }
button, input, select { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
.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; }
.skip-link { position: fixed; top: 1rem; left: 1rem; z-index: 100; transform: translateY(-160%); border-radius: .6rem; background: #fff; padding: .7rem 1rem; color: #172033; box-shadow: 0 5px 25px #0f172a30; }
.skip-link:focus { transform: translateY(0); }
.portal { min-height: 100vh; font-size: 14px; }
.portal-layout, .admin-layout { min-height: 100vh; }
.portal-sidebar, .admin-sidebar { position: fixed; z-index: 20; inset: 0 auto 0 0; display: flex; width: 248px; flex-direction: column; padding: 27px 18px 18px; }
.portal-main, .admin-main { min-height: 100vh; margin-left: 248px; }
.portal-brand, .admin-brand { display: flex; width: fit-content; align-items: center; gap: 10px; padding: 0 8px; font-family: Manrope, sans-serif; font-size: 19px; font-weight: 800; letter-spacing: -.8px; }
.brand-mark { display: grid; width: 31px; height: 31px; place-items: center; border-radius: 9px; background: var(--brand-orange); color: white; font-family: Manrope, sans-serif; font-size: 20px; font-weight: 800; }
.brand-dot { color: #3ac9bb; }
.sidebar-caption { margin: 44px 9px 13px; font-size: 9px; font-weight: 800; letter-spacing: 1.25px; }
.portal-nav, .admin-nav { display: grid; gap: 4px; }
.portal-nav-link, .admin-nav-link { display: flex; min-height: 40px; align-items: center; gap: 11px; border-radius: 8px; padding: 0 11px; font-size: 12px; font-weight: 600; transition: background .15s, color .15s; }
.portal-nav-link .nav-icon { display: inline-grid; width: 18px; place-items: center; font-size: 17px; }
.portal-nav-link:hover, .admin-nav-link:hover { background: #ffffff10; }
.sidebar-bottom { margin-top: auto; }
.help-card { margin: 0 2px 18px; border: 1px solid #e6eaf2; border-radius: 13px; background: #fff; padding: 14px 13px 15px; }
.help-icon { display: grid; width: 26px; height: 26px; place-items: center; border-radius: 8px; background: #edf2ff; color: #5367e8; font-weight: 800; }
.help-card strong { display: block; margin-top: 10px; font-size: 12px; }
.help-card p { margin: 5px 0 10px; color: #8290a4; font-size: 11px; line-height: 1.5; }
.help-card a { color: #4c60df; font-size: 10px; font-weight: 700; }
.sidebar-home { border-top: 1px solid #e6eaf2; border-radius: 0; padding-top: 14px; color: #6d7b90; }
.portal-topbar, .admin-topbar { position: sticky; z-index: 10; top: 0; display: flex; height: 68px; align-items: center; justify-content: space-between; border-bottom: 1px solid #e9edf4; padding: 0 38px; backdrop-filter: blur(15px); }
.portal-topbar { background: rgb(255 255 255 / 90%); }
.breadcrumb { display: flex; align-items: center; gap: 10px; color: #8591a5; font-size: 12px; }
.breadcrumb strong { color: #28334a; font-weight: 700; }
.topbar-actions { display: flex; align-items: center; gap: 19px; }
.icon-button { position: relative; display: grid; width: 35px; height: 35px; place-items: center; border: 1px solid #e8ebf2; border-radius: 10px; background: #fff; color: #6e7c91; font-size: 17px; cursor: pointer; }
.notification-dot { position: absolute; top: 7px; right: 7px; width: 6px; height: 6px; border: 1px solid white; border-radius: 50%; background: #fb7185; }
.profile-button, .admin-profile { display: flex; align-items: center; gap: 9px; border: 0; background: transparent; cursor: pointer; }
.profile-name { font-size: 12px; font-weight: 700; }
.profile-chevron { color: #8995a8; font-size: 17px; }
.avatar { display: inline-grid; width: 35px; height: 35px; flex: 0 0 auto; place-items: center; border-radius: 50%; font-size: 11px; font-weight: 800; }
.avatar-blue { background: #e4eaff; color: #4963dc; }
.avatar-teal { background: #ccf5ec; color: #078878; }
.avatar-violet { background: #eee6ff; color: #7d52d6; }
.avatar-orange { background: #fff0dd; color: #c8781e; }
.avatar-pink { background: #ffe4ef; color: #cc4d86; }
.avatar-green { background: #def6e9; color: #278151; }
.avatar-amber { background: #fff4d9; color: #9c7010; }
.mobile-menu-button { display: none; border: 0; background: transparent; font-size: 20px; cursor: pointer; }
.portal-content { width: min(100%, 1440px); margin: 0 auto; padding: 37px 38px 23px; }
.welcome-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 27px; }
.eyebrow { margin: 0 0 8px; color: #8793a7; font-size: 9px; font-weight: 800; letter-spacing: 1.2px; }
.student-demo-label { display: inline-flex; align-items: center; margin-left: 7px; border: 1px solid #e2e7fb; border-radius: 10px; background: #edf0ff; padding: 3px 6px; color: #5b6dd2; font-size: 7px; letter-spacing: .5px; vertical-align: 1px; }
h1, h2, h3, p { margin-top: 0; }
.welcome-row h1, .admin-welcome h1 { margin-bottom: 7px; font-family: Manrope, sans-serif; font-size: clamp(24px, 2.2vw, 31px); font-weight: 800; letter-spacing: -1.1px; }
.welcome-row h1 span { color: #efad49; font-size: 22px; }
.welcome-copy { margin-bottom: 0; color: #7c899d; font-size: 13px; }
.button { display: inline-flex; min-height: 39px; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 8px; padding: 0 15px; font-size: 11px; font-weight: 700; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.button:hover { transform: translateY(-1px); }
.button-primary { background: #4c60df; color: #fff; box-shadow: 0 6px 14px #4c60df26; }
.button-primary:hover { box-shadow: 0 8px 18px #4c60df40; }
.student-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 19px; }
.student-stat, .panel { border: 1px solid #e9edf4; border-radius: 12px; background: #fff; box-shadow: 0 3px 14px #17203305; }
.student-stat { position: relative; min-height: 135px; padding: 17px 17px 14px; }
.stat-icon { display: inline-grid; width: 29px; height: 29px; place-items: center; border-radius: 9px; font-size: 15px; }
.stat-violet { background: #f1eaff; color: #8859d5; }
.stat-cyan { background: #e0f6f7; color: #129aaa; }
.stat-amber { background: #fff3da; color: #d89624; }
.stat-green { background: #e0f6e8; color: #3b9f61; }
.stat-label { display: block; margin: 10px 0 4px; color: #78859a; font-size: 10px; font-weight: 600; }
.student-stat > strong { display: block; color: #1d2940; font-family: Manrope, sans-serif; font-size: 23px; font-weight: 800; letter-spacing: -.6px; }
.student-stat > strong small { font-size: 12px; font-weight: 700; }
.stat-foot { display: block; margin-top: 2px; color: #9aa5b5; font-size: 9px; }
.text-positive { color: #2b9c68; font-weight: 700; }
.student-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(280px, 1fr); align-items: start; gap: 16px; }
.panel { padding: 20px; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 17px; }
.panel-heading .eyebrow { margin-bottom: 4px; }
.panel-heading h2, .admin-panel-heading h2 { margin: 0; font-family: Manrope, sans-serif; font-size: 16px; font-weight: 800; letter-spacing: -.45px; }
.text-link { color: #5266df; font-size: 10px; font-weight: 700; white-space: nowrap; }
.course-card { display: grid; grid-template-columns: 134px minmax(0, 1fr); gap: 17px; border-bottom: 1px solid #eff1f5; padding-bottom: 17px; }
.course-card-secondary { border: 0; padding: 17px 0 0; }
.course-art { position: relative; display: flex; height: 149px; flex-direction: column; justify-content: space-between; overflow: hidden; border-radius: 10px; padding: 13px; }
.course-art::before, .course-art::after { position: absolute; content: ""; border: 1px solid #ffffff50; border-radius: 50%; }
.course-art::before { width: 105px; height: 105px; top: 30px; right: -30px; }
.course-art::after { width: 75px; height: 75px; top: 45px; right: -15px; }
.course-art-blue { background: linear-gradient(140deg, #cdd8ff, #748af2); color: white; }
.course-art-peach { height: 129px; background: linear-gradient(140deg, #ffdbbd, #f8a96e); color: white; }
.course-art > span:first-child { position: relative; z-index: 1; font-size: 10px; font-weight: 800; letter-spacing: 1px; }
.art-symbol { position: relative; z-index: 1; font-size: 34px; font-weight: 800; text-align: right; }
.course-details { min-width: 0; }
.course-meta { display: flex; align-items: center; justify-content: space-between; gap: 5px; color: #98a2b2; font-size: 9px; }
.tag { display: inline-flex; width: fit-content; align-items: center; border-radius: 4px; padding: 4px 6px; font-size: 8px; font-weight: 800; letter-spacing: .45px; white-space: nowrap; }
.tag-blue { background: #edf0ff; color: #5669dc; }
.tag-orange { background: #fff0e5; color: #dc8841; }
.course-details h3 { margin: 10px 0 5px; font-size: 13px; font-weight: 750; line-height: 1.4; }
.course-details > p { margin: 0 0 13px; color: #909bae; font-size: 10px; }
.progress-label { display: flex; justify-content: space-between; margin-bottom: 6px; color: #929db0; font-size: 9px; }
.progress-label strong { color: #3f4fca; }
.progress-track { height: 5px; overflow: hidden; border-radius: 10px; background: #eef0f6; }
.progress-track > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #697bea, #8b75ed); }
.progress-track-orange > span { background: linear-gradient(90deg, #faa35e, #f6c078); }
.button-small { min-height: 30px; margin-top: 12px; padding: 0 10px; font-size: 9px; }
.button-outline { border: 1px solid #e4e8f4; background: #fff; color: #4c60d6; }
.student-side-column { display: grid; gap: 16px; }
.exam-panel { padding: 19px 18px 14px; }
.exam-panel .panel-heading { margin-bottom: 12px; }
.event-row { display: flex; align-items: center; gap: 10px; border-top: 1px solid #eff1f5; padding: 11px 0; }
.event-date { display: flex; width: 39px; height: 43px; flex-direction: column; align-items: center; justify-content: center; border-radius: 8px; background: #eef1ff; color: #5a6bdd; }
.event-date strong { font-family: Manrope, sans-serif; font-size: 16px; line-height: 1; }
.event-date span { margin-top: 4px; font-size: 8px; font-weight: 800; }
.event-date-peach { background: #fff0e5; color: #d88744; }
.event-info { display: grid; min-width: 0; flex: 1; gap: 5px; }
.event-info strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.event-info > span { color: #939eaf; font-size: 9px; }
.event-dot { display: inline-block; width: 5px; height: 5px; margin-left: 4px; border-radius: 50%; }
.dot-blue { background: #7788ed; }
.dot-orange { background: #f2a35c; }
.event-more { border: 0; background: transparent; color: #91a0b2; font-weight: 800; cursor: pointer; }
.schedule-link { display: block; border-top: 1px solid #eff1f5; padding: 12px 0 0; color: #5669dc; font-size: 10px; font-weight: 700; }
.schedule-link span { margin-right: 4px; }
.scholarship-card { position: relative; min-height: 221px; overflow: hidden; border-radius: 12px; background: linear-gradient(135deg, #475bdb, #7568de 65%, #9472da); padding: 18px; color: white; }
.scholarship-top { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; }
.scholarship-icon { display: grid; width: 29px; height: 29px; place-items: center; border-radius: 8px; background: #ffffff24; font-size: 16px; }
.tag-light { background: #ffffff24; color: #fff; }
.scholarship-card .eyebrow { position: relative; z-index: 1; margin: 16px 0 6px; color: #d7ddff; }
.scholarship-card h2 { position: relative; z-index: 1; max-width: 265px; margin: 0; font-family: Manrope, sans-serif; font-size: 17px; font-weight: 800; letter-spacing: -.4px; line-height: 1.35; }
.scholarship-card > p:not(.eyebrow) { position: relative; z-index: 1; max-width: 285px; margin: 7px 0 13px; color: #e4e6ff; font-size: 10px; line-height: 1.5; }
.button-white { position: relative; z-index: 1; min-height: 31px; background: white; color: #4c5dc1; font-size: 9px; }
.scholarship-orbit { position: absolute; right: -50px; border: 1px solid #ffffff20; border-radius: 50%; }
.orbit-one { top: -30px; width: 210px; height: 210px; }
.orbit-two { top: -8px; right: -25px; width: 165px; height: 165px; }
.activity-panel { margin-top: 16px; padding-bottom: 14px; }
.activity-panel .panel-heading { margin-bottom: 4px; }
.activity-summary { display: flex; align-items: center; gap: 7px; color: #8490a2; font-size: 9px; }
.activity-summary strong { margin-left: 5px; color: #34415b; font-size: 10px; }
.activity-legend { width: 7px; height: 7px; border-radius: 50%; background: #6779ea; }
.activity-chart { display: grid; height: 139px; grid-template-columns: 25px minmax(0, 1fr); padding-top: 12px; }
.chart-y-labels { display: flex; flex-direction: column; justify-content: space-between; padding: 0 0 19px; color: #a2adbc; font-size: 8px; }
.chart-bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 13px; border-bottom: 1px solid #e9edf3; background: repeating-linear-gradient(to bottom, transparent 0, transparent 27px, #eff1f5 28px); }
.chart-day { display: flex; align-items: center; justify-content: end; flex-direction: column; gap: 6px; color: #919daf; font-size: 8px; }
.bar { display: block; width: min(28px, 55%); height: var(--bar-height); max-height: 100px; border-radius: 5px 5px 1px 1px; background: #dce1fc; }
.bar-today { background: linear-gradient(180deg, #687bef, #909cf3); }
.portal-footer { display: flex; justify-content: space-between; gap: 12px; padding: 20px 2px 0; color: #9aa5b5; font-size: 9px; }
.portal-footer a { color: #5266df; font-weight: 700; }
.portal-footer .legal-footer-links { display: flex; flex: 1 0 100%; flex-wrap: wrap; justify-content: center; gap: 8px 16px; }

/* Admin console */
.admin-portal { background: #0b111c; color: #e5eaf2; }
.admin-sidebar { border-right: 1px solid #1c2533; background: #101723; color: #a1afc2; }
.admin-brand { color: #eef3fb; }
.admin-brand .brand-mark { width: 27px; height: 27px; border-radius: 8px; font-size: 17px; }
.admin-role { display: flex; width: fit-content; align-items: center; gap: 6px; margin: 17px 8px 0; border: 1px solid #1b7a70; border-radius: 20px; padding: 4px 8px; color: #5ce2d2; font-size: 8px; font-weight: 800; letter-spacing: .45px; }
.role-light { width: 5px; height: 5px; border-radius: 50%; background: #55e1cf; }
.admin-sidebar .sidebar-caption { margin-top: 33px; color: #74839a; font-size: 8px; }
.admin-sidebar .sidebar-caption-spaced { margin-top: 28px; }
.admin-nav-link { color: #9cabc0; font-size: 11px; }
.admin-nav-link > span { display: inline-grid; width: 17px; place-items: center; font-size: 16px; }
.admin-nav-link.is-current { background: #17343a; color: #65e3d3; }
.admin-nav-link b { display: grid; width: 18px; height: 18px; place-items: center; margin-left: auto; border-radius: 6px; background: #2a3848; color: #c7d4e4; font-size: 9px; }
.admin-sidebar-bottom { margin-top: auto; }
.secure-note { display: flex; align-items: center; gap: 9px; margin-bottom: 13px; border: 1px solid #253140; border-radius: 9px; background: #141d2a; padding: 10px 9px; }
.secure-note > span { display: grid; width: 26px; height: 26px; place-items: center; border-radius: 7px; background: #1d3439; color: #51d9c8; font-size: 16px; }
.secure-note div { display: grid; gap: 4px; }
.secure-note strong { color: #d7e1ee; font-size: 9px; }
.secure-note small { color: #8292a8; font-size: 8px; }
.admin-exit { border-top: 1px solid #27303d; border-radius: 0; padding-top: 14px; color: #ee766e; }
.admin-main { background: #0b111c; }
.admin-topbar { border-color: #1d2634; background: rgb(13 20 31 / 94%); }
.admin-search { display: flex; width: min(330px, 45vw); height: 35px; align-items: center; gap: 8px; border: 1px solid #263142; border-radius: 8px; background: #0b111a; padding: 0 10px; color: #9baac0; }
.admin-search > span { font-size: 19px; }
.admin-search input { width: 100%; border: 0; outline: 0; background: transparent; color: #e8edf5; font-size: 10px; }
.admin-search input::placeholder { color: #8290a4; }
.admin-search kbd { border: 1px solid #293647; border-radius: 4px; padding: 2px 5px; color: #79899e; font-family: inherit; font-size: 8px; white-space: nowrap; }
.admin-topbar .topbar-actions { gap: 13px; }
.admin-icon-button { border-color: #253042; background: #111a27; color: #a2afc1; }
.admin-profile { gap: 8px; }
.admin-profile > span:nth-child(2) { display: grid; gap: 3px; text-align: left; }
.admin-profile strong { color: #e3e9f1; font-size: 9px; }
.admin-profile small { color: #8998ad; font-size: 8px; }
.admin-profile .avatar { width: 30px; height: 30px; }
.admin-content { width: min(100%, 1560px); margin: 0 auto; padding: 31px 34px 20px; }
.admin-welcome { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 23px; }
.admin-welcome .eyebrow { display: flex; align-items: center; gap: 9px; color: #8c9bb0; }
.live-pill { display: inline-flex; align-items: center; gap: 5px; border: 1px solid #21423f; border-radius: 20px; background: #142a2a; padding: 4px 7px; color: #63dccc; font-size: 7px; letter-spacing: .5px; }
.live-pill i, .admin-footer > span:last-child i { width: 5px; height: 5px; border-radius: 50%; background: #54d9c7; }
.admin-welcome h1 { margin-bottom: 5px; color: #f0f3f8; font-size: 26px; }
.admin-welcome > div > p:last-child { margin-bottom: 0; color: #8e9db1; font-size: 11px; }
.button-admin-primary { min-height: 36px; border: 1px solid #24685f; background: #123b3b; color: #67e0d1; font-size: 10px; }
.button-admin-primary:hover { box-shadow: 0 5px 18px #12ad9d20; }
.admin-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.admin-stat, .admin-panel { border: 1px solid #202a39; border-radius: 10px; background: #101824; }
.admin-stat { position: relative; min-height: 128px; overflow: hidden; padding: 16px; }
.admin-stat-top { display: flex; align-items: center; justify-content: space-between; color: #9cabbf; font-size: 10px; }
.admin-stat-icon { display: grid; width: 27px; height: 27px; place-items: center; border-radius: 8px; font-size: 14px; }
.stat-accent-teal .admin-stat-icon { background: #123539; color: #55d9ca; }
.stat-accent-blue .admin-stat-icon { background: #182b47; color: #79a8ff; }
.stat-accent-purple .admin-stat-icon { background: #2c2248; color: #b195ff; }
.stat-accent-amber .admin-stat-icon { background: #3a2d18; color: #f0bd62; }
.admin-stat > strong { display: block; margin-top: 6px; color: #f2f5f8; font-family: Manrope, sans-serif; font-size: 24px; font-weight: 800; letter-spacing: -.6px; }
.admin-stat-foot { display: flex; gap: 5px; margin-top: 4px; color: #8493a8; font-size: 9px; }
.trend-up { color: #51d3a4; font-weight: 700; }
.trend-up small { color: #8493a8; font-size: 8px; font-weight: 500; }
.pending-label { display: inline-flex; align-items: center; gap: 5px; color: #e3b354; }
.pending-label i { width: 5px; height: 5px; border-radius: 50%; background: #e3b354; }
.stat-sparkline { position: absolute; right: 15px; bottom: -1px; display: flex; height: 24px; align-items: end; gap: 4px; opacity: .8; }
.stat-sparkline i { width: 4px; height: 30%; border-radius: 3px 3px 0 0; background: currentColor; }
.stat-sparkline i:nth-child(2n) { height: 58%; }.stat-sparkline i:nth-child(3n) { height: 43%; }.stat-sparkline i:nth-child(4n) { height: 86%; }.stat-sparkline i:nth-child(5n) { height: 62%; }
.spark-teal { color: #35cdbd; }.spark-blue { color: #6f9af0; }.spark-purple { color: #9b7ce8; }.spark-amber { color: #e9b151; }
.admin-insight-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(275px, .85fr); gap: 13px; margin-top: 13px; }
.admin-panel { padding: 18px; }
.admin-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.admin-panel-heading .eyebrow { margin-bottom: 5px; color: #8392a8; font-size: 8px; }
.admin-panel-heading h2 { color: #e6ebf3; font-size: 14px; }
.select-wrap select { height: 29px; border: 1px solid #293444; border-radius: 6px; outline: 0; background: #141d2a; padding: 0 8px; color: #9dabc0; font-size: 9px; }
.chart-totals { display: flex; align-items: center; gap: 14px; margin-top: 15px; }
.chart-totals > strong { color: #f2f5f8; font-family: Manrope, sans-serif; font-size: 20px; }
.chart-totals > strong span { color: #92a1b5; font-family: "DM Sans", sans-serif; font-size: 9px; font-weight: 500; }
.admin-chart { display: grid; height: 150px; grid-template-columns: 22px 1fr; gap: 5px; margin-top: 8px; }
.admin-chart .chart-y-labels { padding: 4px 0 22px; }
.admin-chart-plot { position: relative; }
.chart-grid-lines { position: absolute; inset: 4px 0 22px; display: flex; flex-direction: column; justify-content: space-between; }
.chart-grid-lines i { display: block; border-top: 1px dashed #293343; }
.admin-chart svg { position: absolute; inset: 0 0 22px; width: 100%; height: calc(100% - 22px); overflow: visible; }
.chart-area { fill: url(#chart-fill); }
.chart-line { fill: none; stroke: #45d6c5; stroke-width: 2.2; vector-effect: non-scaling-stroke; }
.chart-x-labels { position: absolute; right: 0; bottom: 0; left: 0; display: flex; justify-content: space-between; color: #8190a4; font-size: 8px; }
.access-panel { padding-bottom: 13px; }
.admin-text-link { color: #5fdbcf; font-size: 9px; font-weight: 700; white-space: nowrap; }
.role-total { display: flex; align-items: baseline; gap: 8px; margin-top: 19px; }
.role-total strong { color: #f0f3f8; font-family: Manrope, sans-serif; font-size: 23px; }
.role-total span { color: #8695a9; font-size: 9px; }
.role-bar { display: flex; height: 8px; gap: 3px; margin: 12px 0 15px; overflow: hidden; border-radius: 5px; }
.role-segment { border-radius: 4px; }.role-student { background: #3acbb9; }.role-provider { background: #6e94f3; }.role-admin { background: #a07fea; }.role-owner { background: #e7ae4c; }
.role-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 11px 8px; }
.role-legend > div { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; align-items: center; gap: 6px; color: #8e9db1; font-size: 8px; }
.role-legend > div strong { color: #d9e1eb; font-size: 9px; }
.role-legend i { width: 7px; height: 7px; border-radius: 50%; }
.legend-student { background: #3acbb9; }.legend-provider { background: #6e94f3; }.legend-admin { background: #a07fea; }.legend-owner { background: #e7ae4c; }
.access-note { display: flex; align-items: center; gap: 6px; margin: 16px 0 0; border-top: 1px solid #222d3b; padding-top: 11px; color: #92a0b3; font-size: 8px; }
.access-note span { color: #61d9cb; font-size: 14px; }
.people-panel { margin-top: 13px; padding: 18px 18px 0; }
.people-heading { align-items: flex-start; }
.panel-subtitle { margin: 5px 0 0; color: #8998ac; font-size: 9px; }
.people-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-top: 17px; border-bottom: 1px solid #25303e; }
.people-tabs { display: flex; gap: 19px; }
.people-tabs { scrollbar-width: none; }
.people-tabs::-webkit-scrollbar { display: none; }
.people-tab { position: relative; display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; padding: 0 1px 11px; color: #91a0b4; font-size: 9px; cursor: pointer; }
.people-tab span { border-radius: 10px; background: #202a38; padding: 2px 5px; color: #a7b3c3; font-size: 8px; }
.people-tab.is-selected { color: #5ce0d0; font-weight: 700; }
.people-tab.is-selected::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; background: #4ed7c7; content: ""; }
.people-tab.is-selected span { background: #1b3c3c; color: #70dfd3; }
.filter-button { display: flex; align-items: center; gap: 6px; margin-bottom: 7px; border: 1px solid #2a3544; border-radius: 6px; background: #141d29; padding: 6px 9px; color: #abb7c7; font-size: 9px; cursor: pointer; }
.table-wrap { overflow-x: auto; }
.people-table { width: 100%; min-width: 650px; border-collapse: collapse; text-align: left; }
.people-table th { height: 34px; color: #75859a; font-size: 7px; font-weight: 800; letter-spacing: .75px; }
.people-table td { height: 47px; border-top: 1px solid #202a37; color: #9eacbd; font-size: 9px; white-space: nowrap; }
.people-table th:first-child, .people-table td:first-child { width: 39%; }
.role-select { max-width: 135px; border: 1px solid #293647; border-radius: 5px; outline: 0; background: #141d29; padding: 5px 19px 5px 7px; color: #b7c3d2; font-size: 8px; }
.role-select:focus-visible { border-color: #52cfc2; box-shadow: 0 0 0 2px #52cfc233; }
.role-select option { background: #141d29; color: #e2e8f0; }
.person-cell { display: flex; align-items: center; gap: 9px; }
.person-cell .avatar { width: 28px; height: 28px; font-size: 8px; }
.person-cell > span:last-child { display: grid; gap: 3px; }
.person-cell strong { max-width: 225px; overflow: hidden; color: #e0e6ee; font-size: 9px; font-weight: 650; text-overflow: ellipsis; }
.person-cell small { color: #8190a4; font-size: 8px; }
.person-role { display: inline-flex; border-radius: 4px; padding: 4px 6px; font-size: 8px; font-weight: 650; }
.role-admin-label { background: #2c2442; color: #c0a3ff; }.role-provider-label { background: #1b2c47; color: #9bb9ff; }.role-student-label { background: #173735; color: #6bd8c9; }
.status-badge { display: inline-flex; align-items: center; gap: 5px; border-radius: 10px; padding: 4px 7px; font-size: 8px; }
.status-badge i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status-active { background: #17372f; color: #62d6ac; }.status-review { background: #3b311c; color: #e9c16c; }.status-inactive { background: #282d35; color: #a2adba; }.status-invited { background: #202d43; color: #91b5ff; }
.row-action { width: 25px; height: 25px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: #91a0b3; font-weight: 800; cursor: pointer; }
.row-action:hover { border-color: #354152; background: #1a2431; }
.empty-state { padding: 22px; color: #9aa8bb; text-align: center; font-size: 10px; }
.table-footer { display: flex; min-height: 42px; align-items: center; justify-content: space-between; border-top: 1px solid #202a37; color: #8392a6; font-size: 8px; }
.table-footer > div { display: flex; gap: 5px; }
.table-footer button { display: grid; width: 23px; height: 23px; place-items: center; border: 1px solid #2b3544; border-radius: 5px; background: #141d29; color: #8392a6; font-size: 9px; }
.table-footer button:disabled { opacity: .45; }
.table-footer .page-current { border-color: #24645c; background: #153638; color: #5edbcc; }
.admin-bottom-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .9fr); gap: 13px; margin-top: 13px; }
.activity-list-panel .admin-panel-heading, .roles-panel .admin-panel-heading { margin-bottom: 10px; }
.activity-item { display: flex; min-height: 47px; align-items: center; gap: 9px; border-top: 1px solid #202a37; }
.activity-avatar { display: grid; width: 26px; height: 26px; flex: 0 0 auto; place-items: center; border-radius: 8px; font-size: 11px; }
.activity-avatar-teal { background: #173a38; color: #5dd4c6; }.activity-avatar-violet { background: #302544; color: #bb9bea; }.activity-avatar-blue { background: #1c2f4a; color: #91b7ff; }
.activity-item > span:nth-child(2) { display: grid; flex: 1; gap: 4px; }
.activity-item strong { color: #d7e0eb; font-size: 9px; font-weight: 650; }
.activity-item small { color: #8493a8; font-size: 8px; }
.activity-tag { color: #75869c; font-size: 7px; font-weight: 800; letter-spacing: .5px; }
.role-description { display: flex; align-items: center; gap: 9px; border-top: 1px solid #202a37; padding: 9px 0; }
.role-dot { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; }
.owner-dot { background: #e7ae4c; }.admin-dot { background: #a07fea; }.student-dot { background: #3acbb9; }.provider-dot { background: #6e94f3; }
.role-description > span:last-child { display: grid; gap: 3px; }
.role-description strong { color: #dce4ee; font-size: 9px; }
.role-description small { color: #8796aa; font-size: 8px; }
.roles-footnote { margin: 2px 0 0; color: #8291a6; font-size: 8px; line-height: 1.45; }
.admin-footer { display: flex; justify-content: space-between; gap: 12px; padding: 17px 1px 0; color: #748399; font-size: 8px; }
.admin-footer > span:last-child { display: flex; align-items: center; gap: 6px; color: #8b9bb0; }
.portal-toast { position: fixed; z-index: 90; right: 22px; bottom: 22px; max-width: min(360px, calc(100vw - 32px)); transform: translateY(12px); border: 1px solid #dfe5ef; border-radius: 9px; background: #fff; padding: 12px 15px; color: #33415a; box-shadow: 0 12px 35px #0c193025; font-size: 11px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.admin-portal .portal-toast { border-color: #2c3949; background: #172130; color: #dce6f1; }
.portal-toast.is-visible { transform: translateY(0); opacity: 1; }

@media (min-width: 1500px) {
  .portal-content { padding-right: 50px; padding-left: 50px; }
  .admin-content { padding-right: 46px; padding-left: 46px; }
}
@media (max-width: 1120px) {
  .portal-sidebar, .admin-sidebar { width: 220px; }
  .portal-main, .admin-main { margin-left: 220px; }
  .portal-topbar, .admin-topbar { padding-right: 25px; padding-left: 25px; }
  .portal-content, .admin-content { padding-right: 24px; padding-left: 24px; }
  .student-grid { grid-template-columns: minmax(0, 1.4fr) minmax(260px, 1fr); }
  .course-card { grid-template-columns: 110px minmax(0, 1fr); gap: 13px; }
  .course-art { height: 140px; }
  .course-art-peach { height: 125px; }
  .admin-insight-grid { grid-template-columns: minmax(0, 1.25fr) minmax(245px, .85fr); }
}
@media (max-width: 850px) {
  .portal-sidebar, .admin-sidebar { width: 215px; transform: translateX(-100%); transition: transform .22s ease; box-shadow: 15px 0 40px #0b122020; }
  .portal-sidebar.is-open, .admin-sidebar.is-open { transform: translateX(0); }
  .portal-main, .admin-main { margin-left: 0; }
  .mobile-menu-button { display: block; }
  .portal-topbar, .admin-topbar { justify-content: flex-start; gap: 15px; padding: 0 22px; }
  .portal-topbar .topbar-actions, .admin-topbar .topbar-actions { margin-left: auto; }
  .breadcrumb { font-size: 11px; }
  .student-grid { grid-template-columns: minmax(0, 1.3fr) minmax(255px, 1fr); }
  .admin-content { padding-right: 22px; padding-left: 22px; }
}
@media (max-width: 680px) {
  .portal-topbar, .admin-topbar { height: 60px; padding: 0 15px; }
  .portal-topbar .topbar-actions, .admin-topbar .topbar-actions { gap: 9px; }
  .portal-topbar .profile-name, .portal-topbar .profile-chevron, .admin-profile > span:nth-child(2), .admin-profile .profile-chevron { display: none; }
  .portal-topbar .profile-button, .admin-profile { padding: 0; }
  .portal-content { padding: 27px 16px 18px; }
  .welcome-row { align-items: flex-start; flex-direction: column; margin-bottom: 20px; }
  .welcome-row .button { min-height: 35px; }
  .welcome-row h1 { font-size: 25px; }
  .student-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .student-stat { min-height: 125px; padding: 13px; }
  .student-grid, .admin-insight-grid, .admin-bottom-grid { grid-template-columns: 1fr; }
  .student-grid { gap: 12px; }
  .panel { padding: 16px; }
  .learning-panel { padding: 16px 14px; }
  .course-card { grid-template-columns: 95px minmax(0, 1fr); gap: 11px; }
  .course-art { height: 132px; padding: 10px; }
  .course-art-peach { height: 124px; }
  .course-meta { align-items: flex-start; flex-direction: column; }
  .course-details h3 { font-size: 11px; }
  .course-details > p { font-size: 9px; }
  .text-link { font-size: 9px; }
  .student-side-column { grid-template-columns: 1fr; }
  .activity-panel { margin-top: 12px; }
  .activity-chart { height: 125px; }
  .chart-bars { gap: 6px; }
  .bar { width: 45%; }
  .portal-footer { flex-wrap: wrap; }
  .portal-footer span:nth-child(2) { display: none; }
  .admin-content { padding: 23px 15px 18px; }
  .admin-welcome { align-items: flex-start; flex-direction: column; margin-bottom: 17px; }
  .admin-welcome h1 { font-size: 24px; }
  .admin-welcome .eyebrow { flex-wrap: wrap; }
  .admin-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .admin-stat { min-height: 115px; padding: 12px; }
  .admin-stat-top { font-size: 9px; }
  .admin-panel { padding: 15px; }
  .people-panel { padding-bottom: 0; }
  .people-heading { align-items: flex-start; flex-direction: column; }
  .people-toolbar { align-items: flex-start; }
  .people-tabs { max-width: calc(100vw - 78px); gap: 14px; overflow-x: auto; }
  .people-tab { flex: 0 0 auto; }
  .filter-button { flex: 0 0 auto; }
  .filter-button span { display: none; }
  .table-footer { min-height: 39px; }
  .admin-search { width: min(260px, 55vw); }
  .admin-search kbd { display: none; }
  .admin-profile .avatar { width: 29px; height: 29px; }
  .admin-topbar .topbar-actions { gap: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
