:root {
  color-scheme: dark;
  --bg: #090b10;
  --panel: #121721;
  --panel-2: #171f2d;
  --text: #f4f7fb;
  --muted: #9aa7b8;
  --line: #263244;
  --accent: #47d6a7;
  --accent-2: #6aa7ff;
  --danger: #ff6a7a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.shell {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0;
}

.hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.eyebrow {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 8px;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1;
  margin: 0;
}

.sub {
  color: var(--muted);
  max-width: 620px;
  margin: 14px 0 0;
}

.status {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--muted);
  background: var(--panel);
}

.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 18px;
  margin-top: 14px;
}

.drop {
  display: grid;
  place-items: center;
  min-height: 190px;
  border: 1px dashed #3a4a62;
  border-radius: 8px;
  background: var(--panel-2);
  cursor: pointer;
  text-align: center;
  padding: 22px;
}

.drop input {
  display: none;
}

.drop span {
  font-size: 20px;
  font-weight: 800;
}

.drop small {
  display: block;
  color: var(--muted);
  margin-top: 8px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

input,
select {
  width: 100%;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0d1118;
  color: var(--text);
  padding: 12px;
  font: inherit;
}

.ratios {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.ratios label {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #0d1118;
}

.ratios input {
  width: auto;
  margin: 0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

button {
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #04100c;
  padding: 12px 16px;
  font-weight: 900;
  cursor: pointer;
}

button.secondary {
  background: #273244;
  color: var(--text);
}

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

.progress {
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: #0d1118;
  border: 1px solid var(--line);
}

#progressBar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.2s ease;
}

.outputs {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.outputs li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #0d1118;
}

.outputs a {
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
}

.error {
  color: var(--danger);
}

@media (max-width: 720px) {
  .hero,
  .outputs li {
    align-items: stretch;
    flex-direction: column;
  }

  .grid {
    grid-template-columns: 1fr;
  }
}
