:root{
  --bg:#0b0f14;
  --card:#111826;
  --card2:#0f1724;
  --text:#e9eef7;
  --muted:#9aa8bd;
  --line:rgba(255,255,255,.08);
  --accent:#7aa2ff;
  --good:#4ade80;
  --warn:#fbbf24;
  --bad:#fb7185;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  background: radial-gradient(1000px 600px at 20% 10%, rgba(122,162,255,.16), transparent 55%),
              radial-gradient(900px 550px at 80% 20%, rgba(74,222,128,.10), transparent 60%),
              var(--bg);
  color:var(--text);
}

.wrap{
  max-width: 720px;
  margin: 0 auto;
  padding: 28px 16px 40px;
}

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

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

.logo{
  width:42px; height:42px;
  border-radius:14px;
  background: linear-gradient(135deg, rgba(122,162,255,.9), rgba(122,162,255,.3));
  display:grid;
  place-items:center;
  font-weight:800;
  color:#0b0f14;
}

.title{font-weight:800; letter-spacing:.2px}
.subtitle{color:var(--muted); font-size:13px; margin-top:2px}

.card{
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px 18px 16px;
  box-shadow: 0 18px 50px rgba(0,0,0,.35);
}

h1{
  margin: 0 0 8px;
  font-size: 22px;
}

.muted{color:var(--muted)}
.small{font-size:12px}
.foot{margin-top:14px; font-size:12px}

.form{display:grid; gap:14px; margin-top:14px}

.file input{display:none}
.file-ui{
  display:flex;
  gap:12px;
  align-items:center;
  padding: 14px;
  border-radius: 16px;
  border: 1px dashed rgba(255,255,255,.18);
  background: rgba(15,23,36,.35);
  cursor:pointer;
}
.file-cta{
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(122,162,255,.14);
  border: 1px solid rgba(122,162,255,.22);
  color: var(--text);
  font-weight: 650;
  white-space:nowrap;
}
.file-name{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color: var(--muted);
  flex:1;
}

.percent{
  background: rgba(15,23,36,.35);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  padding: 14px;
  display:grid;
  gap: 10px;
}

.row{display:flex; align-items:center; justify-content:space-between}
.row.gap{gap:10px; justify-content:flex-start; flex-wrap:wrap}
.label{font-weight:700}

.pill{
  display:flex;
  align-items:center;
  gap:8px;
  padding: 8px 10px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(17,24,38,.55);
}
.pill input{
  width: 90px;
  font-size: 16px;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-weight: 750;
}
.pill span{color:var(--muted); font-weight:700}

input[type="range"]{width:100%}

.hint{font-size:12px; color:var(--muted)}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border: 1px solid rgba(122,162,255,.28);
  background: rgba(122,162,255,.18);
  color: var(--text);
  padding: 12px 14px;
  border-radius: 16px;
  font-weight: 800;
  text-decoration:none;
  cursor:pointer;
}
.btn:hover{filter:brightness(1.04)}
.btn.ghost{
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
}

.status-line{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom: 10px;
}

.badge{
  display:inline-flex;
  align-items:center;
  font-size:12px;
  font-weight:800;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
}
.badge-pending{border-color: rgba(251,191,36,.28); background: rgba(251,191,36,.10)}
.badge-processing{border-color: rgba(122,162,255,.28); background: rgba(122,162,255,.10)}
.badge-done{border-color: rgba(74,222,128,.26); background: rgba(74,222,128,.10)}
.badge-error{border-color: rgba(251,113,133,.26); background: rgba(251,113,133,.10)}

.big{
  font-size: 18px;
  margin: 10px 0 14px;
}

.error{
  margin: 10px 0 12px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(251,113,133,.24);
  background: rgba(251,113,133,.08);
}
.pre{
  margin: 10px 0 0;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.20);
  overflow:auto;
  max-height: 220px;
}

