:root {
  --ink: #0c2033;
  --ink-2: #263d54;
  --muted: #5d7288;
  --muted-2: #8095aa;
  --line: #e2e9f2;
  --surface: #ffffff;
  --bg: #f4f7fc;
  --navy-900: #071b2e;
  --navy-800: #0a2945;
  --navy-700: #123f63;
  --blue: #2f6fed;
  --blue-deep: #245bcf;
  --gold: #efb53c;
  --gold-deep: #a56a06;
  --red: #c6281c;
  --teal: #0c8a7c;
  --radius: 20px;
  --shadow-sm: 0 1px 2px rgba(7, 30, 52, .04), 0 4px 14px -6px rgba(7, 30, 52, .08);
  --shadow-md: 0 20px 40px -24px rgba(7, 30, 52, .4), 0 2px 6px rgba(7, 30, 52, .04);
  --font: "Be Vietnam Pro", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: var(--font);
  font-size: 14px;
  color: var(--ink);
  background:
    radial-gradient(1100px 560px at 8% -8%, #dce9fb 0%, rgba(220, 233, 251, 0) 62%),
    radial-gradient(900px 520px at 100% 0%, #fdf1d9 0%, rgba(253, 241, 217, 0) 55%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection {
  background: #cfe0ff;
  color: var(--navy-900);
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

.icon {
  width: 24px;
  height: 24px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon--16 {
  width: 16px;
  height: 16px;
}

.icon--18 {
  width: 18px;
  height: 18px;
}

:where(button, a):focus-visible {
  outline: 3px solid rgba(47, 111, 237, .4);
  outline-offset: 3px;
}

.page {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0 8px;
}

/* ------------------------------------------------------------------ */
/* Hero                                                                */
/* ------------------------------------------------------------------ */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 26px 40px 70px;
  border-radius: 28px;
  color: #fff;
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 48%, var(--navy-700) 100%);
  box-shadow: 0 36px 80px -40px rgba(4, 24, 44, .8);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: linear-gradient(115deg, transparent 18%, #000 100%);
  mask-image: linear-gradient(115deg, transparent 18%, #000 100%);
}

.hero__decor {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.orb {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(70px);
}

.orb--gold {
  top: -170px;
  right: -100px;
  width: 430px;
  height: 430px;
  background: rgba(239, 181, 60, .22);
}

.orb--blue {
  bottom: -220px;
  left: 22%;
  width: 480px;
  height: 480px;
  background: rgba(56, 148, 255, .24);
}

.ring {
  position: absolute;
  display: block;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 50%;
}

.ring--one {
  top: -190px;
  right: 8%;
  width: 430px;
  height: 430px;
}

.ring--two {
  top: -110px;
  right: 4%;
  width: 620px;
  height: 620px;
  border-color: rgba(255, 255, 255, .07);
}

.hero__content {
  position: relative;
  z-index: 1;
}

.hero__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  animation: fade-up .5s ease both;
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 13px;
  background: linear-gradient(145deg, #ffe6a1, #efb53c);
  color: #3d2a02;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .02em;
  box-shadow: 0 8px 18px -8px rgba(239, 181, 60, .8), inset 0 1px 0 rgba(255, 255, 255, .55);
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand__name {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .075em;
  text-transform: uppercase;
  color: #eaf2fa;
}

.brand__sub {
  font-size: 10.5px;
  letter-spacing: .03em;
  color: #92aec7;
}

.date-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: none;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  background: rgba(255, 255, 255, .07);
  color: #cfdded;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .02em;
  backdrop-filter: blur(8px);
}

.date-chip .icon {
  color: #f3c25c;
}

.hero h1 {
  max-width: 1040px;
  margin: 26px 0 0;
  font-size: clamp(1.55rem, 3.4vw, 2.45rem);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -.022em;
  text-wrap: balance;
  animation: fade-up .55s .1s ease both;
}

.nowrap {
  white-space: nowrap;
}

.hero h1 .hl {
  color: #ffcf70;
  background: linear-gradient(100deg, #ffe7a8 0%, #f6b73c 48%, #ffdf92 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
}

.hero__sub {
  max-width: 760px;
  margin: 10px 0 0;
  font-size: 13.5px;
  font-weight: 400;
  line-height: 1.6;
  color: #b7cadf;
  animation: fade-up .55s .16s ease both;
}

/* ------------------------------------------------------------------ */
/* Competition cards                                                   */
/* ------------------------------------------------------------------ */
.competitions {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: -44px;
  padding: 0 8px;
}

.comp-card {
  --accent: #2f6fed;
  --accent-2: #59c3ea;
  --accent-border: #b9d0f7;
  --accent-soft: rgba(47, 111, 237, .5);
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 96px;
  padding: 17px 20px;
  overflow: hidden;
  border: 1px solid #e1e9f4;
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  box-shadow: var(--shadow-md);
  color: inherit;
  text-align: left;
  transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease;
  animation: fade-in .45s ease both;
}

.comp-card:nth-child(2) {
  animation-delay: .07s;
}

.comp-card:nth-child(3) {
  animation-delay: .13s;
}

.comp-card[data-tab="trang-nguyen"] {
  --accent: #c8860d;
  --accent-2: #f1c65a;
  --accent-border: #f0d49b;
  --accent-soft: rgba(200, 134, 13, .42);
}

.comp-card[data-tab="ioe"] {
  --accent: #0c8a7c;
  --accent-2: #5fd0c2;
  --accent-border: #a9ded7;
  --accent-soft: rgba(12, 138, 124, .4);
}

.comp-card:hover {
  transform: translateY(-3px);
  border-color: #cddcf0;
  box-shadow: 0 26px 46px -24px rgba(7, 30, 52, .45), 0 2px 6px rgba(7, 30, 52, .04);
}

.comp-card.is-active {
  border-color: var(--accent-border);
  background: linear-gradient(180deg, #ffffff, #f6faff);
  box-shadow: 0 26px 48px -24px var(--accent-soft), 0 2px 6px rgba(7, 30, 52, .04);
}

.comp-card.is-active::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.comp-card.is-active .comp-card__name {
  color: #071b2e;
}

.comp-card__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: 15px;
}

.comp-card__icon .icon {
  width: 26px;
  height: 26px;
  stroke-width: 1.7;
}

.comp-card__icon--blue {
  color: #245bcf;
  background: linear-gradient(145deg, #eaf2ff, #d8e6ff);
  box-shadow: inset 0 0 0 1px rgba(36, 91, 207, .08);
}

.comp-card__icon--gold {
  color: #b8740a;
  background: linear-gradient(145deg, #fff6e0, #ffebc4);
  box-shadow: inset 0 0 0 1px rgba(184, 116, 10, .08);
}

.comp-card__icon--teal {
  color: #0b8578;
  background: linear-gradient(145deg, #e3faf6, #d2f4ee);
  box-shadow: inset 0 0 0 1px rgba(11, 133, 120, .08);
}

.comp-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.comp-card__name {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.01em;
  color: #10273d;
}

.comp-card__meta {
  font-size: 11.5px;
  color: var(--muted-2);
}

.comp-card__side {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  text-align: right;
}

.comp-card__count {
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.comp-card__count--muted {
  color: #a7b7c8;
  font-weight: 600;
}

.comp-card__label {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.comp-card__label--soon {
  color: #b57608;
  font-size: 9px;
  letter-spacing: .05em;
}

/* ------------------------------------------------------------------ */
/* Panels                                                              */
/* ------------------------------------------------------------------ */
.panel {
  margin-top: 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 26px 54px -40px rgba(7, 30, 52, .38), 0 2px 6px rgba(7, 30, 52, .03);
  animation: panel-in .3s ease both;
}

.panel__head {
  padding: 26px 30px 0;
}

.panel__title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.panel__kicker {
  margin: 0 0 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: #8ba0b6;
}

.panel h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.018em;
  color: var(--ink);
}

.panel__total {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: none;
  padding: 7px 13px;
  border: 1px solid #dbe8ff;
  border-radius: 999px;
  background: #eef5ff;
  color: var(--blue-deep);
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}

.panel__total strong {
  font-size: 13px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.panel--gold .panel__kicker {
  color: #b8860b;
}

.panel--gold .panel__total {
  border-color: #f3dfb5;
  background: #fff8e9;
  color: #a56a06;
}

/* Toolbar ---------------------------------------------------------- */
.toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 292px) minmax(0, 1fr);
  align-items: end;
  gap: 14px;
  margin-top: 22px;
}

.field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 7px;
}

.field label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #7088a0;
}

.select-wrap,
.search-wrap {
  position: relative;
}

select,
input {
  height: 46px;
  border: 1px solid #dbe4ef;
  border-radius: 12px;
  background: #fbfdff;
  color: var(--ink);
  font-size: 13.5px;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

select {
  width: 100%;
  padding: 0 42px 0 15px;
  font-weight: 500;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.select-wrap__chevron {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  color: #7790a8;
  pointer-events: none;
}

input {
  width: 100%;
  padding: 0 46px 0 43px;
}

input::placeholder {
  color: #9aabbd;
  font-weight: 400;
}

select:focus,
input:focus {
  outline: none;
  border-color: #7aa7f5;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(47, 111, 237, .1);
}

input:disabled {
  background: #f4f7fb;
  color: #9aabbd;
  cursor: not-allowed;
}

input::-webkit-search-cancel-button,
input::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
}

.search-wrap__icon {
  position: absolute;
  top: 50%;
  left: 15px;
  transform: translateY(-50%);
  color: #7790a8;
  pointer-events: none;
}

.clear-btn {
  position: absolute;
  top: 50%;
  right: 9px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  transform: translateY(-50%);
  border: 0;
  border-radius: 8px;
  background: #eef3fa;
  color: var(--muted);
  transition: background .2s ease, color .2s ease;
}

.clear-btn:hover {
  background: #e2eaf5;
  color: var(--ink);
}

.result-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding: 12px 15px;
  border: 1px solid #e8eef7;
  border-radius: 12px;
  background: #f7faff;
  font-size: 12.5px;
  color: var(--muted);
}

.result-meta strong {
  color: var(--ink);
  font-weight: 700;
}

.result-meta__hint {
  font-size: 11.5px;
  color: var(--muted-2);
}

/* Table ------------------------------------------------------------ */
.table-wrap {
  position: relative;
  max-height: 700px;
  margin-top: 14px;
  overflow: auto;
  border-top: 1px solid #e8eef6;
  scrollbar-width: thin;
  scrollbar-color: #c5d3e4 transparent;
}

.table-wrap::after {
  content: "";
  position: sticky;
  bottom: 0;
  z-index: 2;
  display: none;
  height: 30px;
  margin-top: -30px;
  background: linear-gradient(to top, rgba(255, 255, 255, .96), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.table-wrap.is-scrollable::after {
  display: block;
}

.table-wrap::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

.table-wrap::-webkit-scrollbar-track {
  background: transparent;
}

.table-wrap::-webkit-scrollbar-thumb {
  border: 2px solid #fff;
  border-radius: 20px;
  background: #c5d3e4;
}

.table-wrap::-webkit-scrollbar-thumb:hover {
  background: #aebfd3;
}

.student-table {
  width: 100%;
  min-width: 940px;
  border-collapse: separate;
  border-spacing: 0;
}

.student-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 12px 18px;
  border-bottom: 1px solid #e4ebf4;
  background: #f6f9fe;
  color: #647c94;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.student-table td {
  padding: 14px 18px;
  border-bottom: 1px solid #eef3f8;
  color: var(--ink-2);
  font-size: 13.5px;
  vertical-align: middle;
}

.student-table tbody tr:nth-child(even) td {
  background: #fcfdff;
}

.student-table tbody tr:hover td {
  background: #f6faff;
}

.student-table tbody tr:last-child td {
  border-bottom: 0;
}

.student-table tr.row--warning td {
  background: #fff9f8;
}

.student-table tr.row--warning:hover td {
  background: #fff3f1;
}

.col-stt {
  width: 62px;
}

.student-table th.col-stt,
.student-table td.cell-stt {
  text-align: center;
}

.cell-stt {
  color: #8ba0b6;
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.col-id {
  width: 106px;
}

.cell-id {
  color: #5d7288;
  font-family: var(--mono);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  letter-spacing: .01em;
}

.cell-username {
  color: #43607d;
  font-family: var(--mono);
  font-size: 12.5px;
}

.cell-name,
.student-table td.cell-name {
  min-width: 200px;
  color: #10273d;
  font-weight: 600;
}

.student-table td.cell-name--issue {
  color: #15803d;
  font-weight: 700;
}

.cell-class {
  color: #38536d;
  font-weight: 500;
  white-space: nowrap;
}

.row--warning .cell-class {
  color: #b42318;
  font-weight: 600;
}

.badge-branch {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border: 1px solid #dfe9f6;
  border-radius: 7px;
  background: #eef4fc;
  color: #3c5b7b;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .03em;
}

.note-error {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  padding: 4px 9px;
  border: 1px solid #ffd6d2;
  border-radius: 999px;
  background: #fff1ef;
  color: var(--red);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
  white-space: normal;
}

.note-error .icon {
  width: 13px;
  height: 13px;
  stroke-width: 2.1;
}

.notes {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}

.note-name {
  display: inline-flex;
  align-items: flex-start;
  gap: 5px;
  color: #15803d;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.45;
  text-align: left;
}

.note-name .icon {
  width: 13px;
  height: 13px;
  margin-top: 1px;
  flex: none;
  stroke-width: 2;
}

.note-name strong {
  color: #14532d;
  font-weight: 700;
}

.note-empty {
  color: #b3c1d0;
}

/* Empty state ------------------------------------------------------ */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 62px 24px 54px;
  text-align: center;
}

.empty-state__icon {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  margin-bottom: 18px;
  border-radius: 20px;
  background: linear-gradient(145deg, #eef5ff, #e3eeff);
  color: #4b7dcc;
  box-shadow: inset 0 0 0 1px rgba(47, 111, 237, .08);
}

.empty-state__icon .icon {
  width: 30px;
  height: 30px;
  stroke-width: 1.6;
}

.empty-state h3 {
  margin: 0 0 7px;
  color: #1a3249;
  font-size: 16px;
  font-weight: 700;
}

.empty-state p {
  max-width: 460px;
  margin: 0;
  color: #6d849a;
  font-size: 13px;
  line-height: 1.65;
}

/* Notice ----------------------------------------------------------- */
.notice {
  display: flex;
  gap: 13px;
  margin: 16px 0 0;
  padding: 14px 16px;
  border: 1px solid #f8e2b3;
  border-left: 4px solid var(--gold);
  border-radius: 12px;
  background: linear-gradient(135deg, #fffaf0 0%, #fffdf8 70%);
}

.notice__icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 10px;
  background: #fdf0ce;
  color: var(--gold-deep);
}

.notice__body p {
  margin: 0;
  color: #6b5423;
  font-size: 12.5px;
  line-height: 1.7;
}

.notice__body p + p {
  margin-top: 7px;
}

.notice__body strong {
  color: #4d3a12;
  font-weight: 700;
}

/* Coming soon ------------------------------------------------------ */
.panel--soon {
  display: flex;
  min-height: 430px;
  flex-direction: column;
}

.panel__title-row--soon {
  padding: 26px 30px 0;
}

.soon {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 36px 24px 66px;
  text-align: center;
}

.soon__icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 22px;
}

.soon__icon::after {
  content: "";
  position: absolute;
  inset: -9px;
  border: 1px dashed #c9d9ec;
  border-radius: 28px;
}

.soon__icon .icon {
  width: 34px;
  height: 34px;
  stroke-width: 1.5;
}

.soon__icon--gold {
  color: #b8740a;
  background: linear-gradient(145deg, #fff6e0, #ffebc4);
}

.soon__icon--gold::after {
  border-color: #f0d59b;
}

.soon__icon--teal {
  color: #0b8578;
  background: linear-gradient(145deg, #e3faf6, #d2f4ee);
}

.soon__icon--teal::after {
  border-color: #a8ddd5;
}

.soon h3 {
  margin: 24px 0 8px;
  color: var(--ink);
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -.02em;
}

.soon p {
  max-width: 430px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

/* Footer ----------------------------------------------------------- */
.footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 26px 0 30px;
  color: #7b90a5;
  font-size: 11.5px;
  text-align: center;
}

.footer__dot {
  width: 5px;
  height: 5px;
  flex: none;
  border-radius: 50%;
  background: #b8c7d8;
}

/* Animations ------------------------------------------------------- */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

/* Responsive ------------------------------------------------------- */
@media (min-width: 821px) and (max-width: 1120px) {
  .note-error {
    gap: 4px;
    padding: 3px 7px;
    font-size: 10.5px;
  }

  .note-error .icon {
    display: none;
  }

  .note-name {
    font-size: 10.5px;
  }
}

@media (max-width: 1080px) {
  .hero {
    padding: 24px 30px 66px;
  }

  .competitions {
    gap: 14px;
    padding: 0 5px;
  }

  .comp-card {
    gap: 12px;
    padding: 18px 16px;
  }

  .comp-card__icon {
    width: 48px;
    height: 48px;
  }

  .comp-card__count {
    font-size: 23px;
  }
}

@media (max-width: 900px) {
  .competitions {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: -38px;
  }

  .comp-card {
    min-height: 80px;
    padding: 14px 16px;
  }

  .comp-card__icon {
    width: 42px;
    height: 42px;
  }

  .comp-card__side {
    flex-direction: row;
    align-items: baseline;
    gap: 8px;
  }

  .comp-card__label {
    letter-spacing: .06em;
  }
}

/* Stacked student cards on small screens --------------------------- */
@media (max-width: 820px) {
  .table-wrap {
    max-height: none;
    margin-top: 16px;
    padding: 0 18px 2px;
    overflow: visible;
    border-top: 0;
    background: transparent;
  }

  .table-wrap.is-scrollable::after {
    display: none;
  }

  .student-table {
    display: block;
    min-width: 0;
  }

  .student-table thead {
    display: none;
  }

  .student-table tbody {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .student-table tbody tr {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 14px 15px 12px;
    border: 1px solid #e3eaf4;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 24px -22px rgba(7, 30, 52, .5);
  }

  .student-table tbody tr td {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    padding: 3px 0;
    border: 0;
    background: transparent !important;
    font-size: 12.5px;
    text-align: right;
  }

  .student-table tbody tr td::before {
    content: attr(data-label);
    flex: none;
    color: #8095aa;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .08em;
    text-align: left;
    text-transform: uppercase;
  }

  .student-table tbody tr td.cell-name {
    order: -1;
    display: block;
    margin: 0 46px 7px 0;
    padding: 0 0 8px;
    border-bottom: 1px solid #eef3f8;
    color: #10273d;
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.42;
    text-align: left;
  }

  .student-table tbody tr td.cell-name--issue {
    color: #15803d;
  }

  .student-table tbody tr td.cell-name::before {
    display: none;
  }

  .student-table tbody tr td.cell-stt {
    position: absolute;
    top: 13px;
    right: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 27px;
    height: 27px;
    padding: 0;
    border-radius: 8px;
    background: #eef4fc;
    color: #3c5b7b;
    font-size: 11px;
    font-weight: 700;
  }

  .student-table tbody tr td.cell-stt::before {
    display: none;
  }

  .student-table tbody tr td.cell-note {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
    text-align: left;
  }

  .student-table tbody tr td.cell-note .notes {
    width: 100%;
  }

  .student-table tbody tr td.cell-note .note-error {
    white-space: normal;
  }

  .student-table tbody tr.row--warning {
    border-color: #ffd8d4;
    background: #fffafa;
  }

  .student-table tbody tr.row--warning td {
    background: transparent;
  }

  .student-table tbody tr:last-child td {
    border-bottom: 0;
  }

  .student-table tbody tr td.cell-name {
    border-bottom: 1px solid #eef3f8;
  }
}

@media (max-width: 760px) {
  .page {
    width: calc(100% - 28px);
    padding-top: 14px;
  }

  .hero {
    padding: 20px 20px 62px;
    border-radius: 24px;
  }

  .hero__sub {
    font-size: 13px;
  }

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

  .panel__head {
    padding: 22px 20px 0;
  }

  .panel__title-row--soon {
    padding: 22px 20px 0;
  }

  .panel h2 {
    font-size: 19px;
  }

  .notice {
    margin: 14px 0 0;
    padding: 14px;
    border-radius: 12px;
  }

  .result-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .footer {
    padding: 22px 8px 24px;
  }
}

@media (max-width: 560px) {
  .hero {
    padding: 18px 16px 58px;
  }

  .hero__top {
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
  }

  .brand__name {
    font-size: 11px;
  }

  .brand__mark {
    width: 38px;
    height: 38px;
    font-size: 9.5px;
  }

  .date-chip {
    padding: 7px 11px;
    font-size: 10.5px;
  }

  .hero h1 {
    font-size: clamp(1.4rem, 6.1vw, 1.95rem);
  }

  .comp-card__name {
    font-size: 14px;
  }

  .comp-card__meta {
    font-size: 11px;
  }

  .comp-card__count {
    font-size: 21px;
  }

  .panel__title-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .empty-state {
    padding: 48px 18px 42px;
  }

  .soon {
    padding: 30px 18px 52px;
  }

  .soon h3 {
    font-size: 20px;
  }

  .notice {
    gap: 11px;
  }

  .notice__body p {
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .001ms !important;
    animation-delay: 0ms !important;
    transition-duration: .001ms !important;
  }
}
