* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  display: grid;
  place-items: center;
  min-height: 100vh;
  margin: 0;
  padding: 22px 12px;
  background: #f4f4f4;
  color: #151515;
  font: 18px/1.35 Arial, sans-serif;
}
main {
  width: min(100%, 660px);
  padding: clamp(24px, 6vw, 52px);
  border: 2px solid transparent;
  background: linear-gradient(white, white) padding-box,
              linear-gradient(90deg, blue, orange) border-box;
  box-shadow: 0 4px 8px #00000014;
}
header {
  display: grid;
  justify-items: center;
  gap: 20px;
  margin-bottom: 26px;
  text-align: center;
}
.brand-logo { display: block; width: min(100%, 230px); height: auto; }
h1 { margin: 0; color: #004ae9; font-size: 24px; line-height: 1.2; }
#status { margin: 9px 0 0; color: #434a53; font-size: 15px; }
.lookup-check { display: none; }
main[data-state="found"] .lookup-check {
  display: grid;
  place-items: center;
  width: 80px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #008000;
  color: #fff;
  font: 700 40px/1 Arial, sans-serif;
  box-shadow: 0 2px 9px #0000001a;
}
main[data-state="found"] #status {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
main[data-state="missing"] {
  position: absolute;
  top: 12px;
  left: 16px;
  width: auto;
  max-width: calc(100% - 32px);
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
main[data-state="missing"] header {
  display: block;
  margin: 0;
  text-align: left;
}
main[data-state="missing"] .brand-logo,
main[data-state="missing"] h1 { display: none; }
main[data-state="missing"] #status {
  margin: 0;
  color: #151515;
  font: 12px/1.4 monospace;
  overflow-wrap: anywhere;
}
dl {
  width: min(100%, 470px);
  margin: 0 auto;
  text-align: left;
}
dl div {
  display: grid;
  grid-template-columns: minmax(0, 34%) minmax(0, 1fr);
  align-items: center;
  column-gap: clamp(12px, 3vw, 22px);
  padding: 14px 0;
}
dt { color: #333; font-weight: 700; }
dd { margin: 0; overflow-wrap: anywhere; }
#retry {
  padding: 8px 14px;
  border: 1px solid #004ae9;
  border-radius: 5px;
  background: white;
  color: #004ae9;
  font: inherit;
  cursor: pointer;
}
main[data-state="loading"] dd {
  width: min(100%, 150px);
  color: transparent;
  background: #e7eefc;
  border-radius: 4px;
  animation: pulse 950ms ease-in-out infinite alternate;
}
@keyframes pulse { to { opacity: .45; } }
@media (prefers-reduced-motion: reduce) {
  main[data-state="loading"] dd { animation: none; }
}

#nl-badge-frame { display: none !important; }
