:root {
  --bg: #12161d; --panel: #1b212b; --line: #2b3340; --text: #e6e9ef; --muted: #8b95a5;
  --accent: #5aa9ff; --warn: #e5a04b; --bad: #e5604b; --good: #4fc28a;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body { margin: 0; font: 14px/1.45 system-ui, "Segoe UI", sans-serif; background: var(--bg); color: var(--text); }
a { color: var(--accent); }
main { max-width: 1200px; margin: 0 auto; padding: 16px; }
.top { display: flex; align-items: center; gap: 24px; padding: 10px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.brand { font-weight: 700; font-size: 18px; color: var(--text); text-decoration: none; }
.top nav { display: flex; gap: 16px; flex: 1; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover { color: var(--text); }
.who { display: flex; align-items: center; gap: 10px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 16px; margin-bottom: 16px; }
.card.narrow { max-width: 420px; margin: 80px auto; text-align: center; }
h1 { font-size: 20px; margin: 0 0 12px; } h2 { font-size: 16px; margin: 0 0 10px; }
.badge { display: inline-block; padding: 1px 8px; border-radius: 10px; background: #263142; font-weight: 600; font-size: 12px; }
.badge.uploader { background: #24364f; color: #9cc8ff; }
.role-admin { background: #3d2b4f; } .role-editor { background: #2a4235; }
button, .button { background: #2a3442; color: var(--text); border: 1px solid var(--line); border-radius: 6px; padding: 4px 10px; font: inherit; cursor: pointer; text-decoration: none; display: inline-block; }
button:hover, .button:hover { border-color: var(--accent); }
.primary { background: #1f4f86; border-color: #2c6ab2; }
.warn { border-color: #6b4c22; }
button.link { background: none; border: none; color: var(--muted); padding: 0; }
input, select { background: #10141a; color: var(--text); border: 1px solid var(--line); border-radius: 6px; padding: 4px 8px; font: inherit; }
.error { color: var(--bad); } .muted { color: var(--muted); font-size: 12px; } .warn-text { color: var(--warn); }
.empty { color: var(--muted); padding: 24px 0; }
.disk { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; margin-bottom: 16px; }
.disk .label { color: var(--muted); }
.disk .meter { flex: 1 1 200px; }
.meter { height: 6px; background: #10141a; border-radius: 3px; overflow: hidden; }
.meter span { display: block; height: 100%; background: var(--accent); transition: width .5s; }
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin-bottom: 16px; }
.filters label { display: flex; flex-direction: column; gap: 2px; color: var(--muted); font-size: 12px; }
.filters label.check, label.check { flex-direction: row; align-items: center; gap: 4px; }
.day h2 .count { color: var(--muted); font-weight: normal; font-size: 13px; margin-left: 8px; }
.day { margin-bottom: 24px; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--muted); font-weight: 500; font-size: 12px; }
td.num { white-space: nowrap; text-align: right; }
td.file { max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
td.actions { white-space: nowrap; }
td.actions form, td form.inline, form.inline { display: inline-flex; gap: 6px; align-items: center; margin: 0; }
tr.deleted { opacity: .45; }
form.note input { width: 100%; min-width: 120px; background: transparent; border-color: transparent; }
form.note input:hover, form.note input:focus { border-color: var(--line); background: #10141a; }
.status { font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .03em; }
.s-verifying { color: var(--warn); } .s-complete { color: var(--accent); } .s-downloaded { color: var(--good); }
.s-done { color: var(--muted); } .s-corrupt { color: var(--bad); }
.verified { color: var(--good); font-size: 12px; margin-left: 6px; }
.active-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.active-head { display: flex; gap: 10px; align-items: baseline; margin-bottom: 4px; flex-wrap: wrap; }
.new-token { background: #1e2a1f; border: 1px solid #2f5a39; padding: 12px; border-radius: 6px; margin-bottom: 12px; }
code.token { display: block; padding: 8px; background: #10141a; border-radius: 4px; margin: 6px 0; word-break: break-all; user-select: all; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; }
.facts dt { color: var(--muted); } .facts dd { margin: 0; word-break: break-all; }
.tok { font-size: 12px; }
@media (max-width: 760px) {
  table.uploads thead { display: none; }
  table.uploads tr { display: grid; grid-template-columns: 1fr 1fr; padding: 8px 0; border-bottom: 1px solid var(--line); }
  table.uploads td { border: none; padding: 2px 4px; }
}
