.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(330px, .9fr) minmax(480px, 1.1fr);
  background: #eef2f3;
}

.auth-brand {
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding: 56px clamp(34px, 7vw, 100px);
  color: #fff;
  background:
    linear-gradient(rgba(14, 54, 55, .9), rgba(14, 54, 55, .96)),
    repeating-linear-gradient(135deg, transparent 0 22px, rgba(255, 255, 255, .06) 22px 23px);
}

.auth-brand-inner {
  max-width: 520px;
}

.auth-shield {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  color: #75dbc9;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  background: rgba(255, 255, 255, .07);
}

.auth-shield svg {
  width: 52px;
  fill: rgba(117, 219, 201, .08);
}

.auth-shield path + path {
  fill: none;
  stroke-width: 2.5;
}

.auth-brand .eyebrow {
  color: #75dbc9;
}

.auth-brand h1 {
  max-width: 500px;
  margin: 8px 0 14px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.03;
}

.auth-brand-inner > p:not(.eyebrow) {
  max-width: 470px;
  margin: 0;
  color: #d0e2df;
  font-size: 16px;
}

.auth-assurance {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin-top: 36px;
}

.auth-assurance span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #dceae8;
  font-size: 12px;
  font-weight: 700;
}

.auth-assurance svg {
  width: 20px;
  color: #75dbc9;
}

.auth-panel {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 38px;
}

.auth-card {
  width: min(440px, 100%);
  overflow: hidden;
  border: 1px solid #d8e0e3;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(22, 41, 51, .12);
}

.auth-form {
  position: relative;
  display: grid;
  gap: 16px;
  padding: 34px;
}

.auth-heading {
  margin-bottom: 4px;
}

.auth-heading h2 {
  margin: 3px 0 7px;
  color: #172033;
  font-size: 25px;
}

.auth-heading p:last-child {
  margin: 0;
  color: #697386;
  font-size: 12px;
}

.auth-form label {
  display: grid;
  gap: 6px;
  color: #344054;
  font-size: 11px;
  font-weight: 800;
}

.auth-form input,
.form-stack select,
.assessment-panel select,
.assessment-panel textarea,
.tracking-filter select {
  width: 100%;
  border: 1px solid #cbd5df;
  border-radius: 7px;
  color: #172033;
  background: #fff;
}

.auth-form input,
.form-stack select,
.assessment-panel select,
.tracking-filter select {
  height: 43px;
  padding: 0 11px;
}

.auth-submit,
.auth-secondary {
  width: 100%;
}

.entra-login-area {
  display: grid;
  gap: 9px;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #8a94a6;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: #dfe5e8;
}

.entra-login-button {
  height: 43px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid #bfc9d2;
  border-radius: 7px;
  color: #27364a;
  background: #fff;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
}

.entra-login-button:hover {
  border-color: #8798a8;
  background: #f8fafb;
}

.entra-login-area small {
  color: #7b8797;
  font-size: 9px;
  text-align: center;
}

.microsoft-mark {
  width: 16px;
  height: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}

.microsoft-mark i:nth-child(1) { background: #f25022; }
.microsoft-mark i:nth-child(2) { background: #7fba00; }
.microsoft-mark i:nth-child(3) { background: #00a4ef; }
.microsoft-mark i:nth-child(4) { background: #ffb900; }

.auth-back {
  position: absolute;
  top: 17px;
  left: 17px;
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 7px;
  color: #536174;
  background: #f1f4f6;
  cursor: pointer;
}

.auth-back svg {
  width: 17px;
}

.mfa-setup {
  padding: 13px;
  border: 1px solid #bcded9;
  border-radius: 7px;
  color: #2d5551;
  background: #effaf8;
  font-size: 11px;
}

.mfa-setup > p {
  margin: 0 0 10px;
}

.secret-key {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3px 10px;
  align-items: center;
}

.secret-key span {
  grid-column: 1 / -1;
  color: #5c716e;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.secret-key strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #173d39;
  font-family: Consolas, monospace;
  font-size: 12px;
}

.secret-key button {
  padding: 5px 8px;
  border: 1px solid #9fcfc8;
  border-radius: 6px;
  color: #176c62;
  background: #fff;
  cursor: pointer;
}

.verification-identity {
  display: grid;
  gap: 2px;
  padding: 12px;
  border-left: 3px solid #12a594;
  background: #f2f8f7;
}

.verification-identity span {
  color: #697386;
  font-size: 11px;
}

#studentPasswordFields {
  display: grid;
  gap: 14px;
}

.password-rule {
  margin: -6px 0 0;
  color: #697386;
  font-size: 10px;
}

.form-error {
  margin: 0;
  padding: 9px 10px;
  border: 1px solid #efc4c9;
  border-radius: 6px;
  color: #8d2f3a;
  background: #fff4f5;
  font-size: 10px;
}

.demo-access {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding-top: 14px;
  border-top: 1px solid #e5e9ee;
}

.demo-access > span {
  width: 100%;
  color: #7a8494;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.demo-access button {
  padding: 5px 8px;
  border: 1px solid #d4dbe3;
  border-radius: 6px;
  color: #405066;
  background: #f8fafb;
  font-size: 9px;
  cursor: pointer;
}

.demo-access small {
  width: 100%;
  color: #7a8494;
  font-size: 9px;
}

.header-icon-button {
  width: 36px;
  height: 36px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 7px;
  color: #dce6f2;
  background: transparent;
  cursor: pointer;
}

.header-icon-button:hover {
  color: #fff;
  background: rgba(255, 255, 255, .09);
}

.header-icon-button svg {
  width: 18px;
}

.editor-column {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.student-review-panel {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 19px;
}

.student-review-panel h3 {
  margin: 0;
  font-size: 15px;
}

.student-review-content {
  max-width: 66%;
  color: #4f5e70;
  font-size: 11px;
}

.student-review-content p {
  margin: 0 0 5px;
}

.student-review-content > span {
  color: #8490a0;
  font-size: 9px;
}

.review-grade {
  display: inline-block;
  margin-bottom: 7px;
  padding: 4px 7px;
  border-radius: 5px;
  color: #176c62;
  background: #e5f7f3;
  font-size: 9px;
  font-weight: 900;
}

.management-shell {
  min-height: 100vh;
  background: #f1f4f6;
}

.management-header {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 24px;
  color: #fff;
  background: #102a2c;
  border-bottom: 4px solid #e1764d;
}

.management-brand,
.management-account {
  display: flex;
  align-items: center;
  gap: 12px;
}

.management-brand .brand-mark {
  color: #75dbc9;
}

.management-brand h1 {
  margin: 0;
  font-size: 17px;
}

.management-brand .eyebrow {
  color: #75dbc9;
}

.management-account {
  gap: 15px;
  text-align: right;
}

.management-account strong,
.management-account span {
  display: block;
}

.management-account strong {
  font-size: 11px;
}

.management-account span {
  color: #b9cfcc;
  font-size: 9px;
}

.management-workspace {
  min-height: calc(100vh - 70px);
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
}

.management-sidebar {
  display: flex;
  flex-direction: column;
  padding: 22px 14px;
  background: #fff;
  border-right: 1px solid #dfe5e9;
}

.management-sidebar nav {
  display: grid;
  gap: 5px;
}

.management-sidebar nav button {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border: 0;
  border-radius: 7px;
  color: #526173;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.management-sidebar nav button:hover {
  color: #173d39;
  background: #f0f6f5;
}

.management-sidebar nav button.active {
  color: #0c6d62;
  background: #e6f6f3;
  font-weight: 800;
}

.management-sidebar nav svg {
  width: 19px;
}

.management-security {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding: 12px;
  color: #788596;
  border: 1px solid #e2e7eb;
  border-radius: 7px;
  background: #f8fafb;
  font-size: 9px;
}

.management-security svg {
  width: 17px;
  color: #0f8d80;
}

.management-main {
  min-width: 0;
  padding: 28px;
}

.workspace-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  max-width: 1500px;
  margin: 0 auto 20px;
}

.workspace-heading h2 {
  margin: 3px 0 0;
  color: #172033;
  font-size: 25px;
}

.workspace-heading .primary-button svg,
.panel-title-row .secondary-button svg {
  width: 17px;
}

.metric-grid {
  max-width: 1500px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 auto 18px;
}

.metric-card {
  min-height: 108px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 18px;
  border: 1px solid #dce3e7;
  border-top: 3px solid #12a594;
  border-radius: 8px;
  background: #fff;
}

.metric-card:nth-child(2) {
  border-top-color: #e1764d;
}

.metric-card:nth-child(3) {
  border-top-color: #3c6ea8;
}

.metric-card span {
  color: #697386;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.metric-card strong {
  margin-top: 5px;
  color: #172033;
  font-size: 29px;
}

.management-panel,
.tracking-panel {
  max-width: 1500px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid #dce3e7;
  border-radius: 8px;
  background: #fff;
}

.panel-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid #e1e6ea;
}

.panel-title-row h3 {
  margin: 0;
  font-size: 15px;
}

.table-wrap,
.tracking-table-wrap {
  width: 100%;
  overflow: auto;
}

.management-table,
.tracking-table {
  width: 100%;
  border-collapse: collapse;
}

.management-table th,
.management-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #e8ecef;
  text-align: left;
  vertical-align: middle;
}

.management-table th {
  color: #6e7b8c;
  background: #f8fafb;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.management-table td {
  color: #4e5c6d;
  font-size: 10px;
}

.management-table td strong {
  color: #172033;
}

.management-table .actions-column {
  width: 92px;
  text-align: right;
}

.teacher-table .actions-column,
.teacher-table td:last-child {
  position: sticky;
  z-index: 2;
  right: 0;
  background: #fff;
  box-shadow: -8px 0 12px -12px rgba(27, 45, 58, .55);
}

.teacher-table .actions-column {
  z-index: 3;
  background: #f8fafb;
}

.teacher-mobile-status {
  display: none;
}

.teacher-actions {
  min-width: 74px;
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

.teacher-action-button {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid #d7dfe5;
  border-radius: 6px;
  color: #526173;
  background: #fff;
  cursor: pointer;
}

.teacher-action-button:hover {
  background: #f4f7f8;
}

.teacher-action-button.verify {
  color: #0c796d;
  border-color: #a8d8d0;
  background: #f0faf8;
}

.teacher-action-button.delete {
  color: #a63c49;
  border-color: #edc5ca;
  background: #fff7f8;
}

.teacher-action-button:disabled {
  opacity: .55;
  cursor: wait;
}

.teacher-action-button svg {
  width: 17px;
  height: 17px;
}

.group-pill,
.status-pill {
  display: inline-block;
  margin: 2px 3px 2px 0;
  padding: 3px 6px;
  border-radius: 5px;
  font-size: 8px;
  font-weight: 800;
}

.group-pill.group {
  color: #225a91;
  background: #e9f2fb;
}

.group-pill.year {
  color: #8a5420;
  background: #fbf0df;
}

.group-pill.site {
  color: #176c62;
  background: #e6f6f3;
}

.status-pill.ok {
  color: #176c62;
  background: #e6f6f3;
}

.status-pill.pending {
  color: #8a5420;
  background: #fff1dc;
}

.muted-text {
  color: #8b95a4;
}

.mini-progress {
  width: 120px;
}

.mini-progress > span {
  display: block;
  margin-bottom: 4px;
  color: #5c697a;
  font-size: 9px;
}

.mini-progress > div {
  height: 5px;
  overflow: hidden;
  border-radius: 3px;
  background: #e2e7eb;
}

.mini-progress i {
  height: 100%;
  display: block;
  background: #12a594;
}

.segmented-controls {
  max-width: 1500px;
  display: inline-flex;
  margin: 0 calc((100% - min(1500px, 100%)) / 2) 14px;
  padding: 3px;
  border: 1px solid #d7dfe4;
  border-radius: 7px;
  background: #fff;
}

.segmented-controls button {
  min-height: 34px;
  padding: 0 13px;
  border: 0;
  border-radius: 5px;
  color: #667486;
  background: transparent;
  font-size: 10px;
  cursor: pointer;
}

.segmented-controls button.active {
  color: #176c62;
  background: #e6f6f3;
  font-weight: 800;
}

.assignment-board {
  max-width: 1500px;
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 14px;
  margin: 0 auto;
}

.student-pool,
.group-window {
  min-height: 340px;
  padding: 13px;
  border: 1px solid #dce3e7;
  border-radius: 8px;
  background: #fff;
  transition: border-color .15s ease, background .15s ease;
}

.group-window {
  min-height: 250px;
}

.drop-zone.drag-over {
  border-color: #12a594;
  background: #effaf8;
}

.group-drop-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  gap: 14px;
  align-items: start;
}

.drop-zone-title {
  min-height: 35px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e3e8eb;
}

.drop-zone-title h3 {
  margin: 0;
  color: #172033;
  font-size: 13px;
}

.drop-zone-title span {
  min-width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  color: #176c62;
  background: #e6f6f3;
  font-size: 9px;
  font-weight: 900;
}

.student-card-list {
  display: grid;
  gap: 7px;
  padding-top: 10px;
}

.student-drag-card {
  min-height: 52px;
  display: grid;
  align-content: center;
  gap: 2px;
  padding: 8px 10px;
  border: 1px solid #dce3e7;
  border-left: 3px solid #3c6ea8;
  border-radius: 6px;
  background: #fff;
  cursor: grab;
}

.student-drag-card:active {
  cursor: grabbing;
}

.student-drag-card strong {
  color: #273346;
  font-size: 10px;
}

.student-drag-card span {
  color: #778394;
  font-size: 8px;
}

.tracking-filter {
  min-width: 240px;
  display: grid;
  gap: 4px;
  color: #657285;
  font-size: 9px;
  font-weight: 800;
}

.tracking-table {
  min-width: 2170px;
  table-layout: fixed;
}

.tracking-table th,
.tracking-table td {
  width: 52px;
  height: 52px;
  padding: 4px;
  border-right: 1px solid #e4e9ed;
  border-bottom: 1px solid #e4e9ed;
  text-align: center;
}

.tracking-table th {
  color: #5f6d7d;
  background: #f6f8f9;
  font-size: 8px;
}

.tracking-table .sticky-column {
  position: sticky;
  z-index: 2;
  left: 0;
  width: 210px;
  min-width: 210px;
  max-width: 210px;
  text-align: left;
  background: #fff;
  box-shadow: 1px 0 #dce3e7;
}

.tracking-table thead .sticky-column {
  z-index: 3;
  background: #f6f8f9;
}

.tracking-table td.sticky-column {
  padding: 8px 11px;
}

.tracking-table td.sticky-column strong,
.tracking-table td.sticky-column span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tracking-table td.sticky-column strong {
  color: #273346;
  font-size: 10px;
}

.tracking-table td.sticky-column span {
  color: #7b8797;
  font-size: 8px;
}

.criteria-cell {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid #dce3e7;
  border-radius: 5px;
  color: transparent;
  background: #f2f4f5;
}

.criteria-cell span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.criteria-cell.complete {
  color: #fff;
  border-color: #0d8b7e;
  background: #12a594;
  cursor: pointer;
}

.criteria-cell.complete::before {
  content: "\2713";
  font-size: 15px;
  font-weight: 900;
}

.criteria-cell strong {
  position: absolute;
  margin: 22px 0 0 25px;
  width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  color: #173d39;
  background: #fff;
  font-size: 7px;
}

.criteria-cell:disabled {
  cursor: default;
}

.empty-state {
  padding: 34px;
  color: #7b8796;
  text-align: center;
  font-size: 11px;
}

.empty-state.compact {
  padding: 18px 8px;
}

.form-stack textarea {
  min-height: 120px;
  padding: 10px 11px;
  resize: vertical;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
}

.evidence-preview-modal {
  width: min(1240px, 96vw);
}

.evidence-preview-layout {
  min-height: 640px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
}

.evidence-document {
  min-width: 0;
  overflow: auto;
  padding: 34px;
  color: #172033;
  background: #fff;
  font-family: Arial, sans-serif;
  font-size: 12px;
  line-height: 1.6;
}

.evidence-document img {
  max-width: 100%;
  height: auto;
}

.evidence-document pre {
  overflow: auto;
  white-space: pre-wrap;
}

.assessment-panel {
  padding: 22px;
  background: #f5f7f8;
  border-left: 1px solid #dce3e7;
}

.assessment-panel form,
.assessment-panel label {
  display: grid;
}

.assessment-panel form {
  gap: 17px;
}

.assessment-panel label {
  gap: 6px;
  color: #475568;
  font-size: 10px;
  font-weight: 900;
}

.assessment-panel textarea {
  padding: 10px;
  resize: vertical;
}

.delivery-content {
  display: grid;
  gap: 14px;
  padding: 20px;
}

.delivery-content p {
  margin: 0;
  color: #4c5b6d;
  font-size: 11px;
}

.delivery-content a {
  text-decoration: none;
}

body.dark-theme .student-review-panel {
  background: var(--panel);
}

body.dark-theme .student-review-content {
  color: var(--muted);
}

.student-dashboard-shell,
.exam-shell {
  min-height: 100vh;
  background: #f2f5f6;
}

.student-dashboard-main,
.exam-main {
  width: min(1220px, calc(100% - 40px));
  margin: 0 auto;
  padding: 38px 0 64px;
}

.dashboard-heading,
.exam-heading,
.exam-result-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 24px;
}

.dashboard-heading h2,
.exam-heading h2,
.exam-result-heading h2 {
  margin: 3px 0 7px;
  color: #172033;
  font-size: 28px;
}

.dashboard-heading p:last-child,
.exam-heading p:last-child,
.exam-result-heading p:last-child,
.workspace-heading > div > p:last-child {
  max-width: 720px;
  margin: 0;
  color: #647184;
}

.dashboard-progress-summary,
.exam-total,
.result-score {
  min-width: 150px;
  padding: 15px 18px;
  border: 1px solid #cfdadd;
  border-radius: 8px;
  background: #fff;
  text-align: right;
}

.dashboard-progress-summary strong,
.exam-total strong,
.result-score strong {
  display: block;
  color: #087e73;
  font-size: 26px;
}

.dashboard-progress-summary span,
.exam-total span,
.result-score span {
  color: #697386;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.unit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.unit-card {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  padding: 20px;
  border: 1px solid #d7e0e3;
  border-radius: 8px;
  background: #fff;
}

.unit-card.current {
  border-top: 4px solid #12a594;
}

.unit-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #087e73;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.unit-card h3 {
  min-height: 66px;
  margin: 17px 0 12px;
  font-size: 16px;
  line-height: 1.35;
}

.unit-card p {
  color: #697386;
  font-size: 11px;
}

.unit-card .primary-button,
.unit-status {
  margin-top: auto;
}

.unit-status {
  color: #687588;
  font-size: 10px;
  font-weight: 800;
}

.dashboard-progress {
  height: 7px;
  overflow: hidden;
  border-radius: 4px;
  background: #e8edef;
}

.dashboard-progress i {
  height: 100%;
  display: block;
  background: #12a594;
}

.exam-access-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-top: 18px;
  padding: 24px;
  border: 1px solid #cfdadd;
  border-radius: 8px;
  background: #fff;
}

.exam-access-panel.ready {
  border-left: 5px solid #12a594;
}

.exam-access-panel.locked {
  border-left: 5px solid #9aa4b2;
}

.exam-access-panel h2 {
  margin: 4px 0 6px;
  font-size: 20px;
}

.exam-access-panel p:last-child {
  margin: 0;
  color: #697386;
}

.attempt-history {
  margin-top: 18px;
  padding: 22px;
  border: 1px solid #d7e0e3;
  border-radius: 8px;
  background: #fff;
}

.attempt-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.attempt-list button {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3px 12px;
  padding: 13px;
  border: 1px solid #d7e0e3;
  border-radius: 7px;
  color: #2f3e51;
  background: #f8fafb;
  text-align: left;
  cursor: pointer;
}

.attempt-list button strong {
  grid-row: 1 / 3;
  grid-column: 2;
  align-self: center;
  color: #087e73;
}

.attempt-list button small {
  color: #7a8798;
}

.dashboard-return {
  color: #fff;
  border-color: rgba(255, 255, 255, .28);
  background: rgba(255, 255, 255, .08);
}

.exam-question-list,
.exam-result-list {
  display: grid;
  gap: 14px;
}

.exam-question,
.exam-result-question {
  padding: 22px;
  border: 1px solid #d7e0e3;
  border-radius: 8px;
  background: #fff;
}

.exam-question-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #6b7788;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.exam-question-meta strong {
  margin-left: auto;
  color: #087e73;
}

.exam-question h3,
.exam-result-question h3 {
  margin: 16px 0;
  font-size: 16px;
}

.exam-answer-control {
  display: grid;
  gap: 8px;
}

.exam-choice {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 11px;
  border: 1px solid #dde4e7;
  border-radius: 7px;
  background: #f9fbfb;
  cursor: pointer;
}

.exam-choice input {
  margin-top: 3px;
}

.exam-written-input {
  width: 100%;
  padding: 11px;
  border: 1px solid #cbd5df;
  border-radius: 7px;
  resize: vertical;
}

.exam-submit-bar {
  position: sticky;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 18px;
  border: 1px solid #bfcfd1;
  border-radius: 8px;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 -8px 24px rgba(15, 23, 42, .08);
}

.exam-submit-bar span {
  color: #697386;
  font-size: 11px;
}

.result-score {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 9px;
}

.answer-review,
.marking-guidance {
  padding: 14px;
  border-radius: 7px;
}

.answer-review {
  border: 1px solid #dbe2e6;
  background: #f8fafb;
}

.marking-guidance {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 10px;
  border: 1px solid #bfe1dc;
  background: #effaf8;
}

.answer-review h4,
.marking-guidance h4 {
  margin: 0 0 5px;
  font-size: 11px;
}

.answer-review p,
.marking-guidance p {
  margin: 0;
  white-space: pre-wrap;
}

.nav-badge {
  min-width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  margin-left: auto;
  padding: 0 5px;
  border-radius: 9px;
  color: #fff;
  background: #c33f4c;
  font-size: 9px;
}

.compact-toggle,
.settings-toggle,
.review-toggle-row {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.compact-toggle {
  justify-content: flex-start;
  min-width: 94px;
  color: #425166;
  font-size: 10px;
  font-weight: 800;
}

.settings-panel {
  display: grid;
  gap: 0;
}

.settings-toggle {
  padding: 18px 0;
  border-bottom: 1px solid #e2e7ea;
}

.settings-toggle span,
.review-toggle-row span {
  display: grid;
  gap: 3px;
}

.settings-toggle small,
.review-toggle-row small {
  color: #758195;
  font-weight: 500;
}

.settings-toggle input,
.review-toggle-row input,
.compact-toggle input {
  width: 38px;
  height: 20px;
  accent-color: #087e73;
}

.settings-actions,
.heading-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.compact-button {
  min-height: 32px;
  padding: 6px 10px;
}

.danger-button {
  color: #a83240;
  border-color: #e4b7bd;
  background: #fff4f5;
}

.status-pill.danger {
  color: #9d2f3d;
  background: #fdecef;
}

.review-column-heading {
  min-width: 72px;
  color: #344154 !important;
  background: #e9edef !important;
}

.review-column {
  min-width: 72px;
  padding: 4px !important;
}

.review-column.waiting {
  background: #edf0f2;
}

.review-column.outstanding {
  background: #f8d7dc;
}

.review-column.approved {
  background: #d6eee5;
}

.section-review-cell {
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 5px;
  color: #334155;
  background: transparent;
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}

.review-column.outstanding .section-review-cell {
  color: #9e2e3c;
}

.review-column.approved .section-review-cell {
  color: #176c55;
}

.section-feedback {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #dfe7e9;
}

.model-response-list {
  display: grid;
  gap: 8px;
}

.model-response {
  border: 1px solid #d6dfe2;
  border-radius: 7px;
  background: #fff;
}

.model-response summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
}

.model-response summary span {
  min-width: 36px;
  color: #087e73;
  font-weight: 900;
}

.model-response-content {
  padding: 2px 18px 18px 66px;
  color: #46566a;
}

.question-modal {
  width: min(820px, 100%);
  max-height: calc(100vh - 32px);
  overflow: auto;
}

.question-form {
  grid-template-columns: 1fr 1fr;
}

.question-form > label,
.question-form > button,
.question-form > .form-error,
.question-form > .form-grid-three {
  grid-column: 1 / -1;
}

.form-grid-three {
  display: grid;
  grid-template-columns: .6fr .8fr 1.3fr;
  gap: 12px;
}

.form-grid-three label {
  display: grid;
  gap: 6px;
}

.form-stack textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #cbd5df;
  border-radius: 7px;
  resize: vertical;
}

.csv-guidance {
  display: grid;
  gap: 8px;
  padding: 13px;
  border: 1px solid #bfded9;
  border-radius: 7px;
  background: #effaf8;
}

.csv-guidance code {
  overflow-wrap: anywhere;
  color: #155e55;
  font-size: 10px;
}

.csv-guidance p {
  margin: 0;
  color: #536e6a;
  font-size: 10px;
}

.question-bank-table td:nth-child(5) {
  min-width: 360px;
}

.entra-tenant-control {
  min-width: 330px;
  display: grid;
  grid-template-columns: minmax(230px, 1fr) auto;
  gap: 7px;
}

.entra-tenant-control input {
  min-width: 0;
  height: 32px;
  padding: 0 9px;
  border: 1px solid #cbd5df;
  border-radius: 6px;
  color: #27364a;
  background: #fff;
  font-size: 9px;
}

.exam-results-table td:first-child span {
  display: block;
  margin-top: 2px;
  color: #7b8797;
  font-size: 8px;
}

.tutor-exam-paper {
  display: grid;
  gap: 12px;
}

.loading-panel {
  padding: 40px;
  color: #697386;
  text-align: center;
}

@media (max-width: 1000px) {
  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-brand {
    min-height: auto;
    padding: 34px;
  }

  .auth-brand h1 {
    font-size: 36px;
  }

  .auth-panel {
    min-height: auto;
    padding: 34px 20px;
  }

  .management-workspace {
    grid-template-columns: 78px minmax(0, 1fr);
  }

  .management-sidebar nav button {
    justify-content: center;
    padding: 0;
  }

  .management-sidebar nav button span,
  .management-security span {
    display: none;
  }

  .management-security {
    justify-content: center;
  }

  .management-main {
    padding: 22px;
  }

  .assignment-board {
    grid-template-columns: 1fr;
  }

  .student-pool {
    min-height: 180px;
  }

  .evidence-preview-layout {
    grid-template-columns: 1fr;
  }

  .assessment-panel {
    border-top: 1px solid #dce3e7;
    border-left: 0;
  }

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

@media (max-width: 700px) {
  .teacher-table {
    table-layout: fixed;
  }

  .teacher-table th:first-child {
    width: 92px;
  }

  .teacher-table .actions-column {
    width: 84px;
  }

  .teacher-table .teacher-desktop-detail {
    display: none;
  }

  .teacher-table td:nth-child(2) {
    overflow-wrap: anywhere;
  }

  .teacher-mobile-status {
    display: block;
    width: max-content;
    margin-top: 5px;
    padding: 3px 6px;
    border-radius: 5px;
    font-size: 8px;
    font-weight: 800;
  }

  .teacher-mobile-status.verified {
    color: #176c62;
    background: #e6f6f3;
  }

  .teacher-mobile-status.pending {
    color: #8a5420;
    background: #fff1dc;
  }

  .auth-brand {
    padding: 27px 22px;
  }

  .auth-shield {
    width: 56px;
    height: 56px;
    margin-bottom: 15px;
  }

  .auth-shield svg {
    width: 40px;
  }

  .auth-brand h1 {
    font-size: 30px;
  }

  .auth-assurance {
    margin-top: 22px;
  }

  .auth-form {
    padding: 26px 21px;
  }

  .student-review-panel {
    display: grid;
  }

  .student-review-content {
    max-width: none;
  }

  .management-header {
    height: auto;
    min-height: 70px;
    padding: 10px 14px;
  }

  .management-brand h1 {
    font-size: 14px;
  }

  .management-account > div {
    display: none;
  }

  .management-workspace {
    display: block;
  }

  .management-sidebar {
    position: sticky;
    z-index: 20;
    top: 0;
    display: block;
    overflow-x: auto;
    padding: 7px;
    border-right: 0;
    border-bottom: 1px solid #dfe5e9;
  }

  .management-sidebar nav {
    min-width: max-content;
    display: flex;
  }

  .management-sidebar nav button {
    width: 46px;
  }

  .management-security {
    display: none;
  }

  .management-main {
    padding: 17px 12px;
  }

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

  .workspace-heading h2 {
    font-size: 20px;
  }

  .workspace-heading .primary-button {
    width: 100%;
  }

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

  .group-drop-grid {
    grid-template-columns: 1fr;
  }

  .segmented-controls {
    width: 100%;
    margin: 0 0 14px;
    overflow-x: auto;
  }

  .segmented-controls button {
    flex: 1 0 auto;
  }

  .tracking-filter {
    width: 100%;
  }

  .evidence-document {
    padding: 20px;
  }

  .student-dashboard-main,
  .exam-main {
    width: calc(100% - 24px);
    padding-top: 22px;
  }

  .dashboard-heading,
  .exam-heading,
  .exam-result-heading,
  .exam-access-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .unit-grid,
  .attempt-list,
  .marking-guidance,
  .form-grid-three {
    grid-template-columns: 1fr;
  }

  .unit-card {
    min-height: 230px;
  }

  .exam-submit-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .question-form {
    grid-template-columns: 1fr;
  }
}
