/**
 * Pre check-in (lab.html) and post check-in (track pages).
 * Same glass as the Lab cards, same ink and pill treatment as the airlock.
 */
.checkin-card,
#lab-post-checkin {
  text-align: left;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  color: #f7f2f4;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.38) 0%, rgba(255, 255, 255, 0.08) 16%, rgba(34, 38, 44, 0.36) 48%, rgba(16, 18, 22, 0.5) 100%) !important;
  border: 3px solid rgba(232, 236, 242, 0.46) !important;
  border-radius: 16px !important;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.5),
    inset 0 -2px 0 rgba(255, 255, 255, 0.06),
    inset 2px 0 0 rgba(255, 255, 255, 0.12),
    inset -2px 0 0 rgba(0, 0, 0, 0.2),
    0 28px 56px rgba(0, 0, 0, 0.55) !important;
}

#lab-post-checkin {
  position: relative;
  z-index: 2;
  margin: 0 auto 2rem;
  padding: 1.55rem 1.8rem 1.45rem;
}

.checkin-intro,
#lab-post-checkin .checkin-intro {
  font-family: var(--fm, "Geist Mono", ui-monospace, monospace);
  font-size: var(--t-label, 0.8125rem);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.4;
  color: #f6d6e2;
  margin: 0 0 0.5rem;
}

.checkin-card h2,
#lab-post-checkin h2 {
  font-family: var(--fd, "Geist", "Helvetica Neue", Helvetica, Arial, sans-serif) !important;
  font-weight: 500 !important;
  font-size: var(--t-heading, clamp(1.25rem, 1.05rem + 0.8vw, 1.5rem)) !important;
  letter-spacing: -0.03em !important;
  line-height: 1.15 !important;
  color: #fff !important;
  text-transform: none !important;
  margin: 0 0 0.45rem !important;
}

#screen-checkin .greet,
#lab-post-checkin .checkin-lead {
  font-family: var(--fe, "Geist", "Helvetica Neue", Helvetica, Arial, sans-serif);
  font-size: var(--t-body, 1rem);
  font-weight: 400;
  line-height: 1.45;
  color: #f7f2f4;
  text-align: left;
  max-width: none;
  margin: 0 0 1.2rem;
}

#screen-checkin .lab-q,
#lab-post-checkin .lab-q {
  border: 0;
  margin: 0 0 1.2rem;
  padding: 0;
  min-inline-size: 0;
}

#screen-checkin .lab-q legend,
#lab-post-checkin .lab-q legend {
  font-family: var(--fe, "Geist", "Helvetica Neue", Helvetica, Arial, sans-serif);
  font-size: var(--t-body, 1rem);
  font-weight: 500;
  color: #fff;
  line-height: 1.4;
  margin: 0 0 0.6rem;
  padding: 0;
}

#screen-checkin .lab-q-scale,
#lab-post-checkin .lab-q-scale {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.5rem;
  max-width: 32rem;
  margin: 0;
}

#screen-checkin .lab-q-yesno,
#lab-post-checkin .lab-q-yesno {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  max-width: 18rem;
  margin: 0;
}

#screen-checkin .lab-q-choice,
#lab-post-checkin .lab-q-choice {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.55rem 0.7rem;
  border: 2px solid rgba(197, 205, 214, 0.72);
  border-radius: 999px;
  background: #2a2226;
  color: #fff;
  font-family: var(--fe, "Geist", "Helvetica Neue", Helvetica, Arial, sans-serif);
  font-size: var(--t-ui, 0.9375rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  cursor: pointer;
}

#screen-checkin .lab-q-choice input,
#lab-post-checkin .lab-q-choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  border: 0;
  white-space: nowrap;
  appearance: none;
  outline: none;
}

#screen-checkin .lab-q-choice:hover,
#lab-post-checkin .lab-q-choice:hover {
  border-color: #fff;
}

#screen-checkin .lab-q-choice:has(input:checked),
#lab-post-checkin .lab-q-choice:has(input:checked) {
  background: #faf7f5;
  color: #3A0A14;
  border-color: #faf7f5;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

#screen-checkin .lab-q-choice:has(input:focus-visible),
#lab-post-checkin .lab-q-choice:has(input:focus-visible) {
  outline: 2px solid #c5cdd6;
  outline-offset: 3px;
}

#screen-checkin .lab-q-ends,
#lab-post-checkin .lab-q-ends {
  display: block;
  font-family: var(--fe, "Geist", "Helvetica Neue", Helvetica, Arial, sans-serif);
  font-size: var(--t-ui, 0.9375rem);
  font-weight: 400;
  color: #f7f2f4;
  line-height: 1.4;
  margin: 0.55rem 0 0;
  opacity: 1;
}

#screen-checkin .lab-q-text,
#lab-post-checkin .lab-q-text {
  display: block;
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 2px solid rgba(197, 205, 214, 0.72);
  border-radius: 0;
  color: #fff;
  font-family: var(--fe, "Geist", "Helvetica Neue", Helvetica, Arial, sans-serif);
  font-size: var(--t-body, 1rem);
  font-weight: 500;
  line-height: 1.45;
  padding: 0.65rem 0.1rem;
  outline: none;
  box-shadow: none;
}

#screen-checkin .lab-q-text::placeholder,
#lab-post-checkin .lab-q-text::placeholder {
  color: #e7dfe2;
  opacity: 1;
  font-weight: 400;
}

/* Trail room stays behind the page. The survey panel itself is solid so the light floor cannot show through the type. */
#screen-checkin .checkin-card,
#lab-post-checkin {
  background: #161014 !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

#screen-checkin .lab-q-text:focus,
#lab-post-checkin .lab-q-text:focus {
  border-bottom-color: #c5cdd6;
  box-shadow: 0 1px 0 0 rgba(197, 205, 214, 0.45);
}

#screen-checkin .checkin-error,
#lab-post-checkin .lab-q-error {
  min-height: 1.35rem;
  margin: 0.35rem 0 0.15rem;
  color: #f3d0d0;
  font-family: var(--fe, "Geist", "Helvetica Neue", Helvetica, Arial, sans-serif);
  font-size: var(--t-ui, 0.9375rem);
  font-weight: 500;
  line-height: 1.4;
}

#screen-checkin .lab-checkin-submit,
#lab-post-checkin .lab-checkin-submit {
  display: block;
  width: 100%;
  max-width: 22rem;
  margin: 0.85rem 0 0;
  background: #faf7f5;
  color: #3A0A14;
  border: 0;
  border-radius: 999px;
  font-family: var(--fe, "Geist", "Helvetica Neue", Helvetica, Arial, sans-serif);
  font-size: var(--t-body, 1rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  padding: 0.8rem 1.1rem;
  cursor: pointer;
}

#screen-checkin .lab-checkin-submit:disabled,
#lab-post-checkin .lab-checkin-submit:disabled {
  opacity: 0.6;
  cursor: default;
}

#lab-post-checkin a.lab-checkin-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.35rem;
  padding: 0.75rem 1.15rem;
  border-radius: 999px;
  background: #faf7f5;
  color: #3A0A14 !important;
  border: 0;
  font-family: var(--fe, "Geist", "Helvetica Neue", Helvetica, Arial, sans-serif);
  font-size: var(--t-body, 1rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  text-decoration: none !important;
  text-transform: none !important;
  text-shadow: none;
}

@media (max-width: 700px) {
  .checkin-card,
  #lab-post-checkin {
    padding: 1.15rem 1.05rem 1.1rem;
  }
  #screen-checkin .lab-q-scale,
  #lab-post-checkin .lab-q-scale,
  #screen-checkin .lab-q-yesno,
  #lab-post-checkin .lab-q-yesno {
    max-width: none;
  }
}

@media (max-height: 820px) {
  .checkin-card,
  #lab-post-checkin {
    padding: 1.05rem 1rem 0.95rem;
  }
  #screen-checkin .lab-q,
  #lab-post-checkin .lab-q {
    margin-bottom: 0.9rem;
  }
  #screen-checkin .greet,
  #lab-post-checkin .checkin-lead {
    margin-bottom: 0.85rem;
  }
}
