html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

body {
  -webkit-user-select: none;
  user-select: none;
}

.app-shell {
  height: 100%;
  height: 100dvh;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
}

input,
textarea {
  -webkit-user-select: text;
  user-select: text;
}

.card > button {
  position: relative;
  z-index: 1;
  width: 100%;
}

.camera-button {
  min-height: 58px;
  font-size: 16px;
}

.camera-button span {
  font-size: 25px;
}

.scan-box .camera-button + small {
  margin-top: 12px;
  text-align: center;
}

.scanner {
  position: fixed;
  z-index: 100;
  inset: 0;
  overflow: hidden;
  color: #fff;
  background: #07131d;
}

.scanner[hidden] {
  display: none;
}

.scanner video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scanner-shade {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 22px;
  padding: 24px;
  background: #07131d66;
  pointer-events: none;
}

.scanner-frame {
  width: min(72vw, 330px);
  aspect-ratio: 1;
  border: 3px solid #5eead4;
  border-radius: 28px;
  box-shadow: 0 0 0 999px #07131d66;
}

.scanner-shade p {
  margin: 0;
  font-weight: 800;
  text-align: center;
  text-shadow: 0 2px 10px #000;
}

#scanner-close {
  position: absolute;
  left: 50%;
  bottom: calc(28px + env(safe-area-inset-bottom));
  min-width: 150px;
  min-height: 48px;
  transform: translateX(-50%);
  border: 0;
  border-radius: 16px;
  color: #102a43;
  background: #fff;
  font-weight: 800;
}
