:root {
  color-scheme: dark;
  --bg: #0f1117;
  --card: #171a21;
  --text: #e8eaed;
  --muted: #9aa0a6;
  --primary: #5865f2;
  --primary-hover: #4752c4;
  --success: #3ba55d;
  --error: #ed4245;
  --border: #2b2f3a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, sans-serif;
  background: radial-gradient(circle at top, #1b2030, var(--bg));
  color: var(--text);
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.card {
  width: min(560px, 100%);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

header h1 {
  margin: 0 0 0.25rem;
  font-size: 1.6rem;
}

.subtitle {
  margin: 0 0 1.25rem;
  color: var(--muted);
}

.alert {
  padding: 0.75rem 1rem;
  border-radius: 10px;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.alert-error {
  background: rgba(237, 66, 69, 0.15);
  border: 1px solid rgba(237, 66, 69, 0.4);
}

.setup-list {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
}

.alert-success {
  background: rgba(59, 165, 93, 0.15);
  border: 1px solid rgba(59, 165, 93, 0.4);
}

.alert-warning {
  background: rgba(250, 166, 26, 0.15);
  border: 1px solid rgba(250, 166, 26, 0.4);
}

.user-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.dropzone {
  border: 2px dashed var(--border);
  border-radius: 14px;
  padding: 2rem 1rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.dropzone.dragover {
  border-color: var(--primary);
  background: rgba(88, 101, 242, 0.08);
}

.dropzone.uploading {
  opacity: 0.6;
  pointer-events: none;
  cursor: wait;
}

.filename.file-error {
  color: var(--error);
}

.dropzone-content {
  cursor: pointer;
}

.dropzone-title {
  margin: 0;
  font-size: 1.1rem;
}

.dropzone-hint {
  margin: 0.35rem 0 1.25rem;
  color: var(--muted);
}

.filename {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  min-height: 1.2rem;
}

.login p {
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.oauth-debug {
  margin-top: 1.25rem;
  font-size: 0.8rem;
  color: var(--muted);
  word-break: break-all;
}

.oauth-debug summary {
  cursor: pointer;
  margin-bottom: 0.5rem;
}

.error-hint {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.btn {
  border: none;
  border-radius: 10px;
  padding: 0.7rem 1.1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

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

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary:not(:disabled):hover {
  background: var(--primary-hover);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-discord {
  background: var(--primary);
  color: white;
}

.btn-discord:hover {
  background: var(--primary-hover);
}
