@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Thai:wght@400;500;600;700&display=swap");
:root {
  --ink: #163632;
  --muted: #6f807d;
  --paper: #f4f6f2;
  --white: #fff;
  --line: #dfe6e1;
  --green: #174c45;
  --green2: #23685e;
  --lime: #d9f36b;
  --red: #d9584c;
  --blue: #2878b9;
  --amber: #d18b24;
  --purple: #7956a8;
  --shadow: 0 12px 35px rgba(25, 57, 52, 0.08);
}
* {
  box-sizing: border-box;
}
html {
  font-size: 16px;
}
body {
  margin: 0;
  font-family: "IBM Plex Sans Thai", "Tahoma", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
.muted {
  color: var(--muted);
}
.block {
  display: block;
}
.tiny {
  font-size: 0.78rem;
  color: var(--muted);
}
.eyebrow {
  margin: 0 0 6px;
  color: #70827e;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  border-radius: 12px;
  background: var(--lime);
  color: var(--ink);
  font-size: 1.35rem;
  font-weight: 800;
  transform: rotate(-4deg);
}
.brand strong,
.brand small {
  display: block;
}
.brand strong {
  font-size: 1.05rem;
}
.brand small {
  font-size: 0.68rem;
  color: #8ca39f;
  font-weight: 500;
}
.brand-light {
  color: white;
}
.brand-light small {
  color: #b8ccc7;
}
.app-shell {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  position: fixed;
  z-index: 20;
  inset: 0 auto 0 0;
  width: 250px;
  padding: 25px 18px 18px;
  background: #123d37;
  color: #edf7f4;
  display: flex;
  flex-direction: column;
}
.sidebar > .brand {
  padding: 0 10px 25px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.sidebar nav {
  padding-top: 22px;
  flex: 1;
}
.nav-label {
  padding: 0 13px;
  margin: 0 0 8px;
  color: #799c95;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.sidebar nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  margin: 4px 0;
  border-radius: 10px;
  color: #b9cfca;
  font-size: 0.91rem;
  font-weight: 500;
  transition: 0.2s;
}
.sidebar nav a span {
  width: 20px;
  text-align: center;
  font-size: 1.1rem;
}
.sidebar nav a:hover,
.sidebar nav a.active {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}
.sidebar nav a.active {
  box-shadow: inset 3px 0 var(--lime);
}
.sidebar nav a.scan-nav {
  margin: 15px 0;
  background: #dff071;
  color: #193d38;
  font-weight: 700;
}
.sidebar nav a.scan-nav.active {
  background: var(--lime);
}
.sidebar-user {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 14px 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.sidebar-user strong,
.sidebar-user small {
  display: block;
  max-width: 135px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sidebar-user strong {
  font-size: 0.78rem;
}
.sidebar-user small {
  color: #89aaa3;
  font-size: 0.67rem;
}
.sidebar-user > a {
  color: #91aea8;
}

.avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #d7ebe5;
  color: var(--green);
  font-weight: 700;
}
.avatar.small {
  width: 34px;
  height: 34px;
  font-size: 0.8rem;
}
.page-wrap {
  width: calc(100% - 250px);
  margin-left: 250px;
}
.topbar {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px;
  background: rgba(244, 246, 242, 0.93);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.topbar h1 {
  margin: 0;
  font-size: 1.45rem;
}
.topbar .eyebrow {
  margin-bottom: 2px;
}
.topbar-date {
  text-align: right;
  font-weight: 600;
}
.topbar-date small {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
}
.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  font-size: 1.4rem;
}
.content {
  padding: 30px 36px 50px;
  max-width: 1500px;
  margin: auto;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 17px;
  border: 0;
  border-radius: 9px;
  font-weight: 600;
  font-size: 0.88rem;
  transition: 0.2s;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn-primary {
  background: var(--green);
  color: white;
  box-shadow: 0 6px 15px rgba(20, 76, 69, 0.15);
}
.btn-accent {
  background: var(--lime);
  color: #1c403b;
}
.btn-ghost {
  background: #edf1ee;
  color: #42605b;
}
.btn-block {
  width: 100%;
}
.alert {
  padding: 12px 15px;
  margin-bottom: 18px;
  border-radius: 9px;
  font-size: 0.88rem;
  transition: 0.4s;
}
.alert-success {
  background: #e0f5e9;
  color: #176b42;
}
.alert-danger {
  background: #fde7e4;
  color: #a63e34;
}
.alert.fade {
  opacity: 0;
}
.badge {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  white-space: nowrap;
}
.badge-green {
  background: #dbf2e3;
  color: #176440;
}
.badge-gray {
  background: #e8ecea;
  color: #63716e;
}
.badge-blue {
  background: #e0eff9;
  color: #27658f;
}
.badge-red {
  background: #fbe3df;
  color: #b2463c;
}
.badge-amber {
  background: #fff0cf;
  color: #9a6518;
}
.badge-purple {
  background: #eee7f8;
  color: #6d4799;
}
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.welcome {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 160px;
  padding: 28px 32px;
  margin-bottom: 22px;
  border-radius: 15px;
  color: white;
  background: linear-gradient(120deg, #184c45, #206359);
}
.welcome:after {
  content: "";
  position: absolute;
  right: 18%;
  top: -70px;
  width: 220px;
  height: 220px;
  border: 40px solid rgba(255, 255, 255, 0.04);
  border-radius: 50%;
}
.welcome h2 {
  font-size: 1.65rem;
  margin: 0 0 5px;
}
.welcome p:last-child {
  margin: 0;
  color: #bcd0cb;
}
.welcome .eyebrow {
  color: #bad0cb;
}
.welcome .btn {
  z-index: 1;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 22px;
}
.stat {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 13px;
}
.stat-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1.25rem;
}
.stat-icon.mint {
  background: #def3e9;
  color: #1a6a4d;
}
.stat-icon.blue {
  background: #e3f0fb;
  color: #2874ad;
}
.stat-icon.amber {
  background: #fff0cf;
  color: #a36c1a;
}
.stat-icon.coral {
  background: #fde5e0;
  color: #b64d43;
}
.stat span,
.stat small,
.stat strong {
  display: block;
}
.stat span {
  font-size: 0.76rem;
  color: var(--muted);
}
.stat strong {
  font-size: 1.6rem;
  line-height: 1.25;
}
.stat small {
  font-size: 0.67rem;
  color: #a0aaa8;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: 18px;
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px 14px;
  border-bottom: 1px solid #edf0ee;
}
.card-head h3 {
  margin: 0;
  font-size: 1rem;
}
.card-head > a {
  font-size: 0.75rem;
  color: var(--green2);
  font-weight: 600;
}
.activity-list {
  padding: 5px 22px 12px;
}
.activity {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 11px;
  padding: 13px 0;
  border-bottom: 1px solid #edf0ee;
}
.activity:last-child {
  border: 0;
}
.activity strong,
.activity span {
  display: block;
}
.activity strong {
  font-size: 0.83rem;
}
.activity span {
  font-size: 0.71rem;
  color: var(--muted);
}
.activity-time {
  text-align: right;
}
.activity-time small {
  display: block;
  margin-top: 4px;
  color: #96a29f;
  font-size: 0.65rem;
}
.due-list {
  padding: 8px 20px 15px;
}
.due-list > a {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #edf0ee;
}
.due-list > a:last-child {
  border: 0;
}
.date-tile {
  width: 41px;
  text-align: center;
  border-radius: 8px;
  overflow: hidden;
  background: #edf4f1;
}
.date-tile b,
.date-tile span {
  display: block;
}
.date-tile b {
  padding: 4px;
  font-size: 1rem;
}
.date-tile span {
  padding: 2px;
  background: var(--green);
  color: white;
  font-size: 0.59rem;
}
.due-list strong,
.due-list span {
  display: block;
}
.due-list strong {
  font-size: 0.78rem;
}
.due-list span {
  color: var(--muted);
  font-size: 0.68rem;
}
.due-list em {
  font-style: normal;
  color: var(--muted);
  font-size: 0.68rem;
}
.empty {
  text-align: center;
  padding: 35px;
  color: #879592;
  font-size: 0.86rem;
}
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 18px;
}
.toolbar p {
  margin: 0;
}
.search {
  display: flex;
  align-items: center;
  width: min(520px, 100%);
  padding-left: 13px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.search input {
  flex: 1;
  min-width: 0;
  padding: 11px 8px;
  border: 0;
  outline: 0;
}
.search button {
  align-self: stretch;
  padding: 0 17px;
  border: 0;
  background: #e9efec;
  color: var(--green);
  font-weight: 600;
}
.table-card {
  overflow: hidden;
}
.table-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 19px 22px;
  border-bottom: 1px solid var(--line);
}
.table-meta strong,
.table-meta span {
  display: block;
}
.table-meta span {
  color: var(--muted);
  font-size: 0.75rem;
}
.table-scroll {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
}
th,
td {
  text-align: left;
  padding: 13px 18px;
  border-bottom: 1px solid #edf0ee;
  white-space: nowrap;
}
th {
  background: #fafbfa;
  color: #71817e;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}
td {
  font-size: 0.8rem;
}
tbody tr:hover {
  background: #fbfcfb;
}
.person {
  display: flex;
  align-items: center;
  gap: 10px;
}
.person strong,
.person small {
  display: block;
}
.person small {
  color: var(--muted);
  font-size: 0.68rem;
}
code {
  padding: 4px 7px;
  border-radius: 5px;
  background: #eef2ef;
  color: #3c5d57;
  font-size: 0.72rem;
}
.icon-link {
  color: var(--green2);
  font-weight: 600;
  font-size: 0.73rem;
}
.form-page {
  display: grid;
  grid-template-columns: 280px minmax(0, 720px);
  gap: 30px;
  align-items: start;
  justify-content: center;
}
.form-intro {
  padding-top: 20px;
}
.form-intro h2 {
  margin: 0 0 10px;
  font-size: 1.55rem;
}
.form-intro p:last-child {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.7;
}
.form-card {
  padding: 24px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-grid label,
.stack label,
.scan-form > label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #405b56;
  font-size: 0.78rem;
  font-weight: 600;
}
.form-grid .full {
  grid-column: 1/-1;
}
.form-grid input,
.form-grid select,
.form-grid textarea,
.stack input,
.scan-form input,
.scan-form select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d8e1dc;
  border-radius: 8px;
  background: #fcfdfc;
  color: var(--ink);
  outline: 0;
}
.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus,
.stack input:focus,
.scan-form input:focus,
.scan-form select:focus {
  border-color: #4d8b81;
  box-shadow: 0 0 0 3px rgba(40, 111, 101, 0.1);
}
.check-label {
  flex-direction: row !important;
  align-items: center;
  margin-top: 23px;
}
.check-label input {
  width: auto;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 25px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.assignment-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 17px;
}
.assignment-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 285px;
  padding: 20px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 13px;
  box-shadow: 0 7px 25px rgba(24, 60, 54, 0.05);
}
.assignment-top {
  display: flex;
  justify-content: space-between;
}
.subject-chip {
  padding: 4px 8px;
  border-radius: 5px;
  background: #edf3f0;
  color: #2e6259;
  font-size: 0.68rem;
  font-weight: 700;
}
.assignment-card h3 {
  margin: 20px 0 6px;
  font-size: 1.05rem;
}
.assignment-card > p {
  height: 42px;
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  overflow: hidden;
}
.assignment-info {
  display: grid;
  grid-template-columns: 1fr 1.5fr 0.7fr;
  gap: 8px;
  margin: 18px 0;
  padding: 13px 0;
  border-block: 1px solid #edf0ee;
}
.assignment-info small,
.assignment-info b {
  display: block;
}
.assignment-info small {
  color: #8d9b98;
  font-size: 0.61rem;
}
.assignment-info b {
  font-size: 0.71rem;
}
.progress-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 0.7rem;
}
.card-link {
  margin: auto -20px -20px;
  padding: 12px 20px;
  border-radius: 0 0 13px 13px;
  background: #f8faf8;
  color: var(--green2);
  font-size: 0.74rem;
  font-weight: 700;
}
.scan-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 22px;
}
.scan-main {
  min-height: 540px;
  padding: 34px;
  border-radius: 16px;
  background: var(--green);
  color: white;
  box-shadow: 0 18px 45px rgba(17, 63, 56, 0.17);
}
.scan-heading {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 30px;
}
.scan-heading h2 {
  margin: 0 0 4px;
  font-size: 1.75rem;
}
.scan-heading p:last-child {
  margin: 0;
  color: #b5cdc7;
}
.scan-heading .eyebrow,
.scan-main .eyebrow {
  color: #a9c7c0;
}
.live-dot {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.09);
  font-size: 0.7rem;
}
.live-dot i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 5px rgba(217, 243, 107, 0.12);
}
.scan-form {
  display: flex;
  flex-direction: column;
  gap: 19px;
}
.scan-form label {
  color: #d6e5e1;
}
.scan-form input,
.scan-form select {
  padding: 13px;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: white;
}
.scan-form select option {
  color: #163632;
  background: white;
}
.barcode-input {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 7px 7px 7px 18px;
  border: 2px solid var(--lime);
  border-radius: 12px;
  background: white;
  color: var(--ink);
}
.barcode-input > span {
  font-size: 1.35rem;
}
.barcode-input input {
  border: 0;
  background: white;
  color: var(--ink);
  box-shadow: none !important;
  font-size: 1.02rem;
}
.scan-success {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 15px;
  padding: 16px;
  margin-bottom: 23px;
  border: 1px solid rgba(217, 243, 107, 0.35);
  border-radius: 12px;
  background: rgba(217, 243, 107, 0.12);
}
.success-check {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--green);
  font-size: 1.2rem;
  font-weight: 700;
}
.scan-success h3,
.scan-success p {
  margin: 0;
}
.scan-success p:last-child {
  font-size: 0.76rem;
  color: #c6d9d5;
}
.scan-tips {
  padding: 25px;
}
.scan-tips h3 {
  margin: 0 0 20px;
}
.scan-tips ol {
  list-style: none;
  padding: 0;
  margin: 0;
}
.scan-tips li {
  display: flex;
  gap: 12px;
  margin: 20px 0;
}
.scan-tips li > b {
  display: grid;
  place-items: center;
  flex: 0 0 30px;
  height: 30px;
  border-radius: 50%;
  background: #edf3f0;
  color: var(--green);
}
.scan-tips li strong,
.scan-tips li span span {
  display: block;
}
.scan-tips li span {
  font-size: 0.75rem;
  color: var(--muted);
}
.scan-tips li strong {
  color: var(--ink);
  font-size: 0.82rem;
}
.key-hint {
  padding: 14px;
  margin-top: 30px;
  border-radius: 9px;
  background: #f1f5f3;
}
.key-hint kbd {
  padding: 4px 7px;
  border: 1px solid #cbd6d1;
  border-radius: 5px;
  background: white;
  box-shadow: 0 2px #cbd6d1;
  font-size: 0.68rem;
}
.key-hint span {
  display: block;
  margin-top: 9px;
  color: var(--muted);
  font-size: 0.67rem;
}
.auth-shell {
  min-height: 100vh;
  background: white;
}
.login-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  min-height: 100vh;
}
.login-visual {
  position: relative;
  overflow: hidden;
  padding: 48px;
  background: #123f38;
}
.login-visual:before,
.login-visual:after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 70px solid rgba(255, 255, 255, 0.035);
}
.login-visual:before {
  width: 420px;
  height: 420px;
  right: -220px;
  top: -120px;
}
.login-visual:after {
  width: 280px;
  height: 280px;
  left: -190px;
  bottom: -130px;
}
.visual-content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.hero-copy {
  margin: auto 0;
  color: white;
}
.hero-copy h1 {
  margin: 8px 0 18px;
  font-size: clamp(3rem, 5vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}
.hero-copy > p:last-child {
  max-width: 500px;
  color: #b9cfca;
  font-size: 1rem;
  line-height: 1.75;
}
.hero-copy .eyebrow {
  color: var(--lime);
}
.scan-illustration {
  position: absolute;
  right: 8%;
  bottom: 10%;
  width: 190px;
  height: 100px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  transform: rotate(-4deg);
  background: rgba(255, 255, 255, 0.06);
}
.scan-illustration span {
  position: absolute;
  inset: 18px 18px 42px;
  background: repeating-linear-gradient(
    90deg,
    #d9f36b 0 3px,
    transparent 3px 7px
  );
}
.scan-illustration i {
  position: absolute;
  left: 8px;
  right: 8px;
  top: 37px;
  height: 2px;
  background: #ff7b69;
  box-shadow: 0 0 9px #ff7b69;
}
.scan-illustration b {
  position: absolute;
  bottom: 12px;
  left: 18px;
  color: white;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
}
.login-panel {
  display: grid;
  place-items: center;
  padding: 40px;
}
.login-box {
  width: min(410px, 100%);
}
.login-box h2 {
  margin: 0;
  font-size: 2.1rem;
}
.login-box > .muted {
  margin: 5px 0 27px;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 17px;
}
.stack input {
  padding: 12px;
}
.stack .btn {
  margin-top: 6px;
  padding: 13px;
}
.demo-note {
  display: flex;
  justify-content: space-between;
  padding: 12px 14px;
  margin-top: 25px;
  border-radius: 8px;
  background: #f2f5f2;
  color: var(--muted);
  font-size: 0.72rem;
}
.setup-page {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 25px;
  background: #123f38;
}
.setup-card {
  width: min(460px, 100%);
  padding: 34px;
  border-radius: 16px;
  background: white;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
}
.setup-card h1 {
  margin: 5px 0;
}
.setup-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  padding: 14px;
  margin: 20px 0;
  border-radius: 9px;
  background: #f2f5f3;
  font-size: 0.78rem;
}
.setup-info strong {
  text-align: right;
}
.error-page {
  text-align: center;
  padding: 90px 20px;
}
.error-page > strong {
  font-size: 5rem;
  color: #dce6e2;
}
.error-page h2 {
  margin: 0;
}
.error-page p {
  color: var(--muted);
}
@media (max-width: 1100px) {
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .assignment-grid {
    grid-template-columns: 1fr 1fr;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .scan-layout {
    grid-template-columns: 1fr;
  }
  .scan-tips {
    display: none;
  }
}
@media (max-width: 760px) {
  .sidebar {
    transform: translateX(-100%);
    transition: 0.25s;
  }
  .sidebar.open {
    transform: none;
    box-shadow: 15px 0 40px rgba(0, 0, 0, 0.2);
  }
  .page-wrap {
    width: 100%;
    margin: 0;
  }
  .topbar {
    height: 76px;
    padding: 0 18px;
  }
  .menu-toggle {
    display: block;
  }
  .topbar > div:first-of-type {
    flex: 1;
    margin-left: 10px;
  }
  .topbar h1 {
    font-size: 1.14rem;
  }
  .content {
    padding: 20px 16px;
  }
  .welcome {
    align-items: flex-start;
    gap: 20px;
    padding: 23px;
  }
  .welcome .btn {
    font-size: 0;
    width: 45px;
    padding: 8px;
  }
  .welcome .btn:first-letter {
    font-size: 1rem;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .stat {
    padding: 14px;
    gap: 10px;
  }
  .stat-icon {
    width: 38px;
    height: 38px;
  }
  .stat strong {
    font-size: 1.3rem;
  }
  .stat small {
    display: none;
  }
  .assignment-grid {
    grid-template-columns: 1fr;
  }
  .form-page {
    grid-template-columns: 1fr;
  }
  .form-intro {
    padding: 0;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-grid .full {
    grid-column: auto;
  }
  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .toolbar .btn {
    align-self: flex-end;
  }
  .scan-main {
    padding: 23px 18px;
  }
  .scan-heading {
    display: block;
  }
  .live-dot {
    display: inline-flex;
    margin-top: 15px;
  }
  .barcode-input {
    grid-template-columns: auto 1fr;
  }
  .barcode-input .btn {
    grid-column: 1/-1;
    margin-top: 5px;
  }
  .login-grid {
    grid-template-columns: 1fr;
  }
  .login-visual {
    display: none;
  }
  .login-panel {
    padding: 28px;
  }
  .topbar-date {
    display: none;
  }
  .table-meta {
    padding: 15px;
  }
  .scan-success {
    grid-template-columns: auto 1fr;
  }
  .scan-success > div:last-child {
    grid-column: 2;
  }
  .assignment-info {
    grid-template-columns: 1fr 1.3fr 0.6fr;
  }
}
@media (max-width: 430px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .stat small {
    display: block;
  }
  .welcome h2 {
    font-size: 1.35rem;
  }
  .welcome p:last-child {
    font-size: 0.8rem;
  }
}
.accent-link {
  background: #e9f5b2;
  color: #34540d;
}
.disabled-link {
  color: #8c9895;
  cursor: not-allowed;
}
.file-indicator {
  display: inline-block;
  padding: 4px 7px;
  border-radius: 5px;
  background: #edf4ff;
  color: #28669b;
  font-size: 0.68rem;
  font-weight: 600;
}
.assignment-brief {
  padding: 16px;
  margin-top: 20px;
  border-left: 3px solid var(--lime);
  border-radius: 0 8px 8px 0;
  background: #edf3f0;
}
.assignment-brief strong,
.assignment-brief span {
  display: block;
  font-size: 0.78rem;
}
.assignment-brief p {
  margin: 6px 0 12px !important;
  color: #536b66 !important;
  font-size: 0.76rem !important;
}
.assignment-brief span {
  color: var(--green);
  font-weight: 700;
}
.upload-zone {
  display: grid;
  place-items: center;
  min-height: 210px;
  padding: 25px;
  border: 2px dashed #b8cbc5;
  border-radius: 12px;
  background: #f8fbf9;
  text-align: center;
  cursor: pointer;
  transition: 0.2s;
}
.upload-zone:hover {
  border-color: var(--green2);
  background: #f2f8f5;
}
.upload-zone input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.upload-zone strong,
.upload-zone small {
  display: block;
}
.upload-zone small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.72rem;
}
.upload-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: #dff071;
  color: var(--green);
  font-size: 1.45rem;
  font-weight: 700;
}
.selected-files {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}
.selected-files span {
  display: flex;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 7px;
  background: #edf3f0;
  font-size: 0.72rem;
}
.selected-files small {
  color: var(--muted);
}
.field-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 18px;
  color: #405b56;
  font-size: 0.78rem;
  font-weight: 600;
}
.field-label textarea,
.review-panel textarea,
.review-panel select,
.review-panel input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d8e1dc;
  border-radius: 8px;
  background: #fcfdfc;
  color: var(--ink);
  outline: 0;
}
.current-submission {
  padding: 13px;
  margin-bottom: 16px;
  border-radius: 8px;
  background: #f2f6f4;
}
.current-submission > span {
  margin-right: 8px;
  color: var(--muted);
  font-size: 0.75rem;
}
.current-submission p {
  margin: 10px 0 0;
  font-size: 0.78rem;
}
.empty-state {
  text-align: center;
  padding: 45px 20px;
}
.empty-state strong {
  font-size: 1.05rem;
}
.empty-state p {
  color: var(--muted);
  font-size: 0.8rem;
}
.review-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 20px;
  align-items: start;
}
.review-grid > section {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.submission-summary {
  overflow: hidden;
}
.summary-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  padding: 25px;
}
.summary-head h2 {
  margin: 0 0 4px;
  font-size: 1.25rem;
}
.summary-head p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}
.student-strip {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 15px;
  padding: 17px 25px;
  background: #f5f8f6;
  border-block: 1px solid var(--line);
}
.student-strip strong,
.student-strip span,
.student-strip small,
.student-strip b {
  display: block;
}
.student-strip span,
.student-strip small {
  color: var(--muted);
  font-size: 0.68rem;
}
.student-strip b {
  font-size: 0.74rem;
}
.note-box {
  padding: 16px 25px;
  border-bottom: 1px solid var(--line);
}
.note-box strong {
  font-size: 0.76rem;
}
.note-box p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}
.attachments {
  padding: 20px 25px 25px;
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.section-title h3 {
  margin: 0;
  font-size: 0.92rem;
}
.section-title span {
  color: var(--muted);
  font-size: 0.7rem;
}
.empty.compact {
  padding: 20px;
}
.file-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 11px;
  padding: 11px;
  margin-top: 7px;
  border: 1px solid var(--line);
  border-radius: 9px;
  transition: 0.2s;
}
.file-row:hover {
  border-color: #9fbbb4;
  background: #fafcfa;
}
.file-type {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #e7f0ed;
  color: var(--green);
  font-size: 0.64rem;
  font-weight: 800;
}
.file-row strong,
.file-row small {
  display: block;
}
.file-row strong {
  font-size: 0.78rem;
}
.file-row small {
  color: var(--muted);
  font-size: 0.65rem;
}
.file-row > b {
  color: var(--green2);
  font-size: 0.7rem;
}
.timeline-card {
  padding: 21px 25px;
}
.timeline {
  position: relative;
}
.timeline:before {
  content: "";
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: #d9e2de;
}
.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 10px;
  padding: 5px 0 18px 24px;
}
.timeline-item > .badge {
  justify-self: end;
}
.timeline-item > i {
  position: absolute;
  left: 0;
  top: 10px;
  width: 11px;
  height: 11px;
  border: 3px solid white;
  border-radius: 50%;
  background: var(--green2);
  box-shadow: 0 0 0 1px #bdd0ca;
}
.timeline-item strong {
  font-size: 0.77rem;
}
.timeline-item p {
  margin: 1px 0;
  color: var(--muted);
  font-size: 0.65rem;
}
.timeline-item blockquote {
  margin: 7px 0 0;
  padding: 7px 10px;
  border-left: 2px solid var(--lime);
  background: #f5f8f6;
  font-size: 0.7rem;
}
.review-panel,
.result-panel {
  position: sticky;
  top: 20px;
  padding: 23px;
}
.review-panel h3,
.result-panel h3 {
  margin: 0 0 20px;
}
.review-panel label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 15px 0;
  color: #405b56;
  font-size: 0.76rem;
  font-weight: 600;
}
.review-panel label > span {
  float: right;
  color: var(--muted);
  font-weight: 400;
}
.score-input {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  border: 1px solid #d8e1dc;
  border-radius: 8px;
  overflow: hidden;
}
.score-input input {
  border: 0;
  font-size: 1.25rem;
  font-weight: 700;
}
.score-input b {
  padding: 0 12px;
  color: var(--muted);
  font-size: 0.75rem;
}
.score-display {
  display: flex;
  align-items: baseline;
  gap: 7px;
  padding: 20px;
  border-radius: 10px;
  background: #edf4f1;
}
.score-display strong {
  font-size: 2.6rem;
}
.score-display span {
  color: var(--muted);
  font-size: 0.75rem;
}
.result-status {
  margin: 15px 0;
}
.feedback-box {
  padding: 15px 0;
  border-top: 1px solid var(--line);
}
.feedback-box strong {
  font-size: 0.76rem;
}
.feedback-box p {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.6;
}
@media (max-width: 1100px) {
  .review-grid {
    grid-template-columns: 1fr;
  }
  .review-panel,
  .result-panel {
    position: static;
  }
}
@media (max-width: 760px) {
  .student-strip {
    grid-template-columns: auto 1fr;
  }
  .student-strip > div:nth-last-child(-n + 2) {
    grid-column: 2;
  }
  .file-row {
    grid-template-columns: auto 1fr;
  }
  .file-row > b {
    grid-column: 2;
  }
  .summary-head {
    padding: 20px;
  }
  .attachments {
    padding: 18px 20px;
  }
  .submit-page {
    display: block;
  }
}
.report-filters,
.audit-filters,
.code-filter {
  display: flex;
  align-items: end;
  gap: 12px;
  padding: 16px;
  margin-bottom: 20px;
}
.report-filters > div {
  display: grid;
  grid-template-columns: repeat(6, minmax(115px, 1fr));
  gap: 10px;
  flex: 1;
}
.report-filters label,
.audit-filters label,
.code-filter label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: #526b66;
  font-size: 0.7rem;
  font-weight: 600;
}
.report-filters input,
.report-filters select,
.audit-filters input,
.audit-filters select,
.code-filter select {
  min-height: 39px;
  padding: 8px 9px;
  border: 1px solid #d7e0dc;
  border-radius: 7px;
  background: white;
  color: var(--ink);
}
.report-filters .wide-filter {
  grid-column: span 2;
}
.report-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 24px 0 15px;
}
.report-title h2 {
  margin: 0;
}
.report-title p:last-child {
  margin: 3px 0;
  color: var(--muted);
  font-size: 0.78rem;
}
.export-actions {
  display: flex;
  gap: 8px;
}
.report-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.report-stats article {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
}
.report-stats span,
.report-stats strong {
  display: block;
}
.report-stats span {
  color: var(--muted);
  font-size: 0.69rem;
}
.report-stats strong {
  font-size: 1.5rem;
}
.feedback-cell {
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.code-tabs {
  display: flex;
  gap: 5px;
  margin-bottom: 15px;
}
.code-tabs a {
  padding: 9px 14px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
}
.code-tabs a.active {
  background: var(--green);
  color: white;
}
.code-filter {
  justify-content: flex-end;
}
.code-filter label {
  margin-right: auto;
  min-width: 220px;
}
.code-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.code-preview {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 17px;
}
.code-symbol {
  display: grid;
  place-items: center;
  min-width: 60px;
  height: 48px;
  border-radius: 7px;
  background: #edf3f0;
  font-weight: 800;
  letter-spacing: 2px;
}
.code-preview strong,
.code-preview small,
.code-preview code {
  display: block;
}
.code-preview strong {
  font-size: 0.78rem;
}
.code-preview small {
  color: var(--muted);
  font-size: 0.67rem;
}
.code-preview code {
  width: max-content;
  margin-top: 5px;
}
.center-text {
  text-align: center;
}
.audit-filters {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr auto;
}
.audit-action {
  padding: 4px 7px;
  border-radius: 5px;
  background: #e8f1ed;
  color: var(--green);
  font-size: 0.68rem;
  font-weight: 700;
}
.json-detail {
  display: block;
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 1100px) {
  .report-filters {
    align-items: stretch;
    flex-direction: column;
  }
  .report-filters > div {
    grid-template-columns: repeat(3, 1fr);
  }
  .report-filters .wide-filter {
    grid-column: span 1;
  }
  .report-filters > .btn {
    align-self: flex-end;
  }
  .code-preview-grid {
    grid-template-columns: 1fr 1fr;
  }
  .audit-filters {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 760px) {
  .report-filters > div {
    grid-template-columns: 1fr 1fr;
  }
  .report-title {
    align-items: flex-start;
    flex-direction: column;
  }
  .export-actions {
    width: 100%;
  }
  .export-actions .btn {
    flex: 1;
  }
  .report-stats {
    grid-template-columns: 1fr 1fr;
  }
  .code-preview-grid {
    grid-template-columns: 1fr;
  }
  .code-filter {
    align-items: stretch;
    flex-direction: column;
  }
  .code-filter label {
    margin: 0;
  }
  .audit-filters {
    grid-template-columns: 1fr;
  }
}
.sidebar nav {
  overflow-y: auto;
  scrollbar-width: thin;
}
.classroom-picker {
  grid-column: 1/-1;
  margin: 0;
  padding: 14px;
  border: 1px solid #d8e1dc;
  border-radius: 9px;
}
.classroom-picker legend {
  padding: 0 6px;
  color: #405b56;
  font-size: 0.78rem;
  font-weight: 600;
}
.classroom-picker > label {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 9px;
  padding: 9px;
  margin: 5px 0;
  border-radius: 7px;
  background: #f5f8f6;
  cursor: pointer;
}
.classroom-picker input {
  width: auto;
}
.classroom-picker strong,
.classroom-picker small {
  display: block;
}
.classroom-picker small {
  color: var(--muted);
  font-size: 0.65rem;
}
.master-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.master-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 15px;
  padding: 20px;
}
.master-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: #dff071;
  color: var(--green);
  font-size: 1.25rem;
  font-weight: 700;
}
.master-content > div {
  display: flex;
  align-items: center;
  gap: 7px;
}
.master-content h3 {
  margin: 7px 0 2px;
  font-size: 1rem;
}
.master-content p {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
}
@media (max-width: 760px) {
  .master-grid {
    grid-template-columns: 1fr;
  }
  .master-card {
    grid-template-columns: auto 1fr;
  }
  .master-card > a {
    grid-column: 2;
  }
  .classroom-picker {
    grid-column: auto;
  }
}
.brand-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 10px;
  background: white;
  padding: 3px;
}
.card,
.assignment-card {
  border-radius: var(--radius, 14px);
}
.app-footer {
  padding: 0 36px 20px;
  color: var(--muted);
  font-size: 0.68rem;
  text-align: right;
}
.settings-layout {
  display: grid;
  grid-template-columns: 245px minmax(0, 850px);
  gap: 20px;
  align-items: start;
  justify-content: center;
}
.settings-nav {
  position: sticky;
  top: 18px;
  padding: 19px;
}
.settings-nav h3 {
  margin: 0 0 17px;
}
.settings-nav > a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px;
  margin: 4px 0;
  border-radius: 9px;
  color: var(--muted);
}
.settings-nav > a:hover,
.settings-nav > a.active {
  background: #edf4f1;
  color: var(--green);
}
.settings-nav > a > span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: white;
  border: 1px solid var(--line);
}
.settings-nav strong,
.settings-nav small {
  display: block;
}
.settings-nav strong {
  font-size: 0.78rem;
}
.settings-nav small {
  font-size: 0.63rem;
}
.settings-content {
  min-width: 0;
}
.settings-card {
  padding: 24px;
}
.settings-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.settings-head h2 {
  margin: 0;
}
.settings-head p:last-child {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
}
.settings-section-title {
  margin: 25px 3px 12px;
}
.settings-section-title h3,
.settings-section-title p {
  margin: 0;
}
.settings-section-title p {
  color: var(--muted);
  font-size: 0.72rem;
}
.basic-data-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.basic-data-grid > .card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px;
}
.basic-data-grid > .card > span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: #e9f1ee;
  color: var(--green);
}
.basic-data-grid strong,
.basic-data-grid small {
  display: block;
}
.basic-data-grid strong {
  font-size: 0.76rem;
}
.basic-data-grid small {
  color: var(--muted);
  font-size: 0.65rem;
}
.basic-static {
  opacity: 0.75;
}
.theme-editor {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}
.theme-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.theme-fields > label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #526b66;
  font-size: 0.72rem;
  font-weight: 600;
}
.theme-fields select {
  padding: 9px;
  border: 1px solid #d8e1dc;
  border-radius: 8px;
  background: white;
}
.color-field > div {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px;
  border: 1px solid #d8e1dc;
  border-radius: 8px;
}
.color-field input {
  width: 38px;
  height: 28px;
  padding: 0;
  border: 0;
  background: none;
}
.color-field code {
  background: none;
}
.theme-preview {
  display: grid;
  grid-template-columns: 75px 1fr;
  min-height: 245px;
  border: 7px solid #e9eeeb;
  border-radius: 15px;
  overflow: hidden;
  background: var(--preview-bg);
}
.theme-preview > aside {
  padding: 13px;
  background: var(--preview-side);
}
.theme-preview > aside b {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 7px;
  background: var(--preview-accent);
}
.theme-preview > aside i {
  display: block;
  height: 8px;
  margin-top: 15px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.18);
}
.theme-preview > main header {
  height: 43px;
  background: white;
  border-bottom: 1px solid #ddd;
}
.theme-preview > main section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 13px;
}
.theme-preview > main section div {
  height: 58px;
  border-radius: 8px;
  background: white;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}
.theme-preview button {
  grid-column: 1/-1;
  padding: 8px;
  border: 0;
  border-radius: 7px;
  background: var(--preview-primary);
  color: white;
}
.reset-theme-form {
  text-align: right;
  margin-top: 10px;
}
.asset-field img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin-top: 7px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 4px;
}
.asset-field img.wide-asset {
  width: 160px;
  object-fit: cover;
}
.asset-field > span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.67rem;
}
.asset-field > span input {
  width: auto;
}
.login-mini-preview {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  min-height: 220px;
  margin-top: 18px;
  overflow: hidden;
}
.login-mini-preview > div {
  padding: 24px;
  color: white;
}
.login-mini-preview > div p {
  font-size: 0.55rem;
  letter-spacing: 0.12em;
}
.login-mini-preview > div strong {
  font-size: 1.5rem;
}
.login-mini-preview > section {
  padding: 28px;
}
.login-mini-preview small {
  color: var(--muted);
}
.login-mini-preview h3 {
  margin: 4px 0 18px;
}
.login-mini-preview i {
  display: block;
  height: 29px;
  margin: 8px 0;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.login-mini-preview button {
  width: 100%;
  padding: 8px;
  border: 0;
  border-radius: 6px;
  background: var(--green);
  color: white;
}
@media (max-width: 1000px) {
  .settings-layout {
    grid-template-columns: 1fr;
  }
  .settings-nav {
    position: static;
    display: flex;
    align-items: center;
    gap: 5px;
    overflow: auto;
  }
  .settings-nav > .eyebrow,
  .settings-nav > h3 {
    display: none;
  }
  .settings-nav > a {
    min-width: 170px;
  }
  .theme-editor {
    grid-template-columns: 1fr;
  }
  .basic-data-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 760px) {
  .settings-card {
    padding: 18px;
  }
  .settings-head {
    flex-direction: column;
  }
  .settings-head .btn {
    width: 100%;
  }
  .theme-fields {
    grid-template-columns: 1fr;
  }
  .basic-data-grid {
    grid-template-columns: 1fr;
  }
  .login-mini-preview {
    grid-template-columns: 1fr;
  }
  .app-footer {
    padding: 0 16px 15px;
  }
  .settings-nav {
    padding: 8px;
  }
}
.indicator-toolbar .search {
  width: min(720px, 100%);
}
.search select {
  align-self: stretch;
  max-width: 210px;
  border: 0;
  border-left: 1px solid var(--line);
  background: white;
  color: var(--ink);
}
.indicator-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.indicator-card {
  display: flex;
  flex-direction: column;
  min-height: 255px;
  padding: 20px;
}
.indicator-card-head {
  display: flex;
  justify-content: space-between;
}
.indicator-card h3 {
  margin: 15px 0 5px;
  font-size: 1rem;
}
.indicator-card > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.73rem;
  line-height: 1.6;
}
.indicator-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 15px 0;
  padding: 11px 0;
  border-block: 1px solid var(--line);
}
.indicator-meta small,
.indicator-meta b {
  display: block;
}
.indicator-meta small {
  color: var(--muted);
  font-size: 0.6rem;
}
.indicator-meta b {
  font-size: 0.7rem;
}
.indicator-score-meta {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.indicator-score-meta span {
  padding: 4px 7px;
  border-radius: 5px;
  background: #edf3f0;
  color: #506965;
  font-size: 0.64rem;
}
.indicator-card > a {
  margin-top: auto;
  padding-top: 13px;
  color: var(--green2);
  font-size: 0.72rem;
  font-weight: 700;
}
.mapping-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.mapping-heading h2,
.mapping-heading p {
  margin: 0;
}
.mapping-heading p {
  color: var(--muted);
  font-size: 0.75rem;
}
.mapping-total {
  text-align: right;
}
.mapping-total span,
.mapping-total strong {
  display: block;
}
.mapping-total span {
  color: var(--muted);
  font-size: 0.65rem;
}
.mapping-total strong {
  font-size: 1.8rem;
}
.mapping-form {
  padding: 22px;
}
.mapping-help {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.mapping-help p {
  margin: 3px 0;
  color: var(--muted);
  font-size: 0.73rem;
}
.mapping-list {
  display: flex;
  flex-direction: column;
}
.mapping-row {
  display: grid;
  grid-template-columns: auto 1fr 110px 110px;
  align-items: center;
  gap: 13px;
  padding: 14px 5px;
  border-bottom: 1px solid #edf0ee;
}
.mapping-row > input {
  width: 18px;
  height: 18px;
}
.mapping-description code,
.mapping-description strong,
.mapping-description small {
  display: block;
}
.mapping-description strong {
  margin: 4px 0;
  font-size: 0.8rem;
}
.mapping-description small {
  color: var(--muted);
  font-size: 0.68rem;
}
.mapping-row > span {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--muted);
  font-size: 0.64rem;
}
.mapping-row input[type="number"] {
  width: 100%;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.assignment-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: auto -20px -20px;
  border-radius: 0 0 13px 13px;
  overflow: hidden;
}
.assignment-actions a {
  padding: 12px;
  background: #f5f8f6;
  color: var(--green2);
  font-size: 0.7rem;
  font-weight: 700;
  text-align: center;
}
.assignment-actions a + a {
  border-left: 1px solid var(--line);
}
.indicator-breakdown {
  padding: 21px 25px;
}
.breakdown-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.breakdown-row:last-child {
  border: 0;
}
.breakdown-row > div code,
.breakdown-row > div strong {
  display: block;
}
.breakdown-row > div strong {
  margin-top: 4px;
  font-size: 0.76rem;
}
.breakdown-row > small {
  grid-column: 1;
  color: var(--muted);
  font-size: 0.64rem;
}
.breakdown-score {
  font-weight: 700;
  font-size: 0.76rem;
}
.pass-pill,
.fail-pill {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.65rem;
  white-space: nowrap;
}
.pass-pill {
  background: #dbf2e3;
  color: #176440;
}
.fail-pill {
  background: #fbe3df;
  color: #b2463c;
}
.review-indicators {
  margin-bottom: 15px;
}
.review-indicators > strong {
  display: block;
  margin-bottom: 8px;
  font-size: 0.76rem;
}
.review-indicators > label {
  display: grid;
  grid-template-columns: 1fr 72px;
  align-items: center;
  gap: 8px;
  padding: 9px 0;
  margin: 0;
  border-bottom: 1px solid var(--line);
}
.review-indicators label > span {
  font-size: 0.68rem;
}
.review-indicators label code,
.review-indicators label small {
  display: block;
  width: max-content;
}
.review-indicators label small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.6rem;
}
.review-indicators input {
  padding: 7px !important;
  text-align: center;
}
.review-indicators > p {
  color: var(--muted);
  font-size: 0.62rem;
}
.indicator-result-hero {
  display: flex;
  justify-content: space-between;
  align-items: end;
  padding: 24px 28px;
  margin-bottom: 15px;
  border-radius: 14px;
  background: linear-gradient(120deg, var(--green), var(--green2));
  color: white;
}
.indicator-result-hero h2,
.indicator-result-hero p {
  margin: 0;
}
.indicator-result-hero p:last-child {
  color: #bed3ce;
  font-size: 0.76rem;
}
.indicator-result-hero .eyebrow {
  color: var(--lime);
}
.indicator-result-hero select {
  min-width: 210px;
  padding: 9px;
  border: 0;
  border-radius: 8px;
}
.indicator-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}
.indicator-summary article {
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
}
.indicator-summary span,
.indicator-summary strong,
.indicator-summary small {
  display: block;
}
.indicator-summary span,
.indicator-summary small {
  color: var(--muted);
  font-size: 0.65rem;
}
.indicator-summary strong {
  font-size: 1.45rem;
}
.indicator-summary .pass {
  border-left: 3px solid #3a9b68;
}
.indicator-summary .fail {
  border-left: 3px solid #d9584c;
}
.student-indicator-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.student-indicator-card {
  padding: 19px;
}
.result-code {
  display: flex;
  justify-content: space-between;
}
.student-indicator-card h3 {
  margin: 13px 0 4px;
  font-size: 0.9rem;
}
.student-indicator-card > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.68rem;
}
.indicator-progress {
  height: 7px;
  margin: 16px 0 8px;
  border-radius: 5px;
  background: #e8eeeb;
  overflow: hidden;
}
.indicator-progress div {
  height: 100%;
  background: var(--green2);
}
.result-numbers {
  display: flex;
  justify-content: space-between;
}
.result-numbers strong {
  font-size: 0.75rem;
}
.result-numbers span {
  color: var(--muted);
  font-size: 0.62rem;
}
@media (max-width: 900px) {
  .indicator-grid,
  .student-indicator-list {
    grid-template-columns: 1fr;
  }
  .mapping-row {
    grid-template-columns: auto 1fr;
  }
  .mapping-row > span {
    grid-column: 2;
  }
  .indicator-summary {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 600px) {
  .indicator-result-hero {
    align-items: stretch;
    flex-direction: column;
    gap: 15px;
  }
  .indicator-result-hero select {
    width: 100%;
  }
  .result-numbers {
    flex-direction: column;
    gap: 4px;
  }
  .mapping-heading {
    align-items: flex-start;
  }
  .mapping-total {
    display: none;
  }
  .breakdown-row {
    grid-template-columns: 1fr auto;
  }
  .breakdown-row > b {
    grid-column: 2;
  }
  .indicator-toolbar .search {
    flex-wrap: wrap;
  }
  .indicator-toolbar .search select {
    width: 100%;
    max-width: none;
    min-height: 40px;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}
.student-editor {
  display: grid;
  grid-template-columns: minmax(0, 760px) 330px;
  gap: 22px;
  align-items: start;
  justify-content: center;
}
.student-form-card {
  padding: 25px;
}
.editor-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.editor-head h2,
.editor-head p {
  margin: 0;
}
.editor-head p:last-child {
  color: var(--muted);
  font-size: 0.75rem;
}
.step-badge {
  padding: 5px 9px;
  border-radius: 20px;
  background: #e8f1ed;
  color: var(--green);
  font-size: 0.65rem;
  font-weight: 700;
}
.form-section {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.form-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}
.form-section-title > b {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border-radius: 50%;
  background: var(--green);
  color: white;
  font-size: 0.73rem;
}
.form-section-title strong,
.form-section-title small {
  display: block;
}
.form-section-title strong {
  font-size: 0.8rem;
}
.form-section-title small {
  color: var(--muted);
  font-size: 0.65rem;
}
.form-grid.three-cols {
  grid-template-columns: 0.8fr 1fr 1fr;
}
.form-grid label > small {
  color: var(--muted);
  font-size: 0.61rem;
}
.student-form-card input[readonly] {
  background: #edf3f0;
  color: var(--green);
  font-weight: 700;
}
.student-preview-wrap {
  position: sticky;
  top: 18px;
  padding-top: 8px;
}
.student-preview-wrap > h3 {
  margin: 0 0 14px;
}
.student-id-card {
  overflow: hidden;
  border-radius: 16px;
  background: white;
  box-shadow: 0 18px 45px rgba(22, 54, 50, 0.15);
}
.student-id-card header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  padding: 18px;
  background: var(--green);
  color: white;
}
.student-id-card header > div {
  display: flex;
  align-items: center;
  gap: 9px;
}
.student-id-card header strong,
.student-id-card header small {
  display: block;
}
.student-id-card header strong {
  font-size: 0.7rem;
}
.student-id-card header small {
  color: #c3d8d3;
  font-size: 0.56rem;
}
.student-id-card header > b {
  font-size: 0.68rem;
}
.student-id-card main {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 13px;
  padding: 20px;
}
.student-photo-placeholder {
  display: grid;
  place-items: center;
  width: 63px;
  height: 72px;
  border-radius: 10px;
  background: #e5efeb;
  color: var(--green);
  font-size: 1.6rem;
}
.student-id-card main strong,
.student-id-card main span {
  display: block;
}
.student-id-card main > div > strong {
  margin-bottom: 7px;
  font-size: 0.85rem;
}
.student-id-card main span {
  color: var(--muted);
  font-size: 0.63rem;
}
.student-id-card footer {
  padding: 0 20px 18px;
  text-align: center;
}
.student-id-card footer svg {
  width: 100%;
  height: 55px;
}
.student-id-card footer code {
  display: block;
  margin-top: 4px;
  background: none;
  letter-spacing: 0.15em;
}
.preview-note {
  display: flex;
  gap: 10px;
  padding: 13px;
  margin-top: 15px;
  border-radius: 10px;
  background: #edf4f1;
}
.preview-note > span {
  display: grid;
  place-items: center;
  flex: 0 0 29px;
  height: 29px;
  border-radius: 50%;
  background: var(--lime);
  font-weight: 700;
}
.preview-note p,
.preview-note strong {
  display: block;
  margin: 0;
}
.preview-note p {
  color: var(--muted);
  font-size: 0.65rem;
  line-height: 1.5;
}
.preview-note strong {
  color: var(--ink);
  font-size: 0.7rem;
}
.mobile-scan-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 20px;
  align-items: start;
}
.scan-workspace {
  padding: 28px;
  border-radius: 17px;
  background: var(--green);
  color: white;
  box-shadow: 0 18px 45px rgba(17, 63, 56, 0.17);
}
.scan-workspace-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 24px;
}
.scan-workspace-head h2,
.scan-workspace-head p {
  margin: 0;
}
.scan-workspace-head p:last-child {
  color: #bdd1cc;
  font-size: 0.78rem;
}
.scan-workspace-head .eyebrow {
  color: var(--lime);
}
.scanner-ready {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.65rem;
}
.scanner-ready i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
}
.modern-scan-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.assignment-selector,
.scan-method-title {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 11px;
  align-items: start;
}
.assignment-selector > span,
.scan-method-title > span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 700;
}
.assignment-selector strong,
.assignment-selector small,
.scan-method-title strong,
.scan-method-title small {
  display: block;
}
.assignment-selector strong,
.scan-method-title strong {
  font-size: 0.78rem;
}
.assignment-selector small,
.scan-method-title small {
  color: #b7cec8;
  font-size: 0.64rem;
}
.assignment-selector select {
  width: 100%;
  margin-top: 9px;
  padding: 11px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.09);
  color: white;
}
.assignment-selector option {
  color: var(--ink);
  background: white;
}
.scan-methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.scan-method {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 76px;
  padding: 11px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: white;
  text-align: left;
  cursor: pointer;
}
.scan-method:hover {
  border-color: var(--lime);
  background: rgba(255, 255, 255, 0.1);
}
.scan-method > b {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 1.05rem;
}
.scan-method strong,
.scan-method small {
  display: block;
}
.scan-method strong {
  font-size: 0.68rem;
}
.scan-method small {
  color: #b9cdc9;
  font-size: 0.57rem;
}
.scan-method input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.barcode-entry {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 9px 9px 9px 16px;
  border: 2px solid var(--lime);
  border-radius: 12px;
  background: white;
  color: var(--ink);
}
.barcode-entry > span {
  font-size: 1.5rem;
}
.barcode-entry label,
.barcode-entry small {
  display: block;
}
.barcode-entry label {
  font-size: 0.62rem;
  color: var(--muted);
}
.barcode-entry input {
  width: 100%;
  padding: 3px 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 700;
}
.barcode-entry small {
  color: #80908d;
  font-size: 0.58rem;
}
.barcode-entry small[data-state="success"] {
  color: #238052;
}
.barcode-entry small[data-state="error"] {
  color: #c3493e;
}
.barcode-entry small[data-state="warning"] {
  color: #a46b16;
}
.scan-note {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: #c6d8d4;
  font-size: 0.68rem;
}
.scan-note input {
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: white;
}
.camera-panel {
  margin-top: 20px;
  padding: 14px;
  border-radius: 13px;
  background: #0b2824;
}
.camera-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.camera-top strong,
.camera-top small {
  display: block;
}
.camera-top strong {
  font-size: 0.75rem;
}
.camera-top small {
  color: #9ebbb5;
  font-size: 0.6rem;
}
.camera-top button {
  border: 0;
  background: transparent;
  color: white;
}
.video-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  aspect-ratio: 4/3;
  background: #061713;
}
.video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.scan-frame {
  position: absolute;
  inset: 25% 10%;
  border: 2px solid var(--lime);
  border-radius: 8px;
  box-shadow: 0 0 0 999px rgba(0, 0, 0, 0.28);
}
.scan-frame i {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  background: #ff6e61;
  box-shadow: 0 0 10px #ff6e61;
}
.camera-panel > p {
  margin: 9px 0 0;
  color: #9cb7b2;
  font-size: 0.61rem;
  text-align: center;
}
.mobile-scan-guide {
  padding: 23px;
}
.mobile-scan-guide h3 {
  margin: 0;
}
.phone-illustration {
  display: grid;
  place-items: center;
  padding: 22px 0;
}
.phone-illustration > div {
  position: relative;
  width: 105px;
  height: 170px;
  border: 5px solid var(--green);
  border-radius: 18px;
  background: #eef4f1;
}
.phone-illustration span {
  position: absolute;
  inset: 40px 14px 65px;
  background: repeating-linear-gradient(
    90deg,
    var(--green) 0 2px,
    transparent 2px 5px
  );
}
.phone-illustration i {
  position: absolute;
  left: 7px;
  right: 7px;
  top: 70px;
  height: 2px;
  background: #e7594d;
}
.phone-illustration b {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 45px;
  text-align: center;
  font-size: 0.55rem;
}
.mobile-scan-guide ol {
  list-style: none;
  padding: 0;
  margin: 0;
}
.mobile-scan-guide li {
  display: flex;
  gap: 9px;
  margin: 13px 0;
  color: var(--muted);
  font-size: 0.68rem;
}
.mobile-scan-guide li > b {
  display: grid;
  place-items: center;
  flex: 0 0 24px;
  height: 24px;
  border-radius: 50%;
  background: #e5efeb;
  color: var(--green);
}
.secure-note {
  padding: 12px;
  margin-top: 18px;
  border-radius: 9px;
  background: #fff2d8;
}
.secure-note strong {
  font-size: 0.68rem;
  color: #8a5c16;
}
.secure-note p {
  margin: 3px 0;
  color: #956e31;
  font-size: 0.61rem;
}
@media (max-width: 1050px) {
  .student-editor {
    grid-template-columns: 1fr;
  }
  .student-preview-wrap {
    position: static;
    max-width: 370px;
    margin: auto;
  }
  .mobile-scan-layout {
    grid-template-columns: 1fr;
  }
  .mobile-scan-guide {
    display: none;
  }
}
@media (max-width: 700px) {
  .student-form-card {
    padding: 18px;
  }
  .form-grid.three-cols {
    grid-template-columns: 1fr;
  }
  .student-editor .form-grid {
    grid-template-columns: 1fr;
  }
  .editor-head {
    flex-direction: column;
    gap: 8px;
  }
  .scan-workspace {
    padding: 20px 14px;
  }
  .scan-workspace-head {
    display: block;
  }
  .scanner-ready {
    display: inline-flex;
    margin-top: 12px;
  }
  .scan-methods {
    grid-template-columns: 1fr;
  }
  .scan-method {
    min-height: 62px;
  }
  .barcode-entry {
    grid-template-columns: auto 1fr;
  }
  .barcode-entry .btn {
    grid-column: 1/-1;
    width: 100%;
  }
  .camera-panel {
    margin-inline: -4px;
  }
}
.user-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}
.user-summary article {
  padding: 17px 20px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: white;
}
.user-summary span,
.user-summary strong {
  display: block;
}
.user-summary span {
  color: var(--muted);
  font-size: 0.67rem;
}
.user-summary strong {
  font-size: 1.5rem;
}
.user-toolbar .search {
  width: min(850px, 100%);
}
.user-toolbar .search select {
  align-self: stretch;
  max-width: 145px;
  border: 0;
  border-left: 1px solid var(--line);
  background: white;
  color: var(--ink);
}
.table-meta small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.65rem;
}
.role-chip {
  display: inline-block;
  padding: 5px 8px;
  border-radius: 6px;
  font-size: 0.67rem;
  font-weight: 700;
}
.role-admin {
  background: #eee7f8;
  color: #684795;
}
.role-teacher {
  background: #e0eff9;
  color: #27658f;
}
.role-student {
  background: #e0f3e8;
  color: #23704a;
}
.user-editor {
  display: grid;
  grid-template-columns: minmax(0, 760px) 300px;
  gap: 20px;
  align-items: start;
  justify-content: center;
}
.user-form-card {
  padding: 25px;
}
.user-form-error {
  margin-top: 18px;
}
.role-picker {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}
.role-picker label {
  position: relative;
  cursor: pointer;
}
.role-picker input {
  position: absolute;
  opacity: 0;
}
.role-picker span {
  display: block;
  min-height: 105px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fafcfa;
}
.role-picker b,
.role-picker small {
  display: block;
}
.role-picker b {
  font-size: 0.76rem;
}
.role-picker small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.62rem;
  line-height: 1.5;
}
.role-picker input:checked + span {
  border-color: var(--green);
  background: #edf5f1;
  box-shadow: 0 0 0 2px rgba(23, 76, 69, 0.08);
}
.reference-fields {
  margin-top: 14px;
}
.reference-fields label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #405b56;
  font-size: 0.72rem;
  font-weight: 600;
}
.reference-fields select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d8e1dc;
  border-radius: 8px;
  background: white;
}
.access-guide {
  position: sticky;
  top: 18px;
  padding: 22px;
}
.access-guide h3 {
  margin: 0 0 17px;
}
.access-guide > div {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.access-guide b,
.access-guide p {
  display: block;
  margin: 0;
}
.access-guide b {
  font-size: 0.75rem;
}
.access-guide p,
.access-guide > small {
  color: var(--muted);
  font-size: 0.64rem;
  line-height: 1.55;
}
.access-guide > small {
  display: block;
  margin-top: 16px;
  padding: 11px;
  border-radius: 8px;
  background: #f0f4f2;
}
@media (max-width: 1050px) {
  .user-editor {
    grid-template-columns: 1fr;
  }
  .access-guide {
    display: none;
  }
  .user-summary {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 700px) {
  .user-summary {
    grid-template-columns: 1fr 1fr;
  }
  .user-toolbar .search {
    flex-wrap: wrap;
  }
  .user-toolbar .search select {
    width: 50%;
    max-width: none;
    min-height: 40px;
    border-top: 1px solid var(--line);
  }
  .role-picker {
    grid-template-columns: 1fr;
  }
  .role-picker span {
    min-height: auto;
  }
  .user-form-card {
    padding: 18px;
  }
}
[hidden] {
  display: none !important;
}
.student-card-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px;
  margin-bottom: 15px;
  border-radius: 14px;
  background: linear-gradient(120deg, var(--green), var(--green2));
  color: white;
}
.student-card-hero h2,
.student-card-hero p {
  margin: 0;
}
.student-card-hero p:last-child {
  color: #c4d8d3;
  font-size: 0.75rem;
}
.student-card-hero .eyebrow {
  color: var(--lime);
}
.student-card-hero > div:last-child {
  text-align: center;
}
.student-card-hero > div:last-child strong,
.student-card-hero > div:last-child span {
  display: block;
}
.student-card-hero > div:last-child strong {
  font-size: 2rem;
}
.student-card-hero > div:last-child span {
  color: #c4d8d3;
  font-size: 0.65rem;
}
.student-card-tools {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) 180px auto auto auto;
  align-items: end;
  gap: 10px;
  padding: 16px;
}
.student-card-tools label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: #526762;
  font-size: 0.67rem;
  font-weight: 600;
}
.student-card-tools input,
.student-card-tools select {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}
.student-card-selection {
  display: flex;
  justify-content: space-between;
  margin: 14px 2px;
  color: var(--muted);
  font-size: 0.68rem;
}
.student-card-selection b {
  color: var(--green);
}
.student-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(250px, 1fr));
  gap: 14px;
}
.printable-student-card {
  position: relative;
  cursor: pointer;
}
.printable-student-card > input {
  position: absolute;
  opacity: 0;
}
.printable-student-card > article {
  overflow: hidden;
  aspect-ratio: 1.585/1;
  border: 2px solid transparent;
  border-radius: 14px;
  background: white;
  box-shadow: var(--shadow);
  transition: 0.18s;
}
.printable-student-card > input:checked + article {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(23, 76, 69, 0.1);
}
.printable-student-card > i {
  position: absolute;
  right: 10px;
  top: 10px;
  display: none;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--green);
  font-style: normal;
  font-weight: bold;
}
.printable-student-card > input:checked ~ i {
  display: grid;
}
.printable-student-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  background: var(--green);
  color: white;
}
.printable-student-card header > div {
  display: flex;
  align-items: center;
  gap: 7px;
}
.printable-student-card .brand-mark {
  width: 29px;
  height: 29px;
  font-size: 0.9rem;
}
.printable-student-card .brand-logo {
  width: 29px;
  height: 29px;
  object-fit: contain;
}
.printable-student-card header strong,
.printable-student-card header small {
  display: block;
}
.printable-student-card header strong {
  max-width: 190px;
  font-size: 0.62rem;
}
.printable-student-card header small {
  color: #c5d9d4;
  font-size: 0.5rem;
}
.printable-student-card header > b {
  font-size: 0.6rem;
}
.printable-student-card main {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 13px 15px 7px;
}
.card-avatar {
  display: grid;
  place-items: center;
  width: 48px;
  height: 54px;
  border-radius: 9px;
  background: #e4efeb;
  color: var(--green);
  font-weight: bold;
}
.printable-student-card h3 {
  margin: 0 0 4px;
  font-size: 0.78rem;
}
.printable-student-card main p {
  margin: 2px 0;
  color: var(--muted);
  font-size: 0.58rem;
}
.printable-student-card footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  padding: 2px 15px 12px;
}
.mini-bars {
  width: 58%;
  height: 25px;
  background: repeating-linear-gradient(
    90deg,
    var(--green) 0 2px,
    transparent 2px 5px
  );
}
.printable-student-card footer code {
  background: none;
  font-size: 0.58rem;
  letter-spacing: 0.08em;
}
@media (max-width: 1100px) {
  .student-card-tools {
    grid-template-columns: 1fr 1fr auto;
  }
  .student-card-tools .btn {
    width: 100%;
  }
  .student-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 700px) {
  .student-card-hero {
    align-items: flex-start;
    gap: 12px;
    padding: 20px;
  }
  .student-card-hero > div:last-child {
    display: none;
  }
  .student-card-tools {
    grid-template-columns: 1fr;
  }
  .student-card-selection {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
  .student-card-grid {
    grid-template-columns: 1fr;
  }
}
