:root {
  --bg: #0f1115;
  --card: #191c23;
  --border: #2a2e37;
  --text: #e6e8ec;
  --muted: #8b909a;
  --accent: #ff6b35;
  --accent-h: #ff8054;
  --ok: #4ade80;
  --err: #f87171;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

.center { display: flex; min-height: 100vh; align-items: center; justify-content: center; padding: 20px; }

.container { max-width: 720px; margin: 0 auto; padding: 24px 20px 60px; }

.topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 24px; border-bottom: 1px solid var(--border);
}

.logo { font-size: 20px; font-weight: 700; }
.subtitle { color: var(--muted); font-size: 14px; }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 20px;
}
.login-card { width: 100%; max-width: 360px; text-align: center; }

h2 { margin: 0 0 4px; font-size: 18px; }

label { display: block; text-align: left; margin: 14px 0 0; font-size: 14px; color: var(--muted); }
input[type=text], input[type=password] {
  width: 100%; margin-top: 6px; padding: 10px 12px;
  background: var(--bg); border: 1px solid var(--border); border-radius: 8px;
  color: var(--text); font-size: 15px;
}
input:focus { outline: none; border-color: var(--accent); }

.btn {
  display: inline-block; cursor: pointer; border: none; border-radius: 8px;
  padding: 10px 18px; font-size: 15px; font-weight: 600; text-decoration: none;
  transition: background .15s;
}
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:hover:not(:disabled) { background: var(--accent-h); }
.btn.primary:disabled { opacity: .5; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--muted); border: 1px solid var(--border); }
.btn.full { width: 100%; margin-top: 16px; }

form .btn.primary { width: 100%; margin-top: 20px; }

.alert { background: #3a1d1d; color: var(--err); padding: 10px; border-radius: 8px; margin-top: 14px; font-size: 14px; }

.dropzone {
  border: 2px dashed var(--border); border-radius: 12px;
  padding: 40px 20px; text-align: center; margin-top: 16px;
  transition: border-color .15s, background .15s;
}
.dropzone.drag { border-color: var(--accent); background: rgba(255,107,53,.06); }
.dz-icon { font-size: 32px; }
.dz-inner p { margin: 6px 0; }

.queue { list-style: none; padding: 0; margin: 16px 0 0; }
.queue li {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 12px; background: var(--bg); border: 1px solid var(--border);
  border-radius: 8px; margin-bottom: 8px; font-size: 14px;
}
.queue li span:first-child { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rm { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 16px; }
.rm:hover { color: var(--err); }

.status { margin-top: 14px; font-size: 14px; }
.ok { color: var(--ok); }
.err { color: var(--err); }

.filelist { list-style: none; padding: 0; margin: 8px 0 0; }
.filelist li { padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.filelist a { color: var(--accent); text-decoration: none; word-break: break-all; }
.filelist a:hover { text-decoration: underline; }
