:root {
  --bg: #f4f7f9;
  --surface: #ffffff;
  --ink: #17202a;
  --muted: #667085;
  --line: #d9dee8;
  --primary: #0f766e;
  --primary-dark: #115e59;
  --accent: #2563eb;
  --danger: #b42318;
  --danger-bg: #fee4e2;
  --success-bg: #dcfae6;
  --shadow: 0 20px 42px rgba(15, 23, 42, 0.07);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(15, 118, 110, 0.08), rgba(244, 247, 249, 0) 280px),
    var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: var(--primary);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 30px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

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

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  padding: 26px 18px;
  border-right: 1px solid var(--line);
  background: #ffffff;
  box-shadow: 14px 0 34px rgba(15, 23, 42, 0.04);
}

.admin-menu-toggle,
.admin-menu-close,
.admin-nav-overlay {
  display: none;
}

.admin-brand {
  padding: 8px 10px 22px;
}

.admin-brand strong {
  display: block;
  font-size: 18px;
  line-height: 1.25;
}

.side-nav {
  display: grid;
  gap: 8px;
}

.side-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 8px;
  color: #344054;
  font-weight: 850;
  text-decoration: none;
}

.side-nav a[href="#"] {
  opacity: 0.58;
}

.side-nav a:hover,
.side-nav a.active {
  background: #e6f7f4;
  color: var(--primary-dark);
}

.side-nav .danger-link {
  margin-top: 12px;
  background: var(--danger-bg);
  color: var(--danger);
}

.admin-main {
  min-width: 0;
}

.admin-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 30px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--line);
}

.admin-page-head h1 {
  margin: 0;
  font-size: clamp(28px, 3.5vw, 44px);
  line-height: 1.05;
}

.admin-meta {
  display: grid;
  gap: 4px;
  text-align: right;
}

.admin-meta strong {
  color: var(--primary-dark);
}

.admin-meta span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

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

.activity-list > div {
  display: grid;
  grid-template-columns: 170px 1fr 160px;
  gap: 12px;
  align-items: start;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.activity-list strong {
  color: var(--primary-dark);
}

.activity-list span {
  color: #344054;
}

.activity-list small {
  color: var(--muted);
  font-weight: 800;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.module-card {
  display: grid;
  gap: 10px;
  min-height: 160px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow);
}

.module-card:hover {
  border-color: #99ded2;
  transform: translateY(-1px);
}

.module-card span {
  color: var(--primary);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.module-card strong {
  font-size: 17px;
  line-height: 1.4;
}

.module-card em {
  align-self: end;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
}

.muted-module {
  background: #f8fafc;
}

.topbar h1,
.auth-card h1 {
  margin: 0;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.05;
}

@media (min-width: 1024px) {
  body {
    font-size: 17px;
  }

  .shell {
    width: min(1240px, calc(100% - 56px));
  }

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

  label {
    font-size: 15.5px;
  }

  input,
  select,
  textarea {
    height: 54px;
    font-size: 16px;
    padding: 15px 16px;
  }

  textarea {
    height: auto;
    min-height: 118px;
  }

  .hint {
    font-size: 13px;
  }
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.shell {
  width: min(1120px, calc(100% - 32px));
  margin: 32px auto 56px;
}

.form-grid,
.grid {
  display: grid;
  gap: 18px;
}

.form-grid {
  grid-template-columns: 1fr;
  gap: 22px;
}

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

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

.grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 18px;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(20px, 3vw, 30px);
  box-shadow: var(--shadow);
}

.panel h2 {
  margin: 0 0 18px;
  font-size: 20px;
}

.full,
.wide {
  grid-column: 1 / -1;
}

label {
  display: grid;
  align-content: start;
  gap: 8px;
  color: #344054;
  font-size: 14px;
  font-weight: 700;
  min-width: 0;
}

.label-text {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 18px;
  line-height: 1.25;
}

.required-star {
  display: inline;
  color: var(--danger);
  font-weight: 900;
}

input,
select,
textarea {
  display: block;
  width: 100%;
  height: 48px;
  border: 1px solid #cfd6e3;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 500;
  min-height: 48px;
  padding: 13px 14px;
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

textarea {
  height: auto;
  min-height: 104px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.13);
}

.was-validated input:invalid,
.was-validated select:invalid,
.was-validated textarea:invalid {
  border-color: #f04438;
}

.custom-select {
  position: relative;
  display: block;
}

.custom-select > select {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 1px;
  opacity: 0;
  pointer-events: none;
}

.custom-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  padding: 13px 14px;
  border: 1px solid #cfd6e3;
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.custom-select.has-value .custom-select-trigger {
  color: var(--ink);
}

.custom-select-trigger:hover,
.custom-select-trigger[aria-expanded="true"] {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.13);
}

.was-validated .custom-select > select:invalid + .custom-select-trigger {
  border-color: #f04438;
}

.custom-select-trigger span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.custom-select-menu {
  position: absolute;
  z-index: 19;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  display: grid;
  gap: 6px;
  max-height: 280px;
  overflow: auto;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 44px rgba(15, 23, 42, 0.14);
}

.custom-select-option {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 750;
  text-align: left;
  cursor: pointer;
}

.custom-select-option:hover,
.custom-select-option:focus,
.custom-select-option.is-selected {
  border-color: #99ded2;
  background: #effcf9;
}

.custom-select-option.is-placeholder {
  color: var(--muted);
}

.suggest-wrap {
  position: relative;
}

.suggestions {
  position: absolute;
  z-index: 20;
  top: 78px;
  left: 0;
  right: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 22px 38px rgba(15, 23, 42, 0.14);
}

.suggestion-item {
  display: grid;
  width: 100%;
  gap: 3px;
  padding: 12px 14px;
  border: 0;
  border-bottom: 1px solid #edf2f7;
  background: #fff;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.suggestion-item:hover,
.suggestion-item:focus {
  background: #eefcf8;
}

.suggestion-item span {
  color: var(--muted);
  font-size: 12px;
}

.hint {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.hint.good {
  color: #087443;
}

.hint.danger {
  color: var(--danger);
}

.checkline {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  border: 1px solid #b7eadf;
  border-radius: 8px;
  background: #f0fdfa;
  color: #134e4a;
}

.checkline input {
  width: 22px;
  height: 22px;
  min-height: 22px;
  margin-top: 1px;
  accent-color: var(--primary);
  flex: 0 0 auto;
}

.checkline span {
  line-height: 1.5;
}

.inline-check {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 800;
}

.inline-check input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  accent-color: var(--primary);
}

textarea.is-readonly {
  background: #f8fafc;
  color: #475467;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.btn.primary {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.file-control {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  min-height: 52px;
  overflow: hidden;
  border: 1px dashed #aeb8c8;
  border-radius: 8px;
  background: #f8fafc;
}

.file-control input[type="file"] {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
}

.file-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 16px;
  background: #e6f7f4;
  color: var(--primary-dark);
  font-weight: 900;
}

.file-name {
  overflow: hidden;
  padding: 0 14px;
  color: var(--muted);
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.multi-select {
  position: relative;
  display: block;
}

.multi-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  padding: 13px 14px;
  border: 1px solid #cfd6e3;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.multi-trigger span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chevron,
.multi-trigger .chevron {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-right: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.16s ease;
}

.multi-trigger[aria-expanded="true"] .chevron {
  transform: rotate(225deg) translateY(-2px);
}

.custom-select-trigger[aria-expanded="true"] .chevron {
  transform: rotate(225deg) translateY(-2px);
}

.multi-menu {
  position: absolute;
  z-index: 18;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-height: 310px;
  overflow: auto;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 44px rgba(15, 23, 42, 0.14);
}

.multi-option {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid #edf2f7;
  border-radius: 8px;
  background: #f8fafc;
  color: #344054;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.multi-option:hover {
  border-color: #99ded2;
  background: #effcf9;
}

.multi-option input {
  width: 17px;
  height: 17px;
  min-height: 17px;
  accent-color: var(--primary);
}

.multi-option span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (min-width: 1024px) {
  .file-control,
  .file-button,
  .multi-trigger {
    min-height: 54px;
  }

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

.btn.primary:hover {
  background: var(--primary-dark);
}

.btn.ghost {
  background: #f8fafc;
}

.btn.danger {
  border-color: var(--danger);
  background: var(--danger-bg);
  color: var(--danger);
}

.btn.small {
  min-height: 34px;
  padding: 7px 12px;
  font-size: 13px;
}

.actions,
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.alert {
  margin-bottom: 18px;
  border-radius: 8px;
  padding: 14px 16px;
  font-weight: 700;
}

.alert ul {
  margin: 10px 0 0;
}

.alert.error {
  background: var(--danger-bg);
  color: var(--danger);
}

.alert.success {
  background: var(--success-bg);
  color: #087443;
}

.auth-page {
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-card {
  width: min(440px, 100%);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 28px;
}

.stack {
  display: grid;
  gap: 16px;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 13px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.stats div {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.stats span {
  display: block;
  font-size: 34px;
  font-weight: 900;
  color: var(--primary);
}

.stats p {
  margin: 4px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.search-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  margin-bottom: 18px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 13px 10px;
  text-align: left;
  vertical-align: top;
}

th {
  color: #475467;
  font-size: 12px;
  text-transform: uppercase;
}

.empty {
  color: var(--muted);
  text-align: center;
}

.detail-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 18px;
}

.profile-side {
  display: grid;
  gap: 16px;
  align-content: start;
}

.profile-side h2,
.profile-side p {
  margin: 0;
}

.file-missing {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px dashed #cfd6e3;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 800;
}

.profile-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.score-ring {
  display: grid;
  place-items: center;
  width: 132px;
  height: 132px;
  border: 12px solid #d7f4ea;
  border-top-color: var(--accent);
  border-radius: 50%;
}

.score-ring span {
  font-size: 30px;
  font-weight: 900;
}

.score-ring small {
  color: var(--muted);
  font-weight: 800;
}

.sgpa-bars {
  display: grid;
  gap: 12px;
}

.sgpa-bars > div {
  display: grid;
  grid-template-columns: 70px 1fr 52px;
  gap: 12px;
  align-items: center;
}

.bar {
  height: 12px;
  overflow: hidden;
  background: #edf2f7;
  border-radius: 999px;
}

.bar i {
  display: block;
  height: 100%;
  background: var(--accent);
}

.wide-detail {
  grid-column: 1 / -1;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(180px, 260px) 1fr;
  gap: 0;
}

.detail-grid dt,
.detail-grid dd {
  margin: 0;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.detail-grid dt {
  color: #475467;
  font-weight: 800;
}

@media (max-width: 820px) {
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-menu-toggle {
    position: fixed;
    z-index: 43;
    top: 14px;
    left: 14px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
  }

  .admin-menu-toggle span {
    display: block;
    width: 17px;
    height: 2px;
    margin: 0;
    border-radius: 999px;
    background: var(--ink);
    transition: transform 0.18s ease, opacity 0.18s ease;
  }

  .admin-menu-toggle span + span {
    margin-top: 0;
  }

  .admin-layout.nav-open .admin-menu-toggle span:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
  }

  .admin-layout.nav-open .admin-menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .admin-layout.nav-open .admin-menu-toggle span:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
  }

  .admin-layout.nav-open .admin-menu-toggle {
    left: auto;
    right: 14px;
  }

  .admin-nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: block;
    background: rgba(15, 23, 42, 0.42);
  }

  .admin-nav-overlay[hidden] {
    display: none !important;
  }

  .admin-sidebar {
    position: fixed;
    z-index: 41;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(82vw, 300px);
    height: 100vh;
    padding: 18px 14px;
    border-right: 1px solid var(--line);
    border-bottom: 0;
    transform: translateX(-105%);
    transition: transform 0.22s ease;
  }

  .admin-layout.nav-open .admin-sidebar {
    transform: translateX(0);
  }

  .admin-layout.nav-open {
    overflow: hidden;
  }

  .admin-brand {
    position: relative;
    padding-right: 48px;
  }

  .admin-menu-close {
    display: none;
  }

  .side-nav {
    display: grid;
    gap: 8px;
    overflow-x: visible;
    padding-bottom: 0;
  }

  .side-nav a {
    min-width: 0;
    min-height: 42px;
    padding: 10px 12px;
    font-size: 14px;
  }

  .admin-page-head {
    align-items: flex-start;
    flex-direction: column;
    padding: 76px 16px 22px;
  }

  body {
    font-size: 14px;
  }

  .admin-brand strong {
    font-size: 16px;
  }

  .admin-brand .eyebrow,
  .module-card span {
    font-size: 11px;
  }

  .admin-page-head h1 {
    font-size: 28px;
  }

  .admin-meta strong,
  input,
  select,
  textarea,
  .custom-select-trigger,
  .multi-trigger {
    font-size: 14px;
  }

  .admin-meta span,
  .stats p,
  .activity-list strong,
  .activity-list span,
  .activity-list small {
    font-size: 12px;
  }

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

  .module-card strong {
    font-size: 15px;
  }

  input,
  select,
  textarea,
  .custom-select-trigger,
  .multi-trigger {
    min-height: 46px;
    height: 46px;
    padding: 12px 13px;
  }

  label,
  th,
  td {
    font-size: 13px;
  }

  .btn {
    min-height: 38px;
    padding: 8px 12px;
    font-size: 13px;
  }

  .stats span {
    font-size: 27px;
  }

  th,
  td {
    padding: 10px 8px;
  }

  .admin-meta {
    text-align: left;
  }

  .activity-list > div {
    grid-template-columns: 1fr;
  }

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

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .grid.two,
  .grid.three,
  .grid.four,
  .stats,
  .detail-layout,
  .search-row {
    grid-template-columns: 1fr;
  }

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

  .detail-grid dd {
    padding-top: 0;
  }

  .multi-menu {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 821px) and (max-width: 1180px) {
  .admin-layout {
    grid-template-columns: 230px minmax(0, 1fr);
  }

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

@media (min-width: 1024px) {
  body {
    font-size: 18px;
  }

  .topbar {
    padding: 38px clamp(36px, 5vw, 72px);
  }

  .topbar h1,
  .auth-card h1 {
    font-size: clamp(40px, 3.5vw, 56px);
  }

  .eyebrow {
    font-size: 14px;
  }

  .shell {
    width: min(1320px, calc(100% - 72px));
    margin-top: 40px;
  }

  .form-grid {
    gap: 28px;
  }

  .grid {
    gap: 24px;
  }

  .panel {
    padding: 38px;
  }

  .panel h2 {
    margin-bottom: 24px;
    font-size: 26px;
  }

  label {
    gap: 10px;
    font-size: 17px;
  }

  .label-text {
    min-height: 22px;
  }

  input,
  select,
  textarea,
  .multi-trigger,
  .custom-select-trigger {
    height: 62px;
    min-height: 62px;
    padding: 17px 18px;
    font-size: 17px;
  }

  textarea {
    height: auto;
    min-height: 132px;
  }

  .hint,
  .suggestion-item span {
    font-size: 14px;
  }

  .file-control,
  .file-button {
    min-height: 62px;
  }

  .file-button {
    padding-inline: 20px;
  }

  .multi-option {
    padding: 12px 14px;
    font-size: 15px;
  }

  .custom-select-menu {
    max-height: 340px;
    padding: 12px;
  }

  .custom-select-option {
    padding: 14px 16px;
    font-size: 16px;
  }

  .checkline {
    gap: 18px;
    padding: 24px;
    font-size: 17px;
  }

  .checkline input {
    width: 26px;
    height: 26px;
    min-height: 26px;
  }

  .inline-check {
    font-size: 15px;
  }

  .inline-check input {
    width: 21px;
    height: 21px;
    min-height: 21px;
  }

  .btn {
    min-height: 52px;
    padding: 13px 20px;
    font-size: 16px;
  }
}

@media (max-width: 820px) {
  body {
    font-size: 13px;
  }

  .shell {
    width: calc(100% - 20px);
    margin: 18px auto 34px;
  }

  .topbar {
    padding: 22px 16px;
  }

  .topbar h1,
  .auth-card h1 {
    font-size: 26px;
  }

  .admin-page-head h1 {
    font-size: 24px;
    line-height: 1.12;
  }

  .admin-brand strong {
    font-size: 15px;
  }

  .admin-meta strong,
  input,
  select,
  textarea,
  .custom-select-trigger,
  .multi-trigger {
    font-size: 13px;
  }

  .eyebrow,
  .admin-brand .eyebrow,
  .module-card span {
    font-size: 10px;
  }

  .admin-meta span,
  .stats p,
  .hint,
  .activity-list strong,
  .activity-list span,
  .activity-list small {
    font-size: 11px;
  }

  .panel {
    padding: 16px;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
  }

  .panel h2 {
    margin-bottom: 14px;
    font-size: 17px;
  }

  .form-grid,
  .grid,
  .module-grid,
  .stats {
    gap: 12px;
  }

  .module-card {
    min-height: 112px;
    padding: 16px;
  }

  .module-card strong {
    font-size: 14px;
  }

  .stats div {
    padding: 14px;
  }

  .stats span {
    font-size: 23px;
  }

  input,
  select,
  textarea,
  .custom-select-trigger,
  .multi-trigger {
    min-height: 42px;
    height: 42px;
    padding: 10px 12px;
  }

  textarea {
    height: auto;
    min-height: 92px;
  }

  label,
  th,
  td {
    font-size: 12.5px;
  }

  th,
  td {
    padding: 8px 7px;
  }

  .btn {
    min-height: 34px;
    padding: 7px 10px;
    font-size: 12.5px;
  }

  .custom-select-option,
  .multi-option {
    padding: 9px 10px;
    font-size: 12.5px;
  }

  .checkline {
    padding: 14px;
    font-size: 13px;
  }

  .file-control,
  .file-button {
    min-height: 42px;
  }

  .side-nav a {
    min-height: 38px;
    font-size: 13px;
  }
}
