:root {
  --bg: #121212;
  --bg-soft: #181818;
  --bg-sidebar: #0b0b0b;
  --line: #2a2a2a;
  --text: #f5f5f5;
  --muted: #b3b3b3;
  --accent: #1db954;
  --accent-dark: #169c46;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  background: linear-gradient(180deg, #111 0%, #191414 100%);
  color: var(--text);
}

.shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}

.sidebar {
  background: var(--bg-sidebar);
  border-right: 1px solid var(--line);
  padding: 24px 16px;
}

.brand {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 28px;
}

.nav-item {
  padding: 12px 14px;
  border-radius: 10px;
  color: var(--muted);
  margin-bottom: 8px;
  background: transparent;
}

.nav-item.active,
.nav-item:hover {
  background: var(--bg-soft);
  color: var(--text);
}

.content {
  padding: 24px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.card {
  background: rgba(24, 24, 24, 0.96);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 16px 32px rgba(0,0,0,0.25);
}

.login-card {
  max-width: 420px;
  margin: 80px auto;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.library-card {
  min-height: 320px;
}

.library-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

input {
  width: 100%;
  margin-top: 10px;
  margin-bottom: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #101010;
  color: var(--text);
  outline: none;
}

input:focus {
  border-color: var(--accent);
}

button {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 700;
  cursor: pointer;
  background: var(--accent);
  color: #04110a;
}

button:hover {
  background: var(--accent-dark);
}

button.secondary {
  background: #2b2b2b;
  color: var(--text);
}

button.secondary:hover {
  background: #3b3b3b;
}

.hidden {
  display: none;
}

.muted {
  color: var(--muted);
}

.status {
  color: var(--muted);
  margin-top: 10px;
}

.list {
  list-style: none;
  padding: 0;
  margin: 14px 0 0 0;
}

.list li {
  padding: 10px 12px;
  margin-bottom: 8px;
  background: #101010;
  border: 1px solid var(--line);
  border-radius: 10px;
  word-break: break-word;
}

.library-list {
  max-height: 480px;
  overflow: auto;
}
.job-result {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.job-result h3 {
  margin: 0 0 10px 0;
  font-size: 16px;
}
