* { box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: #f4f4f2;
  color: #222;
  margin: 0;
}
nav {
  display: flex;
  gap: 4px;
  background: #1f2937;
  padding: 0 16px;
}
nav a {
  color: #d1d5db;
  text-decoration: none;
  padding: 14px 12px;
  font-size: 14px;
}
nav a.active, nav a:hover { color: #fff; background: #111827; }
nav .spacer { flex: 1; }
nav button {
  background: none;
  border: none;
  color: #d1d5db;
  cursor: pointer;
  font-size: 14px;
}
main { max-width: 960px; margin: 0 auto; padding: 24px 16px; }
h1 { font-size: 20px; margin-bottom: 16px; }
.card {
  background: #fff;
  border: 1px solid #e5e5e0;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
}
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
input, select {
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
}
button.primary {
  background: #2563eb;
  color: #fff;
  border: none;
  padding: 9px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}
button.danger { background: #dc2626; color: #fff; border: none; padding: 6px 10px; border-radius: 6px; cursor: pointer; }
button.secondary { background: #e5e7eb; border: none; padding: 6px 10px; border-radius: 6px; cursor: pointer; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 8px; border-bottom: 1px solid #eee; font-size: 14px; }
.thumb { width: 60px; height: 40px; object-fit: cover; border-radius: 4px; background: #ddd; }
.muted { color: #888; font-size: 13px; }
#progressBar {
  width: 100%;
  height: 8px;
  background: #e5e7eb;
  border-radius: 4px;
  overflow: hidden;
}
#progressFill {
  height: 100%;
  width: 0%;
  background: #2563eb;
  transition: width 0.15s ease;
}
#progressLabel { font-size: 12px; }
.stat-value { font-size: 28px; font-weight: 700; color: #111827; }
.stat-label { font-size: 13px; color: #6b7280; margin-top: 4px; }
.login-box { max-width: 340px; margin: 80px auto; }
.error { color: #dc2626; font-size: 13px; margin-top: 6px; }
code.token { background: #f1f1ee; padding: 2px 6px; border-radius: 4px; font-size: 12px; }
