:root {
  color-scheme: light;
  --bg: #f7f8ff;
  --surface: #ffffff;
  --surface-soft: #eef1ff;
  --surface-strong: #060a3f;
  --text: #070b3f;
  --muted: #63698d;
  --line: #e3e6ff;
  --line-strong: #c7cdfb;
  --blue: #3936ff;
  --green: #1e9f67;
  --red: #ff343d;
  --amber: #ffbc24;
  --violet: #aab5f7;
  --teal: #5451ff;
  --shadow: 0 18px 46px rgba(6, 10, 63, 0.09);
  --radius: 8px;
  --focus: 0 0 0 3px rgba(57, 54, 255, 0.2);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  letter-spacing: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
}

button,
select {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 272px minmax(0, 1fr);
}

.sidebar {
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 188, 36, 0.18), transparent 26%),
    radial-gradient(circle at 16% 8%, rgba(255, 52, 61, 0.22), transparent 23%),
    #060a3f;
  color: #f8fbfd;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: sticky;
  top: 0;
}

.brand {
  padding: 22px 20px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.brand h1 {
  margin: 0;
  font-size: 20px;
  line-height: 1.15;
}

.leasyMark {
  width: 142px;
  height: 142px;
  position: relative;
  isolation: isolate;
}

.leasyMark.compact {
  width: 76px;
  height: 76px;
  margin-bottom: 14px;
}

.leasyGlow {
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  background: var(--violet);
  opacity: 0.9;
  z-index: -1;
}

.leasyCard {
  position: absolute;
  display: grid;
  place-items: center;
  border: max(4px, 0.055em) solid var(--surface-strong);
  border-radius: 8px;
  color: #ffffff;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 8px 0 rgba(6, 10, 63, 0.1);
}

.leasyB {
  width: 44%;
  height: 44%;
  left: 23%;
  top: 8%;
  background: var(--red);
  font-size: 42px;
  z-index: 2;
}

.leasyA {
  width: 45%;
  height: 45%;
  left: 31%;
  top: 44%;
  background: var(--blue);
  font-size: 42px;
  z-index: 1;
}

.leasyC {
  width: 46%;
  height: 42%;
  left: 52%;
  top: 34%;
  background: var(--amber);
  color: #ffffff;
  font-size: 40px;
  transform: rotate(-6deg);
  z-index: 3;
}

.leasyMark.compact .leasyB,
.leasyMark.compact .leasyA {
  font-size: 23px;
}

.leasyMark.compact .leasyC {
  font-size: 22px;
}

.brand p {
  margin: 7px 0 0;
  color: rgba(248, 251, 253, 0.68);
  font-size: 13px;
}

.accountStrip {
  margin: 16px 20px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}

.accountStrip strong,
.accountStrip span {
  display: block;
}

.accountStrip strong {
  font-size: 14px;
}

.accountStrip span {
  margin-top: 4px;
  color: rgba(248, 251, 253, 0.7);
  font-size: 12px;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 12px 20px;
  flex: 1;
}

.navButton {
  width: 100%;
  min-height: 44px;
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border-radius: var(--radius);
  background: transparent;
  color: rgba(248, 251, 253, 0.78);
  text-align: left;
}

.navButton:hover,
.navButton.active {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.navButton .icon {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.1);
  color: currentColor;
}

.navButton.active .icon {
  background: var(--amber);
  color: var(--surface-strong);
}

.badge {
  min-width: 24px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  padding: 0 7px;
  border-radius: 999px;
  background: #fff1bc;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
}

.sidebarFooter {
  padding: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.topbar {
  min-height: 72px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  background: rgba(247, 248, 255, 0.93);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 5;
}

.topbar h2 {
  margin: 0;
  font-size: 23px;
  line-height: 1.2;
}

.topbar p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.topActions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.content {
  width: min(1420px, 100%);
  margin: 0 auto;
  padding: 24px;
}

.page {
  display: grid;
  gap: 18px;
}

.band {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.band,
.stat,
.classCard,
.activityItem,
.demoAccount,
.tableWrap,
.modal {
  border-color: var(--line);
}

.bandHeader,
.bandBody,
.bandFooter {
  padding: 18px;
}

.bandHeader {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
}

.bandHeader h3,
.plainHeader h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
}

.bandHeader p,
.plainHeader p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.plainHeader {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-top: 2px;
}

.grid {
  display: grid;
  gap: 14px;
}

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

.grid.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat {
  min-height: 118px;
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(170, 181, 247, 0.14), rgba(255, 255, 255, 0) 72%),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.stat span {
  color: var(--muted);
  font-size: 13px;
}

.stat strong {
  display: block;
  margin-top: 10px;
  font-size: 30px;
  line-height: 1;
}

.stat small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
}

.btn {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: var(--radius);
  background: #eef1ff;
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover {
  filter: brightness(0.98);
}

.btn.primary {
  background: var(--blue);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(57, 54, 255, 0.22);
}

.btn.success {
  background: var(--amber);
  color: var(--surface-strong);
}

.btn.danger {
  background: var(--red);
  color: #ffffff;
}

.btn.dark {
  background: #060a3f;
  color: #ffffff;
}

.btn.ghost {
  background: transparent;
  border: 1px solid var(--line-strong);
}

.btn.iconOnly {
  width: 40px;
  padding: 0;
}

.btn[disabled] {
  cursor: not-allowed;
  opacity: 0.52;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #eef2f6;
  color: #334155;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.pill.green {
  background: #fff2bf;
  color: #5c4200;
}

.pill.red {
  background: #ffe8ea;
  color: #c21621;
}

.pill.amber {
  background: #fff4d1;
  color: #7a5600;
}

.pill.blue {
  background: #ebedff;
  color: #2522c9;
}

.pill.violet {
  background: #f1edff;
  color: #5d3fb3;
}

.tableWrap {
  width: 100%;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  background: var(--surface);
}

th,
td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
  font-size: 14px;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f8f9ff;
  color: #565d92;
  font-size: 12px;
  text-transform: uppercase;
}

tr:last-child td {
  border-bottom: 0;
}

.person {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 180px;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
  color: #ffffff;
  font-weight: 800;
  background: var(--blue);
}

.avatar.student {
  background: linear-gradient(135deg, #3936ff, #aab5f7);
}

.avatar.teacher {
  background: linear-gradient(135deg, #ff343d, #3936ff);
}

.avatar.admin {
  background: linear-gradient(135deg, #060a3f, #ffbc24);
}

.avatar.director {
  background: linear-gradient(135deg, #3936ff, #ffbc24);
}

.person strong,
.person span {
  display: block;
  overflow-wrap: anywhere;
}

.person span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  color: #435160;
  font-size: 13px;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--text);
  padding: 9px 10px;
}

.field textarea {
  min-height: 84px;
  resize: vertical;
}

.formRow {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}

.formRow.three {
  grid-template-columns: 1fr 1fr auto;
}

.toolbar {
  display: flex;
  align-items: end;
  gap: 10px;
  flex-wrap: wrap;
}

.toolbar .field {
  min-width: 180px;
}

.score {
  font-size: 21px;
  font-weight: 900;
}

.score.positive {
  color: var(--green);
}

.score.negative {
  color: var(--red);
}

.score.neutral {
  color: var(--text);
}

.scoreInput {
  max-width: 112px;
}

.commentInput {
  min-width: 210px;
}

.rowActions {
  display: flex;
  gap: 7px;
  align-items: center;
  flex-wrap: wrap;
}

.classCard {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 14px;
  min-height: 184px;
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(255, 188, 36, 0.16), transparent 42%),
    #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.classCard h4 {
  margin: 0;
  font-size: 18px;
}

.classCard p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.classMeta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.activityList {
  display: grid;
  gap: 10px;
}

.activityItem {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.activityItem p {
  margin: 0;
  font-size: 14px;
}

.activityItem small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.loginPage {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 440px;
  background:
    linear-gradient(90deg, rgba(6, 10, 63, 0.9), rgba(6, 10, 63, 0.58)),
    url("./school-points-pattern.svg");
  background-size: cover;
  background-position: center;
}

.loginVisual {
  display: flex;
  align-items: flex-end;
  padding: 48px;
  color: #ffffff;
}

.loginLogoCard {
  width: 168px;
  height: 168px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #ffffff;
  margin-bottom: 22px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.22);
}

.loginPanelBrand {
  width: 118px;
  height: 118px;
  object-fit: contain;
  align-self: center;
  margin: 0 auto 20px;
}

.loginVisual h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(36px, 6vw, 76px);
  line-height: 0.98;
}

.loginVisual p {
  max-width: 640px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  line-height: 1.5;
}

.loginPanel {
  min-height: 100vh;
  background:
    radial-gradient(circle at 96% 8%, rgba(255, 188, 36, 0.18), transparent 22%),
    radial-gradient(circle at 5% 98%, rgba(170, 181, 247, 0.24), transparent 24%),
    #ffffff;
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.loginPanel h2 {
  margin: 0;
  font-size: 25px;
}

.loginPanel > p {
  margin: 8px 0 24px;
  color: var(--muted);
}

.demoAccounts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.demoAccount {
  min-height: 62px;
  padding: 10px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fbfbff;
  color: var(--text);
  text-align: left;
}

.demoAccount strong {
  display: block;
  font-size: 13px;
}

.demoAccount span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.switcher {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.switcher button {
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
}

.switcher button.active {
  background: #060a3f;
  color: #ffffff;
}

.empty {
  padding: 24px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: #ffffff;
}

.notice {
  padding: 12px;
  border-radius: var(--radius);
  border: 1px solid #ffe1a6;
  background: #fff8e8;
  color: #69470f;
  font-size: 14px;
}

.modalBackdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(23, 32, 42, 0.44);
}

.modal {
  width: min(560px, 100%);
  max-height: min(680px, calc(100vh - 36px));
  overflow: auto;
  background: #ffffff;
  border-radius: var(--radius);
  box-shadow: 0 26px 74px rgba(23, 32, 42, 0.24);
}

.modalHeader,
.modalBody,
.modalFooter {
  padding: 18px;
}

.modalHeader {
  border-bottom: 1px solid var(--line);
}

.modalHeader h3 {
  margin: 0;
  font-size: 19px;
}

.modalFooter {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  border-top: 1px solid var(--line);
}

.toastHost {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  display: grid;
  gap: 8px;
}

.toast {
  width: min(380px, calc(100vw - 36px));
  padding: 13px 14px;
  border-radius: var(--radius);
  background: #060a3f;
  color: #ffffff;
  box-shadow: var(--shadow);
  animation: toastIn 0.18s ease-out;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

.mobileNav {
  display: none;
}

.hidden {
  display: none !important;
}

@media (max-width: 1080px) {
  .grid.cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .loginVisual {
    min-height: 42vh;
  }

  .loginPanel {
    min-height: auto;
  }
}

@media (max-width: 860px) {
  .shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: none;
  }

  .mobileNav {
    display: flex;
    position: sticky;
    bottom: 0;
    z-index: 8;
    gap: 4px;
    padding: 8px;
    overflow-x: auto;
    background: #060a3f;
  }

  .mobileNav .navButton {
    min-width: 128px;
    grid-template-columns: 24px 1fr;
  }

  .mobileNav .badge {
    display: none;
  }

  .topbar {
    grid-template-columns: 1fr;
    align-items: start;
    padding: 14px;
  }

  .topActions {
    justify-content: flex-start;
  }

  .content {
    padding: 14px;
  }

  .grid.cols-2,
  .grid.cols-3,
  .grid.cols-4,
  .formRow,
  .formRow.three {
    grid-template-columns: 1fr;
  }

  .bandHeader,
  .plainHeader {
    flex-direction: column;
    align-items: stretch;
  }

  .loginVisual,
  .loginPanel {
    padding: 24px;
  }

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

@media (max-width: 520px) {
  .activityItem {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .activityItem > .pill,
  .activityItem > .rowActions {
    grid-column: 1 / -1;
  }

  .switcher {
    grid-auto-flow: row;
  }
}

/* Class-room layout inspired by the reference, adapted to Leasy English colors. */
.shell {
  grid-template-columns: 342px minmax(0, 1fr);
  background: #eef1f7;
}

.sidebar {
  background: #ffffff;
  color: var(--text);
  border-right: 1px solid #dde2ef;
  box-shadow: none;
}

.brand {
  padding: 14px 18px 8px;
  border-bottom: 0;
}

.brandTop,
.brandNameRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brandNameRow {
  margin-top: 8px;
}

.brand h1 {
  font-size: 26px;
  line-height: 1;
}

.brand p {
  color: #5f6394;
  font-size: 15px;
  margin-top: 10px;
}

.leasyMark.mini {
  width: 54px;
  height: 54px;
}

.leasyMark.mini .leasyB,
.leasyMark.mini .leasyA {
  font-size: 16px;
}

.leasyMark.mini .leasyC {
  font-size: 15px;
}

.accountStrip {
  margin: 8px 18px 14px;
  background: #f4f1ff;
  border: 0;
  color: var(--text);
}

.accountStrip span {
  color: #5f6394;
}

.nav {
  gap: 6px;
  padding: 0 14px 12px;
  flex: initial;
}

.navButton {
  color: var(--text);
  min-height: 40px;
  grid-template-columns: 28px 1fr auto;
  padding: 8px 4px;
  font-size: 19px;
  font-weight: 700;
}

.navButton .icon {
  background: transparent;
  color: var(--text);
}

.navButton:hover,
.navButton.active {
  color: var(--blue);
  background: transparent;
}

.navButton.active .icon {
  background: transparent;
  color: var(--blue);
}

.badge {
  background: var(--blue);
  color: #ffffff;
}

.classNavBlock {
  padding: 6px 18px 20px;
}

.classNavBlock h3 {
  margin: 10px 0 12px;
  color: #5f6394;
  font-size: 16px;
}

.classNavItem {
  width: 100%;
  min-height: 48px;
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  align-items: center;
  padding: 8px 4px;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  text-align: left;
}

.classNavItem:hover,
.classNavItem.active {
  background: #f4f1ff;
}

.classNavItem strong,
.classNavItem small {
  display: block;
}

.classNavItem strong {
  font-size: 18px;
}

.classNavItem small {
  color: #5f6394;
  font-size: 13px;
  margin-top: 2px;
}

.classDot {
  color: var(--blue);
  font-size: 22px;
}

.sidebarNote {
  padding: 12px;
  border-radius: 16px;
  background: #f4f1ff;
  color: #5f6394;
}

.sidebarFooter {
  display: grid;
  gap: 8px;
  padding: 16px;
  margin-top: auto;
  border-top: 1px solid #edf0f7;
}

.main {
  min-height: 100vh;
  background: #eef1f7;
  padding-bottom: 0;
}

.topbar {
  min-height: 112px;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 12px 20px;
  padding: 18px 42px 0;
  background: #ffffff;
  border-bottom: 1px solid #dde2ef;
  box-shadow: none;
}

.classTitle {
  display: flex;
  align-items: center;
  gap: 12px;
}

.classEmoji {
  font-size: 30px;
}

.topbar h2 {
  font-size: 28px;
  line-height: 1.1;
}

.topbar p {
  color: #5f6394;
  font-weight: 700;
}

.topActions {
  gap: 10px;
}

.roundBtn {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: #f0f2f8;
  color: var(--text);
  font-weight: 900;
}

.roundBtn.small {
  width: 38px;
  height: 38px;
}

.sidebarMenu {
  background: transparent;
  color: #5f6394;
}

.inviteBtn {
  background: #f2eaff;
  color: var(--blue);
}

.settingsBtn {
  border-radius: 999px;
  background: #ffffff;
  border-color: #d8deed;
}

.moduleTabs {
  grid-column: 1 / -1;
  display: flex;
  gap: 34px;
  align-items: end;
  min-height: 48px;
  overflow-x: auto;
}

.moduleTabs button {
  height: 48px;
  padding: 0;
  background: transparent;
  color: #5f6394;
  border-bottom: 3px solid transparent;
  font-weight: 900;
  font-size: 15px;
  white-space: nowrap;
}

.moduleTabs button.active {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

.content {
  width: 100%;
  padding: 0;
}

.classBoardPage {
  min-height: calc(100vh - 244px);
}

.subTabs {
  height: 54px;
  display: flex;
  justify-content: center;
  align-items: end;
  gap: 24px;
  border-bottom: 1px solid #d7ddea;
  background: #eef1f7;
}

.subTabs button {
  height: 42px;
  padding: 0 6px;
  background: transparent;
  border-bottom: 5px solid transparent;
  color: #5f6394;
  font-size: 16px;
  font-weight: 900;
}

.subTabs button.active {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

.classBoard {
  padding: 36px 32px 76px;
}

.classBoardStats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
}

.classBoardStats .stat {
  min-height: auto;
  width: auto;
  min-width: 170px;
  padding: 12px 14px;
  border: 0;
  border-radius: 18px;
  box-shadow: none;
}

.classBoardStats .stat strong {
  font-size: 26px;
}

.studentGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 70px 36px;
  align-items: start;
}

.studentTile {
  position: relative;
  min-height: 88px;
  display: grid;
  place-items: end center;
  padding: 48px 6px 14px;
  border-radius: 18px;
  background: #ffffff;
  color: var(--text);
  box-shadow: none;
}

.studentTile strong {
  font-size: 19px;
  line-height: 1.05;
  font-weight: 800;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.studentTile:hover {
  transform: translateY(-2px);
}

.scoreBubble {
  position: absolute;
  right: -16px;
  top: -18px;
  min-width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0 8px;
  border: 3px solid #ffffff;
  border-radius: 999px;
  background: #0b8d42;
  color: #ffffff;
  font-weight: 900;
  font-size: 15px;
  z-index: 3;
}

.monsterAvatar {
  position: absolute;
  top: -46px;
  left: 50%;
  width: 76px;
  height: 76px;
  transform: translateX(-50%);
  border-radius: 28px 28px 24px 24px;
  background: var(--blue);
  box-shadow: inset 0 -10px 0 rgba(0, 0, 0, 0.12);
}

.monsterAvatar.violet {
  background: #7a42f4;
}

.monsterAvatar.pink {
  background: #ff74aa;
}

.monsterAvatar.red {
  background: #f24438;
}

.monsterAvatar.yellow {
  background: #ffbc24;
}

.monsterAvatar.blue {
  background: #2fb5e9;
}

.monsterAvatar.purple {
  background: #6c3be7;
}

.monsterAvatar.orange {
  background: #f47c23;
}

.monsterAvatar.magenta {
  background: #d739f2;
}

.monsterAvatar.gold {
  background: #e9a51d;
}

.monsterAvatar.rose {
  background: #ff5d91;
}

.monsterAvatar.indigo {
  background: #6237d8;
}

.monsterAvatar.cyan {
  background: #33b7d6;
}

.monsterAvatar .horn {
  position: absolute;
  top: 8px;
  width: 18px;
  height: 16px;
  background: #ffbc24;
  border-radius: 70% 30% 70% 30%;
}

.monsterAvatar .horn.left {
  left: -8px;
  transform: rotate(-34deg);
}

.monsterAvatar .horn.right {
  right: -8px;
  transform: rotate(34deg) scaleX(-1);
}

.monsterAvatar .eye {
  position: absolute;
  top: 26px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #ffffff;
}

.monsterAvatar .eye::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--text);
}

.monsterAvatar .eye.left {
  left: 20px;
}

.monsterAvatar .eye.right {
  right: 20px;
}

.monsterAvatar .mouth {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 18px;
  height: 12px;
  border-radius: 0 0 999px 999px;
  background: var(--text);
}

.monsterAvatar .initial {
  position: absolute;
  inset: auto 0 5px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 11px;
  font-weight: 900;
}

.monsterStack {
  position: absolute;
  top: -39px;
  width: 82px;
  height: 72px;
}

.miniMonster {
  position: absolute;
  width: 34px;
  height: 34px;
  border-radius: 50% 50% 42% 42%;
  border: 3px solid #ffffff;
}

.miniMonster.m1 {
  left: 4px;
  top: 19px;
  background: #7a42f4;
}

.miniMonster.m2 {
  left: 23px;
  top: 0;
  background: #ff74aa;
}

.miniMonster.m3 {
  right: 4px;
  top: 21px;
  background: #ffbc24;
}

.miniMonster.m4 {
  left: 28px;
  bottom: 0;
  background: #2fb5e9;
}

.addStudentTile {
  color: var(--blue);
}

.addCircle {
  position: absolute;
  top: 13px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue);
  color: #ffffff;
  font-size: 25px;
  font-weight: 900;
}

.bottomTools {
  position: fixed;
  left: 342px;
  right: 0;
  bottom: 0;
  z-index: 9;
  height: 66px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  padding: 0 20px;
  background: #ffffff;
  border-top: 1px solid #dde2ef;
}

.bottomTools button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #5f6394;
  font-weight: 900;
  white-space: nowrap;
}

.bottomTools svg {
  color: var(--blue);
}

.page {
  padding: 24px 32px 90px;
}

.band,
.stat,
.classCard,
.activityItem {
  box-shadow: none;
  border-radius: 18px;
}

.classCard {
  border: 0;
}

@media (max-width: 1080px) {
  .shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: none;
  }

  .topbar {
    padding: 14px 16px 0;
  }

  .bottomTools {
    left: 0;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .studentGrid {
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    gap: 64px 24px;
  }
}
