/* ═══════════════════════════════════════════════════════════════════════════
   AGE PHOTO — 2-step print-style picker
   Layout: sidebar (photo upload + step nav + summary + generate)
           workspace (Step 1: Print Style | Step 2: Effects)
   ═══════════════════════════════════════════════════════════════════════════ */

#wf-age-photo.wf-ap {
  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-age-photo .wf-ap-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;
  overflow-y: auto;
}

#wf-age-photo .wf-ap-upload-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
#wf-age-photo .wf-ap-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-age-photo .wf-ap-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;
  flex-shrink: 0;
}
#wf-age-photo .wf-ap-upload-hint {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  line-height: 1.4;
}

/* Compact included image_drop panel */
#wf-age-photo .wf-ap-upload-wrap .image-input-panel,
#wf-age-photo .wf-ap-upload-wrap .wf-bin-add-btn { width: 100% !important; }
#wf-age-photo .wf-ap-upload-wrap .image-input-panel-label,
#wf-age-photo .wf-ap-upload-wrap .image-input-label { display: none !important; }
#wf-age-photo .wf-ap-upload-wrap [class*="draw-controls"],
#wf-age-photo .wf-ap-upload-wrap [class*="draw-toolbar"],
#wf-age-photo .wf-ap-upload-wrap .image-drawing-controls { display: none !important; }

/* Step nav */
#wf-age-photo .wf-ap-steps-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
#wf-age-photo .wf-ap-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-age-photo .wf-ap-step-nav:hover {
  border-color: rgba(255,107,53,0.4);
  color: rgba(255,255,255,0.9);
}
#wf-age-photo .wf-ap-step-nav.is-active {
  border-color: #ff6b35;
  background: rgba(255,107,53,0.08);
  color: #ff8a5b;
  font-weight: 600;
}
#wf-age-photo .wf-ap-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-age-photo .wf-ap-step-nav.is-active .wf-ap-step-num {
  background: #ff6b35;
  color: #fff;
}

/* Summary pills */
#wf-age-photo .wf-ap-summary {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 18px;
}
#wf-age-photo .wf-ap-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-age-photo .wf-ap-summary-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
#wf-age-photo .wf-ap-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;
}

/* Generate */
#wf-age-photo .wf-ap-sidebar-actions { margin-top: auto; }
#wf-age-photo .wf-ap-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, box-shadow .15s;
}
#wf-age-photo .wf-ap-generate-btn:not(:disabled):hover {
  background: #ff7c4a;
  box-shadow: 0 0 12px rgba(255,107,53,.45);
}
#wf-age-photo .wf-ap-generate-btn:disabled {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.3);
  cursor: not-allowed;
}
#wf-age-photo .wf-ap-generate-hint {
  margin-top: 6px;
  font-size: 10px;
  color: rgba(255,255,255,0.35);
  text-align: center;
}

/* ── WORKSPACE ───────────────────────────────────────────────────────────── */
#wf-age-photo .wf-ap-workspace {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #0d0f14;
  min-width: 0;
}

#wf-age-photo .wf-ap-tabs {
  display: flex;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  background: #111421;
}
#wf-age-photo .wf-ap-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-age-photo .wf-ap-tab:hover { color: rgba(255,255,255,0.85); }
#wf-age-photo .wf-ap-tab.is-active {
  color: #ff6b35;
  border-bottom-color: #ff6b35;
}

/* Steps */
#wf-age-photo .wf-ap-step {
  display: none;
  padding: 28px 32px;
  flex: 1;
  overflow-y: auto;
}
#wf-age-photo .wf-ap-step.is-active { display: block; }
#wf-age-photo .wf-ap-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-age-photo .wf-ap-step-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
#wf-age-photo .wf-ap-back-btn,
#wf-age-photo .wf-ap-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-age-photo .wf-ap-back-btn:hover { background: rgba(255,255,255,0.08); }
#wf-age-photo .wf-ap-next-btn {
  background: #ff6b35;
  border-color: #ff6b35;
  color: #fff;
  margin-left: auto;
}
#wf-age-photo .wf-ap-next-btn:hover { background: #ff7d4a; }

/* ── STEP 1: Print Style — 4/3 image cards ─────────────────────────────── */
#wf-age-photo .wf-ap-style-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
#wf-age-photo .wf-ap-style-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: 4/3;
  transition: border-color .15s, transform .1s;
}
#wf-age-photo .wf-ap-style-card:hover {
  border-color: rgba(255,107,53,0.55);
  transform: translateY(-2px);
}
#wf-age-photo .wf-ap-style-card.is-active {
  border-color: #ff6b35;
  box-shadow: 0 0 0 1px #ff6b35, 0 6px 24px rgba(255,107,53,0.25);
}
#wf-age-photo .wf-ap-style-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
#wf-age-photo .wf-ap-style-placeholder {
  flex: 1;
  background: linear-gradient(135deg, #1a1f2e 0%, #14171f 100%);
}
#wf-age-photo .wf-ap-style-info {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 10px 12px;
  background: linear-gradient(transparent 0%, rgba(0,0,0,0.85) 100%);
}
#wf-age-photo .wf-ap-style-name {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}

/* ── STEP 2: Effects — square icon cards ────────────────────────────────── */
#wf-age-photo .wf-ap-section { margin-bottom: 26px; }
#wf-age-photo .wf-ap-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;
}
#wf-age-photo .wf-ap-fx-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
}
#wf-age-photo .wf-ap-fx-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #181b22;
  border: 2px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  cursor: pointer;
  overflow: hidden;
  font-family: inherit;
  padding: 0 0 10px;
  aspect-ratio: 1;
  transition: border-color .15s, transform .1s;
}
#wf-age-photo .wf-ap-fx-card:hover {
  border-color: rgba(255,107,53,0.5);
  transform: translateY(-2px);
}
#wf-age-photo .wf-ap-fx-card.is-active {
  border-color: #ff6b35;
  background: rgba(255,107,53,0.08);
  box-shadow: 0 0 0 1px #ff6b35;
}
#wf-age-photo .wf-ap-fx-card img {
  width: 100%;
  flex: 1;
  object-fit: cover;
  display: block;
}
#wf-age-photo .wf-ap-fx-placeholder {
  flex: 1;
  width: 100%;
  background: linear-gradient(135deg, #1a1f2e 0%, #14171f 100%);
}
#wf-age-photo .wf-ap-fx-label {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  padding: 0 6px;
  text-align: center;
  margin-top: 8px;
}
#wf-age-photo .wf-ap-fx-card.is-active .wf-ap-fx-label { color: #ff8a5b; }

/* Ready summary card */
#wf-age-photo .wf-ap-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-age-photo .wf-ap-ready-title {
  font-size: 13px;
  font-weight: 700;
  color: #ff8a5b;
  letter-spacing: .04em;
  margin-bottom: 10px;
}
#wf-age-photo .wf-ap-ready-rows {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: rgba(255,255,255,0.85);
}
#wf-age-photo .wf-ap-ready-row strong {
  display: inline-block;
  min-width: 72px;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
}

/* ── MOBILE ──────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  #wf-age-photo.wf-ap { flex-direction: column; min-height: auto; }
  #wf-age-photo .wf-ap-sidebar {
    flex: 0 0 auto;
    width: 100%;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  #wf-age-photo .wf-ap-tab { padding: 12px 14px; font-size: 12px; }
  #wf-age-photo .wf-ap-step { padding: 20px 16px; }
  #wf-age-photo .wf-ap-style-grid { grid-template-columns: repeat(2, 1fr); }
  #wf-age-photo .wf-ap-fx-grid { grid-template-columns: repeat(3, 1fr); }
}
