:root {
  color-scheme: light;
  font-family:
    Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  color: #162033;
  background: #f5f7fb;
  font-synthesis: none;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --muted: #667085;
  --line: #dce3ee;
  --card: #ffffff;
  --danger: #c93434;
  --success: #177245;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 8% 0%, rgba(37, 99, 235, 0.08), transparent 28rem),
    #f5f7fb;
}

button,
input {
  font: inherit;
}

.page-shell {
  width: min(100% - 32px, 640px);
  margin: 0 auto;
  padding: clamp(28px, 7vw, 64px) 0 32px;
}

.query-card,
.result-card {
  border: 1px solid rgba(216, 224, 236, 0.9);
  border-radius: 20px;
  background: var(--card);
  box-shadow: 0 18px 50px rgba(38, 51, 77, 0.08);
}

.query-card {
  padding: clamp(20px, 4vw, 30px);
}

.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;
}

.page-header {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 34px;
}

.brand-mark {
  display: grid;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(145deg, #3478f6, #1e53cb);
  box-shadow: 0 9px 22px rgba(37, 99, 235, 0.23);
}

.brand-mark svg {
  width: 27px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.eyebrow {
  margin: 1px 0 6px;
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
}

h1,
h2 {
  margin: 0;
  color: #101828;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(25px, 4vw, 32px);
}

h2 {
  font-size: 21px;
}

.intro {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

label,
.verification-title {
  display: block;
  margin: 0 0 9px;
  color: #344054;
  font-size: 14px;
  font-weight: 600;
}

.query-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 124px;
  gap: 12px;
}

input {
  width: 100%;
  height: 46px;
  padding: 0 15px;
  border: 1px solid #cfd8e6;
  border-radius: 10px;
  outline: none;
  color: #182230;
  background: #fff;
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease;
}

input::placeholder {
  color: #98a2b3;
}

input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

button {
  display: inline-flex;
  height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: var(--primary);
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.16s ease,
    transform 0.16s ease,
    opacity 0.16s ease;
}

button:not(:disabled):hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

button:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.24);
  outline-offset: 2px;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.46;
}

.button-loader {
  display: none;
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255, 255, 255, 0.42);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

button.is-loading .button-loader {
  display: block;
}

.verification {
  margin-top: 18px;
}

.turnstile-widget {
  min-height: 65px;
}

.form-status {
  min-height: 20px;
  margin: 11px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.form-status:empty {
  display: none;
}

.form-status.is-error {
  color: var(--danger);
}

.form-status.is-success {
  color: var(--success);
}

.result-card {
  margin-top: 20px;
  padding: clamp(22px, 4vw, 30px);
}

.result-card.is-hidden {
  display: none;
}

.result-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.result-count {
  flex: 0 0 auto;
  padding: 5px 10px;
  border-radius: 999px;
  color: #365277;
  background: #edf3fb;
  font-size: 12px;
  font-weight: 600;
}

.timeline {
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline-item {
  position: relative;
  padding: 0 0 27px 31px;
}

.timeline-item:last-child {
  padding-bottom: 2px;
}

.timeline-item::before {
  position: absolute;
  top: 6px;
  bottom: -6px;
  left: 7px;
  width: 1px;
  background: var(--line);
  content: "";
}

.timeline-item:last-child::before {
  display: none;
}

.timeline-dot {
  position: absolute;
  top: 5px;
  left: 2px;
  width: 11px;
  height: 11px;
  border: 2px solid #a6b4c7;
  border-radius: 50%;
  background: #fff;
}

.timeline-item:first-child .timeline-dot {
  border-color: var(--primary);
  background: var(--primary);
  box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.11);
}

.track-content {
  margin: 0;
  color: #344054;
  font-size: 15px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.timeline-item:first-child .track-content {
  color: #101828;
  font-weight: 600;
}

.track-time {
  display: block;
  margin-top: 5px;
  color: #8490a3;
  font-size: 12px;
}

.empty-result {
  padding: 19px 16px;
  border-radius: 12px;
  color: var(--muted);
  background: #f8fafc;
  text-align: center;
  line-height: 1.7;
}

footer {
  padding: 0 20px 28px;
  color: #98a2b3;
  font-size: 12px;
  text-align: center;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 560px) {
  .page-shell {
    width: min(100% - 24px, 760px);
    padding-top: 24px;
  }

  .query-card,
  .result-card {
    border-radius: 16px;
  }

  .page-header {
    gap: 13px;
    margin-bottom: 27px;
  }

  .brand-mark {
    flex-basis: 42px;
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }

  .query-row {
    grid-template-columns: 1fr;
  }

  button {
    width: 100%;
  }

  .turnstile-widget {
    max-width: 100%;
    overflow: hidden;
  }

  .result-heading {
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
