:root {
  --bg: #f6f7f9;
  --fg: #1d2330;
  --muted: #5d6677;
  --card: #ffffff;
  --border: #d9dde5;
  --accent: #cd040b;
  --accent-fg: #ffffff;
  --ok: #1d7a3a;
  --warn: #8a5a00;
  --err: #a4161a;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14171c;
    --fg: #e7e9ee;
    --muted: #9aa3b2;
    --card: #1d2128;
    --border: #343a45;
    --ok: #5fd08a;
    --warn: #f0b84d;
    --err: #ff7b7f;
  }
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
  font:
    15px/1.5 system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    sans-serif;
  background: var(--bg);
  color: var(--fg);
}
.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--card);
}
.bar h1 {
  font-size: 18px;
  margin: 0;
}
#user {
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--muted);
}
main {
  max-width: 640px;
  margin: 40px auto;
  padding: 0 16px;
}
section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
}
.button {
  display: inline-block;
  padding: 10px 18px;
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: var(--accent-fg);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.link {
  background: none;
  border: 0;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
}
.drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 36px 16px;
  margin-bottom: 16px;
  border: 2px dashed var(--border);
  border-radius: 10px;
  text-align: center;
  cursor: pointer;
}
.drop.over {
  border-color: var(--accent);
}
.drop input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.drop small {
  color: var(--muted);
}
#progress {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}
progress {
  flex: 1;
}
.note {
  color: var(--muted);
  font-size: 13px;
  margin: 16px 0 0;
}
.build {
  color: var(--muted);
  font-size: 12px;
  text-align: center;
  margin: 24px 0 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.alert {
  padding: 10px 14px;
  border-radius: 6px;
  border: 1px solid currentColor;
  margin: 0 0 16px;
}
.alert.error {
  color: var(--err);
}
.alert.warn {
  color: var(--warn);
}
.alert.ok {
  color: var(--ok);
}
