:root{
  --bg: linear-gradient(160deg,#191b1f 0%,#23262b 100%);
  --card: rgba(255,255,255,0.06);
  --card-border: rgba(255,255,255,0.12);
  --text: #f3f6fb;
  --muted: #aeb8cc;
  --primary: #e0e3e8;
  --primary-hover: #eceff3;
  --primary-contrast: #111318;
  --progress-bg: rgba(255,255,255,0.18);
}

*{ box-sizing: border-box; }
html, body { height: 100%; margin: 0; font-family: 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Arial; color: var(--text); background: var(--bg); }

.wrap{ max-width: 720px; margin: 40px auto; padding: 0 16px; }
.title{ font-size: 28px; font-weight: 700; margin: 0 0 16px 0; text-align: center; }

.card{
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

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

.btn{
  appearance: none;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 12px;
  padding: 12px 18px;
  font-weight: 700;
  cursor: pointer;
  background: #2a2d33;
  color: var(--text);
  transition: transform .06s ease, background .2s ease, opacity .2s ease;
}
.btn:hover{ transform: translateY(-1px); }
.btn:disabled{ opacity: .6; cursor: not-allowed; }

.btn-primary{
  background: var(--primary);
  color: var(--primary-contrast);
}
.btn-primary:hover{ background: var(--primary-hover); }

.status{ margin: 14px 0 10px 0; color: var(--muted); }

.progress-row{ display: flex; align-items: center; gap: 10px; }
.progress{
  flex: 1 1 auto;
  height: 12px;
  background: var(--progress-bg);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--card-border);
}
.progress-bar{
  height: 100%;
  width: 0%;
  background: #ffffff;
  opacity: 0.95;
  border-radius: 999px 0 0 999px;
  transition: width .15s ease;
}
.progress-pct{ min-width: 52px; text-align: right; font-weight: 700; }

.log{
  margin-top: 12px;
  height: 180px;
  overflow: auto;
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 10px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 12px;
  color: var(--text);
  white-space: pre-wrap;
}
