/* Agent Smith — simple dark theme, no build step */

:root {
  --bg: #0b0f14;
  --surface: #121820;
  --card: #161b22;
  --border: #2d333b;
  --text: #e6edf3;
  --muted: #8b949e;
  --accent: #58a6ff;
  --accent-dim: #388bfd66;
  --danger: #f85149;
  --ok: #3fb950;
  --radius: 10px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.25rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
  text-decoration: none;
}
.brand:hover {
  text-decoration: none;
  color: var(--accent);
}

.topbar nav a {
  margin-left: 1rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.topbar nav a:hover {
  color: var(--text);
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem;
}

.page-title {
  margin: 0 0 0.25rem 0;
  font-size: 1.5rem;
}
.sub {
  margin: 0 0 1.25rem 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.jobs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.75rem;
}

.job-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.job-card:hover {
  border-color: var(--accent-dim);
  background: #1a222c;
  text-decoration: none;
}

.job-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.job-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.payout {
  flex-shrink: 0;
  font-weight: 700;
  color: var(--ok);
  font-size: 0.95rem;
  white-space: nowrap;
}

.job-instructions {
  margin: 0 0 0.6rem 0;
  color: var(--muted);
  font-size: 0.85rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.badge {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  background: #21262d;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.75rem;
}

.empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--muted);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

.detail-back {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.detail-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.detail-panel h1 {
  margin: 0 0 0.5rem 0;
  font-size: 1.35rem;
}

.detail-payout {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ok);
  margin-bottom: 1rem;
}

.detail-section {
  margin-bottom: 1rem;
}
.detail-section h2 {
  margin: 0 0 0.35rem 0;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.detail-section p,
.detail-section pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}

.flash {
  padding: 0.6rem 0.9rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  border: 1px solid var(--border);
  background: #21262d;
  color: var(--text);
}
