/* ═══════════════════════════════════════════════════════════════════════════
   ACTION SHOT — Multi-step hero scene builder
   Layout: sidebar (selfie + step nav + summary) | workspace (universe → pose → outfit)
   ═══════════════════════════════════════════════════════════════════════════ */

#wf-action-shot.wf-as {
  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-action-shot .wf-as-sidebar {
  flex: 0 0 240px;
  width: 240px;
  background: #131620;
  border-right: 1px solid rgba(255,255,255,0.06);
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* Selfie upload — hero */
#wf-action-shot .wf-as-selfie-upload {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
#wf-action-shot .wf-as-upload-label {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,0.92);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
#wf-action-shot .wf-as-required-badge {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 10px;
  background: rgba(255,107,53,0.18);
  color: #ff8a5b;
}
#wf-action-shot .wf-as-upload-hint {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  line-height: 1.4;
}

/* Compact the included image_drop inside the sidebar */
#wf-action-shot .wf-as-selfie-upload .image-input-panel,
#wf-action-shot .wf-as-selfie-upload .wf-bin-add-btn {
  width: 100% !important;
}
#wf-action-shot .wf-as-selfie-upload .image-input-panel-label,
#wf-action-shot .wf-as-selfie-upload .image-input-label {
  display: none !important;
}
#wf-action-shot .wf-as-selfie-upload [class*="draw-controls"],
#wf-action-shot .wf-as-selfie-upload [class*="draw-toolbar"],
#wf-action-shot .wf-as-selfie-upload .image-drawing-controls {
  display: none !important;
}

/* Step nav */
#wf-action-shot .wf-as-steps-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
#wf-action-shot .wf-as-step-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: none;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 8px;
  color: rgba(255,255,255,0.55);
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  transition: all .15s;
}
#wf-action-shot .wf-as-step-nav:hover {
  border-color: rgba(255,107,53,0.4);
  color: rgba(255,255,255,0.9);
}
#wf-action-shot .wf-as-step-nav.is-active {
  border-color: #ff6b35;
  background: rgba(255,107,53,0.08);
  color: #ff8a5b;
  font-weight: 600;
}
#wf-action-shot .wf-as-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}
#wf-action-shot .wf-as-step-nav.is-active .wf-as-step-num {
  background: #ff6b35;
  color: #fff;
}

/* Summary */
#wf-action-shot .wf-as-summary {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 18px;
}
#wf-action-shot .wf-as-summary-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 8px;
}
#wf-action-shot .wf-as-summary-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
#wf-action-shot .wf-as-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;
}

#wf-action-shot .wf-as-sidebar-actions {
  margin-top: auto;
}
#wf-action-shot .wf-as-generate-btn {
  width: 100%;
  padding: 11px 16px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 8px;
  border: none;
  background: #ff6b35;
  color: #fff;
  cursor: pointer;
  transition: background .15s, opacity .15s, box-shadow .15s;
}
#wf-action-shot .wf-as-generate-btn:not(:disabled):hover {
  background: #ff7c4a;
  box-shadow: 0 0 12px rgba(255,107,53,.45);
}
#wf-action-shot .wf-as-generate-btn:disabled {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.3);
  cursor: not-allowed;
}
#wf-action-shot .wf-as-generate-hint {
  margin-top: 6px;
  font-size: 10px;
  color: rgba(255,255,255,0.35);
  text-align: center;
}

/* ── WORKSPACE ───────────────────────────────────────────────────────────── */
#wf-action-shot .wf-as-workspace {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #0d0f14;
  min-width: 0;
}

#wf-action-shot .wf-as-tabs {
  display: flex;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  background: #111421;
}
#wf-action-shot .wf-as-tab {
  padding: 14px 22px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: rgba(255,255,255,0.45);
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: color .15s, border-color .15s;
  white-space: nowrap;
}
#wf-action-shot .wf-as-tab:hover { color: rgba(255,255,255,0.85); }
#wf-action-shot .wf-as-tab.is-active {
  color: #ff6b35;
  border-bottom-color: #ff6b35;
}

/* Steps */
#wf-action-shot .wf-as-step {
  display: none;
  padding: 28px 32px;
  flex: 1;
  overflow-y: auto;
}
#wf-action-shot .wf-as-step.is-active { display: block; }

#wf-action-shot .wf-as-step-intro {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  line-height: 1.45;
  margin: 0 0 22px;
  max-width: 720px;
}

/* Step footer */
#wf-action-shot .wf-as-step-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
#wf-action-shot .wf-as-back-btn,
#wf-action-shot .wf-as-next-btn {
  padding: 11px 22px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.85);
  transition: all .15s;
}
#wf-action-shot .wf-as-back-btn:hover {
  background: rgba(255,255,255,0.08);
}
#wf-action-shot .wf-as-next-btn {
  background: #ff6b35;
  border-color: #ff6b35;
  color: #fff;
  margin-left: auto;
}
#wf-action-shot .wf-as-next-btn:hover {
  background: #ff7d4a;
}

/* ── STEP 1: UNIVERSE — large cinematic preview cards ──────────────────── */
#wf-action-shot .wf-as-universe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
#wf-action-shot .wf-as-universe-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;
  font-family: inherit;
  padding: 0;
  aspect-ratio: 16/9;
  transition: border-color .15s, transform .1s;
}
#wf-action-shot .wf-as-universe-card:hover {
  border-color: rgba(255,107,53,0.55);
  transform: translateY(-2px);
}
#wf-action-shot .wf-as-universe-card.is-active {
  border-color: #ff6b35;
  box-shadow: 0 0 0 1px #ff6b35, 0 6px 24px rgba(255,107,53,0.25);
}
#wf-action-shot .wf-as-universe-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
#wf-action-shot .wf-as-universe-placeholder {
  flex: 1;
  background: linear-gradient(135deg, #1a1f2e 0%, #14171f 100%);
}
#wf-action-shot .wf-as-universe-info {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 12px 14px;
  background: linear-gradient(transparent 0%, rgba(0,0,0,0.85) 100%);
}
#wf-action-shot .wf-as-universe-name {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}

/* ── STEP 2: POSE — square icon grid ───────────────────────────────────── */
#wf-action-shot .wf-as-pose-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
}
#wf-action-shot .wf-as-pose-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #181b22;
  border: 2px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  cursor: pointer;
  overflow: hidden;
  font-family: inherit;
  padding: 0;
  aspect-ratio: 1/1;
  transition: border-color .15s, transform .1s;
}
#wf-action-shot .wf-as-pose-card:hover {
  border-color: rgba(255,107,53,0.5);
  transform: translateY(-2px);
}
#wf-action-shot .wf-as-pose-card.is-active {
  border-color: #ff6b35;
  background: rgba(255,107,53,0.08);
  box-shadow: 0 0 0 1px #ff6b35;
}
#wf-action-shot .wf-as-pose-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
#wf-action-shot .wf-as-pose-placeholder {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
  font-weight: 700;
  color: rgba(255,255,255,0.18);
}
#wf-action-shot .wf-as-pose-label {
  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: 12px;
  font-weight: 600;
  color: #fff;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}

/* ── STEP 3: OUTFIT & BUILD ────────────────────────────────────────────── */
#wf-action-shot .wf-as-section { margin-bottom: 24px; }
#wf-action-shot .wf-as-section-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 12px;
}

/* Costume cards */
#wf-action-shot .wf-as-costume-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}
#wf-action-shot .wf-as-costume-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #181b22;
  border: 2px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  cursor: pointer;
  overflow: hidden;
  font-family: inherit;
  padding: 0;
  aspect-ratio: 3/4;
  transition: border-color .15s;
}
#wf-action-shot .wf-as-costume-card:hover { border-color: rgba(255,107,53,0.5); }
#wf-action-shot .wf-as-costume-card.is-active {
  border-color: #ff6b35;
  background: rgba(255,107,53,0.08);
  box-shadow: 0 0 0 1px #ff6b35;
}
#wf-action-shot .wf-as-costume-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
#wf-action-shot .wf-as-costume-placeholder {
  flex: 1;
  background: linear-gradient(135deg, #1a1f2e 0%, #14171f 100%);
}
#wf-action-shot .wf-as-costume-label {
  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: 12px;
  font-weight: 600;
  color: #fff;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}

/* Emblem input row */
#wf-action-shot .wf-as-emblem-row {
  margin: -8px 0 24px;
  padding: 14px 16px;
  background: rgba(255,107,53,0.05);
  border: 1px solid rgba(255,107,53,0.2);
  border-radius: 10px;
}
#wf-action-shot .wf-as-emblem-input {
  width: 100%;
  padding: 10px 14px;
  background: #0d0f14;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  font-family: inherit;
  text-transform: uppercase;
  letter-spacing: .15em;
  margin: 4px 0 6px;
}
#wf-action-shot .wf-as-emblem-input:focus {
  outline: none;
  border-color: #ff6b35;
}
#wf-action-shot .wf-as-emblem-hint {
  font-size: 11px;
  color: rgba(255,255,255,0.45);
}

/* Body type */
#wf-action-shot .wf-as-body-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}
#wf-action-shot .wf-as-body-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  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-action-shot .wf-as-body-card:hover { border-color: rgba(255,107,53,0.5); }
#wf-action-shot .wf-as-body-card.is-active {
  border-color: #ff6b35;
  background: rgba(255,107,53,0.08);
}
#wf-action-shot .wf-as-body-card img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin-bottom: 6px;
}
#wf-action-shot .wf-as-body-placeholder {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  margin-bottom: 6px;
}
#wf-action-shot .wf-as-body-name {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
}
#wf-action-shot .wf-as-body-desc {
  font-size: 10px;
  color: rgba(255,255,255,0.4);
  line-height: 1.3;
}

/* Ready summary card */
#wf-action-shot .wf-as-ready-card {
  margin-top: 28px;
  padding: 20px 22px;
  background: linear-gradient(135deg, rgba(255,107,53,0.08) 0%, rgba(255,107,53,0.02) 100%);
  border: 1px solid rgba(255,107,53,0.25);
  border-radius: 12px;
}
#wf-action-shot .wf-as-ready-title {
  font-size: 13px;
  font-weight: 700;
  color: #ff8a5b;
  letter-spacing: .04em;
  margin-bottom: 10px;
}
#wf-action-shot .wf-as-ready-rows {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: rgba(255,255,255,0.85);
}
#wf-action-shot .wf-as-ready-row strong {
  display: inline-block;
  min-width: 78px;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
}

/* ── MOBILE ──────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  #wf-action-shot.wf-as {
    flex-direction: column;
    min-height: auto;
  }
  #wf-action-shot .wf-as-sidebar {
    flex: 0 0 auto;
    width: 100%;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  #wf-action-shot .wf-as-tab { padding: 12px 14px; font-size: 12px; }
  #wf-action-shot .wf-as-step { padding: 20px 16px; }
  #wf-action-shot .wf-as-universe-grid {
    grid-template-columns: 1fr;
  }
  #wf-action-shot .wf-as-pose-grid,
  #wf-action-shot .wf-as-costume-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
