:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #edf2f9;
  color: #172543;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, p, dl, dd { margin: 0; }
button, input { font: inherit; }
img { display: block; height: auto; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid #3880f7; outline-offset: 4px; }

.verification {
  max-width: 30rem;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  padding: env(safe-area-inset-top) max(1.125rem, env(safe-area-inset-right)) max(1.5rem, env(safe-area-inset-bottom)) max(1.125rem, env(safe-area-inset-left));
  background: #fff;
}

.navigation {
  display: flex;
  align-items: center;
  gap: .25rem;
  min-height: 4.25rem;
}

.navigation h1 { font-size: 1.125rem; font-weight: 650; }
.back {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-left: -.625rem;
  border-radius: .625rem;
  color: #244774;
}

.back::before {
  width: .625rem;
  height: .625rem;
  border: solid currentColor;
  border-width: 0 0 2px 2px;
  transform: rotate(45deg);
  content: '';
}

.query-banner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(.75rem, 4vw, 1.125rem);
  padding: .75rem;
  border-radius: 1rem;
  background: #eaf2ff;
}

.query-illustration { width: 100%; border-radius: .625rem; }
.query-banner p {
  font-size: clamp(1.25rem, 6.5vw, 1.75rem);
  font-weight: 700;
  color: #133f8e;
}

.result { margin-top: 1.625rem; }
.result-summary {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1fr);
  align-items: center;
  gap: .625rem;
  min-height: 7.25rem;
  margin-bottom: 1.375rem;
}

.shield { width: 100%; }
.result-summary h2 { margin-bottom: .5rem; font-size: 1.25rem; }
.result-summary p { color: #455570; line-height: 1.6; overflow-wrap: anywhere; }
.result-summary strong { color: #184eab; white-space: nowrap; }

.details {
  padding-inline: 1rem;
  background: #f5f8fd;
  border: 1px solid #e5edf8;
  border-radius: .875rem;
}

.details div {
  display: grid;
  grid-template-columns: 4.25rem minmax(0, 1fr);
  align-items: baseline;
  gap: .75rem;
  padding-block: .875rem;
  line-height: 1.5;
}

.details div + div { border-top: 1px solid #e1e9f5; }
.details dt { color: #53637e; font-size: .875rem; }
.details dd { overflow-wrap: anywhere; }
.details time { font-variant-numeric: tabular-nums; }

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: .625rem;
  min-height: 3rem;
  padding: .625rem 1.125rem;
  border: 0;
  border-radius: .625rem;
  background: #174fae;
  color: #fff;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
}

.button:hover { background: #123e8b; }
.continue { width: 100%; min-height: 3.375rem; margin-top: 1.5rem; }
.scan-icon { display: grid; grid-template-columns: repeat(2, .4375rem); gap: .25rem; }
.scan-icon i { width: .4375rem; height: .4375rem; border: 2px solid currentColor; }
.scan-icon i:nth-child(1) { border-right: 0; border-bottom: 0; }
.scan-icon i:nth-child(2) { border-left: 0; border-bottom: 0; }
.scan-icon i:nth-child(3) { border-top: 0; border-right: 0; }
.scan-icon i:nth-child(4) { border-top: 0; border-left: 0; }

.admin { width: min(100% - 2rem, 34rem); margin: clamp(1.5rem, 8vh, 5rem) auto; }
.admin-heading { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.admin-heading h1 { font-size: 1.5rem; }
.admin-heading a { color: #174fae; font-size: .875rem; }
.settings {
  display: flex;
  flex-direction: column;
  gap: .625rem;
  padding: clamp(1.125rem, 5vw, 1.75rem);
  border: 1px solid #dde6f2;
  border-radius: .875rem;
  background: #fff;
}

.settings label { font-weight: 600; }
.settings input {
  min-width: 0;
  min-height: 3rem;
  margin-bottom: .625rem;
  padding: .625rem .75rem;
  border: 1px solid #aebed6;
  border-radius: .5rem;
  background: #fff;
  color: #172543;
}

.settings button { align-self: start; }
.form-status { margin-top: .375rem; color: #176744; }
.form-status.error { color: #a32035; }
