:root {
  color-scheme: light;
  --bg: #f4f7fb;
  --panel: rgba(255, 255, 255, 0.88);
  --text: #102030;
  --muted: #5f6b7a;
  --accent: #145ac8;
  --border: rgba(16, 32, 48, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
}

body {
  display: grid;
  place-items: center;
  padding: 24px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top, rgba(20, 90, 200, 0.14), transparent 38%),
    linear-gradient(180deg, #eef3fb 0%, var(--bg) 100%);
  color: var(--text);
}

.card {
  width: min(560px, 100%);
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: 0 24px 80px rgba(16, 32, 48, 0.12);
  backdrop-filter: blur(14px);
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}

.lead {
  margin: 14px 0 28px;
  font-size: 16px;
  color: var(--muted);
}

.form {
  display: grid;
}

.lookup-row {
  display: grid;
  gap: 12px;
}

input {
  width: 100%;
  height: 58px;
  padding: 0 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  font: inherit;
  font-size: 18px;
  background: white;
  color: var(--text);
  outline: none;
}

.download-button {
  height: 58px;
  padding: 0 22px;
  border: 0;
  border-radius: 16px;
  background: var(--accent);
  color: white;
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(20, 90, 200, 0.22);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.download-button:hover {
  filter: brightness(1.04);
}

.download-button:active {
  transform: translateY(1px);
}

.download-button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(20, 90, 200, 0.16), 0 14px 30px rgba(20, 90, 200, 0.22);
}

@media (min-width: 640px) {
  .lookup-row {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: stretch;
  }

  .download-button {
    min-width: 160px;
  }
}

input:focus {
  border-color: rgba(20, 90, 200, 0.55);
  box-shadow: 0 0 0 4px rgba(20, 90, 200, 0.12);
}

.status {
  min-height: 24px;
  margin: 16px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.status.error {
  color: #b42318;
}

.status.success {
  color: #0f7b3c;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}