:root {
  --bg-a: #0f172a;
  --bg-b: #1e293b;
  --bg-c: #0b1022;
  --card: rgba(255, 255, 255, 0.92);
  --text: #0f172a;
  --muted: #475569;
  --line: #cbd5e1;
  --brand: #1d4ed8;
  --brand-2: #0ea5e9;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--text);
  font-family: "Inter", "Segoe UI", sans-serif;
  background: radial-gradient(circle at 20% 20%, #1e3a8a 0%, transparent 40%),
              radial-gradient(circle at 80% 0%, #0f766e 0%, transparent 35%),
              linear-gradient(160deg, var(--bg-a), var(--bg-b) 45%, var(--bg-c));
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px;
}

.card {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 16px;
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.25);
}

.hero h1 { margin: 0 0 8px; }
.subtitle { margin: 0 0 12px; color: var(--muted); }

.docs-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.docs-links a {
  text-decoration: none;
  color: #0b3e8a;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 13px;
}

.grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 16px;
}

.panel h2 { margin-top: 0; }
label { display: block; font-weight: 600; margin: 10px 0 6px; }
.inline { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
input, button {
  width: 100%;
  padding: 11px;
  border-radius: 9px;
  border: 1px solid var(--line);
}

.input-wrapper {
  position: relative;
}

.field-help {
  margin: 6px 0 2px;
  color: var(--muted);
  font-size: 13px;
}

.suggestions-list {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 20;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 9px;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.18);
  overflow: hidden;
}

.suggestion-item {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
  text-align: left;
  padding: 9px 10px;
  cursor: pointer;
}

.suggestion-item:last-child {
  border-bottom: 0;
}

.suggestion-item:hover,
.suggestion-item.active {
  background: #f1f5f9;
}

.suggestion-main {
  display: flex;
  gap: 8px;
}

.suggestion-id {
  color: #1d4ed8;
  font-weight: 700;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.suggestion-label {
  font-weight: 600;
}

.suggestion-description {
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
}

button {
  margin-top: 12px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  border: none;
  cursor: pointer;
}
button:disabled { opacity: 0.65; cursor: not-allowed; }

.help ol { margin: 0 0 8px; padding-left: 18px; }
.note { color: var(--muted); margin: 0; font-size: 14px; }

.hidden { display: none; }

.results-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
  background: #fff;
}
.results-table th, .results-table td {
  border: 1px solid var(--line);
  padding: 8px;
  text-align: left;
}

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