:root {
  font-family: "IBM Plex Sans Arabic", Tahoma, sans-serif;
  color: #203247;
  background: #f5f7fa;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --navy: #102b46;
  --blue: #3478d4;
  --text-muted: #8190a1;
  --border: #e9edf2;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: #f5f7fa; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.login-screen { min-height: 100vh; display: grid; place-items: center; padding: 28px; background: radial-gradient(circle at 13% 13%, #dce9fc 0, transparent 31%), #f4f7fb; }
.login-card { width: min(100%, 440px); padding: 44px; background: white; border: 1px solid #edf0f4; border-radius: 20px; box-shadow: 0 20px 60px #1c3d6012; }
.brand-mark { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 26px; border-radius: 17px; color: white; background: var(--navy); font-size: 26px; font-weight: 700; }
.eyebrow { margin: 0 0 7px; color: #4e84cb; font-size: 12px; font-weight: 600; }
.login-card h1 { margin: 0 0 10px; color: var(--navy); font-size: 25px; }
.muted, .login-card > .muted { color: var(--text-muted); line-height: 1.8; }
.login-card > .muted { margin: 0 0 26px; font-size: 14px; }
.form-stack { display: grid; gap: 16px; }
.form-stack label { display: grid; gap: 7px; color: #46576a; font-size: 13px; font-weight: 500; }
.form-stack input, .form-stack select, .form-stack textarea { width: 100%; padding: 12px 13px; border: 1px solid #e2e8ef; border-radius: 9px; outline: none; color: #26394e; background: #fff; font-size: 14px; }
.form-stack input:focus, .form-stack select:focus, .form-stack textarea:focus { border-color: #6c9bd7; box-shadow: 0 0 0 3px #3e80d41a; }
.multi-select-field { display: grid; gap: 7px; color: #46576a; font-size: 13px; font-weight: 500; }
.form-stack[data-role-fields][hidden] { display: none; }
.multi-select-field select[hidden] { display: none; }
.multi-select-dropdown { position: relative; }
.multi-select-dropdown summary { padding: 12px 13px; border: 1px solid #e2e8ef; border-radius: 9px; color: #26394e; background: #fff; cursor: pointer; list-style: none; }
.multi-select-dropdown summary::-webkit-details-marker { display: none; }
.multi-select-dropdown summary::after { float: left; content: "▾"; color: #8392a2; }
.multi-select-dropdown[open] summary { border-color: #6c9bd7; }
.multi-select-options { position: absolute; z-index: 5; top: calc(100% + 4px); right: 0; left: 0; display: grid; gap: 2px; max-height: 220px; padding: 7px; overflow: auto; border: 1px solid #e2e8ef; border-radius: 9px; background: #fff; box-shadow: 0 8px 24px #102b4622; }
.multi-select-options label { display: flex; grid-template-columns: auto 1fr; align-items: center; gap: 9px; padding: 7px; border-radius: 6px; cursor: pointer; }
.multi-select-options label[hidden] { display: none; }
.multi-select-options label:hover { background: #f3f7fc; }
.multi-select-options input { width: auto; margin: 0; accent-color: #3478d4; }
.multi-select-field > small { color: #96a2af; font-size: 10px; font-weight: 400; line-height: 1.6; }
.button { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 16px; border: 1px solid transparent; border-radius: 8px; font-size: 13px; font-weight: 600; text-decoration: none; transition: .16s ease; }
.button:disabled { cursor: wait; opacity: .6; }
.button-primary { color: white; background: #3478d4; }
.button-primary:hover { background: #2867bd; }
.button-wide { width: 100%; min-height: 46px; margin-top: 3px; }
.button-quiet { color: #596a7d; background: white; border-color: #e3e8ef; }
.button-outline { color: #3478d4; background: white; border-color: #dbe6f2; }
.button-small { min-height: 34px; padding: 6px 12px; font-size: 12px; }
.login-footnote { margin: 20px 0 0; padding-top: 16px; border-top: 1px solid #f0f2f5; color: #96a2af; text-align: center; font-size: 12px; }
.registration-trigger { display: block; margin: 15px auto 0; }
.registration-explanation { margin: 0 0 17px; color: #7f8d9c; font-size: 12px; line-height: 1.8; }
.notice { padding: 12px 14px; border-radius: 8px; font-size: 13px; line-height: 1.7; }
.notice-error { color: #9b3838; background: #fff0f0; }
.notice-info { color: #42607d; background: #f0f6ff; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 255px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; display: flex; flex-direction: column; height: 100vh; padding: 25px 17px 18px; color: #ecf3fc; background: var(--navy); }
.brand { display: flex; align-items: center; gap: 11px; padding: 2px 10px 30px; color: white; text-decoration: none; }
.brand-mark-small { width: 42px; height: 42px; margin: 0; border-radius: 13px; color: var(--navy); background: #fff; font-size: 21px; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 17px; }
.brand small { margin-top: 2px; color: #a8bad0; font-size: 11px; }
.side-caption { padding: 0 12px 12px; color: #91a7c1; font-size: 11px; }
.main-nav { display: grid; gap: 5px; }
.nav-item { display: flex; align-items: center; gap: 13px; width: 100%; padding: 11px 13px; border: 0; border-radius: 8px; color: #c3d1e1; background: transparent; text-align: right; font-size: 13px; }
.nav-item:hover, .nav-active { color: white; background: #ffffff17; }
.nav-active { box-shadow: inset -3px 0 #6ba8f1; }
.nav-icon { display: grid; place-items: center; width: 20px; font-size: 17px; }
.sidebar-bottom { margin-top: auto; }
.support-card { display: grid; gap: 7px; margin: 15px 4px 18px; padding: 15px; border: 1px solid #ffffff1c; border-radius: 11px; background: #ffffff0b; }
.support-icon { color: #f3c76d; font-size: 19px; }
.support-card strong { font-size: 12px; }
.support-card span:last-child { color: #aebfd2; font-size: 11px; line-height: 1.7; }
.logout-button { display: flex; gap: 11px; align-items: center; width: 100%; padding: 11px 13px; border: 0; color: #c7d4e2; background: transparent; text-align: right; font-size: 13px; }
.logout-button:hover { color: #fff; }
.main-column { min-width: 0; }
.topbar { height: 74px; display: flex; align-items: center; justify-content: space-between; padding: 0 42px; border-bottom: 1px solid var(--border); background: #fff; }
.breadcrumb { display: flex; gap: 10px; align-items: center; color: #99a5b2; font-size: 12px; }
.breadcrumb strong { color: #36495d; font-weight: 600; }
.crumb-divider { color: #d0d7df; }
.profile { display: flex; gap: 11px; align-items: center; }
.profile-copy { display: grid; gap: 3px; text-align: left; }
.profile-copy strong { color: #30445a; font-size: 12px; }
.profile-copy span { color: #93a0ae; font-size: 11px; }
.avatar { display: grid; place-items: center; width: 37px; height: 37px; border-radius: 50%; color: #3478d4; background: #eaf2fd; font-weight: 600; }
.page-content { max-width: 1450px; margin: 0 auto; padding: 34px 42px 60px; }
.welcome-row, .page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.welcome-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.welcome-row h1, .page-heading h1 { margin: 0; color: #1d344c; font-size: 24px; }
.welcome-row .muted, .page-heading .muted { margin: 5px 0 0; font-size: 13px; }
.interactive-class-announcement { border-color: #c9dcf7; background: linear-gradient(110deg, #fff 45%, #f2f7ff); }
.interactive-class-heading { display: flex; align-items: center; gap: 13px; margin-bottom: 14px; }
.interactive-class-icon { display: grid; place-items: center; width: 43px; height: 43px; flex: 0 0 auto; border-radius: 12px; color: #397ed5; background: #eaf2fd; font-size: 20px; }
.interactive-class-heading .eyebrow { margin: 0 0 3px; }
.interactive-class-heading h2 { margin: 0; color: #293e54; font-size: 15px; }
.interactive-class-heading p:last-child { margin: 4px 0 0; color: #8291a1; font-size: 11px; }
.interactive-class-list { display: grid; }
.interactive-class-item { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-top: 1px solid #e8eef6; }
.interactive-class-details { display: grid; gap: 5px; }
.interactive-class-details strong { color: #30465d; font-size: 13px; }
.interactive-class-details span { color: #397ed5; font-size: 12px; font-weight: 600; }
.interactive-class-details small { color: #8796a6; font-size: 10px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 23px; }
.stat-card { position: relative; display: grid; grid-template-columns: 43px 1fr; align-items: center; column-gap: 11px; min-height: 123px; padding: 19px; border: 1px solid var(--border); border-radius: 12px; background: white; }
.stat-icon { grid-row: span 3; display: grid; place-items: center; width: 43px; height: 43px; border-radius: 12px; font-size: 19px; }
.stat-icon.blue, .mark-blue { color: #397ed5; background: #eaf2fd; }
.stat-icon.purple, .mark-purple { color: #8761c7; background: #f2edfb; }
.stat-icon.green { color: #459a77; background: #e9f6ef; }
.stat-icon.orange { color: #c8873b; background: #fff3e5; }
.stat-label { color: #7b8998; font-size: 12px; }
.stat-card strong { color: #253a50; font-size: 24px; }
.stat-foot { color: #a1acb8; font-size: 10px; }
.content-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 18px; }
.panel { min-width: 0; margin-bottom: 20px; padding: 21px; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.panel-heading h2 { margin: 0; color: #293e54; font-size: 15px; }
.panel-heading p { margin: 5px 0 0; color: #96a1ad; font-size: 11px; }
.text-button { padding: 5px; border: 0; color: #4c83c6; background: none; font-size: 11px; }
.compact-list { display: grid; }
.compact-item { display: flex; align-items: center; gap: 12px; min-height: 65px; border-top: 1px solid #f0f2f5; }
.compact-item:first-child { border-top: 0; }
.list-mark { display: grid; flex: 0 0 34px; place-items: center; width: 34px; height: 34px; border-radius: 10px; font-size: 15px; }
.item-copy { display: grid; flex: 1; gap: 5px; min-width: 0; }
.item-copy strong { overflow: hidden; color: #3d5064; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.item-copy small { color: #98a4b0; font-size: 10px; }
.status-pill { flex: 0 0 auto; padding: 5px 9px; border-radius: 20px; color: #73859a; background: #f3f5f8; font-size: 10px; }
.status-done, .status-submitted { color: #3d8a69; background: #eaf6ef; }
.status-pending { color: #8a6d1c; background: #fff5d8; }
.status-reviewing { color: #5f74d8; background: #eef2ff; }
.status-evaluated { color: #2d6a99; background: #edf7ff; }
.status-graded { color: #2e7d67; background: #eafaf3; }
.empty-state { display: grid; justify-items: center; gap: 7px; padding: 27px 10px; color: #a2adba; text-align: center; font-size: 12px; }
.empty-state span { color: #9bb9dc; font-size: 22px; }
.empty-state p { margin: 0; }
.entity-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.user-tabs { display: flex; gap: 8px; margin: 0 0 17px; border-bottom: 1px solid #e9edf2; }
.user-tab { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border: 0; border-bottom: 2px solid transparent; color: #77889a; background: transparent; font: inherit; font-size: 12px; cursor: pointer; }
.user-tab span { min-width: 22px; padding: 3px 6px; border-radius: 12px; color: #74859a; background: #f1f4f7; font-size: 10px; }
.user-tab-active { border-bottom-color: #3478d4; color: #3478d4; font-weight: 700; }
.user-tab-active span { color: #3478d4; background: #eaf2fd; }
.user-filters { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(180px, 1fr); gap: 12px; margin-bottom: 16px; }
.user-filters label { display: grid; gap: 7px; color: #718093; font-size: 11px; }
.user-filters input, .user-filters select { width: 100%; min-height: 39px; padding: 8px 11px; border: 1px solid #e2e7ed; border-radius: 8px; color: #3c5065; background: #fff; font: inherit; font-size: 12px; }
.user-accounts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.user-account-card { align-content: flex-start; }
.account-inactive { border-color: #efe2c1; background: #fffdf8; }
.account-select, .account-bulk-actions > label { display: inline-flex; align-items: center; gap: 7px; color: #728194; font-size: 11px; }
.account-select input, .account-bulk-actions input { width: 16px; height: 16px; margin: 0; accent-color: #3478d4; }
.account-bulk-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin: 0 0 9px; padding: 12px; border: 1px solid #edf0f4; border-radius: 9px; background: #fafbfd; }
.users-filter-count { margin: 12px 0 0; color: #8795a4; font-size: 11px; }
.users-filter-count:empty { display: none; }
.users-filter-count + .empty-state[hidden] { display: none; }
.entity-card { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 15px; border: 1px solid #edf0f4; border-radius: 10px; }
.entity-card { flex-wrap: wrap; }
.entity-symbol { display: grid; flex: 0 0 40px; place-items: center; width: 40px; height: 40px; border-radius: 11px; color: #4786d1; background: #eaf2fd; font-size: 19px; }
.entity-symbol-light { color: #459a77; background: #e9f6ef; }
.entity-symbol-purple { color: #8761c7; background: #f2edfb; }
.entity-main { display: grid; flex: 1; gap: 5px; min-width: 0; }
.entity-main strong { overflow: hidden; color: #3b5065; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.entity-main span { overflow: hidden; color: #96a2af; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.request-card { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid #f0f2f5; }
.request-card:first-child { border-top: 0; }
.request-copy { display: grid; flex: 1; gap: 5px; min-width: 170px; }
.request-copy strong { color: #3b5065; font-size: 12px; }
.request-copy span { color: #96a2af; font-size: 10px; }
.request-actions { display: flex; gap: 8px; }
.form-stack select[multiple] { min-height: 74px; }
.form-stack small { color: #96a2af; font-size: 10px; font-weight: 400; }
.section-panel { margin-top: 19px; }
.assignment-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 15px; }
.assignment-card { padding: 18px; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.assignment-top { display: flex; align-items: center; justify-content: space-between; }
.assignment-card h3 { margin: 15px 0 7px; color: #30475e; font-size: 15px; }
.assignment-card > p { min-height: 39px; margin: 0; color: #8996a4; font-size: 11px; line-height: 1.7; }
.assignment-meta { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 15px; padding-top: 12px; border-top: 1px solid #f0f2f5; color: #8795a4; font-size: 10px; }
.resource-link { display: inline-block; margin-top: 13px; color: #3478d4; font-size: 11px; text-decoration: none; }
.upload-control { display: inline-block; margin-top: 14px; color: #3478d4; font-size: 11px; cursor: pointer; }
.upload-control input { display: block; max-width: 100%; margin-top: 6px; color: #718093; font-size: 10px; }
.upload-notice { margin: 12px 0 0; color: #9a7748; font-size: 10px; line-height: 1.7; }
.submission-count { margin-top: 13px; color: #64835f; font-size: 11px; }
.submission-item { display: grid; gap: 9px; margin-top: 10px; padding: 12px; border: 1px solid #edf0f4; border-radius: 9px; background: #fbfcfe; }
.submission-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.submission-name { color: #40556a; font-size: 12px; font-weight: 700; }
.submission-date { color: #8996a4; font-size: 10px; }
.submission-evaluation { display: grid; gap: 10px; margin-top: 4px; padding: 13px; border: 1px solid #d9e7f7; border-radius: 9px; background: #f4f8fd; }
.evaluation-heading { display: grid; gap: 4px; }
.evaluation-heading strong { color: #304f70; font-size: 12px; }
.evaluation-heading small { color: #71859a; font-size: 10px; line-height: 1.6; }
.submission-evaluation label { display: grid; gap: 5px; color: #68798b; font-size: 10px; }
.submission-evaluation input, .submission-evaluation textarea { width: 100%; padding: 8px 10px; border: 1px solid #dfe5eb; border-radius: 7px; color: #40556a; font: inherit; }
.submission-evaluation input { max-width: 130px; }
.submission-evaluation textarea { resize: vertical; }
.submission-evaluation small { color: #8996a4; font-size: 10px; }
.student-evaluation { display: grid; gap: 5px; margin-top: 10px; padding: 10px 12px; border-radius: 8px; background: #f3f8f1; color: #526f4d; font-size: 11px; }
.student-evaluation p { margin: 0; line-height: 1.7; }
.overview-rewards { display: flex; align-items: center; gap: 12px; margin: 18px 0; padding: 14px 18px; border-color: #f1dfae; background: linear-gradient(110deg, #fffaf0, #fff); }
.rewards-trophy { display: grid; width: 42px; height: 42px; flex: 0 0 42px; place-items: center; border-radius: 12px; background: #fff0c2; color: #c08a1d; font-size: 24px; }
.overview-rewards > div, .rewards-summary > div:last-child { display: grid; flex: 1; gap: 4px; }
.overview-rewards strong { color: #765516; font-size: 14px; }
.overview-rewards small, .rewards-summary small { color: #8a7a59; font-size: 10px; }
.rewards-summary { display: flex; align-items: center; gap: 16px; border-color: #f1dfae; background: linear-gradient(110deg, #fffaf0, #fff); }
.rewards-summary > div:last-child > span { color: #8a744b; font-size: 12px; }
.rewards-summary > div:last-child > strong { color: #765516; font-size: 32px; line-height: 1.1; }
.leaderboard-row { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-top: 1px solid #edf0f4; }
.leaderboard-row:first-of-type { border-top: 0; }
.leaderboard-rank { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 50%; background: #f0f3f7; color: #64768a; font-size: 12px; font-weight: 700; }
.leaderboard-place-1 .leaderboard-rank { background: #fff0c2; color: #a97812; }
.leaderboard-place-2 .leaderboard-rank { background: #edf0f3; color: #687887; }
.leaderboard-place-3 .leaderboard-rank { background: #f8e8d9; color: #9b6740; }
.leaderboard-name { flex: 1; color: #40556a; font-size: 12px; }
.leaderboard-row > strong { color: #628254; font-size: 11px; }
.leaderboard-self { margin-inline: -8px; padding-inline: 12px; border-radius: 8px; background: #f5f9f2; }
.rewards-rules { color: #718093; font-size: 11px; line-height: 1.8; }
.rewards-rules h2 { margin-top: 0; color: #40556a; font-size: 13px; }
.rewards-rules p { margin-bottom: 0; }
.attendance-grid { display: grid; gap: 14px; }
.attendance-card { padding: 16px; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.attendance-card .panel-heading { margin: 0 0 12px; }
.attendance-card .panel-heading h2 { margin: 0; color: #40556a; font-size: 13px; }
.attendance-card .panel-heading p { margin: 5px 0 0; color: #8996a4; font-size: 10px; }
.attendance-date-label { display: flex; align-items: center; gap: 10px; margin: 10px 0; color: #68798b; font-size: 11px; }
.attendance-date-label input, .attendance-student select { padding: 7px 9px; border: 1px solid #dfe5eb; border-radius: 7px; color: #40556a; font: inherit; }
.attendance-roster { display: grid; gap: 7px; margin: 12px 0; }
.attendance-student { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 10px; border: 1px solid #edf0f4; border-radius: 7px; color: #40556a; font-size: 11px; }
.attendance-student select { min-width: 112px; background: #fff; font-size: 10px; }
.attendance-card > .button { margin-top: 4px; }
.rewards-rules { margin-top: 16px; }
.drive-setup-steps { display: grid; gap: 12px; padding-right: 24px; color: #65778a; font-size: 12px; line-height: 1.9; }
.drive-setup-steps a { color: #3478d4; }
.drive-teacher-uid { display: grid; gap: 7px; margin: 17px 0; padding: 13px; border-radius: 9px; background: #f3f6fa; color: #65778a; font-size: 11px; }
.drive-teacher-uid code { direction: ltr; overflow-wrap: anywhere; color: #314b65; user-select: all; }
.drive-url-field { display: grid; gap: 8px; margin: 18px 0 12px; color: #617489; font-size: 11px; }
.drive-url-field input { min-height: 40px; padding: 8px 11px; border: 1px solid #e2e7ed; border-radius: 8px; direction: ltr; text-align: left; font: inherit; }
.drive-upload-dialog { width: min(95vw, 520px); height: min(82vh, 620px); padding: 22px; overflow: hidden; border: 0; border-radius: 15px; box-shadow: 0 25px 80px #102b4633; }
.drive-upload-dialog::backdrop { background: #102b4677; backdrop-filter: blur(3px); }
.drive-upload-dialog .dialog-heading { margin-bottom: 12px; }
.drive-upload-dialog iframe { display: block; width: 100%; height: calc(100% - 55px); border: 0; }
.submission-form-link { margin-top: 14px; }
.card-actions, .schedule-actions { display: flex; gap: 12px; align-items: center; margin-top: 12px; padding-top: 10px; border-top: 1px solid #f0f2f5; }
.entity-card .card-actions { flex-basis: 100%; }
.delete-action { color: #b65b5b; }
.schedule-row { display: grid; grid-template-columns: 80px 3px minmax(0, 1fr) auto; gap: 17px; align-items: center; min-height: 77px; border-top: 1px solid #f0f2f5; }
.schedule-row:first-of-type { border-top: 0; }
.schedule-row-expired .schedule-time, .schedule-row-expired .schedule-info { opacity: .58; }
.schedule-row-expired .schedule-time strong, .schedule-row-expired .schedule-info strong { text-decoration: line-through; text-decoration-thickness: 1px; }
.schedule-row-expired .schedule-line { background: #bdc5ce; }
.schedule-expired-label { color: #9a5c5c !important; font-weight: 700; }
.schedule-time { display: grid; gap: 4px; }
.schedule-time strong { color: #40556a; font-size: 13px; }
.schedule-time span, .schedule-info span { color: #99a4b0; font-size: 10px; }
.schedule-line { height: 35px; border-radius: 3px; background: #84addd; }
.schedule-info { display: grid; gap: 5px; }
.schedule-info strong { color: #3d5267; font-size: 12px; }
.calendar-list { display: grid; }
.calendar-event { display: flex; align-items: center; gap: 13px; min-height: 67px; border-top: 1px solid #f0f2f5; }
.calendar-date { color: #738498; font-size: 11px; }
.reminder-panel ul { display: grid; gap: 9px; margin: 0; padding: 0 20px 0 0; color: #52667b; font-size: 13px; line-height: 1.8; }
.reminder-panel a { color: #3478d4; font-weight: 600; }
.announcement-list { display: grid; gap: 13px; }
.student-announcement-notice { border-color: #bcd4f1; background: linear-gradient(110deg, #fff 40%, #f3f8ff); }
.unread-announcement-list { display: grid; gap: 10px; }
.unread-announcement-list article { padding: 11px 13px; border-radius: 8px; background: #fff; }
.unread-announcement-list strong { color: #385776; font-size: 13px; }
.unread-announcement-list p { margin: 5px 0 0; color: #75869a; font-size: 12px; line-height: 1.7; white-space: pre-wrap; }
.announcement-card { padding: 19px 21px; border: 1px solid #e7ecf2; border-radius: 12px; background: #fff; }
.announcement-unread { border-color: #9dbde4; box-shadow: inset -3px 0 #4b8bd9; }
.announcement-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.announcement-card-heading > div { display: grid; gap: 6px; }
.announcement-card-heading strong { color: #293e54; font-size: 15px; }
.announcement-card-heading small { color: #8795a4; font-size: 11px; }
.announcement-card > p { margin: 14px 0 0; color: #52667b; font-size: 13px; line-height: 1.9; white-space: pre-wrap; }
.attendance-summary-grid { margin-bottom: 18px; }
.attendance-history-list { display: grid; }
.attendance-history-row { display: grid; grid-template-columns: 130px minmax(120px, 1fr) minmax(100px, .8fr) auto; align-items: center; gap: 13px; min-height: 58px; border-top: 1px solid #f0f2f5; color: #718195; font-size: 12px; }
.attendance-history-row strong { color: #40556a; }
.report-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.backup-verify { display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px; border: 1px solid #e2e7ed; border-radius: 8px; color: #4c83c6; font-size: 11px; cursor: pointer; }
.backup-verify input { max-width: 180px; color: #718093; font: inherit; }
.audit-list { display: grid; }
.audit-row { display: grid; grid-template-columns: minmax(120px, .7fr) minmax(100px, .7fr) minmax(180px, 1.4fr) minmax(100px, .8fr); gap: 10px; align-items: center; padding: 11px 0; border-top: 1px solid #f0f2f5; color: #718093; font-size: 11px; }
.audit-row:first-child { border-top: 0; }
.audit-row strong { color: #3b5065; }
.audit-row small { overflow-wrap: anywhere; color: #96a2af; font-size: 10px; }
.school-logo { display: block; object-fit: contain; background: #fff; }
.school-logo-login { width: 72px; height: 72px; margin: 0 0 26px; border-radius: 17px; }
.school-logo-side { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 10px; }
.notification-list, .progress-result-list { display: grid; gap: 10px; }
.notification-card { display: flex; align-items: flex-start; gap: 13px; padding: 15px; border: 1px solid #edf0f4; border-radius: 11px; background: #fff; }
.notification-unread { border-color: #cbdcf2; background: #f8fbff; }
.notification-copy { flex: 1; min-width: 0; }
.notification-copy strong, .notification-copy small { display: block; }
.notification-copy p { margin: 5px 0; color: #68798c; font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
.notification-copy small { color: #8794a2; font-size: 10px; }
.progress-result-row { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 12px; align-items: center; padding: 13px 5px; border-top: 1px solid #edf0f4; color: #67798d; font-size: 12px; }
.progress-result-row strong { color: #30475e; }
.progress-result-row p { grid-column: 1 / -1; margin: 0; color: #557a64; }
.teacher-note-card { display: grid; grid-template-columns: auto 1fr; align-items: center; }
.teacher-note-input, .teacher-note-card > .private-note { grid-column: 1 / -1; }
.teacher-note-input { display: grid; gap: 6px; color: #64778b; font-size: 12px; }
.teacher-note-input textarea { width: 100%; padding: 10px; border: 1px solid #e2e8ef; border-radius: 8px; resize: vertical; }
.private-note { display: grid; grid-template-columns: 1fr auto; gap: 5px 12px; align-items: center; padding: 10px; border-radius: 8px; background: #f5f8fb; }
.private-note p { grid-column: 1 / -1; margin: 0; color: #435970; font-size: 12px; white-space: pre-wrap; }
.private-note small { color: #8391a0; font-size: 10px; }
.private-note .text-button { justify-self: start; }
.submission-evaluation label { display: grid; gap: 5px; color: #52667a; font-size: 11px; }
.submission-evaluation input { width: 100%; padding: 9px; border: 1px solid #e2e8ef; border-radius: 8px; }
.student-evaluation ul { margin: 8px 0; padding-inline-start: 20px; color: #53697e; font-size: 12px; }
.form-stack > label small { display: block; }
.schedule-expired-label { color: #b25858 !important; font-size: 10px; font-weight: 600; }
.role-guide { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; margin-top: 22px; color: #53677b; font-size: 12px; }
.role-dot { display: inline-block; width: 9px; height: 9px; margin-left: 6px; border-radius: 50%; }
.dot-admin { background: #8d67c9; }.dot-principal { background: #397ed5; }.dot-teacher { background: #429973; }.dot-student { background: #e4a04a; }
.form-dialog { width: min(95vw, 550px); max-height: 90vh; padding: 0; overflow: auto; border: 0; border-radius: 16px; box-shadow: 0 25px 80px #102b4633; }
.form-dialog::backdrop { background: #102b4677; backdrop-filter: blur(3px); }
.dialog-form { padding: 24px; }
.dialog-heading { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; }
.dialog-heading h2 { margin: 0; color: #243c54; font-size: 19px; }
.icon-button { width: 34px; height: 34px; border: 0; border-radius: 8px; color: #7c8996; background: #f4f6f8; font-size: 22px; }
.dialog-actions { display: flex; gap: 9px; margin-top: 18px; }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 5; padding: 12px 18px; border-radius: 9px; color: white; background: #226d4f; box-shadow: 0 8px 30px #102b4628; opacity: 0; pointer-events: none; transform: translateY(10px); transition: .2s; font-size: 12px; }
.toast-visible { opacity: 1; transform: translateY(0); }
.toast-error { background: #a74646; }
@media (max-width: 1050px) {
  .page-content { padding: 27px 25px 50px; }
  .topbar { padding: 0 25px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; z-index: 4; inset: auto 0 0; height: auto; padding: 7px 7px calc(7px + env(safe-area-inset-bottom)); }
  .brand, .side-caption, .sidebar-bottom { display: none; }
  .main-nav { display: flex; overflow-x: auto; gap: 4px; }
  .nav-item { flex: 1 0 auto; justify-content: center; gap: 5px; width: auto; padding: 8px 9px; font-size: 10px; }
  .nav-active { box-shadow: inset 0 3px #6ba8f1; }
  .nav-icon { font-size: 15px; }
  .topbar { height: 62px; padding: 0 17px; }
  .page-content { padding: 25px 16px 105px; }
  .welcome-row h1, .page-heading h1 { font-size: 20px; }
  .welcome-actions { align-items: flex-start; flex-direction: column; }
  .content-grid { grid-template-columns: 1fr; }
  .profile-copy { display: none; }
  .user-filters { grid-template-columns: 1fr; }
  .audit-row { grid-template-columns: 1fr auto; gap: 5px 10px; }
  .audit-row > :nth-child(3), .audit-row > :nth-child(4) { grid-column: 1 / -1; }
  .progress-result-row { grid-template-columns: 1fr auto; }
  .progress-result-row > :nth-child(2) { grid-column: 1; }
  .progress-result-row > :nth-child(3) { grid-column: 2; grid-row: 1 / span 2; }
}
@media (max-width: 480px) {
  .login-card { padding: 30px 23px; }
  .stat-grid { gap: 10px; }
  .stat-card { min-height: 105px; grid-template-columns: 37px 1fr; padding: 12px; column-gap: 9px; }
  .stat-icon { width: 36px; height: 36px; }
  .stat-label { font-size: 10px; }
  .page-heading { align-items: flex-start; }
  .page-heading > .button { padding: 8px 10px; white-space: nowrap; }
  .interactive-class-item { align-items: flex-start; flex-direction: column; }
  .role-guide { grid-template-columns: 1fr; }
  .schedule-row { grid-template-columns: 60px 3px minmax(0, 1fr); gap: 11px; }
  .schedule-row > .button { grid-column: 3; justify-self: start; margin-bottom: 10px; }
  .calendar-event { gap: 8px; }
  .calendar-date { font-size: 9px; }
  .attendance-history-row { grid-template-columns: 1fr auto; gap: 6px 10px; padding: 10px 0; }
  .attendance-history-row > :nth-child(2) { grid-column: 1; }
  .attendance-history-row > :nth-child(3) { grid-column: 1; }
  .attendance-history-row > :nth-child(4) { grid-column: 2; grid-row: 1 / span 3; }
}
