:root {
  --bg: #0a0a0a;
  --panel: #121212;
  --line: #2a2a2a;
  --text: #ececec;
  --muted: #a3a3a3;
  --red: #690000;
  --red-hi: #a30000;
  --focus: #ff6b6b;
}
* { box-sizing: border-box; }
html { color-scheme: dark; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 16px;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.card {
  width: 100%;
  max-width: 560px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 3px solid var(--red);
  border-radius: 12px;
  padding: 24px 20px;
}
.brand { margin: 0 0 4px; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--red-hi); }
h1 { margin: 0 0 8px; font-size: 1.6rem; line-height: 1.2; }
h2 { font-size: 1.2rem; margin: 0 0 8px; }
.lead { color: var(--muted); margin: 0 0 20px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sr-input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.drop {
  display: grid; gap: 4px; place-items: center; text-align: center;
  min-height: 170px; padding: 24px 16px; cursor: pointer;
  border: 2px dashed #444; border-radius: 10px; background: #0e0e0e;
  transition: border-color .4s ease, background-color .4s ease;
}
.drop:hover, .drop.over { border-color: var(--red-hi); background: #160808; }
.drop:focus-within { outline: 3px solid var(--focus); outline-offset: 3px; }
.drop-title { font-size: 1.15rem; font-weight: 600; }
.drop-sub, .types, small { color: var(--muted); }
.types { font-size: .85rem; margin: 10px 0; }
.check { display: flex; gap: 10px; align-items: flex-start; margin-top: 8px; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--red-hi); flex: none; }
.fname { margin: 0 0 10px; font-weight: 600; overflow-wrap: anywhere; }
progress { width: 100%; height: 14px; appearance: none; border: 0; border-radius: 7px; background: #222; overflow: hidden; }
progress::-webkit-progress-bar { background: #222; }
progress::-webkit-progress-value { background: var(--red-hi); transition: width .4s ease; }
progress::-moz-progress-bar { background: var(--red-hi); }
.status { color: var(--muted); min-height: 1.5em; margin: 10px 0; }
.btn {
  display: inline-block; min-height: 44px; padding: 10px 20px; border: 1px solid var(--red-hi);
  border-radius: 8px; background: var(--red); color: #fff; font: inherit; font-weight: 600;
  text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--red-hi); }
.btn.ghost { background: transparent; border-color: #555; color: var(--text); }
.btn.ghost:hover { border-color: var(--text); background: transparent; }
.btn:focus-visible, input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.linkrow { display: flex; gap: 8px; flex-wrap: wrap; }
.linkrow input {
  flex: 1 1 240px; min-height: 44px; padding: 8px 12px; border: 1px solid #444; border-radius: 8px;
  background: #0e0e0e; color: var(--text); font: inherit;
}
.error { margin: 16px 0 0; padding: 12px; border: 1px solid #7a2a2a; border-radius: 8px; background: #240c0c; color: #ffd0d0; }
.note { color: var(--muted); font-size: .9rem; }
.meta { font-size: 1.05rem; overflow-wrap: anywhere; }
.foot { margin: 24px 0 0; font-size: .8rem; color: #777; }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
