.cem-public-wrapper {
  --cem-primary: #2557c2;
  --cem-scheduled: #f4a000;
  --cem-confirmed: #1f9d55;
  --cem-border: #d6dbe5;
  --cem-text: #172334;
  --cem-muted: #5d6778;
  margin: 24px 0;
  color: var(--cem-text);
  font-family: inherit;
}

.cem-public-header,
.cem-public-empty,
.cem-access-card {
  background: #fff;
  border: 1px solid var(--cem-border);
  border-radius: 14px;
  box-shadow: 0 10px 26px rgba(18, 27, 44, 0.06);
}

.cem-public-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px;
  margin-bottom: 20px;
}

.cem-public-header h2,
.cem-access-card h2 {
  margin: 0 0 8px;
  font-size: 32px;
  line-height: 1.15;
}

.cem-public-header p,
.cem-access-card p {
  margin: 0;
  color: var(--cem-muted);
}

.cem-public-header-link,
.cem-enrol-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  background: var(--cem-primary);
  color: #fff !important;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
  box-shadow: 0 10px 22px rgba(37, 87, 194, 0.22);
}

.cem-public-header-link:hover,
.cem-enrol-btn:hover {
  transform: translateY(-1px);
  opacity: 0.94;
}

.cem-public-table-shell {
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--cem-border);
  border-radius: 14px;
  box-shadow: 0 10px 26px rgba(18, 27, 44, 0.06);
}

.cem-public-table {
  width: 100%;
  min-width: 880px;
  border-collapse: separate;
  border-spacing: 0;
}

.cem-public-table thead th {
  background: #f2f4f7;
  padding: 16px 14px;
  text-align: left;
  font-size: 14px;
  font-weight: 800;
  border-bottom: 1px solid var(--cem-border);
}

.cem-public-table tbody td {
  padding: 20px 14px;
  border-bottom: 1px solid #edf1f6;
  vertical-align: middle;
}

.cem-public-table tbody tr:nth-child(even) {
  background: #fcfdff;
}

.cem-public-table tbody tr:hover {
  background: #f8fbff;
}

.cem-public-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.cem-public-badge-scheduled {
  background: color-mix(in srgb, var(--cem-scheduled) 18%, white);
  color: #9d6500;
}

.cem-public-badge-confirmed {
  background: color-mix(in srgb, var(--cem-confirmed) 18%, white);
  color: #0e7a41;
}

.cem-mobile-cards {
  display: none;
  gap: 16px;
}

.cem-mobile-card,
.cem-public-empty,
.cem-access-card {
  padding: 20px;
}

.cem-mobile-card {
  background: #fff;
  border: 1px solid var(--cem-border);
  border-radius: 14px;
  box-shadow: 0 10px 26px rgba(18, 27, 44, 0.06);
}

.cem-mobile-card h3 {
  margin: 0 0 12px;
  font-size: 20px;
  line-height: 1.3;
}

.cem-mobile-card p {
  margin: 0 0 10px;
}

.cem-mobile-card .cem-enrol-btn {
  margin-top: 8px;
}

.cem-public-empty {
  color: var(--cem-muted);
  font-weight: 600;
}

.cem-access-wrapper {
  max-width: 760px;
}

@media (max-width: 768px) {
  .cem-public-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .cem-public-table-shell {
    display: none;
  }

  .cem-mobile-cards {
    display: grid;
  }

  .cem-public-header h2,
  .cem-access-card h2 {
    font-size: 26px;
  }
}
