.pdf-lookup-card {
  display: grid;
  gap: 1rem;
}

.pdf-lookup-card input {
  width: 100%;
  border: 1px solid rgba(124, 58, 237, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--mn-text);
  font: inherit;
  padding: 0.85rem 0.95rem;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.pdf-lookup-card input:focus {
  border-color: var(--mn-border-strong);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.12);
}

.pdf-loader {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 38px;
}

.pdf-loader span {
  width: 0.62rem;
  height: 0.62rem;
  display: inline-block;
  border-radius: 999px;
  background: var(--mn-accent);
  animation: pdfPulse 0.9s infinite ease-in-out;
}

.pdf-loader span:nth-child(2) {
  animation-delay: 0.12s;
}

.pdf-loader span:nth-child(3) {
  animation-delay: 0.24s;
}

@keyframes pdfPulse {
  0%,
  80%,
  100% {
    transform: scale(0.72);
    opacity: 0.45;
  }

  40% {
    transform: scale(1);
    opacity: 1;
  }
}

.pdf-results-card[hidden] {
  display: none !important;
}

.pdf-results {
  display: grid;
  gap: 0.85rem;
}

.pdf-result-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: start;
  padding: 1rem;
  border-radius: 20px;
  border: 1px solid rgba(124, 58, 237, 0.12);
  background: rgba(255, 255, 255, 0.64);
  box-shadow: 0 10px 22px rgba(76, 29, 149, 0.06);
}

.pdf-result-content {
  display: grid;
  gap: 0.55rem;
}

.pdf-result-content h3 {
  margin: 0;
  color: #281f37;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.pdf-result-content p {
  margin: 0;
  color: var(--mn-muted);
  font-size: 0.93rem;
  line-height: 1.5;
}

.pdf-mnid {
  overflow-wrap: anywhere;
}

.pdf-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: flex-end;
}

.pdf-result-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0.58rem 0.8rem;
  border-radius: 999px;
  color: var(--mn-accent-dark);
  background: rgba(139, 92, 246, 0.10);
  border: 1px solid rgba(124, 58, 237, 0.12);
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
}

.pdf-result-actions a:hover,
.pdf-result-actions a:focus-visible {
  background: rgba(139, 92, 246, 0.16);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  outline: none;
}

.pdf-empty-state {
  margin: 0;
  padding: 1rem;
  border-radius: 18px;
  color: var(--mn-muted);
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(124, 58, 237, 0.12);
}

@media (max-width: 760px) {
  .pdf-result-item {
    grid-template-columns: 1fr;
  }

  .pdf-result-actions {
    justify-content: flex-start;
  }

  .pdf-result-actions a {
    width: 100%;
  }
}