:root {
  color-scheme: dark;
  --bg: #14161a;
  --panel: #1d2025;
  --text: #e4e6eb;
  --muted: #8a8f98;
  --accent: #5b9dff;
  --ok: #4caf7d;
  --warn: #e0a64c;
  --err: #e05c5c;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

body {
  background: var(--bg);
  color: var(--text);
  margin: 0;
  padding: 2rem;
  max-width: 820px;
  margin-inline: auto;
}

header h1 { margin-bottom: 0.2rem; }
.subtitle { color: var(--muted); margin-top: 0; }

section {
  background: var(--panel);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}

.file-drop {
  display: block;
  border: 1px dashed var(--muted);
  border-radius: 6px;
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  margin-bottom: 1rem;
}
.file-drop input { display: none; }

button {
  background: var(--accent);
  color: #0b0d10;
  border: none;
  border-radius: 6px;
  padding: 0.6rem 1.2rem;
  font-weight: 600;
  cursor: pointer;
}
button:disabled { background: #33373d; color: var(--muted); cursor: not-allowed; }

#track-list { list-style: none; padding: 0; margin: 0; }

.track-row {
  border-bottom: 1px solid #2a2e35;
  padding: 0.6rem 0;
}
.track-row:last-child { border-bottom: none; }

.track-row .name { font-weight: 600; }
.track-row .phase {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0.15rem;
}

.status-dot {
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  margin-right: 0.5rem;
  background: var(--muted);
}
.status-dot.running { background: var(--accent); }
.status-dot.done { background: var(--ok); }
.status-dot.error { background: var(--err); }
.status-dot.cached { background: var(--warn); }

progress {
  width: 100%;
  height: 6px;
  margin-top: 0.4rem;
  accent-color: var(--accent);
}

#log-output {
  font-family: ui-monospace, monospace;
  font-size: 0.8rem;
  color: var(--muted);
  max-height: 220px;
  overflow-y: auto;
  white-space: pre-wrap;
}

#mix-plan-list { list-style: none; padding: 0; margin: 0; }

.transition-row {
  border-bottom: 1px solid #2a2e35;
  padding: 0.7rem 0;
}
.transition-row:last-child { border-bottom: none; }
.transition-row .name { font-weight: 600; }
.transition-row .detail {
  font-size: 0.9rem;
  color: var(--text);
  margin-top: 0.2rem;
}
.transition-row .reason {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.2rem;
}
.transition-row .warn {
  font-size: 0.85rem;
  color: var(--warn);
  margin-top: 0.3rem;
}

#render-btn { margin-top: 1rem; }
#render-status {
  margin-top: 0.6rem;
  font-size: 0.9rem;
  color: var(--muted);
}
#render-download a {
  display: inline-block;
  margin-top: 0.6rem;
  color: var(--accent);
  font-weight: 600;
}
