.enrollment-success-page {
  min-height: calc(844px - 76px);
  padding-bottom: 34px;
  background: var(--surface-page);
}

.success-hero {
  display: grid;
  justify-items: center;
  padding: 30px 24px 28px;
  background: var(--brand-deep);
  color: #fff;
  text-align: center;
}

.success-mark {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 0.48);
  border-radius: 50%;
}

.success-mark svg {
  width: 27px;
  height: 27px;
}

.success-hero > p {
  margin: 16px 0 0;
  color: rgb(255 255 255 / 0.68);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.success-hero h2 {
  margin: 8px 0 0;
  font-family: var(--serif);
  font-size: 23px;
  line-height: 1.45;
  text-wrap: balance;
}

.success-hero > span:last-child {
  max-width: 315px;
  margin-top: 10px;
  color: rgb(255 255 255 / 0.72);
  font-size: 11px;
  line-height: 1.7;
  text-wrap: pretty;
}

.enrollment-receipt {
  position: relative;
  margin: 22px 18px 0;
  padding: 19px 16px 4px;
  border: 1px solid var(--line-default);
  background: #fff;
}

.receipt-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line-default);
}

.receipt-heading span {
  color: var(--brand-primary);
  font-family: var(--numeric);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.receipt-heading h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 17px;
}

.enrollment-receipt dl {
  margin: 0;
}

.enrollment-receipt dl > div {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-default);
  font-size: 11px;
  line-height: 1.55;
}

.enrollment-receipt dl > div:last-child {
  border-bottom: 0;
}

.enrollment-receipt dt {
  color: var(--ink-secondary);
}

.enrollment-receipt dd {
  margin: 0;
  font-weight: 700;
  text-align: right;
}

.enrollment-receipt dd span {
  color: var(--brand-primary);
}

.group-entry-section {
  margin-top: 24px;
  padding: 25px 18px 26px;
  border-top: 8px solid var(--surface-muted);
}

.group-section-heading > span {
  color: var(--brand-primary);
  font-family: var(--numeric);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.group-section-heading h2 {
  margin: 7px 0 0;
  font-family: var(--serif);
  font-size: 21px;
}

.group-section-heading p {
  margin: 7px 0 0;
  color: var(--ink-secondary);
  font-size: 11px;
  line-height: 1.7;
}

.group-entry-ready {
  display: grid;
  margin-top: 18px;
}

.official-entry-label {
  justify-self: start;
  margin-bottom: 8px;
  padding: 4px 7px;
  background: var(--brand-soft);
  color: var(--brand-primary);
  font-size: 9px;
  font-weight: 700;
}

.join-group-button {
  display: grid;
  width: 100%;
  min-height: 66px;
  grid-template-columns: 26px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 12px;
  padding: 10px 15px;
  border: 0;
  border-radius: 3px;
  background: var(--brand-primary);
  color: #fff;
  text-align: left;
  cursor: pointer;
}

.join-group-button > svg:first-child {
  width: 26px;
  height: 26px;
}

.join-group-button > svg:last-child {
  width: 17px;
  height: 17px;
}

.join-group-button > span {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 14px;
  font-weight: 700;
}

.join-group-button small {
  color: rgb(255 255 255 / 0.68);
  font-size: 9px;
  font-weight: 400;
}

.backup-qr-button {
  display: grid;
  width: 100%;
  min-height: 50px;
  grid-template-columns: 20px 1fr 16px;
  align-items: center;
  gap: 9px;
  margin-top: 9px;
  padding: 0 13px;
  border: 1px solid var(--line-default);
  border-radius: 3px;
  background: #fff;
  color: var(--ink-primary);
  font-size: 11px;
  text-align: left;
  cursor: pointer;
}

.backup-qr-button svg {
  width: 17px;
  height: 17px;
  color: var(--brand-primary);
}

.group-click-status {
  margin: 10px 0 0;
  color: var(--ink-secondary);
  font-size: 9px;
  line-height: 1.65;
}

.group-click-status.recorded {
  color: var(--brand-primary);
  font-weight: 700;
}

.primary-entry-unavailable {
  padding: 16px;
  border: 1px solid var(--line-default);
  background: var(--surface-muted);
}

.primary-entry-unavailable strong {
  font-family: var(--serif);
  font-size: 14px;
}

.primary-entry-unavailable p {
  margin: 6px 0 0;
  color: var(--ink-secondary);
  font-size: 10px;
  line-height: 1.65;
}

.group-entry-status {
  display: grid;
  justify-items: center;
  margin-top: 18px;
  padding: 26px 18px;
  border: 1px solid var(--line-default);
  background: var(--surface-muted);
  text-align: center;
}

.group-entry-status > svg {
  width: 30px;
  height: 30px;
  color: var(--brand-primary);
}

.group-entry-status > strong {
  margin-top: 12px;
  font-family: var(--serif);
  font-size: 16px;
}

.group-entry-status > p {
  margin: 7px 0 0;
  color: var(--ink-secondary);
  font-size: 10px;
  line-height: 1.7;
}

.group-entry-status > button {
  min-height: 42px;
  margin-top: 16px;
  padding: 0 18px;
  border: 1px solid var(--brand-primary);
  border-radius: 3px;
  background: #fff;
  color: var(--brand-primary);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.group-entry-status.loading .loading-mark {
  width: 28px;
  height: 28px;
}

.success-boundary-note {
  margin: 0 18px;
  padding: 16px 0;
  border-top: 1px solid var(--line-default);
  border-bottom: 1px solid var(--line-default);
}

.success-boundary-note strong {
  font-family: var(--serif);
  font-size: 13px;
}

.success-boundary-note p {
  margin: 6px 0 0;
  color: var(--ink-secondary);
  font-size: 9px;
  line-height: 1.7;
}

.success-followup-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 18px;
}

.success-followup-actions button {
  min-height: 44px;
  border: 1px solid var(--line-default);
  border-radius: 3px;
  background: #fff;
  color: var(--brand-primary);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.group-qr-sheet {
  width: min(390px, 100vw);
  padding: 20px 20px calc(18px + env(safe-area-inset-bottom));
  border-radius: 16px 16px 0 0;
  background: #fff;
  box-shadow: 0 -8px 30px rgb(0 0 0 / 0.14);
  text-align: center;
  animation: sheet-in 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.group-qr-sheet .sheet-header {
  text-align: left;
}

.group-qr-sheet .sheet-header span {
  color: var(--brand-primary);
  font-size: 9px;
  font-weight: 700;
}

.group-qr-sheet .sheet-header h2 {
  margin-top: 4px;
  font-size: 17px;
}

.group-qr-sheet > img,
.qr-placeholder {
  width: 210px;
  height: 210px;
  margin: 18px auto;
}

.group-qr-sheet > img {
  display: block;
  object-fit: contain;
}

.qr-placeholder {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 7px;
  border: 1px dashed #9aa7a3;
  background: var(--surface-muted);
  color: var(--ink-secondary);
}

.qr-placeholder > span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-primary);
}

.qr-placeholder svg {
  width: 23px;
  height: 23px;
}

.qr-placeholder strong {
  font-family: var(--serif);
  font-size: 15px;
}

.qr-placeholder small {
  font-size: 9px;
}

.group-qr-sheet > p {
  margin: 0;
  color: var(--ink-secondary);
  font-size: 10px;
  line-height: 1.7;
}

.qr-sheet-done {
  width: 100%;
  min-height: 46px;
  margin-top: 16px;
  border: 0;
  border-radius: 3px;
  background: var(--brand-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 359px) {
  .success-hero h2 {
    font-size: 21px;
  }

  .enrollment-receipt,
  .success-boundary-note {
    margin-inline: 14px;
  }

  .group-entry-section,
  .success-followup-actions {
    padding-inline: 14px;
  }
}
