:root {
  --bg: #0f1317;
  --panel: #171e24;
  --line: #2b3640;
  --text: #eef2f5;
  --muted: #9aa7b3;
  --accent: #86d66f;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  line-height: 1.55;
}

.container {
  width: min(900px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 3rem;
}

.hero h1 {
  margin: 0.2rem 0 0.7rem;
  font-size: clamp(1.8rem, 4.2vw, 2.7rem);
}

.hero p {
  margin: 0;
  color: var(--muted);
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}

.panel {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

h2 {
  margin-top: 0;
  margin-bottom: 0.9rem;
  font-size: 1.2rem;
}

label {
  display: block;
  margin-top: 0.85rem;
  margin-bottom: 0.3rem;
  font-size: 0.95rem;
  color: var(--muted);
}

input,
textarea,
button {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #10161c;
  color: var(--text);
  font: inherit;
}

input,
textarea {
  padding: 0.7rem 0.8rem;
}

textarea {
  resize: vertical;
}

.actions {
  margin-top: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

button {
  padding: 0.7rem 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

button:hover,
button:focus-visible {
  border-color: var(--accent);
}

button.secondary {
  background: #151d24;
  color: var(--muted);
}

ul,
.recommendation-list {
  margin: 0;
  padding-left: 1.1rem;
}

.recommendation-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.85rem;
  margin-bottom: 0.7rem;
  background: #121920;
}

.recommendation-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}

.score {
  display: inline-block;
  margin-left: 0.35rem;
  color: var(--accent);
  font-weight: 700;
}

.ddl {
  margin-top: 0.55rem;
  padding: 0.55rem;
  border-radius: 6px;
  background: #0c1116;
  border: 1px solid var(--line);
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.9rem;
  overflow-x: auto;
}

#empty-state {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 700px) {
  .actions button {
    flex: 1 1 100%;
  }
}
