@layer preferences {
  .v3-dating-page {
    min-width: 0;
  }
  .v3-dating-page h1,
  .v3-dating-page h2,
  .v3-dating-page h3 {
    text-wrap: balance;
    overflow-wrap: normal;
    word-break: normal;
  }
  .dating-card .profile-avatar {
    display: block;
    height: auto;
  }
  .dating-card .profile-avatar .compatibility {
    position: absolute;
    left: 13px;
    bottom: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: calc(100% - 26px);
    padding: 9px 12px;
    background: #fffffff2;
    color: #734295;
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
  }
  .dating-card .profile-avatar .compatibility > .icon {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
  }
  .dating-card .photo-count {
    font-family: var(--sans);
    line-height: 1.5;
  }
  .v3-form-section-head {
    padding-bottom: 22px;
  }
  .v3-form-section-head h3 {
    margin: 8px 0;
    font-size: 27px;
  }
  .v3-form-section-head p,
  .v3-onboarding-intro p {
    color: var(--ink-soft);
    font-size: 15px;
    line-height: 1.8;
  }
  .v3-registration {
    min-width: 0;
    padding: 26px 0 8px;
    border-top: 1px solid var(--line);
    margin-top: 8px;
  }
  .v3-preference-fields {
    width: 100%;
    min-width: 0;
    align-items: start;
  }
  .v3-preference-fields .field {
    margin-top: 0;
    min-width: 0;
  }
  .v3-preference-fields select {
    width: 100%;
    max-width: 100%;
  }
  .v3-preference-fields .field small {
    display: block;
    margin-top: 8px;
    line-height: 1.7;
  }
  .v3-preference-lock {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #f5edfa;
    color: #59416b;
    padding: 17px;
    border: 1px solid #decee9;
    border-radius: 12px;
  }
  .v3-preference-lock > .icon {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    margin-top: 2px;
  }
  .v3-preference-lock p {
    margin: 0;
    font-size: 13px;
    line-height: 1.8;
  }
  .v3-preference-lock strong {
    display: block;
  }
  .v3-confirmation {
    align-items: flex-start;
    margin: 0 !important;
    padding: 0 2px;
    line-height: 1.7;
  }
  .v3-confirmation input {
    margin-top: 2px;
    flex: 0 0 21px;
  }
  .v3-registration-pickers {
    display: grid;
    gap: 25px;
    margin-top: 28px;
  }
  .v3-catalog-picker {
    min-width: 0;
    width: 100%;
    border: 0;
    padding: 0;
    margin: 0;
  }
  .v3-catalog-picker legend {
    display: block;
    padding: 0;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
  }
  .v3-picker-caption {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 13px;
    font-size: 13px;
    line-height: 1.7;
    color: var(--muted);
  }
  .v3-picker-caption > p {
    margin: 0;
  }
  .v3-picker-caption > span {
    flex: 0 0 auto;
    padding: 1px 7px;
    border-radius: 6px;
    background: var(--paper-deep);
    color: var(--ink-soft);
    font-size: 12px;
  }
  .v3-choice-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
  }
  .v3-choice {
    position: relative;
    display: inline-flex;
    max-width: 100%;
    cursor: pointer;
  }
  .v3-choice input {
    position: absolute;
    width: 1px;
    height: 1px;
    min-height: 0;
    padding: 0;
    opacity: 0;
    pointer-events: none;
  }
  .v3-choice > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 14px;
    border: 1.5px solid #d6c9df;
    border-radius: 24px;
    background: #fff;
    color: #574466;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    transition: background .15s, border-color .15s;
  }
  .v3-choice input:checked + span {
    background: #734295;
    color: white;
    border-color: #734295;
    box-shadow: 0 2px 5px #4f236014;
  }
  .v3-choice:hover > span {
    border-color: #734295;
  }
  .v3-choice input:focus-visible + span {
    outline: 3px solid #e59c40;
    outline-offset: 3px;
  }
  .v3-picker-status {
    display: block;
    margin-top: 10px;
    font-size: 12px;
    color: var(--muted);
    line-height: 1.7;
  }
  .v3-picker-limit .v3-picker-status {
    color: #70438f;
  }
  .v3-onboarding-page {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    gap: 60px;
    align-items: start;
  }
  .v3-onboarding-intro {
    padding-top: 25px;
  }
  .v3-onboarding-intro .eyebrow {
    display: block;
    margin: 24px 0 14px;
  }
  .v3-onboarding-intro h1 {
    font-size: clamp(34px, 4vw, 53px);
    line-height: 1.15;
    margin-bottom: 22px;
  }
  .v3-dating-symbol,
  .v3-summary-icon {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    color: #734295;
    background: #ecdef6;
  }
  .v3-dating-symbol {
    width: 70px;
    height: 70px;
    border-radius: 22px;
    transform: rotate(-6deg);
  }
  .v3-dating-symbol > .icon {
    width: 34px;
    height: 34px;
    transform: rotate(6deg);
  }
  .v3-preferences-card {
    width: 100%;
    max-width: none;
    margin: 0;
  }
  .v3-preferences-card > .button {
    margin-top: 25px;
  }
  .v3-preference-summary,
  .v3-locked-choice {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: #f3edf8;
    border: 1px solid #e1d3eb;
    border-radius: 15px;
    margin-bottom: 24px;
  }
  .v3-preference-summary > div,
  .v3-locked-choice > div {
    min-width: 0;
    flex: 1;
  }
  .v3-preference-summary strong,
  .v3-locked-choice strong {
    display: block;
    font-size: 15px;
  }
  .v3-preference-summary p,
  .v3-locked-choice p {
    font-size: 13px;
    color: var(--ink-soft);
    line-height: 1.7;
    margin-top: 5px;
  }
  .v3-locked-choice {
    margin-bottom: 0;
    align-items: flex-start;
  }
  .v3-locked-choice small {
    display: block;
    color: var(--muted);
    font-size: 11px;
    margin-bottom: 5px;
  }
  .v3-results-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin: 35px 0 20px;
  }
  .v3-results-heading h2 {
    font-size: 30px;
  }
  .v3-results-heading p {
    font-size: 13px;
    color: var(--muted);
  }
  .v3-dating-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 28px;
  }
  .v3-dating-steps > div {
    padding: 25px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 17px;
  }
  .v3-dating-steps span {
    display: grid;
    place-items: center;
    width: 35px;
    height: 35px;
    border-radius: 11px;
    background: #eee2f7;
    color: #734295;
    margin-bottom: 18px;
    font-weight: 700;
  }
  .v3-dating-steps strong {
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
  }
  .v3-dating-steps p {
    font-size: 14px;
    color: var(--ink-soft);
    line-height: 1.8;
  }
  .v3-join-art {
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 17px;
    min-height: 330px;
    background: radial-gradient(ellipse at 30% 30%, #e7cfee 0, transparent 60%), linear-gradient(145deg, #f1e6fa, #faf0ed);
    border-radius: 23px;
    padding: 25px;
    overflow: hidden;
  }
  .v3-join-art > span {
    display: grid;
    place-items: center;
    width: 100px;
    height: 100px;
    border: 1px solid #ffffffc9;
    border-radius: 33px;
    background: #ffffff8c;
    color: #8c4b98;
    transform: rotate(-9deg);
    margin-bottom: 15px;
  }
  .v3-join-art > span > .icon {
    width: 48px;
    height: 48px;
    transform: rotate(9deg);
  }
  .v3-art-chip {
    max-width: 100%;
    padding: 11px 18px;
    border: 1px solid #ffffffb3;
    border-radius: 30px;
    background: #ffffffb3;
    color: #63426e;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
  }
  .v3-art-chip:nth-child(2) {
    transform: translateX(-12px) rotate(-3deg);
  }
  .v3-art-chip:nth-child(3) {
    transform: translateX(8px) rotate(2deg);
  }
  .v3-own-profile .detail-layout {
    grid-template-columns: minmax(0, 1fr) minmax(300px, .6fr);
    gap: 25px;
  }
  .v3-own-profile .detail-layout > aside {
    display: block;
  }
  .v3-own-profile .photo-manager {
    padding: 24px;
    width: 100%;
  }
  .v3-own-profile .photo-tile figcaption {
    font-size: 11px;
    padding-top: 6px;
  }
  .v3-own-profile .photo-progress > strong {
    flex: 0 0 100%;
    font-size: 13px;
  }
  .v3-own-profile .photo-progress > span {
    display: grid;
    place-items: center;
    padding: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
  }
  .v3-own-profile .photo-progress > span.complete {
    color: #246a47;
    background: #e2f2e8;
  }
  .v3-own-profile .photo-progress .icon {
    width: 21px;
    height: 21px;
  }
  .v3-request-intro {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 24px;
  }
  .v3-request-intro p {
    margin: 0;
    line-height: 1.8;
    color: var(--ink-soft);
    font-size: 14px;
  }
  #v3-dating-request .notice-text {
    margin-top: 14px;
    line-height: 1.8;
    color: var(--muted);
  }
  @media (max-width: 1000px) {
    .v3-onboarding-page {
      gap: 30px;
      grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    }
    .v3-own-profile .detail-layout {
      grid-template-columns: minmax(0, 1fr);
    }
    .v3-own-profile .photo-manager {
      max-width: none;
    }
    .v3-results-heading {
      display: block;
    }
    .v3-results-heading p {
      margin-top: 8px;
    }
  }
  @media (max-width: 760px) {
    .v3-onboarding-page {
      display: block;
    }
    .v3-onboarding-intro {
      padding-top: 0;
      margin-bottom: 28px;
    }
    .v3-onboarding-intro h1 {
      font-size: 36px;
      margin-bottom: 16px;
    }
    .v3-dating-symbol {
      width: 53px;
      height: 53px;
      border-radius: 17px;
    }
    .v3-dating-symbol > .icon {
      width: 28px;
      height: 28px;
    }
    .v3-preference-summary {
      flex-wrap: wrap;
      padding: 18px;
    }
    .v3-preference-summary > .text-button {
      flex-basis: 100%;
      text-align: left;
    }
    .v3-preference-summary strong,
    .v3-locked-choice strong {
      font-size: 14px;
    }
    .v3-preference-summary p,
    .v3-locked-choice p {
      font-size: 12px;
    }
    .v3-results-heading h2 {
      font-size: 27px;
    }
    .v3-dating-steps {
      grid-template-columns: 1fr;
    }
    .v3-dating-steps > div {
      padding: 22px;
    }
    .v3-join-art {
      min-height: 300px;
    }
    .v3-choice-grid {
      gap: 8px;
    }
    .v3-choice > span {
      padding: 10px 12px;
      font-size: 12px;
    }
    .v3-preference-lock {
      padding: 14px;
      gap: 10px;
    }
    .v3-preference-lock p {
      font-size: 12px;
    }
    .v3-registration {
      padding-top: 23px;
    }
    .v3-locked-choice {
      padding: 17px;
      gap: 12px;
    }
  }
  @media (prefers-reduced-motion: reduce) {
    .v3-choice > span {
      transition: none;
    }
  }
}
