/* =====================================================
 * Talent Profile Builder — Two-panel layout (Live Profile + Profile Info)
 * Ported verbatim from the canonical mockup
 * (mockups/talent/profile_builder) so the real builder is pixel-perfect.
 * Steps 2–6 reuse the same design system (pi-* primitives) plus a small
 * "editor extras" block at the bottom for dynamic rows / gallery / video.
 * No inline CSS in the views.
 * ===================================================== */

/* -- Shared tokens -- */
.pb-shell {
  --pb-bg: #FAFAFA;
  --pb-surface: #FFFFFF;
  --pb-surface-warm: #FBF8F1;
  --pb-border: #E5E5E5;
  --pb-border-soft: #EFEAE0;
  --pb-text: #0A0A0A;
  --pb-text-muted: #737373;
  --pb-text-dim: #A3A3A3;
  --pb-gold-main: #A38543;
  --pb-gold-deep: #5A4A25;
  --pb-grad: linear-gradient(99deg, #BD9733 0%, #E5D29F 25%, #E8CC6E 50%, #E5D29F 75%, #FFF4C2 100%);
  --pb-grad-dark: linear-gradient(135deg, #5A4A25 0%, #422D05 100%);
  --pb-radius: 12px;
  --pb-radius-sm: 8px;
  --pb-stepbar-h: 64px;
  font-family: 'Geist', system-ui, sans-serif;
  background: var(--pb-bg);
  color: var(--pb-text);
  min-height: 100vh;
}

/* ============ STICKY STEPPER ============ */
.pb-stepbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--pb-border);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.pb-brand {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--pb-text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Geist', system-ui, sans-serif;
}
.pb-brand-logo { height: 24px; width: auto; }

.pb-steps {
  display: inline-flex;
  align-items: center;
  gap: 0;
  flex: 1;
  justify-content: center;
}
.pb-step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.pb-step-num {
  width: 24px;
  height: 24px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}
.pb-step-num.is-done { background: var(--pb-grad); color: #000; }
.pb-step-num.is-active { background: #000; color: #E8CC6E; box-shadow: 0 0 0 3px rgba(163,133,67,.18); }
.pb-step-num.is-idle { background: #F4F4F5; color: var(--pb-text-dim); border: 1px dashed var(--pb-border); }
.pb-step-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--pb-text-muted);
  white-space: nowrap;
}
.pb-step-label.is-active { color: var(--pb-text); font-weight: 600; }
.pb-step-line {
  width: 36px;
  height: 1px;
  background: var(--pb-border);
  margin: 0 12px;
}
.pb-step-line.is-done { background: linear-gradient(90deg, var(--pb-gold-main), #E8CC6E); height: 2px; }

.pb-exit {
  font-size: 13px;
  color: var(--pb-text-muted);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 9999px;
}
.pb-exit:hover { background: rgba(163,133,67,.06); color: var(--pb-gold-main); }

/* ============ SHARED HEADER ROW ============ */
.pb-pane-head-row {
  display: grid;
  grid-template-columns: 60fr 40fr;
  background: #FFFFFF;
  border-bottom: 1px solid var(--pb-border-soft);
  align-items: stretch;
}
.pb-pane-head--left {
  background: #FFFFFF;
  padding: 10px 24px 8px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.pb-pane-head--right {
  background: #FFFFFF;
  padding: 10px 24px 8px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.pb-back-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  align-self: flex-start;
  height: 24px;
  padding: 0 10px 0 8px;
  background: #FFFFFF;
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 9999px;
  font-family: 'Geist', system-ui, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: #242424;
  cursor: pointer;
  margin: 0 0 6px;
  transition: all .15s ease;
  text-decoration: none;
}
.pb-back-inline:hover {
  border-color: var(--pb-gold-main);
  color: var(--pb-gold-deep);
}
.pb-pane-head-title {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0 0 3px;
  color: var(--pb-text);
}
.pb-pane-head-sub {
  font-size: 10px;
  color: var(--pb-text-muted);
  margin: 3px 0 0;
  line-height: 1.5;
}

/* ============ TWO-PANEL LAYOUT ============ */
.pb-split {
  display: grid;
  grid-template-columns: 60fr 40fr;
  gap: 0;
  align-items: start;
}
.pb-pane {
  padding: 18px 24px 24px;
  background: #FFFFFF;
}
.pb-pane-left {
  background: #F2EFE9;
  border-right: 1px solid var(--pb-border);
  padding: 0;
  overflow: visible;
  max-height: none;
}
.pb-pane-right {
  background: #FFFFFF;
  padding: 14px 28px 24px;
  font-size: 12px;
  border: 0;
}

/* ============ LIVE PROFILE (left pane) ============ */
.lp-root {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 520px;
  margin: 22px auto 0;
  padding: 0;
  padding-bottom: 0;
  zoom: 0.935;
}

/* Card */
.lp-card {
  background: #FFFFFF;
  border: 0.5px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.04);
}

/* Hero banner */
.lp-hero {
  height: 140px;
  background: var(--pb-grad-dark);
  background-size: cover;
  background-position: center;
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  cursor: pointer;
  font-family: inherit;
  overflow: hidden;
}
.lp-hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.45);
  color: #FFFFFF;
  opacity: 0;
  transition: opacity 0.18s ease;
}
.lp-hero:hover .lp-hero-overlay { opacity: 1; }
.lp-hero-overlay-icon { font-size: 22px; }
.lp-hero-overlay-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Avatar + pitch row */
.lp-avatar-row {
  padding: 0 20px;
  display: flex;
  align-items: flex-end;
  gap: 14px;
  margin-top: -42px;
  position: relative;
}
.lp-avatar {
  position: relative;
  width: 77px;
  height: 77px;
  border-radius: 9999px;
  background: var(--pb-grad);
  color: #000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  border: 3px solid #FFFFFF;
  flex-shrink: 0;
  overflow: visible;
  cursor: pointer;
  padding: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.lp-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 9999px;
}
.lp-avatar-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  color: #FFFFFF;
  border-radius: 9999px;
  opacity: 0;
  transition: opacity 0.18s ease;
  pointer-events: none;
}
.lp-avatar:hover .lp-avatar-overlay { opacity: 1; }

/* Pitch video circle */
.lp-pitch-wrap {
  position: absolute;
  left: calc(20px + 77px - 10px);
  top: 0;
  transform: translateY(calc((77px - 55px) / 2));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
  z-index: 2;
}
.lp-pitch {
  position: relative;
  width: 55px;
  height: 55px;
  border-radius: 9999px;
  background: #1a1a1a;
  border: 3px solid #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.lp-pitch-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #E8CC6E;
  font-size: 16px;
  background: rgba(0,0,0,.45);
  border-radius: 9999px;
}
.lp-pitch.is-set .lp-pitch-play { background: rgba(0,0,0,.25); color: #FFF4C2; }
.lp-pitch-label {
  font-size: 10px;
  color: var(--pb-text-muted);
  margin-top: 2px;
}

/* Identity text */
.lp-identity-text {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
  text-align: left;
  line-height: 1.4;
}
.lp-name-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.lp-name {
  font-family: 'Geist', system-ui, sans-serif;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--pb-text);
  line-height: 1.2;
}
.lp-verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--pb-grad);
  color: #000;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 9999px;
  letter-spacing: .01em;
  white-space: nowrap;
}
.lp-title-caps {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--pb-gold-main);
  margin: 0;
  line-height: 1.4;
}
.lp-title-sep { color: var(--pb-gold-main); opacity: .6; }
.lp-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  font-size: 11px;
  color: var(--pb-text-muted);
  line-height: 1.4;
}
.lp-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Tags */
.lp-tags-wrap { width: 100%; margin-top: 4px; }
.lp-tags-scroll {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: thin;
  padding-bottom: 4px;
}
.lp-tag {
  flex-shrink: 0;
  background: transparent;
  border: 1px solid var(--pb-gold-main);
  color: var(--pb-gold-main);
  font-size: 11px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 9999px;
  white-space: nowrap;
}

/* Contact strip */
.lp-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 24px;
  border-top: 1px solid var(--pb-border-soft);
  font-size: 12px;
  color: var(--pb-text-muted);
}
.lp-contact-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Sections */
.lp-sec {
  padding: 16px 24px;
  border-top: 1px solid var(--pb-border-soft);
}
.lp-sec-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--pb-gold-main);
  margin: 0 0 10px;
}
.lp-sec-empty {
  font-size: 12px;
  color: var(--pb-text-dim);
  font-style: italic;
}

/* Experience list */
.lp-xp-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 13px;
  color: var(--pb-text);
}
.lp-xp-head { font-size: 13px; }
.lp-xp-co { color: var(--pb-text-muted); font-weight: 500; }
.lp-xp-dates { font-size: 11px; color: var(--pb-text-dim); margin-top: 2px; }
.lp-xp-desc { margin: 6px 0 0; font-size: 12px; line-height: 1.5; color: var(--pb-text-muted); }
.lp-xp.is-pinned {
  border-left: 3px solid;
  border-image: var(--pb-grad) 1;
  padding-left: 10px;
}
.lp-xp-pin {
  display: inline-block;
  margin-right: 4px;
  font-size: 12px;
}

/* Education list */
.lp-edu-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.lp-edu-item { display: flex; flex-direction: column; gap: 2px; }
.lp-edu-school-row { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lp-edu-school { font-size: 14px; font-weight: 700; color: var(--pb-text); }
.lp-edu-diploma { font-size: 13px; color: var(--pb-text); font-weight: 500; }
.lp-edu-meta { font-size: 12px; color: var(--pb-text-muted); }

/* Career objectives */
.lp-co-card {
  background: var(--pb-surface-warm);
  border: 1px solid var(--pb-border-soft);
  border-radius: var(--pb-radius-sm);
  padding: 14px;
}
.lp-co-goal {
  font-size: 13px;
  color: var(--pb-text);
  font-style: italic;
  margin: 0 0 8px;
  line-height: 1.5;
}
.lp-co-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--pb-text-muted);
}

/* Portfolio sections */
.lp-pf-block { display: flex; flex-direction: column; gap: 12px; }
.lp-pf-block + .lp-pf-block { margin-top: 22px; }
.lp-pf-block-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 4px;
}
.lp-pf-section-title {
  margin: 0;
  font-family: 'Geist', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #A38543;
  white-space: nowrap;
  flex: 0 0 auto;
}
.lp-pf-section-rule {
  flex: 1 1 auto;
  height: 1px;
  background: linear-gradient(90deg, rgba(163,133,67,0.45) 0%, rgba(163,133,67,0.10) 100%);
}

/* Signature dishes grid */
.lp-sig-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.lp-sig { display: flex; flex-direction: column; gap: 0; }
.lp-sig-img {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  overflow: hidden;
  background: #F0EBE0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lp-sig-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lp-sig-badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: var(--pb-grad);
  color: #000000;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 9999px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(189, 151, 51, 0.35);
}
.lp-sig-meta { display: flex; flex-direction: column; gap: 2px; padding: 12px 0 8px; }
.lp-sig-name { font-size: 16px; font-weight: 700; color: #0A0A0A; line-height: 1.25; }
.lp-sig-sub { font-size: 13px; font-weight: 400; color: #777777; line-height: 1.35; }

/* References */
.lp-refs-sec { position: relative; }
.lp-refs-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.lp-refs-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.lp-ref-card {
  display: flex;
  gap: 12px;
  padding: 14px;
  background: #FAFAFA;
  border: 1px solid var(--pb-border-soft);
  border-radius: 12px;
}
.lp-ref-avatar {
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  background: var(--pb-grad);
  color: #000;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.lp-ref-body { flex: 1; min-width: 0; }
.lp-ref-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.lp-ref-name { font-size: 14px; font-weight: 700; color: var(--pb-text); }
.lp-ref-role { font-size: 12px; color: var(--pb-text-muted); margin-top: 2px; }
.lp-ref-quote {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--pb-text-muted);
  line-height: 1.5;
  font-style: italic;
}

/* Bottom bar */
.lp-bottombar {
  position: sticky;
  bottom: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: saturate(180%) blur(8px);
  border-top: 1px solid var(--pb-border);
  margin: 14px -24px 0;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.lp-ring-wrap { position: relative; width: 56px; height: 56px; flex-shrink: 0; }
.lp-ring { display: block; }
.lp-ring-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.lp-ring-text strong { font-size: 13px; font-weight: 700; color: var(--pb-text); }
.lp-ring-text span { font-size: 8px; color: var(--pb-text-muted); margin-top: 2px; letter-spacing: .04em; text-transform: uppercase; }
.lp-bottombar-meta { flex: 1; min-width: 0; }
.lp-bottombar-line { font-size: 11px; color: var(--pb-text-muted); line-height: 1.4; }
.lp-share-btn {
  background: var(--pb-grad);
  color: #000;
  font-weight: 700;
  font-size: 12px;
  border: none;
  padding: 10px 18px;
  border-radius: 9999px;
  cursor: pointer;
  font-family: inherit;
  transition: all .15s ease;
  white-space: nowrap;
  text-decoration: none;
}
.lp-share-btn:hover { background: #000; color: var(--pb-gold-main); }
.lp-share-btn:disabled, .lp-share-btn.is-disabled { opacity: .5; cursor: default; background: #F4F4F5; color: var(--pb-text-muted); pointer-events: none; }

/* Step placeholders */
.lp-step-placeholders {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lp-step-placeholder {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px dashed var(--pb-border);
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pb-text-dim);
  text-decoration: none;
}
.lp-step-placeholder:hover { border-color: var(--pb-gold-main); }
.lp-step-placeholder-label { color: var(--pb-text-muted); }
.lp-step-placeholder-step {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--pb-text-dim);
  margin-left: auto;
}
.lp-step-placeholder-lock { font-size: 12px; opacity: 0.6; }

/* EN COURS badge */
.lp-zone { position: relative; border: 2px dashed transparent; border-radius: 8px; transition: border-color 0.2s ease; }
.lp-zone.is-active { border-color: #A38543; background: rgba(163, 133, 67, 0.02); }
.lp-zone-top { padding: 0; overflow: hidden; }
.lp-encours-badge {
  position: absolute;
  top: 8px;
  left: 12px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  background: #A38543;
  color: #FFFFFF;
  font-size: 9.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 9px;
  border-radius: 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

/* ============ PROFILE INFO (right pane) ============ */
.pi-root { display: flex; flex-direction: column; gap: 14px; max-width: 640px; margin: 0 auto; }
.pi-stepped { gap: 16px; max-width: 560px; margin: 0 auto; }

/* Step header */
.pi-step-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--pb-border-soft);
}
.pi-step-head-top {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.pi-step-counter {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: var(--pb-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--pb-gold-main);
}
.pi-step-ai-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: rgba(163, 133, 67, 0.08);
  color: var(--pb-gold-main);
  border: 1px solid rgba(163, 133, 67, 0.25);
  padding: 4px 10px;
  border-radius: 9999px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
}
.pi-step-ai-chip:hover { background: var(--pb-grad); color: #000; border-color: transparent; }
.pi-step-title {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 4px 0 0;
  color: var(--pb-text);
}
.pi-step-sub {
  font-size: 12px;
  color: var(--pb-text-muted);
  margin: 0;
  line-height: 1.5;
}

/* Step body */
.pi-step-body { display: flex; flex-direction: column; gap: 12px; }

/* Media cards row */
.pi-media-cards {
  display: flex;
  align-items: stretch;
  gap: 14px;
  margin-bottom: 4px;
}
.pi-media-cell { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.pi-media-cell--banner { flex: 1 1 auto; }
.pi-media-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1.5px dashed rgba(163, 133, 67, 0.55);
  background-color: #FDF4E2;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  font-family: inherit;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
  padding: 0;
}
.pi-media-card.is-set { border-style: solid; border-color: var(--pb-gold-main); }
.pi-media-card.is-set .pi-media-card-icon { display: none; }
.pi-media-card--circle {
  width: 78px;
  height: 78px;
  border-radius: 9999px;
  flex-shrink: 0;
}
.pi-media-card--banner {
  width: 100%;
  height: 78px;
  border-radius: 10px;
}
.pi-media-card:hover {
  transform: translateY(-1px);
  border-color: rgba(163, 133, 67, 0.85);
  box-shadow: 0 6px 16px rgba(163,133,67,.18);
}
.pi-media-card-icon { font-size: 22px; line-height: 1; }
.pi-media-cell-label { font-size: 12px; font-weight: 700; color: var(--pb-text); line-height: 1.2; text-align: center; }
.pi-media-cell-optional { font-size: 10px; font-weight: 400; color: var(--pb-text-dim); margin-left: 2px; }

/* Form primitives */
.pi-grid { display: grid; gap: 14px; margin-top: 14px; }
.pi-grid-2 { grid-template-columns: 1fr 1fr; }
.pi-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pi-field.is-full { grid-column: 1 / -1; }
.pi-field-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--pb-text-muted);
  text-transform: uppercase;
}
.pi-req { color: var(--pb-gold-main); margin-left: 2px; font-weight: 700; }
.pi-input {
  width: 100%;
  background: var(--pb-surface-warm);
  border: 1px solid var(--pb-border-soft);
  border-radius: var(--pb-radius-sm);
  padding: 8px 12px;
  height: 38px;
  font-size: 13px;
  color: var(--pb-text);
  font-family: inherit;
  transition: border-color .15s ease;
  box-sizing: border-box;
}
.pi-input:focus {
  outline: none;
  background: #fff;
  border-color: var(--pb-gold-main);
  box-shadow: 0 0 0 3px rgba(163,133,67,.12);
}
textarea.pi-input { height: auto; min-height: 80px; resize: vertical; line-height: 1.5; }
select.pi-input { appearance: none; cursor: pointer; }

/* Privacy banner */
.pi-privacy-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #FFF8E1;
  border: 1px solid #F0DDA0;
  border-radius: 8px;
  padding: 10px 14px;
  color: #7A5C00;
}
.pi-privacy-icon { flex-shrink: 0; margin-top: 2px; color: #B8860B; }
.pi-privacy-body { flex: 1; min-width: 0; }
.pi-privacy-title { display: block; font-size: 13px; font-weight: 700; color: #5C4400; line-height: 1.3; }
.pi-privacy-sub { margin: 4px 0 0; font-size: 13px; color: rgba(138,105,20,0.8); line-height: 1.4; }

/* Chips */
.pi-chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.pi-chip {
  background: transparent;
  border: 1px solid #E4E4E7;
  border-radius: 9999px;
  padding: 6px 14px;
  font-size: 13px;
  font-family: inherit;
  color: var(--pb-text);
  cursor: pointer;
  transition: all .15s ease;
}
.pi-chip:hover { border-color: var(--pb-gold-main); color: var(--pb-gold-main); }
.pi-chip.is-active {
  background: var(--pb-grad);
  border-color: transparent;
  color: #000;
  font-weight: 700;
}
.pi-private-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--pb-text-muted);
  margin-bottom: 8px;
}

/* Step footer */
.pi-step-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding-top: 14px;
  margin-top: 16px;
  border-top: 1px solid var(--pb-border-soft);
}
.pi-step-cta {
  width: 100%;
  max-width: 420px;
  background: var(--pb-grad);
  color: #000;
  font-weight: 700;
  font-size: 14px;
  border: none;
  padding: 14px 22px;
  border-radius: 9999px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.18s ease;
  letter-spacing: -0.01em;
}
.pi-step-cta:hover { background: #000; color: var(--pb-gold-main); }
.pi-step-skip {
  background: none;
  border: none;
  font-size: 12px;
  font-weight: 500;
  color: var(--pb-text-dim);
  cursor: pointer;
  font-family: inherit;
  padding: 2px 6px;
  text-decoration: none;
  transition: color 0.15s ease;
}
.pi-step-skip:hover { color: var(--pb-text); text-decoration: underline; }

/* Location icon helper */
.pi-loc-icon-wrap { position: relative; }
.pi-loc-icon-wrap .pi-input { padding-left: 32px; }
.pi-loc-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--pb-text-dim);
  pointer-events: none;
}

/* ============ EDITOR EXTRAS (steps 2–6, same DS) ============ */
/* Repeatable rows (experiences / educations / references) */
.pi-row {
  position: relative;
  background: var(--pb-surface-warm);
  border: 1px solid var(--pb-border-soft);
  border-radius: var(--pb-radius);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pi-row + .pi-row { margin-top: 10px; }
.pi-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.pi-row-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--pb-gold-main);
}
.pi-row-remove {
  background: none;
  border: 1px solid var(--pb-border);
  color: var(--pb-text-muted);
  border-radius: 9999px;
  width: 24px;
  height: 24px;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all .15s ease;
}
.pi-row-remove:hover { border-color: #C8102E; color: #C8102E; }
.pi-add-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  background: #fff;
  border: 1.5px dashed rgba(163,133,67,.55);
  color: var(--pb-gold-deep);
  border-radius: var(--pb-radius);
  padding: 11px 14px;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all .15s ease;
}
.pi-add-row:hover { border-color: var(--pb-gold-main); background: #FDF4E2; }
.pi-check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--pb-text-muted);
}
.pi-check-row input[type="checkbox"] { width: 15px; height: 15px; accent-color: #BD9733; cursor: pointer; }

/* Gallery uploader (portfolio) */
.pi-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.pi-gallery-item {
  aspect-ratio: 1 / 1;
  border-radius: var(--pb-radius-sm);
  overflow: hidden;
  background: #F0EBE0;
}
.pi-gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pi-gallery-add {
  aspect-ratio: 1 / 1;
  border: 1.5px dashed rgba(163,133,67,.55);
  border-radius: var(--pb-radius-sm);
  background: #FDF4E2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  color: var(--pb-gold-deep);
  font-size: 11px;
  font-weight: 600;
}
.pi-gallery-add:hover { border-color: var(--pb-gold-main); }
.pi-gallery-add-icon { font-size: 22px; }

/* Compact scaling for right panel */
.pb-pane-right .pi-root,
.pb-pane-right .pi-stepped { zoom: 0.85; }
.pb-pane-right .pi-stepped { gap: 8px; max-width: 480px; }
.pb-pane-right .pi-step-head { gap: 2px; padding: 0 0 6px; }
.pb-pane-right .pi-step-counter { font-size: 9px; }
.pb-pane-right .pi-step-title { font-size: 14px; margin-top: 2px; }
.pb-pane-right .pi-step-sub { font-size: 10px; line-height: 1.4; }
.pb-pane-right .pi-step-body { gap: 8px; }
.pb-pane-right .pi-grid { gap: 8px; margin-top: 6px; }
.pb-pane-right .pi-field { gap: 3px; }
.pb-pane-right .pi-field-label { font-size: 10px; }
.pb-pane-right .pi-input { font-size: 12px; height: 30px; padding: 5px 10px; border-radius: 7px; }
.pb-pane-right textarea.pi-input { height: auto; min-height: 56px; }
.pb-pane-right .pi-step-ai-chip { font-size: 9px; padding: 3px 8px; }
.pb-pane-right .pi-step-footer { padding-top: 8px; margin-top: 10px; gap: 6px; }
.pb-pane-right .pi-step-cta { font-size: 12px; padding: 9px 18px; max-width: 320px; }
.pb-pane-right .pi-step-skip { font-size: 11px; }
.pb-pane-right .pi-media-cards { gap: 12px; margin-bottom: 2px; }
.pb-pane-right .pi-media-cell { gap: 4px; }
.pb-pane-right .pi-privacy-banner { padding: 6px 10px; gap: 8px; border-radius: 6px; }
.pb-pane-right .pi-privacy-title { font-size: 11px; line-height: 1.25; }
.pb-pane-right .pi-privacy-sub { font-size: 10px; line-height: 1.3; margin-top: 2px; }
.pb-pane-right .pi-chip-row { gap: 5px; }
.pb-pane-right .pi-chip { padding: 4px 10px; font-size: 11px; }

/* Responsive */
@media (max-width: 900px) {
  .pb-pane-head-row { grid-template-columns: 1fr; }
  .pb-split { grid-template-columns: 1fr; }
  .pb-pane-left {
    position: static;
    max-height: none;
    overflow: visible;
    border-right: none;
    border-bottom: 1px solid var(--pb-border);
  }
}
@media (max-width: 760px) {
  .pb-step-label { display: none; }
  .pb-step-line { width: 16px; margin: 0 6px; }
}
