:root {
  color-scheme: dark;
  --bg: #0f1117;
  --panel: #171b24;
  --text: #e6ecf5;
  --muted: #a8b4c7;
  --accent: #5c8cff;
  --border: #2a3342;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.app {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.2rem;
}

.header h1 {
  margin: 0;
  font-size: 1.7rem;
}

.subtitle {
  margin-top: 0.35rem;
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
}

.file-picker {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 120px;
  border: 1.5px dashed var(--border);
  border-radius: 12px;
  color: var(--muted);
  cursor: pointer;
  margin-bottom: 1rem;
}

.file-picker:hover {
  border-color: var(--accent);
  color: var(--text);
}

.file-picker input {
  display: none;
}

.meta {
  color: var(--muted);
  margin-bottom: 1rem;
}

.meta p {
  margin: 0.35rem 0;
}

.quality {
  border: 1px solid var(--border);
  border-radius: 10px;
  margin: 0 0 1rem;
  padding: 0.8rem;
}

.quality label {
  display: block;
  margin: 0.5rem 0;
  color: var(--muted);
}

button,
.primary {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #222838;
  color: var(--text);
  padding: 0.65rem 0.85rem;
  font-size: 0.95rem;
  cursor: pointer;
}

.primary {
  width: 100%;
  border-color: var(--accent);
  background: linear-gradient(90deg, #3a63ce, #5c8cff);
}

button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.status {
  color: var(--muted);
  min-height: 2.8rem;
}

.progress-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0.75rem 0 1rem;
}

progress {
  width: 100%;
  height: 10px;
}

.actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.privacy {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 860px) {
  .grid {
    grid-template-columns: 1fr;
  }
}
