:root {
  --bg: #0b1020;
  --bg2: #10172b;
  --card: rgba(20, 28, 48, 0.86);
  --line: rgba(148, 163, 184, 0.16);
  --text: #e8eefc;
  --muted: #94a3b8;
  --accent: #5eead4;
  --accent2: #38bdf8;
  --danger: #f87171;
  --ok: #34d399;
  --radius: 18px;
  --shadow: 0 24px 70px rgba(2, 6, 23, 0.55);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  background:
    radial-gradient(1200px 600px at 15% -10%, rgba(56, 189, 248, 0.18), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(94, 234, 212, 0.14), transparent 55%),
    linear-gradient(180deg, var(--bg), var(--bg2));
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

.shell {
  width: min(880px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 56px;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 18px var(--accent);
}

.badge {
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 6px 10px;
  border-radius: 999px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  margin-bottom: 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.intro h1 {
  margin: 0 0 6px;
  font-size: clamp(26px, 4vw, 34px);
  letter-spacing: -0.02em;
}

.intro p {
  margin: 0;
  color: var(--muted);
}

.drop {
  border: 1.5px dashed rgba(148, 163, 184, 0.34);
  border-radius: 14px;
  padding: 38px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s, transform 0.18s;
}

.drop:hover, .drop.over {
  border-color: var(--accent);
  background: rgba(94, 234, 212, 0.06);
  transform: translateY(-1px);
}

.drop-icon {
  width: 46px;
  height: 46px;
  margin: 0 auto 12px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(94, 234, 212, 0.12);
  color: var(--accent);
  font-size: 22px;
}

.drop-title { font-weight: 600; }
.drop-hint { color: var(--muted); font-size: 13px; margin-top: 4px; }

.file {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.5);
}

.file-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent2);
  flex: none;
}

.file-meta { min-width: 0; flex: 1; }
.file-name {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.file-sub { color: var(--muted); font-size: 13px; }

.actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}

button {
  font: inherit;
  cursor: pointer;
  border: 0;
  border-radius: 11px;
  padding: 11px 18px;
  transition: transform 0.12s, opacity 0.12s, background 0.12s;
}

button:active { transform: translateY(1px); }
button:disabled { opacity: 0.45; cursor: not-allowed; }

.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #051018;
  font-weight: 700;
}

.ghost {
  background: rgba(148, 163, 184, 0.1);
  color: var(--text);
  border: 1px solid var(--line);
}

.ghost.danger { color: var(--danger); }
.small { padding: 7px 12px; font-size: 13px; border-radius: 9px; }

.progress { margin-top: 20px; }

.bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.14);
  overflow: hidden;
}

.fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transition: width 0.25s ease;
}

.stats {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.parts { color: var(--muted); font-size: 12px; margin-top: 4px; }

.notice {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 14px;
  border: 1px solid rgba(248, 113, 113, 0.35);
  background: rgba(248, 113, 113, 0.08);
  color: #fecaca;
  overflow-wrap: anywhere;
}

.notice.info {
  border-color: rgba(56, 189, 248, 0.32);
  background: rgba(56, 189, 248, 0.08);
  color: #bae6fd;
}

.done {
  margin-top: 18px;
  padding: 18px;
  border-radius: 14px;
  border: 1px solid rgba(52, 211, 153, 0.35);
  background: rgba(52, 211, 153, 0.08);
}

.done-title { font-weight: 700; color: var(--ok); }
.done-sub { color: var(--muted); font-size: 14px; margin: 4px 0 12px; }

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.card-head h2 { margin: 0; font-size: 18px; }
.files { display: grid; gap: 10px; }

.file-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(15, 23, 42, 0.42);
}

.row-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.empty { color: var(--muted); text-align: center; padding: 22px 0; }
.hint { color: var(--muted); font-size: 12px; margin: 18px 0 0; }
.footnote { color: var(--muted); font-size: 12px; margin: 16px 0 0; }

.foot {
  text-align: center;
  color: rgba(148, 163, 184, 0.7);
  font-size: 12px;
  margin-top: 24px;
}

.hidden { display: none !important; }

.fatal { text-align: center; padding: 48px 26px; }
.fatal h1 { margin-top: 0; }

@media (max-width: 620px) {
  .shell { padding-top: 24px; }
  .card { padding: 18px; }
  .file-row { align-items: flex-start; flex-wrap: wrap; }
  .row-actions { width: 100%; justify-content: flex-start; }
}
