:root {
  --bg: #fff8f1;
  --surface: #ffffff;
  --surface-soft: #fff4e8;
  --text: #241106;
  --muted: #8a6a55;
  --line: #f4c7a0;
  --line-soft: #f8ddc4;
  --brand: #e85d04;
  --brand-dark: #b74403;
  --brand-soft: #fff3e8;
  --brand-soft-strong: #ffe1c2;
  --brand-ink: #6f2d00;
  --teal: #0f766e;
  --teal-soft: #e7f6f3;
  --blue: #2563eb;
  --green: #15803d;
  --green-soft: #eaf7ee;
  --amber: #b45309;
  --amber-soft: #fff7df;
  --red: #b42318;
  --red-soft: #fff0ee;
  --shadow: 0 18px 40px rgba(183, 68, 3, 0.12);
  --radius: 8px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  color: var(--text);
  background: var(--bg);
}

body {
  min-height: 100vh;
}

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

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

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

.entry-body {
  display: grid;
  min-height: 100vh;
  place-items: center;
  background:
    linear-gradient(180deg, rgba(232, 93, 4, 0.16), transparent 280px),
    var(--bg);
}

.entry-panel {
  display: grid;
  width: min(430px, calc(100vw - 32px));
  gap: 14px;
}

.entry-button {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  color: var(--brand-ink);
  font-size: 17px;
  font-weight: 750;
  transition:
    transform 140ms ease,
    border-color 140ms ease,
    background 140ms ease;
}

.entry-button:hover {
  border-color: var(--brand);
  transform: translateY(-1px);
}

.entry-button-dark {
  border-color: var(--brand);
  background: var(--brand);
  color: white;
}

.login-body {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(232, 93, 4, 0.16), transparent 300px),
    var(--bg);
}

.login-card {
  width: min(420px, 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 28px;
  box-shadow: var(--shadow);
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 36px;
}

.login-brand img,
.brand-mark img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.login-title {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.15;
}

.login-subtitle {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.btn {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 0 14px;
  cursor: pointer;
  font-weight: 700;
  transition:
    transform 120ms ease,
    background 120ms ease,
    border-color 120ms ease,
    color 120ms ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--brand);
  color: white;
}

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

.btn-dark {
  background: var(--brand-dark);
  color: white;
}

.btn-secondary {
  border-color: var(--line);
  background: white;
  color: var(--brand-ink);
}

.btn-secondary:hover {
  border-color: var(--brand);
  color: var(--brand-dark);
}

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

.btn-icon {
  width: 38px;
  min-height: 38px;
  padding: 0;
}

.btn-full {
  width: 100%;
}

.portal {
  display: grid;
  min-height: 100vh;
  grid-template-columns: 268px 1fr;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  border-right: 1px solid var(--line);
  background: #fffaf5;
  padding: 20px 14px;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 8px 22px;
  color: var(--brand-ink);
  font-weight: 800;
}

.nav-section {
  display: grid;
  gap: 6px;
}

.nav-btn {
  display: flex;
  width: 100%;
  min-height: 42px;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--brand-ink);
  cursor: pointer;
  padding: 0 12px;
  text-align: left;
  font-weight: 700;
}

.nav-btn:hover,
.nav-btn.active {
  background: var(--brand);
  color: white;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 250, 245, 0.94);
  padding: 0 28px;
  backdrop-filter: blur(12px);
}

.breadcrumb {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.page-title {
  margin: 4px 0 0;
  font-size: 21px;
  line-height: 1.2;
}

.workspace-select {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  color: var(--brand-ink);
  padding: 0 12px;
  font-weight: 700;
}

.content {
  width: min(1320px, 100%);
  padding: 24px 28px 48px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(183, 68, 3, 0.06);
}

.panel-pad {
  padding: 18px;
}

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

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

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

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

.split {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 16px;
}

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.section-head h2,
.section-head h3 {
  margin: 0;
}

.section-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.stat {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  padding: 14px;
}

.stat span {
  color: var(--brand-ink);
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
}

.stat strong {
  display: block;
  margin-top: 8px;
  font-size: 26px;
}

.session-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 6px 0 18px;
}

.metric {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  padding: 9px 10px;
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
}

.metric strong {
  display: block;
  margin-top: 4px;
  color: var(--brand-ink);
  font-size: 20px;
}

.metric.present {
  border-color: rgba(36, 135, 70, 0.3);
  background: #eefaf2;
}

.metric.present span,
.metric.present strong {
  color: #248746;
}

.metric.not-yet {
  border-color: rgba(47, 103, 194, 0.3);
  background: #edf4ff;
}

.metric.not-yet span,
.metric.not-yet strong {
  color: var(--blue);
}

.metric.late {
  border-color: rgba(181, 105, 0, 0.3);
  background: #fff7e8;
}

.metric.late span,
.metric.late strong {
  color: #9a5a00;
}

.metric.absent {
  border-color: rgba(190, 54, 54, 0.3);
  background: #fff0f0;
}

.metric.absent span,
.metric.absent strong {
  color: #be3636;
}

.session-actions {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.session-actions:empty {
  display: none;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

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

th {
  background: var(--brand-soft);
  color: var(--brand-ink);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

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

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 800;
}

.badge.green {
  background: var(--green-soft);
  color: var(--green);
}

.badge.amber {
  background: var(--amber-soft);
  color: var(--amber);
}

.badge.red {
  background: var(--red-soft);
  color: var(--red);
}

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

.badge.slate {
  background: var(--brand-soft);
  color: var(--brand-ink);
}

.class-card {
  display: grid;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  padding: 16px;
}

.class-card h3 {
  margin: 0 0 4px;
}

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

.timetable-matrix-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

.timetable-matrix {
  display: grid;
  min-width: 1220px;
  grid-template-columns: 132px repeat(7, minmax(145px, 1fr));
}

.matrix-corner,
.matrix-slot-head,
.matrix-day-head,
.matrix-cell {
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.matrix-corner,
.matrix-slot-head {
  min-height: 62px;
  background: var(--brand-soft);
}

.matrix-corner {
  display: flex;
  align-items: center;
  padding: 12px;
  color: var(--brand-ink);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.matrix-slot-head {
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 10px 12px;
  text-align: center;
}

.matrix-slot-head strong {
  font-size: 13px;
}

.matrix-slot-head span {
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 750;
}

.matrix-day-head {
  display: grid;
  min-height: 112px;
  align-content: center;
  gap: 5px;
  background: #fffaf5;
  padding: 12px;
}

.matrix-day-head strong {
  font-size: 13px;
  font-weight: 850;
}

.matrix-day-head span {
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 750;
}

.matrix-cell {
  min-height: 112px;
  padding: 10px;
}

.matrix-cell.empty {
  background:
    repeating-linear-gradient(
      -45deg,
      #fffaf5 0,
      #fffaf5 8px,
      #ffead6 8px,
      #ffead6 9px
    );
}

.matrix-cell.has-session {
  display: grid;
  width: 100%;
  align-content: start;
  gap: 6px;
  border-top: 0;
  border-left: 0;
  background: white;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.matrix-cell.has-session:hover {
  background: var(--brand-soft);
}

.matrix-cell.has-session strong {
  font-size: 13px;
  line-height: 1.25;
}

.matrix-cell.has-session span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.matrix-cell .badge {
  width: fit-content;
  margin-top: 2px;
}

.day-table {
  display: grid;
  gap: 14px;
}

.day-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

.day-label {
  display: flex;
  align-items: center;
  border-right: 1px solid var(--line);
  background: var(--brand-soft);
  padding: 14px;
  font-weight: 800;
}

.slot-list {
  display: grid;
}

.slot-item {
  display: grid;
  grid-template-columns: 112px 1fr 120px;
  gap: 16px;
  align-items: center;
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  background: white;
  color: inherit;
  cursor: pointer;
  padding: 13px 16px;
  text-align: left;
}

.slot-item:last-child {
  border-bottom: 0;
}

.slot-item:hover {
  background: var(--brand-soft);
}

.time {
  color: var(--brand-dark);
  font-weight: 850;
}

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

.qr-box {
  position: relative;
  display: grid;
  place-items: center;
  width: 220px;
  height: 220px;
  margin: 0 auto 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  overflow: hidden;
}

.qr-box.refreshing::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(232, 93, 4, 0.16);
  animation: qr-flash 620ms ease;
}

@keyframes qr-flash {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

.pin-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  padding: 12px;
}

.pin-value {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 4px;
}

.modal-root {
  position: fixed;
  z-index: 60;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(111, 45, 0, 0.42);
  padding: 20px;
}

.modal-root.open {
  display: flex;
}

.modal {
  width: min(520px, 100%);
  border-radius: var(--radius);
  background: white;
  padding: 20px;
  box-shadow: var(--shadow);
  animation: modal-in 180ms ease;
}

.modal-wide {
  width: min(980px, 100%);
}

.row-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

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

.student-profile {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  padding: 16px;
}

.student-photo {
  display: grid;
  width: 112px;
  height: 112px;
  place-items: center;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: white;
  color: var(--brand-ink);
  font-size: 34px;
  font-weight: 900;
}

.student-profile h4 {
  margin: 0;
  color: var(--brand-ink);
  font-size: 20px;
}

.student-profile p {
  margin: 4px 0 14px;
  color: var(--muted);
  font-weight: 750;
}

.detail-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.detail-list div {
  display: grid;
  gap: 3px;
}

.detail-list dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.detail-list dd {
  margin: 0;
  color: var(--text);
  font-weight: 700;
}

.grade-panel {
  display: grid;
  align-content: start;
  gap: 14px;
}

.grade-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  padding: 12px 14px;
}

.grade-summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.grade-summary strong {
  color: var(--brand-ink);
  font-size: 28px;
}

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

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

label {
  display: grid;
  gap: 7px;
  color: var(--brand-ink);
  font-size: 13px;
  font-weight: 750;
}

input,
select,
textarea {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  color: var(--text);
  padding: 9px 10px;
  outline: 0;
}

textarea {
  min-height: 92px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(232, 93, 4, 0.12);
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 70;
  display: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow);
  padding: 12px 14px;
  color: var(--brand-ink);
  font-weight: 750;
}

.toast.show {
  display: block;
}

.phone-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  background:
    linear-gradient(180deg, rgba(232, 93, 4, 0.16), transparent 320px),
    var(--bg);
  padding: 18px;
}

.phone {
  position: relative;
  display: flex;
  width: min(390px, 100%);
  height: min(820px, calc(100vh - 36px));
  min-height: 720px;
  flex-direction: column;
  overflow: hidden;
  border: 10px solid var(--brand-dark);
  border-radius: 38px;
  background: #fffaf5;
  box-shadow: 0 26px 60px rgba(183, 68, 3, 0.2);
}

.phone-status {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 22px 0;
  font-size: 12px;
  font-weight: 850;
}

.phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 5;
  width: 118px;
  height: 24px;
  transform: translateX(-50%);
  border-radius: 0 0 18px 18px;
  background: var(--brand-dark);
}

.phone-content {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  padding: 16px 18px 88px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.phone-content::-webkit-scrollbar {
  display: none;
}

.mobile-screen {
  display: none;
}

.mobile-screen.active {
  display: block;
  animation: screen-in 180ms ease;
}

@keyframes screen-in {
  from {
    opacity: 0;
    transform: translateX(8px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.mobile-login {
  min-height: 610px;
  align-content: center;
}

.mobile-login.active {
  display: grid;
}

.mobile-title {
  margin: 0 0 6px;
  font-size: 25px;
}

.mobile-subtitle {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 14px;
}

.student-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.avatar {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  background: var(--brand);
  color: white;
  font-weight: 850;
}

.mobile-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  padding: 14px;
  box-shadow: 0 8px 22px rgba(183, 68, 3, 0.08);
}

.quick-actions {
  display: grid;
  gap: 10px;
}

.quick-action {
  justify-content: flex-start;
  min-height: 52px;
}

.bottom-nav {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  padding: 8px 14px 18px;
}

.bottom-nav button {
  display: grid;
  place-items: center;
  gap: 3px;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--muted);
  padding: 8px 4px;
  font-size: 11px;
  font-weight: 800;
}

.bottom-nav button.active {
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.timeline {
  position: relative;
  display: grid;
  gap: 14px;
  margin-top: 10px;
  padding-left: 18px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 5px;
  width: 2px;
  background: var(--line);
}

.timeline-item {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  padding: 12px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  top: 16px;
  left: -18px;
  width: 12px;
  height: 12px;
  border: 3px solid white;
  border-radius: 999px;
  background: var(--brand);
}

.timeline-time {
  color: var(--brand-dark);
  font-size: 18px;
  font-weight: 900;
}

.scanner {
  position: relative;
  display: grid;
  height: 270px;
  place-items: center;
  overflow: hidden;
  border-radius: var(--radius);
  background:
    linear-gradient(45deg, rgba(255, 255, 255, 0.12) 25%, transparent 25%),
    var(--brand-dark);
  color: white;
}

.camera-preview {
  position: relative;
  display: grid;
  height: 270px;
  place-items: center;
  overflow: hidden;
  border-radius: var(--radius);
  color: white;
}

.front-camera {
  background:
    radial-gradient(circle at 50% 34%, rgba(255, 255, 255, 0.18), transparent 28%),
    linear-gradient(145deg, #1f2731, #3b2a24 58%, #6f2d00);
}

.rear-camera {
  background:
    linear-gradient(45deg, rgba(255, 255, 255, 0.12) 25%, transparent 25%),
    var(--brand-dark);
}

.camera-label {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.22);
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 850;
}

.camera-caption {
  position: absolute;
  right: 16px;
  bottom: 18px;
  left: 16px;
  text-align: center;
}

.face-frame {
  position: relative;
  display: grid;
  width: 190px;
  height: 220px;
  place-items: center;
}

.face-oval {
  width: 138px;
  height: 180px;
  border: 3px solid rgba(255, 255, 255, 0.96);
  border-radius: 50% / 58%;
  box-shadow:
    0 0 0 999px rgba(0, 0, 0, 0.2),
    0 0 22px rgba(255, 255, 255, 0.3);
}

.face-scan-line {
  position: absolute;
  left: 24px;
  width: 142px;
  height: 3px;
  border-radius: 999px;
  background: var(--brand);
  box-shadow: 0 0 16px var(--brand);
  animation: face-scan 1.45s ease-in-out infinite;
}

@keyframes face-scan {
  0% {
    top: 28px;
  }
  50% {
    top: 176px;
  }
  100% {
    top: 28px;
  }
}

.scan-frame {
  width: 190px;
  height: 190px;
  border: 3px solid white;
  border-radius: 18px;
}

.scan-line {
  position: absolute;
  right: 28px;
  left: 28px;
  height: 3px;
  background: var(--brand);
  box-shadow: 0 0 14px var(--brand);
  animation: scan 1.4s linear infinite;
}

@keyframes scan {
  from {
    top: 58px;
  }
  to {
    top: 270px;
  }
}

.check-steps {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.check-step {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.check-step i {
  color: #d99057;
}

.check-step.running i {
  color: var(--brand);
  animation: spin 1s linear infinite;
}

.check-step.done {
  color: var(--green);
}

.check-step.done i {
  color: var(--green);
  animation: none;
}

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

.pin-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 20px 0;
}

.pin-dot {
  width: 13px;
  height: 13px;
  border: 2px solid #d99057;
  border-radius: 999px;
}

.pin-dot.filled {
  border-color: var(--brand);
  background: var(--brand);
}

.keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 0 auto 20px;
  width: 250px;
}

.keypad button {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: white;
  color: var(--text);
  font-size: 21px;
  font-weight: 850;
}

.hidden {
  display: none !important;
}

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

  .sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .nav-section {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }

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

  .content {
    padding: 18px 16px 36px;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .split,
  .student-detail-grid {
    grid-template-columns: 1fr;
  }

  .slot-item {
    grid-template-columns: 1fr;
  }
}
