:root {
  color-scheme: light;
  --navy: #172238;
  --navy-2: #22324d;
  --ink: #1d2838;
  --muted: #738096;
  --line: #e5e8ee;
  --paper: #f7f8fb;
  --surface: #ffffff;
  --coral: #e57462;
  --coral-soft: #fff0ec;
  --teal: #42a99d;
  --teal-soft: #e8f6f3;
  --gold: #e7b34b;
  --shadow: 0 12px 30px rgba(24, 37, 58, .07);
  font-family: "DM Sans", system-ui, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--paper); color: var(--ink); }
button, input, select, textarea { font: inherit; }
button { border: 0; cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(229, 116, 98, .35); outline-offset: 2px; }

.app-shell { display: flex; min-height: 100vh; }
.sidebar { width: 258px; flex: 0 0 258px; display: flex; flex-direction: column; background: var(--navy); color: #fff; padding: 25px 14px 15px; }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 11px 27px; }
.brand-mark { width: 35px; height: 35px; display: grid; place-items: center; background: var(--coral); color: #fff; font-size: 23px; font-weight: 700; transform: rotate(-7deg); border-radius: 10px 4px 10px 4px; }
.brand-mark span { transform: rotate(7deg); }
.brand strong, .brand span { display: block; }
.brand strong { font-size: 14px; letter-spacing: -.2px; }
.brand span { margin-top: 3px; color: #aab5c7; font-size: 11px; }
.role-switcher { display: flex; gap: 4px; padding: 4px; margin: 0 3px 24px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.05); border-radius: 9px; }
.role-button { min-height: 29px; padding: 0 7px; flex: 1; border-radius: 6px; background: transparent; color: #8e9bb0; font-size: 10px; }
.role-button.is-active { background: #fff; color: var(--navy); font-weight: 700; }
.main-nav { display: grid; gap: 5px; }
.nav-item, .support-link { width: 100%; min-height: 46px; display: flex; align-items: center; gap: 12px; padding: 0 12px; color: #aab5c7; background: transparent; border-radius: 9px; text-align: left; font-size: 13px; transition: background .2s, color .2s; }
.nav-item:hover, .support-link:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav-item.is-active { color: #fff; background: rgba(255,255,255,.13); box-shadow: inset 3px 0 var(--coral); }
.nav-icon { width: 18px; color: #91a0b6; font-size: 17px; text-align: center; }
.nav-item.is-active .nav-icon { color: var(--coral); }
.nav-count { min-width: 19px; height: 19px; display: grid; place-items: center; margin-left: auto; border-radius: 50%; background: #31415d; color: #dfe5ef; font-size: 10px; }
.nav-count--coral { background: var(--coral); color: #fff; }
.sidebar-footer { margin-top: auto; }
.support-link { margin-bottom: 18px; font-size: 12px; }
.support-link span:first-child { width: 20px; height: 20px; display: grid; place-items: center; border: 1px solid #66758c; border-radius: 50%; }
.mini-profile { display: flex; align-items: center; gap: 9px; padding: 14px 9px 0; border-top: 1px solid rgba(255,255,255,.1); }
.mini-profile strong, .mini-profile span { display: block; }
.mini-profile strong { max-width: 120px; overflow: hidden; color: #fff; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.mini-profile span { margin-top: 3px; color: #91a0b6; font-size: 10px; }
.more-button { margin-left: auto; color: #8e9bb0; background: transparent; letter-spacing: 2px; }

.page-wrap { min-width: 0; flex: 1; }
.topbar { height: 76px; display: flex; align-items: center; justify-content: space-between; padding: 0 5.2%; border-bottom: 1px solid var(--line); background: var(--surface); }
.breadcrumbs { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; }
.breadcrumbs b { color: #bbc2cc; font-weight: 400; }
.breadcrumbs strong { color: var(--ink); font-size: 13px; }
.top-actions { display: flex; align-items: center; gap: 18px; }
.icon-button, .menu-toggle { position: relative; background: transparent; color: var(--muted); }
.icon-button { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; font-size: 19px; }
.notification-button i { position: absolute; top: 5px; right: 5px; width: 6px; height: 6px; border: 1px solid #fff; border-radius: 50%; background: var(--coral); }
.profile-button { display: flex; align-items: center; gap: 9px; background: transparent; text-align: left; }
.avatar { width: 35px; height: 35px; display: grid; place-items: center; flex: none; border-radius: 50%; background: #f5d3c9; color: #a75143; font-size: 11px; font-weight: 700; }
.avatar--small { width: 29px; height: 29px; }
.profile-copy strong, .profile-copy small { display: block; }
.profile-copy strong { color: var(--ink); font-size: 11px; }
.profile-copy small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.chevron { color: #99a3b2; font-size: 18px; }
.menu-toggle { display: none; font-size: 22px; }

.main-content { max-width: 1180px; margin: 0 auto; padding: 43px 5.2% 65px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 29px; }
.eyebrow { margin: 0 0 8px; color: var(--coral); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 8px; font-family: Newsreader, Georgia, serif; color: var(--navy); font-size: clamp(29px, 4vw, 40px); font-weight: 600; letter-spacing: -.7px; }
h2 { margin-bottom: 4px; color: var(--navy); font-size: 17px; letter-spacing: -.2px; }
h3 { margin-bottom: 0; color: var(--ink); font-size: 13px; }
.subtitle { margin: 0; color: var(--muted); font-size: 13px; }
.date-label { padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: var(--surface); font-size: 11px; }
.date-label strong { color: var(--ink); }

.card { border: 1px solid var(--line); border-radius: 13px; background: var(--surface); box-shadow: var(--shadow); }
.dashboard-grid { display: grid; grid-template-columns: 1.42fr 1fr; gap: 18px; }
.next-card { position: relative; min-height: 192px; padding: 23px 24px; overflow: hidden; background: var(--navy); color: #fff; }
.next-card:after { content: ""; position: absolute; right: -36px; bottom: -75px; width: 190px; height: 190px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; box-shadow: 0 0 0 22px rgba(255,255,255,.025), 0 0 0 43px rgba(255,255,255,.02); }
.card-kicker { margin: 0 0 18px; color: #aab8ca; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.next-card h2 { color: #fff; font-size: 22px; }
.next-meta { display: flex; align-items: center; gap: 18px; margin-top: 14px; color: #b6c1d1; font-size: 11px; }
.next-meta strong { color: var(--coral); font-size: 14px; }
.next-card .outline-button { position: relative; z-index: 1; margin-top: 21px; }
.outline-button, .primary-button, .ghost-button { min-height: 38px; padding: 0 14px; border-radius: 7px; font-size: 11px; font-weight: 600; transition: transform .2s, background .2s; }
.outline-button { border: 1px solid rgba(255,255,255,.24); background: transparent; color: #fff; }
.outline-button:hover { background: rgba(255,255,255,.1); }
.primary-button { background: var(--coral); color: #fff; box-shadow: 0 7px 13px rgba(229,116,98,.2); }
.primary-button:hover { background: #d86452; transform: translateY(-1px); }
.ghost-button { background: #f6f7f9; color: var(--ink); }
.ghost-button:hover { background: #eaedf2; }

.actions-card { padding: 20px; }
.actions-card h2 { margin-bottom: 16px; }
.action-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.action-tile { min-height: 85px; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; padding: 11px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); text-align: left; }
.action-tile:hover { border-color: #ccd4e0; background: #fbfcfd; }
.action-symbol { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 7px; background: var(--coral-soft); color: var(--coral); font-size: 14px; }
.action-tile:nth-child(2) .action-symbol { background: var(--teal-soft); color: var(--teal); }
.action-tile:nth-child(3) .action-symbol { background: #fff7df; color: #ba8120; }
.action-tile span:last-child { font-size: 10px; line-height: 1.25; }

.section-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 33px 0 14px; }
.text-button { padding: 4px 0; background: transparent; color: var(--coral); font-size: 11px; font-weight: 700; }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.metric-card { padding: 17px 18px; }
.metric-top { display: flex; align-items: flex-start; justify-content: space-between; }
.metric-label { color: var(--muted); font-size: 11px; }
.metric-value { margin: 10px 0 4px; color: var(--navy); font-size: 27px; font-weight: 700; letter-spacing: -1px; }
.metric-note { color: var(--teal); font-size: 10px; }
.metric-note.neutral { color: var(--muted); }
.metric-icon { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 7px; background: var(--teal-soft); color: var(--teal); font-size: 14px; }
.metric-card:nth-child(2) .metric-icon { background: var(--coral-soft); color: var(--coral); }
.metric-card:nth-child(3) .metric-icon { background: #fff7df; color: #bd831f; }
.progress-line { height: 5px; margin-top: 13px; overflow: hidden; border-radius: 9px; background: #edf0f4; }
.progress-line span { display: block; height: 100%; border-radius: inherit; background: var(--teal); }
.metric-card:nth-child(2) .progress-line span { background: var(--coral); }

.lower-grid { display: grid; grid-template-columns: 1.42fr 1fr; gap: 18px; margin-top: 18px; }
.table-card, .homework-card { padding: 21px; }
.grade-table { width: 100%; border-collapse: collapse; margin-top: 12px; }
.grade-table th { padding: 0 5px 10px; border-bottom: 1px solid var(--line); color: #9ba5b4; font-size: 10px; font-weight: 500; text-align: left; }
.grade-table td { padding: 12px 5px; border-bottom: 1px solid #f0f1f4; color: var(--ink); font-size: 11px; }
.grade-table tr:last-child td { border-bottom: 0; }
.grade-table td:last-child, .grade-table th:last-child { text-align: right; }
.subject-name { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.subject-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--coral); }
.subject-dot.teal { background: var(--teal); }
.subject-dot.gold { background: var(--gold); }
.subject-dot.blue { background: #7890bf; }
.grade-pill { min-width: 23px; display: inline-grid; place-items: center; padding: 4px 6px; border-radius: 5px; background: var(--teal-soft); color: #26867d; font-weight: 700; }
.grade-pill.coral { background: var(--coral-soft); color: #c45c4c; }
.trend { color: var(--teal); font-size: 12px; }
.homework-list { display: grid; gap: 11px; margin-top: 14px; }
.hw-item { display: flex; align-items: flex-start; gap: 10px; padding-bottom: 11px; border-bottom: 1px solid #f0f1f4; }
.hw-item:last-child { padding-bottom: 0; border-bottom: 0; }
.check { width: 17px; height: 17px; margin-top: 1px; flex: none; border: 1.5px solid #bbc5d1; border-radius: 5px; background: #fff; }
.check.is-done { border-color: var(--teal); background: var(--teal); color: #fff; text-align: center; font-size: 11px; line-height: 15px; }
.hw-title { color: var(--ink); font-size: 11px; font-weight: 600; line-height: 1.35; }
.hw-sub { margin-top: 4px; color: var(--muted); font-size: 10px; }
.hw-due { margin-left: auto; color: var(--coral); font-size: 10px; white-space: nowrap; }
.hw-due.later { color: var(--muted); }

.view-header { margin-bottom: 24px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.filter-group { display: flex; gap: 5px; padding: 4px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.filter-button { padding: 7px 11px; border-radius: 5px; background: transparent; color: var(--muted); font-size: 10px; }
.filter-button.is-active { background: var(--navy); color: #fff; }
.grade-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 13px; }
.subject-card { padding: 17px; }
.subject-head { display: flex; align-items: flex-start; justify-content: space-between; }
.subject-card h3 { font-size: 14px; }
.subject-teacher { margin-top: 4px; color: var(--muted); font-size: 10px; }
.subject-score { color: var(--navy); font-size: 25px; font-weight: 700; }
.subject-score small { color: var(--muted); font-size: 10px; font-weight: 400; }
.mini-bars { display: flex; align-items: end; gap: 5px; height: 39px; margin-top: 19px; padding-bottom: 1px; border-bottom: 1px solid var(--line); }
.mini-bars span { width: 14px; min-height: 7px; border-radius: 3px 3px 0 0; background: #dcefeb; }
.mini-bars span.active { background: var(--teal); }
.mini-bars span.coral { background: #f5cbc4; }
.mini-bars span.coral.active { background: var(--coral); }

.homework-page-list { display: grid; gap: 11px; }
.homework-row { display: flex; align-items: center; gap: 14px; padding: 15px 17px; }
.homework-row .check { width: 20px; height: 20px; }
.homework-row .check.is-done { line-height: 18px; }
.homework-row-content { flex: 1; }
.homework-row-content strong { display: block; color: var(--ink); font-size: 12px; }
.homework-row-content span { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.deadline { padding: 5px 8px; border-radius: 5px; background: var(--coral-soft); color: #c45c4c; font-size: 10px; white-space: nowrap; }
.deadline.muted { background: #f1f3f6; color: var(--muted); }

.schedule-list { display: grid; gap: 10px; }
.schedule-row { display: grid; grid-template-columns: 54px 1fr 70px; align-items: center; gap: 15px; padding: 16px 19px; }
.lesson-time { color: var(--muted); font-size: 11px; font-weight: 600; }
.lesson-name { color: var(--ink); font-size: 13px; font-weight: 600; }
.lesson-teacher { margin-top: 4px; color: var(--muted); font-size: 10px; }
.lesson-room { color: var(--muted); font-size: 10px; text-align: right; }
.current-lesson { border-color: rgba(229,116,98,.5); box-shadow: 0 8px 21px rgba(229,116,98,.1); }
.current-lesson .lesson-time, .current-lesson .lesson-name { color: var(--coral); }

.attendance-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.attendance-card { padding: 17px; }
.attendance-card strong { display: block; margin-top: 9px; color: var(--navy); font-size: 25px; }
.attendance-card span { color: var(--muted); font-size: 10px; }
.attendance-card.present strong { color: var(--teal); }
.attendance-card.late strong { color: var(--gold); }
.attendance-card.absent strong { color: var(--coral); }
.attendance-progress { height: 10px; display: flex; margin-top: 16px; overflow: hidden; border-radius: 8px; background: #edf0f4; }
.attendance-progress span:nth-child(1) { width: 90%; background: var(--teal); }
.attendance-progress span:nth-child(2) { width: 5%; background: var(--gold); }
.attendance-progress span:nth-child(3) { width: 5%; background: var(--coral); }
.attendance-legend { display: flex; gap: 16px; margin-top: 12px; color: var(--muted); font-size: 10px; }
.legend-dot { display: inline-block; width: 7px; height: 7px; margin-right: 4px; border-radius: 50%; background: var(--teal); }
.legend-dot.gold { background: var(--gold); }.legend-dot.coral { background: var(--coral); }

.message-list { display: grid; gap: 10px; }
.message-row { display: flex; align-items: flex-start; gap: 12px; padding: 17px; }
.message-row.unread { border-left: 3px solid var(--coral); }
.message-row-content { flex: 1; }.message-row strong { font-size: 12px; }.message-row p { margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.4; }.message-meta { color: var(--muted); font-size: 10px; white-space: nowrap; }

.teacher-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 15px 17px; margin-bottom: 16px; }
.teacher-control-card { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 18px; margin-bottom: 16px; border-color: #d8e8e5; background: #f7fcfb; }
.teacher-control-card strong, .teacher-control-card span { display: block; }
.teacher-control-card strong { color: var(--navy); font-size: 12px; }
.teacher-control-card span { margin-top: 4px; color: var(--muted); font-size: 10px; }
.teacher-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.teacher-actions .ghost-button { min-height: 34px; padding: 0 10px; border: 1px solid #dce4e5; background: #fff; font-size: 10px; }
.permission-note { width: fit-content; margin: -10px 0 16px; padding: 7px 10px; border-radius: 6px; background: #f1f4f7; color: var(--muted); font-size: 10px; }
.teacher-toolbar select, .teacher-toolbar input, .form-field input, .form-field select { min-height: 38px; padding: 0 10px; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--ink); font-size: 11px; }
.teacher-table-wrap { overflow-x: auto; }.teacher-table { min-width: 620px; }
.teacher-table td, .teacher-table th { padding: 12px 10px; border-bottom: 1px solid #edf0f3; text-align: center; font-size: 11px; }.teacher-table th { color: var(--muted); font-size: 10px; font-weight: 500; }.teacher-table th:first-child, .teacher-table td:first-child { text-align: left; }.teacher-table input { width: 32px; height: 28px; border: 1px solid var(--line); border-radius: 5px; color: var(--ink); text-align: center; }.teacher-table input:focus { border-color: var(--coral); }.student-cell { display: flex; align-items: center; gap: 8px; font-weight: 600; }.student-number { color: var(--muted); font-size: 10px; font-weight: 400; }

.empty-state { padding: 46px 22px; text-align: center; }.empty-icon { width: 44px; height: 44px; display: grid; place-items: center; margin: 0 auto 13px; border-radius: 12px; background: var(--coral-soft); color: var(--coral); font-size: 20px; }.empty-state p { margin: 7px auto 18px; max-width: 300px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.student-admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.student-admin-card { padding: 18px; }
.student-admin-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.student-admin-head h2 { margin-bottom: 5px; }
.student-admin-meta { display: grid; gap: 0; margin: 18px 0 16px; }
.student-admin-meta div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid #f0f1f4; }
.student-admin-meta dt { color: var(--muted); font-size: 10px; }
.student-admin-meta dd { max-width: 62%; margin: 0; overflow-wrap: anywhere; color: var(--ink); font-size: 10px; font-weight: 600; text-align: right; }
.student-edit-button { width: 100%; border: 1px solid var(--line); }

.modal-backdrop { position: fixed; inset: 0; z-index: 5; display: grid; place-items: center; padding: 20px; background: rgba(23,34,56,.48); }.modal { width: min(100%, 420px); padding: 24px; border-radius: 14px; background: #fff; box-shadow: 0 25px 65px rgba(0,0,0,.2); }.modal-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 20px; }.modal h2 { font-family: Newsreader, Georgia, serif; font-size: 25px; }.close-button { width: 30px; height: 30px; border-radius: 50%; background: #f1f3f6; color: var(--muted); }.form-field { display: grid; gap: 7px; margin-bottom: 14px; }.form-field label { color: var(--muted); font-size: 10px; font-weight: 600; }.form-field input, .form-field select { width: 100%; min-height: 42px; }.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 22px; }
.toast { position: fixed; right: 22px; bottom: 22px; z-index: 10; max-width: calc(100% - 44px); padding: 12px 16px; border-radius: 8px; background: var(--navy); color: #fff; font-size: 12px; box-shadow: 0 10px 25px rgba(23,34,56,.2); opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .2s, transform .2s; }.toast.is-visible { opacity: 1; transform: translateY(0); }
.hidden { display: none !important; }

.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 28px 18px; background: radial-gradient(circle at 15% 0%, #eef7f5 0, transparent 32%), var(--paper); }
.auth-card { width: min(100%, 460px); padding: 30px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: 0 20px 60px rgba(24,37,58,.1); }
.auth-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 32px; }
.auth-brand strong, .auth-brand span:last-child { display: block; }
.auth-brand strong { color: var(--navy); font-size: 14px; }
.auth-brand span:last-child { margin-top: 4px; color: var(--muted); font-size: 10px; }
.auth-copy h1 { margin-bottom: 9px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 24px 0 20px; padding: 4px; border: 1px solid var(--line); border-radius: 9px; background: #f7f8fa; }
.auth-tab { min-height: 37px; border-radius: 6px; background: transparent; color: var(--muted); font-size: 11px; font-weight: 600; }
.auth-tab.is-active { background: var(--navy); color: #fff; }
.auth-form { display: grid; gap: 0; }
.auth-submit { width: 100%; margin-top: 5px; }
.auth-footnote { margin: 15px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; text-align: center; }
.account-badge { display: flex; align-items: center; gap: 9px; margin: 0 9px 24px; padding: 10px; border: 1px solid rgba(255,255,255,.1); border-radius: 9px; background: rgba(255,255,255,.05); }
.account-badge strong, .account-badge small { display: block; }
.account-badge strong { color: #fff; font-size: 11px; }
.account-badge small { margin-top: 3px; color: #91a0b6; font-size: 10px; }
.muted-copy { color: var(--muted); font-size: 11px; line-height: 1.5; }
.form-field textarea { width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: 7px; resize: vertical; color: var(--ink); font-size: 11px; }
.invite-banner { display: grid; gap: 4px; padding: 12px 14px; margin-bottom: 20px; border: 1px solid #cfe7e2; border-radius: 9px; background: var(--teal-soft); color: var(--navy); font-size: 11px; line-height: 1.4; }.invite-banner span { color: var(--muted); font-size: 10px; }
.settings-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 18px; align-items: start; }.settings-card { padding: 21px; }.settings-card h2 { margin-bottom: 6px; }.settings-card-head { display: flex; justify-content: space-between; gap: 12px; }.settings-symbol { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; background: var(--coral-soft); color: var(--coral); font-size: 17px; }.profile-list { display: grid; gap: 0; margin: 20px 0 0; }.profile-list div { display: flex; justify-content: space-between; gap: 14px; padding: 11px 0; border-top: 1px solid #f0f1f4; }.profile-list dt { color: var(--muted); font-size: 10px; }.profile-list dd { margin: 0; color: var(--ink); font-size: 11px; font-weight: 600; text-align: right; }.inline-form { display: flex; align-items: end; gap: 10px; margin-top: 18px; }.inline-form .form-field { flex: 1; margin-bottom: 0; }.invite-result { padding: 15px; margin-top: 18px; border: 1px solid #d8e8e5; border-radius: 9px; background: #f7fcfb; }.invite-result strong { color: var(--navy); font-size: 12px; }.invite-result p { margin: 5px 0 11px; color: var(--muted); font-size: 10px; line-height: 1.45; }.invite-result code { display: block; padding: 9px; overflow-wrap: anywhere; border-radius: 6px; background: #fff; color: var(--muted); font-size: 10px; }.invite-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 11px; }.teacher-toolbar label { display: grid; gap: 6px; min-width: 190px; }.teacher-toolbar label span { color: var(--muted); font-size: 10px; }.teacher-toolbar select { width: 100%; }.mark-stack { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }

@media (max-width: 900px) { .sidebar { width: 226px; flex-basis: 226px; }.dashboard-grid, .lower-grid { grid-template-columns: 1fr; }.next-card { min-height: 185px; } }
@media (max-width: 700px) { .sidebar { position: fixed; inset: 0 auto 0 0; z-index: 4; width: 260px; transform: translateX(-100%); transition: transform .25s; box-shadow: 12px 0 30px rgba(0,0,0,.14); }.sidebar.is-open { transform: translateX(0); }.menu-toggle { display: block; }.topbar { height: 65px; padding: 0 18px; gap: 13px; }.breadcrumbs { flex: 1; }.profile-copy, .chevron { display: none; }.top-actions { gap: 9px; }.main-content { padding: 29px 18px 50px; }.page-heading { align-items: flex-start; flex-direction: column; margin-bottom: 22px; }.date-label { align-self: stretch; }.metrics, .attendance-summary { grid-template-columns: 1fr; gap: 10px; }.metric-card { display: grid; grid-template-columns: 1fr auto; align-items: center; }.metric-value { margin: 6px 0 2px; }.metric-card .progress-line, .metric-card .metric-note { grid-column: 1 / -1; }.grade-grid { grid-template-columns: 1fr; }.toolbar, .teacher-toolbar, .teacher-control-card { align-items: stretch; flex-direction: column; }.teacher-actions { justify-content: stretch; }.teacher-actions .ghost-button { flex: 1; }.filter-group { overflow-x: auto; }.filter-button { white-space: nowrap; }.schedule-row { grid-template-columns: 48px 1fr auto; gap: 10px; padding: 14px; }.lesson-room { font-size: 9px; }.action-list { gap: 6px; }.action-tile { min-height: 80px; padding: 9px; }.action-tile span:last-child { font-size: 9px; } }
@media (min-width: 701px) { .sidebar-backdrop { display: none; } }
@media (max-width: 700px) { .settings-grid { grid-template-columns: 1fr; }.inline-form { align-items: stretch; flex-direction: column; }.inline-form .primary-button { width: 100%; } }
@media (max-width: 700px) { .student-admin-grid { grid-template-columns: 1fr; } }
