@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&display=swap');
/* Fluid width: uses theme content area but scales up on large screens */
.zgt-te-wrap {
  width: 100%;
  max-width: min(1400px, 100%);
  margin-left: auto;
  margin-right: auto;
  padding: clamp(0.75rem, 2.5vw, 1.75rem);
  box-sizing: border-box;
}

/* Break out of narrow theme content columns (instructor / exam admin dashboards) */
.zgt-te-wrap.zgt-te-full-bleed {
  max-width: none;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-left: clamp(0.75rem, 2.5vw, 1.75rem);
  padding-right: clamp(0.75rem, 2.5vw, 1.75rem);
  box-sizing: border-box;
}

/* Toast notifications (fixed stack, bottom-right) */
.zgt-te-toast-host {
  position: fixed;
  z-index: 100000;
  right: max(12px, env(safe-area-inset-right));
  bottom: max(12px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  pointer-events: none;
  max-width: min(420px, calc(100vw - 24px));
}
.zgt-te-toast-host .zgt-te-toast {
  pointer-events: auto;
}
.zgt-te-toast {
  padding: 0.85rem 1.1rem;
  border-radius: 8px;
  font-size: 0.95rem;
  line-height: 1.45;
  white-space: pre-wrap;
  max-width: min(440px, 94vw);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12), 0 1px 3px rgba(0, 0, 0, 0.08);
  border: 1px solid transparent;
  cursor: pointer;
  animation: zgt-te-toast-in 0.22s ease-out;
}
@keyframes zgt-te-toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.zgt-te-toast--out {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.zgt-te-toast--success {
  background: #e8f5e9;
  border-color: #a5d6a7;
  color: #1b5e20;
}
.zgt-te-toast--error {
  background: #ffebee;
  border-color: #ef9a9a;
  color: #b71c1c;
}
.zgt-te-toast--info {
  background: #e3f2fd;
  border-color: #90caf9;
  color: #0d47a1;
}

.zgt-open-grades-save-wrap {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid #dcdcde;
  clear: both;
}

.zgt-te-exam-ref-images-list {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
}

.zgt-te-exam-ref-images-item {
  margin-bottom: 1.25rem;
}

.zgt-te-exam-ref-thumb-wrap {
  display: inline-block;
  margin-top: 0.5rem;
}

.zgt-te-exam-ref-thumb {
  display: block;
  max-width: min(100%, 480px);
  height: auto;
  border-radius: 4px;
  border: 1px solid #c3c4c7;
}

/* Exam admin — exam tester (preview) highlighted */
.zgt-te-exam-preview-hero {
  border-left: 4px solid #2271b1;
  background: linear-gradient(135deg, #f0f6fc 0%, #fafafa 100%);
  margin-bottom: 1.5rem;
}
.zgt-te-exam-preview-hero h3 {
  margin-top: 0;
}
.zgt-te-exam-preview-select {
  min-width: 220px;
  max-width: 100%;
  margin-right: 0.5rem;
  vertical-align: middle;
}
.zgt-te-exam-preview-empty {
  margin: 0;
  color: #646970;
}
.zgt-te-company-branding {
  margin-bottom: 1rem;
}
.zgt-te-company-logo {
  display: block;
  max-height: min(120px, 20vh);
  width: auto;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

/* Exam: space between questions (MC, T/F, etc.) */
.zgt-te-wrap .zgt-q {
  margin-bottom: 1.75rem;
  padding-bottom: 0.5rem;
}
.zgt-te-wrap .zgt-q h4 {
  margin-top: 0;
  margin-bottom: 0.65rem;
}
.zgt-te-wrap .zgt-q label {
  display: inline-block;
  margin: 0.2rem 0.4rem 0.25rem 0;
  line-height: 1.45;
}

.zgt-te-exam-room-timer {
  font-weight: 600;
  margin: 0.5rem 0 1rem;
  padding: 0.5rem 0.75rem;
  background: #f0f6fc;
  border-left: 4px solid #2271b1;
  border-radius: 4px;
}

/* Instructor open-question answers: full text, scroll if very long */
.zgt-open-answer-cell {
  vertical-align: top;
  max-width: min(42rem, 90vw);
}
.zgt-open-answer-full {
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 28rem;
  overflow-y: auto;
  padding: 0.25rem 0;
}

/* Instructor-only model answer (per question); does not affect scoring */
.zgt-open-q-cell {
  vertical-align: top;
}
.zgt-open-q-title {
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.zgt-open-key-answer-wrap {
  margin-top: 0.5rem;
  max-width: min(36rem, 100%);
}
.zgt-open-key-answer-summary {
  cursor: pointer;
  font-size: 0.85rem;
  color: #2271b1;
  user-select: none;
}
.zgt-open-key-answer {
  margin-top: 0.35rem;
  padding: 0.5rem 0.65rem;
  font-size: 0.9rem;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 14rem;
  overflow-y: auto;
  background: #f6f7f7;
  border: 1px solid #dcdcde;
  border-radius: 4px;
}
.zgt-open-key-answer--rich {
  white-space: normal;
}
.zgt-open-key-answer--rich p {
  margin: 0 0 0.5em;
}
.zgt-open-key-answer--rich p:last-child {
  margin-bottom: 0;
}
.zgt-open-key-answer--rich ul,
.zgt-open-key-answer--rich ol {
  margin: 0 0 0.5em 1.2em;
  padding: 0;
}

/* Open marks: card grid per student (Option 4) */
.zgt-open-student {
  margin-bottom: 1rem;
  border: 1px solid #dcdcde;
  border-radius: 6px;
  background: #fff;
  padding: 0 0.75rem 0.75rem;
}
.zgt-open-student__summary {
  cursor: pointer;
  font-weight: 600;
  padding: 0.65rem 0.25rem;
  list-style: none;
}
.zgt-open-student__summary::-webkit-details-marker {
  display: none;
}
.zgt-open-grades-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
@media screen and (min-width: 782px) {
  .zgt-open-grades .zgt-open-grades-cards {
    grid-template-columns: 1fr;
    max-width: min(1100px, 100%);
  }
}
.zgt-open-grade-card {
  border: 1px solid #dcdcde;
  border-radius: 6px;
  padding: 0.75rem 0.85rem;
  background: #fdfdfd;
  box-sizing: border-box;
}
.zgt-open-grade-card--risk {
  max-width: none;
}
.zgt-risk-marking-layout {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.zgt-risk-marking-field {
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  padding: 0.65rem 0.75rem;
  background: #fff;
}
.zgt-risk-marking-field__title {
  margin: 0 0 0.4rem;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
}
.zgt-risk-marking-field__max {
  font-weight: 400;
  color: #646970;
  font-size: 0.88rem;
}
.zgt-risk-marking-student {
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 14rem;
  overflow: auto;
}
@media screen and (min-width: 782px) {
  .zgt-risk-marking-student {
    max-height: none;
  }
}
.zgt-open-grade-card__q {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  line-height: 1.35;
}
.zgt-open-grade-card .zgt-open-key-answer-wrap {
  max-width: none;
}
.zgt-open-grade-card__answer {
  margin: 0.35rem 0 0.65rem;
}
.zgt-open-grade-card__marks {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  padding-top: 0.5rem;
  border-top: 1px solid #e8e8e8;
  font-size: 0.9rem;
}
.zgt-open-grade-stat__l {
  color: #646970;
  font-size: 0.8rem;
  margin-right: 0.25rem;
}
.zgt-open-grade-override {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
}
.zgt-open-grade-override .zgt-open-grade {
  width: 5.5rem;
  max-width: 100%;
}

/* Instructor exam bank answer key */
.zgt-exam-answer-key-inner {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.zgt-exam-answer-key-item {
  border: 1px solid #dcdcde;
  border-radius: 6px;
  padding: 0.85rem 1rem;
  background: #fff;
}
.zgt-exam-answer-key-item__hd {
  margin-bottom: 0.5rem;
  line-height: 1.35;
}
.zgt-exam-answer-key-n {
  font-weight: 700;
  margin-right: 0.25rem;
}
.zgt-exam-answer-key-title {
  font-weight: 600;
}
.zgt-exam-answer-key-meta {
  font-weight: 400;
  color: #50575e;
  font-size: 0.92rem;
}
.zgt-exam-answer-key-body {
  font-size: 0.95rem;
  line-height: 1.45;
}
.zgt-exam-answer-key-list {
  margin: 0.35rem 0 0;
  padding-left: 1.25rem;
}
.zgt-exam-answer-key-correct {
  font-weight: 600;
}
.zgt-exam-answer-key-plain {
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0.35rem 0;
}
.zgt-exam-answer-key-rich p {
  margin: 0 0 0.5em;
}
.zgt-exam-answer-key-rich p:last-child {
  margin-bottom: 0;
}
.zgt-exam-answer-key-pairs {
  margin-top: 0.35rem;
  font-size: 0.9rem;
}

/* Print: marking sheet & answer key */
@media print {
  body.zgt-print-marking-only * {
    visibility: hidden;
  }
  body.zgt-print-marking-only .zgt-open-grades-marking-print,
  body.zgt-print-marking-only .zgt-open-grades-marking-print * {
    visibility: visible;
  }
  body.zgt-print-marking-only .zgt-open-grades-marking-print .zgt-no-print,
  body.zgt-print-marking-only .zgt-open-grades-marking-print .zgt-no-print * {
    display: none !important;
    visibility: hidden !important;
  }
  body.zgt-print-marking-only .zgt-open-grades-marking-print {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
  }
  body.zgt-print-answer-key-only * {
    visibility: hidden;
  }
  body.zgt-print-answer-key-only .zgt-exam-answer-key-print-block,
  body.zgt-print-answer-key-only .zgt-exam-answer-key-print-block * {
    visibility: visible;
  }
  body.zgt-print-answer-key-only .zgt-exam-answer-key-print-block .zgt-no-print,
  body.zgt-print-answer-key-only .zgt-exam-answer-key-print-block .zgt-no-print * {
    display: none !important;
    visibility: hidden !important;
  }
  body.zgt-print-answer-key-only .zgt-exam-answer-key-print-block {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
  }
  .zgt-open-grades-cards {
    grid-template-columns: 1fr;
  }
  .zgt-open-grade-card__answer .zgt-open-answer-full {
    max-height: none;
    overflow: visible;
  }
  .zgt-open-key-answer {
    max-height: none;
    overflow: visible;
  }
}
.zgt-te-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
}
.zgt-te-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1rem;
}
@media (min-width: 1200px) {
  .zgt-te-wrap.zgt-te-instructor-dash .zgt-te-table-wrap {
    font-size: 1.02rem;
  }
}
.zgt-te-table th,
.zgt-te-table td {
  border: 1px solid #ddd;
  padding: 0.5rem;
  text-align: left;
}
.zgt-te-card {
  background: #fafafa;
  padding: 1rem;
  margin-bottom: 1rem;
  border: 1px solid #eee;
}
.zgt-te-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 700px) {
  .zgt-te-grid {
    grid-template-columns: 1fr;
  }
}
.zgt-te-break {
  word-break: break-all;
  display: block;
}
.zgt-ok {
  color: #00a32a !important;
  font-weight: 600;
}
.zgt-bad {
  color: #d63638 !important;
  font-weight: 600;
}

/* Regulated courses: note under description in tables / verify card */
.zgt-te-external-cert-note {
  font-size: 0.75rem;
  line-height: 1.35;
  color: #555;
  font-weight: 400;
}
.zgt-te-vcard-back .zgt-te-external-cert-note {
  font-size: 0.7rem;
  color: #444;
}

/* Company portal + profile: certificate column — compact buttons */
.zgt-te-company-portal .zgt-te-table td .button.button-small,
.zgt-te-profile .zgt-te-table td .button.button-small {
  line-height: 1.35;
  padding: 0.2em 0.65em;
  min-height: 0;
  vertical-align: middle;
}

.zgt-te-idcard {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 2rem;
}
/* Passport-style preview on profile overview (compact ID size) */
.zgt-te-idphoto img {
  max-width: 88px;
  max-height: 110px;
  width: auto;
  height: auto;
  object-fit: cover;
  object-position: center top;
  border-radius: 3px;
  border: 1px solid rgba(0, 0, 0, 0.12);
}
.zgt-te-error {
  color: #a00;
}

.zgt-te-exam-result {
  padding: 1rem 1.25rem;
  margin: 1rem 0;
  border-radius: 4px;
  border: 1px solid #ccc;
}
.zgt-te-result-pass {
  background: #e8f5e9;
  border-color: #81c784;
  color: #1b5e20;
}
.zgt-te-result-fail {
  background: #ffebee;
  border-color: #e57373;
  color: #b71c1c;
}
.zgt-te-result-wait {
  background: #fff8e1;
  border-color: #ffcc80;
  color: #5d4037;
}
.zgt-te-exam-done {
  color: #1b5e20;
  font-weight: 600;
}

.zgt-te-exam-admin-preview {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid #c3c4c7;
  background: #f6f7f7;
  border-radius: 4px;
}
.zgt-te-exam-preview-banner {
  background: #fff8e1;
  border: 1px solid #ffe082;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  border-radius: 4px;
}
.zgt-te-exam-preview-meta {
  margin: 0.5rem 0 0;
  font-size: 0.95rem;
}
.zgt-te-preview-timer {
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.zgt-te-pass {
  color: #1b5e20;
  font-weight: 700;
}
.zgt-te-fail {
  color: #b71c1c;
  font-weight: 700;
}

.zgt-te-completed-runs {
  opacity: 0.95;
}

/* Instructor dashboard — keep Open button within row height */
.zgt-te-instructor-dash .zgt-te-table td {
  vertical-align: middle;
}
.zgt-te-instructor-dash .zgt-te-table .button {
  padding: 0.15rem 0.65rem;
  font-size: 0.8125rem;
  line-height: 1.35;
  vertical-align: middle;
}

.zgt-te-forge-dash-logo {
  margin: 0.35rem 0 1rem;
}
.zgt-te-dash-table-foot {
  text-align: center;
  border-top: 1px solid #e2e8f0;
  background: #fafafa;
}
.zgt-te-powered-by-forge {
  margin: 0.65rem 0 0;
  font-size: 0.75rem;
  color: #64748b;
  letter-spacing: 0.02em;
}
.zgt-te-powered-by-forge--portal {
  margin-top: 2rem;
  text-align: center;
}

.zgt-te-company-branding-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
  margin-bottom: 1rem;
}
/* Match company logo sizing (.zgt-te-company-logo) — do not shrink in the row */
.zgt-te-company-branding-row .zgt-te-company-logo,
.zgt-te-company-branding-row .zgt-te-forge-logo-portal {
  display: block;
  max-height: min(120px, 20vh);
  width: auto;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}
.zgt-te-company-portal-footer {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
}

.zgt-te-checklist-signature {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid #ddd;
}
.zgt-instructor-signature-block--embedded h3 {
  font-size: 1.05rem;
  margin-top: 0;
}

.zgt-practical-matrix-wrap {
  overflow-x: auto;
  margin-bottom: 1rem;
}
.zgt-practical-matrix .zgt-pc-student-col {
  min-width: 10rem;
  vertical-align: middle;
}
.zgt-practical-matrix .zgt-pc-check-cell,
.zgt-practical-matrix .zgt-pc-passed-cell {
  text-align: center;
  vertical-align: middle;
}

.zgt-practical-matrix--modular th.zgt-pc-module-group-th {
  background: #f8fafc;
  border-bottom: 2px solid #0284c7;
  text-align: center;
  font-weight: 700;
  padding: 6px 8px;
}
.zgt-practical-matrix--modular .zgt-pc-mod-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 9999px;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}
.zgt-practical-matrix--modular .zgt-pc-item-th {
  font-size: 0.8rem;
  padding: 6px 4px;
  text-align: center;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
}
.zgt-practical-matrix--modular .zgt-pc-module-border-right {
  border-right: 2px solid #cbd5e1;
}

/* --- Practical Header & View Switcher --- */
.zgt-practical-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}
.zgt-practical-view-switcher {
  display: inline-flex;
  background: #f1f5f9;
  padding: 3px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  gap: 4px;
}
.zgt-pc-view-btn {
  background: transparent;
  border: none;
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #64748b;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
  line-height: 1.2;
}
.zgt-pc-view-btn:hover {
  color: #0f172a;
}
.zgt-pc-view-btn.is-active {
  background: #ffffff;
  color: #0284c7;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

/* --- Stage Filter Bar (Matrix Table Mode) --- */
.zgt-stage-filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 8px 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin-bottom: 14px;
}
.zgt-stage-filter-bar .zgt-filter-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  margin-right: 4px;
}
.zgt-stage-pill {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}
.zgt-stage-pill:hover {
  border-color: #0284c7;
  color: #0284c7;
}
.zgt-stage-pill.is-active {
  background: #0284c7;
  border-color: #0284c7;
  color: #ffffff;
}
.zgt-stage-count-badge {
  background: rgba(0, 0, 0, 0.08);
  padding: 1px 6px;
  border-radius: 10px;
  font-size: 0.72rem;
}
.zgt-stage-pill.is-active .zgt-stage-count-badge {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* --- Candidate Cards Grid --- */
.zgt-practical-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 16px;
}
.zgt-practical-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.zgt-practical-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08);
}
.zgt-pc-card-head {
  padding: 12px 16px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.zgt-pc-card-user {
  display: flex;
  align-items: center;
  gap: 10px;
}
.zgt-pc-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #e0f2fe;
  color: #0369a1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.zgt-pc-card-name {
  font-size: 0.95rem;
  color: #0f172a;
}
.zgt-pc-pass-pill-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.82rem;
  color: #334155;
  cursor: pointer;
}
.zgt-pc-card-body {
  padding: 16px;
}
.zgt-pc-card-stage-block {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #0284c7;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 12px;
}
.zgt-pc-card-stage-block:last-child {
  margin-bottom: 0;
}
.zgt-pc-card-stage-2 {
  border-left-color: #7c3aed;
}
.zgt-pc-card-stage-3 {
  border-left-color: #059669;
}
.zgt-pc-card-stage-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.zgt-pc-card-stage-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #1e293b;
}
.zgt-pc-stage-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 9999px;
  background: #e2e8f0;
  color: #475569;
}
.zgt-pc-stage-badge.is-complete {
  background: #dcfce7;
  color: #15803d;
}
.zgt-pc-card-item-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.zgt-pc-card-item-row {
  font-size: 0.84rem;
  color: #334155;
  padding: 4px 6px;
  border-radius: 4px;
  transition: background 0.1s ease;
}
.zgt-pc-card-item-row:hover {
  background: #ffffff;
}
.zgt-pc-card-item-row label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
  width: 100%;
}
.zgt-pc-card-item-text {
  flex: 1;
  line-height: 1.35;
}

@media (max-width: 768px) {
  .zgt-practical-cards-grid {
    grid-template-columns: 1fr;
  }
  .zgt-practical-header-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .zgt-practical-view-switcher {
    width: 100%;
  }
  .zgt-pc-view-btn {
    flex: 1;
    justify-content: center;
  }
}

.zgt-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

details.zgt-practical-panel > summary {
  cursor: pointer;
  margin-bottom: 0.5rem;
}

.zgt-te-feedback-thanks {
  color: #1b5e20;
  font-weight: 600;
  margin-top: 1rem;
}

.zgt-te-exam-admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.zgt-te-exam-admin-stats .zgt-te-card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.zgt-te-exam-admin-stats .zgt-te-card strong {
  font-size: 1.5rem;
}
.zgt-te-exam-admin-stat-alert strong {
  color: #b32d2e;
}
.zgt-te-admin-links {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Saving / submitting overlay */
.zgt-te-busy {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(255, 255, 255, 0.72);
  display: none;
  align-items: center;
  justify-content: center;
  pointer-events: all;
}
.zgt-te-busy.is-visible {
  display: flex;
}
.zgt-te-busy-inner {
  padding: 1rem 1.5rem;
  background: #1d2327;
  color: #fff;
  border-radius: 4px;
  font-size: 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Instructor completion checklist */
.zgt-te-status-bar .zgt-te-status-heading {
  margin-top: 0;
}
.zgt-te-status-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.zgt-te-status-list li {
  padding: 0.45rem 0;
  padding-left: 1.5rem;
  position: relative;
}
.zgt-te-status-list .zgt-te-status-dot {
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: #999;
}
.zgt-te-status-list li.zgt-ok .zgt-te-status-dot {
  background: #2e7d32;
}
.zgt-te-status-list li.zgt-bad .zgt-te-status-dot {
  background: #c62828;
}
.zgt-te-status-list li.zgt-neutral .zgt-te-status-dot {
  background: #757575;
}
.zgt-te-status-list li.zgt-ok {
  color: #1b5e20;
}
.zgt-te-status-list li.zgt-bad {
  color: #b71c1c;
}

/* Feedback sliders */
.zgt-feedback-scale-hint {
  margin-bottom: 1rem;
  font-weight: 600;
}
.zgt-feedback-row {
  margin-bottom: 1.25rem;
}
.zgt-feedback-scale {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #555;
  margin-bottom: 0.25rem;
}
.zgt-fb-range {
  width: 100%;
  max-width: 28rem;
}
.zgt-fb-rating {
  margin: 0.35rem 0 0;
  font-weight: 600;
  color: #1b5e20;
}

/* Profile tabs */
.zgt-te-tab-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #ddd;
  padding-bottom: 0.5rem;
}
.zgt-te-tab {
  display: inline-block;
  padding: 0.5rem 0.9rem;
  text-decoration: none;
  border-radius: 4px 4px 0 0;
  color: #1e1e1e;
  border: 1px solid transparent;
}
.zgt-te-tab:hover {
  background: #f0f0f1;
}
.zgt-te-tab.is-active {
  font-weight: 700;
  border-color: #ddd;
  border-bottom-color: #fff;
  margin-bottom: -1px;
  background: #fff;
}
.zgt-te-form-msg {
  min-height: 1.25rem;
  font-weight: 600;
  color: #1b5e20;
}
.zgt-te-muted {
  color: #646970;
  font-size: 0.95rem;
}
.zgt-te-active-course-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.zgt-te-active-course-list li {
  margin: 0.5rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: center;
}
.zgt-te-login-hint {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
}
.zgt-te-notice {
  padding: 0.85rem 1.1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  border: 1px solid transparent;
  line-height: 1.45;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}
.zgt-te-notice.zgt-te-success {
  background: #e8f5e9;
  border-color: #a5d6a7;
  color: #1b5e20;
}
.zgt-te-notice.zgt-te-error {
  background: #ffebee;
  border-color: #ef9a9a;
  color: #b71c1c;
}
.zgt-te-notice.zgt-te-info {
  background: #e3f2fd;
  border-color: #90caf9;
  color: #0d47a1;
}

/* Verify page — virtual ID card */
/* Shared Training ID photo + QR size (classic portrait3:4; slate/horizon use photo height as round diameter) */
.zgt-te-verify-cardpage {
  --zgt-vcard-qr-display: 120px;
  --zgt-vcard-photo-h: 120px;
  --zgt-vcard-photo-w: 90px;
}
.zgt-te-vcard {
  box-sizing: border-box;
  max-width: 520px;
  margin: 0 auto 2rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid #c5c5c5;
  background: linear-gradient(165deg, #fafafa 0%, #f0f0f0 40%, #e8e8e8 100%);
}
.zgt-te-vcard-strip {
  height: 10px;
  background: repeating-linear-gradient(
    90deg,
    #f5c400 0px,
    #f5c400 28px,
    #1a1a1a 28px,
    #1a1a1a 56px
  );
}
.zgt-te-vcard-inner {
  padding: 1rem 1.1rem 1.25rem;
}
.zgt-te-vcard-aside {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
}
.zgt-te-vcard-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 120px;
  max-width: 100%;
  box-sizing: border-box;
  gap: 0.65rem;
}
.zgt-te-vcard-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  width: 100%;
  min-height: 0;
}
.zgt-te-vcard-logo img {
  display: block;
  margin: 0 auto;
  max-height: var(--zgt-verify-logo-max-h, 72px);
  max-width: min(100%, var(--zgt-verify-logo-max-w, 120px));
  width: auto;
  height: auto;
  object-fit: contain;
}
.zgt-te-vcard-main {
  display: grid;
  grid-template-columns: minmax(48px, 56px) 1fr auto;
  gap: 0.75rem 1rem;
  align-items: center;
}
@media (max-width: 520px) {
  .zgt-te-vcard-main {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    justify-items: center;
    text-align: center;
  }
  .zgt-te-vcard-photo {
    justify-self: center;
  }
  .zgt-te-vcard-info {
    text-align: center;
  }
  .zgt-te-vcard-aside {
    grid-column: 1 / -1;
    flex-direction: column;
    justify-self: stretch;
    width: 100%;
  }
  .zgt-te-verify-cardpage.zgt-te-card-style-classic .zgt-te-vcard-main {
    justify-items: center;
  }
  .zgt-te-verify-cardpage.zgt-te-card-style-classic .zgt-te-vcard-aside {
    justify-self: center;
  }
}
.zgt-te-vcard-photo {
  border: 2px solid #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  aspect-ratio: 3 / 4;
  background: #ddd;
  width: 100%;
  max-width: 48px;
  max-height: 64px;
  box-sizing: border-box;
  justify-self: start;
}
.zgt-te-vcard-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.zgt-te-vcard-photo-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 0;
  font-size: 0.6rem;
  color: #666;
}
.zgt-te-vcard-kicker {
  margin: 0 0 0.25rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #555;
}
.zgt-te-vcard-name {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
  line-height: 1.2;
}
.zgt-te-vcard-expiry,
.zgt-te-vcard-ref {
  margin: 0.25rem 0;
  font-size: 0.9rem;
}
.zgt-te-vcard-expiry span,
.zgt-te-vcard-ref span,
.zgt-te-vcard-org span {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #555;
}
.zgt-te-vcard-org {
  margin: 0.25rem 0;
  font-size: 0.9rem;
}
.zgt-te-vcard-summary {
  margin: 0.65rem 0 0;
  font-size: 0.8rem;
  line-height: 1.35;
  color: #5a5a5a;
}
.zgt-te-vcard-trained-by {
  margin: 1rem 0 0;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  font-size: 0.8rem;
  line-height: 1.4;
  text-align: center;
  color: #4a5568;
}
.zgt-te-vcard-qr {
  text-align: center;
}
.zgt-te-vcard-qr img {
  display: block;
  margin: 0 auto;
  border-radius: 4px;
  background: #fff;
  padding: 4px;
}
.zgt-te-verify-cardpage .zgt-te-vcard-photo {
  max-width: var(--zgt-vcard-photo-w);
  max-height: var(--zgt-vcard-photo-h);
}
.zgt-te-verify-cardpage .zgt-te-vcard-qr img {
  width: var(--zgt-vcard-qr-display);
  height: var(--zgt-vcard-qr-display);
  max-width: 100%;
  box-sizing: border-box;
}
.zgt-te-vcard-scan {
  margin: 0.35rem 0 0;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #444;
}

/* Classic (striped header) — 3 columns: photo | details | logo + QR */
.zgt-te-verify-cardpage.zgt-te-card-style-classic .zgt-te-vcard-main {
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 1rem 1.15rem;
}
.zgt-te-verify-cardpage.zgt-te-card-style-classic .zgt-te-vcard-photo {
  max-width: var(--zgt-vcard-photo-w);
  max-height: var(--zgt-vcard-photo-h);
  width: 100%;
  justify-self: start;
  align-self: start;
}
.zgt-te-verify-cardpage.zgt-te-card-style-classic .zgt-te-vcard-aside {
  justify-self: end;
  align-self: start;
}

/* —— Verify card layout styles (Settings) —— */
/* Classic: default rules above; no extra wrapper needed */

/* Slate — blue‑grey “slate” body (distinct from classic light grey) */
.zgt-te-verify-cardpage.zgt-te-card-style-slate .zgt-te-vcard {
  background-color: #64748b;
  background-image: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.14) 0%,
    rgba(255, 255, 255, 0) 38%,
    rgba(30, 41, 59, 0.35) 100%
  );
  color: #f1f5f9;
  border: 1px solid #475569;
  box-shadow: 0 16px 40px rgba(51, 65, 85, 0.45), 0 4px 14px rgba(0, 0, 0, 0.2);
}
.zgt-te-verify-cardpage.zgt-te-card-style-slate .zgt-te-vcard-strip {
  height: 8px;
  background: linear-gradient(90deg, #06b6d4, #3b82f6, #6366f1);
}
.zgt-te-verify-cardpage.zgt-te-card-style-slate .zgt-te-vcard-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}
.zgt-te-verify-cardpage.zgt-te-card-style-slate .zgt-te-vcard-photo {
  border-radius: 50%;
  width: var(--zgt-vcard-photo-h);
  max-width: var(--zgt-vcard-photo-h);
  max-height: var(--zgt-vcard-photo-h);
  aspect-ratio: 1;
  border: 3px solid #64748b;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.zgt-te-verify-cardpage.zgt-te-card-style-slate .zgt-te-vcard-kicker,
.zgt-te-verify-cardpage.zgt-te-card-style-slate .zgt-te-vcard-ref span,
.zgt-te-verify-cardpage.zgt-te-card-style-slate .zgt-te-vcard-scan {
  color: #94a3b8;
}
.zgt-te-verify-cardpage.zgt-te-card-style-slate .zgt-te-vcard-name {
  color: #fff;
}
.zgt-te-verify-cardpage.zgt-te-card-style-slate .zgt-te-vcard-ref {
  color: #cbd5e1;
}
.zgt-te-verify-cardpage.zgt-te-card-style-slate .zgt-te-vcard-expiry,
.zgt-te-verify-cardpage.zgt-te-card-style-slate .zgt-te-vcard-org {
  color: #e2e8f0;
}
.zgt-te-verify-cardpage.zgt-te-card-style-slate .zgt-te-vcard-expiry span,
.zgt-te-verify-cardpage.zgt-te-card-style-slate .zgt-te-vcard-org span,
.zgt-te-verify-cardpage.zgt-te-card-style-slate .zgt-te-vcard-ref span {
  color: #94a3b8;
}
.zgt-te-verify-cardpage.zgt-te-card-style-slate .zgt-te-vcard-summary {
  color: #94a3b8;
}
.zgt-te-verify-cardpage.zgt-te-card-style-slate .zgt-te-vcard-trained-by {
  border-top-color: rgba(255, 255, 255, 0.22);
  color: #e2e8f0;
}
.zgt-te-verify-cardpage.zgt-te-card-style-slate .zgt-te-vcard-photo-ph {
  color: #cbd5e1;
}
.zgt-te-verify-cardpage.zgt-te-card-style-slate .zgt-te-vcard-aside {
  width: 100%;
  margin-top: 0.25rem;
  padding-top: 1rem;
  border-top: 1px dashed #64748b;
}
.zgt-te-verify-cardpage.zgt-te-card-style-slate .zgt-te-vcard-brand {
  flex-direction: row;
  width: 100%;
  max-width: 100%;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.zgt-te-verify-cardpage.zgt-te-card-style-slate .zgt-te-vcard-qr img {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}
.zgt-te-verify-cardpage.zgt-te-card-style-slate .zgt-te-vcard-back {
  background-color: #55657a;
  background-image: linear-gradient(
    175deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(30, 41, 59, 0.28) 100%
  );
  border: 1px solid #475569;
  color: #e2e8f0;
  box-shadow: 0 14px 36px rgba(51, 65, 85, 0.35);
}
.zgt-te-verify-cardpage.zgt-te-card-style-slate .zgt-te-vcard-back-strip {
  background: linear-gradient(90deg, #06b6d4, #3b82f6);
}
.zgt-te-verify-cardpage.zgt-te-card-style-slate .zgt-te-vcard-back-title {
  color: #cbd5e1;
}
.zgt-te-verify-cardpage.zgt-te-card-style-slate .zgt-te-vcard-back-item {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}
.zgt-te-verify-cardpage.zgt-te-card-style-slate .zgt-te-vcard-back-type {
  color: #94a3b8;
}
.zgt-te-verify-cardpage.zgt-te-card-style-slate .zgt-te-vcard-back-desc {
  color: #f1f5f9;
}
.zgt-te-verify-cardpage.zgt-te-card-style-slate .zgt-te-vcard-back-empty {
  color: #94a3b8;
}
.zgt-te-verify-cardpage.zgt-te-card-style-slate .zgt-te-vcard-back-exp-label {
  color: #94a3b8;
}

/* Horizon — white card with gradient frame on all sides (no top-only strip) */
.zgt-te-verify-cardpage.zgt-te-card-style-horizon .zgt-te-vcard {
  border: 4px solid transparent;
  border-radius: 18px;
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(135deg, #14b8a6 0%, #f43f5e 45%, #a855f7 100%) border-box;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.1), 0 4px 12px rgba(15, 23, 42, 0.05);
}
.zgt-te-verify-cardpage.zgt-te-card-style-horizon .zgt-te-vcard-strip {
  display: none;
}
.zgt-te-verify-cardpage.zgt-te-card-style-horizon .zgt-te-vcard-inner {
  padding: 1.15rem 1.25rem 1.35rem;
}
.zgt-te-verify-cardpage.zgt-te-card-style-horizon .zgt-te-vcard-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  grid-template-areas: "info photo aside";
  align-items: start;
  gap: 1rem 1.15rem;
}
.zgt-te-verify-cardpage.zgt-te-card-style-horizon .zgt-te-vcard-info {
  grid-area: info;
  justify-self: start;
  text-align: left;
}
.zgt-te-verify-cardpage.zgt-te-card-style-horizon .zgt-te-vcard-photo {
  grid-area: photo;
  justify-self: center;
  border-radius: 50%;
  width: var(--zgt-vcard-photo-h);
  max-width: var(--zgt-vcard-photo-h);
  max-height: var(--zgt-vcard-photo-h);
  aspect-ratio: 1;
  border: 3px solid #f1f5f9;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}
.zgt-te-verify-cardpage.zgt-te-card-style-horizon .zgt-te-vcard-aside {
  grid-area: aside;
  justify-self: end;
  align-self: start;
}
.zgt-te-verify-cardpage.zgt-te-card-style-horizon .zgt-te-vcard-kicker {
  color: #14b8a6;
  font-weight: 700;
}
.zgt-te-verify-cardpage.zgt-te-card-style-horizon .zgt-te-vcard-name {
  color: #0f172a;
}
.zgt-te-verify-cardpage.zgt-te-card-style-horizon .zgt-te-vcard-ref span {
  color: #64748b;
}
.zgt-te-verify-cardpage.zgt-te-card-style-horizon .zgt-te-vcard-ref {
  color: #334155;
}
.zgt-te-verify-cardpage.zgt-te-card-style-horizon .zgt-te-vcard-scan {
  color: #64748b;
}
.zgt-te-verify-cardpage.zgt-te-card-style-horizon .zgt-te-vcard-summary {
  color: #64748b;
}
.zgt-te-verify-cardpage.zgt-te-card-style-horizon .zgt-te-vcard-expiry span,
.zgt-te-verify-cardpage.zgt-te-card-style-horizon .zgt-te-vcard-org span {
  color: #64748b;
}
.zgt-te-verify-cardpage.zgt-te-card-style-horizon .zgt-te-vcard-expiry,
.zgt-te-verify-cardpage.zgt-te-card-style-horizon .zgt-te-vcard-org {
  color: #334155;
}
.zgt-te-verify-cardpage.zgt-te-card-style-horizon .zgt-te-vcard-trained-by {
  border-top-color: rgba(15, 23, 42, 0.12);
  color: #475569;
}
.zgt-te-verify-cardpage.zgt-te-card-style-horizon .zgt-te-vcard-back {
  border: 3px solid transparent;
  border-radius: 16px;
  background:
    linear-gradient(180deg, #fafafa 0%, #f1f5f9 100%) padding-box,
    linear-gradient(135deg, #14b8a6 0%, #f43f5e 50%, #a855f7 100%) border-box;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
}
.zgt-te-verify-cardpage.zgt-te-card-style-horizon .zgt-te-vcard-back-strip {
  display: none;
}
.zgt-te-verify-cardpage.zgt-te-card-style-horizon .zgt-te-vcard-back-item {
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

@media (max-width: 520px) {
  .zgt-te-verify-cardpage.zgt-te-card-style-slate .zgt-te-vcard-brand {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* Certificate match — bold orange sidebar, formal certificate-inspired layout */
.zgt-te-verify-cardpage.zgt-te-card-style-certificate .zgt-te-vcard {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  background: #ffffff;
  border: 1px solid #d4d4d4;
  border-radius: 4px;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.06);
}
.zgt-te-verify-cardpage.zgt-te-card-style-certificate .zgt-te-vcard-strip--certificate {
  width: 5.75rem;
  min-width: 5.75rem;
  flex-shrink: 0;
  min-height: 11rem;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 1rem 0.65rem;
  background: #ea580c;
  box-sizing: border-box;
}
.zgt-te-verify-cardpage.zgt-te-card-style-certificate .zgt-te-vcard-strip-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}
.zgt-te-verify-cardpage.zgt-te-card-style-certificate .zgt-te-vcard-strip-logo img {
  display: block;
  max-height: var(--zgt-verify-logo-max-h, 72px);
  max-width: min(100%, var(--zgt-verify-logo-max-w, 120px));
  width: auto;
  height: auto;
  object-fit: contain;
}
.zgt-te-verify-cardpage.zgt-te-card-style-certificate .zgt-te-vcard-inner {
  position: relative;
  flex: 1;
  min-width: 0;
  padding: 1.1rem 1.15rem 1.2rem;
  background: #ffffff;
}
.zgt-te-verify-cardpage.zgt-te-card-style-certificate .zgt-te-vcard-inner::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(72%, 280px);
  height: min(68%, 260px);
  background-image: var(--zgt-vcard-watermark, none);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center center;
  opacity: 0.07;
  pointer-events: none;
}
.zgt-te-verify-cardpage.zgt-te-card-style-certificate .zgt-te-vcard-main {
  position: relative;
  z-index: 1;
}
.zgt-te-verify-cardpage.zgt-te-card-style-certificate .zgt-te-vcard-photo {
  border-radius: 4px;
  border: 2px solid #e2e8f0;
  box-shadow: none;
  max-width: var(--zgt-vcard-photo-w);
  max-height: var(--zgt-vcard-photo-h);
}
.zgt-te-verify-cardpage.zgt-te-card-style-certificate .zgt-te-vcard-kicker {
  margin: 0 0 0.35rem;
  color: #ea580c;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.zgt-te-verify-cardpage.zgt-te-card-style-certificate .zgt-te-vcard-name {
  color: #1e293b;
}
.zgt-te-verify-cardpage.zgt-te-card-style-certificate .zgt-te-vcard-ref span,
.zgt-te-verify-cardpage.zgt-te-card-style-certificate .zgt-te-vcard-expiry span,
.zgt-te-verify-cardpage.zgt-te-card-style-certificate .zgt-te-vcard-org span {
  color: #ea580c;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.zgt-te-verify-cardpage.zgt-te-card-style-certificate .zgt-te-vcard-ref,
.zgt-te-verify-cardpage.zgt-te-card-style-certificate .zgt-te-vcard-expiry,
.zgt-te-verify-cardpage.zgt-te-card-style-certificate .zgt-te-vcard-org {
  color: #334155;
}
.zgt-te-verify-cardpage.zgt-te-card-style-certificate .zgt-te-vcard-summary {
  color: #475569;
  font-size: 0.82rem;
}
.zgt-te-verify-cardpage.zgt-te-card-style-certificate .zgt-te-vcard-aside .zgt-te-vcard-logo {
  display: none;
}
.zgt-te-verify-cardpage.zgt-te-card-style-certificate .zgt-te-vcard-scan {
  color: #64748b;
}
.zgt-te-verify-cardpage.zgt-te-card-style-certificate .zgt-te-vcard-trained-by {
  position: relative;
  z-index: 1;
  border-top-color: rgba(234, 88, 12, 0.28);
  color: #64748b;
  font-size: 0.75rem;
}
.zgt-te-verify-cardpage.zgt-te-card-style-certificate .zgt-te-vcard-back {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  background: #ffffff;
  border: 1px solid #d4d4d4;
  border-radius: 4px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
}
.zgt-te-verify-cardpage.zgt-te-card-style-certificate .zgt-te-vcard-back-strip {
  width: 5.75rem;
  min-width: 5.75rem;
  flex-shrink: 0;
  height: auto;
  min-height: 6rem;
  background: #ea580c;
}
.zgt-te-verify-cardpage.zgt-te-card-style-certificate .zgt-te-vcard-back-inner {
  flex: 1;
  min-width: 0;
  background: #ffffff;
}
.zgt-te-verify-cardpage.zgt-te-card-style-certificate .zgt-te-vcard-back-title {
  color: #ea580c;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}
.zgt-te-verify-cardpage.zgt-te-card-style-certificate .zgt-te-vcard-back-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  box-shadow: none;
}
.zgt-te-verify-cardpage.zgt-te-card-style-certificate .zgt-te-vcard-back-type {
  color: #ea580c;
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
}
.zgt-te-verify-cardpage.zgt-te-card-style-certificate .zgt-te-vcard-back-desc {
  color: #1e293b;
}
.zgt-te-verify-cardpage.zgt-te-card-style-certificate .zgt-te-vcard-back-empty {
  color: #64748b;
}
.zgt-te-verify-cardpage.zgt-te-card-style-certificate .zgt-te-vcard-back-exp-label {
  color: #ea580c;
  font-weight: 600;
}

@media (max-width: 520px) {
  .zgt-te-verify-cardpage.zgt-te-card-style-certificate .zgt-te-vcard {
    flex-direction: column;
  }
  .zgt-te-verify-cardpage.zgt-te-card-style-certificate .zgt-te-vcard-strip--certificate {
    width: 100%;
    min-width: 0;
    min-height: 0;
    flex-direction: row;
    justify-content: center;
    padding: 0.75rem 1rem;
  }
  .zgt-te-verify-cardpage.zgt-te-card-style-certificate .zgt-te-vcard-back {
    flex-direction: column;
  }
  .zgt-te-verify-cardpage.zgt-te-card-style-certificate .zgt-te-vcard-back-strip {
    width: 100%;
    min-width: 0;
    min-height: 8px;
    height: 8px;
  }
}

/* Verify page — ID card “back” (in-date qualifications) */
.zgt-te-vcard-back {
  box-sizing: border-box;
  max-width: 520px;
  margin: 2rem auto 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid #c5c5c5;
  background: linear-gradient(165deg, #f5f5f5 0%, #ebebeb 45%, #e2e2e2 100%);
}
.zgt-te-vcard-back-strip {
  height: 10px;
}
.zgt-te-vcard-back-inner {
  padding: 1.1rem 1.15rem 1.35rem;
}
.zgt-te-vcard-back-title {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #444;
  font-weight: 700;
}
.zgt-te-vcard-back-empty {
  margin: 0;
  color: #555;
  font-size: 0.95rem;
}
.zgt-te-vcard-back-item {
  margin: 0 0 1rem;
  padding: 0.85rem 0.95rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.zgt-te-vcard-back-item:last-child {
  margin-bottom: 0;
}
.zgt-te-vcard-back-type {
  margin: 0 0 0.35rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #555;
}
.zgt-te-vcard-back-desc {
  margin: 0 0 0.65rem;
  font-size: 1rem;
  line-height: 1.45;
  color: #1a1a1a;
}
.zgt-te-vcard-back-exp {
  margin: 0;
  font-size: 0.95rem;
}
.zgt-te-vcard-back-exp-label {
  display: inline-block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #555;
  margin-right: 0.35rem;
}
.zgt-te-vcard-back-exp-date.zgt-ok {
  color: #1b5e20;
  font-weight: 700;
}
.zgt-te-vcard-back-exp-date.zgt-bad {
  color: #b71c1c;
  font-weight: 700;
}
.zgt-te-vcard-back-exp-date.zgt-te-exp-na {
  color: #444;
  font-weight: 600;
}
.zgt-te-idcard-viewlink {
  margin: 0.5rem 0 0;
}
.zgt-te-idcard-viewlink a {
  font-weight: 600;
}
.zgt-te-profile-photo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.zgt-te-verify-ref .zgt-te-verify-ref-form {
  margin-bottom: 1.25rem;
  max-width: 520px;
}
.zgt-te-verify-ref-input {
  width: 100%;
  max-width: 22rem;
  padding: 0.5rem 0.65rem;
  box-sizing: border-box;
  border: 1px solid #c3c4c7;
  border-radius: 4px;
}
.zgt-te-verify-ref-result {
  margin-top: 1rem;
}

/* Certificate QR / link verification */
.zgt-te-verify-cert {
  max-width: 480px;
  margin: 0 auto;
}
.zgt-te-certverify-panel {
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
  border-radius: 10px;
  padding: 1.35rem 1.5rem 1.5rem;
  box-shadow: 0 2px 8px rgba(46, 125, 50, 0.12);
}
.zgt-te-certverify-logo {
  text-align: center;
  margin: 0 0 1rem;
}
.zgt-te-certverify-logo img {
  max-height: 56px;
  max-width: 240px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.zgt-te-certverify-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0 0 1.1rem;
  flex-wrap: wrap;
}
.zgt-te-certverify-tick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: #2e7d32;
  color: #fff;
  font-size: 1.1rem;
  line-height: 1;
  font-weight: 700;
}
.zgt-te-certverify-heading h2 {
  margin: 0;
  font-size: 1.25rem;
  color: #1b5e20;
}
.zgt-te-certverify-dl {
  margin: 0;
}
.zgt-te-certverify-dl > div {
  margin: 0.65rem 0 0;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(46, 125, 50, 0.2);
}
.zgt-te-certverify-dl > div:first-of-type {
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
}
.zgt-te-certverify-dl dt {
  margin: 0;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #33691e;
}
.zgt-te-certverify-dl dd {
  margin: 0.2rem 0 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: #1b5e20;
}

/* Course hub — spec logo & privacy above enrollment fields */
.zgt-te-enrollment-spec-promo {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.03);
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}
.zgt-te-enrollment-spec-logo {
  text-align: center;
  margin-bottom: 0.75rem;
}
.zgt-te-enrollment-spec-logo-img {
  display: inline-block;
  max-width: min(100%, 200px);
  max-height: 72px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.zgt-te-enrollment-spec-privacy {
  font-size: 0.9rem;
  line-height: 1.45;
  color: inherit;
}
.zgt-te-enrollment-spec-privacy p:last-child {
  margin-bottom: 0;
}

/* Course hub — single enrollment form (save and continue) */
.zgt-te-enrollment-welcome .zgt-te-enrollment-sub {
  margin: 1.25rem 0 0.65rem;
  font-size: 1.05rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}
.zgt-te-enrollment-welcome .zgt-te-enrollment-sub:first-of-type {
  margin-top: 0.5rem;
  padding-top: 0;
  border-top: 0;
}
.zgt-te-enrollment-actions {
  margin: 1.25rem 0 0;
}

/* Student profile — ID photo upload */
.zgt-te-profile-photo-row {
  margin: 0.75rem 0 0;
}
.zgt-te-profile-photo-frame {
  max-width: 220px;
  margin-bottom: 0.75rem;
}
.zgt-te-profile-photo-frame img {
  display: block;
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.12);
}
.zgt-te-profile-photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  padding: 1rem;
  border: 1px dashed rgba(0, 0, 0, 0.2);
  border-radius: 4px;
  color: #666;
  font-size: 0.9rem;
}
.zgt-te-profile-photo-label {
  position: relative;
  cursor: pointer;
  display: inline-block;
}
.zgt-te-sr-file {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.zgt-te-res-section h4 {
  margin: 1.25rem 0 0.35rem;
  font-size: 1rem;
}
.zgt-te-res-section h4:first-child {
  margin-top: 0;
}
.zgt-te-res-block {
  margin: 0 0 0.75rem;
}

/* Registration, landing, course hub, student profile: mobile-friendly */
.zgt-te-register-responsive .zgt-te-card,
.zgt-te-register.zgt-te-register-responsive,
.zgt-te-front-responsive .zgt-te-card {
  max-width: 100%;
  box-sizing: border-box;
}
.zgt-te-register-responsive .regular-text,
.zgt-te-register-responsive input[type='email'],
.zgt-te-register-responsive input[type='text'],
.zgt-te-register-responsive input[type='password'],
.zgt-te-register-responsive input[type='date'],
.zgt-te-front-responsive .regular-text,
.zgt-te-front-responsive input[type='email'],
.zgt-te-front-responsive input[type='text'],
.zgt-te-front-responsive input[type='password'],
.zgt-te-front-responsive input[type='date'],
.zgt-te-front-responsive input[type='number'],
.zgt-te-front-responsive select,
.zgt-te-front-responsive .large-text,
.zgt-te-front-responsive textarea {
  max-width: 100%;
  box-sizing: border-box;
}
.zgt-te-front-responsive {
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
/* Fluid media only in course hub — do not apply to profile ID card (.zgt-te-idphoto), which uses fixed max widths above */
.zgt-te-course-hub img,
.zgt-te-course-hub video,
.zgt-te-course-hub svg {
  max-width: 100%;
  height: auto;
}
.zgt-te-front-responsive .zgt-te-tab-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.zgt-te-front-responsive .zgt-te-tab {
  flex: 1 1 auto;
  min-width: 0;
  text-align: center;
  box-sizing: border-box;
}
@media (max-width: 600px) {
  .zgt-te-register-responsive .zgt-te-card,
  .zgt-te-front-responsive .zgt-te-card {
    padding: 1rem 0.85rem;
  }
}

/* Course resources tab: stack syllabus + file buttons */
.zgt-te-res-list {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}
.zgt-te-res-list li {
  margin: 0;
  max-width: 100%;
}
.zgt-te-res-list .button {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
  text-align: center;
  box-sizing: border-box;
}

/* Instructor — collapsible equipment checklist */
.zgt-inst-equipment-details summary.zgt-inst-equipment-summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05em;
  padding: 0.25rem 0;
  list-style: none;
}
.zgt-inst-equipment-details summary::-webkit-details-marker {
  display: none;
}
.zgt-inst-equipment-details summary::before {
  content: '\25B8 ';
  display: inline-block;
  transition: transform 0.15s ease;
}
.zgt-inst-equipment-details[open] summary::before {
  transform: rotate(90deg);
}
.zgt-inst-equipment-details-body {
  padding-top: 0.35rem;
}

/* Instructor student table — ID-sized thumbnails */
.zgt-te-instructor-students .zgt-te-thumb,
.zgt-te-instructor-students td:first-child img {
  width: 40px;
  height: 40px;
  max-width: 40px;
  max-height: 40px;
  object-fit: cover;
  object-position: center top;
  border-radius: 2px;
  vertical-align: middle;
  display: inline-block;
}

/* Instructor student table */
.zgt-te-instructor-students .zgt-te-col-override {
  width: 7.5rem;
  max-width: 28vw;
  white-space: nowrap;
  vertical-align: middle;
}
.zgt-te-instructor-students .zgt-te-col-override .button {
  white-space: normal;
  line-height: 1.2;
  padding: 0.2em 0.5em;
  font-size: 0.85em;
}
.zgt-te-instructor-students .zgt-te-col-forms {
  width: 3rem;
  text-align: center;
  vertical-align: middle;
}
.zgt-te-ok-tick {
  color: #00a32a;
  font-weight: 700;
  font-size: 1.15em;
  line-height: 1;
}

/* Open-question override column (instructor marks) */
.zgt-open-grades .zgt-open-override-col {
  width: 6.5rem;
  max-width: 22vw;
  white-space: nowrap;
  vertical-align: top;
}
.zgt-open-grades .zgt-open-override-col .zgt-open-grade {
  max-width: 100%;
  box-sizing: border-box;
}

/* —— Mobile & small tablets: readable text, tap targets, no horizontal pinch-zoom reliance —— */
@media screen and (max-width: 782px) {
  .zgt-te-wrap.zgt-te-front-responsive,
  .zgt-te-wrap.zgt-te-register-responsive {
    font-size: 1rem;
    line-height: 1.45;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    padding-left: max(0.65rem, env(safe-area-inset-left));
    padding-right: max(0.65rem, env(safe-area-inset-right));
  }
  .zgt-te-front-responsive h2 {
    font-size: clamp(1.15rem, 4.2vw, 1.35rem);
    line-height: 1.25;
    word-break: break-word;
  }
  .zgt-te-front-responsive h3 {
    font-size: clamp(1.05rem, 3.8vw, 1.2rem);
  }
  .zgt-te-front-responsive .description,
  .zgt-te-front-responsive p {
    font-size: 0.95rem;
  }
  .zgt-te-front-responsive .button,
  .zgt-te-front-responsive .button-primary,
  .zgt-te-front-responsive input[type='submit'] {
    min-height: 44px;
    padding: 0.5rem 1rem;
    box-sizing: border-box;
  }
  .zgt-te-front-responsive .zgt-te-exam-area .button {
    width: 100%;
    max-width: 100%;
    text-align: center;
  }
  .zgt-te-front-responsive table {
    display: block;
    width: 100% !important;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .zgt-te-front-responsive .zgt-feedback-row input[type='range'] {
    width: 100%;
    max-width: 100%;
  }
  .zgt-te-vcard {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  .zgt-te-vcard-inner {
    padding: 0.85rem 0.75rem 1rem;
  }
  .zgt-te-verify-cardpage:not(.zgt-te-card-style-classic) .zgt-te-vcard-main {
    grid-template-columns: 1fr;
    gap: 0.65rem;
    justify-items: center;
  }
  .zgt-te-verify-cardpage.zgt-te-card-style-horizon .zgt-te-vcard-main {
    grid-template-columns: 1fr;
    grid-template-areas:
      "photo"
      "info"
      "aside";
    justify-items: center;
  }
  .zgt-te-verify-cardpage.zgt-te-card-style-horizon .zgt-te-vcard-info {
    text-align: center;
    justify-self: center;
  }
  .zgt-te-verify-cardpage.zgt-te-card-style-horizon .zgt-te-vcard-aside {
    justify-self: center;
  }
  .zgt-te-verify-cardpage:not(.zgt-te-card-style-classic):not(.zgt-te-card-style-slate):not(.zgt-te-card-style-horizon) .zgt-te-vcard-photo {
    max-width: var(--zgt-vcard-photo-w);
    max-height: var(--zgt-vcard-photo-h);
    justify-self: center;
  }
  .zgt-te-verify-cardpage.zgt-te-card-style-slate .zgt-te-vcard-photo,
  .zgt-te-verify-cardpage.zgt-te-card-style-horizon .zgt-te-vcard-photo {
    width: var(--zgt-vcard-photo-h);
    max-width: var(--zgt-vcard-photo-h);
    max-height: var(--zgt-vcard-photo-h);
  }
  .zgt-te-verify-cardpage.zgt-te-card-style-classic .zgt-te-vcard-main {
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: start;
    justify-items: stretch;
    gap: 0.75rem 0.85rem;
  }
  .zgt-te-verify-cardpage.zgt-te-card-style-classic .zgt-te-vcard-photo {
    max-width: var(--zgt-vcard-photo-w);
    max-height: var(--zgt-vcard-photo-h);
    justify-self: start;
  }
  .zgt-te-verify-cardpage.zgt-te-card-style-classic .zgt-te-vcard-aside {
    justify-self: end;
  }
  .zgt-te-vcard-aside {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
  }
  .zgt-te-vcard-brand {
    width: 100%;
    max-width: 200px;
  }
  .zgt-te-certverify-panel {
    padding: 1rem 0.75rem;
  }
  .zgt-te-profile-tabs .zgt-te-tab {
    font-size: 0.9rem;
    padding: 0.45rem 0.6rem;
  }
}
/* Forge Card Style: Yellow header, side-by-side photo and QR */
.zgt-te-card-style-forge .zgt-te-vcard {
  border: none;
  background: #fff;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  display: block;
}
.zgt-te-card-style-forge .zgt-te-vcard-forge-header {
  background-color: #F3CB15; /* RAL 1021 Colza Yellow */
  padding: 2rem 1.5rem;
  text-align: center;
}
.zgt-te-card-style-forge .zgt-te-vcard-forge-logo {
  max-width: 220px;
  max-height: 80px;
  width: auto;
  height: auto;
  margin-bottom: 0.75rem;
  display: inline-block;
}
.zgt-te-card-style-forge .zgt-te-vcard-forge-title {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 900;
  color: #0f172a;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.zgt-te-card-style-forge .zgt-te-vcard-inner {
  padding: 2rem 1.5rem;
  background: #fff;
  border: none;
}
.zgt-te-card-style-forge .zgt-te-vcard-forge-details {
  text-align: center;
  margin-bottom: 2rem;
}
.zgt-te-card-style-forge .zgt-te-vcard-forge-org {
  font-size: 0.9rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin: 0 0 0.5rem;
}
.zgt-te-card-style-forge .zgt-te-vcard-name {
  font-size: 1.75rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 0.5rem;
  border: none;
  padding: 0;
}
.zgt-te-card-style-forge .zgt-te-vcard-ref {
  font-size: 1rem;
  font-weight: 700;
  color: #475569;
  letter-spacing: 0.05em;
  margin: 0 0 0.5rem;
}
.zgt-te-card-style-forge .zgt-te-vcard-employer {
  font-size: 0.9rem;
  color: #64748b;
  margin: 0;
}
.zgt-te-card-style-forge .zgt-te-vcard-employer span {
  font-weight: 700;
}
.zgt-te-card-style-forge .zgt-te-vcard-forge-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
}
.zgt-te-card-style-forge .zgt-te-vcard-photo {
  margin: 0;
}
.zgt-te-card-style-forge .zgt-te-vcard-photo img,
.zgt-te-card-style-forge .zgt-te-vcard-photo-ph {
  width: 120px;
  height: 120px;
  border-radius: 8px;
  border-color: #e2e8f0;
}
.zgt-te-card-style-forge .zgt-te-vcard-qr {
  margin: 0;
  width: 120px;
}
.zgt-te-card-style-forge .zgt-te-vcard-qr img {
  width: 120px;
  height: 120px;
  display: block;
}
.zgt-te-card-style-forge .zgt-te-vcard-trained-by {
  text-align: center;
  font-size: 0.85rem;
  color: #94a3b8;
  font-style: italic;
  margin-top: 1rem;
}

/* Update course icons to match RAL 1021 in the portal/profile if desired */
.zgt-te-profile .zgt-te-table td .zgt-te-spec-icon-placeholder {
  background-color: #F3CB15;
  color: #0f172a;
}
/* =============================================
   Student Profile: Uniform ID Card
   Mobile-first, tiered layout:
   Name → Photo + QR (row) → Button → Share
   ============================================= */

/* Override old passport-photo rule for this card */
.zgt-te-idcard-uniform .zgt-te-idphoto img {
  max-width: none;
  max-height: none;
}

.zgt-te-idcard-uniform {
  text-align: center;
  background: linear-gradient(160deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 20px;
  /* top accent bar done with border-top instead of ::before + overflow:hidden */
  border-top: 8px solid #F3CB15;
  border-left: 1px solid #e2e8f0;
  border-right: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.05), 0 10px 10px -5px rgba(0,0,0,0.02);
  margin-bottom: 3rem;
  padding: 2.5rem 1.5rem;
  box-sizing: border-box;
  animation: zgt-te-fade-in-up 0.5s ease-out;
}

@keyframes zgt-te-fade-in-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Name ── */
.zgt-te-idcard-name-uniform {
  margin: 0 0 2rem 0;
  font-size: clamp(1.5rem, 5vw, 2.25rem);
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.02em;
  line-height: 1.15;
  word-break: break-word;
}

/* ── Photo + QR row ── */
.zgt-te-idcard-row-uniform {
  display: flex;
  flex-direction: row;       /* always row — name is above already */
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: nowrap;         /* prevent wrapping; shrink on tiny screens */
}

/* Photo & QR images: square, equal size, never cropped */
.zgt-te-idcard-row-uniform .zgt-te-idphoto,
.zgt-te-idcard-row-uniform .zgt-te-idqr {
  flex: 0 0 auto;
}

.zgt-te-idcard-row-uniform .zgt-te-idphoto img,
.zgt-te-idcard-row-uniform .zgt-te-idqr img {
  display: block;
  width: 130px;
  height: 130px;
  object-fit: cover;
  border-radius: 10px;
  border: 3px solid #ffffff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.zgt-te-idcard-row-uniform .zgt-te-idphoto-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 130px;
  height: 130px;
  border-radius: 10px;
  border: 2px dashed #cbd5e1;
  background: #f1f5f9;
  color: #94a3b8;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  padding: 0.5rem;
  box-sizing: border-box;
}

/* Scale down on genuinely narrow phones */
@media (max-width: 420px) {
  .zgt-te-idcard-row-uniform {
    gap: 1rem;
  }
  .zgt-te-idcard-row-uniform .zgt-te-idphoto img,
  .zgt-te-idcard-row-uniform .zgt-te-idqr img,
  .zgt-te-idcard-row-uniform .zgt-te-idphoto-ph {
    width: 110px;
    height: 110px;
  }
}

/* ── View ID Card button ── */
.zgt-te-idcard-viewlink {
  margin: 0 0 1.5rem 0;
}

.zgt-te-idcard-viewlink a.button {
  display: inline-block;
  background: #0f172a;
  color: #ffffff;
  padding: 0.8rem 2rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  line-height: 1;
  border: none;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.zgt-te-idcard-viewlink a.button:hover {
  background: #1e293b;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

/* ── Sharing / verification tools ── */
.zgt-te-idcard-share {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  text-align: center;
  max-width: 440px;
  margin: 0 auto;
  box-sizing: border-box;
}

.zgt-te-idcard-share .zgt-te-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.zgt-te-copyable-link {
  display: block;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 0.65rem 0.75rem;
  font-family: inherit;
  font-size: 0.8rem;
  color: #475569;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-bottom: 1rem;
  text-align: left;
}

/* ── Signature (hidden on mobile) ── */
.zgt-te-idsig-uniform {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e2e8f0;
}
.zgt-te-idsig-uniform img {
  max-height: 56px;
margin: 0;
  width: 120px;
}
.zgt-te-card-style-forge .zgt-te-vcard-qr img {
  width: 120px;
  height: 120px;
  display: block;
}
.zgt-te-card-style-forge .zgt-te-vcard-trained-by {
  text-align: center;
  font-size: 0.85rem;
  color: #94a3b8;
  font-style: italic;
  margin-top: 1rem;
}

/* Update course icons to match RAL 1021 in the portal/profile if desired */
.zgt-te-profile .zgt-te-table td .zgt-te-spec-icon-placeholder {
  background-color: #F3CB15;
  color: #0f172a;
}
/* =============================================
   Student Profile: Uniform ID Card
   Mobile-first, tiered layout:
   Name → Photo + QR (row) → Button → Share
   ============================================= */

/* Override old passport-photo rule for this card */
.zgt-te-idcard-uniform .zgt-te-idphoto img {
  max-width: none;
  max-height: none;
}

.zgt-te-idcard-uniform {
  text-align: center;
  background: linear-gradient(160deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 20px;
  /* top accent bar done with border-top instead of ::before + overflow:hidden */
  border-top: 8px solid #F3CB15;
  border-left: 1px solid #e2e8f0;
  border-right: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.05), 0 10px 10px -5px rgba(0,0,0,0.02);
  margin-bottom: 3rem;
  padding: 2.5rem 1.5rem;
  box-sizing: border-box;
  animation: zgt-te-fade-in-up 0.5s ease-out;
}

@keyframes zgt-te-fade-in-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Name ── */
.zgt-te-idcard-name-uniform {
  margin: 0 0 2rem 0;
  font-size: clamp(1.5rem, 5vw, 2.25rem);
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.02em;
  line-height: 1.15;
  word-break: break-word;
}

/* ── Photo + QR row ── */
.zgt-te-idcard-row-uniform {
  display: flex;
  flex-direction: row;       /* always row — name is above already */
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: nowrap;         /* prevent wrapping; shrink on tiny screens */
}

/* Photo & QR images: square, equal size, never cropped */
.zgt-te-idcard-row-uniform .zgt-te-idphoto,
.zgt-te-idcard-row-uniform .zgt-te-idqr {
  flex: 0 0 auto;
}

.zgt-te-idcard-row-uniform .zgt-te-idphoto img,
.zgt-te-idcard-row-uniform .zgt-te-idqr img {
  display: block;
  width: 130px;
  height: 130px;
  object-fit: cover;
  border-radius: 10px;
  border: 3px solid #ffffff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.zgt-te-idcard-row-uniform .zgt-te-idphoto-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 130px;
  height: 130px;
  border-radius: 10px;
  border: 2px dashed #cbd5e1;
  background: #f1f5f9;
  color: #94a3b8;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  padding: 0.5rem;
  box-sizing: border-box;
}

/* Scale down on genuinely narrow phones */
@media (max-width: 420px) {
  .zgt-te-idcard-row-uniform {
    gap: 1rem;
  }
  .zgt-te-idcard-row-uniform .zgt-te-idphoto img,
  .zgt-te-idcard-row-uniform .zgt-te-idqr img,
  .zgt-te-idcard-row-uniform .zgt-te-idphoto-ph {
    width: 110px;
    height: 110px;
  }
}

/* ── View ID Card button ── */
.zgt-te-idcard-viewlink {
  margin: 0 0 1.5rem 0;
}

.zgt-te-idcard-viewlink a.button {
  display: inline-block;
  background: #0f172a;
  color: #ffffff;
  padding: 0.8rem 2rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  line-height: 1;
  border: none;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.zgt-te-idcard-viewlink a.button:hover {
  background: #1e293b;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

/* ── Sharing / verification tools ── */
.zgt-te-idcard-share {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  text-align: center;
  max-width: 440px;
  margin: 0 auto;
  box-sizing: border-box;
}

.zgt-te-idcard-share .zgt-te-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.zgt-te-copyable-link {
  display: block;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 0.65rem 0.75rem;
  font-family: inherit;
  font-size: 0.8rem;
  color: #475569;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-bottom: 1rem;
  text-align: left;
}

/* ── Signature (hidden on mobile) ── */
.zgt-te-idsig-uniform {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e2e8f0;
}
.zgt-te-idsig-uniform img {
  max-height: 56px;
  width: auto;
  opacity: 0.65;
  filter: grayscale(1);
}

/* Hide signature on mobile */
@media (max-width: 600px) {
  .zgt-te-idsig-uniform {
    display: none;
  }
}

/* ==========================================================================
   Workbook Modern Redesign
   ========================================================================== */

/* Remove generic backgrounds and set up a polished hub */
.zgt-te-workbook-hub {
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

/* Modern Card Style for Workbook Instances */
.zgt-wb-instance,
.zgt-wb-review-row {
  background-color: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 12px !important;
  padding: 1.5rem !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05) !important;
  transition: all 0.2s ease-in-out;
}
.zgt-wb-instance:hover,
.zgt-wb-review-row:hover {
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06) !important;
  border-color: #d1d5db !important;
}

/* Flexbox Header for alignment */
.zgt-wb-instance-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.zgt-wb-instance-header h4,
.zgt-wb-instance-header h5 {
  margin: 0 !important;
  font-weight: 600 !important;
  color: #111827 !important;
  font-size: 1.1rem;
}

/* Modern Status Pills */
.zgt-wb-status {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: capitalize;
  white-space: nowrap;
}
.zgt-wb-status--draft {
  background-color: #f3f4f6;
  color: #374151;
}
.zgt-wb-status--submitted {
  background-color: #eff6ff;
  color: #1d4ed8;
}
.zgt-wb-status--approved {
  background-color: #ecfdf5;
  color: #065f46;
}
.zgt-wb-status--failed {
  background-color: #fef2f2;
  color: #b91c1c;
}
.zgt-wb-status--needs_update {
  background-color: #fff7ed;
  color: #c2410c;
}

/* Typography refinements */
.zgt-wb-instance p.description,
.zgt-wb-review-row p.description {
  color: #6b7280;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

/* Instructor Panel Adjustments */
.zgt-workbook-panel {
  background-color: #f9fafb !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 12px !important;
  padding: 1.5rem !important;
}
.zgt-wb-inst-block {
  background-color: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin-top: 1.5rem !important;
}
.zgt-wb-inst-name {
  color: #374151;
  font-size: 1.25rem;
  border-bottom: 2px solid #e5e7eb;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

/* Correction Badge */
.zgt-wb-correction {
  font-size: 0.8rem;
  font-weight: normal;
  color: #9ca3af;
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
  .zgt-wb-instance,
  .zgt-wb-review-row {
    padding: 1rem !important;
  }
  .zgt-wb-instance-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Responsive Workbook Form Fields */
.zgt-wb-f,
.zgt-wb-inst-comment,
.zgt-wb-stu-feedback {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
  background-color: #f9fafb;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out, background-color 0.15s ease-in-out;
  margin-top: 0.25rem;
}

.zgt-wb-f:focus,
.zgt-wb-inst-comment:focus,
.zgt-wb-stu-feedback:focus {
  outline: none;
  border-color: #3b82f6;
}

.zgt-te-idcard-share .zgt-te-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.zgt-te-copyable-link {
  display: block;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 0.65rem 0.75rem;
  font-family: inherit;
  font-size: 0.8rem;
  color: #475569;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-bottom: 1rem;
  text-align: left;
}

/* ── Signature (hidden on mobile) ── */
.zgt-te-idsig-uniform {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e2e8f0;
}
.zgt-te-idsig-uniform img {
  max-height: 56px;
  width: auto;
  opacity: 0.65;
  filter: grayscale(1);
}

/* Hide signature on mobile */
@media (max-width: 600px) {
  .zgt-te-idsig-uniform {
    display: none;
  }
}

/* --- PREMIUM VISUAL OVERHAUL OVERRIDES --- */
:root {
  --zgt-primary: #6366f1;
  --zgt-primary-hover: #4f46e5;
  --zgt-bg-card: #ffffff;
  --zgt-border-color: #e2e8f0;
  --zgt-text-main: #1e293b;
  --zgt-text-muted: #64748b;
  --zgt-success: #10b981;
  --zgt-info: #3b82f6;
  --zgt-warning: #f59e0b;
  --zgt-danger: #ef4444;
  --zgt-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --zgt-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --zgt-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --zgt-radius-md: 12px;
  --zgt-radius-sm: 6px;
  --zgt-transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.zgt-te-wrap,
.zgt-te-front-responsive,
#zgt-exam-root {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  color: var(--zgt-text-main) !important;
}

/* Cards Overhaul */
.zgt-te-wrap .zgt-te-card,
.zgt-te-front-responsive .zgt-te-card {
  background: var(--zgt-bg-card) !important;
  border: 1px solid var(--zgt-border-color) !important;
  border-radius: var(--zgt-radius-md) !important;
  box-shadow: var(--zgt-shadow-md) !important;
  padding: 30px !important;
  transition: var(--zgt-transition) !important;
}

.zgt-te-wrap .zgt-te-card:hover,
.zgt-te-front-responsive .zgt-te-card:hover {
  box-shadow: var(--zgt-shadow-lg) !important;
  border-color: var(--zgt-primary) !important;
}

/* Inputs & Form Fields Overhaul */
.zgt-te-wrap input[type="text"],
.zgt-te-wrap input[type="email"],
.zgt-te-wrap input[type="password"],
.zgt-te-wrap select,
.zgt-te-wrap textarea,
.zgt-te-front-responsive input[type="text"],
.zgt-te-front-responsive input[type="email"],
.zgt-te-front-responsive input[type="password"],
.zgt-te-front-responsive select,
.zgt-te-front-responsive textarea {
  padding: 10px 14px !important;
  border: 1px solid var(--zgt-border-color) !important;
  border-radius: var(--zgt-radius-sm) !important;
  background: #ffffff !important;
  font-size: 14px !important;
  color: var(--zgt-text-main) !important;
  transition: var(--zgt-transition) !important;
  outline: none !important;
  box-shadow: var(--zgt-shadow-sm) !important;
}

.zgt-te-wrap input[type="text"]:focus,
.zgt-te-wrap input[type="email"]:focus,
.zgt-te-wrap input[type="password"]:focus,
.zgt-te-wrap select:focus,
.zgt-te-wrap textarea:focus,
.zgt-te-front-responsive input[type="text"]:focus,
.zgt-te-front-responsive input[type="email"]:focus,
.zgt-te-front-responsive input[type="password"]:focus,
.zgt-te-front-responsive select:focus,
.zgt-te-front-responsive textarea:focus {
  border-color: var(--zgt-primary) !important;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15) !important;
}

/* Button Overhaul */
.zgt-te-wrap .button:not(.zgt-reg-sig-clear):not(.button-secondary):not(.secondary),
.zgt-te-wrap button:not(.zgt-reg-sig-clear):not(.button-secondary):not(.secondary),
.zgt-te-wrap input[type="submit"],
.zgt-te-front-responsive .button:not(.zgt-reg-sig-clear):not(.button-secondary):not(.secondary),
.zgt-te-front-responsive button:not(.zgt-reg-sig-clear):not(.button-secondary):not(.secondary),
.zgt-te-front-responsive input[type="submit"],
#zgt-exam-root .button:not(.zgt-reg-sig-clear):not(.button-secondary):not(.secondary),
#zgt-exam-root button:not(.zgt-reg-sig-clear):not(.button-secondary):not(.secondary),
#zgt-exam-root input[type="submit"],
.zgt-btn-primary,
.zgt-btn {
  background: var(--zgt-primary) !important;
  border-color: var(--zgt-primary) !important;
  color: #ffffff !important;
  padding: 8px 20px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  border-radius: var(--zgt-radius-sm) !important;
  transition: var(--zgt-transition) !important;
  height: auto !important;
  line-height: normal !important;
  box-shadow: var(--zgt-shadow-sm) !important;
  cursor: pointer;
  text-shadow: none !important;
}

.zgt-te-wrap .button:not(.zgt-reg-sig-clear):not(.button-secondary):not(.secondary):hover,
.zgt-te-wrap button:not(.zgt-reg-sig-clear):not(.button-secondary):not(.secondary):hover,
.zgt-te-wrap input[type="submit"]:hover,
.zgt-te-front-responsive .button:not(.zgt-reg-sig-clear):not(.button-secondary):not(.secondary):hover,
.zgt-te-front-responsive button:not(.zgt-reg-sig-clear):not(.button-secondary):not(.secondary):hover,
.zgt-te-front-responsive input[type="submit"]:hover,
#zgt-exam-root .button:not(.zgt-reg-sig-clear):not(.button-secondary):not(.secondary):hover,
#zgt-exam-root button:not(.zgt-reg-sig-clear):not(.button-secondary):not(.secondary):hover,
#zgt-exam-root input[type="submit"]:hover,
.zgt-btn-primary:hover,
.zgt-btn:hover {
  background: var(--zgt-primary-hover) !important;
  border-color: var(--zgt-primary-hover) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
  transform: translateY(-1px);
}

.zgt-te-wrap .button:active,
.zgt-te-wrap button:active,
.zgt-te-wrap input[type="submit"]:active,
.zgt-te-front-responsive .button:active,
.zgt-te-front-responsive button:active,
.zgt-te-front-responsive input[type="submit"]:active {
  transform: translateY(0);
}

/* Standard Secondary/Reset Button */
.zgt-te-wrap .button.zgt-reg-sig-clear,
.zgt-te-wrap button.secondary,
.zgt-te-wrap .button-secondary,
.zgt-te-front-responsive .button.zgt-reg-sig-clear,
.zgt-te-front-responsive button.secondary,
.zgt-te-front-responsive .button-secondary {
  background: #f1f5f9 !important;
  border-color: #e2e8f0 !important;
  color: var(--zgt-text-muted) !important;
}

.zgt-te-wrap .button.zgt-reg-sig-clear:hover,
.zgt-te-wrap button.secondary:hover,
.zgt-te-wrap .button-secondary:hover,
.zgt-te-front-responsive .button.zgt-reg-sig-clear:hover,
.zgt-te-front-responsive button.secondary:hover,
.zgt-te-front-responsive .button-secondary:hover {
  background: #e2e8f0 !important;
  border-color: #cbd5e1 !important;
  color: var(--zgt-text-main) !important;
  box-shadow: var(--zgt-shadow-sm) !important;
}


/* Mobile Table Responsiveness Overhaul */
@media (max-width: 768px) {
  .zgt-te-wrap .zgt-te-table-wrap {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    margin-bottom: 1rem !important;
    display: block !important;
    width: 100% !important;
  }

  .zgt-te-wrap table.zgt-te-table,
  .zgt-te-wrap table {
    min-width: 480px !important;
  }

  .zgt-te-wrap table th,
  .zgt-te-wrap table td {
    padding: 10px 10px !important;
    font-size: 13px !important;
    letter-spacing: 0 !important;
  }

  .zgt-te-wrap table td.zgt-ok,
  .zgt-te-wrap table td.zgt-bad,
  .zgt-te-wrap table td:nth-child(2),
  .zgt-te-wrap table td:nth-child(3) {
    white-space: nowrap !important;
  }
}

/* Student Profile Course Item Cards */
.zgt-te-course-cards-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.zgt-te-course-item-card {
  border: 1px solid var(--zgt-border-color);
  border-radius: var(--zgt-radius-md);
  padding: 1.25rem;
  background: #ffffff !important;
  box-shadow: var(--zgt-shadow-sm);
  transition: var(--zgt-transition);
}

.zgt-te-course-item-card:hover {
  box-shadow: var(--zgt-shadow-md);
  border-color: rgba(99, 102, 241, 0.3);
}

.zgt-te-course-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
}

.zgt-te-course-item-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--zgt-text-main);
  line-height: 1.35;
}

.zgt-te-course-item-details {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.92rem;
  color: var(--zgt-text-muted);
  padding: 0.75rem 0;
  border-top: 1px solid var(--zgt-border-color);
  border-bottom: 1px solid var(--zgt-border-color);
  margin-bottom: 0.85rem;
}

.zgt-te-course-detail-row {
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
}

.zgt-te-detail-label {
  font-weight: 600;
  color: var(--zgt-text-muted);
}

.zgt-te-detail-value.zgt-ok {
  color: var(--zgt-success);
  font-weight: 700;
}

.zgt-te-detail-value.zgt-bad {
  color: var(--zgt-danger);
  font-weight: 700;
}

.zgt-te-course-item-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   Instructor Course Console - Sticky Readiness Bar & Section Filter
   ========================================================================== */
.zgt-inst-sticky-bar {
  position: sticky;
  top: 0;
  z-index: 999;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid #cbd5e1;
  padding: 10px 14px;
  margin: -10px -14px 24px -14px;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 4px 14px -2px rgba(0, 0, 0, 0.08);
}
.zgt-inst-sticky-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  max-width: 1400px;
  margin: 0 auto;
}
.zgt-inst-sticky-stats {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.zgt-sticky-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.zgt-sticky-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  text-decoration: none;
}
.zgt-pill-ok {
  background: #dcfce7;
  color: #15803d !important;
  border: 1px solid #86efac;
}
.zgt-pill-warn {
  background: #fef3c7;
  color: #b45309 !important;
  border: 1px solid #fde68a;
}
.zgt-pill-info {
  background: #e0f2fe;
  color: #0369a1 !important;
  border: 1px solid #bae6fd;
}
.zgt-pill-pending {
  background: #fee2e2;
  color: #b91c1c !important;
  border: 1px solid #fca5a5;
}
.zgt-pill-ready {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff !important;
  border: 1px solid #047857;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.35);
}
.zgt-pill-done {
  background: #f1f5f9;
  color: #475569 !important;
  border: 1px solid #cbd5e1;
}
.zgt-inst-section-nav {
  display: flex;
  align-items: center;
  gap: 3px;
  background: #f1f5f9;
  padding: 3px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}
.zgt-sec-nav-btn {
  background: transparent;
  border: none;
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
}
.zgt-sec-nav-btn:hover {
  color: #0f172a;
  background: rgba(255, 255, 255, 0.5);
}
.zgt-sec-nav-btn.is-active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  font-weight: 700;
}

.zgt-inst-section-block.is-hidden {
  display: none !important;
}

/* ==========================================================================
   Candidate Outcome Status Chips
   ========================================================================== */
.zgt-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  white-space: nowrap;
}
.zgt-chip-pass {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
}
.zgt-chip-fail {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fca5a5;
}
.zgt-chip-progress {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}
.zgt-chip-warn {
  background: #f3e8ff;
  color: #7e22ce;
  border: 1px solid #d8b4fe;
}
.zgt-chip-neutral {
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #cbd5e1;
}

/* ==========================================================================
   Digital ID Card Polish, Shimmer & Native Share Bar
   ========================================================================== */
.zgt-te-idcard-shimmer {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
}
.zgt-vcard-shimmer-highlight {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(115deg, transparent 25%, rgba(255, 255, 255, 0.25) 45%, rgba(255, 255, 255, 0.5) 50%, transparent 60%);
  transform: rotate(25deg);
  pointer-events: none;
  opacity: 0.5;
  animation: zgt-shimmer-pan 9s infinite linear;
}
@keyframes zgt-shimmer-pan {
  0% {
    transform: translateX(-100%) rotate(25deg);
  }
  100% {
    transform: translateX(100%) rotate(25deg);
  }
}

.zgt-vcard-expiry-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
}
.zgt-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.zgt-expiry-valid {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
}
.zgt-expiry-soon {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}
.zgt-expiry-expired {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fca5a5;
}

.zgt-te-idcard-share-bar {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 14px;
}

/* Executive KPI Summary Cards (Admin & Front Console) */
.zgt-cc-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 16px 0 24px;
}
.zgt-cc-kpi-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px 18px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  transition: all 0.2s ease;
}
.zgt-cc-kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.zgt-cc-kpi-card .zgt-kpi-icon {
  font-size: 26px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: #f1f5f9;
  flex-shrink: 0;
}
.zgt-cc-kpi-card.zgt-kpi-alert {
  border-color: #fecaca;
  background: #fff5f5;
}
.zgt-cc-kpi-card.zgt-kpi-alert .zgt-kpi-icon {
  background: #fee2e2;
}
.zgt-cc-kpi-card.zgt-kpi-warn {
  border-color: #fed7aa;
  background: #fffaf0;
}
.zgt-cc-kpi-card.zgt-kpi-warn .zgt-kpi-icon {
  background: #ffedd5;
}
.zgt-cc-kpi-card.zgt-kpi-info {
  border-color: #bfdbfe;
  background: #f0f7ff;
}
.zgt-cc-kpi-card.zgt-kpi-info .zgt-kpi-icon {
  background: #dbeafe;
}
.zgt-cc-kpi-card.zgt-kpi-success {
  border-color: #bbf7d0;
  background: #f0fdf4;
}
.zgt-cc-kpi-card.zgt-kpi-success .zgt-kpi-icon {
  background: #dcfce7;
}
.zgt-cc-kpi-card .zgt-kpi-number {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
}
.zgt-cc-kpi-card .zgt-kpi-sub {
  font-size: 13px;
  font-weight: 500;
  color: #64748b;
}
.zgt-cc-kpi-card .zgt-kpi-label {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* 2-Column Responsive Student Detail Drawer */
.zgt-cc-student-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 14px;
}
@media (max-width: 900px) {
  .zgt-cc-student-detail-grid {
    grid-template-columns: 1fr;
  }
}
.zgt-cc-grid-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.zgt-cc-subcard {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.zgt-cc-subcard h4 {
  margin: 0 0 12px 0;
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 6px;
}
.zgt-cc-subcard--release {
  background: #f8fafc;
  border-color: #cbd5e1;
}

/* Course Console Matching Runs Status Key */
.zgt-cc-status-key {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin: 10px 0 16px 0;
  padding: 10px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 12px;
  color: #475569;
  max-width: 960px;
}
.zgt-cc-status-key .zgt-key-title {
  font-weight: 700;
  color: #1e293b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 11px;
}
.zgt-cc-status-key .zgt-key-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.zgt-cc-status-key .zgt-key-dot {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  display: inline-block;
  flex-shrink: 0;
}
.zgt-cc-status-key .zgt-key-dot--red {
  background: #fde8e8;
  border: 1px solid #fca5a5;
}
.zgt-cc-status-key .zgt-key-dot--yellow {
  background: #fff8e5;
  border: 1px solid #fde68a;
}
.zgt-cc-status-key .zgt-key-dot--white {
  background: #ffffff;
  border: 1px solid #cbd5e1;
}


