:root {
  --z-ink: #102a2d;
  --z-muted: #5d7072;
  --z-line: #dce7e5;
  --z-paper: #ffffff;
  --z-soft: #f3f8f6;
  --z-mint: #e3f5ef;
  --z-brand: #078a75;
  --z-brand-dark: #056657;
  --z-night: #061a2d;
  --z-accent: #d8f36a;
  --z-shadow: 0 24px 70px rgba(14, 53, 51, .1);
}

html { background: var(--z-soft); }
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/InterVariable.2bf3d951bf9d.woff2") format("woff2");
}

body {
  color: var(--z-ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.app-shell { width: min(1200px, calc(100% - 40px)); }

/* One Zertivo shell for marketing hand-off, trainer app and participant views. */
.app-header {
  position: sticky;
  top: 0;
  z-index: 1040;
  color: var(--z-ink);
  border-bottom: 1px solid rgba(220, 231, 229, .86);
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 10px 35px rgba(5, 31, 42, .055);
  backdrop-filter: blur(18px);
}
.app-topbar { min-height: 78px; display: flex; align-items: center; gap: 34px; }
.app-wordmark { min-width: 0; display: inline-flex; align-items: center; gap: 11px; color: var(--z-ink); text-decoration: none; }
.app-brand-logo {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  object-fit: contain;
  border-radius: 12px;
  background: var(--z-night);
  box-shadow: 0 7px 18px rgba(5, 29, 47, .18);
}
.app-wordmark > span { min-width: 0; display: grid; line-height: 1.08; }
.app-wordmark strong { font-size: 1.27rem; font-weight: 850; letter-spacing: -.035em; }
.app-wordmark small { overflow: hidden; max-width: 245px; margin-top: 4px; color: #738688; font-size: .62rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.app-primary-nav { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.app-primary-nav a, .app-site-link {
  position: relative;
  padding-block: 8px;
  color: #375154;
  font-size: .86rem;
  font-weight: 690;
  text-decoration: none;
}
.app-primary-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 2px;
  transform: scaleX(0);
  transform-origin: right;
  background: var(--z-brand);
  transition: transform .18s ease;
}
.app-primary-nav a:hover, .app-primary-nav a.is-active, .app-site-link:hover { color: var(--z-brand-dark); }
.app-primary-nav a:hover::after, .app-primary-nav a.is-active::after { transform: scaleX(1); transform-origin: left; }
.app-primary-nav a.app-primary-action {
  min-height: 42px;
  padding: 10px 16px;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  color: #fff;
  border: 1px solid var(--z-brand);
  border-radius: 11px;
  background: var(--z-brand);
  box-shadow: 0 9px 22px rgba(7, 138, 117, .2);
  white-space: nowrap;
  transition: transform .16s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.app-primary-nav a.app-primary-action:hover,
.app-primary-nav a.app-primary-action.is-active {
  color: #fff;
  border-color: var(--z-brand-dark);
  background: var(--z-brand-dark);
  box-shadow: 0 11px 25px rgba(5, 102, 87, .24);
  transform: translateY(-1px);
}
.app-primary-nav a.app-primary-action:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--z-brand) 30%, transparent);
  outline-offset: 3px;
}
.app-primary-nav a.app-primary-action::after { display: none; }
.app-nav-actions { display: flex; align-items: center; gap: 19px; }
.app-site-link { white-space: nowrap; }
.app-account-menu { position: relative; }
.app-account-menu summary {
  min-height: 50px;
  padding: 6px 10px 6px 7px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--z-ink);
  border: 1px solid var(--z-line);
  border-radius: 13px;
  background: #fff;
  cursor: pointer;
  list-style: none;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.app-account-menu summary::-webkit-details-marker { display: none; }
.app-account-menu summary:hover, .app-account-menu[open] summary { border-color: #b9d0cb; background: var(--z-soft); box-shadow: 0 10px 24px rgba(14, 53, 51, .08); }
.app-user-mark { width: 35px; height: 35px; display: grid; place-items: center; color: #fff; border-radius: 10px; background: var(--z-brand); font-size: .78rem; font-weight: 850; }
.app-user-copy { max-width: 135px; display: grid; line-height: 1.12; }
.app-user-copy strong { overflow: hidden; font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }
.app-user-copy small { margin-top: 3px; color: #7b8d8f; font-size: .54rem; }
.app-menu-chevron { color: #718587; font-size: .86rem; }
.app-menu-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 1060;
  width: min(320px, calc(100vw - 28px));
  max-height: min(690px, calc(100vh - 105px));
  overflow-y: auto;
  padding: 12px;
  border: 1px solid var(--z-line);
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 25px 70px rgba(5, 31, 42, .2);
}
.app-menu-identity { margin-bottom: 7px; padding: 12px; display: grid; border-radius: 11px; background: var(--z-soft); }
.app-menu-identity small { color: #788a8d; font-size: .57rem; font-weight: 760; letter-spacing: .06em; text-transform: uppercase; }
.app-menu-identity strong { overflow: hidden; margin-top: 2px; font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
.app-menu-panel > a, .app-menu-panel form button {
  width: 100%;
  min-height: 40px;
  padding: 9px 11px;
  display: flex;
  align-items: center;
  color: #365053;
  border: 0;
  border-radius: 9px;
  background: transparent;
  font-size: .72rem;
  font-weight: 690;
  text-align: left;
  text-decoration: none;
}
.app-menu-panel > a:hover, .app-menu-panel form button:hover { color: var(--z-brand-dark); background: var(--z-soft); }
.app-menu-label { margin: 8px 10px 3px; display: block; color: #89999b; font-size: .53rem; font-weight: 820; letter-spacing: .09em; text-transform: uppercase; }
.app-menu-panel form { margin-top: 7px; padding-top: 7px; border-top: 1px solid var(--z-line); }
.app-menu-panel form button { color: #8c423a; }

.z-app { background: #f2f6f4; }
.z-app .app-main { min-height: calc(100vh - 230px); padding-top: 38px !important; padding-bottom: 56px !important; }
.z-app h1, .z-app h2, .z-app h3, .z-app h4, .z-app h5 { color: #153438; letter-spacing: -.025em; }
.z-app h1 { font-weight: 820; letter-spacing: -.045em; }
.z-app .text-muted { color: #687b7e !important; }
.z-app .text-primary { color: var(--z-brand-dark) !important; }
.z-app a:not(.btn):not(.app-wordmark):not(.app-primary-nav a):not(.app-site-link):not(.app-menu-panel a):not(.mobile-bottom-nav a) { color: var(--z-brand-dark); }

/* Buttons use the same shape, weight and green as the public website. */
.z-app .btn {
  min-height: 44px;
  padding: 9px 16px;
  border-radius: 11px;
  font-size: .82rem;
  font-weight: 730;
  box-shadow: none;
  transition: transform .16s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.z-app .btn:hover { transform: translateY(-1px); }
.z-app .btn-primary {
  --bs-btn-bg: var(--z-brand);
  --bs-btn-border-color: var(--z-brand);
  --bs-btn-hover-bg: var(--z-brand-dark);
  --bs-btn-hover-border-color: var(--z-brand-dark);
  --bs-btn-active-bg: var(--z-brand-dark);
  --bs-btn-active-border-color: var(--z-brand-dark);
  --bs-btn-disabled-bg: #8a9e9a;
  --bs-btn-disabled-border-color: #8a9e9a;
  box-shadow: 0 10px 24px rgba(7, 138, 117, .15);
}
.z-app .btn-outline-primary {
  --bs-btn-color: var(--z-brand-dark);
  --bs-btn-border-color: #a9c6c0;
  --bs-btn-hover-color: var(--z-brand-dark);
  --bs-btn-hover-bg: var(--z-mint);
  --bs-btn-hover-border-color: #8bb6ad;
  --bs-btn-active-color: var(--z-brand-dark);
  --bs-btn-active-bg: var(--z-mint);
  --bs-btn-active-border-color: #8bb6ad;
}
.z-app .btn-outline-secondary { --bs-btn-color: #52696c; --bs-btn-border-color: #c5d3d0; --bs-btn-hover-bg: #e8efed; --bs-btn-hover-border-color: #abbfbb; --bs-btn-hover-color: #203e42; }
.z-app .btn-outline-danger { --bs-btn-color: #98483f; --bs-btn-border-color: #d9b5b0; --bs-btn-hover-bg: #fff0ee; --bs-btn-hover-border-color: #c98f88; --bs-btn-hover-color: #84372f; }
.z-app .btn-outline-warning { --bs-btn-color: #785b13; --bs-btn-border-color: #d9c27d; --bs-btn-hover-bg: #fff8df; --bs-btn-hover-color: #684d0b; }
.z-app .btn-sm { min-height: 36px; padding: 7px 12px; font-size: .72rem; }

/* Cards, lists and tables share the restrained product-site surfaces. */
.z-app .card {
  overflow: hidden;
  border: 1px solid #d6e3e0;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 42px rgba(19, 61, 57, .075) !important;
}
.z-app .card-header { min-height: 57px; padding: 15px 20px; display: flex; align-items: center; border-bottom-color: #dde7e5; background: #fff !important; }
.z-app .card-header h2 { font-weight: 790; }
.z-app .list-group-item { padding: 15px 19px; color: #28474a; border-color: #e1e9e7; }
.z-app a.list-group-item:hover { color: var(--z-brand-dark); background: #f6faf8; }
.z-app .table { --bs-table-striped-bg: #f6f9f8; --bs-table-hover-bg: #eff6f3; color: #29474a; }
.z-app .table thead th { padding-top: 15px; padding-bottom: 15px; color: #607578; background: #f2f7f5; border-bottom-color: #cfdedb; font-size: .67rem; font-weight: 820; letter-spacing: .055em; text-transform: uppercase; }
.z-app .table td { border-color: #e2e9e7; }
.z-app .badge { padding: .48em .7em; border-radius: 8px; font-weight: 760; }
.z-app .text-bg-primary, .z-app .bg-primary { color: #fff !important; background-color: var(--z-brand) !important; }
.z-app .text-bg-success { color: #075c4e !important; background-color: #d9f2ea !important; }
.z-app .text-bg-secondary { color: #52696c !important; background-color: #e8efed !important; }
.z-app .text-bg-danger { color: #8d3c34 !important; background-color: #fbe8e6 !important; }

.z-app .alert { border-radius: 14px; border-width: 1px; box-shadow: 0 10px 30px rgba(19, 61, 57, .06); }
.z-app .alert-light { color: #365154; border-color: #d6e2df !important; background: #f7faf9; }
.certificate-selection-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.certificate-selection-copy { flex: 1; }
.certificate-selection-preview {
  position: relative;
  display: grid;
  flex: 0 0 150px;
  gap: 7px;
  color: #365154;
  text-align: center;
  text-decoration: none;
}
.certificate-selection-preview .badge {
  position: absolute;
  z-index: 1;
  top: 8px;
  right: 8px;
}
.certificate-selection-preview img {
  width: 150px;
  max-height: 205px;
  object-fit: contain;
  border: 1px solid #ced9d5;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(23, 57, 59, 0.1);
}
.certificate-selection-preview:hover { color: #153f42; }
.certificate-selection-preview:hover img { border-color: #6f9794; }

@media (max-width: 575.98px) {
  .certificate-selection-summary { align-items: flex-start; }
  .certificate-selection-preview { flex-basis: 112px; }
  .certificate-selection-preview img { width: 112px; max-height: 154px; }
}
.z-app .alert-secondary { color: #425d60; border-color: #cbdad7; background: #edf3f1; }

/* Internal customer management keeps commercial status scannable without exposing it to tenants. */
.customer-dashboard-heading { margin-bottom: 24px; display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.customer-dashboard-heading h1 { margin: 4px 0 8px; font-size: clamp(2rem, 4vw, 3.25rem); }
.customer-dashboard-heading p { max-width: 650px; margin: 0; color: var(--z-muted); }
.app-page-kicker { color: var(--z-brand-dark); font-size: .64rem; font-weight: 820; letter-spacing: .1em; text-transform: uppercase; }
.customer-kpi-grid { margin-bottom: 22px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.customer-kpi-grid article { min-height: 145px; padding: 21px; display: grid; align-content: space-between; border: 1px solid #d6e3e0; border-radius: 17px; background: #fff; box-shadow: 0 12px 34px rgba(19, 61, 57, .06); }
.customer-kpi-grid span { color: #647a7d; font-size: .68rem; font-weight: 780; text-transform: uppercase; letter-spacing: .045em; }
.customer-kpi-grid strong { color: #163a3d; font-size: 2.35rem; line-height: 1; letter-spacing: -.05em; }
.customer-kpi-grid small { color: #718487; font-size: .65rem; }
.customer-kpi-grid .needs-attention { border-color: #e5c59d; background: #fffaf1; }
.customer-kpi-grid .needs-attention strong { color: #8c5c1d; }
.customer-billing-readiness { margin-bottom: 22px; padding: clamp(22px, 4vw, 34px); display: grid; grid-template-columns: minmax(260px, 1.15fr) minmax(390px, 1.5fr); gap: 28px 38px; color: #e9f8f4; border-radius: 20px; background: var(--z-night); box-shadow: 0 20px 50px rgba(6, 26, 45, .18); }
.customer-billing-readiness h2 { margin: 5px 0 9px; color: #fff; font-size: 1.55rem; }
.customer-billing-readiness p { margin: 0; color: #a9bec3; font-size: .78rem; }
.customer-billing-readiness .app-page-kicker { color: #72d7c1; }
.customer-billing-readiness ol { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; list-style: none; }
.customer-billing-readiness li { position: relative; min-width: 0; padding: 14px; display: flex; align-items: center; gap: 10px; border: 1px solid rgba(255,255,255,.13); border-radius: 13px; background: rgba(255,255,255,.05); }
.customer-billing-readiness li:not(:last-child)::after { content: "→"; position: absolute; z-index: 1; right: -10px; color: #72d7c1; }
.customer-billing-readiness li > b { width: 28px; height: 28px; display: grid; flex: 0 0 28px; place-items: center; color: #062d2c; border-radius: 9px; background: #72d7c1; font-size: .67rem; }
.customer-billing-readiness li span { min-width: 0; display: grid; }
.customer-billing-readiness li strong { overflow: hidden; color: #fff; font-size: .7rem; text-overflow: ellipsis; white-space: nowrap; }
.customer-billing-readiness li small { margin-top: 2px; color: #9eb3b8; font-size: .58rem; }
.customer-readiness-stats { grid-column: 1 / -1; padding-top: 18px; display: flex; gap: 28px; border-top: 1px solid rgba(255,255,255,.12); color: #a9bec3; font-size: .67rem; }
.customer-readiness-stats strong { color: #fff; }
.customer-table-card { overflow: hidden; border: 1px solid #d6e3e0; border-radius: 19px; background: #fff; box-shadow: 0 14px 42px rgba(19, 61, 57, .075); }
.customer-table-toolbar { padding: 20px; display: flex; align-items: end; justify-content: space-between; gap: 24px; border-bottom: 1px solid #dce7e5; }
.customer-table-toolbar h2 { margin: 3px 0 0; font-size: 1.45rem; }
.customer-filter-form { display: flex; align-items: center; gap: 8px; }
.customer-filter-form .form-control { width: 235px; }
.customer-filter-form .form-select { width: 145px; }
.customer-table td { padding: 16px 14px; vertical-align: middle; font-size: .76rem; }
.customer-table td:first-child { padding-left: 20px; }
.customer-table td:last-child { padding-right: 20px; text-align: right; }
.customer-table td > strong, .customer-table td > small { display: block; }
.customer-table td > small { margin-top: 3px; color: #748689; font-size: .62rem; }
.customer-table td a:not(.btn) { display: block; overflow: hidden; max-width: 220px; text-overflow: ellipsis; white-space: nowrap; }
.customer-status { display: inline-flex; padding: 5px 8px; color: #52696c; border-radius: 8px; background: #e8efed; font-size: .62rem; font-weight: 780; }
.customer-status.status-active { color: #075c4e; background: #d9f2ea; }
.customer-status.status-trialing { color: #405a83; background: #e6edf9; }
.customer-status.status-past_due, .customer-status.status-expired, .customer-status.status-canceled { color: #8d3c34; background: #fbe8e6; }
.missing-data { color: #9a5c2b; font-weight: 720; }
.customer-empty-state { padding: 42px !important; color: #718487; text-align: center; }

@media (max-width: 1050px) {
  .customer-kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .customer-billing-readiness { grid-template-columns: 1fr; }
  .customer-filter-form { align-items: stretch; flex-wrap: wrap; }
  .customer-filter-form .form-control { width: min(340px, 100%); }
}

@media (max-width: 700px) {
  .customer-dashboard-heading, .customer-table-toolbar { align-items: stretch; flex-direction: column; }
  .customer-kpi-grid { grid-template-columns: 1fr 1fr; }
  .customer-kpi-grid article { min-height: 125px; padding: 17px; }
  .customer-kpi-grid strong { font-size: 2rem; }
  .customer-billing-readiness ol { grid-template-columns: 1fr; }
  .customer-billing-readiness li:not(:last-child)::after { right: 50%; bottom: -13px; transform: rotate(90deg); }
  .customer-readiness-stats { flex-direction: column; gap: 7px; }
  .customer-filter-form, .customer-filter-form label, .customer-filter-form .form-control, .customer-filter-form .form-select, .customer-filter-form .btn { width: 100%; }
  .customer-table { min-width: 980px; }
}

/* Dashboard hierarchy mirrors the marketing page: outcome first, controls second. */
.app-dashboard .app-main > header { margin-bottom: 30px !important; }
.app-dashboard .app-main > header h1 { margin-top: 5px; font-size: clamp(2.1rem, 4vw, 3.55rem) !important; line-height: 1.02; }
.app-dashboard .app-main > header > div:first-child > span { color: var(--z-brand-dark) !important; font-size: .65rem !important; letter-spacing: .1em; }
.app-dashboard #workflow-heading { margin-bottom: 19px !important; }
.app-dashboard .card .bg-light { color: #214246; background: #f3f8f6 !important; }
.app-dashboard .card.border-primary { border-color: #9bc7bd !important; }

/* Forms feel like the website contact flow. */
.z-app .form-label { margin-bottom: 6px; color: #365154; font-size: .74rem; font-weight: 760; }
.z-app .form-control, .z-app .form-select {
  min-height: 49px;
  padding: 10px 13px;
  color: #173438;
  border-color: #bdcfcb;
  border-radius: 10px;
  background-color: #fbfcfc;
}
.z-app .form-control:focus, .z-app .form-select:focus, .z-app .form-check-input:focus {
  border-color: var(--z-brand);
  box-shadow: 0 0 0 4px rgba(7, 138, 117, .11);
}
.z-app .form-check-input:checked { border-color: var(--z-brand); background-color: var(--z-brand); }
.z-app .form-text { color: #748689; font-size: .68rem; }
.app-form-page .app-main > .row > div { width: min(820px, 100%); }
.app-form-page .card-body { padding: clamp(24px, 4vw, 42px) !important; }
.app-form-page h1 { font-size: clamp(1.9rem, 4vw, 3rem) !important; }

.registration-progress-card { border-left: 0 !important; }
.registration-progress-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: #8fa19f; }
.registration-progress-card.is-complete { border-color: #a8d7cb !important; background: #f2fbf7 !important; }
.registration-progress-card.is-complete::before { background: var(--z-brand); }
.registration-progress-card.is-pending { border-color: #e4d6a5 !important; background: #fffaf0 !important; }
.registration-progress-card.is-pending::before { background: #d3a928; }
.session-detail-page .session-detail-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}
.session-detail-page .session-detail-title,
.session-detail-page .session-detail-header .registration-progress-card,
.session-detail-page .session-detail-actions {
  grid-column: 1;
  grid-row: auto;
}
.session-detail-page .session-detail-actions { align-items: center !important; }
.session-detail-page .session-detail-actions .btn { white-space: normal; }
.session-detail-title h1 { font-size: clamp(2rem, 4vw, 3.35rem) !important; }
.detail-label { color: #718487; font-size: .68rem; font-weight: 790; letter-spacing: .04em; text-transform: uppercase; }
.detail-value { color: #254448; font-weight: 680; }

.app-footer { color: #aec2c8; background: var(--z-night); }
.app-footer-inner { min-height: 112px; display: flex; align-items: center; justify-content: space-between; gap: 35px; }
.app-footer-inner > div:first-child { display: grid; }
.app-footer-inner strong { color: #fff; font-size: 1.05rem; letter-spacing: -.025em; }
.app-footer-inner span { margin-top: 3px; color: #829ba4; font-size: .65rem; }
.app-footer-inner > div:last-child { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 22px; }
.app-footer a { color: #9bdccb; font-size: .7rem; font-weight: 710; text-decoration: none; }
.app-footer a:hover { color: #fff; }

/* Participant-facing forms keep tenant colors while using the same shell. */
.z-participant { background: #f2f6f4; }
.z-participant .app-main { min-height: calc(100vh - 190px); padding-block: 45px !important; }
.z-participant .app-topbar > .app-site-link { margin-left: auto; }
.z-participant .form-label { margin-bottom: 6px; color: #365154; font-size: .74rem; font-weight: 760; }
.z-participant .form-control {
  min-height: 49px;
  padding: 10px 13px;
  color: #173438;
  border-color: #bdcfcb;
  border-radius: 10px;
  background: #fbfcfc;
}
.z-participant .form-control:focus {
  border-color: var(--z-brand);
  box-shadow: 0 0 0 4px rgba(7, 138, 117, .11);
}
.z-participant .btn-primary {
  --bs-btn-bg: var(--z-brand);
  --bs-btn-border-color: var(--z-brand);
  --bs-btn-hover-bg: var(--z-brand-dark);
  --bs-btn-hover-border-color: var(--z-brand-dark);
  --bs-btn-active-bg: var(--z-brand-dark);
  --bs-btn-active-border-color: var(--z-brand-dark);
  min-height: 48px;
  border-radius: 11px;
  font-weight: 760;
  box-shadow: 0 10px 24px rgba(7, 138, 117, .16);
}
.app-login-page .app-main {
  display: grid;
  align-items: center;
  background:
    radial-gradient(circle at 18% 15%, rgba(83, 207, 181, .1), transparent 30%),
    radial-gradient(circle at 82% 75%, rgba(6, 26, 45, .06), transparent 32%);
}
.app-login-page .app-main > .row { width: 100%; margin: 0; }
.app-login-page .card {
  overflow: hidden;
  border: 1px solid #d6e3e0;
  border-radius: 20px;
  background: rgba(255, 255, 255, .98);
  box-shadow: var(--z-shadow) !important;
}
.app-login-page .card::before {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--z-brand), #61dbc3);
}
.app-login-page .card-body { padding: clamp(26px, 4vw, 42px) !important; }
.app-login-page h1 { color: var(--z-ink); font-size: clamp(1.65rem, 3vw, 2.2rem) !important; font-weight: 820; letter-spacing: -.04em; }
.z-participant .public-shell .card { overflow: hidden; border: 1px solid #d6e3e0; border-radius: 20px; box-shadow: var(--z-shadow) !important; }
.z-participant .public-brand-header { border-top-width: 4px; border-radius: 20px 20px 0 0; }
.z-participant .public-shell .form-control { min-height: 50px; border-radius: 10px; }
.z-participant .public-shell .btn { min-height: 48px; border-radius: 11px; font-weight: 760; }

@media (max-width: 1040px) {
  .app-topbar { gap: 22px; }
  .app-primary-nav { gap: 18px; }
  .app-site-link { display: none; }
}

@media (max-width: 800px) {
  .app-primary-nav { display: none; }
  .app-nav-actions { margin-left: auto; }
  .app-user-copy { display: none; }
  .app-account-menu summary { min-width: 50px; justify-content: center; }
  .app-menu-chevron { display: none; }
  .app-wordmark small { max-width: 180px; }
  .app-dashboard .app-main > header > div:last-child { width: 100%; }
}

@media (max-width: 575.98px) {
  .app-shell { width: calc(100% - 28px); }
  .app-topbar { min-height: 70px; gap: 14px; }
  .app-brand-logo { width: 38px; height: 38px; flex-basis: 38px; border-radius: 11px; }
  .app-wordmark strong { font-size: 1.13rem; }
  .app-wordmark small { max-width: 190px; font-size: .56rem; }
  .z-app .app-main { padding-top: 25px !important; padding-bottom: 112px !important; }
  .z-participant .app-main { padding-block: 26px 105px !important; }
  .app-dashboard .app-main > header h1 { font-size: 2.35rem !important; }
  .app-dashboard .app-main > header .btn { width: 100%; }
  .z-app .card { border-radius: 15px; }
  .app-menu-panel { right: -2px; }
  .mobile-bottom-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    position: fixed;
    z-index: 1030;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    left: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 17px;
    background: rgba(6, 26, 45, .97);
    box-shadow: 0 18px 48px rgba(2, 18, 30, .3);
    backdrop-filter: blur(16px);
  }
  .mobile-bottom-nav a { min-height: 62px; color: #c6d7dc; font-size: .66rem; font-weight: 690; }
  .mobile-bottom-nav a + a { border-left-color: rgba(255, 255, 255, .1); }
  .mobile-bottom-nav a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
  .mobile-bottom-nav .nav-symbol { color: #62dfc6; font-size: 1.12rem; }
  .app-footer { padding-bottom: 86px; }
  .app-footer-inner { min-height: 150px; align-items: flex-start; justify-content: center; flex-direction: column; gap: 20px; }
  .app-footer-inner > div:last-child { justify-content: flex-start; }
  .participant-mobile-card { padding: 18px !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

@media print {
  .app-header, .app-footer, .mobile-bottom-nav { display: none !important; }
}

/* Zertivo professional application system */
:root {
  --z-ink: #12282b;
  --z-muted: #607174;
  --z-line: #d4dcd9;
  --z-paper: #fbfbf8;
  --z-soft: #eef0ec;
  --z-mint: #e4f0ec;
  --z-brand: #087966;
  --z-brand-dark: #075d50;
  --z-night: #0a202b;
  --z-accent: #72d8c0;
  --z-shadow: 0 18px 50px rgba(10, 32, 43, .09);
}

html,
body { background: var(--z-soft); }
body { font-variant-numeric: tabular-nums; }
.app-shell { width: min(1220px, calc(100% - 48px)); }

/* Application frame */
.app-header {
  border-bottom-color: #d8dfdc;
  background: rgba(251, 251, 248, .97);
  box-shadow: none;
}
.app-topbar { min-height: 72px; }
.app-brand-logo {
  width: 36px;
  height: 36px;
  flex-basis: 36px;
  border-radius: 9px;
  box-shadow: 0 5px 14px rgba(5,29,47,.14);
}
.app-wordmark strong { font-size: 1.2rem; }
.app-wordmark small { color: #6c7f82; font-size: .58rem; letter-spacing: .02em; }
.app-primary-nav { gap: 30px; }
.app-primary-nav a,
.app-site-link { color: #425457; font-size: .82rem; }
.app-primary-nav a::after { bottom: 0; height: 2px; }
.app-account-menu summary { min-height: 46px; border-radius: 7px; }
.app-account-menu summary:hover,
.app-account-menu[open] summary { box-shadow: none; }
.app-user-mark { width: 32px; height: 32px; border-radius: 6px; }
.app-menu-panel { padding: 9px; border-radius: 8px; box-shadow: 0 20px 55px rgba(5,31,42,.16); }
.app-menu-identity { padding: 10px; display: flex; align-items: center; gap: 10px; border-radius: 5px; }
.app-menu-identity img { width: 34px; height: 34px; flex: 0 0 34px; object-fit: contain; }
.app-menu-identity > span { min-width: 0; display: grid; }
.app-menu-panel > a,
.app-menu-panel form button { border-radius: 5px; }
.z-app .app-main { padding-top: 44px !important; }
.app-page-heading { padding-bottom: 27px; border-bottom: 1px solid #d3dbd8; }
.app-page-heading h1,
.app-dashboard .app-main > header h1 { margin-top: 7px; font-size: clamp(2.45rem, 4.5vw, 4rem) !important; line-height: .98; }
.app-page-kicker {
  display: block;
  margin-bottom: 8px;
  color: var(--z-brand-dark);
  font-size: .61rem;
  font-weight: 840;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.app-back-link { display: block; width: fit-content; margin-bottom: 20px; color: #67797c !important; font-size: .7rem; font-weight: 720; text-decoration: none; }
.app-back-link:hover { color: var(--z-brand-dark) !important; }

/* Controls */
.z-app .btn {
  min-height: 42px;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: .78rem;
  font-weight: 740;
  transform: none;
}
.z-app .btn:hover { transform: none; }
.z-app .btn-primary { box-shadow: none; }
.z-app .btn-sm { min-height: 34px; border-radius: 5px; }
.z-app .badge { padding: .46em .68em; border-radius: 5px; font-size: .66rem; }
.z-app .rounded-pill { border-radius: 4px !important; }
.z-app .text-bg-warning { color: #644f19 !important; background: #f2e7b9 !important; }
.z-app .text-bg-light { color: #526568 !important; background: #edf1ee !important; }
.z-app .alert { border-radius: 6px; box-shadow: none; }

/* Surfaces */
.z-app .card {
  border-color: #d2dad7;
  border-radius: 8px;
  background: #fafaf7;
  box-shadow: none !important;
}
.z-app .card-header { min-height: 55px; padding: 14px 18px; background: #fafaf7 !important; }
.z-app .card-footer { border-top-color: #dce2df; background: #f2f4f0 !important; }
.z-app .list-group { border-radius: 8px; box-shadow: none !important; }
.z-app .list-group-item { padding: 16px 18px; background: #fafaf7; }
.z-app .list-group-item-action:hover { background: #f0f4f1; }

/* Dashboard: one operational ledger instead of floating metric cards. */
.app-dashboard .app-main > header { margin-bottom: 28px !important; }
.app-dashboard .app-main > header > div:first-child > span { letter-spacing: .14em; }
.app-metrics-ledger {
  overflow: hidden;
  border: 1px solid #ced7d3;
  border-radius: 8px;
  background: #fafaf7;
}
.app-metrics-ledger > div + div { border-left: 1px solid #d7dedb; }
.app-metrics-ledger .card { border: 0; border-radius: 0; background: transparent; }
.app-metrics-ledger .card::before { display: none; }
.app-metrics-ledger .card-body { min-height: 145px; padding: 22px !important; }
.app-metrics-ledger .display-6 { color: #163c3c !important; font-size: 2.5rem !important; }
.app-metrics-ledger .card-body > .small:first-child { color: #41595c !important; font-size: .64rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.app-metrics-ledger .card-body > .small:last-child { font-size: .66rem; }
.app-schedule-grid .card { background: #fafaf7; }
.app-schedule-grid .list-group-item { min-height: 70px; }
.app-schedule-grid .list-group-item > span:last-child { color: #66797c; font-size: .72rem; font-weight: 720; }
.app-onboarding-panel { border: 1px solid #c7d4cf !important; background: #edf4f0 !important; }
.app-onboarding-panel .rounded-3 { border-radius: 5px !important; background: rgba(255,255,255,.52); }

/* Guided first-run setup */
.onboarding-shell { width: min(900px, 100%); margin-inline: auto; }
.onboarding-heading { max-width: 700px; margin-inline: auto; }
.onboarding-progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 0 0 24px; padding: 0; list-style: none; }
.onboarding-progress li { position: relative; display: grid; justify-items: center; gap: 7px; color: #829093; font-weight: 700; text-align: center; }
.onboarding-progress li::before { content: ""; position: absolute; top: 17px; right: 50%; left: -50%; height: 2px; background: #d7dfdc; }
.onboarding-progress li:first-child::before { display: none; }
.onboarding-progress span { position: relative; z-index: 1; display: grid; width: 36px; height: 36px; place-items: center; border: 2px solid #cbd5d1; border-radius: 50%; background: #f6f7f9; }
.onboarding-progress .is-active { color: #123f3b; }
.onboarding-progress .is-active span { border-color: #087a69; background: #fff; color: #087a69; }
.onboarding-progress .is-done::before, .onboarding-progress .is-done span { border-color: #087a69; background: #087a69; color: #fff; }
.onboarding-card { overflow: hidden; border-top: 5px solid #087a69; }
.onboarding-step-label { display: block; margin-bottom: 8px; color: #087a69; font-size: .72rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.onboarding-choice-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.onboarding-choice { display: flex; flex-direction: column; min-height: 260px; padding: 24px; border: 1px solid #d5dfdc; border-radius: 10px; background: #fafbf9; }
.onboarding-choice.is-primary { border: 2px solid #087a69; background: #f1f8f5; }
.onboarding-choice p { flex: 1; color: #687d80; }
.onboarding-next-preview { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.onboarding-next-preview div { display: grid; justify-items: center; gap: 8px; padding: 18px 12px; border: 1px solid #dce4e1; border-radius: 8px; text-align: center; }
.onboarding-next-preview span { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 50%; background: #087a69; color: #fff; font-weight: 800; }
.onboarding-success-mark { display: grid; width: 72px; height: 72px; margin: 0 auto 18px; place-items: center; border-radius: 50%; background: #dff4e9; color: #087a69; font-size: 2.3rem; font-weight: 900; }

@media (max-width: 575.98px) {
  .onboarding-progress small { font-size: .64rem; }
  .onboarding-choice-grid, .onboarding-next-preview { grid-template-columns: 1fr; }
  .onboarding-choice { min-height: 0; }
}
.app-workflow-strip { border-color: #cdd6d3 !important; }
.app-workflow-strip .card-body { display: grid; grid-template-columns: 230px 1fr; align-items: center; gap: 28px; }
.app-workflow-strip #workflow-heading { margin: 0 !important; font-size: .84rem; line-height: 1.4; }
.app-workflow-strip .row { margin: 0; flex: 1; }
.app-workflow-strip .bg-light { position: relative; padding: 13px 8px !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; }
.app-workflow-strip .col-6 + .col-6 .bg-light::before { content: ""; position: absolute; top: 23px; left: -8px; width: 16px; height: 1px; background: #b7c5c1; }
.app-workflow-strip .badge { margin: 0 7px 0 0 !important; display: inline-grid; place-items: center; }
.app-workflow-strip .fw-semibold { display: inline; font-size: .68rem; }
.app-qr-notice {
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border: 1px solid #cad5d1;
  border-left: 4px solid var(--z-brand);
  background: #f5f7f3;
}
.app-qr-notice .app-page-kicker { margin-bottom: 5px; }
.app-qr-notice h2 { color: #173438; }
.app-qr-notice p { max-width: 760px; font-size: .75rem; }
.app-live-metrics {
  overflow: hidden;
  color: #fff;
  border: 1px solid #173844;
  border-radius: 8px;
  background: var(--z-night);
}
.app-live-metrics > div + div { border-left: 1px solid rgba(255,255,255,.13); }
.app-live-metrics .card { border: 0; border-radius: 0; background: transparent; }
.app-live-metrics .card-body { min-height: 135px; padding: 22px; }
.app-live-metrics .text-muted { color: #91a7af !important; }
.app-live-metrics .display-6 { color: #7bdcc5; }
.app-live-workbench .col-lg-8 > .card { min-height: 100%; }
.app-live-workbench aside .card-body { background: #f4f5f1; }
.app-live-workbench .qr-code { padding: 11px; border: 1px solid #d6dedb; background: #fff; }
.app-session-index { padding-top: 12px; }
.app-session-index > .list-group { overflow: hidden; border: 1px solid #ced7d3; }
.app-session-index > .list-group .list-group-item { border-inline: 0; }
.pending-count-badge { padding: 7px 10px; color: #65551f; border: 1px solid #e4d49a; background: #f7edc8; }
.assignment-controls { border-bottom: 1px solid #d6e2dd; background: #f1f7f4; }
.assignment-controls[hidden] { display: none; }
.assignment-intro { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.assignment-step { flex: 0 0 auto; padding: 4px 8px; border-radius: 999px; color: #075b4c; background: #dcefe8; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.assignment-fields { padding: 14px; border: 1px solid #c9ddd5; border-radius: 8px; background: #fff; }
.assignment-selection-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-bottom: 8px; }
.pending-registration-block { position: relative; padding: 20px; border-bottom: 1px solid #dbe3e0; background: #fff; }
.pending-registration-block.is-latest { padding-left: 24px; background: linear-gradient(100deg, #edf7f3 0, #f7fbf9 48%, #fff 100%); }
.pending-registration-block.is-latest::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: var(--z-brand); }
.pending-block-heading { margin-bottom: 16px; }
.latest-registration-badge { color: #fff; background: #087a69; }
.pending-status-badge { color: #65551f; border: 1px solid #e7d89f; background: #f8efcf; }
.pending-block-secondary-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 7px; }
.pending-more-actions { position: relative; color: #63716d; font-size: .75rem; text-align: right; }
.pending-more-actions summary { cursor: pointer; }
.pending-more-actions a { display: block; margin-top: 5px; color: #785551; }
.pending-participant-list { margin-bottom: 16px; }
.pending-participant { padding: 10px 12px; border: 1px solid #d9e2de; border-radius: 7px; background: rgba(255,255,255,.78); cursor: pointer; }
.pending-participant:hover { border-color: #a7c7bd; }
.pending-participant:has(input:checked) { border-color: #0c7b63; background: #e5f3ed; box-shadow: 0 0 0 1px rgba(12,123,99,.12); }
.pending-participant small { display: block; overflow-wrap: anywhere; }
.pending-next-action { padding: 14px; border: 1px solid #d5e1dc; border-radius: 8px; background: #f7f9f7; }
.pending-next-action-label { display: block; margin-bottom: 8px; color: #52645f; font-size: .75rem; font-weight: 700; }
.pending-empty-icon { display: grid; width: 38px; height: 38px; margin: 0 auto 10px; place-items: center; border-radius: 50%; color: #087a69; background: #e2f2eb; font-weight: 800; }
.session-archive-suggested { background: #f3f5f4; }
.session-archive-suggested > .d-flex > div:first-child { filter: grayscale(.9); opacity: .72; }
.session-archive-hint { color: #52635e; }

@media (max-width: 575.98px) {
  .pending-registration-block { padding: 16px; }
  .pending-registration-block.is-latest { padding-left: 19px; }
  .pending-block-secondary-actions { align-items: stretch; }
  .pending-more-actions { text-align: left; }
}

/* Course file */
.session-detail-page .session-detail-header { gap: 22px; }
.session-detail-title { position: relative; padding-bottom: 23px; border-bottom: 1px solid #d2dad7; }
.session-detail-title .app-page-kicker { display: inline-block; margin-right: 10px; }
.session-detail-title h1 { margin-top: 8px; font-size: clamp(2.4rem, 4.7vw, 4.1rem) !important; line-height: .98; }
.app-registration-status { border-color: #c9d5d1 !important; background: #f8faf7 !important; }
.app-registration-status::before { width: 4px; }
.app-registration-status .card-body { min-height: 126px; }
.app-registration-status .h3 { margin-top: 5px; font-size: clamp(1.7rem, 3vw, 2.4rem); letter-spacing: -.04em; }
.app-registration-status.is-complete { border-color: #a8cdc4 !important; background: #edf6f2 !important; }
.app-registration-status.is-pending { border-color: #d9cda2 !important; background: #f7f2df !important; }
.app-action-bar {
  padding: 12px;
  border: 1px solid #d2dad7;
  background: #fafaf7;
}
.app-action-bar .btn-primary { order: -1; }
.app-action-bar form { display: inline-flex; }
.app-session-workspace .card { height: 100%; }
.app-session-workspace .col-lg-8 .card { height: auto; }
.app-session-workspace .qr-code { max-width: 220px; padding: 12px; border: 1px solid #d5ddda; background: #fff; }
.app-session-workspace .detail-value { min-height: 34px; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid #e0e5e2; }
.app-participant-register { background: #fafaf7; }
.app-participant-register .card-header { padding-block: 17px; }
.app-participant-register .table { margin: 0; }
.app-participant-register .table thead th { background: #eef1ed; }
.app-participant-register .table-striped > tbody > tr:nth-of-type(odd) > * { --bs-table-bg-type: #f7f8f5; }
.participant-actions .btn { min-width: 148px; }

/* Forms and certificate dispatch */
.app-form-layout .card,
.certificate-dispatch-page .app-main > .row .card { border-radius: 8px; }
.app-form-page .app-main > .row > div { width: min(900px, 100%); }
.app-form-page .card-body { padding: clamp(26px, 4.5vw, 48px) !important; }
.z-app .form-control,
.z-app .form-select { border-radius: 6px; background: #fff; }
.app-form-page form > .mb-3 { margin-bottom: 20px !important; }
.training-type-grid { row-gap: 18px !important; }
.training-type-card { transition: border-color .16s ease, background .16s ease; }
.training-type-card:hover { border-color: #9dbbb4; background: #fff; }
.training-type-preview { position: relative; overflow: hidden; height: 170px; background: #f4f6f5; }
.training-type-card .card-img-top { width: 100%; height: 170px; object-fit: cover; object-position: top; filter: saturate(.78); }
.training-type-preview.is-own-template .card-img-top { filter: none; }
.training-type-preview > span { position: absolute; right: 12px; bottom: 12px; padding: 6px 10px; border-radius: 999px; background: rgba(6, 43, 47, .9); color: #fff; font-size: .68rem; font-weight: 800; letter-spacing: .03em; }
.training-type-card .card-body { padding: 24px !important; }
.certificate-dispatch-page .app-main > .row > div { width: min(980px, 100%); }
.certificate-dispatch-page .card > .card-body { padding: clamp(26px, 4vw, 46px) !important; }
.dispatch-step { border-color: #d1dad7 !important; border-radius: 6px !important; background: #f5f6f2; }
#certificate-selection label { border-color: #d2dad7 !important; border-radius: 5px !important; background: #fff; cursor: pointer; }
#certificate-selection label:has(input:checked) { border-color: #69a99a !important; background: #edf6f2; }
.certificate-dispatch-page .alert-warning { color: #5c4a1b; border-color: #ddcea0; background: #f6f0d9; }

/* Login hand-off from the marketing site */
.app-login-page .app-main {
  min-height: calc(100vh - 184px);
  padding-block: 48px !important;
  display: grid;
  align-items: center;
  background: #eef0ec;
}
.app-login-layout {
  overflow: hidden;
  width: min(980px, 100%);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  border: 1px solid #cbd5d1;
  background: #fafaf7;
}
.app-login-context { padding: clamp(38px, 6vw, 68px); color: #fff; background: var(--z-night); }
.app-login-context > img { width: 58px; height: 58px; margin-bottom: 38px; border-radius: 14px; box-shadow: 0 14px 32px rgba(0,0,0,.25); }
.app-login-context > span { display: block; color: #71d8c0; font-size: .6rem; font-weight: 840; letter-spacing: .14em; text-transform: uppercase; }
.app-login-context h1 { margin: 17px 0 20px; color: #fff; font-size: clamp(2.35rem, 4.3vw, 3.8rem); line-height: 1; letter-spacing: -.055em; }
.app-login-context p { color: #a9bec5; font-size: .9rem; line-height: 1.72; }
.app-login-context ul { margin: 34px 0 0; padding: 20px 0 0; display: grid; gap: 10px; border-top: 1px solid rgba(255,255,255,.13); list-style: none; }
.app-login-context li { position: relative; padding-left: 19px; color: #c3d2d6; font-size: .7rem; font-weight: 680; }
.app-login-context li::before { content: ""; position: absolute; top: .58em; left: 0; width: 7px; height: 7px; background: #71d8c0; }
.app-login-form { padding: clamp(28px, 5vw, 58px); display: grid; align-items: center; }
.app-login-page .app-login-form .card { border: 0; border-radius: 0; background: transparent; box-shadow: none !important; }
.app-login-page .app-login-form .card::before { display: none; }
.app-login-page .app-login-form .card-body { padding: 0 !important; }
.app-login-page .app-login-form h2 { color: #173438; font-size: 2rem; font-weight: 800; letter-spacing: -.04em; }
.app-login-page .app-login-form .form-control { border-radius: 6px; background: #fff; }
.app-login-page .app-login-form .btn { min-height: 48px; border-radius: 6px; }
.password-reset-notice { padding: 14px 16px; border-left: 3px solid #4cae98; color: #38504b; background: #edf6f2; font-size: .82rem; line-height: 1.55; }

/* Footer and mobile controls */
.app-footer { border-top: 1px solid rgba(255,255,255,.08); background: #081d28; }
.app-footer-inner { min-height: 104px; }
.app-footer a { color: #8fbab0; }
.mobile-bottom-nav { border-radius: 9px !important; }

/* Public trial and signup */
.trial-status-banner { color: #d9ebe7; border-bottom: 1px solid rgba(113,216,192,.22); background: #0d2a32; }
.trial-status-inner { min-height: 64px; padding-block: 11px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.trial-status-inner > div { display: grid; gap: 3px; }
.trial-status-inner > div:last-child { justify-items: end; text-align: right; }
.trial-status-inner strong { color: #fff; font-size: .75rem; }
.trial-status-inner span { color: #a9c1c0; font-size: .63rem; }
.trial-status-inner a { color: #70d8c0; font-size: .65rem; font-weight: 780; text-decoration: none; }
.signup-layout { overflow: hidden; width: min(1080px, 100%); margin-inline: auto; display: grid; grid-template-columns: .88fr 1.12fr; border: 1px solid #cbd5d1; background: #fafaf7; }
.signup-intro { padding: clamp(38px, 5.5vw, 68px); color: #fff; background: var(--z-night); }
.signup-kicker, .signup-card-head > span { display: block; color: #70d8c0; font-size: .62rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.signup-intro h1 { margin: 20px 0; color: #fff; font-size: clamp(2.45rem, 4.6vw, 4.25rem); line-height: .98; letter-spacing: -.058em; }
.signup-intro > p { color: #afc2c7; line-height: 1.75; }
.signup-intro ul { margin: 34px 0; padding: 24px 0; display: grid; gap: 14px; border-block: 1px solid rgba(255,255,255,.14); list-style: none; }
.signup-intro li { position: relative; padding-left: 22px; color: #d5e1e3; font-size: .76rem; }
.signup-intro li::before { content: ""; position: absolute; top: .53em; left: 0; width: 8px; height: 8px; background: #70d8c0; }
.signup-fineprint { font-size: .68rem; }
.signup-card { padding: clamp(34px, 5vw, 60px); }
.signup-card-head { margin-bottom: 32px; }
.signup-card-head > span { color: #087a69; }
.signup-card-head h2 { margin: 8px 0; color: #15363a; font-size: 2rem; letter-spacing: -.04em; }
.signup-card-head p { margin: 0; color: #687d80; font-size: .76rem; }
.signup-name-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.signup-consent { margin-top: 15px; }
.signup-consent a { color: #086f61; font-weight: 700; }
.signup-captcha img { margin: 0 12px 10px 0; border: 1px solid #d2dbd8; }
.signup-captcha input[type="text"] { display: inline-block; width: min(220px, 100%); }
.signup-login-link { margin: 18px 0 0; color: #65787b; font-size: .72rem; text-align: center; }
.signup-login-link a { color: #087a69; font-weight: 750; }

/* Certificate setup */
.certificate-setup { max-width: 1160px; margin-inline: auto; }
.certificate-setup-kicker,
.certificate-step-label { display: block; margin-bottom: 6px; color: var(--z-brand-dark); font-size: .63rem; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.certificate-type-switch { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.certificate-type-option { padding: 15px 17px; display: grid; gap: 4px; border: 1px solid #cedbd7; border-radius: 10px; color: #173f3d; background: #fff; text-decoration: none; }
.certificate-type-option:hover { border-color: #83b8ac; background: #f5faf8; color: #0b6257; }
.certificate-type-option.is-active { border-color: #168b78; box-shadow: inset 0 0 0 1px #168b78; background: #eef8f5; }
.certificate-type-option span { font-size: .78rem; font-weight: 780; }
.certificate-type-option small { color: #647b78; font-size: .65rem; }
.certificate-primary-path { overflow: hidden; border-top: 4px solid #168b78; }
.certificate-status-badge { padding: 8px 11px; }
.certificate-active-summary { padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border: 1px solid #a9d6ca; border-radius: 10px; background: #eff9f6; }
.certificate-active-summary div { display: grid; gap: 3px; }
.certificate-active-summary span { color: #58716d; font-size: .7rem; }
.certificate-upload-guide { padding: 20px; display: grid; grid-template-columns: 1.35fr .85fr; gap: 24px; border: 1px solid #d9e4e1; border-radius: 12px; background: #f8faf9; }
.certificate-upload-guide-copy { display: flex; align-items: flex-start; gap: 13px; }
.certificate-upload-number { width: 28px; height: 28px; flex: 0 0 28px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #127968; font-size: .7rem; font-weight: 850; }
.certificate-marker-list { display: flex; flex-wrap: wrap; gap: 7px; }
.certificate-marker-list code { padding: 5px 8px; border: 1px solid #cbdad6; border-radius: 6px; color: #154b44; background: #fff; font-size: .67rem; user-select: all; }
.certificate-upload-form { padding-top: 20px; border-top: 1px solid #dbe4e2; }
.certificate-advanced-upload { color: #566d69; font-size: .69rem; }
.certificate-advanced-upload summary { cursor: pointer; font-weight: 720; }
.certificate-fallback { background: #fbfcfb; }

/* Certificate library: a compact, legible gallery rather than a stack of forms. */
.certificate-gallery-group { scroll-margin-top: 110px; }
.certificate-gallery-heading {
  margin-bottom: 18px;
  padding-bottom: 13px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--z-line);
}
.certificate-gallery-kicker {
  display: block;
  margin-bottom: 5px;
  color: var(--z-brand-dark);
  font-size: .61rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.certificate-gallery-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid #d6e2df;
  border-radius: 13px;
  background: #fff;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.certificate-gallery-card:hover {
  transform: translateY(-2px);
  border-color: #abc9c1;
  box-shadow: 0 14px 34px rgba(15, 51, 48, .1);
}
.certificate-gallery-visual {
  aspect-ratio: 1.45;
  padding: 15px;
  display: block;
  background: #eaf0ee;
  border-bottom: 1px solid var(--z-line);
}
.certificate-gallery-visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  box-shadow: 0 4px 14px rgba(11, 35, 43, .1);
}
.certificate-gallery-copy { padding: 18px; display: flex; flex: 1; flex-direction: column; }
.certificate-gallery-copy h4 { line-height: 1.3; }
.certificate-gallery-copy p { min-height: 2.9em; }
.certificate-gallery-style {
  color: #516d6b;
  font-size: .6rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.certificate-gallery-actions { display: grid; gap: 10px; }
.certificate-gallery-actions > a { justify-self: center; font-size: .67rem; }

@media (max-width: 900px) {
  .certificate-type-switch,
  .certificate-upload-guide { grid-template-columns: 1fr; }
  .app-shell { width: min(100% - 40px, 820px); }
  .app-metrics-ledger > div:nth-child(3) { border-left: 0; }
  .app-metrics-ledger > div:nth-child(n+3) { border-top: 1px solid #d7dedb; }
  .app-workflow-strip .card-body { grid-template-columns: 1fr; gap: 15px; }
  .app-login-layout { grid-template-columns: 1fr; }
  .signup-layout { grid-template-columns: 1fr; }
  .app-login-context { padding: 38px; }
  .app-login-context > img { margin-bottom: 25px; }
  .app-login-context h1 { max-width: 660px; }
  .app-login-context ul { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 575.98px) {
  .certificate-active-summary { align-items: flex-start; flex-direction: column; }
  .certificate-type-option { padding: 13px 14px; }
  .app-shell { width: calc(100% - 28px); }
  .trial-status-inner { padding-block: 13px; align-items: flex-start; flex-direction: column; gap: 9px; }
  .trial-status-inner > div:last-child { justify-items: start; text-align: left; }
  .signup-layout { border-radius: 0; }
  .signup-intro, .signup-card { padding: 30px 22px; }
  .signup-name-grid { grid-template-columns: 1fr; gap: 0; }
  .z-app .app-main { padding-top: 28px !important; }
  .app-page-heading { padding-bottom: 20px; }
  .app-page-heading h1,
  .app-dashboard .app-main > header h1 { font-size: 2.65rem !important; }
  .app-metrics-ledger .card-body { min-height: 124px; padding: 17px !important; }
  .app-metrics-ledger .display-6 { font-size: 2.15rem !important; }
  .app-workflow-strip .row > div { width: 100%; }
  .app-workflow-strip .bg-light { display: flex; align-items: center; text-align: left; }
  .app-workflow-strip .col-6 + .col-6 .bg-light::before { top: -5px; left: 19px; width: 1px; height: 10px; }
  .app-qr-notice { padding: 18px; align-items: flex-start; flex-direction: column; gap: 16px; }
  .app-qr-notice .btn { width: 100%; }
  .app-live-metrics > div + div { border-top: 1px solid rgba(255,255,255,.13); border-left: 0; }
  .app-action-bar { padding: 10px; }
  .app-session-workspace .qr-code { max-width: 190px; }
  .app-login-page .app-main { padding-block: 24px 100px !important; }
  .app-login-layout { border-radius: 0; }
  .app-login-context { padding: 30px 24px; }
  .app-login-context > img { width: 48px; height: 48px; margin-bottom: 21px; }
  .app-login-context h1 { font-size: 2.45rem; }
  .app-login-context p { font-size: .82rem; }
  .app-login-context ul { grid-template-columns: 1fr; margin-top: 23px; padding-top: 15px; }
  .app-login-form { padding: 30px 22px; }
  .mobile-bottom-nav { border-radius: 9px; }
}

/* Simplified trainer home: one focal QR code and three obvious next actions. */
.dashboard-heading { max-width: 760px; }
.dashboard-focus-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(330px, .78fr);
  gap: 18px;
  align-items: stretch;
}
.dashboard-qr-card,
.dashboard-action-card,
.dashboard-next-sessions,
.recent-session-list,
.registration-workbench {
  overflow: hidden;
  border: 1px solid #cfd9d5;
  border-radius: 8px;
  background: #fafaf7;
}
.dashboard-qr-card { border-top: 4px solid var(--z-brand); }
.dashboard-card-heading {
  padding: 20px 22px 16px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid #dce3e0;
}
.dashboard-card-heading p { max-width: 520px; font-size: .76rem; }
.dashboard-qr-body {
  min-height: 330px;
  padding: 24px;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(190px, .72fr);
  gap: 28px;
  align-items: center;
}
.dashboard-qr-safe-zone {
  width: min(320px, 100%);
  padding: 20px;
  justify-self: center;
  border: 1px solid #d7dfdc;
  background: #fff;
}
.dashboard-qr-safe-zone .qr-code { width: 100%; max-width: none; }
.dashboard-qr-actions { display: grid; gap: 10px; align-content: center; }
.dashboard-qr-actions strong { color: #173438; font-size: .88rem; line-height: 1.45; }
.dashboard-qr-actions > span { font-size: .72rem; }
.dashboard-text-link { color: var(--z-brand-dark); font-size: .7rem; font-weight: 760; text-align: center; }
.dashboard-action-card { padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.dashboard-action-card > div:first-child { margin-bottom: 4px; }
.dashboard-action-card > div:first-child p { font-size: .74rem; }
.dashboard-primary-action,
.dashboard-secondary-action {
  min-height: 82px;
  padding: 14px 15px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  color: #173438;
  border: 1px solid #d4ded9;
  border-radius: 7px;
  background: #fff;
  text-decoration: none;
}
.dashboard-primary-action { color: #fff; border-color: var(--z-brand); background: var(--z-brand); }
.dashboard-primary-action:hover { color: #fff; filter: brightness(.94); }
.dashboard-secondary-action:hover { color: #113e3b; border-color: #9fc2b8; background: #f2f8f5; }
.dashboard-action-number {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  color: #526764;
  background: #edf2ef;
  font-size: .75rem;
  font-weight: 850;
}
.dashboard-primary-action .dashboard-action-number { color: var(--z-brand-dark); background: #fff; }
.dashboard-primary-action strong,
.dashboard-secondary-action strong,
.dashboard-primary-action small,
.dashboard-secondary-action small { display: block; }
.dashboard-primary-action strong,
.dashboard-secondary-action strong { font-size: .82rem; }
.dashboard-primary-action small,
.dashboard-secondary-action small { margin-top: 3px; color: inherit; font-size: .65rem; opacity: .76; }
.dashboard-registration-summary {
  min-height: 120px;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: stretch;
  overflow: hidden;
  color: #fff;
  border: 1px solid #173844;
  border-radius: 8px;
  background: var(--z-night);
  text-decoration: none;
}
.dashboard-registration-summary:hover { color: #fff; border-color: #2f756f; }
.dashboard-registration-summary > span { padding: 20px 22px; display: grid; align-content: center; border-right: 1px solid rgba(255,255,255,.13); }
.dashboard-registration-summary small { color: #a9bec3; font-size: .64rem; font-weight: 780; text-transform: uppercase; letter-spacing: .045em; }
.dashboard-registration-summary strong { color: #7bdcc5; font-size: 2.25rem; line-height: 1.05; }
.dashboard-registration-summary em { color: #9cb0b5; font-size: .66rem; font-style: normal; }
.dashboard-registration-summary > b { padding: 20px 22px; display: flex; align-items: center; gap: 9px; font-size: .72rem; white-space: nowrap; }
.dashboard-section-heading { padding: 17px 20px; display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; border-bottom: 1px solid #dce3e0; }
.dashboard-section-heading .app-page-kicker { margin-bottom: 4px; }
.dashboard-section-heading > a { color: var(--z-brand-dark); font-size: .7rem; font-weight: 760; }
.dashboard-session-row { display: grid; grid-template-columns: repeat(3, 1fr); }
.dashboard-session-row > a { min-height: 96px; padding: 17px 19px; display: flex; justify-content: space-between; gap: 16px; color: #244447; border-right: 1px solid #e0e6e3; text-decoration: none; }
.dashboard-session-row > a:last-child { border-right: 0; }
.dashboard-session-row > a:hover { background: #f0f5f2; }
.dashboard-session-row strong,
.dashboard-session-row small { display: block; }
.dashboard-session-row small { margin-top: 5px; color: #718386; font-size: .66rem; }
.dashboard-session-row time { color: #64777a; font-size: .69rem; font-weight: 730; white-space: nowrap; }
.dashboard-empty-state { padding: 24px; display: grid; justify-items: start; gap: 7px; grid-column: 1 / -1; }
.dashboard-empty-state span { color: #718386; font-size: .72rem; }
.dashboard-empty-state .btn { margin-top: 7px; }
.dashboard-help-row { display: flex; justify-content: center; gap: 8px; color: #6b7e81; font-size: .7rem; }
.dashboard-help-row a { color: var(--z-brand-dark); font-weight: 750; }

.recent-session-list { display: grid; }
.recent-session-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; border-bottom: 1px solid #dce3e0; }
.recent-session-item:last-child { border-bottom: 0; }
.recent-session-main { min-height: 112px; padding: 18px 20px; display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; align-items: center; gap: 18px; color: #244447; text-decoration: none; }
.recent-session-main:hover { color: #153f3c; background: #f0f5f2; }
.recent-session-date { display: grid; justify-items: center; padding-right: 18px; border-right: 1px solid #dce3e0; }
.recent-session-date b { font-size: 1.75rem; line-height: 1; }
.recent-session-date small { margin-top: 5px; color: #748689; font-size: .62rem; text-transform: uppercase; }
.recent-session-copy > strong,
.recent-session-copy > small,
.recent-session-copy > em { display: block; }
.recent-session-copy > small { margin-top: 4px; color: #718386; font-size: .68rem; }
.recent-session-copy > em { margin-top: 8px; color: #79642d; font-size: .65rem; font-style: normal; }
.recent-session-open { color: var(--z-brand-dark); font-size: .72rem; font-weight: 760; white-space: nowrap; }
.recent-session-item > form { padding-right: 14px; }
.recent-session-empty { min-height: 220px; align-content: center; justify-items: center; text-align: center; }
.registration-workbench .card-header { background: #fafaf7 !important; }

@media (max-width: 900px) {
  .dashboard-focus-grid { grid-template-columns: 1fr; }
  .dashboard-action-card { display: grid; grid-template-columns: repeat(3, 1fr); }
  .dashboard-action-card > div:first-child { grid-column: 1 / -1; }
  .dashboard-primary-action,
  .dashboard-secondary-action { min-height: 126px; grid-template-columns: 32px 1fr; align-content: center; }
  .dashboard-primary-action > span:last-child,
  .dashboard-secondary-action > span:last-child { display: none; }
  .dashboard-session-row { grid-template-columns: 1fr; }
  .dashboard-session-row > a { min-height: 78px; border-right: 0; border-bottom: 1px solid #e0e6e3; }
  .dashboard-session-row > a:last-child { border-bottom: 0; }
}

@media (max-width: 575.98px) {
  .dashboard-heading { margin-bottom: 18px !important; }
  .dashboard-qr-body { padding: 18px; grid-template-columns: 1fr; gap: 18px; }
  .dashboard-qr-safe-zone { width: min(280px, 100%); }
  .dashboard-qr-actions { text-align: center; }
  .dashboard-card-heading { padding: 17px 18px 14px; }
  .dashboard-card-heading .badge { flex: 0 0 auto; }
  .dashboard-action-card { padding: 18px; display: flex; }
  .dashboard-primary-action,
  .dashboard-secondary-action { min-height: 76px; grid-template-columns: 32px minmax(0, 1fr) auto; }
  .dashboard-primary-action > span:last-child,
  .dashboard-secondary-action > span:last-child { display: block; }
  .dashboard-registration-summary { grid-template-columns: 1fr 1fr; }
  .dashboard-registration-summary > span { padding: 17px 14px; }
  .dashboard-registration-summary > span:nth-child(2) { border-right: 0; }
  .dashboard-registration-summary > b { grid-column: 1 / -1; padding: 12px 14px; justify-content: center; border-top: 1px solid rgba(255,255,255,.13); }
  .dashboard-registration-summary strong { font-size: 2rem; }
  .dashboard-section-heading { align-items: flex-start; flex-direction: column; gap: 10px; }
  .dashboard-help-row { align-items: center; flex-direction: column; }
  .recent-session-item { grid-template-columns: 1fr; }
  .recent-session-main { grid-template-columns: 58px minmax(0, 1fr); gap: 13px; }
  .recent-session-open { display: none; }
  .recent-session-date { padding-right: 13px; }
  .recent-session-item > form { padding: 0 18px 14px 88px; }
}
