:root {
  --bg: #f5f7fb;
  --card: #fff;
  --line: #cbd5e0;
  --ink: #222;
  --muted: #64748b;
  --accent: #4a90e2;
  --accent-dark: #357ab8;
  --danger: #e0343f;
  --ok: #158f4f;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  padding: 2rem 1rem;
}
.wrap { width: 100%; max-width: 560px; }
.wide { max-width: 980px; }
.card {
  background: var(--card);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
  padding: 2rem;
}
h1 { font-size: 1.5rem; margin-bottom: .35rem; }
.sub { color: var(--muted); font-size: .9rem; margin-bottom: 1.5rem; }
.drag {
  border: 2px dashed var(--line);
  border-radius: 10px;
  padding: 2.5rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.drag.hot { background: #e6f0ff; border-color: var(--accent); }
.drag input { display: none; }
.drag .big { font-size: 2.2rem; margin-bottom: .4rem; }
.linklike { color: var(--accent); text-decoration: underline; cursor: pointer; }
.bar { height: 8px; background: #e2e8f0; border-radius: 99px; overflow: hidden; margin: 1rem 0 .5rem; }
.bar > i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s; }
.row { display: flex; gap: .75rem; margin-top: 1.25rem; }
.btn {
  flex: 1; padding: .75rem 1rem; border: none; border-radius: 8px;
  font-weight: 600; font-size: .95rem; cursor: pointer; background: #e2e8f0; color: var(--ink);
}
.btn:hover { background: #cbd5e0; }
.btn.go { background: var(--accent); color: #fff; }
.btn.go:hover { background: var(--accent-dark); }
.btn.del { background: #fee; color: var(--danger); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.note { font-size: .85rem; padding: .8rem 1rem; border-radius: 8px; margin-top: 1rem; line-height: 1.5; }
.note.err { background: #fdecec; color: #9b1c26; }
.note.warn { background: #fff6e0; color: #8a5b00; }
.note.ok { background: #e7f7ee; color: #14663a; }
.field { margin-top: 1rem; }
.field label { display: block; font-size: .8rem; color: var(--muted); margin-bottom: .3rem; }
.field input {
  width: 100%; padding: .65rem .75rem; border: 1px solid var(--line);
  border-radius: 8px; font-size: .95rem; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
code.k { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85rem; word-break: break-all; }
footer { text-align: center; color: var(--muted); font-size: .8rem; margin-top: 1.5rem; }
footer a { color: var(--muted); }
video { width: 100%; border-radius: 10px; background: #000; }
.meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 1rem; margin: 1.25rem 0; font-size: .85rem; }
.meta b { display: block; font-size: 1rem; }
.meta span { color: var(--muted); }
table { width: 100%; border-collapse: collapse; font-size: .85rem; }
th, td { text-align: left; padding: .6rem .5rem; border-bottom: 1px solid #eef2f7; vertical-align: middle; }
th { color: var(--muted); font-weight: 600; font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; }
td.act { white-space: nowrap; }
td.act button { padding: .35rem .6rem; font-size: .8rem; flex: none; }
.pill { padding: .15rem .5rem; border-radius: 99px; font-size: .7rem; font-weight: 700; text-transform: uppercase; }
.pill.pending { background: #fff2cc; color: #8a5b00; }
.pill.approved { background: #dcf5e6; color: var(--ok); }
.pill.rejected { background: #fde0e2; color: var(--danger); }
.stats { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1.25rem; font-size: .85rem; }
.stats b { font-size: 1.15rem; display: block; }
@media (max-width: 520px) { .card { padding: 1.25rem; } body { padding: 1rem .5rem; } }
