:root {
  color-scheme: dark;
  --ink: #f3efe7;
  --paper: rgba(12, 14, 18, 0.84);
  --line: rgba(243, 239, 231, 0.32);
  --warn: #f0c9a0;
  --bug: #8c2f2f;
  --feature: #1f4b6b;
  --panel: rgba(10, 12, 16, 0.78);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font: 1.05rem/1.5 system-ui, sans-serif;
  background: #0b1016 url("/static/background.jpg") center / cover no-repeat fixed;
}
main {
  max-width: 36rem;
  margin: 2rem auto 3rem;
  padding: 1.5rem 1.25rem 2rem;
  background: var(--panel);
  border: 1px solid rgba(243, 239, 231, 0.12);
  border-radius: 0.8rem;
}
main.wide { max-width: 48rem; }
h1 { font-size: 1.8rem; line-height: 1.2; margin-top: 0; }
a { color: inherit; }
.choices { display: grid; gap: 0.75rem; margin: 1.5rem 0; }
.choice, button[type="submit"] {
  display: block;
  text-align: center;
  text-decoration: none;
  border-radius: 0.6rem;
  padding: 0.9rem 1rem;
  font: inherit;
  font-weight: 650;
}
.bug { background: var(--bug); color: white; }
.feature { background: var(--feature); color: white; }
button[type="submit"] {
  background: var(--ink);
  color: #171512;
  border: 0;
  width: 100%;
  cursor: pointer;
  margin-top: 1rem;
}
label, .field-label { display: block; margin: 1rem 0 0.35rem; font-weight: 650; }
fieldset label { font-weight: 500; margin: 0.4rem 0; }
fieldset { border: 1px solid var(--line); border-radius: 0.5rem; margin: 1rem 0; }
textarea, select, #version {
  width: 100%;
  font: inherit;
  color: inherit;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  padding: 0.6rem;
}
#version:disabled { opacity: 0.45; }
label.check {
  font-weight: 500;
  margin: 0.55rem 0 0;
}
label.check input { margin-right: 0.35rem; }
.choice-field { display: none; }
.choice-field.show { display: block; }
.count { margin: 0.35rem 0 0; text-align: right; opacity: 0.8; }
.drop {
  border: 1px dashed var(--line);
  border-radius: 0.5rem;
  padding: 1.1rem 0.9rem;
  text-align: center;
}
.drop.over { border-color: var(--ink); background: rgba(243, 239, 231, 0.06); }
.drop p { margin: 0; }
.drop label {
  display: inline;
  margin: 0;
  text-decoration: underline;
  cursor: pointer;
}
.js .file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.file-input { margin-top: 0.75rem; max-width: 100%; color: inherit; }
.picked { list-style: none; padding: 0; margin: 0.75rem 0 0; text-align: left; }
.picked li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.4rem 0;
  border-top: 1px solid var(--line);
}
.picked span { overflow-wrap: anywhere; }
.picked button {
  flex: 0 0 auto;
  font: inherit;
  color: inherit;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  padding: 0.25rem 0.6rem;
  cursor: pointer;
}
.hint, .note { color: inherit; opacity: 0.8; }
.warn { color: var(--warn); font-weight: 650; }
.error {
  border: 1px solid var(--bug);
  padding: 0.7rem 0.9rem;
  border-radius: 0.4rem;
}
.hp {
  position: absolute;
  left: -10000px;
  height: 1px;
  width: 1px;
  overflow: hidden;
}
:focus-visible { outline: 3px solid var(--feature); outline-offset: 2px; }
