:root {
  --bg: #0f0f10;
  --surface: #1a1a1d;
  --border: #2a2a2e;
  --accent: #6c63ff;
  --accent-hover: #7c74ff;
  --text: #f0f0f2;
  --muted: #888;
  --success: #34c759;
  --radius: 12px;
  --radius-sm: 8px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  min-height: 100vh;
}

.shell {
  max-width: 560px;
  margin: 0 auto;
  padding: 24px 20px 48px;
}

/* Progress */
.progress-wrap {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin-bottom: 8px;
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.35s ease;
  width: 33.33%;
}
.step-label {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 28px;
}

/* Steps */
.step { display: none; }
.step.active { display: block; }

h1 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 6px;
}
.subtitle {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 28px;
}

/* Fields */
label {
  display: block;
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 6px;
  margin-top: 20px;
}
label:first-of-type { margin-top: 0; }
.hint { color: var(--muted); font-weight: 400; font-size: 13px; }

textarea, input[type="text"] {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  padding: 12px 14px;
  resize: vertical;
  transition: border-color 0.2s;
  outline: none;
}
textarea:focus, input[type="text"]:focus {
  border-color: var(--accent);
}
textarea::placeholder { color: var(--muted); }

/* Radio */
.radio-row {
  display: flex;
  gap: 16px;
  margin-top: 4px;
  margin-bottom: 4px;
}
.radio {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  cursor: pointer;
}
.radio input { accent-color: var(--accent); }

/* Chips */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  margin-bottom: 4px;
}
.chip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text);
  cursor: pointer;
  font-size: 14px;
  font-family: inherit;
  padding: 7px 16px;
  transition: border-color 0.15s, background 0.15s;
}
.chip:hover { border-color: var(--accent); }
.chip.selected {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* Navigation */
.nav-row {
  display: flex;
  gap: 12px;
  margin-top: 36px;
  justify-content: flex-end;
  align-items: center;
}
.btn-back {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--muted);
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
  padding: 12px 20px;
  transition: border-color 0.2s;
  margin-right: auto;
}
.btn-back:hover { border-color: var(--text); color: var(--text); }

.btn-next, .btn-submit {
  background: var(--accent);
  border: none;
  border-radius: var(--radius-sm);
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  padding: 13px 28px;
  transition: background 0.2s;
}
.btn-next:hover, .btn-submit:hover { background: var(--accent-hover); }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; }

/* Skills */
.skill-row {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.skill-label { display: flex; flex-direction: column; gap: 2px; }
.skill-label span:first-child { font-size: 15px; font-weight: 500; }
.skill-hint { font-size: 12px; color: var(--muted); }

.stars { display: flex; gap: 6px; }
.star {
  font-size: 28px;
  color: var(--border);
  cursor: pointer;
  transition: color 0.15s;
  user-select: none;
  line-height: 1;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
}
.star.active { color: #f5a623; }
.star.hover { color: #f5a62399; }

/* Psych scale */
.psych-row {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.psych-label {
  font-size: 15px;
  font-weight: 500;
}
.scale-row {
  display: flex;
  gap: 4px;
}
.scale-btn {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--muted);
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  padding: 8px 0;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.scale-btn:hover { border-color: var(--accent); color: var(--text); }
.scale-btn.selected {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* Done screen */
.done {
  text-align: center;
  padding: 60px 0;
}
.done-icon { font-size: 64px; margin-bottom: 20px; }
.done h2 { font-size: 24px; margin-bottom: 12px; }
.done p { color: var(--muted); font-size: 16px; max-width: 320px; margin: 0 auto; }
