:root {
  --bg: #0f1216;
  --panel: #151a21;
  --border: #222833;
  --text: #e5e7eb;
  --muted: #94a3b8;
  --accent: #4f46e5;
  --accent-2: #22c55e;
  --warning: #d97706;
  --error: #ef4444;
}

.ai-mastering-container {
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  padding: 2rem;
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

h1 {
  font-size: 1.4rem;
  margin-bottom: .5rem;
}

.sub {
  color: var(--muted);
  margin-bottom: 1rem;
}

.controls {
  display: flex;
  gap: .5rem;
  margin-bottom: 1rem;
}

button {
  padding: .5rem 1rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-weight: 500;
}

button.primary {
  background: var(--accent);
  color: white;
}

button.success {
  background: var(--accent-2);
  color: white;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.hidden-input {
  display: none;
}

.dropzone {
  border: 2px dashed var(--border);
  border-radius: 10px;
  padding: 2rem;
  text-align: center;
  color: var(--muted);
  margin-bottom: 1rem;
  transition: border-color 0.2s;
}

.dropzone.dragover {
  border-color: var(--accent);
  color: var(--accent);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
  font-size: .9rem;
}

th, td {
  padding: .5rem;
  border-bottom: 1px solid var(--border);
}

.errors {
  color: var(--error);
  font-size: .85rem;
  margin-top: .5rem;
}

.footer {
  margin-top: 1rem;
  font-size: .85rem;
  color: var(--muted);
}
