:root {
  color-scheme: dark;
  font-family:
    "General Sans",
    system-ui,
    -apple-system,
    sans-serif;
  background: #0a0a0a;
  color: #fafafa;
  --accent: #f59e0b;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
}
#app {
  max-width: 640px;
  margin: 0 auto;
  padding: 32px 20px;
}
h1 {
  font-family: "Cabinet Grotesk", system-ui, sans-serif;
  font-size: 2rem;
  letter-spacing: -0.04em;
  text-align: left;
  margin: 0 0 24px;
}
form {
  background: rgb(255 255 255 / 4%);
  box-shadow: 0 0 0 1px rgb(255 255 255 / 10%);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
form + form {
  margin-top: 16px;
}
label {
  color: #aaa;
  font-size: 0.9rem;
}
input,
button {
  font: inherit;
  font-size: 16px;
  padding: 12px;
  border: 0;
  border-radius: 8px;
}
input {
  width: 100%;
  background: #111;
  color: #fafafa;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 10%);
}
button {
  padding: 14px 16px;
  background: var(--accent);
  color: #111;
  cursor: pointer;
  font-weight: 600;
}
button[type="button"] {
  background: rgb(245 158 11 / 10%);
  color: var(--accent);
  box-shadow: 0 0 0 1px rgb(245 158 11 / 10%);
}
input:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
#status,
#notice,
#details,
#result {
  color: #aaa;
  font-size: 0.95rem;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
#status.msg,
#details.msg {
  color: #fafafa;
}
#result.ok {
  color: #34d399;
}
#notice {
  margin-top: 28px;
}
#progress {
  margin-top: 20px;
}
#bar {
  display: block;
  width: 100%;
  height: 12px;
  accent-color: var(--accent);
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #222;
}
#bar::-webkit-progress-bar {
  background: #222;
}
#bar::-webkit-progress-value {
  background: var(--accent);
}
#bar::-moz-progress-bar {
  background: var(--accent);
}
input[type="file"] {
  overflow: hidden;
}
input[type="file"]::file-selector-button {
  font: inherit;
  color: #fafafa;
  background: #222;
  border: 0;
  border-radius: 4px;
  padding: 8px;
  margin-right: 8px;
}
