@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Noto+Sans+Arabic:wght@400;500;600;700;800&display=swap");

:root {
  font-family: "Noto Sans Arabic", "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #202940;
  background: #fff;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --ink: #202940;
  --muted: #81899a;
  --line: #e9ecf2;
  --blue: #035ba4;
  --blue-dark: #024b88;
  --blue-soft: #eaf4fb;
  --blue-pale: #f4f9fd;
  --surface: #fff;
  --canvas: #fff;
}

* { box-sizing: border-box; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: var(--canvas);
}

button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .7; }
.hidden { display: none !important; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.brand b { font-weight: 500; color: #8b92a2; }
.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: var(--blue);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -1px;
}

.auth-layout { min-height: 100vh; display: grid; grid-template-columns: minmax(390px, .92fr) 1.08fr; background: #fff; }
.auth-brand {
  position: relative;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  overflow: hidden;
  padding: 38px clamp(36px, 6vw, 88px) 25px;
  color: #fff;
  background: var(--blue);
  isolation: isolate;
}
.auth-brand::before, .auth-brand::after {
  position: absolute;
  z-index: -1;
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 50%;
  content: "";
}
.auth-brand::before { width: 620px; height: 620px; right: -340px; bottom: -240px; }
.auth-brand::after { width: 450px; height: 450px; right: -255px; bottom: -155px; }
.brand-light { color: #fff; }
.brand-light b { color: rgb(255 255 255 / 62%); }
.brand-light .brand-mark { color: var(--blue); background: #fff; }
.auth-pitch { max-width: 470px; margin: auto 0 2vh; }
.eyebrow { color: var(--blue); font-size: 11px; font-weight: 700; letter-spacing: .01em; }
.auth-brand .eyebrow { color: #d3e8f7; }
.auth-pitch h1 { margin: 18px 0 14px; font-size: clamp(32px, 4vw, 48px); line-height: 1.42; letter-spacing: -.04em; }
.auth-pitch p { max-width: 360px; margin: 0; color: rgb(255 255 255 / 72%); font-size: 15px; line-height: 2; }
.auth-decoration { position: relative; height: 285px; max-width: 490px; margin: 8px 0 auto; }
.bubble { position: absolute; display: block; border: 1px solid rgb(255 255 255 / 18%); border-radius: 50%; }
.bubble-one { width: 194px; height: 194px; top: 20px; right: 38px; background: rgb(255 255 255 / 5%); }
.bubble-two { width: 118px; height: 118px; top: 53px; right: 76px; background: rgb(255 255 255 / 5%); }
.bubble-three { width: 50px; height: 50px; top: 26px; right: 254px; background: #4a91c6; border: 0; }
.bubble-four { width: 19px; height: 19px; top: 151px; right: 12px; background: #8fc1e4; border: 0; }
.decoration-card {
  position: absolute;
  top: 114px;
  right: 77px;
  display: flex;
  width: 280px;
  align-items: center;
  gap: 13px;
  padding: 17px;
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 16px;
  background: rgb(255 255 255 / 13%);
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 60px rgb(13 27 81 / 20%);
}
.decoration-icon { display: grid; width: 46px; height: 46px; place-items: center; border-radius: 13px; color: var(--blue); background: #fff; font-family: Georgia, serif; font-size: 19px; font-weight: 700; }
.decoration-card b, .decoration-card small { display: block; }
.decoration-card b { font-size: 12px; }
.decoration-card small { margin-top: 4px; color: rgb(255 255 255 / 67%); font-size: 10px; }
.decoration-arrow { margin-right: auto; font-size: 20px; }
.auth-copyright { color: rgb(255 255 255 / 54%); font-family: "DM Sans", sans-serif; font-size: 10px; }
.auth-panel { display: grid; place-items: center; padding: 55px 28px; }
.auth-form-wrap { width: min(100%, 410px); }
.brand-mobile { display: none; }
.auth-heading { margin: 28px 0 25px; }
.auth-heading .eyebrow { font-size: 12px; }
.auth-heading h2 { margin: 9px 0 6px; font-size: 24px; font-weight: 800; letter-spacing: -.03em; }
.auth-heading p { margin: 0; color: var(--muted); font-size: 13px; }
.auth-form { display: grid; gap: 15px; }
.field { display: grid; gap: 7px; color: #414b60; font-size: 12px; font-weight: 600; }
.field > span b { color: #df5361; }
.field input, .field select {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid #e5e8ef;
  border-radius: 9px;
  outline: 0;
  color: var(--ink);
  background: #fff;
  font-size: 12px;
  font-weight: 400;
  transition: border-color .16s, box-shadow .16s;
}
.field input::placeholder { color: #adb3c0; }
.field input:focus, .field select:focus, .search-field:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgb(3 91 164 / 10%); }
.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 17px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 700;
  transition: background .16s, border-color .16s, transform .16s;
}
.button:hover { transform: translateY(-1px); }
.button-primary { color: #fff; background: var(--blue); box-shadow: 0 5px 13px rgb(3 91 164 / 17%); }
.button-primary:hover { background: var(--blue-dark); }
.button-primary span { font-size: 17px; }
.button-wide { width: 100%; min-height: 47px; margin-top: 3px; }
.button-google { border-color: #e5e8ef; color: #3e475b; background: #fff; }
.button-google:hover, .button-outline:hover { background: var(--blue-pale); }
.google-g { color: var(--blue); font-family: "DM Sans", sans-serif; font-size: 16px; font-weight: 800; }
.auth-switch { margin: 19px 0 0; color: var(--muted); text-align: center; font-size: 12px; }
.text-button { padding: 0 4px; border: 0; color: var(--blue); background: transparent; font-size: 12px; font-weight: 700; }
.auth-terms { margin: 35px 0 0; color: #a0a6b2; text-align: center; font-size: 10px; }
.notice { margin: 12px 0 0; padding: 10px 12px; border-radius: 8px; font-size: 11px; line-height: 1.7; }
.notice-error { color: #a9333f; background: #fff0f1; }

.app-layout { min-height: 100vh; }
.sidebar {
  position: fixed;
  z-index: 20;
  inset: 0 0 0 auto;
  display: flex;
  width: 247px;
  flex-direction: column;
  padding: 24px 17px 13px;
  border-left: 1px solid #edf0f5;
  background: #fff;
}
.sidebar-brand { padding: 0 4px 26px; }
.sidebar-brand .brand-mark { width: 35px; height: 35px; border-radius: 11px; font-size: 16px; }
.workspace-switcher { display: flex; align-items: center; gap: 10px; padding: 11px 9px; border: 1px solid #eceff4; border-radius: 10px; }
.workspace-avatar, .profile-avatar { display: grid; flex: 0 0 auto; width: 33px; height: 33px; place-items: center; border-radius: 9px; color: var(--blue); background: var(--blue-soft); font-size: 12px; font-weight: 700; }
.workspace-copy, .profile-copy { display: grid; min-width: 0; gap: 3px; }
.workspace-copy small { color: #989eac; font-size: 9px; }
.workspace-copy b { overflow: hidden; color: #3a4356; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.switcher-chevron { margin-right: auto; color: #9ba2b0; }
.nav-label { margin: 25px 10px 9px; color: #a0a6b2; font-size: 10px; font-weight: 700; }
.nav-label-spaced { margin-top: 21px; }
.main-nav { display: grid; gap: 3px; }
.nav-item { display: flex; min-height: 39px; align-items: center; gap: 11px; padding: 0 10px; border: 0; border-radius: 8px; color: #727b8d; background: transparent; text-align: right; font-size: 11px; font-weight: 600; transition: .15s ease; }
.nav-item:hover { color: var(--blue); background: var(--blue-pale); }
.nav-item.active { color: var(--blue); background: var(--blue-soft); }
.nav-icon { display: grid; width: 17px; place-items: center; font-family: "DM Sans", sans-serif; font-size: 17px; }
.nav-count { display: grid; min-width: 20px; height: 20px; place-items: center; margin-right: auto; border-radius: 6px; color: var(--blue); background: var(--blue-soft); font-size: 9px; }
.sidebar-bottom { margin-top: auto; }
.upgrade-card { position: relative; overflow: hidden; padding: 14px 13px 12px; border: 1px solid #dceaf4; border-radius: 11px; background: var(--blue-pale); }
.upgrade-sparkle { display: block; margin-bottom: 6px; color: var(--blue); font-size: 17px; }
.upgrade-card b { font-size: 11px; }
.upgrade-card p { margin: 5px 0 9px; color: #80899b; font-size: 9px; line-height: 1.8; }
.upgrade-link { display: flex; width: 100%; justify-content: space-between; padding: 0; border: 0; color: var(--blue); background: none; font-size: 10px; font-weight: 700; }
.profile-button { display: flex; width: 100%; align-items: center; gap: 9px; margin-top: 12px; padding: 12px 2px 3px; border: 0; border-top: 1px solid #eff1f5; background: transparent; text-align: right; }
.profile-avatar { color: var(--blue); background: var(--blue-soft); }
.profile-copy { flex: 1; }
.profile-copy b { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.profile-copy small { overflow: hidden; color: #9da3af; font-family: "DM Sans", sans-serif; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.profile-menu-icon { color: #9299a7; font-size: 12px; letter-spacing: 1px; }
.main-area { min-height: 100vh; margin-right: 247px; }
.topbar { position: sticky; z-index: 10; top: 0; display: flex; height: 65px; align-items: center; justify-content: space-between; padding: 0 34px; border-bottom: 1px solid #ebedf2; background: rgb(255 255 255 / 94%); backdrop-filter: blur(12px); }
.breadcrumbs { display: flex; align-items: center; gap: 10px; color: #969dac; font-size: 10px; }
.breadcrumbs b { color: #414a5d; font-weight: 700; }
.crumb-separator { color: #c4c9d2; }
.topbar-actions { display: flex; align-items: center; gap: 15px; }
.today-label { color: #81899a; font-size: 10px; }
.icon-button { position: relative; display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid #eaedf2; border-radius: 9px; color: #778094; background: #fff; }
.notification-button { font-size: 16px; }
.notification-button i { position: absolute; top: 7px; right: 7px; width: 5px; height: 5px; border: 1px solid #fff; border-radius: 50%; background: #e86468; }
.button-compact { min-height: 35px; padding: 0 11px; border-radius: 7px; font-size: 10px; }
.button-compact span { font-size: 15px; }
.mobile-menu { display: none; }
.page-content { width: min(100%, 1420px); margin: 0 auto; padding: 30px 34px 42px; }
.welcome-row, .page-heading-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.welcome-row h1, .page-heading-row h1 { margin: 7px 0 4px; color: #222c43; font-size: 24px; font-weight: 800; letter-spacing: -.035em; }
.welcome-row p, .page-heading-row p { margin: 0; color: #8b92a1; font-size: 11px; }
.wave { display: inline-block; margin-right: 4px; color: var(--blue); font-size: 16px; transform: rotate(12deg); }
.date-pill { display: flex; min-height: 35px; align-items: center; gap: 9px; padding: 0 11px; border: 1px solid #e9ecf2; border-radius: 8px; color: #737c8e; background: #fff; font-size: 10px; }
.date-pill span:first-child { color: var(--blue); font-size: 14px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 25px; }
.stat-card { position: relative; min-height: 155px; overflow: hidden; padding: 16px; border: 1px solid #ebedf3; border-radius: 11px; background: #fff; }
.stat-card-primary { border-color: var(--blue); color: #fff; background: var(--blue); }
.stat-top { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; }
.stat-icon { display: grid; width: 31px; height: 31px; place-items: center; border-radius: 9px; color: var(--blue); background: var(--blue-soft); font-family: "DM Sans", sans-serif; font-size: 17px; }
.stat-icon-lilac, .stat-icon-peach, .stat-icon-yellow { color: var(--blue); background: var(--blue-soft); }
.stat-card-primary .stat-icon { color: #fff; background: rgb(255 255 255 / 18%); }
.stat-period { color: #a2a8b5; font-size: 9px; }
.stat-card-primary .stat-period { color: rgb(255 255 255 / 72%); }
.stat-value { position: relative; z-index: 1; display: block; margin-top: 14px; color: #202940; font-family: "DM Sans", sans-serif; font-size: 25px; font-weight: 700; line-height: 1; }
.stat-card-primary .stat-value, .stat-card-primary .stat-title { color: #fff; }
.stat-title { position: relative; z-index: 1; display: block; margin-top: 7px; color: #495267; font-size: 10px; font-weight: 700; }
.stat-foot { position: relative; z-index: 1; display: flex; align-items: center; gap: 5px; margin-top: 9px; color: #9aa1ae; font-size: 9px; }
.stat-card-primary .stat-foot { color: rgb(255 255 255 / 76%); }
.live-dot, .student-status i { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
.stat-watermark { position: absolute; left: 10px; bottom: -22px; color: rgb(3 91 164 / 5%); font-family: "DM Sans", sans-serif; font-size: 108px; line-height: 1; }
.stat-card-primary .stat-watermark { color: rgb(255 255 255 / 8%); }
.watermark-lilac, .watermark-peach, .watermark-yellow { color: rgb(3 91 164 / 6%); }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.48fr) minmax(280px, .92fr); gap: 15px; margin-top: 17px; }
.content-card { border: 1px solid #ebedf3; border-radius: 11px; background: #fff; }
.students-card, .schedule-card { min-height: 284px; padding: 19px; }
.card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.card-heading h2, .getting-started h2 { margin: 0; color: #273148; font-size: 13px; font-weight: 800; }
.card-heading p { margin: 5px 0 0; color: #969dab; font-size: 9px; }
.text-link { padding: 0; border: 0; color: var(--blue); background: none; font-size: 9px; font-weight: 700; white-space: nowrap; }
.text-link span, .button-outline span { margin-right: 5px; font-size: 14px; }
.student-list-head, .student-row { display: grid; grid-template-columns: minmax(115px, 1.55fr) minmax(65px, .9fr) minmax(53px, .6fr) minmax(50px, .6fr); align-items: center; gap: 8px; }
.student-list-head { margin: 24px 0 5px; padding: 0 7px 9px; border-bottom: 1px solid #f0f1f5; color: #a2a8b4; font-size: 8px; }
.student-row { min-height: 50px; padding: 6px 7px; border-bottom: 1px solid #f3f4f7; }
.student-row:last-child { border-bottom: 0; }
.student-row-compact { min-height: 45px; }
.student-avatar { display: grid; width: 30px; height: 30px; flex: 0 0 auto; place-items: center; border-radius: 9px; color: var(--blue); background: var(--blue-soft); font-family: "DM Sans", sans-serif; font-size: 10px; font-weight: 700; }
.student-main { display: grid; min-width: 0; gap: 2px; }
.student-main b { overflow: hidden; color: #424a5d; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.student-main small { overflow: hidden; color: #a0a6b1; font-family: "DM Sans", sans-serif; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.student-language { overflow: hidden; color: #7d8595; font-family: "DM Sans", sans-serif; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.level-badge { width: fit-content; padding: 4px 7px; border-radius: 5px; color: var(--blue); background: var(--blue-soft); font-family: "DM Sans", sans-serif; font-size: 8px; font-weight: 700; }
.student-status { display: flex; align-items: center; gap: 5px; color: var(--blue); font-size: 8px; }
.student-status i { width: 5px; height: 5px; }
.calendar-heading-icon { display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid #edf0f4; border-radius: 8px; color: var(--blue); font-size: 14px; }
.empty-schedule { display: flex; min-height: 195px; flex-direction: column; align-items: center; justify-content: center; padding: 14px; text-align: center; }
.empty-illustration { display: grid; width: 45px; height: 45px; place-items: center; margin-bottom: 11px; border-radius: 15px; color: var(--blue); background: var(--blue-soft); font-family: "DM Sans", sans-serif; font-size: 24px; }
.empty-schedule b, .empty-students b { color: #414b61; font-size: 10px; }
.empty-schedule p, .empty-students p { max-width: 240px; margin: 6px 0 10px; color: #a0a6b2; font-size: 9px; line-height: 1.8; }
.empty-students { display: flex; min-height: 188px; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.empty-student-icon { display: grid; width: 43px; height: 43px; place-items: center; margin-bottom: 9px; border-radius: 14px; color: var(--blue); background: var(--blue-soft); font-size: 21px; }
.getting-started { position: relative; display: flex; min-height: 113px; align-items: center; gap: 15px; overflow: hidden; margin-top: 16px; padding: 20px; background: #fff; }
.getting-started-icon { display: grid; width: 41px; height: 41px; flex: 0 0 auto; place-items: center; border-radius: 12px; color: var(--blue); background: var(--blue-soft); font-size: 20px; }
.getting-started-copy { flex: 1; }
.getting-started-copy .eyebrow { font-size: 9px; }
.getting-started h2 { margin-top: 4px; font-size: 12px; }
.getting-started p { margin: 4px 0 0; color: #939aa9; font-size: 9px; }
.button-outline { position: relative; z-index: 1; min-height: 35px; border-color: #e3e7f0; color: #4c5870; background: #fff; font-size: 9px; }
.getting-started-decoration { position: absolute; left: 21px; bottom: -22px; color: rgb(3 91 164 / 4%); font-family: Georgia, serif; font-size: 90px; font-weight: 700; }
.page-heading-row { margin-bottom: 22px; }
.page-heading-row h1 { margin-top: 6px; }
.directory-card { padding: 17px 20px; }
.directory-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 12px; }
.search-field { display: flex; width: min(100%, 330px); min-height: 39px; align-items: center; gap: 8px; padding: 0 11px; border: 1px solid #e8ebf1; border-radius: 8px; background: #fff; transition: .16s; }
.search-field span { color: #a1a8b6; font-size: 20px; }
.search-field input { width: 100%; border: 0; outline: 0; color: #434d62; background: transparent; font-size: 10px; }
.search-field input::placeholder { color: #a6acb8; }
.results-label { color: #9299a7; font-size: 9px; }
.directory-table-wrap { overflow-x: auto; }
.directory-table { min-width: 530px; }
.directory-head { display: grid; grid-template-columns: minmax(180px, 1.7fr) minmax(100px, 1fr) minmax(80px, .7fr) minmax(80px, .7fr); gap: 10px; padding: 11px 9px; border-bottom: 1px solid #eceef3; color: #989eac; font-size: 9px; }
.directory-table .student-row { grid-template-columns: minmax(180px, 1.7fr) minmax(100px, 1fr) minmax(80px, .7fr) minmax(80px, .7fr); gap: 10px; min-height: 59px; }
.directory-table .student-main { display: grid; grid-template-columns: 31px minmax(0, 1fr); align-items: center; column-gap: 9px; }
.directory-table .student-avatar { grid-row: span 2; }
.directory-table .student-main b { font-size: 10px; }
.directory-table .student-main small { font-size: 8px; }
.empty-directory { display: flex; min-height: 260px; flex-direction: column; align-items: center; justify-content: center; color: #515a6e; text-align: center; }
.empty-directory b { font-size: 12px; }
.empty-directory p { margin: 7px 0 14px; color: #939aa9; font-size: 10px; }
.empty-directory .button { min-height: 36px; }
.placeholder-card { display: flex; min-height: 360px; flex-direction: column; align-items: center; justify-content: center; padding: 25px; text-align: center; }
.placeholder-icon { display: grid; width: 54px; height: 54px; place-items: center; margin-bottom: 12px; border-radius: 17px; color: var(--blue); background: var(--blue-soft); font-size: 24px; }
.placeholder-card h2 { margin: 0; font-size: 16px; }
.placeholder-card p { max-width: 400px; margin: 8px 0 18px; color: #8c94a3; font-size: 11px; line-height: 1.9; }
.loading-state { display: flex; min-height: 160px; align-items: center; justify-content: center; gap: 9px; color: #8991a1; font-size: 10px; }
.spinner { width: 15px; height: 15px; border: 2px solid #e7eaf2; border-top-color: var(--blue); border-radius: 50%; animation: spin .75s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.modal { width: min(520px, calc(100% - 28px)); max-height: min(90vh, 720px); padding: 0; border: 0; border-radius: 15px; color: var(--ink); background: #fff; box-shadow: 0 24px 90px rgb(20 30 55 / 22%); }
.modal::backdrop { background: rgb(25 34 55 / 40%); backdrop-filter: blur(3px); }
.modal form { padding: 23px; }
.modal-heading { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 20px; }
.modal-heading h2 { margin: 6px 0 3px; font-size: 19px; }
.modal-heading p { margin: 0; color: #969dab; font-size: 10px; }
.modal-close { border-color: transparent; font-size: 23px; }
.modal .field { margin-top: 14px; }
.modal .field input, .modal .field select { min-height: 42px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.modal-actions { display: flex; justify-content: flex-start; gap: 9px; margin-top: 22px; }
.button-quiet { border-color: #e6e9ef; color: #717a8c; background: #fff; }
.toast { position: fixed; z-index: 50; right: 50%; bottom: 23px; padding: 11px 17px; border: 1px solid #cfe4f2; border-radius: 9px; color: var(--blue); background: var(--blue-pale); box-shadow: 0 10px 35px rgb(30 45 70 / 12%); font-size: 11px; opacity: 0; pointer-events: none; transform: translate(50%, 10px); transition: .2s ease; }
.toast-visible { opacity: 1; transform: translate(50%, 0); }

@media (min-width: 1500px) {
  .page-content { padding-right: 46px; padding-left: 46px; }
  .topbar { padding-right: 46px; padding-left: 46px; }
  .stat-card { min-height: 165px; padding: 19px; }
}
@media (max-width: 1100px) {
  .sidebar { width: 218px; }
  .main-area { margin-right: 218px; }
  .page-content { padding: 26px 23px 34px; }
  .topbar { padding: 0 23px; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-card { min-height: 143px; }
  .dashboard-grid { grid-template-columns: minmax(0, 1.25fr) minmax(245px, .9fr); }
}
@media (max-width: 800px) {
  .auth-layout { grid-template-columns: 1fr; }
  .auth-brand { display: none; }
  .auth-panel { min-height: 100vh; padding: 30px 22px; }
  .brand-mobile { display: inline-flex; }
  .auth-heading { margin-top: 45px; }
  .sidebar { width: 247px; box-shadow: 15px 0 35px rgb(25 35 55 / 10%); transform: translateX(105%); transition: transform .2s ease; }
  .sidebar.sidebar-open { transform: translateX(0); }
  .main-area { margin-right: 0; }
  .topbar { height: 59px; padding: 0 18px; }
  .mobile-menu { display: grid; }
  .breadcrumbs { margin-left: auto; margin-right: 10px; }
  .topbar-actions { gap: 8px; }
  .today-label { display: none; }
  .page-content { padding: 24px 18px 32px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .students-card, .schedule-card { min-height: auto; }
  .empty-schedule { min-height: 180px; }
  .student-list-head, .student-row { grid-template-columns: minmax(120px, 1.6fr) minmax(60px, .8fr) minmax(45px, .6fr) minmax(45px, .6fr); }
}
@media (max-width: 520px) {
  .page-content { padding: 21px 13px 28px; }
  .topbar { padding: 0 12px; }
  .topbar-actions { gap: 6px; }
  .notification-button { display: none; }
  .button-compact { min-height: 33px; padding: 0 8px; font-size: 9px; }
  .welcome-row { align-items: flex-start; }
  .welcome-row h1 { font-size: 20px; }
  .welcome-row p { max-width: 220px; font-size: 10px; line-height: 1.8; }
  .date-pill { min-height: 31px; gap: 5px; padding: 0 7px; font-size: 8px; white-space: nowrap; }
  .stats-grid { gap: 9px; margin-top: 20px; }
  .stat-card { min-height: 132px; padding: 12px; }
  .stat-icon { width: 28px; height: 28px; }
  .stat-period { font-size: 8px; }
  .stat-value { margin-top: 15px; font-size: 22px; }
  .stat-title { font-size: 9px; }
  .stat-foot { font-size: 8px; }
  .dashboard-grid { gap: 10px; margin-top: 11px; }
  .students-card, .schedule-card { padding: 14px 12px; }
  .card-heading h2 { font-size: 12px; }
  .card-heading p { font-size: 8px; }
  .student-list-head, .student-row { grid-template-columns: minmax(98px, 1.55fr) minmax(48px, .7fr) minmax(39px, .55fr) minmax(42px, .6fr); gap: 5px; }
  .student-list-head { padding-right: 3px; padding-left: 3px; font-size: 7px; }
  .student-row { padding-right: 3px; padding-left: 3px; }
  .student-avatar { width: 26px; height: 26px; border-radius: 8px; font-size: 8px; }
  .student-main b, .student-language { font-size: 8px; }
  .student-main small { font-size: 7px; }
  .student-status { gap: 3px; font-size: 7px; }
  .level-badge { padding: 3px 5px; font-size: 7px; }
  .getting-started { flex-wrap: wrap; gap: 10px; padding: 14px; }
  .getting-started-copy { min-width: calc(100% - 56px); }
  .getting-started .button { margin-right: 50px; }
  .page-heading-row { align-items: flex-start; }
  .page-heading-row h1 { font-size: 21px; }
  .page-heading-row p { font-size: 9px; }
  .page-heading-row > .button { min-height: 36px; padding: 0 10px; font-size: 9px; white-space: nowrap; }
  .directory-card { padding: 13px 10px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .modal form { padding: 19px; }
}
