html:has(.profile-builder-page) {
  zoom: 1;
}

body:has(.profile-builder-page) {
  margin: 0;
  overflow-x: hidden;
  background: #f8f6fc;
  color: #111738;
  font-family: "Inter", "Cairo", system-ui, sans-serif;
}

.profile-builder-page,
.profile-builder-page *,
.profile-builder-dialog,
.profile-builder-dialog * {
  box-sizing: border-box;
}

.profile-builder-page {
  --pb-ink: #111738;
  --pb-muted: #6d7390;
  --pb-soft: #f4f0fa;
  --pb-soft-strong: #ebe4f4;
  --pb-border: #e7e4ef;
  --pb-border-strong: #d9d3e7;
  --pb-purple: #7e65a5;
  --pb-purple-strong: #624682;
  --pb-purple-deep: #4f3472;
  --pb-green: #25b985;
  --pb-green-soft: #eaf9f3;
  --pb-gold: #f2b94b;
  --pb-shadow: 0 24px 68px rgba(32, 28, 82, 0.12);
  --pb-shell-block-padding: clamp(1.2rem, 3vw, 2.35rem);
  display: flex;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 0;
  background:
    linear-gradient(90deg, #f8f6fc 0%, #f8f6fc 27%, #ffffff 27%, #ffffff 67%, #faf8ff 67%, #f3eefc 100%);
}

.profile-builder-page button,
.profile-builder-page input,
.profile-builder-page textarea {
  font: inherit;
}

.profile-builder-page button {
  cursor: pointer;
}

.profile-builder-shell {
  display: grid;
  grid-template-columns: minmax(220px, 250px) minmax(520px, 600px) minmax(400px, 460px);
  gap: clamp(1rem, 2vw, 1.75rem);
  align-items: stretch;
  width: min(calc(100% - clamp(2rem, 5vw, 4.5rem)), 1460px);
  min-height: 100vh;
  min-height: 100dvh;
  padding: var(--pb-shell-block-padding) 0;
}

.profile-builder-rail,
.profile-builder-workspace,
.profile-builder-preview-column {
  min-width: 0;
}

.profile-builder-rail {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - clamp(2.4rem, 6vw, 4.7rem));
  min-height: calc(100dvh - clamp(2.4rem, 6vw, 4.7rem));
  border: 1px solid rgba(231, 228, 239, 0.92);
  border-radius: 28px;
  padding: clamp(1.15rem, 2vw, 1.5rem);
  background: rgba(248, 246, 252, 0.86);
}

.profile-builder-rail-brand,
.profile-builder-mobile-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.62rem;
  width: fit-content;
  color: var(--pb-ink);
  text-decoration: none;
  font-weight: 700;
}

.profile-builder-rail-brand img,
.profile-builder-mobile-brand img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.profile-builder-rail-intro {
  margin: clamp(1.6rem, 4vh, 2.55rem) 0 clamp(1.2rem, 3vh, 1.8rem);
}

.profile-builder-rail-intro p {
  margin: 0 0 0.45rem;
  color: var(--pb-purple);
  font-size: 0.82rem;
  font-weight: 500;
}

.profile-builder-rail-intro h1 {
  margin: 0;
  max-width: 10.6rem;
  color: var(--pb-ink);
  font-size: clamp(1.28rem, 2vw, 1.58rem);
  line-height: 1.18;
  font-weight: 600;
  letter-spacing: 0;
}

.profile-builder-progress {
  position: relative;
  display: grid;
  --pb-step-gap: 0.28rem;
  --pb-step-inline-padding: 0.45rem;
  --pb-step-block-padding: 0.68rem;
  --pb-step-size: 2.08rem;
  gap: var(--pb-step-gap);
  margin: 0;
  padding: 0.25rem 0;
}

.profile-builder-step-chip:not(:last-child)::before {
  content: "";
  position: absolute;
  inset-block-start: calc(var(--pb-step-block-padding) + var(--pb-step-size) / 2);
  block-size: calc(100% + var(--pb-step-gap));
  inset-inline-start: calc(var(--pb-step-inline-padding) + (var(--pb-step-size) - 1px) / 2);
  z-index: 0;
  width: 1px;
  background: linear-gradient(180deg, rgba(126, 101, 165, 0.28), rgba(231, 228, 239, 0.96));
}

.profile-builder-step-chip {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: var(--pb-step-size) minmax(0, 1fr);
  gap: 0.78rem;
  align-items: start;
  min-width: 0;
  border: 0;
  border-radius: 18px;
  padding-block: var(--pb-step-block-padding);
  padding-inline: var(--pb-step-inline-padding);
  color: var(--pb-muted);
  background: transparent;
  text-align: start;
}

.profile-builder-step-number {
  position: relative;
  z-index: 2;
  display: grid;
  width: var(--pb-step-size);
  height: var(--pb-step-size);
  min-width: var(--pb-step-size);
  place-items: center;
  border: 1px solid var(--pb-border-strong);
  border-radius: 50%;
  color: var(--pb-muted);
  background: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  text-align: center;
}

.profile-builder-step-number-text,
.profile-builder-step-check {
  grid-area: 1 / 1;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  line-height: 1;
}

.profile-builder-step-check {
  display: none;
  color: #fff;
  font-size: 1.02rem;
}

.profile-builder-step-copy {
  display: grid;
  gap: 0.16rem;
  padding-block-start: 0.14rem;
}

.profile-builder-step-label {
  color: var(--pb-ink);
  font-size: 0.98rem;
  font-weight: 600;
}

.profile-builder-step-description {
  color: var(--pb-muted);
  font-size: 0.83rem;
  line-height: 1.38;
  font-weight: 400;
}

.profile-builder-step-chip.is-active .profile-builder-step-number {
  border-color: var(--pb-purple);
  color: #fff;
  background: var(--pb-purple);
  box-shadow: 0 10px 20px rgba(126, 101, 165, 0.22);
}

.profile-builder-step-chip.is-complete .profile-builder-step-number {
  border-color: #6bcfa9;
  color: #fff;
  background: #62c9a4;
}

.profile-builder-step-chip.is-complete .profile-builder-step-number-text {
  display: none;
}

.profile-builder-step-chip.is-complete .profile-builder-step-check {
  display: grid;
}

.profile-builder-step-chip.is-complete .profile-builder-step-label {
  color: #18745f;
}

.profile-builder-rail-footer {
  display: grid;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 1.2rem;
}

.profile-builder-rail-footer .language-switcher {
  width: 100%;
}

.profile-builder-rail-footer .language-switcher-toggle,
.profile-builder-save-exit,
.profile-builder-top-back,
.profile-builder-secondary,
.profile-builder-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  border-radius: 14px;
  padding: 0.72rem 1rem;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.profile-builder-rail-footer .language-switcher-toggle,
.profile-builder-save-exit,
.profile-builder-top-back,
.profile-builder-secondary {
  color: var(--pb-ink);
  background: #fff;
  border-color: rgba(126, 101, 165, 0.18);
}

.profile-builder-save-exit {
  width: 100%;
}

.profile-builder-rail-footer p {
  margin: 0;
  color: var(--pb-muted);
  font-size: 0.82rem;
  line-height: 1.42;
}

.profile-builder-primary {
  min-width: 12rem;
  color: #fff;
  background: linear-gradient(135deg, var(--pb-purple), var(--pb-purple-deep));
  box-shadow: 0 18px 34px rgba(126, 101, 165, 0.28);
}

.profile-builder-top-back:hover,
.profile-builder-top-back:focus-visible,
.profile-builder-save-exit:hover,
.profile-builder-save-exit:focus-visible,
.profile-builder-secondary:hover,
.profile-builder-secondary:focus-visible,
.profile-builder-primary:hover,
.profile-builder-primary:focus-visible {
  transform: translateY(-1px);
}

.profile-builder-primary:hover,
.profile-builder-primary:focus-visible {
  box-shadow: 0 24px 42px rgba(126, 101, 165, 0.34);
}

.profile-builder-top-back:focus-visible,
.profile-builder-step-chip:focus-visible,
.profile-builder-save-exit:focus-visible,
.profile-builder-secondary:focus-visible,
.profile-builder-primary:focus-visible,
.profile-builder-suggestion-group button:focus-visible,
.profile-builder-example-group button:focus-visible,
.profile-builder-style-options input:focus-visible + span {
  outline: 3px solid rgba(126, 101, 165, 0.24);
  outline-offset: 3px;
}

.profile-builder-workspace {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - clamp(2.4rem, 6vw, 4.7rem));
  min-height: calc(100dvh - clamp(2.4rem, 6vw, 4.7rem));
  border-inline: 1px solid rgba(231, 228, 239, 0.72);
  border-radius: 28px;
  background: #fff;
}

.profile-builder-mobile-bar {
  display: none;
}

.profile-builder-mobile-progress {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  color: var(--pb-muted);
  font-size: 0.88rem;
  line-height: 1;
  font-weight: 500;
}

.profile-builder-mobile-progress strong,
.profile-builder-mobile-progress [data-current-step-label] {
  color: var(--pb-ink);
  font-weight: 600;
}

.profile-builder-card {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  padding: clamp(1.25rem, 2.5vw, 2rem) clamp(1.15rem, 2.7vw, 2.15rem);
}

.profile-builder-center-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 46px;
  flex: 0 0 auto;
  margin-bottom: clamp(0.65rem, 2vh, 1rem);
}

.profile-builder-center-top > div {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.profile-builder-top-back {
  min-height: 38px;
  padding: 0.52rem 0.78rem;
  border-radius: 999px;
  color: var(--pb-muted);
  font-size: 0.9rem;
  background: #faf9fc;
}

.profile-builder-top-back.is-hidden {
  display: none;
}

.profile-builder-step-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.36rem;
  color: var(--pb-muted);
  font-size: 0.92rem;
  font-weight: 500;
}

.profile-builder-step-eyebrow [data-current-step-number],
.profile-builder-step-eyebrow [data-current-step-label] {
  color: var(--pb-ink);
  font-weight: 600;
}

.profile-builder-save-status {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border-radius: 999px;
  padding: 0.35rem 0.72rem;
  color: #18745f;
  background: var(--pb-green-soft);
  font-size: 0.84rem;
  font-weight: 600;
  white-space: nowrap;
}

.profile-builder-save-status.is-saving {
  color: var(--pb-muted);
  background: #f6f4fa;
}

.profile-builder-save-status.is-error {
  color: #a33737;
  background: #fff0f0;
}

.profile-builder-step-header {
  display: grid;
  flex: 0 0 auto;
  margin-bottom: clamp(1rem, 3vh, 1.8rem);
}

.profile-builder-page.is-ready .profile-builder-step-header,
.profile-builder-step-header .profile-builder-section-heading {
  display: none;
  margin: 0;
}

.profile-builder-step-header .profile-builder-section-heading.is-active {
  display: block;
}

.profile-builder-form {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.profile-builder-form-scroll {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-inline-end: 0.2rem;
  scrollbar-gutter: stable;
}

.profile-builder-form-scroll > .profile-builder-step-panel > .profile-builder-section-heading {
  display: none;
}

.profile-builder-step-panel {
  display: none;
  min-height: 0;
}

.profile-builder-step-panel.is-active {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.profile-builder-section-heading {
  margin-bottom: 1.2rem;
}

.profile-builder-step-panel[data-step-panel="you"] .profile-builder-section-heading {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.profile-builder-section-heading h2 {
  margin: 0 0 0.38rem;
  color: var(--pb-ink);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  line-height: 1.1;
  font-weight: 600;
}

.profile-builder-section-heading p {
  max-width: 34rem;
  margin: 0;
  color: var(--pb-muted);
  font-size: 1rem;
  line-height: 1.55;
  font-weight: 400;
}

.profile-builder-you-micro-progress {
  display: inline-flex;
  align-items: center;
  gap: 0.68rem;
  width: fit-content;
  margin-bottom: clamp(1.2rem, 4vh, 2.1rem);
  color: var(--pb-muted);
  font-size: 0.92rem;
  font-weight: 500;
}

.profile-builder-you-micro-label {
  color: var(--pb-purple);
  font-weight: 600;
}

.profile-builder-you-micro-count {
  color: var(--pb-muted);
}

.profile-builder-you-micro-dots {
  display: inline-flex;
  gap: 0.35rem;
}

.profile-builder-you-micro-dots span {
  display: block;
  width: 0.44rem;
  height: 0.44rem;
  border-radius: 999px;
  background: #ded7ea;
}

.profile-builder-you-micro-dots .is-active {
  width: 1.1rem;
  background: var(--pb-purple);
}

.profile-builder-subquestions {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
}

.profile-builder-subquestion {
  display: none;
}

.profile-builder-subquestion.is-active {
  display: flex;
  flex: 1;
  flex-direction: column;
  animation: profile-builder-subquestion-enter 220ms ease both;
}

.profile-builder-question {
  display: grid;
  gap: 0.85rem;
  margin: 0;
  color: var(--pb-ink);
}

.profile-builder-question.is-current .profile-builder-question-label {
  color: var(--pb-ink);
}

.profile-builder-question-label {
  display: block;
  max-width: 11.2em;
  color: var(--pb-ink);
  font-size: clamp(2.62rem, 4.25vw, 3.2rem);
  line-height: 1.06;
  font-weight: 600;
  letter-spacing: 0;
}

.profile-builder-question-label:focus {
  outline: 0;
}

.profile-builder-question-label:focus-visible {
  border-radius: 10px;
  outline: 3px solid rgba(126, 101, 165, 0.2);
  outline-offset: 4px;
}

.profile-builder-question-hint {
  max-width: 34rem;
  color: var(--pb-muted);
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  line-height: 1.55;
  font-weight: 400;
}

.profile-builder-question input,
.profile-builder-question textarea,
.profile-builder-question select,
.profile-builder-service-editor input,
.profile-builder-service-editor textarea,
.profile-builder-service-editor select,
.profile-builder-channel-fields input,
.profile-builder-add-link select {
  width: 100%;
  min-height: 64px;
  border: 1px solid var(--pb-border);
  border-radius: 18px;
  padding: 1rem 1.1rem;
  color: var(--pb-ink);
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  font-size: clamp(1.05rem, 1.5vw, 1.16rem);
  line-height: 1.4;
}

.profile-builder-question textarea,
.profile-builder-service-editor textarea {
  min-height: 148px;
  resize: vertical;
}

.profile-builder-question input::placeholder,
.profile-builder-question textarea::placeholder,
.profile-builder-service-editor input::placeholder,
.profile-builder-service-editor textarea::placeholder,
.profile-builder-channel-fields input::placeholder {
  color: #9aa0b5;
}

.profile-builder-question input:focus,
.profile-builder-question textarea:focus,
.profile-builder-question select:focus,
.profile-builder-service-editor input:focus,
.profile-builder-service-editor textarea:focus,
.profile-builder-service-editor select:focus,
.profile-builder-channel-fields input:focus,
.profile-builder-add-link select:focus {
  border-color: rgba(126, 101, 165, 0.72);
  outline: 4px solid rgba(126, 101, 165, 0.14);
}

.profile-builder-suggestion-group,
.profile-builder-example-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.profile-builder-suggestion-group button,
.profile-builder-example-group button {
  border: 1px solid rgba(126, 101, 165, 0.2);
  border-radius: 999px;
  padding: 0.66rem 0.9rem;
  color: var(--pb-ink);
  background: #fbf9ff;
  font-size: 0.92rem;
  font-weight: 500;
}

.profile-builder-example-group {
  display: grid;
  grid-template-columns: 1fr;
}

.profile-builder-example-group button {
  align-items: start;
  justify-content: start;
  border-radius: 18px;
  padding: 0.85rem 0.95rem;
  text-align: start;
}

.profile-builder-example-group span {
  display: block;
  margin-top: 0.28rem;
  color: var(--pb-muted);
  font-size: 0.9rem;
  line-height: 1.45;
  font-weight: 400;
}

.profile-builder-channel-grid,
.profile-builder-style-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.profile-builder-builder-card {
  min-height: 0;
}

.profile-builder-service-list,
.profile-builder-channel-list,
.profile-builder-ready-checklist {
  display: grid;
  gap: 0.72rem;
}

.profile-builder-service-empty,
.profile-builder-preview-empty {
  margin: 0;
  color: var(--pb-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.profile-builder-service-item,
.profile-builder-channel-row,
.profile-builder-service-editor,
.profile-builder-add-link {
  border: 1px solid rgba(231, 228, 239, 0.92);
  border-radius: 18px;
  padding: 0.95rem;
  background: #fff;
  box-shadow: 0 12px 30px rgba(41, 33, 84, 0.06);
}

.profile-builder-service-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.85rem;
  align-items: center;
}

.profile-builder-service-item strong,
.profile-builder-preview-service strong {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--pb-ink);
  font-weight: 650;
}

.profile-builder-service-item p {
  margin: 0.18rem 0 0;
  color: var(--pb-muted);
  font-size: 0.92rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.profile-builder-service-item span,
.profile-builder-preview-service span {
  display: inline-flex;
  width: fit-content;
  margin-top: 0.42rem;
  border-radius: 999px;
  padding: 0.25rem 0.55rem;
  color: var(--pb-purple-deep);
  background: #f3eefb;
  font-size: 0.78rem;
  font-weight: 650;
}

.profile-builder-mini-actions,
.profile-builder-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

.profile-builder-mini-actions {
  justify-content: end;
}

.profile-builder-mini-actions button,
.profile-builder-text-button {
  border: 0;
  border-radius: 999px;
  padding: 0.5rem 0.7rem;
  color: var(--pb-purple);
  background: #f7f3fc;
  font-size: 0.86rem;
  font-weight: 650;
}

.profile-builder-text-button {
  background: transparent;
}

.profile-builder-service-editor {
  display: grid;
  gap: 0.85rem;
}

.profile-builder-service-editor[hidden],
.profile-builder-add-link[hidden] {
  display: none;
}

.profile-builder-service-editor label,
.profile-builder-add-link label {
  display: grid;
  gap: 0.42rem;
  color: var(--pb-ink);
  font-size: 0.9rem;
  font-weight: 650;
}

.profile-builder-service-price-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr) minmax(5.5rem, 0.35fr);
  gap: 0.7rem;
}

.profile-builder-service-price-row label[hidden] {
  display: none;
}

.profile-builder-channel-row {
  display: grid;
  gap: 0.78rem;
}

.profile-builder-channel-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.72rem;
  align-items: center;
}

.profile-builder-channel-head strong {
  color: var(--pb-ink);
  font-weight: 650;
}

.profile-builder-channel-icon {
  display: grid;
  width: 2.45rem;
  height: 2.45rem;
  place-items: center;
  border-radius: 50%;
  color: var(--pb-purple);
  background: #f1ebfa;
}

.profile-builder-switch {
  position: relative;
  display: inline-grid;
  width: 3.25rem;
  height: 1.82rem;
  cursor: pointer;
}

.profile-builder-switch input {
  position: absolute;
  opacity: 0;
}

.profile-builder-switch span {
  border-radius: 999px;
  background: #ddd7e8;
  transition: background 180ms ease;
}

.profile-builder-switch span::before {
  content: "";
  position: absolute;
  inset-block-start: 0.24rem;
  inset-inline-start: 0.25rem;
  width: 1.34rem;
  height: 1.34rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 12px rgba(35, 28, 80, 0.18);
  transition: transform 180ms ease;
}

.profile-builder-switch input:checked + span {
  background: var(--pb-purple);
}

.profile-builder-switch input:checked + span::before {
  transform: translateX(1.42rem);
}

html[dir="rtl"] .profile-builder-switch input:checked + span::before {
  transform: translateX(-1.42rem);
}

.profile-builder-channel-fields {
  display: grid;
  gap: 0.58rem;
}

.profile-builder-phone-input {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 7fr);
  gap: 0.65rem;
  align-items: end;
  min-inline-size: 0;
}

.profile-builder-phone-input label {
  display: grid;
  gap: 0.45rem;
  min-inline-size: 0;
}

.profile-builder-phone-input input,
.profile-builder-phone-input select {
  inline-size: 100%;
  min-inline-size: 0;
  min-block-size: 44px;
}

@media (max-width: 420px) {
  .profile-builder-phone-input { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 0.4rem; }
  .profile-builder-phone-input select { padding-inline: 0.3rem; }
}

.profile-builder-phone-input select {
  inline-size: 100%;
  min-block-size: 44px;
  min-inline-size: 0;
  border: 1px solid var(--pb-border-strong);
  border-radius: 14px;
  padding: 0.7rem;
  background: #fff;
  color: var(--pb-ink);
  font: inherit;
}

.profile-builder-field-error {
  display: block;
  color: #a42b43;
  font-size: 0.86rem;
  margin-block-start: 0.35rem;
}

.profile-builder-channel-fields[hidden] {
  display: none;
}

.profile-builder-channel-feedback {
  margin: -0.18rem 0 0;
  color: #9f2d55;
  font-size: 0.85rem;
  line-height: 1.42;
}

.profile-builder-channel-row.has-validation {
  border-color: rgba(159, 45, 85, 0.24);
  background: #fffafb;
}

.profile-builder-channel-row.has-validation .profile-builder-channel-fields input[aria-invalid="true"] {
  border-color: rgba(159, 45, 85, 0.48);
  outline-color: rgba(159, 45, 85, 0.12);
}

.profile-builder-add-link {
  display: grid;
  gap: 0.8rem;
}

.profile-builder-channel-grid .profile-builder-question-label,
.profile-builder-style-options span {
  font-size: 1rem;
  line-height: 1.35;
}

.profile-builder-style-options label {
  display: block;
}

.profile-builder-style-options input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.profile-builder-style-options > label > span {
  display: grid;
  grid-template-columns: 4.25rem minmax(0, 1fr);
  min-height: 82px;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid var(--pb-border);
  border-radius: 18px;
  padding: 0.72rem 0.82rem;
  color: var(--pb-ink);
  background: #fff;
  font-weight: 500;
}

.profile-builder-style-options input:checked + span {
  border-color: rgba(126, 101, 165, 0.48);
  background: #fbf9ff;
  box-shadow: 0 12px 28px rgba(126, 101, 165, 0.12);
}

.profile-builder-style-options input:checked + span::after {
  content: "✓";
  display: grid;
  position: absolute;
  width: 1.55rem;
  height: 1.55rem;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--pb-purple);
  font-size: 0.85rem;
}

.profile-builder-style-card > span {
  position: relative;
}

.profile-builder-style-card > span::after {
  inset-block-start: 0.52rem;
  inset-inline-end: 0.52rem;
}

.profile-builder-style-mini {
  display: grid;
  grid-template-areas:
    "cover cover"
    "avatar identity"
    "actions actions"
    "cta card";
  grid-template-columns: 1rem minmax(0, 1fr);
  grid-template-rows: 1.15rem auto auto auto;
  gap: 0.2rem 0.28rem;
  height: 3.7rem;
  min-width: 0;
  overflow: hidden;
  border-radius: 14px;
  padding: 0.42rem;
  background: linear-gradient(135deg, #efe8f9, #7e65a5);
}

.profile-builder-style-mini > span,
.profile-builder-style-mini-actions span {
  display: block;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
}

.profile-builder-style-mini-cover {
  grid-area: cover;
  min-height: 1.05rem;
  border-radius: 10px;
}

.profile-builder-style-mini-avatar {
  grid-area: avatar;
  width: 1rem;
  height: 1rem;
  align-self: center;
  box-shadow: 0 0 0 2px rgba(255,255,255,.38);
}

.profile-builder-style-mini-identity {
  grid-area: identity;
  align-self: center;
  height: 0.42rem;
}

.profile-builder-style-mini-actions {
  grid-area: actions;
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.18rem;
  background: transparent !important;
}

.profile-builder-style-mini-actions span {
  height: 0.42rem;
}

.profile-builder-style-mini-cta {
  grid-area: cta;
  height: 0.46rem;
}

.profile-builder-style-mini-card {
  grid-area: card;
  height: 0.46rem;
  border-radius: 0.28rem !important;
}

[data-style-mini="professional"] {
  background: linear-gradient(135deg, #eff9ff, #0ea5e9);
  grid-template-areas:
    "cover cover"
    "avatar identity"
    "actions actions"
    "card card";
}

[data-style-mini="professional"] .profile-builder-style-mini-cover {
  min-height: 0.82rem;
}

[data-style-mini="professional"] .profile-builder-style-mini-avatar {
  border-radius: 0.32rem;
}

[data-style-mini="professional"] .profile-builder-style-mini-actions span {
  border-radius: 0.28rem;
}

[data-style-mini="professional"] .profile-builder-style-mini-cta {
  display: none;
}

[data-style-mini="bold"] {
  background: radial-gradient(circle at 25% 20%, #fbcfe8, transparent 36%), linear-gradient(135deg, #a21caf, #e11d48);
  grid-template-columns: 1.1rem minmax(0, 1fr);
  grid-template-rows: 1.35rem auto auto auto;
}

[data-style-mini="bold"] .profile-builder-style-mini-cover {
  border-bottom-left-radius: 1rem;
  border-bottom-right-radius: 1rem;
}

[data-style-mini="bold"] .profile-builder-style-mini-avatar {
  width: 1.15rem;
  height: 1.15rem;
}

[data-style-mini="bold"] .profile-builder-style-mini-actions span,
[data-style-mini="bold"] .profile-builder-style-mini-card {
  border-radius: 0.52rem !important;
}

[data-style-mini="minimal"] {
  background: linear-gradient(135deg, #ffffff, #eefdf6);
  grid-template-areas:
    "avatar identity"
    "actions actions"
    "card card"
    "card card";
  border: 1px solid rgba(16, 185, 129, 0.25);
}

[data-style-mini="minimal"] .profile-builder-style-mini-cover,
[data-style-mini="minimal"] .profile-builder-style-mini-cta {
  display: none;
}

[data-style-mini="minimal"] .profile-builder-style-mini-avatar,
[data-style-mini="minimal"] .profile-builder-style-mini-identity,
[data-style-mini="minimal"] .profile-builder-style-mini-actions span,
[data-style-mini="minimal"] .profile-builder-style-mini-card {
  background: rgba(16, 185, 129, 0.36);
}

[data-style-mini="elegant"] {
  background: linear-gradient(135deg, #1e1630, #4c1d95);
  grid-template-areas:
    "cover cover"
    "avatar avatar"
    "identity identity"
    "actions actions";
}

[data-style-mini="elegant"] .profile-builder-style-mini-cover {
  border-bottom-left-radius: 1rem;
  border-bottom-right-radius: 1rem;
}

[data-style-mini="elegant"] .profile-builder-style-mini-avatar {
  justify-self: center;
  border-radius: 0.35rem;
}

[data-style-mini="elegant"] .profile-builder-style-mini-identity {
  justify-self: center;
  width: 70%;
}

[data-style-mini="elegant"] .profile-builder-style-mini-cta,
[data-style-mini="elegant"] .profile-builder-style-mini-card {
  display: none;
}

.profile-builder-accent-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 0.62rem;
  margin-top: 1rem;
}

.profile-builder-accent-swatches button {
  width: 2.4rem;
  height: 2.4rem;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--swatch-color);
  box-shadow: 0 0 0 1px rgba(126, 101, 165, 0.18), 0 10px 20px rgba(34, 28, 76, 0.14);
}

.profile-builder-accent-swatches button.is-selected {
  box-shadow: 0 0 0 3px rgba(126, 101, 165, 0.24), 0 10px 20px rgba(34, 28, 76, 0.14);
}

.profile-builder-validation {
  margin-bottom: 0.7rem;
  border: 1px solid rgba(163, 55, 55, 0.18);
  border-radius: 14px;
  padding: 0.75rem 0.9rem;
  color: #8f2e2e;
  background: #fff6f6;
  font-size: 0.92rem;
  font-weight: 600;
}

.profile-builder-validation[hidden] {
  display: none;
}

.profile-builder-ready-panel {
  text-align: center;
  display: grid;
  gap: 1.2rem;
  margin-block: auto;
}

.profile-builder-ready-panel[hidden] {
  display: none;
}

.profile-builder-ready-hero {
  display: grid;
  justify-items: center;
  gap: 0.55rem;
}

.profile-builder-ready-icon {
  justify-self: center;
  display: grid;
  width: 4.2rem;
  height: 4.2rem;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--pb-green);
  font-size: 2rem;
  box-shadow: 0 18px 34px rgba(37, 185, 133, 0.24);
}

.profile-builder-ready-hero p {
  margin: 0;
  color: var(--pb-muted);
  line-height: 1.55;
}

.profile-builder-ready-hero > p:first-of-type {
  color: var(--pb-purple);
  font-weight: 700;
}

.profile-builder-ready-hero h2 {
  margin: 0;
  color: var(--pb-ink);
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  line-height: 1.05;
  font-weight: 650;
}

.profile-builder-ready-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.profile-builder-ready-checklist li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  border: 1px solid rgba(37, 185, 133, 0.18);
  border-radius: 16px;
  padding: 0.8rem 0.9rem;
  color: #156b57;
  background: var(--pb-green-soft);
  font-weight: 650;
}

.profile-builder-ready-actions {
  display: grid;
  gap: 0.6rem;
  justify-items: center;
}

.profile-builder-ready-actions p {
  max-width: 26rem;
  margin: 0;
  color: var(--pb-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.profile-builder-form-actions {
  flex: 0 0 auto;
  margin-top: 0;
  border-top: 1px solid rgba(231, 228, 239, 0.78);
  padding-top: clamp(0.85rem, 2vh, 1.2rem);
}

.profile-builder-action-buttons {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
}

.profile-builder-secondary {
  color: var(--pb-ink);
  background: #fff;
}

.profile-builder-secondary.is-hidden {
  visibility: hidden;
}

.profile-builder-mobile-preview {
  display: none;
}

.profile-builder-preview-column {
  display: flex;
  min-height: calc(100vh - clamp(2.4rem, 6vw, 4.7rem));
  min-height: calc(100dvh - clamp(2.4rem, 6vw, 4.7rem));
  border: 1px solid rgba(231, 228, 239, 0.82);
  border-radius: 32px;
  background: linear-gradient(180deg, #faf8ff 0%, #f3eefc 100%);
  overflow: hidden;
}

.profile-builder-preview {
  display: flex;
  flex: 1;
  min-width: 0;
}

.profile-builder-preview-stage {
  position: relative;
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: clamp(1rem, 3vw, 2.2rem);
}

.profile-builder-preview-stage::before {
  content: attr(data-preview-stage-label);
  position: absolute;
  inset-block-start: clamp(0.9rem, 3vh, 1.6rem);
  inset-inline: 1.4rem;
  color: rgba(126, 101, 165, 0.72);
  font-size: 0.88rem;
  font-weight: 500;
  text-align: center;
}

.profile-builder-phone {
  position: relative;
  z-index: 1;
  --pb-preview-accent: var(--pb-purple);
  --pb-preview-on-accent: #fff;
  --pb-preview-strong-action-bg: linear-gradient(
    135deg,
    color-mix(in srgb, var(--pb-preview-accent) 76%, #24113a),
    color-mix(in srgb, var(--pb-purple-deep) 84%, #24113a)
  );
  width: min(100%, 370px);
  border-radius: 38px;
  padding: 0.72rem;
  background: #11121c;
  box-shadow:
    0 30px 70px rgba(30, 24, 72, 0.23),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  animation: profile-builder-phone-enter 260ms ease both;
}

.profile-builder-phone-bezel {
  position: absolute;
  inset-block-start: 0.55rem;
  inset-inline: 50%;
  width: 5.8rem;
  height: 0.34rem;
  border-radius: 999px;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.16);
}

.profile-builder-phone-screen {
  overflow: hidden;
  border-radius: 30px;
  background: #fff;
}

.profile-builder-phone-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 34px;
  padding: 0 1.02rem;
  color: #1a1d35;
  font-size: 0.72rem;
  font-weight: 600;
}

.profile-builder-phone-status-icons {
  display: inline-flex;
  gap: 0.28rem;
  font-size: 0.7rem;
}

.profile-builder-phone-cover {
  position: relative;
  overflow: visible;
  min-height: 132px;
  padding: 0.85rem;
  background:
    radial-gradient(circle at 16% 20%, rgba(255, 255, 255, 0.55), transparent 28%),
    linear-gradient(135deg, rgba(126, 101, 165, 0.82), rgba(79, 52, 114, 0.9));
  isolation: isolate;
}

.profile-builder-phone-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.5;
  background:
    linear-gradient(135deg, transparent 0 46%, rgba(255, 255, 255, 0.38) 46% 48%, transparent 48%),
    radial-gradient(circle at 78% 24%, rgba(255, 255, 255, 0.34), transparent 20%);
  pointer-events: none;
}

.profile-builder-phone-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(30, 22, 66, 0.12), rgba(30, 22, 66, 0.44)),
    linear-gradient(90deg, rgba(30, 22, 66, 0.28), rgba(30, 22, 66, 0.02));
  pointer-events: none;
}

.profile-builder-phone-cover.is-generic::after {
  background:
    radial-gradient(circle at 76% 28%, rgba(255, 255, 255, 0.3), transparent 28%),
    linear-gradient(135deg, rgba(126, 101, 165, 0.24), rgba(79, 52, 114, 0.62));
}

.profile-builder-phone-cover[data-preview-profession="doctor"],
.profile-builder-phone-cover[data-preview-profession="healthcare"] {
  background:
    radial-gradient(circle at 18% 26%, rgba(255, 255, 255, 0.72), transparent 18%),
    linear-gradient(135deg, #e8f7ff, #a4dff8 45%, #7e65a5);
}

.profile-builder-phone-cover[data-preview-profession="doctor"]::before {
  background:
    linear-gradient(90deg, transparent 0 40%, rgba(255, 255, 255, 0.56) 40% 43%, transparent 43%),
    linear-gradient(0deg, transparent 0 48%, rgba(255, 255, 255, 0.56) 48% 51%, transparent 51%),
    radial-gradient(circle at 76% 26%, rgba(255, 255, 255, 0.34), transparent 20%);
}

.profile-builder-phone-cover[data-preview-profession="lawyer"] {
  background: linear-gradient(135deg, #17213b, #47518d 54%, #8c76ba);
}

.profile-builder-phone-cover[data-preview-profession="creator"] {
  background:
    radial-gradient(circle at 22% 28%, rgba(251, 207, 232, 0.85), transparent 25%),
    radial-gradient(circle at 78% 20%, rgba(216, 180, 254, 0.72), transparent 24%),
    linear-gradient(135deg, #7e22ce, #db2777);
}

.profile-builder-phone-cover[data-preview-profession="coach"] {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.26) 0 8%, transparent 8% 16%, rgba(255, 255, 255, 0.22) 16% 22%, transparent 22%),
    linear-gradient(135deg, #e8f8f2, #34d399 48%, #7e65a5);
}

.profile-builder-phone-cover[data-preview-profession="student"] {
  background:
    linear-gradient(45deg, rgba(255, 255, 255, 0.34) 25%, transparent 25% 50%, rgba(255, 255, 255, 0.18) 50% 75%, transparent 75%),
    linear-gradient(135deg, #eef2ff, #818cf8 52%, #7e65a5);
}

.profile-builder-phone-cover[data-preview-profession="freelancer"] {
  background:
    radial-gradient(circle at 22% 28%, rgba(255, 255, 255, 0.48), transparent 22%),
    linear-gradient(135deg, #f4f0ff, #7c3aed 48%, #14b8a6);
}

.profile-builder-phone-cover[data-preview-style="professional"] {
  background: linear-gradient(135deg, #eff9ff, #94d9f7 48%, #0ea5e9);
}

.profile-builder-phone-cover[data-preview-style="bold"] {
  background: radial-gradient(circle at 25% 22%, #fbcfe8, transparent 30%), linear-gradient(135deg, #a21caf, #e11d48);
}

.profile-builder-phone-cover[data-preview-style="minimal"] {
  background: linear-gradient(135deg, #f7fffb, #d1fae5 48%, #10b981);
}

.profile-builder-phone-cover[data-preview-style="elegant"] {
  background: linear-gradient(135deg, #1e1630, #4c1d95 56%, #7c2d12);
}

.profile-builder-phone-cover-fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-builder-phone-cover-fallback {
  background:
    radial-gradient(circle at 22% 34%, rgba(255, 255, 255, 0.72), transparent 16%),
    radial-gradient(circle at 72% 22%, rgba(255, 255, 255, 0.34), transparent 24%),
    linear-gradient(135deg, #ece5f6, #7658a0 64%, #4f3472);
}

.profile-builder-phone-cover-toolbar {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  color: #fff;
  font-size: 0.76rem;
  font-weight: 600;
}

.profile-builder-preview-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  padding: 0.3rem 0.52rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  font-size: 0.68rem;
  font-weight: 500;
  white-space: nowrap;
}

.profile-builder-preview-avatar {
  position: absolute;
  z-index: 4;
  inset-block-end: -2.25rem;
  inset-inline-start: 1.05rem;
  display: grid;
  width: 5.15rem;
  height: 5.15rem;
  place-items: center;
  border: 4px solid #fff;
  border-radius: 50%;
  color: var(--pb-purple);
  background: linear-gradient(180deg, #fff, #eee8f6);
  box-shadow: 0 14px 32px rgba(34, 28, 76, 0.18);
  font-size: 2.3rem;
}

.profile-builder-preview-avatar span {
  color: var(--pb-preview-accent);
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: 0;
}

.profile-builder-phone-body {
  display: grid;
  gap: 0.85rem;
  padding: 3rem 1rem 1rem;
}

.profile-builder-profile-identity {
  display: grid;
  gap: 0.16rem;
}

.profile-builder-profile-identity strong {
  min-width: 0;
  color: var(--pb-ink);
  font-size: 1.35rem;
  line-height: 1.16;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.profile-builder-profile-identity small,
.profile-builder-profile-tagline,
.profile-builder-profile-about p {
  color: var(--pb-muted);
  font-weight: 400;
}

.profile-builder-profile-identity small {
  font-size: 0.92rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.profile-builder-profile-tagline {
  min-height: 2.7em;
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

[data-preview-name].is-placeholder,
[data-preview-title].is-placeholder,
[data-preview-bio].is-placeholder,
[data-preview-about].is-placeholder {
  color: #9aa0b5;
}

[data-preview-name].is-updating,
[data-preview-title].is-updating,
[data-preview-bio].is-updating,
[data-preview-about].is-updating {
  animation: profile-builder-preview-pulse 220ms ease;
}

.profile-builder-profile-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.52rem;
}

.profile-builder-profile-actions span {
  display: grid;
  gap: 0.3rem;
  justify-items: center;
  min-width: 0;
  color: var(--pb-ink);
  font-size: 0.62rem;
  font-weight: 500;
  text-align: center;
}

.profile-builder-profile-actions i {
  display: grid;
  width: 2.3rem;
  height: 2.3rem;
  place-items: center;
  border-radius: 50%;
  color: var(--pb-preview-on-accent);
  background: var(--pb-preview-strong-action-bg);
  font-size: 1rem;
}

.profile-builder-profile-actions span:nth-child(2) i {
  background: linear-gradient(135deg, #128c7e, #075e54);
}

.profile-builder-profile-actions span:nth-child(3) i,
.profile-builder-profile-actions span:nth-child(4) i {
  background: #73549a;
}

.profile-builder-profile-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 44px;
  border-radius: 14px;
  padding: 0.72rem 0.9rem;
  color: var(--pb-preview-on-accent);
  background: var(--pb-preview-strong-action-bg);
  font-size: 0.92rem;
  font-weight: 600;
}

.profile-builder-profile-primary i,
.profile-builder-profile-primary span {
  color: currentColor;
}

.profile-builder-profile-tabs {
  display: flex;
  gap: 1rem;
  border-bottom: 1px solid var(--pb-border);
  color: var(--pb-muted);
  font-size: 0.82rem;
  font-weight: 500;
}

.profile-builder-profile-tabs button {
  position: relative;
  border: 0;
  padding: 0 0 0.56rem;
  color: inherit;
  background: transparent;
  font: inherit;
  text-align: center;
}

.profile-builder-profile-tabs .is-active {
  color: var(--pb-preview-accent);
  font-weight: 600;
}

.profile-builder-profile-tabs .is-active::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  inset-block-end: -1px;
  height: 2px;
  border-radius: 999px;
  background: var(--pb-preview-accent);
}

.profile-builder-profile-about,
.profile-builder-profile-services,
.profile-builder-profile-reviews {
  border: 1px solid rgba(231, 228, 239, 0.86);
  border-radius: 16px;
  padding: 0.86rem;
  background: #fbfaff;
}

.profile-builder-profile-about h3,
.profile-builder-profile-services h3,
.profile-builder-profile-reviews h3 {
  margin: 0 0 0.36rem;
  color: var(--pb-ink);
  font-size: 0.96rem;
  line-height: 1.2;
  font-weight: 600;
}

.profile-builder-profile-about p {
  min-height: 3em;
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.48;
  overflow-wrap: anywhere;
}

.profile-builder-profile-tab-panel[hidden] {
  display: none;
}

.profile-builder-profile-service-list {
  display: grid;
  gap: 0.48rem;
}

.profile-builder-preview-service {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.45rem;
  align-items: center;
  border-radius: 12px;
  padding: 0.48rem 0.55rem;
  background: #fff;
}

.profile-builder-preview-service span {
  margin: 0;
  white-space: nowrap;
}

.profile-builder-phone[data-style-preset="minimal"] .profile-builder-profile-about,
.profile-builder-phone[data-style-preset="minimal"] .profile-builder-profile-services,
.profile-builder-phone[data-style-preset="minimal"] .profile-builder-preview-service {
  border-radius: 8px;
  box-shadow: none;
}

.profile-builder-phone[data-style-preset="bold"] .profile-builder-phone-screen {
  background: #fff7fd;
}

.profile-builder-phone[data-style-preset="elegant"] .profile-builder-phone-screen {
  background: #fbf8ff;
}

.profile-builder-phone[data-style-preset="professional"] .profile-builder-profile-primary {
  border-radius: 999px;
}

.profile-builder-phone[data-style-preset="minimal"] .profile-builder-profile-primary {
  border-radius: 8px;
}

.profile-builder-phone[data-style-preset="clean"] .profile-builder-phone-cover {
  min-height: 126px;
}

.profile-builder-phone[data-style-preset="clean"] .profile-builder-phone-body,
.profile-builder-phone[data-style-preset="clean"] .profile-builder-profile-identity {
  text-align: start;
}

.profile-builder-phone[data-style-preset="professional"] .profile-builder-phone-cover {
  min-height: 104px;
}

.profile-builder-phone[data-style-preset="professional"] .profile-builder-preview-avatar {
  width: 4.35rem;
  height: 4.35rem;
  border-radius: 1.15rem;
  inset-block-end: -1.7rem;
}

.profile-builder-phone[data-style-preset="professional"] .profile-builder-phone-body {
  gap: 0.72rem;
  padding-block-start: 2.55rem;
}

.profile-builder-phone[data-style-preset="professional"] .profile-builder-profile-identity,
.profile-builder-phone[data-style-preset="professional"] .profile-builder-profile-tagline {
  text-align: start;
}

.profile-builder-phone[data-style-preset="professional"] .profile-builder-profile-identity strong {
  font-size: 1.18rem;
}

.profile-builder-phone[data-style-preset="professional"] .profile-builder-profile-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profile-builder-phone[data-style-preset="professional"] .profile-builder-profile-actions span {
  grid-template-columns: auto 1fr;
  justify-items: start;
  align-items: center;
  text-align: start;
  border: 1px solid rgba(14, 165, 233, 0.12);
  border-radius: 0.85rem;
  padding: 0.34rem 0.42rem;
  color: #163047;
  background: #f8fcff;
}

.profile-builder-phone[data-style-preset="professional"] .profile-builder-profile-actions i {
  width: 1.95rem;
  height: 1.95rem;
  font-size: 0.86rem;
}

.profile-builder-phone[data-style-preset="bold"] .profile-builder-phone-cover {
  min-height: 154px;
  border-bottom-left-radius: 1.8rem;
  border-bottom-right-radius: 1.8rem;
}

.profile-builder-phone[data-style-preset="bold"] .profile-builder-preview-avatar {
  inset-inline-start: 50%;
  width: 5.6rem;
  height: 5.6rem;
  transform: translateX(-50%);
}

.profile-builder-phone[data-style-preset="bold"] .profile-builder-phone-body {
  padding-block-start: 3.35rem;
  gap: 0.95rem;
  text-align: center;
}

.profile-builder-phone[data-style-preset="bold"] .profile-builder-profile-identity strong {
  font-size: 1.55rem;
  line-height: 1.02;
}

.profile-builder-phone[data-style-preset="bold"] .profile-builder-profile-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profile-builder-phone[data-style-preset="bold"] .profile-builder-profile-actions span {
  border-radius: 1.1rem;
  padding: 0.42rem;
  color: #3b1532;
  background: rgba(255, 255, 255, 0.82);
}

.profile-builder-phone[data-style-preset="bold"] .profile-builder-profile-primary {
  min-height: 48px;
  border-radius: 1.25rem;
  color: var(--pb-preview-on-accent);
  background: var(--pb-preview-strong-action-bg);
  font-size: 1rem;
}

.profile-builder-phone[data-style-preset="bold"] .profile-builder-profile-about,
.profile-builder-phone[data-style-preset="bold"] .profile-builder-profile-services,
.profile-builder-phone[data-style-preset="bold"] .profile-builder-profile-reviews {
  border-color: rgba(225, 29, 72, 0.14);
  border-radius: 1.35rem;
  background: rgba(255, 255, 255, 0.82);
}

.profile-builder-phone[data-style-preset="minimal"] .profile-builder-phone-cover {
  min-height: 42px;
  background: transparent;
}

.profile-builder-phone[data-style-preset="minimal"] .profile-builder-phone-cover::before,
.profile-builder-phone[data-style-preset="minimal"] .profile-builder-phone-cover::after,
.profile-builder-phone[data-style-preset="minimal"] .profile-builder-phone-cover-fallback {
  display: none;
}

.profile-builder-phone[data-style-preset="minimal"] .profile-builder-phone-cover-toolbar {
  color: var(--pb-muted);
}

.profile-builder-phone[data-style-preset="minimal"] .profile-builder-preview-badge {
  color: var(--pb-muted);
  border-color: rgba(16, 185, 129, 0.18);
  background: #f7fffb;
}

.profile-builder-phone[data-style-preset="minimal"] .profile-builder-preview-avatar {
  inset-block-end: -1.2rem;
  width: 3.3rem;
  height: 3.3rem;
  border-width: 2px;
  box-shadow: none;
}

.profile-builder-phone[data-style-preset="minimal"] .profile-builder-phone-body {
  padding-block-start: 1.9rem;
  gap: 0.66rem;
}

.profile-builder-phone[data-style-preset="minimal"] .profile-builder-profile-identity,
.profile-builder-phone[data-style-preset="minimal"] .profile-builder-profile-tagline {
  text-align: start;
}

.profile-builder-phone[data-style-preset="minimal"] .profile-builder-profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.profile-builder-phone[data-style-preset="minimal"] .profile-builder-profile-actions span {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
}

.profile-builder-phone[data-style-preset="minimal"] .profile-builder-profile-actions i {
  width: 1.55rem;
  height: 1.55rem;
  color: var(--pb-preview-accent);
  background: transparent;
}

.profile-builder-phone[data-style-preset="minimal"] .profile-builder-profile-tabs {
  gap: 0.75rem;
  border-bottom-style: dashed;
}

.profile-builder-phone[data-style-preset="minimal"] .profile-builder-profile-about,
.profile-builder-phone[data-style-preset="minimal"] .profile-builder-profile-services,
.profile-builder-phone[data-style-preset="minimal"] .profile-builder-profile-reviews {
  padding-inline: 0;
  border-inline: 0;
  background: transparent;
}

.profile-builder-phone[data-style-preset="elegant"] .profile-builder-phone-cover {
  min-height: 142px;
  border-bottom-left-radius: 2.1rem;
  border-bottom-right-radius: 2.1rem;
}

.profile-builder-phone[data-style-preset="elegant"] .profile-builder-preview-avatar {
  inset-inline-start: 50%;
  width: 5rem;
  height: 5rem;
  border-radius: 1.25rem;
  transform: translateX(-50%);
}

.profile-builder-phone[data-style-preset="elegant"] .profile-builder-phone-body {
  padding-block-start: 3rem;
  gap: 0.9rem;
  text-align: center;
}

.profile-builder-phone[data-style-preset="elegant"] .profile-builder-profile-primary {
  border-radius: 999px;
  box-shadow: 0 14px 34px rgba(76, 29, 149, 0.18);
}

.profile-builder-phone[data-style-preset="elegant"] .profile-builder-profile-tabs {
  justify-content: center;
  padding: 0.34rem;
  border: 1px solid rgba(76, 29, 149, 0.10);
  border-radius: 999px;
  background: rgba(255,255,255,.72);
}

.profile-builder-phone[data-style-preset="elegant"] .profile-builder-profile-tabs button {
  padding: 0.42rem 0.6rem;
  border-radius: 999px;
}

.profile-builder-phone[data-style-preset="elegant"] .profile-builder-profile-tabs .is-active {
  color: #fff;
  background: var(--pb-preview-accent);
}

.profile-builder-phone[data-style-preset="elegant"] .profile-builder-profile-tabs .is-active::after {
  display: none;
}

.profile-builder-phone[data-style-preset="elegant"] .profile-builder-profile-about,
.profile-builder-phone[data-style-preset="elegant"] .profile-builder-profile-services,
.profile-builder-phone[data-style-preset="elegant"] .profile-builder-profile-reviews {
  border-radius: 1.4rem;
  background: rgba(255,255,255,.74);
  box-shadow: 0 16px 34px rgba(76, 29, 149, 0.08);
}

html[dir="rtl"] .profile-builder-phone[data-style-preset="bold"] .profile-builder-preview-avatar,
html[dir="rtl"] .profile-builder-phone[data-style-preset="elegant"] .profile-builder-preview-avatar {
  transform: translateX(50%);
}

.profile-builder-dialog[hidden] {
  display: none;
}

.profile-builder-dialog {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(17, 23, 56, 0.38);
  backdrop-filter: blur(10px);
}

.profile-builder-dialog-card {
  position: relative;
  display: grid;
  gap: 1rem;
  width: min(100%, 460px);
  border-radius: 24px;
  padding: 1.5rem;
  color: var(--pb-ink, #111738);
  background: #fff;
  box-shadow: 0 28px 80px rgba(21, 17, 60, 0.22);
}

.profile-builder-dialog-card h2 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.2;
  font-weight: 600;
}

.profile-builder-dialog-card p {
  margin: 0;
  color: var(--pb-muted, #6d7390);
  line-height: 1.55;
}

.profile-builder-resume-page {
  --pb-ink: #111738;
  --pb-muted: #6d7390;
  --pb-purple: #7e65a5;
  --pb-purple-deep: #4f3472;
  --pb-shadow: 0 24px 68px rgba(32, 28, 82, 0.12);
  display: grid;
  min-height: 100vh;
  min-height: 100dvh;
  place-items: center;
  padding: clamp(1rem, 4vw, 2.5rem);
  background:
    radial-gradient(circle at 16% 18%, rgba(126, 101, 165, 0.14), transparent 18rem),
    linear-gradient(135deg, #f8f6fc, #fff);
  color: var(--pb-ink, #111738);
  font-family: "Inter", "Cairo", system-ui, sans-serif;
}

.profile-builder-resume-card {
  display: grid;
  gap: 1.1rem;
  width: min(100%, 560px);
  border: 1px solid rgba(231, 228, 239, 0.92);
  border-radius: 28px;
  padding: clamp(1.25rem, 4vw, 2rem);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--pb-shadow, 0 24px 68px rgba(32, 28, 82, 0.12));
}

.profile-builder-resume-copy {
  display: grid;
  gap: 0.45rem;
}

.profile-builder-resume-copy p {
  margin: 0;
  color: var(--pb-muted, #6d7390);
  line-height: 1.55;
}

.profile-builder-resume-copy > p:first-child {
  color: var(--pb-purple, #7e65a5);
  font-weight: 700;
}

.profile-builder-resume-copy h1 {
  margin: 0;
  color: var(--pb-ink, #111738);
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1.06;
  font-weight: 650;
}

.profile-builder-resume-summary {
  display: grid;
  gap: 0.62rem;
  margin: 0;
}

.profile-builder-resume-summary div {
  display: grid;
  grid-template-columns: minmax(7rem, auto) minmax(0, 1fr);
  gap: 0.8rem;
  border-radius: 14px;
  padding: 0.72rem 0.85rem;
  background: #f8f5fc;
}

.profile-builder-resume-summary dt {
  color: var(--pb-muted, #6d7390);
  font-size: 0.88rem;
  font-weight: 600;
}

.profile-builder-resume-summary dd {
  margin: 0;
  color: var(--pb-ink, #111738);
  font-weight: 700;
}

.profile-builder-resume-warning {
  margin: 0;
  border: 1px solid rgba(126, 101, 165, 0.2);
  border-radius: 14px;
  padding: 0.8rem 0.9rem;
  color: var(--pb-purple-deep, #4f3472);
  background: #fbf8ff;
  line-height: 1.5;
}

.profile-builder-resume-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.profile-builder-start-over {
  color: #7c4a4a;
  border-color: rgba(124, 74, 74, 0.16);
  background: #fff9f9;
}

.profile-builder-dialog-close {
  position: absolute;
  inset-block-start: 0.8rem;
  inset-inline-end: 0.8rem;
  display: grid;
  width: 2.3rem;
  height: 2.3rem;
  place-items: center;
  border: 1px solid rgba(126, 101, 165, 0.18);
  border-radius: 50%;
  color: var(--pb-ink, #111738);
  background: #fff;
}

.profile-builder-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

.profile-builder-handoff-page,
.profile-builder-private-preview-page {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(1.25rem, 4vw, 3rem);
}

.profile-builder-handoff-page {
  background:
    radial-gradient(circle at 16% 20%, rgba(126, 101, 165, 0.16), transparent 18rem),
    linear-gradient(135deg, #f8f6fc 0%, #ffffff 48%, #f3eefc 100%);
}

.profile-builder-handoff-card {
  width: min(100%, 620px);
  max-height: none;
  overflow: visible;
  display: grid;
  gap: 1rem;
  text-align: center;
  justify-self: center;
  border: 1px solid rgba(231, 228, 239, 0.92);
}

.profile-builder-handoff-card h1 {
  margin: 0;
  color: var(--pb-ink, #111738);
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.04;
}

.profile-builder-handoff-card p {
  margin: 0;
  color: var(--pb-muted, #6d7390);
}

.profile-builder-handoff-card .profile-builder-dialog-actions {
  justify-content: center;
  flex-wrap: wrap;
}

.profile-builder-handoff-card .btn {
  min-height: 46px;
  border-color: rgba(126, 101, 165, 0.24);
  border-radius: 14px !important;
  color: var(--pb-ink, #111738);
  background: #fff;
  font-weight: 650;
}

.profile-builder-existing-account {
  font-size: 0.94rem;
}

.profile-builder-existing-account a {
  color: var(--pb-purple-strong, #624682);
  font-weight: 700;
  text-decoration: none;
}

.profile-builder-existing-account a:hover,
.profile-builder-existing-account a:focus-visible {
  color: var(--pb-purple-deep, #4f3472);
  text-decoration: underline;
}

.profile-builder-target-list {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0;
  text-align: start;
}

.profile-builder-target-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
  padding: 1rem;
  border: 1px solid rgba(126, 101, 165, 0.18);
  border-radius: 18px;
  background: #fff;
  cursor: pointer;
}

.profile-builder-target-option input {
  margin-block-start: 0.2rem;
  inline-size: 1.15rem;
  block-size: 1.15rem;
  padding: 0;
  accent-color: var(--pb-purple);
}

.profile-builder-target-option > span {
  display: grid;
  gap: 0.2rem;
}

.profile-builder-target-option:has(input:checked) {
  border-color: var(--pb-purple);
  background: #f8f5fc;
}

.profile-builder-target-summary {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-inline-size: 0;
}

.profile-builder-target-image {
  inline-size: 3rem;
  block-size: 3rem;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
}

.profile-builder-target-details {
  display: grid;
  gap: 0.2rem;
  overflow-wrap: anywhere;
}

.profile-builder-target-option small {
  color: var(--pb-muted, #6d7390);
}

.profile-builder-private-preview-page .profile-builder-preview-stage {
  width: min(100%, 520px);
  display: grid;
  justify-items: center;
  gap: 1.1rem;
}

.profile-builder-private-preview-page .profile-builder-phone {
  width: min(100%, 390px);
}

.profile-builder-private-preview-page h1 {
  margin: 0.75rem 0 0.2rem;
  font-size: 1.8rem;
}

.profile-builder-preview-about,
.profile-builder-preview-services,
.profile-builder-preview-links {
  display: grid;
  gap: 0.7rem;
  margin-top: 1rem;
}

.profile-builder-preview-about h2,
.profile-builder-preview-services h2,
.profile-builder-preview-links h2 {
  margin: 0;
  color: var(--pb-ink, #111738);
  font-size: 1rem;
}

.profile-builder-preview-dialog .profile-builder-dialog-card {
  width: min(100%, 440px);
  padding: 1rem;
  background: linear-gradient(180deg, #faf8ff, #f3eefc);
}

.profile-builder-preview-dialog h2 {
  padding-inline: 0.5rem 2.4rem;
}

.profile-builder-preview-dialog .profile-builder-preview-stage {
  min-height: 620px;
  padding: 1rem;
}

.profile-builder-preview-dialog .profile-builder-preview-stage::before {
  display: none;
}

@keyframes profile-builder-subquestion-enter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes profile-builder-phone-enter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes profile-builder-preview-pulse {
  0% {
    opacity: 0.62;
  }
  100% {
    opacity: 1;
  }
}

html[dir="rtl"] .profile-builder-page {
  font-family: "Cairo", "Inter", system-ui, sans-serif;
}

html[dir="rtl"] .profile-builder-step-chip,
html[dir="rtl"] .profile-builder-question,
html[dir="rtl"] .profile-builder-section-heading,
html[dir="rtl"] .profile-builder-example-group button {
  text-align: start;
}

html[dir="rtl"] .profile-builder-primary .bi-arrow-right,
html[dir="rtl"] .profile-builder-secondary .bi-arrow-left,
html[dir="rtl"] .profile-builder-top-back .bi-arrow-left {
  transform: scaleX(-1);
}

html[dir="rtl"] .profile-builder-phone {
  direction: ltr;
}

html[dir="rtl"] .profile-builder-phone-body {
  direction: rtl;
  text-align: start;
}

html[dir="rtl"] .profile-builder-phone-cover-toolbar,
html[dir="rtl"] .profile-builder-phone-status {
  direction: rtl;
}

@media (min-width: 861px) {
  body:has(.profile-builder-shell) {
    overflow: hidden;
  }

  .profile-builder-page:has(.profile-builder-shell) {
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
  }

  .profile-builder-shell {
    height: 100%;
    min-height: 0;
  }

  .profile-builder-rail,
  .profile-builder-workspace,
  .profile-builder-preview-column {
    height: 100%;
    max-height: 100%;
    min-height: 0;
  }

  .profile-builder-rail {
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .profile-builder-workspace,
  .profile-builder-preview-column {
    overflow: hidden;
  }

  .profile-builder-preview-stage {
    min-height: 0;
    padding-block: clamp(0.9rem, 2vh, 1.5rem);
  }

  .profile-builder-preview-stage::before {
    inset-block-start: clamp(0.7rem, 1.5vh, 1rem);
  }
}

@media (min-width: 861px) and (max-height: 820px) {
  .profile-builder-shell {
    --pb-shell-block-padding: clamp(0.85rem, 2vh, 1.2rem);
  }

  .profile-builder-rail {
    padding: 1rem;
  }

  .profile-builder-rail-intro {
    margin: 0.95rem 0 0.75rem;
  }

  .profile-builder-rail-intro h1 {
    font-size: 1.24rem;
    line-height: 1.12;
  }

  .profile-builder-progress {
    --pb-step-gap: 0.1rem;
    --pb-step-size: 1.95rem;
    --pb-step-inline-padding: 0.35rem;
    --pb-step-block-padding: 0.46rem;
  }

  .profile-builder-step-chip {
    gap: 0.58rem;
  }

  .profile-builder-step-description {
    font-size: 0.78rem;
    line-height: 1.3;
  }

  .profile-builder-rail-footer {
    gap: 0.48rem;
    padding-top: 0.65rem;
  }

  .profile-builder-rail-footer .language-switcher-toggle,
  .profile-builder-save-exit {
    min-height: 40px;
    padding: 0.54rem 0.78rem;
  }

  .profile-builder-rail-footer p {
    font-size: 0.76rem;
    line-height: 1.32;
  }

  .profile-builder-card {
    padding-block: clamp(1rem, 2vh, 1.35rem);
  }

  .profile-builder-step-header {
    margin-bottom: 0.85rem;
  }

  .profile-builder-phone {
    width: min(100%, 334px);
  }
}

@media (min-width: 861px) and (max-height: 760px) {
  .profile-builder-shell {
    --pb-shell-block-padding: 0.75rem;
  }

  .profile-builder-phone {
    width: min(100%, 316px);
  }

  .profile-builder-phone-cover {
    min-height: 118px;
  }

  .profile-builder-phone-body {
    gap: 0.7rem;
    padding: 2.8rem 0.86rem 0.86rem;
  }
}

@media (max-width: 1240px) {
  .profile-builder-shell {
    grid-template-columns: minmax(190px, 220px) minmax(460px, 1fr) minmax(330px, 380px);
    width: min(calc(100% - 2rem), 1180px);
  }

  .profile-builder-question-label {
    font-size: clamp(2.25rem, 4vw, 2.75rem);
  }

  .profile-builder-phone {
    width: min(100%, 332px);
  }
}

@media (max-width: 1099px) {
  .profile-builder-page {
    background: #fff;
  }

  .profile-builder-shell {
    grid-template-columns: minmax(0, 1fr) minmax(330px, 380px);
    width: min(calc(100% - 2rem), 980px);
  }

  .profile-builder-rail {
    display: none;
  }

  .profile-builder-mobile-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 1rem 1rem 0;
  }

  .profile-builder-workspace {
    border: 1px solid rgba(231, 228, 239, 0.82);
  }

  .profile-builder-card {
    padding-block-start: 1.25rem;
  }

  .profile-builder-center-top {
    display: none;
  }

  .profile-builder-question-label {
    max-width: 12em;
  }
}

@media (max-width: 860px) {
  .profile-builder-shell {
    grid-template-columns: minmax(0, 1fr);
    width: min(calc(100% - 1.25rem), 680px);
    min-height: 100vh;
    min-height: 100dvh;
    padding: 0.65rem 0 0;
  }

  .profile-builder-preview-column {
    display: none;
  }

  .profile-builder-step-header {
    display: none;
  }

  .profile-builder-form {
    overflow: visible;
  }

  .profile-builder-form-scroll {
    overflow: visible;
    padding-inline-end: 0;
    scrollbar-gutter: auto;
  }

  .profile-builder-form-scroll > .profile-builder-step-panel > .profile-builder-section-heading {
    display: block;
  }

  .profile-builder-form-actions {
    margin-top: auto;
    border-top: 0;
    padding-top: clamp(1.25rem, 3vh, 2.2rem);
  }
}

@media (max-width: 767px) {
  body:has(.profile-builder-page) {
    background: #fff;
  }

  .profile-builder-page {
    min-height: 100svh;
    background: #fff;
  }

  .profile-builder-handoff-page {
    position: relative;
    inline-size: 100%;
    padding: 1rem;
    overflow-x: hidden;
  }

  .profile-builder-handoff-card {
    inline-size: 100%;
    max-inline-size: 620px;
    margin-inline: 0;
    padding: 1.15rem;
  }

  .profile-builder-handoff-card p {
    max-width: 19rem;
    margin-inline: auto;
    overflow-wrap: anywhere;
  }

  .profile-builder-handoff-card .profile-builder-dialog-actions {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
  }

  .profile-builder-handoff-card .profile-builder-dialog-actions > * {
    width: 100%;
    justify-content: center;
    white-space: normal;
    text-align: center;
  }

  .profile-builder-shell {
    width: 100%;
    padding: 0;
  }

  .profile-builder-workspace {
    min-height: 100svh;
    border: 0;
    border-radius: 0;
  }

  .profile-builder-mobile-bar {
    position: sticky;
    top: 0;
    z-index: 30;
    min-height: 62px;
    border-bottom: 1px solid rgba(231, 228, 239, 0.88);
    padding: 0.72rem 1rem;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
  }

  .profile-builder-mobile-brand span {
    display: none;
  }

  .profile-builder-mobile-save {
    width: auto;
    min-height: 38px;
    border-radius: 999px;
    padding: 0.48rem 0.72rem;
    font-size: 0.88rem;
  }

  .profile-builder-card {
    padding: 1.15rem 1rem calc(6.3rem + env(safe-area-inset-bottom, 0px));
  }

  .profile-builder-section-heading {
    margin-bottom: 0.9rem;
  }

  .profile-builder-section-heading h2 {
    font-size: 1.65rem;
  }

  .profile-builder-you-micro-progress {
    margin-bottom: 1.2rem;
  }

  .profile-builder-question-label {
    max-width: 11em;
    font-size: clamp(2rem, 8.2vw, 2.35rem);
    line-height: 1.08;
  }

  .profile-builder-question-hint {
    font-size: 1rem;
  }

  .profile-builder-question input,
  .profile-builder-question textarea {
    min-height: 58px;
    border-radius: 16px;
  }

  .profile-builder-question textarea {
    min-height: 132px;
  }

  .profile-builder-channel-grid,
  .profile-builder-style-options {
    grid-template-columns: 1fr;
  }

  .profile-builder-service-item {
    grid-template-columns: minmax(0, 1fr);
  }

  .profile-builder-mini-actions {
    justify-content: start;
  }

  .profile-builder-service-price-row {
    grid-template-columns: 1fr;
  }

  .profile-builder-style-options > label > span {
    grid-template-columns: 4rem minmax(0, 1fr);
  }

  .profile-builder-ready-hero h2 {
    font-size: 2rem;
  }

  .profile-builder-resume-summary div {
    grid-template-columns: 1fr;
    gap: 0.24rem;
  }

  .profile-builder-form-actions {
    position: fixed;
    inset-inline: 0;
    inset-block-end: 0;
    z-index: 35;
    border-top: 1px solid rgba(231, 228, 239, 0.9);
    padding: 0.72rem 1rem calc(0.72rem + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
  }

  .profile-builder-action-buttons {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr);
    max-width: 520px;
    margin-inline: auto;
  }

  .profile-builder-secondary {
    min-width: auto;
    padding-inline: 0.78rem;
  }

  .profile-builder-action-buttons [data-step-back] {
    width: 54px;
    padding-inline: 0;
  }

  .profile-builder-action-buttons [data-step-back] [data-step-back-label] {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .profile-builder-secondary.is-hidden {
    display: none;
  }

  .profile-builder-mobile-preview {
    display: inline-flex;
  }

  .profile-builder-primary {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
  }

  .profile-builder-dialog {
    align-items: flex-end;
    padding: 0;
  }

  .profile-builder-dialog .profile-builder-dialog-card {
    width: 100%;
    max-height: min(92svh, 760px);
    overflow: auto;
    border-radius: 26px 26px 0 0;
    padding: 1.25rem 1rem calc(1rem + env(safe-area-inset-bottom, 0px));
  }

  .profile-builder-preview-dialog .profile-builder-dialog-card {
    width: 100%;
    max-height: 100svh;
    border-radius: 0;
    padding-top: 1.2rem;
  }

  .profile-builder-preview-dialog .profile-builder-preview-stage {
    min-height: auto;
    padding: 0.75rem 0 0;
  }

  .profile-builder-preview-dialog .profile-builder-phone {
    width: min(100%, 356px);
  }
}

@media (max-width: 380px) {
  .profile-builder-card {
    padding-inline: 0.85rem;
  }

  .profile-builder-mobile-progress {
    font-size: 0.82rem;
  }

  .profile-builder-mobile-save span {
    display: none;
  }

  .profile-builder-question-label {
    font-size: 1.9rem;
  }

  .profile-builder-action-buttons {
    gap: 0.55rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .profile-builder-page *,
  .profile-builder-dialog * {
    animation-duration: 1ms !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}

/* Wizard section choices — shared Bootstrap switch behavior, compact cards. */
.profile-builder-sections-intro{margin:0 0 1rem;color:var(--seva-text-soft,#6f6780);font-size:.94rem;line-height:1.6}
.profile-builder-sections-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem}
.profile-builder-section-option{display:flex;align-items:center;gap:.75rem;min-width:0;padding:1rem;border:1px solid rgba(90,65,125,.16);border-radius:18px;background:#fff;cursor:pointer;transition:border-color .15s,background .15s,box-shadow .15s}
.profile-builder-section-option:has(input:checked){border-color:rgba(111,44,255,.45);background:#faf7ff;box-shadow:0 3px 14px rgba(80,40,135,.06)}
.profile-builder-section-option:focus-within{outline:2px solid #7440db;outline-offset:2px}
.profile-builder-section-option-icon{display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;border-radius:13px;background:#f0eaff;color:#6532c0;font-size:1.15rem}
.profile-builder-section-option-copy{display:flex;flex:1;min-width:0;flex-direction:column;gap:.15rem}
.profile-builder-section-option-copy strong{font-size:.94rem;line-height:1.4}
.profile-builder-section-option-copy small{font-size:.78rem;color:#756c82;line-height:1.4}
.profile-builder-section-option-switch{flex:0 0 auto;margin:0;padding:0;min-height:0}
.profile-builder-section-option-switch .form-check-input{float:none;margin:0;cursor:pointer}
@media(max-width:680px){.profile-builder-sections-grid{grid-template-columns:1fr}.profile-builder-section-option{padding:.85rem}}

/* Consistent phone and country selector sizing */
.profile-builder-phone-input input,
.profile-builder-phone-input select {
  box-sizing: border-box;
  height: 48px;
  min-height: 48px;
  padding-block: 0;
}

/* Section switches match contact switches */
.profile-builder-section-option-switch .form-check-input {
  appearance: none;
  width: 3.25rem;
  height: 1.82rem;
  border: 0;
  border-radius: 999px;
  background: #ddd7e8;
  box-shadow: none;
  position: relative;
}

.profile-builder-section-option-switch .form-check-input::before {
  content: "";
  position: absolute;
  top: .24rem;
  left: .25rem;
  width: 1.34rem;
  height: 1.34rem;
  border-radius: 50%;
  background: white;
}

.profile-builder-section-option-switch .form-check-input:checked {
  background: var(--pb-purple);
}

.profile-builder-section-option-switch .form-check-input:checked::before {
  transform: translateX(1.42rem);
}

/* Main Action uses the existing Wizard field theme. */
.profile-builder-main-action { margin-top:1.2rem; padding:1rem; border:1px solid var(--pb-border-strong); border-radius:18px; background:#faf7ff; display:grid; gap:.75rem; }
.profile-builder-main-action h3 { margin:0; font-size:1.05rem; color:var(--pb-ink); }
.profile-builder-main-action p { margin:0; font-size:.86rem; color:var(--pb-ink); }
.profile-builder-main-action label { display:grid; gap:.4rem; min-width:0; }
.profile-builder-main-action input, .profile-builder-main-action select { width:100%; min-height:44px; border:1px solid var(--pb-border-strong); border-radius:12px; padding:.65rem .8rem; background:white; color:var(--pb-ink); }
.profile-builder-main-action :is(input,select):focus-visible { outline:2px solid var(--pb-purple); outline-offset:2px; }
.profile-builder-main-action [hidden] { display:none; }
.profile-builder-main-action-preview { font-weight:700; color:var(--pb-purple); }
/* Elegant template selection */
.profile-builder-style-group-title {
  margin: 1.4rem 0 0.8rem;
  color: var(--pb-ink);
  font-size: 1rem;
  font-weight: 600;
}

.profile-builder-template-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-inline: auto;
  border-radius: 16px;
  background: var(--pb-soft);
  color: var(--pb-purple);
  font-size: 1.7rem;
}

.profile-builder-style-card:has(input:checked)
.profile-builder-template-icon {
  background: var(--pb-soft-strong);
}

/* Wizard desktop polish: one natural page scroll, no nested scrollbars. */
@media (min-width: 861px) {
  body:has(.profile-builder-shell) {
    overflow-x: hidden;
    overflow-y: auto;
  }
  .profile-builder-page:has(.profile-builder-shell) {
    height: auto;
    min-height: 100dvh;
    overflow: visible;
    background: #f8f6fc;
  }
  .profile-builder-shell {
    height: auto;
    min-height: 100dvh;
    padding-block: clamp(0.65rem, 1.4vh, 1rem);
    align-items: stretch;
  }
  .profile-builder-rail,
  .profile-builder-workspace,
  .profile-builder-preview-column {
    height: auto;
    max-height: none;
    min-height: 0;
    overflow: visible;
  }
  .profile-builder-form,
  .profile-builder-form-scroll {
    min-height: 0;
    overflow: visible;
  }
  .profile-builder-form-scroll {
    scrollbar-gutter: auto;
    padding-inline-end: 0;
  }
  .profile-builder-card {
    padding: clamp(0.95rem, 1.5vw, 1.4rem);
  }
  .profile-builder-step-header {
    margin-bottom: 0.65rem;
  }
  .profile-builder-center-top {
    min-height: 36px;
    margin-bottom: 0.45rem;
  }
  .profile-builder-section-heading {
    margin-bottom: 0.7rem;
  }
  .profile-builder-section-heading h2 {
    font-size: clamp(1.45rem, 2vw, 1.85rem);
  }
  .profile-builder-rail {
    padding: 0.95rem;
  }
  .profile-builder-rail-intro {
    margin: 0.85rem 0 0.65rem;
  }
  .profile-builder-progress {
    --pb-step-gap: 0.14rem;
  }
  .profile-builder-form-actions {
    padding-top: 0.7rem;
  }
  .profile-builder-style-options {
    gap: 0.55rem;
    min-width: 0;
  }
  .profile-builder-style-options > label {
    min-width: 0;
  }
  .profile-builder-style-options > label > span {
    grid-template-columns: 3.25rem minmax(0, 1fr);
    min-height: 66px;
    gap: 0.5rem;
    padding: 0.55rem;
  }
  .profile-builder-template-icon {
    width: 48px;
    height: 48px;
    font-size: 1.35rem;
  }
  .profile-builder-style-group-title {
    margin: 0.85rem 0 0.5rem;
  }
}
@media (min-width: 1100px) {
  .profile-builder-shell {
    grid-template-columns: minmax(190px, 0.9fr) minmax(0, 2.1fr) minmax(320px, 1.5fr);
    gap: clamp(0.65rem, 1.2vw, 1rem);
    width: min(calc(100% - 1.5rem), 1460px);
  }
}
