* { box-sizing: border-box; }

body {
  margin: 0;
  background: #f3f6fa;
  color: #172b40;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

main {
  max-width: 600px;
  margin: auto;
  padding: 24px 16px calc(32px + env(safe-area-inset-bottom));
}

h1 { font-size: 25px; }
h2 { font-size: 19px; }

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

input,
button {
  width: 100%;
  padding: 13px;
  border-radius: 10px;
  font: inherit;
  font-size: 18px;
}

input {
  min-width: 0;
  border: 1px solid #aebccd;
  background: white;
}

button {
  margin-top: 12px;
  border: 0;
  background: #1769aa;
  color: white;
  cursor: pointer;
}

button:disabled {
  opacity: .5;
  cursor: wait;
}

.fields {
  display: grid;
  grid-template-columns: 155px 1fr;
  gap: 12px;
  margin-top: 20px;
}

.secondary {
  background: #e0e8f1;
  color: #172b40;
}

#reader {
  margin-top: 16px;
  overflow: hidden;
  border-radius: 12px;
}

#status {
  min-height: 48px;
  padding-top: 16px;
  white-space: pre-wrap;
}

#status.error { color: #b42318; }

ul {
  padding-left: 22px;
  overflow-wrap: anywhere;
}

.note {
  color: #526477;
  font-size: 14px;
}

@media (max-width: 380px) {
  .fields { grid-template-columns: 1fr; }
}
