.group-checkin-page {
  align-items: flex-start;
  background: #f3f5f9;
  display: flex;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem 1rem;
}

.group-checkin-tool {
  background: #fff;
  border: 1px solid #e1e6ef;
  border-radius: 8px;
  box-shadow: 0 14px 40px rgba(31, 45, 61, .1);
  max-width: 760px;
  min-width: 0;
  overflow: hidden;
  width: 100%;
}

.group-checkin-hero {
  aspect-ratio: 16 / 6;
  min-height: 230px;
  overflow: hidden;
  position: relative;
}

.group-checkin-hero__image {
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  width: 100%;
}

.group-checkin-hero__overlay {
  background: rgba(20, 28, 45, .68);
  inset: 0;
  position: absolute;
}

.group-checkin-hero__content {
  bottom: 0;
  color: #fff;
  left: 0;
  max-width: 620px;
  padding: 1.5rem;
  position: absolute;
  right: 0;
}

.group-checkin-hero__label {
  align-items: center;
  display: inline-flex;
  font-size: .82rem;
  font-weight: 700;
  gap: .4rem;
  margin-bottom: .6rem;
}

.group-checkin-hero h1 {
  color: #fff;
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.2;
  margin: 0;
  overflow-wrap: anywhere;
}

.group-checkin-hero p {
  color: rgba(255, 255, 255, .9);
  margin: .6rem 0 0;
  overflow-wrap: anywhere;
}

.group-checkin-body {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.5rem;
}

.group-checkin-summary {
  border-bottom: 1px solid #e7ebf2;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-bottom: 1.25rem;
}

.group-checkin-summary > div {
  align-items: flex-start;
  display: flex;
  gap: .7rem;
  min-width: 0;
}

.group-checkin-summary i {
  color: #435ebe;
  flex: 0 0 auto;
  font-size: 1.2rem;
}

.group-checkin-summary span,
.group-checkin-result div {
  min-width: 0;
  overflow-wrap: anywhere;
}

.group-checkin-summary strong,
.group-checkin-summary span > span {
  display: block;
}

.group-checkin-summary strong {
  color: #25324b;
  font-size: .78rem;
  margin-bottom: .2rem;
}

.group-checkin-today,
.group-checkin-result {
  align-items: flex-start;
  background: #eef8f3;
  border: 1px solid #cde8da;
  border-radius: 8px;
  color: #1f6b49;
  display: flex;
  gap: .8rem;
  padding: 1rem;
}

.group-checkin-today--unavailable {
  background: #fff7e8;
  border-color: #f0d69e;
  color: #855d12;
}

.group-checkin-today--conflict {
  background: #fff1ec;
  border-color: #efc6b6;
  color: #8a3f27;
}

.group-checkin-today > i,
.group-checkin-result > i {
  flex: 0 0 auto;
  font-size: 1.35rem;
}

.group-checkin-today strong,
.group-checkin-today span,
.group-checkin-result strong,
.group-checkin-result span {
  display: block;
}

.group-checkin-today span,
.group-checkin-result span {
  font-size: .86rem;
  margin-top: .25rem;
}

.group-checkin-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.group-checkin-form h2 {
  color: #25324b;
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0;
}

.group-checkin-form p {
  color: #6f7b93;
  margin: .25rem 0 0;
}

.group-checkin-field label {
  color: #25324b;
  font-size: .86rem;
  font-weight: 700;
  margin-bottom: .4rem;
}

.group-checkin-field .form-control {
  font-size: 1rem;
  min-height: 46px;
}

.group-checkin-submit {
  justify-content: center;
  min-height: 46px;
  width: 100%;
}

.group-checkin-result {
  align-items: center;
  flex-wrap: wrap;
}

.group-checkin-result--already {
  background: #eef4ff;
  border-color: #cad9f5;
  color: #365889;
}

.group-checkin-result .btn {
  margin-left: auto;
}

.group-checkin-state {
  align-items: center;
  color: #596579;
  display: flex;
  flex-direction: column;
  gap: .65rem;
  min-height: 360px;
  justify-content: center;
  padding: 2rem;
  text-align: center;
}

.group-checkin-state strong {
  color: #25324b;
  font-size: 1.05rem;
}

.group-checkin-state--error > i {
  color: #a83434;
  font-size: 2rem;
}

.group-checkin-qr {
  align-items: center;
  display: flex;
  justify-content: center;
  margin: 0 auto;
  max-width: 280px;
  min-height: 280px;
  overflow: hidden;
  width: 100%;
}

body.theme-dark .group-checkin-page {
  background: #1e1e2d;
}

body.theme-dark .group-checkin-tool {
  background: #252538;
  border-color: #39394f;
}

body.theme-dark .group-checkin-summary {
  border-bottom-color: #39394f;
}

body.theme-dark .group-checkin-summary strong,
body.theme-dark .group-checkin-form h2,
body.theme-dark .group-checkin-field label,
body.theme-dark .group-checkin-state strong {
  color: #f1f2f6;
}

body.theme-dark .group-checkin-summary span,
body.theme-dark .group-checkin-form p,
body.theme-dark .group-checkin-state {
  color: #b9bdca;
}

@media (max-width: 575.98px) {
  .group-checkin-page {
    padding: 0;
  }

  .group-checkin-tool {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    min-height: 100vh;
  }

  .group-checkin-hero {
    aspect-ratio: auto;
    min-height: 132px;
  }

  .group-checkin-hero__content {
    padding: .875rem 1rem;
  }

  .group-checkin-hero__label {
    font-size: .75rem;
    margin-bottom: .25rem;
  }

  .group-checkin-hero h1 {
    font-size: 1.25rem;
  }

  .group-checkin-hero p {
    display: none;
  }

  .group-checkin-body {
    gap: .75rem;
    padding: .75rem 1rem 1rem;
  }

  .group-checkin-summary {
    gap: .5rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-bottom: .75rem;
  }

  .group-checkin-summary > div {
    gap: .45rem;
  }

  .group-checkin-summary i {
    font-size: 1rem;
  }

  .group-checkin-summary strong {
    font-size: .7rem;
    margin-bottom: .1rem;
  }

  .group-checkin-summary span {
    font-size: .84rem;
  }

  .group-checkin-today {
    gap: .6rem;
    padding: .75rem;
  }

  .group-checkin-today > i {
    font-size: 1.1rem;
  }

  .group-checkin-today span {
    font-size: .8rem;
  }

  .group-checkin-form {
    gap: .65rem;
  }

  .group-checkin-form > div:first-child {
    display: none;
  }

  .group-checkin-field label {
    margin-bottom: .25rem;
  }

  .group-checkin-field .form-control,
  .group-checkin-submit {
    min-height: 44px;
  }

  .group-checkin-result {
    align-items: flex-start;
  }

  .group-checkin-result .btn {
    justify-content: center;
    margin-left: 0;
    width: 100%;
  }
}
