:root {
  --ink: #202b40;
  --muted: #6c7890;
  --line: #e2e7ef;
  --bg: #f5f7fb;
  --blue: #30479d;
  --pale: #eef2ff;
  --green: #147d60;
  --red: #b43d46;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  font: 14px/1.45 Inter, system-ui, Segoe UI, sans-serif;
  color: var(--ink);
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
.top {
  height: 66px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 26px;
  position: sticky;
  top: 0;
  z-index: 5;
}
.brand {
  font-weight: 800;
  font-size: 17px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.mark {
  width: 50px;
  height: 50px;
  /* background: var(--blue); */
  border-radius: 10px;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  
  
  /* font-size: 19px; */
}
.wrap {
  display: flex;
  min-height: calc(100vh - 66px);
}

/* Workspace layout */
.wrap {
  display: flex;
  min-height: calc(100vh - 66px);
}

/* Fixed sidebar — fills remaining viewport height */
.wrap > aside {
  position: fixed;
  top: 66px;
  left: 0;
  width: 220px;
  height: calc(100vh - 66px);
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 4;
}

/* Main content */
.wrap > main {
  margin-left: 220px;
  margin-right: 0;
  width: calc(100% - 220px);
  min-width: 0;
}

/* Mobile */
@media (max-width: 760px) {
  .wrap {
    display: block;
  }

  .wrap > aside {
    display: none;
  }

  .wrap > main {
    margin: 0;
    width: 100%;
    padding: 19px 13px;
  }
}
aside {
  width: 220px;
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 22px 13px;
  flex-shrink: 0;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.3px;
  font-weight: 800;
  color: #8791a4;
  padding: 5px 12px 12px;
}
.nav {
  width: 100%;
  display: block;
  text-align: left;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 12px;
  border-radius: 9px;
  margin-bottom: 4px;
}
.nav.active,
.nav:hover {
  background: var(--pale);
  color: var(--blue);
  font-weight: 700;
}
main {
  padding: 30px;
  width: min(1400px, 100%);
  margin: 0 auto;
}
.head {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.muted {
  color: var(--muted);
}
h1 {
  font-size: 27px;
  letter-spacing: -0.6px;
  margin: 0 0 5px;
}
h2 {
  font-size: 17px;
  margin: 0;
}
.btn {
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  border-radius: 9px;
  padding: 10px 14px;
  font-weight: 700;
}
.btn.primary {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.btn.danger {
  color: var(--red);
}
.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0;
}
.card,
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 19px;
}
.stat {
  font-size: 32px;
  font-weight: 800;
  margin: 6px 0;
}
.panel {
  margin-top: 16px;
}
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.field {
  border: 1px solid #d9dfeb;
  border-radius: 8px;
  padding: 10px 11px;
  background: white;
  color: var(--ink);
  width: 100%;
  min-width: 0;
}
.formgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}
.fieldgroup label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 5px;
}
.tablewrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  min-width: 580px;
}
th,
td {
  padding: 13px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
th {
  font-size: 11px;
  color: var(--muted);
  font-weight: 700;
}
td {
  font-size: 13px;
}
.pill {
  font-size: 11px;
  font-weight: 700;
  color: #334b9b;
  background: #eef2ff;
  padding: 4px 9px;
  border-radius: 99px;
  display: inline-block;
}
.pill.green {
  background: #e8f6f0;
  color: #147d60;
}
.pill.amber {
  background: #fff3df;
  color: #8a5b0a;
}
.stack {
  display: grid;
  gap: 12px;
}
.qcard {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 17px;
}
.qmeta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.optionsgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}
.opt-preview {
  padding: 9px 11px;
  background: #f5f7fa;
  border-radius: 8px;
  font-size: 12px;
}
.correct {
  background: #e9f6f0;
  color: #11664e;
}
.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 13px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.hidden {
  display: none !important;
}
.student-shell {
  max-width: 800px;
  margin: 0 auto;
  padding: 32px 18px;
}
.student-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(20px, 5vw, 42px);
}
.student-option {
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  background: white;
  border-radius: 10px;
  padding: 14px;
  margin-top: 10px;
  color: var(--ink);
}
.student-option.selected {
  background: #f0f3ff;
  border: 1.5px solid var(--blue);
}
.student-option:focus {
  outline: 2px solid var(--blue);
}
.progress {
  height: 7px;
  background: #edf0f5;
  border-radius: 8px;
  overflow: hidden;
}
.progress > div {
  height: 100%;
  background: var(--blue);
  transition: width 0.2s;
}
.qnav {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.qnav button {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
}
.qnav button.done {
  background: var(--pale);
  color: var(--blue);
}
.qnav button.current {
  background: var(--blue);
  color: white;
}
.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #202b40;
  color: #fff;
  padding: 12px 18px;
  border-radius: 9px;
  z-index: 30;
  box-shadow: 0 5px 25px #17203330;
}
.modal {
  position: fixed;
  inset: 0;
  background: #11182777;
  display: grid;
  place-items: center;
  padding: 15px;
  z-index: 20;
}
.modalbox {
  background: white;
  border-radius: 15px;
  padding: 23px;
  width: min(650px, 100%);
  max-height: 92vh;
  overflow: auto;
}
.modalhead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 17px;
}
.hint {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.55;
}
.foot {
  font-size: 11px;
  color: var(--muted);
  margin-top: 14px;
}
.mobile-nav {
  display: none;
}
#theoryAnswers textarea {
  min-height: 110px;
}
.timer {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  color: var(--blue);
  background: var(--pale);
  padding: 9px 13px;
  border-radius: 9px;
}
.empty {
  padding: 24px;
  color: var(--muted);
  text-align: center;
}
.badgeLock {
  font-size: 11px;
  color: #8a5b0a;
}
@media (max-width: 760px) {
  .wrap {
    display: block;
  }
  aside {
    display: none;
  }
  main {
    padding: 19px 13px;
  }
  .cards {
    gap: 9px;
  }
  .card {
    padding: 13px;
  }
  .stat {
    font-size: 25px;
  }
  .mobile-nav {
    display: flex;
    gap: 5px;
    overflow: auto;
    padding: 10px;
    background: #fff;
    border-bottom: 1px solid var(--line);
  }
  .mobile-nav .nav {
    white-space: nowrap;
    width: auto;
    margin: 0;
    padding: 9px 12px;
  }
  .top {
    padding: 0 13px;
  }
  .formgrid {
    grid-template-columns: 1fr;
  }
  .optionsgrid {
    grid-template-columns: 1fr;
  }
  h1 {
    font-size: 24px;
  }
}
@media print {
  .top,
  aside,
  .mobile-nav,
  .noprint {
    display: none !important;
  }
  main {
    padding: 0;
  }
  .wrap {
    display: block;
  }
  .panel,
  .card,
  .qcard {
    break-inside: avoid;
  }
}
/* Expanded workspace for question selection and file review */
.modalbox {
  width: min(1100px, 96vw);
  max-height: 94vh;
  overflow: auto;
}
.modalhead {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 2;
}
#modalContent {
  padding-bottom: 10px;
}
.login {
  max-width: 420px;
  margin: 60px auto;
}
.nav {
  font: inherit;
}


/* Configure assessment question selection */
.question-selection {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  background: #fff;
}

.question-selection-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.question-selection-count {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: var(--blue);
  background: var(--pale);
  padding: 7px 11px;
  border-radius: 9px;
  white-space: nowrap;
}

.question-selection-count small {
  font-size: 11px;
  font-weight: 600;
}

.question-selection-actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.question-selection-actions .btn {
  padding: 7px 10px;
  font-size: 12px;
}

.question-selection-list {
  max-height: 260px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 9px;
}

.question-selection-list label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}

.question-selection-list label:last-child {
  border-bottom: 0;
}

.question-selection-list label:has(input:checked) {
  background: var(--pale);
}

.question-selection-list input {
  margin-top: 3px;
  accent-color: var(--blue);
  flex-shrink: 0;
}

.question-selection-list label span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.question-selection-list label b {
  display: block;
  font-size: 13px;
}

.question-selection-list label small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 3px;
}

.question-selection-summary {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
}

@media (max-width: 600px) {
  .question-selection-head {
    align-items: flex-start;
  }

  .question-selection-count {
    font-size: 13px;
  }
}

