.gpl-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #e8edf2;
  padding-bottom: 2.75rem;
}

.gpl-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.gpl-card {
  width: 100%;
  max-width: 760px;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.gpl-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  border-bottom: 1px solid #f3f4f6;
  background: #ffffff;
}

.gpl-card__close {
  color: #94a3b8;
  background: none;
  border: none;
  padding: 0.25rem;
  cursor: pointer;
  line-height: 0;
  flex-shrink: 0;
}

.gpl-card__close:hover {
  color: #475569;
}

.popup-container .gpl-card__header {
  border-radius: 0.75rem 0.75rem 0 0;
}

.placement-completed-card .gpl-card__header {
  border-radius: 1rem 1rem 0 0;
}

.placement-completed-body.gpl-page {
  background: #e8edf2;
}

.placement-completed-card {
  max-width: 760px;
  padding: 0;
  overflow: hidden;
}

.placement-completed-card .gpl-card__body {
  padding: 2.5rem 2.5rem 2rem;
}

.placement-completed-card .target-icon-container svg {
  width: 100%;
  height: 100%;
  display: block;
}

.placement-completed-card .mexico-button-container {
  justify-content: center;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.placement-completed-card .mexico-btn-custom {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  min-width: 0;
}

.placement-completed-card .mexico-btn-custom:hover {
  text-decoration: none;
}

.gpl-brand {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.gpl-brand__logo {
  height: 4rem;
  width: auto;
  max-width: 12rem;
  min-height: 3rem;
  object-fit: contain;
}

.gpl-brand__initials {
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-color, #fff);
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.gpl-brand__name {
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.gpl-card__body {
  padding: 2.25rem 2rem 2.5rem;
  text-align: center;
}

@media (min-width: 768px) {
  .gpl-card__body {
    padding-left: 3rem;
    padding-right: 3rem;
  }
}

.gpl-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 0.75rem;
}

.gpl-subtitle {
  color: #4b5563;
  font-size: 0.9375rem;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto 1.75rem;
}

.gpl-skills {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  max-width: 600px;
  margin: 0 auto 1.75rem;
}

.gpl-skill-card {
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 0.625rem 0.875rem;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.gpl-skill-card__icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.gpl-skill-card__title {
  font-weight: 600;
  color: #111827;
  font-size: 0.875rem;
  line-height: 1.25;
  margin: 0;
}

.gpl-skill-card__desc {
  color: #6b7280;
  font-size: 0.75rem;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gpl-meta {
  max-width: 600px;
  margin: 1rem auto 1.5rem;
  text-align: left;
}

.gpl-meta__line {
  margin: 0 0 0.375rem;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.gpl-meta__line:last-child {
  margin-bottom: 0;
}

.gpl-meta__label {
  font-weight: 600;
  color: #6b7280;
  margin-right: 0.375rem;
}

.gpl-meta__value {
  font-weight: 500;
  color: #1a2233;
}

.gpl-info-banner {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  border-radius: 0.8rem;
  padding: 1rem;
  text-align: left;
  max-width: 600px;
  margin: 0 auto 1.75rem;
  font-size: 0.8125rem;
  color: #374151;
  line-height: 1.5;
}

.gpl-info-banner__content {
  flex: 1;
  min-width: 0;
}

.gpl-info-banner__lead {
  margin: 0;
}

.gpl-info-banner__list {
  margin: 0.75rem 0 0;
  padding-left: 1.25rem;
  list-style: disc;
}

.gpl-info-banner__list li {
  margin-top: 0.375rem;
}

.gpl-info-banner__list li::marker {
  color: var(--gpl-marker, #2563eb);
}

.gpl-back-link {
  display: block;
  margin: 1rem auto 0;
  padding: 0.25rem 0.5rem;
  background: none;
  border: none;
  color: #9ca3af;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.15s ease;
}

.gpl-back-link:hover {
  color: #4b5563;
}

.gpl-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 420px;
  color: var(--text-color, #fff);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.875rem 1.5rem;
  border: 1.5px solid #0c1222;
  border-radius: 999px;
  box-shadow: 2px 2px 0 #0c1222;
  text-decoration: none;
  transform: translate(0, 0);
  transition: opacity 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.gpl-btn-primary:hover {
  opacity: 0.96;
  color: var(--text-color, #fff);
  text-decoration: none;
  box-shadow: 3px 3px 0 #0c1222;
  transform: translate(-1px, -1px);
}

.gpl-btn-primary:active {
  box-shadow: 1px 1px 0 #0c1222;
  transform: translate(1px, 1px);
}

/* ── Gradingly student code popup (gsc-) ── */
.gsc-page {
  position: relative;
  overflow: hidden;
  background: #f6f8fb;
}

.gsc-page__ambient {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background:
    radial-gradient(680px 480px at 88% 2%, rgba(0, 136, 255, 0.08), transparent 60%),
    radial-gradient(620px 480px at 8% 100%, rgba(0, 136, 255, 0.06), transparent 62%);
}

.gsc-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 600px;
  border-radius: 1.5rem;
  border: 1px solid #f3f4f6;
  box-shadow: 0 30px 80px rgba(13, 40, 90, 0.12);
}

.gsc-card .gpl-card__header {
  padding: 1.25rem 1.75rem;
}

.gsc-card .gpl-brand__logo {
  height: 3rem;
  min-height: 0;
  max-width: none;
}

.gsc-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

@media (min-width: 640px) {
  .gsc-body {
    padding: 2rem;
  }
}

.gsc-step {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gsc-form-wrap {
  width: 100%;
  max-width: 30rem;
  margin: 0 auto;
  text-align: left;
}

.gsc-form-wrap .form-group {
  margin-bottom: 1rem;
}

.gsc-field-label {
  display: block;
  margin-bottom: 0.4375rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #64748b;
}

.gsc-field-label-optional {
  font-weight: 500;
  color: #94a3b8;
}

.gsc-form-wrap .name-inputs .gsc-field-label {
  margin-bottom: 0.4375rem;
}

.gsc-form-wrap .form-group:last-of-type {
  margin-bottom: 1.25rem;
}

.gsc-form-wrap .btn-primary-custom {
  margin-top: 0.25rem;
}

.gsc-hidden {
  display: none;
}

.gsc-badge {
  width: 80px;
  height: 80px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 42px;
  line-height: 1;
  background: var(--background-color, #2563eb);
  box-shadow: 0 16px 34px rgba(43, 133, 240, 0.35);
  transform: rotate(-6deg);
}

.gsc-badge--pencil {
  font-size: 38px;
}

.gsc-title {
  font-size: 1.875rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #1a2233;
  margin: 0;
}

@media (min-width: 640px) {
  .gsc-title {
    font-size: 2.125rem;
  }
}

.gsc-subtitle {
  max-width: 420px;
  margin: 0.75rem auto 2rem;
  font-size: 0.96875rem;
  line-height: 1.6;
  color: #6b7689;
}

.gsc-form {
  width: 100%;
  max-width: 28rem;
  box-sizing: border-box;
}

.gsc-form--code {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gsc-code-inputs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.375rem;
  width: 100%;
  max-width: 28rem;
  margin: 0 auto 1.5rem;
  box-sizing: border-box;
}

.gsc-code-input {
  flex: 0 0 auto;
  width: 55px;
  height: 55px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  text-align: center;
  font-size: 1.125rem;
  font-weight: 600;
  color: #111827;
  outline: none;
  text-transform: uppercase;
  padding: 0;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.gsc-code-input:focus {
  border-color: var(--background-color, #2563eb);
  box-shadow: 0 0 0 4px rgba(43, 133, 240, 0.15);
}

.gsc-code-input.is-invalid {
  border-color: #ef4444;
}

.gsc-code-input--sep {
  color: #9ca3af;
  font-weight: 700;
  pointer-events: none;
  cursor: default;
}

.gsc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 420px;
  border: 1.5px solid #0c1222;
  border-radius: 999px;
  padding: 0.875rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-color, #fff);
  background: var(--background-color, #2563eb);
  box-shadow: 2px 2px 0 #0c1222;
  transform: translate(0, 0);
  cursor: pointer;
  transition: opacity 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.gsc-btn:hover:not(:disabled) {
  opacity: 0.96;
  box-shadow: 3px 3px 0 #0c1222;
  transform: translate(-1px, -1px);
}

.gsc-btn:active:not(:disabled) {
  box-shadow: 1px 1px 0 #0c1222;
  transform: translate(1px, 1px);
}

.gsc-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: 2px 2px 0 #0c1222;
  transform: none;
}

.gsc-btn--cta {
  width: auto;
  min-width: 11rem;
  padding-left: 3.5rem;
  padding-right: 3.5rem;
}

.gsc-back {
  display: block;
  width: 100%;
  margin: 1rem auto 0;
  padding: 0.25rem 0.5rem;
  background: none;
  border: none;
  color: #9ca3af;
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: color 0.15s ease;
}

.gsc-back:hover {
  color: #4b5563;
}

.gsc-error {
  display: none;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  margin-bottom: 1rem;
  padding: 0.75rem 0.875rem;
  border-radius: 12px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  font-size: 0.8125rem;
  text-align: left;
  box-sizing: border-box;
}

.gsc-error.show {
  display: flex;
}

.gsc-error svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .gsc-body {
    padding: 2rem 1.25rem 2.5rem;
  }

  .gsc-code-input {
    width: 36px;
    height: 48px;
    font-size: 1rem;
  }

  .gsc-code-inputs {
    gap: 0.25rem;
  }

  .gsc-btn--cta {
    width: 100%;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

.gpl-system-check-body {
  padding: 1.5rem 1.5rem 0;
}

.gpl-system-check-body .pe-check-modal__body-inner {
  padding: 0;
}

.gpl-system-check-body .pe-check-footer {
  padding: 1rem 1.5rem 1.5rem;
  justify-content: center;
  background: #fff;
}

.gpl-system-check-body .pe-check-btn-start {
  width: 100%;
  max-width: 420px;
  padding: 0.875rem 1.5rem;
  font-size: 0.9375rem;
}

.gpl-system-check-intro {
  text-align: center;
  padding: 1.5rem 1.5rem 0.5rem;
}

.gpl-system-check-intro__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 0.5rem;
}

.gpl-system-check-intro__subtitle {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0;
}

.gpl-basic-complete-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #f9fafb;
}

.gpl-basic-complete-hero {
  height: 8rem;
  flex-shrink: 0;
}

.gpl-basic-complete-main {
  flex: 1;
  margin-top: -5rem;
  padding: 0 1rem 3rem;
  display: flex;
  justify-content: center;
}

.gpl-basic-complete-card {
  width: 100%;
  max-width: 42rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  overflow: hidden;
  height: 100%;
}

.gpl-basic-complete-letterhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  border-bottom: 1px solid #f3f4f6;
}

.gpl-basic-complete-letterhead__label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9ca3af;
}

.gpl-basic-complete-body {
  padding: 2rem 2rem 2rem;
  text-align: center;
}

.gpl-basic-complete-check {
  width: 4rem;
  height: 4rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
  color: #fff;
}

.gpl-basic-complete-check__icon {
  width: 2rem;
  height: 2rem;
}

.gpl-basic-complete-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 0.75rem;
}

.gpl-basic-complete-subtitle {
  max-width: 28rem;
  margin: 0 auto;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #4b5563;
}

.gpl-basic-complete-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.25rem 1.25rem;
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: #6b7280;
}

.gpl-basic-complete-meta__item {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.gpl-basic-complete-meta__icon {
  width: 1rem;
  height: 1rem;
  color: #9ca3af;
  flex-shrink: 0;
}

.gpl-basic-complete-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  max-width: 28rem;
  margin: 2rem auto 0;
  padding: 1rem;
  text-align: left;
  border: 1px solid #dbeafe;
  border-radius: 0.75rem;
  background: #eff6ff;
}

.gpl-basic-complete-notice__icon-wrap {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.gpl-basic-complete-notice__icon {
  width: 1.25rem;
  height: 1.25rem;
}

.gpl-basic-complete-notice__title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #111827;
}

.gpl-basic-complete-notice__text {
  font-size: 0.875rem;
  color: #4b5563;
  margin-top: 0.125rem;
}

.gpl-basic-complete-actions {
  margin-top: 2rem;
}

.gpl-basic-complete-exit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.5rem;
  border-radius: 0.375rem;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.gpl-basic-complete-exit-btn:hover {
  opacity: 0.9;
  color: var(--text-color, #ffffff);
  text-decoration: none;
}

.gpl-basic-complete-footnote {
  margin: 0.75rem 0 0;
  font-size: 0.75rem;
  color: #9ca3af;
}

.gpl-basic-complete-footer {
  padding: 1.75rem;
  border-top: 1px solid #f3f4f6;
}

.gpl-basic-complete-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.875rem 1.25rem;
  border-radius: 0;
  background: #f9fafb;
  font-size: 0.75rem;
  color: #6b7280;
}

.gpl-basic-complete-footer__heading {
  font-weight: 500;
  color: #374151;
}

.gpl-basic-complete-footer__right {
  text-align: left;
}

.gpl-basic-complete-footer__mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: #4b5563;
}

@media (min-width: 640px) {
  .gpl-basic-complete-footer__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .gpl-basic-complete-footer__right {
    text-align: right;
  }
}
