/* WorkXP RC233.98EA — mobile-only Profile Screen 01 design fidelity.
   Desktop layout (min-width: 851px), other screens, and JS save logic remain unchanged. */
@media (max-width: 850px) {
  .personal-home.wdu-profile .wds-hero.wea-mobile-basic {
    display: flex !important;
    flex-direction: column;
    width: 100%;
    max-width: 470px;
    margin: 0 auto;
    min-height: 0 !important;
    border-radius: 24px;
    overflow: hidden;
    background: #fffafd;
    border: 2px solid rgba(255,255,255,.95);
    box-shadow: 0 15px 38px rgba(100, 48, 145, .13);
  }
  .personal-home.wdu-profile .wds-hero.wea-mobile-basic > .wds-illustration {
    position: relative;
    display: block;
    flex: none;
    min-height: 218px;
    padding: 17px 19px 29px;
    overflow: hidden;
    background: linear-gradient(137deg,#bfd9ff 0%,#e5d6ff 56%,#f7ccf4 100%);
    border-radius: 0;
    isolation: isolate;
  }
  .personal-home.wdu-profile .wds-hero.wea-mobile-basic > .wds-illustration:after {
    content: '';
    position: absolute;
    left: -5%; right:-5%; bottom:-19px;
    height: 43px; background:#fffafd;
    border-radius: 55% 45% 0 0 / 75% 70% 0 0;
    z-index:0;
  }
  .personal-home.wdu-profile .wea-mobile-basic .wds-brand {
    position: relative; z-index:2; display:block;
    width: 128px; height: 45px; max-width: 52%;
    object-fit: contain; object-position:left center;
  }
  .personal-home.wdu-profile .wea-mobile-basic .wds-kicker {
    position:relative; z-index:2; display:block;
    margin:9px 0 5px; font-weight:900; letter-spacing:.065em;
    font-size: 10px; color:#26203d;
  }
  .personal-home.wdu-profile .wea-mobile-basic .wds-illustration h2 {
    position:relative; z-index:2; display:block; max-width:67%;
    margin:5px 0 7px; font-size:clamp(24px,6.5vw,32px);
    line-height:1.04; font-weight:950; letter-spacing:-.035em;
    color:#26104f;
  }
  .personal-home.wdu-profile .wea-mobile-basic .wds-illustration p {
    position:relative; z-index:2; display:block; max-width:63%;
    font-size:11.5px; font-weight:600; line-height:1.4;
    margin:5px 0 0; color:#2d2045;
  }
  .personal-home.wdu-profile .wea-mobile-basic .wds-art {
    position:absolute; z-index:1; right:-3px; bottom:8px;
    display:flex; align-items:end; justify-content:center;
    width:42%; height:155px; min-height:0; max-height:none; margin:0;
    overflow:visible;
  }
  .personal-home.wdu-profile .wea-mobile-basic .wds-art img {
    width:100%; height:100%; max-height:none; max-width:none;
    object-fit:contain; object-position:center bottom;
    filter:drop-shadow(0 6px 5px rgba(93,35,148,.12));
  }
  .personal-home.wdu-profile .wds-hero.wea-mobile-basic > .wds-right {
    position:relative; z-index:2; display:block;
    width:100%; min-width:0; padding:5px 16px 22px;
    background:#fffafd;
  }
  .personal-home.wdu-profile .wea-mobile-basic .wdv-step-nav {
    display:flex; align-items:center; justify-content:space-between;
    gap:0; margin:2px 0 14px; padding:5px 0 0;
  }
  .personal-home.wdu-profile .wea-mobile-basic .wdv-step-nav .wdv-step {
    min-width:0; width:33%; flex: 1 1 0; max-width:none;
    padding:3px 0; gap:4px; border-radius:9px;
    font-size:10.3px; line-height:1.18; text-align:center;
    white-space:normal; color:#241338;
    background:transparent;
  }
  .personal-home.wdu-profile .wea-mobile-basic .wdv-step-nav .wdv-step.current {background:transparent}
  .personal-home.wdu-profile .wea-mobile-basic .wdv-step-nav .wdv-step b {
    width:31px; height:31px; border-radius:50%;
    font-size:15px; font-weight:850; border:2px solid #d7beff;
  }
  .personal-home.wdu-profile .wea-mobile-basic .wdv-step-nav .wds-line {
    flex:0 0 6%; min-width:0; height:2px; margin:0 -5px 18px;
    background:linear-gradient(90deg,#b482ea,#dfcbf9);
  }
  .personal-home.wdu-profile .wea-mobile-basic .wds-section-label {
    display:block; background:#ead7ff;
    padding:8px 12px; border-radius:9px;
    font-size:18px; line-height:1.2; font-weight:950;
    color:#241040; letter-spacing:-.02em;
    margin:0 0 12px;
  }
  .personal-home.wdu-profile .wea-mobile-basic .wds-form-heading {
    display:flex; align-items:center; justify-content:space-between;
    gap:8px; margin:0 0 11px;
  }
  .personal-home.wdu-profile .wea-mobile-basic .wds-form-heading h2 {
    font-size:14px; font-weight:850; margin:0 0 3px;
  }
  .personal-home.wdu-profile .wea-mobile-basic .wds-form-heading p {
    font-size:10px; line-height:1.3; margin:0;
  }
  .personal-home.wdu-profile .wea-mobile-basic .wds-photo {
    display:flex; align-items:center; gap:5px; max-width:48%;
  }
  .personal-home.wdu-profile .wea-mobile-basic .wds-photo-avatar {
    width:43px; height:43px; min-width:43px;
    border-width:2px;
  }
  .personal-home.wdu-profile .wea-mobile-basic .wds-photo-avatar .pxp-profile-photo {
    width:39px!important; height:39px!important; font-size:16px;
  }
  .personal-home.wdu-profile .wea-mobile-basic .wds-photo-control {
    gap:3px; min-width:0;
  }
  .personal-home.wdu-profile .wea-mobile-basic .wds-change-photo,
  .personal-home.wdu-profile .wea-mobile-basic .wds-photo-control button {
    font-size:10px; line-height:1.15;
    white-space:normal;
  }
  .personal-home.wdu-profile .wea-mobile-basic .wds-form {
    display:grid; grid-template-columns:1fr; gap:11px;
  }
  .personal-home.wdu-profile .wea-mobile-basic .wds-form label {
    display:flex; flex-direction:column; align-items:stretch;
    font-size:12px; gap:4px; font-weight:760; color:#20152d;
  }
  .personal-home.wdu-profile .wea-mobile-basic .wds-form label .wds-locked {font-size:9px}
  .personal-home.wdu-profile .wea-mobile-basic .wds-form input {
    font-size:13px; line-height:1.3; min-height:41px;
    padding:10px 12px; width:100%; border:1px solid #ccbfdf;
    border-radius:9px; box-shadow:0 1px 1px #3a245009;
  }
  .personal-home.wdu-profile .wea-mobile-basic .wds-field-note {
    font-size:10px; line-height:1.45; padding:9px 11px;
    border-radius:9px;
  }
  .personal-home.wdu-profile .wea-mobile-basic .wds-actions {
    border-top:0; display:flex; flex-direction:column;
    gap:7px; padding:0; margin:2px 0 0;
  }
  .personal-home.wdu-profile .wea-mobile-basic .wds-actions>span {font-size:10px; text-align:center; order:2}
  .personal-home.wdu-profile .wea-mobile-basic .wds-submit {
    display:flex; align-items:center; justify-content:center; gap:7px;
    width:100%; min-height:43px; padding:10px;
    font-weight:900; font-size:13px; border-radius:10px;
    box-shadow:0 4px 10px #8b35da33;
  }
  .personal-home.wdu-profile .wea-mobile-basic .wdw-discovery {
    margin:15px 0 0;
  }
  .personal-home.wdu-profile .wea-mobile-basic .wdw-discovery .workxp-visibility-card {
    display:flex; flex-direction:column; gap:4px;
    padding:12px; border-radius:12px;
    background:#f7f1ff;
  }
  .personal-home.wdu-profile .wea-mobile-basic .wdw-discovery .workxp-visibility-card h2 {font-size:14px;margin:2px 0}
  .personal-home.wdu-profile .wea-mobile-basic .wdw-discovery .workxp-visibility-card p {font-size:10.5px;margin:2px 0;line-height:1.35}
  .personal-home.wdu-profile .wea-mobile-basic .wdw-discovery .workxp-visibility-card button {
    width:100%; max-width:none; font-size:11px; margin:8px 0 0;
    padding:10px; grid-column:auto; grid-row:auto;
  }
  .personal-home.wdu-profile .wea-mobile-basic .wdv-footer {
    display:flex; flex-direction:column; gap:8px;
    padding:12px 0 0; margin:12px 0 0;
  }
  .personal-home.wdu-profile .wea-mobile-basic .wdv-footer>span {font-size:10px;text-align:center}
  .personal-home.wdu-profile .wea-mobile-basic .wdv-footer .wdv-forward {
    display:flex; justify-content:center; width:100%;
    min-height:43px; align-items:center;
    margin:0; font-size:12px; padding:10px;
  }
}
@media (max-width: 365px) {
  .personal-home.wdu-profile .wds-hero.wea-mobile-basic > .wds-illustration {min-height:200px; padding:13px 13px 20px}
  .personal-home.wdu-profile .wea-mobile-basic .wds-illustration h2 {font-size:23px}
  .personal-home.wdu-profile .wea-mobile-basic .wds-illustration p {font-size:10px}
  .personal-home.wdu-profile .wds-hero.wea-mobile-basic > .wds-right {padding:4px 12px 18px}
  .personal-home.wdu-profile .wea-mobile-basic .wdv-step-nav .wdv-step {font-size:9px}
}
