:root {
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --brand: #2f4bff;
  --brand-soft: #eef1ff;
  --danger: #b42318;
}
* { box-sizing: border-box; }
/* The wizard toggles panels with the `hidden` attribute — an explicit `display`
   rule would otherwise win over the UA default and keep them on screen. */
[hidden] { display: none !important; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: radial-gradient(1100px 520px at 50% -180px, #e6ebff 0%, #f8fafc 60%);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.shell { max-width: 720px; margin: 0 auto; padding: 56px 20px 64px; }

.top { text-align: center; margin-bottom: 34px; }
.logo { font-weight: 700; letter-spacing: -.01em; font-size: 18px; color: var(--brand); }
.logo span { color: var(--muted); font-weight: 500; }
.top h1 { font-size: 34px; line-height: 1.15; margin: 18px 0 10px; letter-spacing: -.02em; }
.top .sub { margin: 0; color: var(--muted); font-size: 16px; }

.steps { display: flex; gap: 8px; list-style: none; margin: 0 0 18px; padding: 0; }
.steps li {
  flex: 1; display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 500; color: var(--muted);
  border-top: 3px solid var(--line); padding-top: 10px;
}
.steps li span {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--line); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 600; flex: 0 0 auto;
}
.steps li.active { color: var(--ink); border-top-color: var(--brand); }
.steps li.active span { background: var(--brand); }
.steps li.done { border-top-color: var(--brand); }
.steps li.done span { background: var(--brand); }

.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 30px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, .07);
}

.field { display: block; margin-bottom: 20px; }
.field .label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 7px; }
.field .label em { font-style: normal; font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--ink);
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; resize: vertical;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(47, 75, 255, .14);
}
.field .hint { display: block; font-size: 13px; color: var(--muted); margin-top: 6px; }
.row { display: flex; gap: 16px; }
.row .field { flex: 1; }

.btn {
  font: inherit; font-weight: 600; font-size: 15px;
  border-radius: 10px; padding: 12px 22px; cursor: pointer;
  border: 1px solid transparent; transition: opacity .15s, background .15s;
}
.btn.primary { background: var(--brand); color: #fff; }
.btn.primary:hover { opacity: .9; }
.btn.ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.actions { display: flex; gap: 10px; justify-content: space-between; }

.brand-preview {
  margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--line);
}
.bp-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.bp-head img { height: 42px; max-width: 150px; object-fit: contain; }
.bp-name { font-size: 19px; font-weight: 600; }
.bp-industry { font-size: 14px; color: var(--muted); }
.bp-summary { margin: 0 0 20px; font-size: 15px; color: var(--muted); }
.bp-grid { display: flex; gap: 30px; flex-wrap: wrap; margin-bottom: 24px; }
.bp-grid > div { flex: 1; min-width: 190px; }
.bp-key { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 8px; }
.bp-value { font-size: 15px; font-weight: 500; }
.bp-note { font-size: 12px; color: var(--muted); margin-top: 8px; }
.swatches { display: flex; gap: 8px; }
.swatch { width: 38px; height: 38px; border-radius: 9px; border: 1px solid rgba(15, 23, 42, .12); }

.status {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  margin-top: 22px; color: var(--muted); font-size: 15px;
}
.spinner {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--line); border-top-color: var(--brand);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.error {
  margin-top: 20px; padding: 14px 16px; border-radius: 10px;
  background: #fef3f2; border: 1px solid #fecdca; color: var(--danger); font-size: 14px;
}

.foot { margin-top: 26px; text-align: center; font-size: 13px; color: var(--muted); }

@media (max-width: 600px) {
  .top h1 { font-size: 26px; }
  .panel { padding: 22px 18px; }
  .row { flex-direction: column; gap: 0; }
  .steps li { font-size: 0; gap: 0; justify-content: center; }
  .steps li span { font-size: 11px; }
}
