:root {
  --bg: #0e1116;
  --card: #171c24;
  --line: #262d38;
  --txt: #e8ecf1;
  --muted: #9aa4b2;
  --accent: #4da3ff;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--txt);
  font-family: -apple-system, system-ui, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.45;
}
.wrap { max-width: 720px; margin: 0 auto; padding: 12px 12px 60px; }
.topbar { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 12px; }
.topbar h1 { font-size: 20px; margin: 0; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 12px;
}
.card h2 { font-size: 16px; margin: 4px 0 10px; }
h2 { font-size: 15px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin: 18px 0 8px; }
.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.spacer { flex: 1; }
.inline { display: inline; margin: 0; }
.chip {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.st-pending { background: #2a2f38; color: #aeb6c2; }
.st-claimed { background: #12395e; color: #7cc0ff; }
.st-uploaded { background: #4a3413; color: #ffcf7c; }
.st-posted { background: #123f2a; color: #6fe3a1; }
.st-blocked { background: #5e1a1a; color: #ff9d9d; }
.taskid { font-family: ui-monospace, monospace; color: var(--muted); font-size: 13px; }
.title { font-weight: 700; font-size: 16px; margin-top: 6px; }
.meta { color: var(--muted); font-size: 13px; margin-top: 4px; }
.blocked-reason { color: #ff9d9d; }
video { width: 100%; border-radius: 8px; margin-top: 8px; background: #000; max-height: 60vh; }
.strip { display: flex; gap: 8px; margin-bottom: 6px; }
.stat {
  flex: 1;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  text-align: center;
}
.stat b { display: block; font-size: 22px; }
.stat span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.stat.alert b { color: #ff9d9d; }
label { display: block; margin: 8px 0; font-size: 14px; }
input, textarea {
  width: 100%;
  margin-top: 4px;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #0e1116;
  color: var(--txt);
  font-size: 15px;
}
button, .btn {
  display: inline-block;
  background: var(--accent);
  color: #06121f;
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  margin-top: 8px;
}
button.small { padding: 4px 10px; font-size: 12px; margin-top: 0; background: #2a2f38; color: var(--txt); }
button.danger { background: #5e1a1a; color: #ffb3b3; }
.err { color: #ff9d9d; }
.warn { color: #ffcf7c; font-weight: 700; }
.token {
  background: #0e1116;
  border: 1px dashed var(--accent);
  border-radius: 8px;
  padding: 12px;
  word-break: break-all;
  font-size: 13px;
  user-select: all;
}
.empty { color: var(--muted); }
.login { max-width: 380px; margin: 60px auto; }
.prompt {
  background: #0e1116;
  border: 1px solid #2a2f38;
  border-radius: 8px;
  padding: 12px;
  white-space: pre-wrap;
  font-size: 13px;
  line-height: 1.5;
}
.prompt.instr {
  border-color: #8a6d1b;
  background: #171307;
}
.bar {
  height: 8px;
  background: #0e1116;
  border-radius: 4px;
  margin-top: 6px;
  overflow: hidden;
}
.barfill {
  height: 100%;
  background: var(--accent);
  border-radius: 4px;
}
a { color: var(--accent); }
