body[data-profile-test="true"] .profile-builder-shell { max-width: 1180px; }
body[data-profile-test="true"] .profile-builder-stepbar {
  position: sticky; top: 0; z-index: 20; display: grid;
  grid-template-columns: 120px repeat(4, minmax(0, 1fr)); gap: 8px;
  align-items: stretch;
  padding: 12px; background: rgba(247,250,249,.96); backdrop-filter: blur(12px);
  border: 1px solid #dbe8e3; border-radius: 18px; box-shadow: 0 10px 28px rgba(31,71,60,.09);
}
body[data-profile-test="true"] .profile-builder-stepbar.is-compact {
  display: grid;
  align-items: stretch;
}
body[data-profile-test="true"] .profile-builder-step,
body[data-profile-test="true"] .profile-builder-live-score { min-width: 0; height: 100%; }
body[data-profile-test="true"] .profile-builder-step {
  display: flex;
  align-items: center;
  min-height: 64px;
  height: 100%;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 12px;
}
body[data-profile-test="true"] .profile-builder-step:hover { background: #edf6f2; }
body[data-profile-test="true"] .profile-builder-step.is-current {
  background: #e6f4ee;
  border-color: #8fcdb5;
  color: #17324d;
  box-shadow: inset 0 0 0 1px rgba(23, 63, 53, 0.08);
}
body[data-profile-test="true"] .profile-builder-step.is-complete { background: #e6f4ee; border-color: #b9ddce; }
body[data-profile-test="true"] .profile-builder-step-number {
  background: #fff;
}
body[data-profile-test="true"] .profile-builder-step.is-current .profile-builder-step-title,
body[data-profile-test="true"] .profile-builder-step.is-current .profile-builder-step-kicker { color: #17324d; }
body[data-profile-test="true"] .profile-builder-step.is-current .profile-builder-step-number {
  background: #173f35;
  border-color: #173f35;
  color: #fff;
}
body[data-profile-test="true"] .profile-builder-step-copy { display: none; }
body[data-profile-test="true"] .profile-builder-step-title { margin-top: 0; font-size: 14px; line-height: 1.3; color: #17324d; }
body[data-profile-test="true"] .profile-builder-card > h2 { margin-bottom: 8px; }
body[data-profile-test="true"] .profile-builder-section[data-profile-section-step] { animation: profileTestIn .22s ease-out; }
body[data-profile-test="true"] .profile-test-navigation { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; padding-top: 22px; border-top: 1px solid #dbe8e3; }
body[data-profile-test="true"] .profile-test-navigation button { min-width: 140px; }
body[data-profile-test="true"] .profile-test-position { color: #587069; font-size: 14px; text-align: center; }
@keyframes profileTestIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (max-width: 760px) {
  body[data-profile-test="true"] .profile-builder-stepbar,
  body[data-profile-test="true"] .profile-builder-stepbar.is-compact {
    display: flex;
    flex-wrap: nowrap !important;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    width: 100%;
    min-height: 64px;
    padding: 8px;
    overflow-x: hidden;
    overflow-y: hidden;
    border-radius: 18px !important;
  }
  body[data-profile-test="true"] .profile-builder-live-score {
    display: flex !important;
    flex: 0 0 112px !important;
    min-width: 112px !important;
    width: 112px !important;
    max-width: 112px !important;
    min-height: 48px;
    height: auto;
    margin: 0;
    padding: 8px 10px;
    font-size: 0.78rem;
  }
  body[data-profile-test="true"] .profile-builder-step,
  body[data-profile-test="true"] .profile-builder-stepbar.is-compact .profile-builder-step {
    display: grid !important;
    place-items: center;
    flex: 0 0 40px !important;
    min-width: 40px !important;
    width: 40px !important;
    max-width: 40px !important;
    min-height: 48px;
    height: 48px;
    padding: 0;
    border-radius: 12px;
  }
  body[data-profile-test="true"] .profile-builder-step::after,
  body[data-profile-test="true"] .profile-builder-step.is-current::after {
    content: none !important;
    display: none !important;
  }
  body[data-profile-test="true"] .profile-builder-step-kicker { display: none !important; }
  body[data-profile-test="true"] .profile-builder-step-title {
    display: grid !important;
    place-items: center;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    color: transparent !important;
    font-size: 0 !important;
    line-height: 0 !important;
    overflow: hidden;
  }
  body[data-profile-test="true"] .profile-builder-step-number {
    width: 28px;
    height: 28px;
    margin-right: 0;
    color: #17324d !important;
    font-size: 0.78rem !important;
    line-height: 1 !important;
  }
  body[data-profile-test="true"] .profile-builder-step.is-current .profile-builder-step-number {
    color: #fff !important;
  }
  body[data-profile-test="true"] #labsSection .profile-builder-inline-actions {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 12px;
  }
  body[data-profile-test="true"] #labsSection .profile-builder-inline-actions h3 {
    min-width: 0;
    margin-right: auto;
    font-size: 0.9rem;
    line-height: 1.35;
  }
  body[data-profile-test="true"] #labsSection .profile-builder-text-button {
    flex: 0 0 auto;
  }
  body[data-profile-test="true"] #labsSection .profile-builder-labs-toggle {
    display: flex;
    width: 100%;
    min-height: 48px;
    padding: 10px 12px;
    border-radius: 16px;
  }
  body[data-profile-test="true"] #labsSection .profile-builder-labs-toggle input[type="checkbox"] {
    appearance: auto;
    flex: 0 0 20px;
    width: 20px !important;
    min-width: 20px !important;
    height: 20px !important;
    min-height: 20px !important;
    margin: 0;
    padding: 0;
  }
  body[data-profile-test="true"] #labsSection .profile-builder-labs-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  body[data-profile-test="true"] #labsSection .profile-builder-labs-actions button {
    width: 100%;
    min-width: 0;
    padding-inline: 10px;
  }
  body[data-profile-test="true"] #labsSection .profile-builder-lab-item {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    gap: 12px;
    padding: 14px;
  }
  body[data-profile-test="true"] #labsSection .profile-builder-lab-name {
    font-size: 0.92rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  body[data-profile-test="true"] #labsSection .profile-builder-lab-meta {
    font-size: 0.82rem;
  }
  body[data-profile-test="true"] #labsSection .profile-builder-lab-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 8px;
  }
  body[data-profile-test="true"] #labsSection .profile-builder-lab-button {
    width: 100%;
    min-width: 0;
  }
  body[data-profile-test="true"] .profile-builder-save-notice {
    position: static;
    inset: auto;
    width: fit-content;
    max-width: 100%;
    min-height: 40px;
    margin: 14px 0 0 auto;
    padding: 8px 12px;
    box-shadow: none;
  }
  body[data-profile-test="true"] .profile-builder-actions {
    width: 100%;
  }
  body[data-profile-test="true"] .profile-builder-actions .profile-builder-primary {
    width: 100%;
    white-space: normal;
    text-align: center;
  }
  body[data-profile-test="true"] .profile-test-navigation { flex-wrap: wrap; }
  body[data-profile-test="true"] .profile-test-position { order: -1; width: 100%; }
  body[data-profile-test="true"] .profile-test-navigation button { flex: 1; min-width: 0; }
}
