:root{
  --bg: #0f1115;
  --panel: #151924;
  --text: #e6e8ee;
  --muted: #9aa3b2;
  --accent: #4f8cff;
  --error: #ff6b6b;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background: var(--bg);
  color: var(--text);
}
header { padding: 24px; }
header h1 { margin: 0 0 4px 0; font-size: 22px; }
header p { margin: 0; color: var(--muted); }

.controls {
  background: var(--panel);
  border-radius: 8px;
  padding: 16px 20px;
  margin: 0 20px 16px 20px;
}

.controls form { display: grid; grid-template-columns: repeat(12, 1fr); grid-gap: 12px; align-items: end; }
.controls .row { grid-column: span 3; display: flex; flex-direction: column; gap: 6px; }
.controls .row.actions { grid-column: span 12; display: flex; align-items: center; gap: 12px; }

label { font-size: 12px; color: var(--muted); }
input[type="text"], input[type="number"] {
  background: #0f1320;
  border: 1px solid #23283a;
  padding: 8px 10px;
  color: var(--text);
  border-radius: 6px;
}

fieldset.row {
  grid-column: span 6; 
  border: 1px solid #23283a; 
  border-radius: 6px; 
  padding: 8px 10px;
}
fieldset.row legend { color: var(--muted); padding: 0 6px; }
fieldset.row label { margin-right: 12px; }

button {
  background: var(--accent);
  color: white;
  border: none;
  padding: 10px 14px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
}

.status { color: var(--muted); font-size: 12px; }

.results {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 0 20px 20px 20px;
}

.col {
  background: var(--panel);
  border-radius: 8px;
  padding: 12px 12px 4px 12px;
  min-height: 300px;
}
.col h2 { margin: 0 0 8px 0; font-size: 16px; display: flex; align-items: center; gap: 8px; }
.col .metric { color: var(--muted); font-weight: normal; }

.list { list-style: none; margin: 0; padding: 0; }
.list li { padding: 10px; border-top: 1px solid #23283a; }
.item-title { font-weight: 600; }
.item-sub { color: var(--muted); font-size: 12px; }
.score { color: #97ffb6; font-size: 12px; margin-left: 6px; }

.error { color: var(--error); font-size: 12px; padding: 8px 10px; }

@media (max-width: 960px) {
  .controls form { grid-template-columns: repeat(6, 1fr); }
  .controls .row { grid-column: span 6; }
  fieldset.row { grid-column: span 6; }
  .results { grid-template-columns: 1fr; }
}

