:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #111415;
  color: #f7faf8;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(95, 217, 178, 0.24), transparent 30rem),
    linear-gradient(145deg, #111415 0%, #18211d 54%, #111415 100%);
}

button,
textarea {
  font: inherit;
}

.shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.panel {
  width: min(100%, 460px);
}

.mark {
  display: block;
  margin-bottom: 28px;
}

h1 {
  margin: 0;
  font-size: 32px;
  font-weight: 720;
  letter-spacing: 0;
}

.status {
  min-height: 54px;
  margin: 14px 0 24px;
  color: #b9c8c0;
  font-size: 16px;
  line-height: 1.5;
}

.scanner {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  margin-bottom: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: #090c0b;
}

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

.frame {
  position: absolute;
  inset: 18%;
  border: 2px solid #5fd9b2;
  border-radius: 8px;
  box-shadow: 0 0 0 999px rgba(4, 8, 14, 0.34);
}

.actions {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

button {
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  background: #5fd9b2;
  color: #08120f;
  cursor: pointer;
  font-weight: 700;
}

button:hover {
  background: #89e6c8;
}

button.secondary {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #f7faf8;
}

button.secondary:hover {
  background: rgba(255, 255, 255, 0.14);
}

.manual {
  margin-top: 18px;
}

.manual summary {
  color: #d7e3dc;
  cursor: pointer;
  font-size: 14px;
  font-weight: 650;
}

.manual form {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.manual label {
  color: #d7e3dc;
  font-size: 14px;
  font-weight: 650;
}

textarea {
  width: 100%;
  resize: vertical;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #f7faf8;
  padding: 12px;
}

textarea:focus,
button:focus-visible {
  outline: 2px solid #9af0d2;
  outline-offset: 3px;
}

@media (max-width: 520px) {
  .shell {
    align-items: start;
    padding: 28px 18px;
  }

  h1 {
    font-size: 28px;
  }

  .actions {
    flex-direction: column;
  }
}
