:root {
  --bg: #0e1014;
  --card: #161a21;
  --line: #262c36;
  --text: #e6e9ef;
  --muted: #8b93a3;
  --accent: #5b7cfa;
  --accent-hover: #6f8cff;
  --ok: #3fb97a;
  --err: #ef5a5a;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent); }
.top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.brand { color: var(--text); font-weight: 600; text-decoration: none; }
.user { color: var(--muted); font-size: 14px; }
.inline { display: inline; }
.link { background: none; border: 0; color: var(--accent); cursor: pointer; font: inherit; padding: 0; }
.wrap { max-width: 860px; margin: 0 auto; padding: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px; margin-bottom: 16px; }
h1 { font-size: 22px; margin: 0 0 8px; }
h2 { font-size: 17px; margin: 0 0 10px; }
.muted { color: var(--muted); }
.badge { font-size: 12px; font-weight: 500; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; margin-left: 6px; }
.comment { white-space: pre-wrap; background: #10131a; border-left: 3px solid var(--accent); padding: 8px 12px; border-radius: 6px; }
.drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 140px; margin: 14px 0; border: 2px dashed var(--line); border-radius: 12px; cursor: pointer; text-align: center; padding: 16px; transition: border-color .15s, background .15s; }
.drop.over, .drop:hover { border-color: var(--accent); background: #131826; }
.drop-title { font-weight: 600; }
.files { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.file { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #12151c; }
.file .meta { display: flex; flex-direction: column; min-width: 0; flex: 1 1 200px; }
.file .name { overflow-wrap: anywhere; }
.preview { display: block; max-width: 100%; max-height: 360px; border-radius: 8px; background: #000; flex-basis: 100%; }
img.preview { width: auto; }
video.preview { width: 100%; }
.bar { flex-basis: 100%; height: 6px; background: var(--line); border-radius: 999px; overflow: hidden; }
.bar > i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s; }
.file.done .bar > i { background: var(--ok); }
.file.failed .bar > i { background: var(--err); }
.state { font-size: 13px; color: var(--muted); }
.file.failed .state { color: var(--err); }
.field { display: flex; flex-direction: column; gap: 6px; margin: 14px 0; color: var(--muted); }
textarea { width: 100%; resize: vertical; background: #0f1218; color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 10px; font: inherit; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.btn { display: inline-block; background: var(--accent); color: #fff; border: 0; border-radius: 8px; padding: 10px 18px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--accent-hover); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.small { padding: 6px 12px; font-size: 14px; }
.btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--text); }
.ok { color: var(--ok); }
.err { color: var(--err); }
@media (max-width: 480px) {
  .wrap { padding: 12px 16px; }
  .card { padding: 14px; }
  h1 { font-size: 20px; }
}
