/* ═══════════════════════════════════════════════════════════════════════════
   CHARACTER CREATOR — full-bleed multi-step UI
   ═══════════════════════════════════════════════════════════════════════════ */

/* Make container fill workspace, regardless of parent */
#wf-character-creator.wf-cc {
  display: flex !important;
  flex-direction: row;
  width: 100%;
  min-height: calc(100vh - 140px);
  background: #0d0f14;
  color: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.05);
}

/* ── SIDEBAR ─────────────────────────────────────────────────────────────── */
#wf-character-creator .wf-cc-sidebar {
  flex: 0 0 200px;
  width: 200px;
  background: #131620;
  border-right: 1px solid rgba(255,255,255,0.06);
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Compact face widget */
#wf-character-creator .wf-cc-face-widget {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

#wf-character-creator .wf-cc-face-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1.5px dashed rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  position: relative;
  transition: all .15s;
}
#wf-character-creator .wf-cc-face-avatar:hover {
  border-color: #ff6b35;
  color: #ff6b35;
}
#wf-character-creator .wf-cc-face-avatar svg {
  width: 32px;
  height: 32px;
}
#wf-character-creator .wf-cc-face-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#wf-character-creator .wf-cc-face-text {
  font-size: 12px;
  color: rgba(255,255,255,0.85);
  line-height: 1.35;
}
#wf-character-creator .wf-cc-face-text strong { font-weight: 600; }
#wf-character-creator .wf-cc-optional {
  color: rgba(255,255,255,0.4);
  font-weight: 400;
}
#wf-character-creator .wf-cc-face-sub {
  font-size: 10px;
  color: rgba(255,255,255,0.35);
  margin-top: 2px;
}
#wf-character-creator .wf-cc-face-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}
#wf-character-creator .wf-cc-face-mini {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.8);
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 500;
  padding: 3px 8px;
  cursor: pointer;
  transition: border-color .12s, color .12s, background .12s;
}
#wf-character-creator .wf-cc-face-mini:hover {
  border-color: #ff6b35;
  color: #ff6b35;
  background: rgba(255,107,53,0.08);
}
#wf-character-creator .wf-cc-face-mini--remove { color: rgba(255,120,120,0.8); border-color: rgba(255,120,120,0.25); }
#wf-character-creator .wf-cc-face-mini--remove:hover { color:#ff5b5b; border-color:#ff5b5b; background: rgba(255,91,91,0.08); }

#wf-character-creator .wf-cc-face-avatar.is-dragover {
  border-color: #ff6b35;
  background: rgba(255,107,53,0.18);
  color: #ff6b35;
  box-shadow: 0 0 0 4px rgba(255,107,53,0.18);
}

/* Hide the full image input — we just trigger it from the avatar.
   Note: pointer-events kept auto so programmatic .click() and the
   <input type=file> remain reachable to open the OS picker. */
#wf-character-creator .wf-cc-face-hidden {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

/* Current selections */
#wf-character-creator .wf-cc-current-title {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  margin-bottom: 4px;
}
#wf-character-creator .wf-cc-current-sub {
  font-size: 10px;
  color: rgba(255,255,255,0.4);
  margin-bottom: 6px;
}
#wf-character-creator .wf-cc-pills {
  display: flex; flex-wrap: wrap; gap: 4px;
}
#wf-character-creator .wf-cc-pill {
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 11px;
  background: rgba(255,107,53,0.18);
  color: #ff8a5b;
  font-weight: 600;
  white-space: nowrap;
}

/* Sidebar archetype badge — prominent locked-in indicator */
#wf-character-creator .wf-cc-arch-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  margin-bottom: 8px;
  border-radius: 8px;
  background: rgba(255,107,53,0.12);
  border: 1px solid rgba(255,107,53,0.35);
}
#wf-character-creator .wf-cc-arch-badge-icon {
  font-size: 14px;
}
#wf-character-creator .wf-cc-arch-badge-name {
  font-size: 12px;
  font-weight: 700;
  color: #ff8a5b;
  letter-spacing: .06em;
  flex: 1;
}
#wf-character-creator .wf-cc-arch-badge-lock {
  font-size: 9px;
  font-weight: 700;
  color: rgba(255,138,91,0.55);
  letter-spacing: .1em;
  border: 1px solid rgba(255,107,53,0.25);
  border-radius: 4px;
  padding: 1px 5px;
}

/* Step 1 confirmation strip */
#wf-character-creator .wf-cc-arch-confirm {
  margin: 12px 0 4px;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(255,107,53,0.08);
  border-left: 3px solid #ff6b35;
}
#wf-character-creator .wf-cc-arch-confirm-name {
  font-size: 13px;
  font-weight: 700;
  color: #ff8a5b;
  margin-bottom: 2px;
}
#wf-character-creator .wf-cc-arch-confirm-sub {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
}

/* Step heading archetype tag */
#wf-character-creator .wf-cc-step-arch-tag {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,138,91,0.7);
  letter-spacing: 0;
  text-transform: none;
}

/* Step arch context note */
#wf-character-creator .wf-cc-step-arch-note {
  font-size: 11px;
  color: rgba(255,255,255,0.45);
  background: rgba(255,107,53,0.06);
  border-left: 2px solid rgba(255,107,53,0.3);
  padding: 6px 10px;
  border-radius: 0 4px 4px 0;
  margin-bottom: 14px;
}

/* Physique arch name chip */
#wf-character-creator .wf-cc-physique-arch-name {
  font-size: 10px;
  color: rgba(255,138,91,0.6);
  font-weight: 600;
  margin-left: 4px;
}

/* Progress */
#wf-character-creator .wf-cc-progress-wrap {
  margin-top: auto;
}
#wf-character-creator .wf-cc-progress-label {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 6px;
}
#wf-character-creator .wf-cc-progress-bar {
  height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  overflow: hidden;
}
#wf-character-creator .wf-cc-progress-fill {
  height: 100%;
  background: #ff6b35;
  transition: width .25s ease;
}

/* ── WORKSPACE ───────────────────────────────────────────────────────────── */
#wf-character-creator .wf-cc-workspace {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #0d0f14;
  min-width: 0;
  position: relative;
}

/* Tab bar */
#wf-character-creator .wf-cc-tabbar {
  display: flex;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  background: #111421;
}
#wf-character-creator .wf-cc-tab {
  padding: 14px 22px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: rgba(255,255,255,0.45);
  font-size: 13px;
  cursor: pointer;
  transition: color .15s, border-color .15s;
  white-space: nowrap;
}
#wf-character-creator .wf-cc-tab:hover { color: rgba(255,255,255,0.8); }
#wf-character-creator .wf-cc-tab.is-active {
  color: #ff6b35;
  border-bottom-color: #ff6b35;
}

/* Steps */
#wf-character-creator .wf-cc-step {
  display: none;
  padding: 28px 32px 108px;
  flex: 1;
  overflow-y: auto;
}
#wf-character-creator .wf-cc-step.is-active { display: block; }

#wf-character-creator .wf-cc-step-heading {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  color: rgba(255,255,255,0.85);
  margin-bottom: 18px;
}

/* ── Category bracket buttons ─────────────────────────────────────────────── */
#wf-character-creator .wf-cc-cat-row {
  display: flex;
  gap: 10px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
#wf-character-creator .wf-cc-cat-btn {
  padding: 8px 18px;
  background: none;
  border: 1.5px solid rgba(255,255,255,0.12);
  border-radius: 22px;
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  transition: all .15s;
}
#wf-character-creator .wf-cc-cat-btn:hover {
  border-color: rgba(255,107,53,0.5);
  color: #fff;
}
#wf-character-creator .wf-cc-cat-btn.is-active {
  border-color: #ff6b35;
  background: rgba(255,107,53,0.12);
  color: #ff6b35;
  font-weight: 600;
}

/* ── Archetype grid — BIG portrait cards ──────────────────────────────────── */
#wf-character-creator .wf-cc-arch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}
#wf-character-creator .wf-cc-arch-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #1d2030 0%, #14171f 100%);
  border: 2px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  cursor: pointer;
  overflow: hidden;
  transition: border-color .15s, transform .1s;
  aspect-ratio: 3/4;
  padding: 0;
}
#wf-character-creator .wf-cc-arch-card:hover {
  border-color: rgba(255,107,53,0.55);
  transform: translateY(-2px);
}
#wf-character-creator .wf-cc-arch-card.is-active {
  border-color: #ff6b35;
  box-shadow: 0 0 0 1px #ff6b35, 0 6px 24px rgba(255,107,53,0.25);
}
#wf-character-creator .wf-cc-arch-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
#wf-character-creator .wf-cc-arch-blank {
  flex: 1;
  background: linear-gradient(135deg, #1a1f2e 0%, #14171f 100%);
}
#wf-character-creator .wf-cc-arch-name {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 8px 10px;
  background: linear-gradient(transparent 0%, rgba(0,0,0,0.85) 100%);
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}

/* ── Sub sections ────────────────────────────────────────────────────────── */
#wf-character-creator .wf-cc-sub-sect { margin-bottom: 28px; }
#wf-character-creator .wf-cc-sub-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 12px;
}

/* Chips */
#wf-character-creator .wf-cc-chip-row {
  display: flex; gap: 8px; flex-wrap: wrap;
}
#wf-character-creator .wf-cc-chip {
  padding: 7px 16px;
  border-radius: 20px;
  border: 1.5px solid rgba(255,255,255,0.12);
  background: none;
  color: rgba(255,255,255,0.65);
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  transition: all .15s;
}
#wf-character-creator .wf-cc-chip:hover { border-color: rgba(255,107,53,0.5); color: #fff; }
#wf-character-creator .wf-cc-chip.is-active {
  border-color: #ff6b35;
  background: rgba(255,107,53,0.12);
  color: #ff6b35;
  font-weight: 600;
}

/* Silhouette cards */
#wf-character-creator .wf-cc-sil-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}
#wf-character-creator .wf-cc-sil-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 10px;
  background: #181b22;
  border: 2px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
  transition: all .15s;
}
#wf-character-creator .wf-cc-sil-card:hover { border-color: rgba(255,107,53,0.4); }
#wf-character-creator .wf-cc-sil-card.is-active {
  border-color: #ff6b35;
  background: rgba(255,107,53,0.08);
}
#wf-character-creator .wf-cc-sil-fig {
  width: 50px;
  height: 80px;
  background: rgba(255,255,255,0.13);
  border-radius: 6px 6px 4px 4px;
}
#wf-character-creator .wf-cc-sil-img {
  height: 96px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.4));
  transition: filter .15s ease, transform .15s ease;
}
#wf-character-creator .wf-cc-sil-card:hover .wf-cc-sil-img {
  filter: drop-shadow(0 2px 6px rgba(255,107,53,0.35));
  transform: translateY(-1px);
}
#wf-character-creator .wf-cc-sil-card.is-active .wf-cc-sil-img {
  filter: drop-shadow(0 2px 8px rgba(255,107,53,0.55));
}
#wf-character-creator [data-sil-h="short"] .wf-cc-sil-fig    { width: 40px; height: 60px; }
#wf-character-creator [data-sil-h="tall"]  .wf-cc-sil-fig    { width: 32px; height: 95px; }
#wf-character-creator [data-sil-b="slim"]    .wf-cc-sil-fig  { width: 30px; }
#wf-character-creator [data-sil-b="muscular"].wf-cc-sil-fig  { width: 62px; }
#wf-character-creator [data-sil-b="heavyset"].wf-cc-sil-fig  { width: 70px; }
#wf-character-creator [data-sil-b="curvy"]   .wf-cc-sil-fig {
  width: 46px;
  clip-path: polygon(15% 0%, 85% 0%, 100% 35%, 80% 55%, 95% 100%, 5% 100%, 20% 55%, 0% 35%);
}
#wf-character-creator .wf-cc-sil-name {
  font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.85);
}
#wf-character-creator .wf-cc-sil-desc {
  font-size: 10px; color: rgba(255,255,255,0.35); text-align: center;
}

/* ── Physique summary row + optional slider disclosure ───────────── */

/* Sub-label "source" annotation */
#wf-character-creator .wf-cc-physique-source {
  font-size: 9px;
  font-weight: 400;
  color: rgba(255,255,255,0.35);
  margin-left: 4px;
  letter-spacing: .03em;
}

/* Summary chip row */
#wf-character-creator .wf-cc-physique-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}

/* Individual chips */
#wf-character-creator .wf-cc-phys-chip {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  letter-spacing: .04em;
}

/* Customize disclosure button */
#wf-character-creator .wf-cc-physique-customize-btn {
  background: none;
  border: none;
  color: rgba(255,107,53,0.8);
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  padding: 2px 6px;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: color .15s;
}
#wf-character-creator .wf-cc-physique-customize-btn:hover {
  color: #ff6b35;
}

/* Slider detail panel — display is controlled entirely by JS (flex/none) */
#wf-character-creator .wf-cc-physique-detail {
  margin-top: 12px;
  flex-direction: column;
  gap: 14px;
  padding: 14px 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
}

/* Legacy class kept for compat — unused now */
#wf-character-creator .wf-cc-physique-fig {
  display: none;
  transition: transform 0.18s cubic-bezier(.4,0,.2,1);
}
#wf-character-creator .wf-cc-physique-desc {
  font-size: 9px;
  color: rgba(255,255,255,0.4);
  text-align: center;
  line-height: 1.4;
  max-width: 78px;
}
#wf-character-creator .wf-cc-sliders {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
#wf-character-creator .wf-cc-slider-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
#wf-character-creator .wf-cc-slider-hd {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
#wf-character-creator .wf-cc-slider-name {
  font-size: 10px;
  font-weight: 700;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  letter-spacing: .07em;
}
#wf-character-creator .wf-cc-slider-val {
  font-size: 12px;
  font-weight: 700;
  color: #ff6b35;
}
#wf-character-creator .wf-cc-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,0.12);
  outline: none;
  cursor: pointer;
  transition: background .15s;
}
#wf-character-creator .wf-cc-range:hover {
  background: rgba(255,255,255,0.2);
}
#wf-character-creator .wf-cc-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ff6b35;
  cursor: pointer;
  box-shadow: 0 0 0 3px rgba(255,107,53,.25), 0 2px 8px rgba(0,0,0,.4);
  transition: box-shadow .15s, transform .1s;
}
#wf-character-creator .wf-cc-range::-webkit-slider-thumb:hover {
  box-shadow: 0 0 0 5px rgba(255,107,53,.35), 0 2px 8px rgba(0,0,0,.4);
  transform: scale(1.1);
}
#wf-character-creator .wf-cc-range::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ff6b35;
  cursor: pointer;
  border: none;
  box-shadow: 0 0 0 3px rgba(255,107,53,.25);
}
#wf-character-creator .wf-cc-slider-ends {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: rgba(255,255,255,0.3);
}
/* Physique entry in recipe card */
#wf-character-creator .wf-cc-rp-item.wf-cc-rp-physique {
  grid-column: span 2;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  background: rgba(255,107,53,0.05);
  border: 1px solid rgba(255,107,53,0.15);
  border-radius: 8px;
  padding: 8px 12px;
}
#wf-character-creator .wf-cc-rp-physique .wf-cc-rp-bodyicon {
  font-size: 22px;
  filter: grayscale(1) brightness(0.7);
}
#wf-character-creator .wf-cc-rp-physique .wf-cc-rp-label {
  font-size: 11px;
  font-weight: 600;
}

/* Outfit style cards */
#wf-character-creator .wf-cc-style-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}
#wf-character-creator .wf-cc-style-card {
  padding: 14px 12px;
  background: #181b22;
  border: 2px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: all .15s;
}
#wf-character-creator .wf-cc-style-card:hover { border-color: rgba(255,107,53,0.4); }
#wf-character-creator .wf-cc-style-card.is-active { border-color: #ff6b35; background: rgba(255,107,53,0.08); }
#wf-character-creator .wf-cc-style-img {
  height: 110px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
  margin-bottom: 4px;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.4));
  transition: filter .15s ease, transform .15s ease;
}
#wf-character-creator .wf-cc-style-card:hover .wf-cc-style-img {
  filter: drop-shadow(0 2px 6px rgba(255,107,53,0.35));
  transform: translateY(-1px);
}
#wf-character-creator .wf-cc-style-card.is-active .wf-cc-style-img {
  filter: drop-shadow(0 2px 8px rgba(255,107,53,0.55));
}
#wf-character-creator .wf-cc-style-name {
  font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.9);
}
#wf-character-creator .wf-cc-style-desc {
  font-size: 11px; color: rgba(255,255,255,0.4);
}

/* Color designer */
#wf-character-creator .wf-cc-color-pair {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}
#wf-character-creator .wf-cc-color-lbl {
  display: block; font-size: 11px; color: rgba(255,255,255,0.5); margin-bottom: 8px;
}
#wf-character-creator .wf-cc-swatches {
  display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px;
}
#wf-character-creator .wf-cc-swatch {
  width: 28px; height: 28px;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .1s, border-color .15s;
}
#wf-character-creator .wf-cc-swatch:hover { transform: scale(1.15); }
#wf-character-creator .wf-cc-swatch.is-active {
  border-color: #fff;
  box-shadow: 0 0 0 1px #ff6b35;
}
#wf-character-creator .wf-cc-hex {
  width: 100%;
  padding: 7px 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  color: rgba(255,255,255,0.8);
  font-size: 12px;
  font-family: ui-monospace, monospace;
}
#wf-character-creator .wf-cc-hex:focus { outline: none; border-color: rgba(255,107,53,0.5); }

/* Output mode cards */
#wf-character-creator .wf-cc-output-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
#wf-character-creator .wf-cc-output-card {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 22px 16px;
  background: #181b22;
  border: 2px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  cursor: pointer;
  font-family: inherit;
  text-align: center;
  transition: all .15s;
}
#wf-character-creator .wf-cc-output-card:hover { border-color: rgba(255,107,53,0.4); }
#wf-character-creator .wf-cc-output-card.is-active { border-color: #ff6b35; background: rgba(255,107,53,0.08); }
#wf-character-creator .wf-cc-output-ico { width: 80px; height: 60px; border-radius: 6px; }
#wf-character-creator .wf-cc-output-img {
  width: 120px; height: 120px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  display: block;
  transition: transform .15s ease, box-shadow .15s ease;
}
#wf-character-creator .wf-cc-output-card:hover .wf-cc-output-img {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(255,107,53,0.25);
}
#wf-character-creator .wf-cc-output-card.is-active .wf-cc-output-img {
  box-shadow: 0 0 0 2px rgba(255,107,53,0.6), 0 4px 14px rgba(255,107,53,0.35);
}
#wf-character-creator .wf-cc-output-ico--cutout {
  background: repeating-conic-gradient(rgba(255,255,255,0.08) 0% 25%, transparent 0% 50%) 0 0 / 12px 12px;
  border: 1px solid rgba(255,255,255,0.1);
}
#wf-character-creator .wf-cc-output-ico--scene {
  background: linear-gradient(135deg, #1a1a4e 0%, #4e1a1a 100%);
  border: 1px solid rgba(255,255,255,0.1);
}
#wf-character-creator .wf-cc-output-name { font-size: 15px; font-weight: 700; color: rgba(255,255,255,0.95); }
#wf-character-creator .wf-cc-output-desc { font-size: 12px; color: rgba(255,255,255,0.5); line-height: 1.4; }

/* Scene grid */
#wf-character-creator .wf-cc-scene-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
#wf-character-creator .wf-cc-scene-card {
  position: relative; display: flex; aspect-ratio: 16/9;
  background: #181b22;
  border: 2px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  cursor: pointer;
  overflow: hidden;
  font-family: inherit;
  transition: all .15s;
}
#wf-character-creator .wf-cc-scene-card:hover { border-color: rgba(255,107,53,0.5); }
#wf-character-creator .wf-cc-scene-card.is-active { border-color: #ff6b35; box-shadow: 0 0 0 1px #ff6b35; }
#wf-character-creator .wf-cc-scene-card img { width: 100%; height: 100%; object-fit: cover; }
#wf-character-creator .wf-cc-scene-name {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 6px 10px;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  font-size: 12px; font-weight: 600; color: #fff;
}

/* Lighting cards */
#wf-character-creator .wf-cc-light-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
#wf-character-creator .wf-cc-light-card {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 12px;
  background: #181b22;
  border: 2px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
  transition: all .15s;
}
#wf-character-creator .wf-cc-light-card:hover { border-color: rgba(255,107,53,0.4); }
#wf-character-creator .wf-cc-light-card.is-active { border-color: #ff6b35; background: rgba(255,107,53,0.08); }
#wf-character-creator .wf-cc-light-card img {
  width: 100%; aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
}
#wf-character-creator .wf-cc-light-card span { font-size: 12px; color: rgba(255,255,255,0.75); }

#wf-character-creator .wf-cc-gen-cta { margin-top: 14px; }

/* ── Step 5: Visual Recipe Card ─────────────────────────────────────────── */

/* Step 5 header row: title left, generate button right */
#wf-character-creator .wf-cc-step5-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
#wf-character-creator .wf-cc-step5-sub {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  margin-top: 2px;
}
/* Inline CTA — shrink the generate button into the header */
#wf-character-creator .wf-cc-gen-cta {
  margin-top: 0;
  flex-shrink: 0;
}

#wf-character-creator .wf-cc-gen-summary {
  background: transparent;
  border: none;
  padding: 0;
  margin-bottom: 12px;
}

/* ── Two-column recipe card ── */
#wf-character-creator .wf-cc-recipe {
  display: flex;
  gap: 12px;
  background: #181b22;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 14px;
  align-items: flex-start;
}

/* Left: portrait + name + chips + swatches */
#wf-character-creator .wf-cc-recipe-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
  width: 88px;
}
#wf-character-creator .wf-cc-recipe-portrait {
  width: 88px;
  height: 108px;
  object-fit: cover;
  border-radius: 9px;
  border: 1px solid rgba(255,255,255,0.1);
}
#wf-character-creator .wf-cc-recipe-portrait-empty {
  width: 88px;
  height: 108px;
  background: rgba(255,255,255,0.04);
  border-radius: 9px;
}
#wf-character-creator .wf-cc-recipe-arch-name {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  text-align: center;
  text-transform: capitalize;
  line-height: 1.2;
}
#wf-character-creator .wf-cc-recipe-arch-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
}
#wf-character-creator .wf-cc-rp-chip {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 7px;
  background: rgba(255,107,53,0.10);
  border: 1px solid rgba(255,107,53,0.22);
  color: #ff9a6e;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}
#wf-character-creator .wf-cc-recipe-swatches {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  justify-content: center;
}
#wf-character-creator .wf-cc-rp-swatch {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.15);
  display: inline-block;
  flex-shrink: 0;
}
#wf-character-creator .wf-cc-rp-accent {
  font-size: 9.5px;
  color: rgba(255,255,255,0.4);
  font-weight: 500;
  text-align: center;
  line-height: 1.2;
}

/* Right: pick grid */
#wf-character-creator .wf-cc-recipe-right {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(68px, 1fr));
  gap: 8px;
  min-width: 0;
}
#wf-character-creator .wf-cc-rp-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 9px;
  padding: 8px 6px 6px;
}
#wf-character-creator .wf-cc-rp-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 5px;
}
#wf-character-creator .wf-cc-rp-placeholder {
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.05);
  border-radius: 5px;
}
#wf-character-creator .wf-cc-rp-label {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255,255,255,0.65);
  text-align: center;
  line-height: 1.2;
  text-transform: capitalize;
}
#wf-character-creator .wf-cc-rp-sub {
  font-size: 9px;
  color: rgba(255,255,255,0.35);
  text-align: center;
  text-transform: capitalize;
}

/* Previous render panel (shown when re-opening a completed node from pipeline) */
#wf-character-creator .wf-cc-prev-render {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
  text-align: center;
}
#wf-character-creator .wf-cc-prev-render-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}
#wf-character-creator .wf-cc-prev-render-img {
  max-width: 220px;
  max-height: 220px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
}
#wf-character-creator .wf-cc-prev-render-hint {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  line-height: 1.5;
  max-width: 360px;
}
#wf-character-creator .wf-cc-prev-render-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 360px;
}
#wf-character-creator .wf-cc-prev-render-fresh {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.6);
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  cursor: pointer;
  transition: border-color .12s, color .12s, background .12s;
}
#wf-character-creator .wf-cc-prev-render-fresh:hover {
  border-color: #ff6b35;
  color: #ff6b35;
  background: rgba(255,107,53,0.08);
}

/* ── Sidebar resume banner (shown when node has a previous render) ── */
#wf-character-creator .wf-cc-resume-banner {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 10px;
  margin-bottom: 14px;
}
#wf-character-creator .wf-cc-resume-thumb {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 7px;
  border: 1px solid rgba(255,255,255,0.1);
  flex-shrink: 0;
}
#wf-character-creator .wf-cc-resume-meta {
  flex: 1;
  min-width: 0;
}
#wf-character-creator .wf-cc-resume-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 6px;
}
#wf-character-creator .wf-cc-resume-actions {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
#wf-character-creator .wf-cc-resume-btn {
  border-radius: 7px;
  font-size: 10.5px;
  font-weight: 600;
  padding: 4px 9px;
  cursor: pointer;
  border: 1px solid;
  transition: background .12s, color .12s, border-color .12s;
  white-space: nowrap;
}
#wf-character-creator .wf-cc-resume-btn--restore {
  background: rgba(255,107,53,0.12);
  border-color: rgba(255,107,53,0.3);
  color: #ff9a6e;
}
#wf-character-creator .wf-cc-resume-btn--restore:hover {
  background: rgba(255,107,53,0.22);
  border-color: #ff6b35;
  color: #ff6b35;
}
#wf-character-creator .wf-cc-resume-btn--fresh {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.5);
}
#wf-character-creator .wf-cc-resume-btn--fresh:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.8);
}

/* Step footer */
#wf-character-creator .wf-cc-foot {
  position: absolute;
  left: 32px;
  right: 32px;
  bottom: 28px;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 64px;
  padding: 14px 0 0;
  margin-top: 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  background:
    linear-gradient(180deg, rgba(13,15,20,0) 0%, #0d0f14 24%),
    #0d0f14;
}
#wf-character-creator .wf-cc-btn-next {
  margin-left: auto;
  padding: 12px 26px;
  background: #ff6b35;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s, transform .1s;
}
#wf-character-creator .wf-cc-btn-next:hover { background: #e55a26; transform: translateY(-1px); }
#wf-character-creator .wf-cc-btn-back {
  padding: 10px 18px;
  background: none;
  color: rgba(255,255,255,0.55);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  transition: all .15s;
}
#wf-character-creator .wf-cc-btn-back:hover { color: #fff; border-color: rgba(255,255,255,0.25); }

/* ── Stat Card CTA ────────────────────────────────────────────────────── */
#wf-character-creator .wf-cc-statcard-cta {
  margin: 12px 0 4px;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(120,50,200,0.18) 0%, rgba(80,20,150,0.08) 100%);
  border: 1px solid rgba(160,80,255,0.25);
  animation: cc-statcard-appear 0.5s cubic-bezier(0.22,1,0.36,1) both;
}

@keyframes cc-statcard-appear {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

#wf-character-creator .wf-cc-statcard-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
}

#wf-character-creator .wf-cc-statcard-cta-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

#wf-character-creator .wf-cc-statcard-cta-label {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.3px;
}

#wf-character-creator .wf-cc-statcard-cta-sub {
  font-size: 11px;
  color: rgba(160,80,255,0.8);
  letter-spacing: 0.3px;
}

#wf-character-creator .wf-cc-statcard-btn {
  flex-shrink: 0;
  padding: 10px 18px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #7B2FBE, #a855f7);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  box-shadow: 0 2px 12px rgba(120,50,200,0.4);
}

#wf-character-creator .wf-cc-statcard-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(120,50,200,0.55);
  background: linear-gradient(135deg, #8B3FCE, #b866ff);
}

/* ── Mobile ───────────────────────────────────────────────────────────── */
@media (max-width: 720px) {
  #wf-character-creator.wf-cc {
    flex-direction: column;
    min-height: unset;
  }
  #wf-character-creator .wf-cc-sidebar {
    flex: 0 0 auto; width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    padding: 12px;
    gap: 14px;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.07);
  }
  #wf-character-creator .wf-cc-face-widget { flex-direction: row; gap: 10px; text-align: left; }
  #wf-character-creator .wf-cc-face-text { font-size: 11px; }
  #wf-character-creator .wf-cc-current { flex: 1; min-width: 200px; }
  #wf-character-creator .wf-cc-progress-wrap { width: 100%; margin-top: 0; }
  #wf-character-creator .wf-cc-tabbar { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  #wf-character-creator .wf-cc-tab { padding: 12px 14px; font-size: 12px; }
  #wf-character-creator .wf-cc-step { padding: 18px; }
  #wf-character-creator .wf-cc-arch-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  #wf-character-creator .wf-cc-output-row,
  #wf-character-creator .wf-cc-color-pair { grid-template-columns: 1fr; gap: 16px; }
  #wf-character-creator .wf-cc-scene-row { grid-template-columns: repeat(2, 1fr); }
}
