:root {
    --ink: #202338;
    --muted: #8b91a5;
    --line: #e9ebf1;
    --paper: #fff;
    --canvas: #f5f6fa;
    --purple: #4935d7;
    --purple-dark: #34295f;
    --green: #24976b;
    --yellow: #dda92b;
    --blue: #5186d7;
    --red: #cc5863;
    --shadow: 0 5px 20px rgba(28, 35, 64, .045);
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--canvas); }
body { margin: 0; color: var(--ink); background: var(--canvas); font-family: 'DM Sans', Arial, sans-serif; font-size: 14px; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(73, 53, 215, .2); outline-offset: 2px; }

.app-shell { min-height: 100vh; }
.sidebar { position: fixed; z-index: 20; inset: 0 auto 0 0; display: flex; width: 252px; flex-direction: column; padding: 25px 16px 18px; color: #fff; background: var(--purple-dark); }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 10px 27px; }
.brand-mark { display: grid; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; border-radius: 12px; color: #fff; background: #5b45e7; font-family: 'Manrope', sans-serif; font-size: 21px; font-weight: 800; box-shadow: 0 6px 18px rgba(35, 19, 127, .2); }
.brand-text { display: block; font-family: 'Manrope', sans-serif; font-size: 16px; font-weight: 800; letter-spacing: -.4px; }
.brand-text small { display: block; max-width: 165px; overflow: hidden; margin-top: 2px; color: #c6c0de; font-family: 'DM Sans', sans-serif; font-size: 11px; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }
.main-nav { display: flex; flex: 1; flex-direction: column; gap: 5px; }
.nav-heading { margin: 0 12px 7px; color: #a9a2c6; font-size: 10px; font-weight: 700; letter-spacing: 1.15px; }
.nav-link { display: flex; min-height: 44px; align-items: center; gap: 12px; padding: 0 13px; border-radius: 10px; color: #d0cce0; font-size: 13px; font-weight: 500; transition: background .18s ease, color .18s ease; }
.nav-link:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav-link.active { color: #4737c4; background: #f0efff; box-shadow: 0 3px 10px rgba(25, 20, 73, .08); }
.nav-icon { display: inline-flex; width: 19px; height: 19px; align-items: center; justify-content: center; }
.nav-icon svg, .stat-icon svg, .quick-icon svg, .assessment-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.sidebar-bottom { margin-top: auto; }
.help-card { position: relative; margin: 0 5px 19px; padding: 17px 14px 13px; border: 1px solid rgba(255,255,255,.1); border-radius: 12px; background: rgba(255,255,255,.065); }
.help-card strong { display: block; margin: 0 0 5px; font-size: 12px; }
.help-card p { margin: 0; color: #c8c3da; font-size: 11px; line-height: 1.5; }
.help-spark { position: absolute; top: 13px; right: 13px; color: #d3baff; }
.sidebar-user { display: flex; align-items: center; gap: 10px; padding: 14px 4px 2px; border-top: 1px solid rgba(255,255,255,.13); }
.sidebar-user-text, .topbar-user { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 3px; }
.sidebar-user-text strong, .topbar-user strong { overflow: hidden; font-size: 12px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user-text small { color: #bab4d1; font-size: 10px; }
.logout-form button { width: 30px; height: 30px; border: 0; border-radius: 8px; color: #e4e0ef; background: transparent; cursor: pointer; }
.logout-form button:hover { background: rgba(255,255,255,.12); }
.avatar { display: inline-grid; width: 36px; height: 36px; flex: 0 0 36px; place-items: center; border-radius: 12px; font-size: 12px; font-weight: 700; }
.avatar-purple { color: #e8e4ff; background: #5543a1; }
.avatar-blue { color: #5345c7; background: #e6e4ff; }

.main-column { min-height: 100vh; margin-left: 252px; }
.topbar { position: sticky; z-index: 10; top: 0; display: flex; height: 72px; align-items: center; justify-content: space-between; padding: 0 38px; border-bottom: 1px solid #eceef3; background: rgba(255,255,255,.93); backdrop-filter: blur(12px); }
.global-search { display: flex; width: min(360px, 42vw); height: 39px; align-items: center; gap: 9px; padding: 0 12px; border: 1px solid #e8eaf0; border-radius: 9px; color: #9aa0b1; background: #fbfcfe; }
.global-search span { font-size: 21px; line-height: 1; }
.global-search input { width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 12px; }
.global-search input::placeholder { color: #a0a5b3; }
.topbar-right { display: flex; align-items: center; gap: 11px; }
.topbar-date { margin-right: 11px; color: #7f8496; font-size: 12px; }
.topbar-user strong { font-size: 12px; }
.topbar-user small { color: var(--muted); font-size: 10px; }
.mobile-menu { display: none; }
.content { width: min(1500px, 100%); margin: 0 auto; padding: 34px 38px 20px; }
.page-heading { display: flex; min-height: 63px; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 22px; }
.page-heading h1 { margin: 0; font-family: 'Manrope', sans-serif; font-size: 26px; font-weight: 800; letter-spacing: -.8px; }
.page-heading .muted { margin: 6px 0 0; }
.eyebrow { margin: 0 0 6px; color: #7767d9; font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.muted { color: var(--muted); }
.small-copy { margin-top: 16px; font-size: 11px; line-height: 1.6; }

.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; margin-bottom: 19px; }
.stat-grid-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat-card { min-height: 129px; padding: 18px 19px; border: 1px solid #edf0f5; border-radius: 13px; background: var(--paper); box-shadow: var(--shadow); }
.stat-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 13px; }
.stat-icon, .quick-icon { display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; border-radius: 10px; }
.icon-purple { color: #6453d2; background: #f0edff; }
.icon-green { color: #36a17a; background: #e8f8f0; }
.icon-yellow { color: #c38a19; background: #fff5dc; }
.icon-blue { color: #5483c4; background: #e9f3ff; }
.icon-red { color: #cc5863; background: #fff0f1; }
.stat-caption { color: #969bae; font-size: 9px; font-weight: 700; letter-spacing: .8px; }
.stat-card > strong { display: block; font-family: 'Manrope', sans-serif; font-size: 24px; font-weight: 800; letter-spacing: -.7px; }
.stat-card > small { display: block; margin-top: 5px; color: #9297a8; font-size: 10px; }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .85fr); gap: 17px; }
.panel { min-width: 0; margin-bottom: 17px; padding: 20px; border: 1px solid #eceef3; border-radius: 13px; background: var(--paper); box-shadow: var(--shadow); }
.panel-heading { display: flex; min-height: 34px; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.panel-heading h2 { margin: 0; font-family: 'Manrope', sans-serif; font-size: 15px; font-weight: 800; letter-spacing: -.25px; }
.panel-heading p { margin: 5px 0 0; font-size: 11px; }
.trend-pill { padding: 6px 9px; border-radius: 20px; color: #278568; background: #eaf8f1; font-size: 10px; font-weight: 600; white-space: nowrap; }
.chart-wrap { height: 230px; }
.chart-wrap canvas { width: 100%; height: 100%; }
.quick-actions { display: flex; flex-direction: column; }
.quick-actions a { display: flex; min-height: 61px; align-items: center; gap: 10px; border-top: 1px solid #f0f1f5; }
.quick-actions a:first-child { border-top: 0; }
.quick-actions a > span:nth-child(2) { display: flex; flex: 1; flex-direction: column; gap: 4px; }
.quick-actions strong { font-size: 11px; }
.quick-actions small { color: var(--muted); font-size: 10px; }
.quick-actions b { color: #9da1b0; font-size: 17px; font-weight: 400; }
.quick-icon { width: 31px; height: 31px; flex: 0 0 31px; }
.quick-icon svg { width: 16px; height: 16px; }
.notice-panel { grid-column: 1 / -1; }
.notice-row { display: flex; gap: 11px; padding: 11px 0; border-top: 1px solid #f0f1f5; }
.notice-row:first-child { border-top: 0; }
.notice-dot { width: 8px; height: 8px; flex: 0 0 8px; margin: 5px 2px 0; border-radius: 50%; background: #705ee1; }
.notice-row strong { font-size: 12px; }
.notice-row p { margin: 4px 0; color: #747b8e; font-size: 11px; line-height: 1.5; }
.notice-row small { color: #9ba0ae; font-size: 10px; }
.text-link { color: #5545cf; font-size: 11px; font-weight: 600; }
.text-link:hover { text-decoration: underline; }

.welcome-banner { display: flex; min-height: 162px; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 19px; padding: 24px 28px; overflow: hidden; border-radius: 14px; color: #fff; background: linear-gradient(112deg, #433583, #6757ce 77%, #7966de); }
.welcome-banner .eyebrow { color: #d3cbff; }
.welcome-banner h2 { margin: 5px 0 8px; font-family: 'Manrope', sans-serif; font-size: 22px; letter-spacing: -.5px; }
.welcome-banner p { max-width: 510px; margin: 0; color: #e0dcf8; font-size: 12px; line-height: 1.55; }
.button-light { display: inline-flex; align-items: center; gap: 16px; padding: 11px 15px; border: 0; border-radius: 8px; color: #4b3c9e; background: #fff; font-size: 11px; font-weight: 700; white-space: nowrap; }
.button-light:hover { background: #f2efff; }
.master-badge { padding: 9px 13px; border: 1px solid rgba(255,255,255,.3); border-radius: 25px; color: #f0edff; font-size: 10px; font-weight: 700; letter-spacing: 1px; }

.content-split { display: grid; grid-template-columns: minmax(300px, .8fr) minmax(0, 1.2fr); gap: 17px; align-items: start; }
.form-panel { padding-bottom: 22px; }
.form-stack, .form-grid { display: grid; gap: 14px; }
.form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-stack label, .form-grid label, .filter-bar label { display: flex; min-width: 0; flex-direction: column; gap: 6px; color: #555c70; font-size: 10px; font-weight: 600; }
.form-stack input, .form-stack select, .form-stack textarea, .form-grid input, .form-grid select, .form-grid textarea, .filter-bar input, .filter-bar select, .inline-form select { width: 100%; min-height: 39px; padding: 9px 11px; border: 1px solid #e5e8ef; border-radius: 7px; outline: 0; color: #33384c; background: #fff; font-size: 11px; font-weight: 400; transition: border .15s ease, box-shadow .15s ease; }
.form-stack textarea, .form-grid textarea { min-height: 84px; resize: vertical; }
.form-stack input:focus, .form-stack select:focus, .form-stack textarea:focus, .form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus, .filter-bar input:focus, .filter-bar select:focus { border-color: #9388ee; box-shadow: 0 0 0 3px rgba(73, 53, 215, .08); }
.form-stack input::placeholder, .form-grid input::placeholder { color: #b0b4c1; }
.full-width { grid-column: 1 / -1; }
.form-divider { grid-column: 1 / -1; padding-top: 3px; color: #8278c8; font-size: 10px; font-weight: 700; }
.button { display: inline-flex; min-height: 39px; align-items: center; justify-content: center; gap: 8px; padding: 0 15px; border: 1px solid transparent; border-radius: 8px; cursor: pointer; font-size: 11px; font-weight: 700; transition: transform .15s ease, background .15s ease, border .15s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { color: #fff; background: #5141d1; box-shadow: 0 4px 10px rgba(73,53,215,.15); }
.button-primary:hover { background: #4332bf; }
.button-outline { border-color: #e2e4ed; color: #4c5267; background: #fff; }
.button-outline:hover { border-color: #aaa1ed; color: #4b3bc6; background: #faf9ff; }
.button-small { min-height: 31px; padding: 0 10px; font-size: 10px; }
.button-wide { width: 100%; }

.table-wrap { width: 100%; overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; text-align: left; white-space: nowrap; }
.data-table th { padding: 10px 11px; border-bottom: 1px solid #e9ebf1; color: #969bad; font-size: 9px; font-weight: 700; letter-spacing: .45px; text-transform: uppercase; }
.data-table td { padding: 12px 11px; border-bottom: 1px solid #f0f1f5; color: #575d70; font-size: 11px; vertical-align: middle; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table td strong { display: block; color: #31364a; font-size: 11px; font-weight: 600; }
.data-table td small { display: block; margin-top: 4px; color: #959bad; font-size: 9px; }
.table-action { padding: 4px 5px; border: 0; color: #5948d0; background: transparent; cursor: pointer; font-size: 10px; font-weight: 600; }
.table-action:hover { text-decoration: underline; }
.status-badge { display: inline-flex; align-items: center; padding: 4px 8px; border-radius: 20px; font-size: 9px; font-weight: 700; }
.status-active, .status-present { color: #278368; background: #e9f7f1; }
.status-inactive, .status-absent, .status-suspended { color: #b04b57; background: #fff0f1; }
.status-late, .status-trial { color: #aa7815; background: #fff6df; }
.table-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 2px 0; font-size: 10px; }
.empty-state { display: grid; min-height: 200px; align-content: center; justify-items: center; padding: 23px; text-align: center; }
.empty-state > span { display: grid; width: 43px; height: 43px; place-items: center; margin-bottom: 9px; border-radius: 14px; color: #6656cf; background: #f2f0ff; font-size: 20px; }
.empty-state h3 { margin: 0 0 6px; font-family: 'Manrope', sans-serif; font-size: 14px; }
.empty-state p { max-width: 275px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.empty-state.compact { min-height: 105px; }
.empty-state.compact > span { display: none; }
.filter-bar { display: flex; align-items: end; gap: 12px; margin: -3px 0 15px; }
.filter-bar label { min-width: 155px; }
.assigned-class { padding: 9px 0; color: #777d90; font-size: 11px; }
.assigned-class strong { color: #3d3b5f; }
.attendance-options { display: flex; gap: 5px; }
.radio-pill { position: relative; cursor: pointer; }
.radio-pill input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.radio-pill span { display: block; padding: 6px 8px; border: 1px solid #e8eaf0; border-radius: 20px; color: #8d92a2; font-size: 9px; }
.radio-pill input:checked + span { border-color: #c6c0fa; color: #4c3bc8; background: #f1efff; font-weight: 700; }
.radio-pill input:focus-visible + span { outline: 3px solid rgba(73,53,215,.18); outline-offset: 2px; }
.score-input { width: 100px; min-height: 33px; padding: 6px 9px; border: 1px solid #e4e6ed; border-radius: 6px; color: #35394c; }
.progress-track { width: 110px; height: 6px; overflow: hidden; margin-bottom: 5px; border-radius: 5px; background: #eeeef5; }
.progress-track span { display: block; height: 100%; border-radius: inherit; background: #5c4bd2; }
.payment-history { margin-top: 6px; color: #7267c2; font-size: 9px; }
.payment-history summary { cursor: pointer; }
.payment-history small { display: block; margin-top: 5px; color: #868b9b; white-space: normal; }
.payment-inline { display: flex; min-width: 205px; flex-wrap: wrap; align-items: center; gap: 4px; }
.payment-inline input, .payment-inline select { min-height: 29px; max-width: 90px; padding: 4px 6px; border: 1px solid #e5e7ee; border-radius: 5px; color: #555b6f; background: #fff; font-size: 9px; }
.payment-inline select { max-width: 75px; }
.payment-inline input::placeholder { color: #a2a6b3; }
.assessment-list { display: flex; flex-direction: column; gap: 7px; }
.assessment-item { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid #eff0f5; border-radius: 9px; transition: border .15s ease, background .15s ease; }
.assessment-item:hover, .assessment-item.selected { border-color: #d5d0fb; background: #faf9ff; }
.assessment-icon { display: grid; width: 33px; height: 33px; flex: 0 0 33px; place-items: center; border-radius: 9px; color: #6353ce; background: #f0edff; }
.assessment-icon svg { width: 17px; height: 17px; }
.assessment-item > span:nth-child(2) { display: flex; flex: 1; flex-direction: column; gap: 4px; }
.assessment-item strong { font-size: 11px; }
.assessment-item small { color: #9398a8; font-size: 9px; }
.assessment-date { color: #51576b; font-size: 10px; text-align: right; }
.marks-panel { margin-top: 17px; }

.learning-lists { grid-template-columns: minmax(0, 1fr) minmax(280px, .78fr); margin-top: 17px; }
.assignment-list, .resource-list, .notice-list { display: flex; flex-direction: column; gap: 9px; }
.assignment-card { padding: 13px; border: 1px solid #eff0f5; border-radius: 10px; }
.assignment-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.subject-tag, .notice-category { padding: 4px 8px; border-radius: 15px; color: #5e50bf; background: #f1efff; font-size: 9px; font-weight: 700; }
.due-label { color: #8b91a2; font-size: 9px; }
.due-past { color: #bd5b5d; }
.assignment-card h3, .notice-card h3 { margin: 11px 0 5px; font-family: 'Manrope', sans-serif; font-size: 13px; }
.assignment-card p, .notice-card p { margin: 0 0 10px; color: #757b8e; font-size: 10px; line-height: 1.6; }
.assignment-card > small { color: #9398a8; font-size: 9px; }
.submission-area { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 11px; padding-top: 11px; border-top: 1px solid #f0f1f5; }
.submission-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.submission-form input { max-width: 235px; color: #858a9a; font-size: 10px; }
.submission-links { display: flex; flex-direction: column; gap: 5px; margin-top: 10px; padding-top: 9px; border-top: 1px solid #f0f1f5; }
.submission-links a { display: flex; align-items: center; gap: 8px; color: #5244bd; font-size: 10px; }
.submission-links a span { color: #3c4052; font-weight: 600; }
.submission-links a small { flex: 1; overflow: hidden; color: #9398a8; text-overflow: ellipsis; white-space: nowrap; }
.submission-links a b { font-size: 14px; }
.resource-item { display: flex; align-items: center; gap: 10px; padding: 11px 9px; border: 1px solid #eff0f5; border-radius: 9px; }
.resource-item:hover { border-color: #d8d2fb; background: #fcfbff; }
.file-icon { display: grid; width: 36px; height: 39px; flex: 0 0 36px; place-items: center; border-radius: 8px; color: #cf5d5d; background: #fff0f0; font-size: 9px; font-weight: 800; }
.resource-item > span:nth-child(2) { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 4px; }
.resource-item strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.resource-item small { overflow: hidden; color: #979bac; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.resource-item b { color: #6151d1; }
.notice-card { padding: 14px; border: 1px solid #eff0f5; border-radius: 10px; }
.notice-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #999eac; font-size: 9px; }
.notice-card p { margin-top: 8px; white-space: normal; }
.notice-card > small { color: #9ba0ad; font-size: 9px; }

.subscription-card { display: flex; align-items: center; gap: 12px; padding: 15px; border: 1px solid #efeff7; border-radius: 10px; background: #fcfbff; }
.plan-mark { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 11px; color: #5141ce; background: #efedff; font-size: 18px; }
.subscription-card strong { font-size: 12px; }
.subscription-card p { margin: 5px 0 0; color: #8a90a1; font-size: 10px; }
.plan-list { display: flex; flex-direction: column; gap: 9px; }
.plan-row { display: grid; grid-template-columns: minmax(62px, .75fr) repeat(4, minmax(58px, .7fr)) auto; align-items: end; gap: 7px; padding: 10px; border: 1px solid #f0f1f5; border-radius: 9px; }
.plan-name strong, .plan-name small { display: block; }
.plan-name strong { font-size: 11px; }
.plan-name small { margin-top: 4px; color: #9a9ead; font-size: 9px; }
.compact-label { display: flex; min-width: 0; align-items: center; gap: 4px; color: #898e9f; font-size: 9px; white-space: nowrap; }
.compact-label input { width: 100%; min-width: 0; height: 31px; padding: 5px 6px; border: 1px solid #e6e8ef; border-radius: 5px; color: #363b4e; font-size: 10px; }
.inline-form { display: flex; align-items: center; gap: 5px; }
.inline-form select { min-height: 30px; padding: 5px 7px; }
.subscription-controls { display: flex; align-items: center; gap: 5px; }
.subscription-controls select { min-height: 29px; padding: 4px 6px; border: 1px solid #e6e8ef; border-radius: 5px; color: #555b6f; background: #fff; font-size: 9px; }
.subscription-controls + small { display: block; margin-top: 5px; color: #8e93a1; font-size: 9px; }
.module-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.module-controls label { display: inline-flex; align-items: center; gap: 3px; color: #72788b; font-size: 9px; }
.module-controls input { accent-color: #5745d2; }
.app-footer { display: flex; justify-content: space-between; padding: 12px 2px 4px; color: #a2a6b3; font-size: 9px; }
.alert { margin: 0 0 17px; padding: 11px 13px; border: 1px solid transparent; border-radius: 8px; font-size: 11px; }
.alert-success { border-color: #cdeadd; color: #28785d; background: #edfaf3; }
.alert-error { border-color: #f2d4d5; color: #a84450; background: #fff4f4; }

.login-page, .setup-page { display: grid; min-height: 100vh; place-items: center; padding: 25px; background: #f4f5f9; }
.login-shell { display: grid; width: min(960px, 100%); min-height: 570px; grid-template-columns: 1fr .92fr; overflow: hidden; border: 1px solid #e8e9f0; border-radius: 19px; background: white; box-shadow: 0 22px 80px rgba(33,35,69,.11); }
.login-art { display: flex; flex-direction: column; justify-content: space-between; padding: 29px 32px; color: #fff; background: linear-gradient(150deg, #34295f, #4b3d95); }
.login-brand { display: flex; align-items: center; gap: 10px; font-family: 'Manrope', sans-serif; font-size: 16px; font-weight: 800; }
.login-brand small { display: block; margin-top: 2px; color: #c4bedc; font-family: 'DM Sans', sans-serif; font-size: 10px; font-weight: 400; }
.login-welcome { max-width: 370px; padding-bottom: 18px; }
.login-welcome .eyebrow { color: #c2b8ff; }
.login-welcome h1 { margin: 10px 0; font-family: 'Manrope', sans-serif; font-size: 33px; line-height: 1.23; letter-spacing: -1.1px; }
.login-welcome p { max-width: 315px; color: #d1cce7; font-size: 13px; line-height: 1.65; }
.login-decoration { display: flex; align-items: end; gap: 7px; height: 65px; margin-top: 22px; }
.login-decoration span { width: 40px; border-radius: 7px 7px 0 0; background: rgba(255,255,255,.2); }
.login-decoration span:nth-child(1) { height: 42%; }.login-decoration span:nth-child(2) { height: 87%; background: #8d7cf1; }.login-decoration span:nth-child(3) { height: 63%; background: rgba(255,255,255,.38); }
.login-footnote { color: #c4bedc; font-size: 10px; }
.login-form-side { display: grid; place-items: center; padding: 32px; }
.login-form { width: min(340px, 100%); }
.login-form h2, .setup-card h1 { margin: 0 0 7px; font-family: 'Manrope', sans-serif; font-size: 23px; letter-spacing: -.55px; }
.login-form > .muted, .setup-card > .muted { margin: 0 0 23px; font-size: 11px; }
.login-form label, .setup-card label { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; color: #555b6f; font-size: 10px; font-weight: 600; }
.login-form input, .setup-card input { height: 42px; padding: 0 12px; border: 1px solid #e4e6ed; border-radius: 7px; outline: 0; font-size: 12px; }
.login-form input:focus, .setup-card input:focus { border-color: #9388ee; box-shadow: 0 0 0 3px rgba(73,53,215,.08); }
.login-help { margin: 20px 0 0; color: #969bac; font-size: 10px; text-align: center; }
.login-help a { color: #5141ce; font-weight: 700; }
.setup-card { width: min(540px, 100%); padding: 30px; border: 1px solid #e8e9f0; border-radius: 15px; background: #fff; box-shadow: var(--shadow); }
.setup-card .brand-mark { margin-bottom: 16px; }
.setup-card .eyebrow { margin-bottom: 7px; }
.setup-card .form-stack { margin-top: 22px; }
.setup-card .form-divider { padding-top: 8px; border-top: 1px solid #eff0f5; }
.setup-card .alert { line-height: 1.5; }

.sidebar-overlay { display: none; }

@media (max-width: 1100px) {
    .sidebar { width: 222px; }
    .main-column { margin-left: 222px; }
    .content { padding-right: 25px; padding-left: 25px; }
    .topbar { padding-right: 25px; padding-left: 25px; }
    .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .sidebar { z-index: 40; width: 275px; transform: translateX(-102%); transition: transform .22s ease; box-shadow: 10px 0 30px rgba(15,17,40,.15); }
    .sidebar.open { transform: translateX(0); }
    .sidebar-overlay.visible { position: fixed; z-index: 30; inset: 0; display: block; background: rgba(24,24,47,.42); }
    .main-column { margin-left: 0; }
    .topbar { height: 62px; gap: 12px; padding: 0 17px; }
    .mobile-menu { display: inline-grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; border: 0; border-radius: 8px; color: #4c4772; background: #f3f2fb; cursor: pointer; }
    .global-search { width: auto; flex: 1; }
    .topbar-date, .topbar-user { display: none; }
    .topbar-right { gap: 0; }
    .content { padding: 24px 16px 16px; }
    .page-heading { align-items: flex-start; margin-bottom: 17px; }
    .page-heading h1 { font-size: 23px; }
    .page-heading > .button { align-self: center; white-space: nowrap; }
    .dashboard-grid, .content-split, .learning-lists { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .content-split > .panel, .dashboard-grid > .panel, .learning-lists > .panel { margin-bottom: 14px; }
    .notice-panel { grid-column: auto; }
    .welcome-banner { min-height: 0; flex-direction: column; align-items: flex-start; padding: 21px; }
    .welcome-banner h2 { font-size: 19px; }
    .welcome-banner .button-light { margin-top: 2px; }
    .stat-card { min-height: 115px; padding: 15px; }
    .chart-wrap { height: 190px; }
    .login-shell { min-height: 0; grid-template-columns: 1fr; }
    .login-art { min-height: 255px; padding: 23px; }
    .login-welcome { padding: 25px 0 0; }
    .login-welcome h1 { max-width: 390px; font-size: 25px; }
    .login-welcome p { margin-bottom: 0; font-size: 11px; }
    .login-decoration { display: none; }
    .login-footnote { margin-top: 20px; }
    .login-form-side { padding: 28px 24px 32px; }
}
@media (max-width: 480px) {
    .content { padding-right: 12px; padding-left: 12px; }
    .topbar { padding-right: 12px; padding-left: 12px; }
    .stat-grid, .stat-grid-three { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
    .stat-card { min-height: 106px; padding: 12px; }
    .stat-card > strong { font-size: 20px; }
    .stat-icon { width: 29px; height: 29px; }
    .stat-icon svg { width: 16px; height: 16px; }
    .form-grid { grid-template-columns: minmax(0, 1fr); }
    .full-width { grid-column: auto; }
    .filter-bar { align-items: stretch; flex-wrap: wrap; }
    .filter-bar label { min-width: calc(50% - 6px); flex: 1; }
    .attendance-options { gap: 3px; }
    .radio-pill span { padding: 6px; }
    .panel { padding: 15px 12px; }
    .page-heading .button { padding: 0 9px; font-size: 9px; }
    .plan-row { grid-template-columns: 1fr 1fr; }
    .plan-row .plan-name { grid-column: 1 / -1; }
    .module-controls { min-width: 240px; }
    .app-footer { gap: 10px; }
}
