:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #0a120d;
  color: #f3f7f2;
  --accent: #9bb653;
  --accent-strong: #b6d769;
  --panel: rgba(27, 38, 30, 0.96);
  --border: rgba(173, 211, 118, 0.22);
  --muted: #aab6ad;
  --danger: #ff7777;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 100% 0, rgba(96, 138, 59, 0.18), transparent 38%),
    linear-gradient(180deg, #0b140e, #08100b);
}

.shell {
  width: min(720px, 100%);
  margin: 0 auto;
  padding: max(24px, env(safe-area-inset-top)) 16px max(36px, env(safe-area-inset-bottom));
}

header { margin: 0 4px 22px; }
.eyebrow { color: var(--accent-strong); font-size: 12px; font-weight: 800; letter-spacing: .18em; }
h1 { margin: 4px 0 8px; font-size: clamp(28px, 8vw, 44px); }
h2 { margin: 0 0 18px; font-size: 19px; }
.muted, .hint { color: var(--muted); }
.muted { margin: 0; line-height: 1.5; }
.hint { min-height: 18px; margin: 7px 0 17px; font-size: 13px; line-height: 1.4; }

.card {
  margin: 14px 0;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--panel);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .22);
}

label { display: block; margin: 0 0 8px; font-size: 14px; font-weight: 700; }
select, input[type="file"] {
  width: 100%;
  padding: 13px;
  color: inherit;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 13px;
  background: #121c15;
}

button {
  width: 100%;
  padding: 13px 16px;
  border: 0;
  border-radius: 13px;
  color: #10180d;
  background: var(--accent-strong);
  font-weight: 800;
  cursor: pointer;
}
button:disabled { cursor: not-allowed; filter: grayscale(.7); opacity: .48; }
button.secondary { width: auto; padding: 8px 12px; background: transparent; color: var(--accent-strong); border: 1px solid var(--border); }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.row h2 { margin-bottom: 0; }

.progress-wrap { margin-top: 18px; }
.progress { height: 9px; overflow: hidden; border-radius: 99px; background: #08100b; }
.progress span { display: block; width: 0; height: 100%; background: var(--accent-strong); transition: width .18s linear; }
.status { min-height: 20px; margin: 14px 0 0; line-height: 1.45; }
.status.error { color: var(--danger); }

.submissions { margin-top: 18px; }
.submission { padding: 13px 0; border-top: 1px solid rgba(255,255,255,.08); }
.submission:first-child { border-top: 0; }
.submission strong, .submission span { display: block; overflow-wrap: anywhere; }
.submission span { margin-top: 5px; color: var(--muted); font-size: 13px; }
.state { color: var(--accent-strong) !important; font-weight: 700; }

@media (max-width: 420px) {
  .card { padding: 17px; border-radius: 17px; }
}
