:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #18202f;
  background: #eef3fb;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

.page {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0 60px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: stretch;
}

.hero > div,
.search-panel,
.results-section {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(116, 139, 174, 0.22);
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(31, 54, 94, 0.1);
}

.hero > div:first-child {
  padding: 42px;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #3567c9;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 680px;
  margin-bottom: 16px;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.subtitle {
  max-width: 660px;
  margin-bottom: 0;
  color: #5a6880;
  font-size: 18px;
  line-height: 1.6;
}

.status-card {
  padding: 28px;
}

.status-card h2,
.results-header h2 {
  margin-bottom: 10px;
}

#statusText,
.hint,
.meta,
#resultCount {
  color: #647187;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  background: #2f6bff;
  color: white;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.button:disabled,
.button.disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.button.secondary {
  background: #18202f;
}

.button.ghost {
  background: #eff3fa;
  color: #18202f;
}

.hidden {
  display: none !important;
}

.search-panel,
.results-section {
  margin-top: 22px;
  padding: 28px;
}

.search-panel label {
  display: block;
  margin-bottom: 10px;
  font-weight: 800;
}

.search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px auto;
  gap: 10px;
}

input,
select {
  width: 100%;
  border: 1px solid #cfdaec;
  border-radius: 999px;
  padding: 12px 16px;
  font: inherit;
  background: white;
  color: #18202f;
}

.hint {
  margin: 12px 0 0;
  font-size: 14px;
}

.results-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.results {
  display: grid;
  gap: 14px;
}

.results.empty {
  display: block;
  padding: 28px;
  border: 1px dashed #c0cce0;
  border-radius: 18px;
  color: #69768b;
  text-align: center;
}

.result-card {
  padding: 20px;
  border: 1px solid #dce5f4;
  border-radius: 18px;
  background: #ffffff;
}

.result-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.result-card h3 {
  margin-bottom: 6px;
  font-size: 18px;
}

.result-card a {
  flex: 0 0 auto;
  color: #2f6bff;
  font-weight: 800;
  text-decoration: none;
}

.meta {
  margin-bottom: 0;
  font-size: 14px;
}

.snippet {
  margin: 14px 0 0;
  color: #344056;
  line-height: 1.55;
}

@media (max-width: 860px) {
  .hero,
  .search-row {
    grid-template-columns: 1fr;
  }

  .hero > div:first-child,
  .status-card,
  .search-panel,
  .results-section {
    padding: 22px;
  }

  .result-top {
    flex-direction: column;
  }
}
