/* Same design tokens/components as stats/css/style.css, trimmed to what
   this wizard needs, plus a few new wizard-specific classes
   (progress bar, step sections, radio rows, roster rows). */
:root {
  --bg: #121212;
  --panel: #1e1e1e;
  --panel-2: #2a2a2a;
  --border: #333;
  --text: #fff;
  --text-dim: #aaa;
  --text-dimmer: #666;
  --accent: #ff6b35;
  --green: #4caf50;
  --red: #f44336;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

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

a { color: var(--accent); }

.wizard-wrap {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 20px;
}

.wizard-card {
  background: var(--panel);
  border-radius: 16px;
  padding: 32px;
  width: 100%;
  max-width: 560px;
}

h1 { margin: 0 0 16px; }
.section-title { color: var(--text-dim); font-size: 12px; text-transform: uppercase; letter-spacing: 1px; margin: 20px 0 10px; }
.sub { color: var(--text-dim); font-size: 13px; margin-bottom: 12px; }

.progress-bar { height: 6px; background: var(--panel-2); border-radius: 3px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--accent); width: 16.6%; transition: width .2s ease; }
.progress-label { color: var(--text-dimmer); font-size: 12px; margin: 6px 0 20px; }

.field { margin-bottom: 14px; }
label { display: block; font-size: 13px; color: var(--text-dim); margin-bottom: 6px; }
input[type="text"], input[type="email"], input[type="password"], input[type="number"], select {
  width: 100%;
  padding: 11px 12px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 15px;
}
input:focus, select:focus { outline: none; border-color: var(--accent); }

.checkbox-label, .radio-label {
  display: flex !important; align-items: center; gap: 8px; cursor: pointer;
  font-size: 14px; color: var(--text); margin-bottom: 10px;
}
.checkbox-label input, .radio-label input { width: 16px; height: 16px; flex-shrink: 0; }

button { cursor: pointer; border: none; border-radius: 8px; font-weight: 600; font-size: 14px; }

.btn-primary {
  padding: 13px 20px;
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: #e55a25; }
.btn-primary:disabled { background: #6a4028; cursor: default; }

.btn-secondary { padding: 10px 16px; background: var(--panel-2); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--accent); }

.error-banner {
  background: rgba(244,67,54,.15);
  border: 1px solid rgba(244,67,54,.3);
  color: var(--red);
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 14px;
}

.step-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 24px; }

.inline-form { display: flex; gap: 8px; }
.inline-form .field { flex: 1; margin-bottom: 0; }

.color-form { flex-wrap: wrap; gap: 14px; margin-bottom: 12px; }
.color-form .field { min-width: 100px; }
.color-input-row { display: flex; gap: 6px; align-items: center; }
.color-input-row input[type="text"] { flex: 1; }
.color-input-row input[type="color"] {
  width: 36px; height: 36px; padding: 2px; flex-shrink: 0;
  background: var(--panel-2); border: 1px solid var(--border); border-radius: 8px; cursor: pointer;
}

.options-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 16px; }
.option-tile {
  background: var(--panel-2); border: 2px solid var(--border); border-radius: 12px;
  padding: 16px; text-align: left; color: var(--text); cursor: pointer;
}
.option-tile:hover { border-color: var(--accent); }
.option-tile.selected { border-color: var(--accent); background: rgba(255,107,53,.1); }
.option-tile .label { font-size: 15px; font-weight: 600; }
.option-tile .sublabel { font-size: 12px; color: var(--text-dim); margin-top: 4px; }

.theme-card {
  display: flex; align-items: center; gap: 10px;
  background: var(--panel-2); border-radius: 10px; padding: 12px 14px; margin-bottom: 8px;
}
.theme-card .name { flex: 1; font-weight: 600; }
.swatch { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); }

.roster-row {
  background: var(--panel-2); border-radius: 10px; padding: 14px; margin-bottom: 10px;
}
.roster-row .inline-form { margin-bottom: 8px; }
.roster-row .skill-grid, .roster-row .legacy-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-top: 10px; }
.roster-row .skill-grid label, .roster-row .legacy-grid label { font-size: 12px; margin-bottom: 4px; }
.roster-row .remove-row { background: none; border: none; color: var(--text-dimmer); font-size: 12px; text-decoration: underline; padding: 0; margin-top: 4px; }

.done-link { display: inline-block; text-decoration: none; text-align: center; }

.trial-notice p { color: var(--text-dim); font-size: 14px; line-height: 1.5; margin: 0 0 12px; }
.trial-notice p:last-child { margin-bottom: 0; }
