:root {
  --bg: #0b0f17;
  --card: #101826;
  --text: #e9eef7;
  --muted: #9aa7bd;
  --border: rgba(255,255,255,.10);
  --accent: #6ee7ff;
  --accent2: #a78bfa;
  --danger: #ff6b6b;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: radial-gradient(1000px 600px at 15% 10%, rgba(110,231,255,.12), transparent 60%),
              radial-gradient(900px 500px at 85% 20%, rgba(167,139,250,.12), transparent 60%),
              var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Helvetica Neue", sans-serif;
}

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

.header h1 {
  margin: 0 0 6px;
  font-size: 28px;
  letter-spacing: .2px;
}
.sub { margin: 0 0 18px; color: var(--muted); }

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

.dropzone {
  border: 1px dashed rgba(255,255,255,.22);
  border-radius: 14px;
  padding: 22px 14px;
  text-align: center;
  cursor: pointer;
  user-select: none;
  transition: transform .08s ease, border-color .2s ease, background .2s ease;
  background: rgba(0,0,0,.15);
}
.dropzone:hover { border-color: rgba(110,231,255,.55); }
.dropzone:active { transform: scale(.995); }
.dropzone.dragover {
  border-color: rgba(110,231,255,.9);
  background: rgba(110,231,255,.08);
}
.dz-title { font-weight: 650; }
.dz-sub { color: var(--muted); margin-top: 6px; font-size: 13px; }

.controls {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.left, .right { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}
select {
  background: rgba(0,0,0,.25);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  padding: 8px 10px;
  outline: none;
}
select:focus { border-color: rgba(110,231,255,.7); }

.btn {
  border: 1px solid var(--border);
  background: rgba(0,0,0,.18);
  color: var(--text);
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
  transition: transform .06s ease, border-color .2s ease, background .2s ease;
}
.btn:hover { border-color: rgba(255,255,255,.22); background: rgba(0,0,0,.28); }
.btn:active { transform: scale(.99); }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.primary {
  border-color: rgba(110,231,255,.35);
  background: linear-gradient(135deg, rgba(110,231,255,.20), rgba(167,139,250,.18));
}
.ghost { opacity: .9; }

.status {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}
.fileLabel { max-width: 70ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg { color: var(--muted); }
.msg.error { color: var(--danger); }

.output {
  width: 100%;
  height: 360px;
  margin-top: 12px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,.22);
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12.5px;
  line-height: 1.45;
  outline: none;
}
.output:focus { border-color: rgba(110,231,255,.6); }

.tips {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}
.tips summary { cursor: pointer; }

.footer {
  margin-top:
