:root {
  --bg: #f4f4f5;
  --bg-soft: #fafafa;
  --panel: #ffffff;
  --ink: #18181b;
  --muted: #71717a;
  --line: #e4e4e7;
  --brand: #f97316;
  --brand-dark: #ea580c;
  --accent: #bde255;
  --danger: #dc2626;
  --ok: #16a34a;
  --btn-text: #09090b;
  --gradient: linear-gradient(90deg, var(--brand), var(--accent));
  --shadow: 0 18px 40px rgba(24, 24, 27, 0.08);
  --radius: 18px;
  font-family: Manrope, system-ui, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(ellipse 70% 45% at 50% -10%, rgba(249, 115, 22, 0.14), transparent 55%),
    var(--bg);
  color: var(--ink);
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
::placeholder { color: #a1a1aa; }

.loading-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  color: var(--muted);
}

.shell {
  width: min(920px, calc(100% - 28px));
  margin: 0 auto;
  padding: 28px 0 48px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}
.brand-mark {
  width: auto;
  height: 48px;
  max-width: 160px;
  object-fit: contain;
  border-radius: 10px;
  display: block;
  background: transparent;
  padding: 0;
}
.brand strong { display: block; letter-spacing: .08em; }
.brand span {
  display: block;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 22px;
}
.step-pill {
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}
.step-pill.active {
  background: var(--gradient);
  color: var(--btn-text);
  border-color: transparent;
}
.step-pill.done { color: var(--ink); border-color: var(--brand); }

h1 {
  margin: 0 0 8px;
  font-size: clamp(1.6rem, 3vw, 2rem);
}
.sub {
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.5;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}
.choice {
  border: 1px solid var(--line);
  background: var(--bg-soft);
  border-radius: 14px;
  padding: 14px;
  text-align: left;
  font-weight: 700;
}
.choice:hover, .choice.selected {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
}

label {
  display: block;
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 700;
  color: #52525b;
}
input, select, textarea {
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
textarea { min-height: 110px; resize: vertical; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 12px;
  padding: 12px 16px;
  background: var(--gradient);
  color: var(--btn-text);
  font-weight: 800;
}
.btn.secondary {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
}
.btn:disabled { opacity: .65; cursor: wait; }
.btn.full { width: 100%; }
.btn.small { padding: 8px 12px; font-size: 12px; width: auto; }

.error { color: var(--danger); font-size: 13px; margin: 0 0 12px; }
.ok { color: var(--ok); font-size: 13px; margin: 0 0 12px; }
.muted { color: var(--muted); font-size: 13px; }
.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 14px;
}
.check input { width: auto; margin: 2px 0 0; }

.file-box {
  border: 1px dashed var(--line);
  border-radius: 14px;
  padding: 14px;
  background: var(--bg-soft);
  margin-bottom: 14px;
}
.file-list { margin: 8px 0 0; padding: 0; list-style: none; font-size: 12px; color: var(--muted); }
.file-list li { margin-top: 4px; }

.status-card {
  display: grid;
  gap: 10px;
}
.badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.14);
  color: #c2410c;
  font-size: 12px;
  font-weight: 800;
}

.footer-note {
  margin-top: 18px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}
.footer-note a { color: var(--brand); }

@media (max-width: 700px) {
  .shell { width: min(100% - 20px, 920px); padding-top: 18px; }
  .panel { padding: 18px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .actions .btn { flex: 1; }
}
