:root {
  --bg: #0e0f12; --panel: #17191e; --line: #2a2d35; --text: #f1f2f4; --muted: #9aa0ab;
  --accent: #ff5a36; --accent-2: #ff7a5c; --ok: #3ccf8e; --warn: #f5b942; --radius: 16px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font: 16px/1.5 -apple-system, "SF Pro Text", "Geeza Pro", "Segoe UI", Tahoma, sans-serif; min-height: 100vh; }
a { color: var(--accent-2); }
.wrap { max-width: 760px; margin: 0 auto; padding: 32px 20px 80px; }
header.top { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.logo { width: 38px; height: 38px; border-radius: 11px; background: var(--accent); display: grid; place-items: center; font-weight: 800; color: #fff; font-size: 20px; }
header.top h1 { font-size: 20px; margin: 0; }
header.top .sub { color: var(--muted); font-size: 13px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 18px; }
.drop { border: 2px dashed #3a3e48; border-radius: var(--radius); padding: 44px 20px; text-align: center; cursor: pointer; transition: .15s; }
.drop:hover, .drop.over { border-color: var(--accent); background: rgba(255,90,54,.06); }
.drop .big { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.drop .hint { color: var(--muted); font-size: 14px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.btn { appearance: none; border: 0; border-radius: 12px; padding: 12px 20px; font: inherit; font-weight: 700; cursor: pointer; background: var(--accent); color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.btn:hover { background: var(--accent-2); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: #4a4f5b; }
.btn.small { padding: 7px 12px; font-size: 13px; border-radius: 9px; }
.btn.big { padding: 16px 26px; font-size: 18px; }
input[type=text] { width: 100%; background: #0f1115; border: 1px solid var(--line); color: var(--text); border-radius: 11px; padding: 12px 14px; font: inherit; }
label.lbl { display: block; color: var(--muted); font-size: 13px; margin: 0 0 6px; }
.files { list-style: none; padding: 0; margin: 14px 0 0; max-height: 340px; overflow: auto; }
.files li { display: flex; gap: 10px; align-items: center; padding: 9px 2px; border-bottom: 1px solid var(--line); font-size: 14px; }
.files li:last-child { border-bottom: 0; }
.files .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; direction: ltr; text-align: right; }
.files .size { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; direction: ltr; }
.files .pct { width: 46px; text-align: left; color: var(--muted); font-variant-numeric: tabular-nums; direction: ltr; }
.files .ok { color: var(--ok); }
.x { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 18px; }
.summary { color: var(--muted); font-size: 14px; margin-top: 10px; }
.bar { height: 10px; background: #0f1115; border-radius: 99px; overflow: hidden; border: 1px solid var(--line); }
.bar > i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), #ffb347); transition: width .3s; }
.stats { display: flex; justify-content: space-between; color: var(--muted); font-size: 14px; margin-top: 8px; font-variant-numeric: tabular-nums; }
.link { display: flex; gap: 8px; }
.link input { direction: ltr; text-align: left; font-family: ui-monospace, Menlo, monospace; font-size: 14px; }
.note { border-radius: 12px; padding: 12px 14px; font-size: 14px; margin-top: 12px; }
.note.warn { background: rgba(245,185,66,.1); border: 1px solid rgba(245,185,66,.35); color: #f8d38a; }
.note.info { background: rgba(255,255,255,.04); border: 1px solid var(--line); color: var(--muted); }
.hidden { display: none !important; }
h2 { font-size: 17px; margin: 0 0 12px; }
.muted { color: var(--muted); }
.mine li .name { direction: rtl; text-align: right; }
.done-icon { font-size: 40px; }
video.preview { width: 100%; border-radius: 12px; margin-top: 10px; background: #000; }
