.member-summary {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 20px;
  align-items: center;
}

.member-selfie {
  width: 96px;
  height: 96px;
  border: 4px solid #fff;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.14);
}

.member-selfie.placeholder {
  padding: 13px;
  background: #fff;
  object-fit: contain;
}

.member-key {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.selfie-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 12px 16px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(17, 24, 39, 0.05);
}

.selfie-action input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.qr-open {
  width: 100%;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}

.qr-open:hover,
.qr-open:focus-visible {
  border-color: var(--brand);
  box-shadow: 0 10px 28px rgba(232, 80, 47, 0.14);
  transform: translateY(-2px);
}

.qr-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(8, 13, 25, 0.86);
  backdrop-filter: blur(8px);
}

.qr-modal-card {
  position: relative;
  width: min(560px, 100%);
  display: grid;
  justify-items: center;
  gap: 13px;
  border-radius: 24px;
  padding: 32px 24px 25px;
  background: #fff;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.qr-modal-card h2 {
  margin: 0;
  font-size: 1.7rem;
}

.qr-modal-card > img {
  width: min(460px, 86vw);
  height: min(460px, 86vw);
  object-fit: contain;
  image-rendering: pixelated;
}

.qr-modal-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1.15rem;
  letter-spacing: 0.12em;
}

.plan-start-date {
  margin: 14px 0 5px;
}

.plan-start-date input {
  background: #fff;
}

.start-date-note {
  color: var(--muted);
  line-height: 1.4;
}

.status-upcoming {
  display: inline-flex;
  color: #8a4b12;
  background: #fff1d6;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: .76rem;
  font-weight: 800;
}

.upcoming-pass {
  cursor: default;
}

.upcoming-date {
  width: 128px;
  height: 128px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #fff1d6;
  color: #8a4b12;
  text-align: center;
}

.upcoming-date strong {
  padding: 10px;
  font-size: 1.05rem;
}

.qr-modal-card p {
  margin: 0;
  color: var(--muted);
}

.qr-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--soft);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 640px) {
  .pass-card {
    grid-template-columns: 150px 1fr;
  }

  .pass-card img {
    width: 150px;
    height: 150px;
  }

  .upcoming-date {
    width: 150px;
    height: 150px;
  }

  .member-summary {
    grid-template-columns: 76px 1fr;
  }

  .member-selfie {
    width: 76px;
    height: 76px;
  }

  .selfie-action {
    grid-column: 1 / -1;
    width: 100%;
  }

  .qr-modal-card {
    padding: 28px 16px 22px;
  }

  .qr-modal-card > img {
    width: min(420px, 88vw);
    height: min(420px, 88vw);
  }
}

@media (min-width: 641px) {
  .pass-card {
    grid-template-columns: 180px 1fr;
  }

  .pass-card img {
    width: 180px;
    height: 180px;
  }
}
