/* 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: #0a0;
  font-weight: 600;
}
.zgt-bad {
  color: #a00;
  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-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;
  width: auto;
  opacity: 0.65;
  filter: grayscale(1);
}

/* Hide signature on mobile */
@media (max-width: 600px) {
  .zgt-te-idsig-uniform {
    display: none;
  }
}
