:root{
  --bg1:#050816;
  --bg2:#0b1226;
  --card: rgba(255,255,255,.08);
  --stroke: rgba(255,255,255,.14);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.70);
  --muted2: rgba(255,255,255,.55);
  --brand1:#22d3ee;
  --brand2:#a78bfa;
  --ok:#34d399;
  --err:#fb7185;
}

*{ box-sizing:border-box; }

body{
  margin:0;
  min-height:100vh;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color:var(--text);
  background:
    radial-gradient(900px 600px at 20% 0%, rgba(34,211,238,.20), transparent 55%),
    radial-gradient(900px 600px at 90% 20%, rgba(167,139,250,.18), transparent 55%),
    linear-gradient(180deg, var(--bg1), var(--bg2));
  padding:18px;
}

.wrap{ max-width:560px; margin:0 auto; }

.top{ margin:10px 0 14px; }

.brand{ display:flex; gap:12px; align-items:center; }

.mark{
  width:48px;
  height:48px;
  border-radius:14px;
  background:linear-gradient(135deg, rgba(34,211,238,.14), rgba(167,139,250,.12));
  display:grid;
  place-items:center;
  border:1px solid var(--stroke);
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}

.name{ font-weight:800; font-size:20px; letter-spacing:.2px; }
.tag{ font-size:13px; color:var(--muted2); margin-top:2px; }

.tabs{
  margin-top:14px;
  display:flex;
  gap:10px;
}

.tab{
  flex:1;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.18);
  color: var(--text);
  font-weight:700;
}

.tab.active{
  border-color: rgba(34,211,238,.45);
  background: linear-gradient(135deg, rgba(34,211,238,.18), rgba(167,139,250,.14));
}

.card{
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 18px;
  padding: 16px;
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 60px rgba(0,0,0,.28);
}

.panel.hidden{ display:none; }

.drop{
  display:flex;
  align-items:center;
  gap:12px;
  border:1px dashed rgba(255,255,255,.26);
  border-radius:14px;
  padding:14px;
  background:rgba(0,0,0,.10);
  transition: .15s ease;
}

.drop.drag{ transform:scale(1.01); border-color: rgba(34,211,238,.55); }

.drop input{ width:100%; }
.drop input[type=file]{ color:var(--muted); }

.dropText{ flex:1; }
.dropTitle{ font-weight:700; }
.dropSub{ font-size:12px; color:var(--muted2); margin-top:2px; }

.meta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin:10px 2px 6px;
}

.count{ font-size:13px; color:var(--muted); }

.ghost{
  padding:8px 10px;
  border-radius:12px;
  background:transparent;
  color:var(--text);
  border:1px solid rgba(255,255,255,.16);
}

.ghost:disabled{ opacity:.45; }

.fileList{
  list-style:none;
  padding:0;
  margin:0 0 12px;
  border-radius:14px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.10);
}

.fileList li{
  display:flex;
  justify-content:space-between;
  gap:10px;
  padding:10px 12px;
  background: rgba(0,0,0,.10);
  border-bottom:1px solid rgba(255,255,255,.08);
}

.fileList li:last-child{ border-bottom:none; }

.fname{
  font-size:13px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width:360px;
}

.fsize{ font-size:12px; color:var(--muted2); flex:0 0 auto; }

.grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
}

.field label{
  display:block;
  font-size:12px;
  color:var(--muted2);
  margin:2px 2px 6px;
}

select{
  width:100%;
  padding:11px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.18);
  color: var(--text);
}

select:focus{ outline:2px solid rgba(34,211,238,.30); }

.presetDesc{
  margin-top:10px;
  font-size:12px;
  color:var(--muted2);
  padding:10px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.10);
}

.pwrap{
  height:10px;
  border-radius:999px;
  overflow:hidden;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.12);
  margin-top: 14px;
}

.pbar{
  height:100%;
  width:0%;
  background: linear-gradient(135deg, var(--brand1), var(--brand2));
  transition: width .25s ease;
}

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

.primary{
  width:100%;
  margin-top:14px;
  padding:12px 14px;
  border-radius:14px;
  border:none;
  color:#001018;
  font-weight:800;
  font-size:15px;
  background: linear-gradient(135deg, var(--brand1), var(--brand2));
  box-shadow: 0 14px 34px rgba(34,211,238,.12);
}

.primary:disabled{ opacity:.5; }

.status{
  margin-top:10px;
  font-size:13px;
  color:var(--muted);
  min-height:18px;
}

.status.ok{ color:var(--ok); }
.status.err{ color:var(--err); }
.status.work{ color:var(--muted); }

.hint{ margin-top:10px; font-size:12px; color:var(--muted2); }

.foot{
  margin:12px 2px 0;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:center;
  font-size:12px;
  color:var(--muted2);
}

@media (max-width: 520px){
  .grid{ grid-template-columns:1fr; }
  .fname{ max-width:240px; }
}