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

:root {
  color-scheme: dark;
  --ink: #eef3ff;
  --ink-soft: #aeb9d0;
  --ink-faint: #77839b;
  --page: #0a1122;
  --surface: #111b30;
  --surface-raised: #17233b;
  --surface-soft: #1b2943;
  --line: rgba(190, 205, 236, 0.12);
  --line-strong: rgba(190, 205, 236, 0.22);
  --blue: #8ea9ff;
  --blue-bright: #b9caff;
  --blue-deep: #304cba;
  --orange: #f9a56d;
  --orange-bright: #ffc396;
  --green: #75d5a7;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.2);
  --radius: 18px;
}

:root.light-theme {
  color-scheme: light;
  --ink: #18233b;
  --ink-soft: #5a6781;
  --ink-faint: #8490a5;
  --page: #f5f7fb;
  --surface: #ffffff;
  --surface-raised: #f2f5fb;
  --surface-soft: #eaf0fc;
  --line: rgba(34, 55, 95, 0.12);
  --line-strong: rgba(34, 55, 95, 0.22);
  --blue: #4268d8;
  --blue-bright: #304cba;
  --blue-deep: #dfe7ff;
  --orange: #d86a2c;
  --orange-bright: #b94e13;
  --green: #16835a;
  --shadow: 0 22px 60px rgba(37, 62, 113, 0.11);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: "DM Sans", "Segoe UI", sans-serif;
  line-height: 1.5;
  transition: background 180ms ease, color 180ms ease;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  min-height: 100vh;
  overflow: hidden;
}

.site-header {
  position: relative;
  min-height: 470px;
  overflow: hidden;
  background:
    radial-gradient(circle at 86% 16%, rgba(90, 111, 207, 0.18), transparent 28%),
    radial-gradient(circle at 55% 110%, rgba(41, 78, 161, 0.22), transparent 35%),
    #0c172c;
}

.header-inner {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 64px));
  min-height: 470px;
  margin: 0 auto;
  padding: 30px 0 28px;
}

.header-glow {
  position: absolute;
  border: 1px solid rgba(157, 180, 255, 0.1);
  border-radius: 50%;
  transform: rotate(-20deg);
}

.header-glow-one {
  top: -260px;
  right: -140px;
  width: 690px;
  height: 690px;
}

.header-glow-two {
  top: -210px;
  right: -105px;
  width: 585px;
  height: 585px;
  border-color: rgba(157, 180, 255, 0.07);
}

.main-nav,
.nav-inner,
.section-heading,
.heading-actions,
.replacement-status-row {
  display: flex;
  align-items: center;
}

.hero-copy {
  max-width: 620px;
  padding: 70px 0 66px;
}

.section-kicker,
.card-label {
  margin: 0;
  color: var(--blue);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3,
strong {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
}

h1 {
  margin: 20px 0 18px;
  color: #f3f6ff;
  font-size: clamp(43px, 6vw, 72px);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

h1 > span {
  white-space: nowrap;
}

h1 em {
  color: #a4b9ff;
  font-style: normal;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.primary-button,
.secondary-button,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.primary-button {
  min-width: 136px;
  padding: 13px 16px;
  border: 1px solid #a6bbff;
  background: #a5baff;
  color: #152241;
}

.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-2px);
}

.primary-button:hover {
  background: #c2d0ff;
}

.main-nav {
  position: sticky;
  z-index: 5;
  top: 0;
  height: 72px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  box-shadow: 0 10px 30px rgba(5, 14, 32, 0.07);
  backdrop-filter: blur(16px);
}

.nav-inner {
  width: min(1180px, calc(100% - 64px));
  height: 100%;
  margin: 0 auto;
  gap: 38px;
}

.nav-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink-faint);
  font-size: 12px;
  font-weight: 600;
  transition: color 160ms ease;
}

.nav-tab::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--blue);
  content: "";
  opacity: 0;
  transform: scaleX(0.3);
  transition: opacity 160ms ease, transform 160ms ease;
}

.nav-tab:hover,
.nav-tab.is-active {
  color: var(--ink);
}

.nav-tab.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.nav-icon {
  color: var(--blue);
  font-size: 17px;
  font-weight: 400;
  line-height: 1;
}

.nav-badge {
  margin-left: 2px;
  padding: 3px 6px;
  border-radius: 4px;
  background: rgba(117, 213, 167, 0.12);
  color: var(--green);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.main-content {
  width: min(1180px, calc(100% - 64px));
  min-height: 680px;
  margin: 0 auto;
  padding: 76px 0 95px;
}

.tab-panel {
  animation: panel-in 240ms ease both;
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-heading {
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 29px;
}

.section-heading h2 {
  margin: 7px 0 0;
  color: var(--ink);
  font-size: clamp(27px, 3.5vw, 37px);
  font-weight: 500;
  letter-spacing: -0.055em;
}

.section-kicker {
  color: var(--blue);
}

.heading-actions {
  gap: 18px;
}

.secondary-button {
  padding: 10px 13px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink-soft);
}

.secondary-button:hover {
  border-color: var(--blue);
  color: var(--ink);
}

.updated-label {
  color: var(--ink-faint);
  font-size: 10px;
}

.updated-label strong {
  color: var(--ink-soft);
  font-weight: 600;
}

.schedule-scroll {
  overflow-x: auto;
  padding-bottom: 5px;
  scrollbar-color: var(--line-strong) transparent;
}

.schedule-table {
  display: grid;
  min-width: 820px;
  grid-template-columns: 52px 90px repeat(5, minmax(128px, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.schedule-cell {
  min-height: 48px;
  padding: 5px 6px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.schedule-cell:nth-child(7n) {
  border-right: 0;
}

.schedule-cell.is-last-row {
  border-bottom: 0;
}

.schedule-head {
  min-height: 36px;
  padding-top: 9px;
  padding-bottom: 8px;
  background: var(--surface-raised);
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
}

.schedule-head:first-child,
.schedule-head:nth-child(2) {
  color: var(--ink-faint);
  text-transform: uppercase;
}

.schedule-period {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  font-family: "Space Grotesk", sans-serif;
  font-size: 13px;
  font-weight: 600;
}

.schedule-time {
  display: flex;
  align-items: center;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}

.lesson-cell {
  padding: 2px;
  background: var(--surface);
}

.lesson-cell.is-empty {
  padding: 0;
}

.lesson-cell.has-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  align-items: stretch;
}

.lesson-card {
  display: flex;
  min-height: 0;
  flex-direction: column;
  justify-content: flex-start;
  width: 100%;
  padding: 4px 5px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.lesson-cell.has-groups .lesson-card {
  min-width: 0;
  padding-right: 3px;
  padding-left: 3px;
}

.lesson-card:hover {
  border-color: rgba(142, 169, 255, 0.24);
  background: rgba(142, 169, 255, 0.1);
  transform: translateY(-1px);
}

.lesson-card.is-current {
  border-color: rgba(117, 213, 167, 0.35);
  background: rgba(117, 213, 167, 0.09);
}

.lesson-subject {
  color: var(--ink);
  font-family: "Space Grotesk", sans-serif;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.18;
}

.lesson-teacher {
  overflow: hidden;
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 9px;
  line-height: 1.18;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lesson-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  margin-top: 3px;
  color: var(--ink-faint);
  font-size: 9px;
  line-height: 1.2;
}

.lesson-room {
  color: var(--orange);
  white-space: nowrap;
}

.lesson-room::before {
  margin-right: 4px;
  color: var(--orange);
  content: "⌂";
}

.lesson-note {
  overflow: hidden;
  color: var(--ink-faint);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notice-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.link-card .card-arrow {
  position: absolute;
  top: 22px;
  right: 23px;
  color: var(--ink-faint);
  font-size: 15px;
}

.notice-card {
  align-items: center;
  margin-bottom: 28px;
  padding: 18px 21px;
  background: linear-gradient(100deg, var(--surface) 0%, rgba(142, 169, 255, 0.07) 100%);
}

.notice-icon {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(142, 169, 255, 0.27);
  border-radius: 50%;
  color: var(--blue);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
}

.notice-card strong {
  display: block;
  margin-bottom: 3px;
  color: var(--ink);
  font-size: 13px;
}

.notice-card p {
  max-width: 620px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 11px;
}

.text-link {
  margin-left: auto;
  padding: 9px 0 9px 15px;
  color: var(--blue);
  white-space: nowrap;
}

.text-link:hover {
  color: var(--blue-bright);
}

.replacement-status-row {
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 13px;
}

.status-copy {
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}

.source-date {
  color: var(--ink-faint);
  font-size: 10px;
}

.replacement-list {
  display: grid;
  gap: 10px;
}

.replacement-day {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.replacement-day-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-raised);
}

.replacement-day-heading strong {
  color: var(--ink);
  font-size: 13px;
}

.replacement-day-heading span {
  color: var(--ink-faint);
  font-size: 10px;
}

.replacement-items {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.replacement-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  min-height: 86px;
  padding: 15px 17px;
  background: var(--surface);
}

.replacement-hour {
  display: flex;
  width: 31px;
  height: 31px;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: rgba(249, 165, 109, 0.12);
  color: var(--orange);
  font-family: "Space Grotesk", sans-serif;
  font-size: 14px;
  font-weight: 600;
}

.replacement-item strong {
  display: block;
  margin-bottom: 3px;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.3;
}

.replacement-item p,
.replacement-item small {
  margin: 0;
  color: var(--ink-faint);
  font-size: 10px;
  line-height: 1.45;
}

.replacement-item small {
  display: block;
  margin-top: 4px;
  color: var(--blue);
}

.loading-state,
.empty-state,
.error-state {
  display: grid;
  min-height: 180px;
  place-items: center;
  align-content: center;
  gap: 9px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  color: var(--ink-soft);
  font-size: 12px;
  text-align: center;
}

.loading-state {
  display: flex;
  min-height: 130px;
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid var(--line-strong);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.error-state strong,
.empty-state strong {
  color: var(--ink);
  font-family: "Space Grotesk", sans-serif;
  font-size: 14px;
}

.error-state p,
.empty-state p {
  margin: 0;
  color: var(--ink-faint);
  font-size: 11px;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 6px;
  margin-bottom: 27px;
}

.filter-pill {
  flex: 0 0 auto;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--ink-faint);
  font-size: 10px;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.filter-pill:hover,
.filter-pill.is-active {
  border-color: rgba(142, 169, 255, 0.32);
  background: rgba(142, 169, 255, 0.1);
  color: var(--blue-bright);
}

.teacher-groups {
  display: grid;
  gap: 25px;
}

.teacher-category-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line);
}

.teacher-category-heading h3 {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.teacher-category-heading span {
  color: var(--ink-faint);
  font-size: 10px;
}

.teacher-category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
}

.teacher-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 78px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  transition: border-color 160ms ease, transform 160ms ease;
}

.teacher-card:hover {
  border-color: rgba(142, 169, 255, 0.3);
  transform: translateY(-2px);
}

.teacher-avatar {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 11px;
  background: rgba(142, 169, 255, 0.13);
  color: var(--blue);
  font-family: "Space Grotesk", sans-serif;
  font-size: 11px;
  font-weight: 700;
}

.teacher-card:nth-child(3n + 2) .teacher-avatar {
  background: rgba(249, 165, 109, 0.13);
  color: var(--orange);
}

.teacher-card:nth-child(3n) .teacher-avatar {
  background: rgba(117, 213, 167, 0.12);
  color: var(--green);
}

.teacher-card strong {
  display: block;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
}

.teacher-card small {
  display: block;
  margin-top: 4px;
  color: var(--ink-faint);
  font-size: 9px;
  line-height: 1.3;
}

.teacher-count {
  color: var(--ink-faint);
  font-size: 11px;
}

.useful-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.link-card {
  position: relative;
  display: flex;
  min-height: 133px;
  align-items: flex-start;
  gap: 15px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

a.link-card:hover {
  border-color: rgba(142, 169, 255, 0.32);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.link-card-featured {
  background: linear-gradient(110deg, rgba(142, 169, 255, 0.14), var(--surface) 75%);
}

.link-card-icon {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 10px;
  background: rgba(142, 169, 255, 0.14);
  color: var(--blue);
  font-family: "Space Grotesk", sans-serif;
  font-size: 16px;
  font-weight: 600;
}

.link-card-content {
  display: block;
  padding-right: 28px;
}

.link-card-content strong {
  display: block;
  margin: 5px 0 5px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.035em;
}

.link-card-content small {
  display: block;
  color: var(--ink-faint);
  font-size: 10px;
}

.profile-dialog,
.lesson-dialog {
  position: fixed;
  margin: auto;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.35);
}

.profile-dialog {
  z-index: 13;
  width: min(520px, calc(100% - 32px));
  padding: 32px;
}

.lesson-dialog {
  z-index: 12;
  width: min(410px, calc(100% - 32px));
  padding: 29px;
}

.profile-dialog::backdrop,
.lesson-dialog::backdrop {
  background: rgba(3, 9, 20, 0.68);
  backdrop-filter: blur(4px);
}

.dialog-backdrop {
  position: fixed;
  z-index: 10;
  inset: 0;
  background: rgba(3, 9, 20, 0.68);
  backdrop-filter: blur(4px);
}

.dialog-close {
  position: absolute;
  top: 15px;
  right: 17px;
  width: 29px;
  height: 29px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink-faint);
  font-size: 20px;
  line-height: 1;
}

.dialog-close:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}

.dialog-accent {
  width: 40px;
  height: 4px;
  margin-bottom: 26px;
  border-radius: 4px;
  background: var(--orange);
}

.profile-dialog h2 {
  max-width: 370px;
  margin: 6px 0 8px;
  color: var(--ink);
  font-size: 29px;
  font-weight: 600;
  letter-spacing: -0.05em;
}

.profile-dialog-intro {
  max-width: 420px;
  margin-bottom: 25px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.6;
}

.profile-form {
  display: grid;
  gap: 20px;
}

.profile-fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.profile-fieldset legend {
  margin-bottom: 9px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.profile-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.profile-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 66px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-raised);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease;
}

.profile-option:hover,
.profile-option:focus-within {
  border-color: var(--line-strong);
  background: var(--surface-soft);
}

.profile-option input {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  accent-color: var(--blue);
}

.profile-option input:checked + span {
  color: var(--blue-bright);
}

.profile-option span {
  display: block;
}

.profile-option strong,
.profile-option small {
  display: block;
}

.profile-option strong {
  color: var(--ink);
  font-size: 12px;
}

.profile-option small {
  margin-top: 3px;
  color: var(--ink-faint);
  font-size: 10px;
}

.profile-error {
  margin: -5px 0 0;
  color: var(--orange);
  font-size: 11px;
}

.profile-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 2px;
}

.profile-dialog-actions .primary-button {
  min-width: 0;
}

.lesson-dialog h2 {
  max-width: 310px;
  margin: 6px 0 4px;
  color: var(--ink);
  font-size: 27px;
  font-weight: 600;
  letter-spacing: -0.05em;
}

.dialog-teacher {
  margin-bottom: 24px;
  color: var(--blue);
  font-size: 12px;
}

.dialog-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
}

.dialog-details > div {
  display: flex;
  align-items: flex-start;
  gap: 7px;
}

.detail-icon {
  color: var(--orange);
  font-size: 14px;
}

.dialog-details small,
.dialog-details strong {
  display: block;
}

.dialog-details small {
  margin-bottom: 3px;
  color: var(--ink-faint);
  font-size: 9px;
}

.dialog-details strong {
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 600;
}

.dialog-note {
  margin: 22px 0 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--surface-raised);
  color: var(--ink-faint);
  font-size: 10px;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .header-inner,
  .nav-inner,
  .main-content {
    width: min(100% - 40px, 700px);
  }

  .hero-copy {
    padding-top: 68px;
  }

  .teacher-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .replacement-items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 650px) {
  .site-header,
  .header-inner {
    min-height: 440px;
  }

  .header-inner,
  .nav-inner,
  .main-content {
    width: calc(100% - 32px);
  }

  .header-inner {
    padding-top: 20px;
  }

  .hero-copy {
    padding-top: 79px;
  }

  h1 {
    font-size: clamp(29px, 8vw, 52px);
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .main-nav {
    height: 63px;
  }

  .nav-inner {
    justify-content: flex-start;
    gap: 9px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .nav-inner::-webkit-scrollbar {
    display: none;
  }

  .nav-tab {
    flex: 0 0 auto;
    gap: 5px;
    font-size: 10px;
  }

  .nav-icon {
    font-size: 15px;
  }

  .nav-badge {
    display: none;
  }

  .main-content {
    padding: 51px 0 70px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
    margin-bottom: 22px;
  }

  .heading-actions {
    justify-content: space-between;
    width: 100%;
  }

  .useful-grid {
    grid-template-columns: 1fr;
  }

  .notice-card {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .notice-card .text-link {
    width: 100%;
    justify-content: flex-start;
    margin-left: 43px;
    padding: 6px 0 0;
  }

  .replacement-status-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
  }

  .filter-pills {
    justify-content: flex-start;
  }

  .teacher-category-grid,
  .replacement-items {
    grid-template-columns: 1fr;
  }

  .profile-dialog {
    padding: 24px;
  }

  .profile-options {
    grid-template-columns: 1fr;
  }

  .profile-dialog-actions {
    flex-direction: column-reverse;
  }

  .profile-dialog-actions button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
