:root {
  --bg: #0f1115;
  --card: #181b22;
  --fg: #e8eaed;
  --muted: #9aa0aa;
  --primary: #3b82f6;
  --primary-hover: #2f6fe0;
  --ok: #22c55e;
  --err: #ef4444;
  --line: #262a33;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", "Malgun Gothic", sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.5;
}

.app {
  max-width: 560px;
  margin: 0 auto;
  padding: 32px 20px 64px;
}

h1 { font-size: 1.4rem; margin: 0 0 6px; }
.sub { color: var(--muted); margin: 0 0 24px; font-size: 0.95rem; }

.pickers {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  color: var(--fg);
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
}
.btn:hover:not(:disabled) { background: #20242d; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn.primary:hover:not(:disabled) { background: var(--primary-hover); }
.btn.ghost { background: transparent; }
.btn.block { width: 100%; margin: 8px 0 16px; }

.clip-list {
  list-style: none;
  margin: 8px 0 16px;
  padding: 8px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  max-height: 240px;
  overflow-y: auto;
}
.clip-list li {
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.9rem;
}
.clip-list li:nth-child(odd) { background: rgba(255,255,255,0.03); }

.status {
  min-height: 1.4em;
  font-size: 0.92rem;
  color: var(--muted);
  margin: 8px 0;
}
.status.error { color: var(--err); }
.status.done { color: var(--ok); }

.progress-wrap { margin: 16px 0; }
.progress-track {
  height: 10px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  width: 0;
  background: var(--primary);
  transition: width 0.2s ease;
}
.progress-label {
  margin-top: 6px;
  font-size: 0.82rem;
  color: var(--muted);
}

.result {
  margin-top: 20px;
  padding: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  text-align: center;
}
.result-title {
  font-size: 1.2rem;
  color: var(--ok);
  margin-bottom: 12px;
}
.result-link {
  display: inline-block;
  margin: 6px;
  padding: 10px 16px;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
}
.result-link:hover { background: var(--primary-hover); }
