:root{
  --bg:#0b0f14;
  --card:#111826;
  --muted:#9fb0c2;
  --text:#eaf1f7;
  --accent:#59ffa7;
  --warn:#ffce5c;
  --bad:#ff5c7a;
  --border:rgba(255,255,255,.08);
}
*{box-sizing:border-box}
body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  background: radial-gradient(1200px 700px at 20% 0%, #16243a 0%, var(--bg) 55%);
  color:var(--text);
}
header{
  max-width:980px;
  margin:0 auto;
  padding:28px 18px 8px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.brand{
  display:flex; align-items:center; gap:10px;
  font-weight:800; letter-spacing:.3px;
}
.dot{width:10px;height:10px;border-radius:99px;background:var(--accent); box-shadow:0 0 20px rgba(89,255,167,.45);}
.pill{
  font-size:12px; color:var(--muted);
  border:1px solid var(--border);
  padding:6px 10px; border-radius:999px;
  background:rgba(17,24,38,.55);
  white-space:nowrap;
}
main{max-width:980px;margin:0 auto;padding:14px 18px 70px;}
.grid{display:grid;grid-template-columns:1.2fr .8fr;gap:16px;}
@media (max-width:900px){.grid{grid-template-columns:1fr}}
.card{
  background:rgba(17,24,38,.72);
  border:1px solid var(--border);
  border-radius:18px;
  padding:18px;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
  backdrop-filter: blur(8px);
}
h1{font-size:30px;margin:0 0 8px}
p{margin:0 0 10px;color:var(--muted);line-height:1.55}
a{color:var(--text)}
a.link{color:var(--text); text-decoration:none; border-bottom:1px solid rgba(255,255,255,.16)}
a.link:hover{border-bottom-color:rgba(255,255,255,.35)}
.controls{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px;align-items:center}
button{
  appearance:none;
  border:1px solid var(--border);
  background:#0f1725;
  color:var(--text);
  padding:10px 14px;
  border-radius:12px;
  font-weight:700;
  cursor:pointer;
}
button.primary{
  background:linear-gradient(180deg, rgba(89,255,167,.95), rgba(60,210,140,.88));
  border:0;
  color:#07110b;
}
button:disabled{opacity:.55;cursor:not-allowed}
.status{font-size:13px;color:var(--muted)}
.big{
  display:grid;
  grid-template-columns: 1fr;
  gap:12px;
  margin-top:14px;
}
.box{
  border:1px solid var(--border);
  border-radius:14px;
  padding:12px;
  background:rgba(10,15,20,.35);
}
.label{font-size:12px;color:var(--muted);margin-bottom:6px}
.value{font-size:18px;font-weight:850}
.sub{font-size:14px;color:var(--muted)}
.smalltitle{font-weight:850;margin:0 0 10px}
.list{margin:10px 0 0; padding-left:18px; color:var(--muted)}
footer{max-width:980px;margin:0 auto;padding:0 18px 30px;color:var(--muted);font-size:12px}

/* Dropzone */
.drop{
  border:1px dashed rgba(255,255,255,.20);
  border-radius:16px;
  padding:16px;
  background:rgba(10,15,20,.25);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.drop.dragover{
  border-color: rgba(89,255,167,.55);
  box-shadow:0 0 0 3px rgba(89,255,167,.12);
  background:rgba(89,255,167,.06);
}
.drop .left{display:flex;flex-direction:column;gap:4px}
.drop .title{font-weight:900}
.drop .hint{font-size:13px;color:var(--muted)}
input[type="file"]{display:none}

/* Settings row */
.settings{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:10px;
}
@media (max-width:640px){.settings{grid-template-columns:1fr}}
select, input[type="range"]{
  width:100%;
  border:1px solid var(--border);
  border-radius:12px;
  background:#0f1725;
  color:var(--text);
  padding:10px 12px;
  font-weight:800;
  outline:none;
}
.rangeWrap{
  display:flex; gap:10px; align-items:center;
}
.rangeVal{
  min-width:68px;
  text-align:right;
  font-weight:900;
  color:var(--text);
}

/* File list */
.filelist{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top:10px;
}
.row{
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:space-between;
  border:1px solid var(--border);
  border-radius:14px;
  padding:10px 12px;
  background:rgba(10,15,20,.25);
}
.row .meta{
  display:flex;
  flex-direction:column;
  gap:2px;
  overflow:hidden;
  min-width:0;
}
.row .name{
  font-weight:900;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.row .mini{
  font-size:12px;
  color:var(--muted);
}
.badge{
  font-size:12px;
  font-weight:900;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--border);
  background:rgba(17,24,38,.55);
  color:var(--muted);
  white-space:nowrap;
}
.ok{color:var(--accent)}
.warn{color:var(--warn)}
.bad{color:var(--bad)}

/* Hub cards */
.tools{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  margin-top:12px;
}
@media (max-width:760px){.tools{grid-template-columns:1fr}}
.tool{
  border:1px solid var(--border);
  border-radius:16px;
  padding:14px;
  background:rgba(10,15,20,.25);
}
.tool .t{font-weight:900;margin:0 0 6px}
.tool .d{margin:0;color:var(--muted);font-size:14px;line-height:1.5}
