@font-face {
    font-family: Open;
    src: url("/fonts/konfigurator-open.woff2") format("woff2");
    font-display: swap;
}

@font-face {
    font-family: Mont;
    src: url("/fonts/konfigurator-mont.woff2") format("woff2");
    font-display: swap;
}

@font-face {
    font-family: Script;
    src: url("/fonts/konfigurator-script.woff2") format("woff2");
    font-display: swap;
}

.finder-intro-copy {
    margin: 0 auto 24px;
    text-align: center;
}

@media (max-width: 850px) {
    body:has(.finder-page) #un-chat {
        display: none !important;
    }
}

/* Grundlayout und Auswahlschritte. */
#nageldesign * {
    box-sizing: border-box;
}

#nageldesign {
    margin: 0px;
    background: rgb(255, 255, 255);
    color: rgb(40, 36, 40);
    font: 15px / 1.7 Open, Arial, sans-serif;
}

#nageldesign button,
#nageldesign a {
    touch-action: manipulation;
}

#nageldesign button {
    font: inherit;
    cursor: pointer;
}

#nageldesign button:focus-visible,
#nageldesign a:focus-visible {
    outline: rgb(152, 38, 93) solid 3px;
    outline-offset: 4px;
}

#nageldesign header {
    border-bottom: 1px solid rgb(238, 238, 238);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px max(24px, -580px + 50vw);
    gap: 25px;
}

#nageldesign header img {
    width: 116px;
}

#nageldesign header span {
    font-size: 12px;
    letter-spacing: 2px;
}

#nageldesign .intro {
    text-align: center;
    padding: 25px 20px 30px;
}

#nageldesign .script {
    font: 70px / 1 Script, cursive;
    color: rgb(236, 85, 152);
}

#nageldesign .intro .finder-title {
    font: 600 23px Mont, Arial;
    letter-spacing: 5px;
    text-transform: uppercase;
    margin: 0px 0px 18px;
}

#nageldesign .intro p {
    margin: 0px;
    color: rgb(103, 99, 106);
}

#nageldesign .layout {
    max-width: 1160px;
    margin: 0px auto 50px;
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 34px;
    padding: 0px 20px;
}

#nageldesign aside {
    background: rgb(250, 245, 247);
    align-self: start;
}

#nageldesign aside img {
    width: 100%;
    display: block;
    aspect-ratio: 1.35 / 1;
    object-fit: cover;
}

#nageldesign .asidebody {
    padding: 24px;
}

#nageldesign .asidebody h2 {
    font: 22px / 1.4 Mont;
    margin: 0px 0px 12px;
}

#nageldesign .asidebody p {
    color: rgb(104, 97, 105);
    font-size: 14px;
}

#nageldesign .asidebody small {
    display: block;
    border-top: 1px solid rgb(234, 220, 227);
    padding-top: 16px;
    color: rgb(122, 113, 118);
}

#nageldesign .panel {
    border-width: 3px 1px 1px;
    border-style: solid;
    border-color: rgb(236, 85, 152) rgb(235, 223, 229) rgb(235, 223, 229);
    border-image: none;
    padding: 28px 30px;
    min-height: 470px;
}

#nageldesign .steps {
    display: flex;
    gap: 8px;
    margin-bottom: 25px;
}

#nageldesign .step {
    flex: 1 1 0%;
    border-top: 3px solid rgb(238, 238, 238);
    padding-top: 9px;
    font-size: 12px;
    color: rgb(136, 136, 136);
}

#nageldesign .step.active {
    border-color: rgb(236, 85, 152);
    color: rgb(166, 34, 98);
}

#nageldesign .eyebrow {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgb(166, 34, 98);
}

#nageldesign h2 {
    font: 600 25px / 1.4 Mont;
    margin: 9px 0px 8px;
}

#nageldesign .lead {
    color: rgb(113, 106, 112);
    margin: 0px 0px 22px;
}

#nageldesign .options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

#nageldesign .option {
    border: 1px solid rgb(228, 216, 223);
    background: white;
    padding: 18px;
    text-align: left;
    min-height: 105px;
    color: rgb(48, 39, 48);
    position: relative;
}

#nageldesign .option:hover {
    background: rgb(255, 245, 249);
    border-color: rgb(236, 85, 152);
}

#nageldesign .option strong {
    display: block;
    font-size: 15px;
}

#nageldesign .option small {
    display: block;
    color: rgb(119, 112, 120);
    line-height: 1.55;
    margin-top: 5px;
}

#nageldesign .option b {
    color: rgb(214, 67, 134);
    font-size: 22px;
    display: block;
    margin-bottom: 5px;
}

#nageldesign .back {
    border: 0px;
    background: none;
    color: rgb(139, 82, 109);
    padding: 12px 0px;
    margin-top: 14px;
    text-decoration: underline;
}

#nageldesign .summary {
    display: flex;
    gap: 14px;
    background: rgb(252, 244, 248);
    border-left: 3px solid rgb(236, 85, 152);
    padding: 18px 20px;
    margin: 20px 0px;
}

#nageldesign .summary > div {
    flex: 1 1 0%;
}

#nageldesign .summary small {
    display: block;
    color: rgb(117, 100, 111);
}

#nageldesign .summary strong {
    font: 25px / 1.5 Mont;
    display: block;
}

#nageldesign .note {
    font-size: 12px;
    color: rgb(122, 104, 114);
}

#nageldesign .cta {
    display: block;
    text-align: center;
    padding: 14px 20px;
    background: rgb(236, 85, 152);
    color: white;
    text-decoration: none;
    font-weight: bold;
    margin-top: 20px;
}

#nageldesign .cta:hover {
    background: rgb(217, 68, 136);
}

#nageldesign .details {
    padding: 12px 0px;
    border-top: 1px solid rgb(238, 238, 238);
    font-size: 13px;
}

#nageldesign .details p {
    margin: 6px 0px;
}

#nageldesign .tags {
    color: rgb(139, 82, 109);
    font-size: 12px;
}

#nageldesign footer {
    text-align: center;
    border-top: 1px solid rgb(238, 238, 238);
    padding: 20px;
    color: rgb(123, 114, 120);
    font-size: 12px;
}

@media (max-width: 760px) {
    #nageldesign header {
        padding: 12px 20px;
    }

    #nageldesign header img {
        width: 92px;
    }

    #nageldesign header span {
        letter-spacing: 1px;
        font-size: 10px;
    }

    #nageldesign .intro {
        padding: 24px 15px;
    }

    #nageldesign .script {
        font-size: 58px;
    }

    #nageldesign .intro .finder-title {
        font-size: 18px;
        letter-spacing: 3px;
    }

    #nageldesign .layout {
        display: flex;
        flex-direction: column;
        gap: 20px;
        padding: 0px 15px;
    }

    #nageldesign .panel {
        order: 0;
        padding: 20px;
        min-height: 0px;
    }

    #nageldesign aside {
        order: 1;
        display: flex;
        width: 100%;
    }

    #nageldesign aside img {
        width: 32%;
        object-fit: cover;
        aspect-ratio: auto;
    }

    #nageldesign .asidebody {
        padding: 18px;
    }

    #nageldesign .asidebody h2 {
        font-size: 18px;
    }

    #nageldesign .asidebody p {
        font-size: 12px;
    }

    #nageldesign .asidebody small {
        display: none;
    }

    #nageldesign h2 {
        font-size: 22px;
    }

    #nageldesign .options {
        gap: 10px;
    }

    #nageldesign .option {
        padding: 14px;
        min-height: 125px;
    }

    #nageldesign .option strong {
        font-size: 14px;
    }

    #nageldesign .summary {
        flex-direction: column;
        gap: 12px;
    }

    #nageldesign .summary strong {
        font-size: 24px;
    }

    #nageldesign header span {
        max-width: 170px;
        text-align: right;
    }
}

#nageldesign .layout {
    max-width: 1360px;
    grid-template-columns: minmax(0px, 1fr) minmax(0px, 1.05fr);
    gap: 28px;
}

#nageldesign .panel {
    min-width: 0px;
    border-radius: 14px;
    padding: 24px;
}

#nageldesign .photo-panel {
    position: sticky;
    top: 20px;
    border-radius: 14px;
    overflow: hidden;
    background: rgb(250, 245, 247);
}

#nageldesign #nail-preview {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: auto 1166 / 1349;
    object-fit: contain;
}

#nageldesign .asidebody {
    padding: 15px 20px;
}

#nageldesign .asidebody p {
    margin: 5px 0px;
}

#nageldesign .small-button {
    border: 1px solid rgb(215, 186, 201);
    border-radius: 8px;
    background: rgb(255, 255, 255);
    color: rgb(139, 36, 85);
    padding: 9px 14px;
    font: inherit;
    cursor: pointer;
}

#nageldesign .steps {
    gap: 6px;
}

#nageldesign .step {
    font-size: 11px;
}

#nageldesign .option {
    border-radius: 9px;
    min-height: 85px;
}

#nageldesign .option.selected {
    border-color: rgb(177, 37, 100);
    background: rgb(255, 240, 247);
    box-shadow: rgb(177, 37, 100) 0px 0px 0px 1px inset;
}

#nageldesign .compact .option {
    min-height: 54px;
    padding: 11px 14px;
}

#nageldesign .compact .option strong {
    font-size: 13px;
}

#nageldesign fieldset {
    border: 0px;
    padding: 0px;
    margin: 18px 0px;
}

#nageldesign legend {
    font-weight: bold;
    margin-bottom: 8px;
}

#nageldesign .swatches {
    display: grid;
    grid-template-columns: repeat(6, minmax(0px, 1fr));
    gap: 8px;
}

#nageldesign .swatch {
    border: 0px;
    background: none;
    padding: 4px 0px;
    color: rgb(73, 55, 66);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    min-width: 0px;
}

#nageldesign .swatch i {
    width: 32px;
    height: 32px;
    display: block;
    border: 1px solid rgb(220, 203, 210);
    border-radius: 50%;
}

#nageldesign .swatch[aria-pressed="true"] i {
    outline: rgb(166, 34, 98) solid 2px;
    outline-offset: 3px;
}

#nageldesign .swatch[aria-pressed="true"] {
    color: rgb(166, 34, 98);
    font-weight: bold;
}

#nageldesign .design-note {
    font-size: 13px;
    padding: 12px;
    background: rgb(251, 241, 246);
    border-radius: 8px;
}

#nageldesign .cta {
    width: 100%;
    border: 0px;
    border-radius: 8px;
    font-style: inherit;
    font-variant: inherit;
    font-stretch: inherit;
    font-size: inherit;
    line-height: inherit;
    font-family: inherit;
    font-optical-sizing: inherit;
    font-size-adjust: inherit;
    font-kerning: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    font-language-override: inherit;
    font-weight: bold;
    cursor: pointer;
}

#nageldesign .look-summary {
    color: rgb(158, 36, 92);
    font-weight: bold;
}

#nageldesign .restart {
    float: right;
}

#nageldesign .summary {
    flex-wrap: wrap;
}

#nageldesign .summary strong {
    font-size: 21px;
}

#nageldesign .intro {
    padding-bottom: 22px;
}

#nageldesign .photo-label {
    font-weight: bold;
    font-size: 13px !important;
    color: rgb(139, 36, 85) !important;
}

#nageldesign button:disabled {
    opacity: 0.5;
}

#nageldesign .asidebody .small-button {
    font-size: 12px;
    margin-top: 10px;
}

@media (max-width: 850px) {
    #nageldesign .layout {
        display: flex;
        flex-direction: column;
        padding: 0px 14px;
        gap: 16px;
    }

    #nageldesign .photo-panel {
        position: static;
        display: block;
        order: 0;
        width: 100%;
        max-width: 520px;
        margin: 0px auto;
    }

    #nageldesign #nail-preview {
        width: 100%;
        height: auto;
    }

    #nageldesign .photo-panel .asidebody {
        padding: 10px 14px;
    }

    #nageldesign .photo-panel .asidebody .note {
        font-size: 11px;
    }

    #nageldesign .panel {
        order: 1;
        padding: 18px;
    }

    #nageldesign .intro .script {
        font-size: 48px;
    }

    #nageldesign .intro .finder-title {
        font-size: 19px;
    }

    #nageldesign .swatches {
        grid-template-columns: repeat(6, minmax(0px, 1fr));
    }

    #nageldesign .options {
        grid-template-columns: 1fr 1fr;
    }

    #nageldesign .option {
        min-height: 85px;
    }

    #nageldesign .steps .step {
        font-size: 10px;
    }

    #nageldesign .summary {
        flex-direction: column;
    }

    #nageldesign .photo-panel .asidebody small {
        display: block;
    }
}

@media (max-width: 380px) {
    #nageldesign .swatches {
        grid-template-columns: repeat(5, minmax(0px, 1fr));
    }

    #nageldesign .option {
        padding: 11px;
    }

    #nageldesign .option strong {
        font-size: 13px;
    }
}

/* Rückmeldungen beim Laden der Vorschau. */
#nageldesign .preview-frame {
    position: relative;
    background: rgb(250, 244, 247);
    overflow: hidden;
}

#nageldesign #nail-preview {
    transition: filter 280ms;
}

#nageldesign #nail-preview[aria-busy="true"] {
    filter: blur(7px) brightness(0.82);
}

#nageldesign .preview-feedback {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 20px;
    right: 20px;
    display: grid;
    justify-items: center;
    gap: 6px;
    pointer-events: none;
}

#nageldesign .preview-feedback .small-button {
    pointer-events: auto;
}

#nageldesign #image-status {
    margin: 0px;
    max-width: 100%;
    border-radius: 12px;
    background: rgba(255, 250, 252, 0.98);
    color: rgb(116, 37, 71);
    font-size: 13px;
    line-height: 1.45;
    text-align: center;
    padding: 10px 14px;
    box-shadow: rgba(67, 33, 49, 0.086) 0px 2px 12px;
}

#nageldesign #image-status:empty {
    display: none;
}

#nageldesign #image-status[data-state="loading"]::after {
    content: "";
    display: block;
    height: 3px;
    border-radius: 3px;
    margin: 7px auto 0px;
    background: linear-gradient(90deg, rgb(245, 212, 226) 18%, rgb(234, 166, 194) 44%, rgb(213, 117, 160) 50%, rgb(234, 166, 194) 56%, rgb(245, 212, 226) 82%) 0% 0% / 220% 100%;
    animation: 1.85s ease-in-out 0s infinite alternate none running preview-wait;
}

@keyframes preview-wait {
    0% {
        background-position: 100% 0px;
    }

    100% {
        background-position: 0px 0px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #nageldesign #nail-preview {
        transition: none;
    }

    #nageldesign #image-status[data-state="loading"]::after {
        animation: auto ease 0s 1 normal none running none;
        background: rgb(233, 176, 201);
    }
}

#nageldesign .panel .back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    max-width: 100%;
    margin: 18px 10px 0px 0px;
    padding: 11px 20px;
    border: 1px solid rgb(177, 37, 100);
    border-radius: 9px;
    background: rgb(255, 255, 255);
    color: rgb(158, 36, 92);
    font-style: inherit;
    font-variant: inherit;
    font-stretch: inherit;
    font-size: inherit;
    font-family: inherit;
    font-optical-sizing: inherit;
    font-size-adjust: inherit;
    font-kerning: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    font-language-override: inherit;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    white-space: normal;
    box-shadow: rgba(139, 36, 85, 0.06) 0px 2px 6px;
    transition: background-color 0.18s, color 0.18s, box-shadow 0.18s;
}

#nageldesign .panel .back:hover:not(:disabled) {
    background: rgb(255, 240, 247);
    color: rgb(139, 36, 85);
    box-shadow: rgba(139, 36, 85, 0.12) 0px 3px 10px;
}

#nageldesign .panel .back:active:not(:disabled) {
    background: rgb(249, 220, 233);
    box-shadow: none;
}

#nageldesign .panel .back:focus-visible {
    outline: rgb(152, 38, 93) solid 3px;
    outline-offset: 3px;
}

#nageldesign .panel .back.restart {
    float: none;
}

@media (max-width: 480px) {
    #nageldesign .panel .back {
        display: flex;
        width: 100%;
        margin-right: 0px;
        padding: 12px 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #nageldesign .panel .back {
        transition: none;
    }
}

#nageldesign .lead,
#nageldesign .note,
#nageldesign .design-note,
#nageldesign .option small,
#nageldesign #intro-copy,
#nageldesign .details p {
    white-space: pre-line;
    overflow-wrap: anywhere;
}

#nageldesign [hidden] {
    display: none !important;
}

#nageldesign #connection-status {
    color: rgb(139, 36, 85);
    font-size: 14px;
    margin-top: 16px;
}

#nageldesign #connection-status:empty {
    display: none;
}

#nageldesign header img {
    height: auto;
}

/* Farbmuster für die Designauswahl. */
#nageldesign .color-weiss {
    background: rgb(255, 255, 255);
}

#nageldesign .color-kirschrot {
    background: rgb(174, 7, 34);
}

#nageldesign .color-bordeaux {
    background: rgb(101, 27, 54);
}

#nageldesign .color-rosenholz {
    background: rgb(169, 99, 120);
}

#nageldesign .color-nude {
    background: rgb(196, 147, 131);
}

#nageldesign .color-rose {
    background: rgb(220, 169, 185);
}

#nageldesign .color-pink {
    background: rgb(212, 33, 129);
}

#nageldesign .color-koralle {
    background: rgb(233, 97, 97);
}

#nageldesign .color-lavendel {
    background: rgb(165, 138, 199);
}

#nageldesign .color-petrol {
    background: rgb(35, 124, 128);
}

#nageldesign .color-mitternacht {
    background: rgb(37, 54, 84);
}

#nageldesign .preview-frame.is-preparing {
    isolation: isolate;
    overflow: hidden;
}

#nageldesign .preview-frame.is-preparing::after {
    content: "";
    position: absolute;
    inset: -40%;
    z-index: 1;
    pointer-events: none;
    background: radial-gradient(at 32% 42%, rgba(255, 248, 251, 0.76), transparent 36%), radial-gradient(at 64% 63%, rgba(233, 171, 204, 0.48), transparent 40%);
    animation: 2s ease-in-out 0s infinite alternate none running nail-soft-light;
}

#nageldesign .preview-frame.is-preparing .preview-feedback {
    z-index: 2;
}

#nageldesign .preview-frame.is-preparing #image-status[data-state="loading"]::before,
#nageldesign .preview-frame.is-preparing #image-status[data-state="loading"]::after {
    display: none;
}

@keyframes nail-soft-light {
    0% {
        transform: translate3d(-22%, -9%, 0px);
    }

    100% {
        transform: translate3d(22%, 9%, 0px);
    }
}

@media (prefers-reduced-motion: reduce) {
    #nageldesign .preview-frame.is-preparing::after {
        animation: auto ease 0s 1 normal none running none;
    }
}

#nageldesign #save-picture .save-compact {
    display: none;
}

#nageldesign .result-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0px, 1fr));
    gap: 10px;
    margin-top: 20px;
}

#nageldesign .result-actions .cta {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    margin: 0px;
    padding: 10px 12px;
    border: 1px solid rgb(174, 28, 101);
    color: rgb(255, 255, 255);
    background: rgb(174, 28, 101);
    line-height: 1.3;
}

#nageldesign .result-actions .result-phone {
    background: white;
    color: rgb(146, 32, 83);
}

#nageldesign .result-actions .result-booking:hover {
    background: rgb(142, 22, 79);
}

#nageldesign .result-actions .result-phone:hover {
    background: rgb(255, 240, 246);
}

/* Mobiler Ablauf mit Fortschrittsanzeige, Vorschau und Navigation. */
@media (max-width: 850px) {
    #nageldesign.finder-mobile {
        --paper: #fbf8fa;
        --ink: #2a2528;
        --muted: #70666d;
        --berry: #ae1c65;
        --line: #e7dce2;
        --blush: #fff0f6;
        --viewport: 100vh;
        --safe-top: env(safe-area-inset-top, 0px);
        --safe-bottom: max(8px, env(safe-area-inset-bottom, 0px));
        --inset: clamp(12px, 4vw, 24px);
        --gap: clamp(6px, 1.85vw, 11px);
        --header-height: calc(clamp(42px, 13.2vw, 73px) + var(--safe-top));
        --bar-height: clamp(3px, 1vw, 6px);
        --nav-height: clamp(46px, 13.2vw, 64px);
        --content-height: calc(var(--viewport) - var(--header-height) - var(--bar-height) - var(--nav-height) - var(--safe-bottom) - 3 * var(--gap));
        --card-min: clamp(148px, 36vw, 194px);
        --photo-height: min(99.5vw, 597px, max(0px, calc(var(--content-height) - var(--card-min))));
        --card-height: calc(var(--content-height) - var(--photo-height));
        --type: clamp(12.8px, 3.35vw, 18px);
        margin: 0px;
        background: var(--paper);
        color: var(--ink);
        font: var(--type)/1.35 "DejaVu Sans", Arial, sans-serif;
        overflow-anchor: none;
    }

    @media (max-width: 350px) {
        #nageldesign.finder-mobile {
            --card-min: 172px;
        }
    }

    @supports (height: 100dvh) {
        #nageldesign.finder-mobile {
            --viewport: 100dvh;
        }
    }

    #nageldesign.finder-mobile :is(button, a) {
        font-family: inherit;
    }

    #nageldesign.finder-mobile :is(button, a, summary):focus-visible {
        outline: rgb(136, 32, 84) solid 3px;
        outline-offset: 2px;
    }

    #nageldesign.finder-mobile .intro,
    #nageldesign.finder-mobile header > span:not(.mobile-stage-count) {
        display: none;
    }

    #nageldesign.finder-mobile header,
    #nageldesign.finder-mobile .layout {
        width: 100%;
        max-width: 600px;
        margin-inline: auto;
        padding-inline: max(var(--inset), env(safe-area-inset-left, 0px)) max(var(--inset), env(safe-area-inset-right, 0px));
    }

    #nageldesign.finder-mobile header {
        height: var(--header-height);
        display: grid;
        grid-template-columns: auto minmax(0px, 1fr) auto;
        align-items: center;
        gap: clamp(8px, 2.7vw, 16px);
        padding-block: var(--safe-top) 0;
        border: 0px;
    }

    #nageldesign.finder-mobile header img {
        display: block;
        width: clamp(48px, 15.2vw, 91px);
        height: auto;
    }

    #nageldesign.finder-mobile .mobile-stage-title {
        margin: 0px;
        font: 700 clamp(16.8px, 5.25vw, 32px) / 1.12 "DejaVu Sans", Arial, sans-serif;
        color: var(--ink);
        letter-spacing: normal;
        text-transform: none;
        overflow-wrap: anywhere;
    }

    #nageldesign.finder-mobile .mobile-stage-count {
        font: 400 clamp(12px, 3.18vw, 19.2px) / 1.2 "DejaVu Sans", Arial, sans-serif;
        color: var(--muted);
        letter-spacing: normal;
        white-space: nowrap;
    }

    #nageldesign.finder-mobile .mobile-stage-title:focus,
    #nageldesign.finder-mobile .mobile-card-head h2:focus {
        outline: 0px;
    }

    #nageldesign.finder-mobile .layout {
        display: grid;
        grid-template-columns: minmax(0px, 1fr);
        grid-template-rows: var(--bar-height) var(--photo-height) var(--card-height) var(--nav-height) auto auto;
        grid-template-areas: "progress" "photo" "card" "navigation" "extra" "download";
        gap: var(--gap);
        min-width: 0px;
        margin-block: 0px 14px;
    }

    #nageldesign.finder-mobile :is(.panel, .photo-panel, #screen) {
        display: contents;
    }

    #nageldesign.finder-mobile .steps {
        grid-area: progress;
        display: grid;
        grid-template-columns: repeat(4, minmax(0px, 1fr));
        align-items: stretch;
        gap: clamp(4px, 1.25vw, 8px);
        margin: 0px;
    }

    #nageldesign.finder-mobile .steps .step {
        min-width: 0px;
        overflow: hidden;
        border: 0px;
        border-radius: 5px;
        padding: 0px;
        background: var(--line);
        font-size: 0px;
        line-height: 0;
    }

    #nageldesign.finder-mobile .steps .step.active {
        background: var(--berry);
    }

    #nageldesign.finder-mobile .preview-frame {
        grid-area: photo;
        position: relative;
        place-self: center;
        min-width: 0px;
        width: auto;
        max-width: 100%;
        height: 100%;
        aspect-ratio: 1166 / 1349;
        overflow: hidden;
        border-radius: clamp(9px, 2.7vw, 16px);
        background: rgb(243, 230, 230);
    }

    #nageldesign.finder-mobile #nail-preview,
    #nageldesign.finder-mobile .preview-frame img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    #nageldesign.finder-mobile #nail-preview[aria-busy="true"] {
        filter: blur(4px);
    }

    #nageldesign.finder-mobile .preview-feedback {
        inset-inline: 5%;
        top: 50%;
        transform: translateY(-50%);
        gap: 6px;
    }

    #nageldesign.finder-mobile #image-status[data-state="loading"] {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        width: max-content;
        padding: 8px clamp(7px, 2vw, 12px);
        border-radius: 30px;
        color: var(--ink);
        background: rgb(255, 249, 252);
        font-size: clamp(10.72px, 2.77vw, 16.64px);
        text-wrap: balance;
        font-weight: 700;
    }

    #nageldesign.finder-mobile #image-status[data-state="loading"]::after {
        display: none;
    }

    #nageldesign.finder-mobile #image-status[data-state="loading"]::before {
        content: "";
        flex: 0 0 auto;
        width: 0.9em;
        aspect-ratio: 1 / 1;
        border-width: 2px;
        border-style: solid;
        border-right-color: rgb(237, 211, 223);
        border-bottom-color: rgb(237, 211, 223);
        border-left-color: rgb(237, 211, 223);
        border-image: none;
        border-top-color: var(--berry);
        border-radius: 50%;
        animation: 0.75s linear 0s infinite normal none running finder-spin;
    }

    @keyframes finder-spin {
        100% {
            transform: rotate(1turn);
        }
    }

    @media (prefers-reduced-motion: reduce) {
        #nageldesign.finder-mobile #image-status[data-state="loading"]::before {
            animation: auto ease 0s 1 normal none running none;
        }
    }

    #nageldesign.finder-mobile .mobile-card {
        grid-area: card;
        position: relative;
        min-width: 0px;
        min-height: 0px;
        overflow: hidden;
        container-type: size;
        isolation: isolate;
        border: 1px solid var(--line);
        border-radius: clamp(11px, 3vw, 18px);
        background: rgb(255, 255, 255);
    }

    #nageldesign.finder-mobile .mobile-card::before {
        content: "";
        pointer-events: none;
        position: absolute;
        z-index: 2;
        top: clamp(4px, 1.13vw, 7px);
        left: 50%;
        width: clamp(28px, 8.5vw, 52px);
        height: clamp(2px, 0.7vw, 4px);
        transform: translateX(-50%);
        border-radius: 4px;
        background: rgb(206, 193, 201);
    }

    #nageldesign.finder-mobile .mobile-choice-body {
        width: 100%;
        height: 100%;
        min-width: 0px;
        min-height: 0px;
        padding: clamp(11px, 3.2vw, 19px) clamp(7px, 2.25vw, 14px) 6px;
        overflow: auto;
        overscroll-behavior: contain;
        scrollbar-width: thin;
        background: rgb(255, 255, 255);
    }

    #nageldesign.finder-mobile .mobile-slide-out {
        position: absolute;
        inset: 0px;
        pointer-events: none;
    }

    #nageldesign.finder-mobile .mobile-card-head {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        gap: 6px;
        margin: 0px 1px clamp(5px, 1.4vw, 9px);
    }

    #nageldesign.finder-mobile .mobile-card-head h2 {
        min-width: 0px;
        margin: 0px;
        color: var(--ink);
        font: 700 clamp(15.04px, 4vw, 24px) / 1.18 "DejaVu Sans", Arial, sans-serif;
        overflow-wrap: anywhere;
    }

    #nageldesign.finder-mobile .mobile-substep-count {
        flex: 0 0 auto;
        color: var(--muted);
        font-size: clamp(11.04px, 2.85vw, 16.96px);
        white-space: nowrap;
    }

    #nageldesign.finder-mobile .mobile-card fieldset {
        min-inline-size: 0px;
        margin: 0px;
        padding: 0px;
        border: 0px;
    }

    #nageldesign.finder-mobile .mobile-card legend,
    #nageldesign.finder-mobile .mobile-card .option small {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0px;
        margin: -1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }

    #nageldesign.finder-mobile .mobile-card .options {
        display: grid;
        grid-template-columns: repeat(2, minmax(0px, 1fr));
        gap: clamp(3px, 0.95vw, 6px) clamp(4px, 1.2vw, 8px);
        margin: 0px;
    }

    #nageldesign.finder-mobile .mobile-choice-body[data-mobile-page="treatment"] .options {
        grid-template-columns: minmax(0px, 1fr);
    }

    #nageldesign.finder-mobile .mobile-card .option {
        display: grid;
        align-content: center;
        width: 100%;
        min-width: 0px;
        min-height: clamp(35px, 8.8vw, 53px);
        padding: 3px 4px;
        border: 1px solid var(--line);
        border-radius: clamp(5px, 1.6vw, 10px);
        background: rgb(255, 255, 255);
        box-shadow: none;
        color: var(--ink);
        text-align: center;
        line-height: 1.18;
    }

    #nageldesign.finder-mobile .mobile-choice-body:is([data-mobile-page="goal"], [data-mobile-page="treatment"]) .option {
        min-height: clamp(30px, 7.15vw, 43px);
        padding-block: 1px;
    }

    #nageldesign.finder-mobile .mobile-card .option strong {
        font-family: inherit;
        font-size: var(--type);
        font-weight: 400;
        line-height: 1.18;
        overflow-wrap: anywhere;
    }

    #nageldesign.finder-mobile .mobile-choice-body[data-mobile-page="goal"] [data-goal="color"] strong {
        font-size: max(12px, calc(var(--type) * .92));
    }

    #nageldesign.finder-mobile .mobile-card .option:is(.selected, [aria-pressed="true"]) {
        background: var(--blush);
        border-color: var(--berry);
        color: var(--berry);
        box-shadow: inset 0 0 0 .5px var(--berry);
    }

    #nageldesign.finder-mobile .mobile-card .option:is(.selected, [aria-pressed="true"]) strong {
        font-weight: 700;
    }

    #nageldesign.finder-mobile .mobile-card .option:focus-visible {
        outline-offset: -3px;
    }

    #nageldesign.finder-mobile .mobile-card .note {
        margin: clamp(7px, 2.4vw, 14px) 1px 0px;
        color: var(--muted);
        font-size: clamp(12px, 3vw, 16.8px);
        line-height: 1.35;
    }

    #nageldesign.finder-mobile .mobile-card .swatches {
        display: flex;
        align-items: flex-start;
        gap: 0px;
        max-width: 100%;
        margin: 0px;
        padding: 4px 1px 3px;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scrollbar-width: thin;
        scrollbar-color: rgb(215, 201, 208) transparent;
    }

    #nageldesign.finder-mobile .mobile-card .swatch {
        display: flex;
        flex: 0 0 max(16.66%, 46px);
        min-width: max-content;
        min-height: 44px;
        align-items: center;
        justify-content: center;
        gap: clamp(4px, 1.4vw, 8px);
        padding: 4px 3px 2px;
        background: transparent;
        color: var(--muted);
        font-size: clamp(10.4px, 2.5vw, 15.04px);
        line-height: 1.18;
    }

    #nageldesign.finder-mobile .mobile-card .swatch i {
        width: clamp(25px, 7.3vw, 44px);
        height: auto;
        aspect-ratio: 1 / 1;
        border: 1px solid rgb(218, 205, 211);
        border-radius: 50%;
    }

    #nageldesign.finder-mobile .mobile-card .swatch[aria-pressed="true"] {
        color: var(--berry);
        font-weight: 700;
    }

    #nageldesign.finder-mobile .mobile-card .swatch[aria-pressed="true"] i {
        outline: 2px solid var(--berry);
        outline-offset: 3px;
    }

    #nageldesign.finder-mobile .mobile-card .swatch:focus-visible {
        outline-offset: -2px;
        border-radius: 5px;
    }

    #nageldesign.finder-mobile .mobile-card .mobile-color-note {
        display: flex;
        align-items: center;
        gap: 9px;
        margin: 1px 0px 6px;
        padding: 6px 10px;
        border: 1px solid rgb(235, 201, 217);
        border-radius: 8px;
        background: rgb(252, 240, 245);
        color: rgb(132, 35, 79);
        font-size: clamp(13.12px, 3.4vw, 17.28px);
        line-height: 1.25;
        overflow-wrap: anywhere;
    }

    #nageldesign .mobile-color-fan {
        position: relative;
        display: inline-block;
        flex: 0 0 25px;
        height: 23px;
    }

    #nageldesign .mobile-color-fan i {
        position: absolute;
        bottom: 2px;
        left: 9px;
        width: 8px;
        height: 19px;
        border: 1px solid rgb(172, 107, 135);
        border-radius: 5px 5px 3px 3px;
        background: linear-gradient(rgb(233, 178, 185) 60%, rgb(255, 248, 250) 60%);
        transform-origin: 50% 88%;
        transform: rotate(-37deg);
    }

    #nageldesign .mobile-color-fan i:nth-child(2) {
        transform: none;
        background: linear-gradient(rgb(187, 110, 142) 60%, rgb(255, 248, 250) 60%);
    }

    #nageldesign .mobile-color-fan i:nth-child(3) {
        transform: rotate(37deg);
        background: linear-gradient(rgb(164, 42, 101) 60%, rgb(255, 248, 250) 60%);
    }

    #nageldesign.finder-mobile .mobile-look-lines,
    #nageldesign.finder-mobile .mobile-card .look-summary {
        display: grid;
        gap: clamp(5px, 1.7vw, 10px);
        margin: 6px 1px;
        font-size: clamp(13.28px, 3.5vw, 20px);
        font-weight: 400;
        line-height: 1.27;
        color: var(--ink);
        overflow-wrap: anywhere;
    }

    #nageldesign.finder-mobile .mobile-look-lines > * {
        margin: 0px;
    }

    #nageldesign.finder-mobile .mobile-look-lines > :last-child:not(:first-child) {
        color: var(--muted);
    }

    #nageldesign.finder-mobile .mobile-choice-body[data-mobile-page="summary"] .mobile-look-lines {
        gap: clamp(9px, 3.1vw, 17px);
    }

    #nageldesign.finder-mobile .mobile-choice-body[data-mobile-page="summary"] .mobile-look-lines > :first-child {
        font-weight: 700;
    }

    #nageldesign.finder-mobile .mobile-card .summary {
        display: grid;
        grid-template-columns: 1.15fr 1fr;
        gap: 6px;
        margin: clamp(7px, 2vw, 12px) 1px 0px;
        padding: clamp(6px, 1.8vw, 11px) 0px 0px;
        border-right: 0px;
        border-bottom: 0px;
        border-left: 0px;
        border-image: none;
        border-top: 1px solid var(--line);
        background: transparent;
    }

    #nageldesign.finder-mobile .mobile-card .summary small {
        color: var(--muted);
        font-size: clamp(11.04px, 2.85vw, 16.96px);
        line-height: 1.2;
    }

    #nageldesign.finder-mobile .mobile-card .summary strong {
        display: block;
        margin-top: 4px;
        color: var(--berry);
        font: 700 clamp(14.72px, 4.1vw, 24.8px) / 1.16 "DejaVu Sans", Arial, sans-serif;
        overflow-wrap: anywhere;
    }

    #nageldesign.finder-mobile .mobile-nav {
        grid-area: navigation;
        display: flex;
        align-items: stretch;
        min-width: 0px;
        gap: clamp(6px, 2.05vw, 12px);
        margin: 0px;
        padding: 0px;
        border: 0px;
    }

    #nageldesign.finder-mobile .mobile-nav :is(.mobile-back, .mobile-next) {
        display: flex;
        align-items: center;
        justify-content: center;
        width: auto;
        min-width: 0px;
        min-height: 0px;
        margin: 0px;
        padding: 4px 6px;
        border: 1.5px solid var(--berry);
        border-radius: clamp(8px, 2.33vw, 14px);
        box-shadow: none;
        font: 700 clamp(13.6px, 3.8vw, 22.72px) / 1.15 "DejaVu Sans", Arial, sans-serif;
        text-decoration: none;
        text-align: center;
        overflow-wrap: anywhere;
    }

    #nageldesign.finder-mobile .mobile-nav .mobile-back {
        flex: 0 0 max(27%, 6.5em);
        background: rgb(255, 255, 255);
        color: var(--berry);
    }

    #nageldesign.finder-mobile .mobile-nav .mobile-back::before {
        content: "";
        flex: 0 0 auto;
        width: 0.38em;
        height: 0.38em;
        margin-inline-end: 0.45em;
        border-style: solid;
        border-color: currentcolor;
        border-image: none;
        border-width: 0px 0px 2px 2px;
        transform: rotate(45deg);
    }

    #nageldesign.finder-mobile .mobile-nav .mobile-next {
        flex: 1 1 0%;
        background: var(--berry);
        color: rgb(255, 255, 255);
    }

    #nageldesign.finder-mobile .mobile-nav :is(.mobile-next, .mobile-back):disabled {
        background: rgb(229, 220, 225);
        border-color: rgb(229, 220, 225);
        color: rgb(113, 103, 109);
        opacity: 1;
    }

    #nageldesign.finder-mobile .mobile-extra {
        grid-area: extra;
        min-width: 0px;
        padding-top: var(--safe-bottom);
    }

    #nageldesign.finder-mobile .mobile-extra .back,
    #nageldesign.finder-mobile .asidebody .small-button {
        min-height: 44px;
        margin: 6px 0px;
        padding: 8px 12px;
        border: 1px solid rgb(203, 183, 194);
        border-radius: 8px;
        background: rgb(255, 255, 255);
        color: rgb(135, 33, 79);
        font: inherit;
    }

    #nageldesign.finder-mobile .mobile-more,
    #nageldesign.finder-mobile .asidebody {
        color: var(--muted);
        font-size: 13.6px;
    }

    #nageldesign.finder-mobile .mobile-more summary {
        padding: 10px 0px;
        cursor: pointer;
        color: rgb(135, 53, 85);
    }

    #nageldesign.finder-mobile .mobile-more p {
        margin: 6px 0px;
    }

    #nageldesign.finder-mobile .mobile-more dl {
        margin: 0px;
    }

    #nageldesign.finder-mobile .mobile-more dt {
        margin-top: 9px;
        font-weight: 700;
        color: var(--ink);
    }

    #nageldesign.finder-mobile .mobile-more dd {
        margin: 3px 0px;
    }

    #nageldesign.finder-mobile .asidebody {
        grid-area: download;
        padding: 6px 0px;
        text-align: center;
    }

    #nageldesign.finder-mobile .asidebody #preview-note {
        margin: 0px auto 5px;
        max-width: 42em;
        color: var(--muted);
    }

    #nageldesign.finder-mobile .tools:has(#load-text-file),
    #nageldesign.finder-mobile details.review {
        max-width: 600px;
        margin-inline: auto;
    }

    #nageldesign.finder-mobile .layout:has(#connection-status:not(:empty)) {
        grid-template-rows: var(--bar-height) var(--photo-height) calc(var(--card-height) - 44px - var(--gap)) 44px var(--nav-height) auto auto;
        grid-template-areas: "progress" "photo" "error" "recovery" "navigation" "extra" "download";
    }

    #nageldesign.finder-mobile .layout:has(#connection-status:not(:empty)) .mobile-card {
        display: none;
    }

    #nageldesign.finder-mobile #connection-status:not(:empty) {
        grid-area: error;
        align-self: stretch;
        align-content: center;
        margin: 0px;
        padding: 8px 12px;
        overflow: auto;
        border: 1px solid var(--line);
        border-radius: 10px;
        background: rgb(255, 255, 255);
        color: rgb(118, 34, 77);
        font-size: clamp(12.8px, 3.4vw, 16px);
    }

    #nageldesign.finder-mobile :is(#retry-selection, #reload-finder) {
        grid-area: recovery;
        justify-self: center;
    }

    @container (min-height: 185px) {
        .finder-mobile .mobile-choice-body {
            padding: 16px 12px 10px;
        }

        .finder-mobile .mobile-card-head {
            margin-bottom: 9px;
        }

        .finder-mobile .mobile-card .option,
        .finder-mobile .mobile-choice-body:is([data-mobile-page="goal"], [data-mobile-page="treatment"]) .option {
            min-height: 43px;
        }

        .finder-mobile .mobile-card .swatches {
            padding-block: 8px;
        }

        .finder-mobile .mobile-look-lines {
            gap: 9px;
        }
    }

    @container (min-height: 240px) {
        .finder-mobile .mobile-card-head {
            margin-bottom: 14px;
        }

        .finder-mobile .mobile-card .option,
        .finder-mobile .mobile-choice-body:is([data-mobile-page="goal"], [data-mobile-page="treatment"]) .option {
            min-height: 52px;
        }

        .finder-mobile .mobile-card .option strong {
            font-size: max(var(--type), 14.4px);
        }
    }

    @media (hover: hover) {
        #nageldesign.finder-mobile .mobile-card .option:hover:not(:disabled),
        #nageldesign.finder-mobile .mobile-nav .mobile-back:hover:not(:disabled) {
            background: var(--blush);
            border-color: var(--berry);
        }

        #nageldesign.finder-mobile .mobile-nav .mobile-next:hover:not(:disabled) {
            background: rgb(148, 23, 82);
        }
    }

    @media (orientation: landscape) and (max-height: 520px) {
        #nageldesign.finder-mobile {
            --header-height: calc(38px + var(--safe-top));
            --gap: 5px;
            --nav-height: 44px;
        }

        #nageldesign.finder-mobile header,
        #nageldesign.finder-mobile .layout {
            max-width: 780px;
        }

        #nageldesign.finder-mobile header img {
            width: 46px;
        }

        #nageldesign.finder-mobile .mobile-stage-title {
            font-size: 17.28px;
        }

        #nageldesign.finder-mobile .mobile-stage-count {
            font-size: 12.48px;
        }

        #nageldesign.finder-mobile .layout {
            grid-template-columns: minmax(0px, 0.85fr) minmax(0px, 1.15fr);
            grid-template-rows: var(--bar-height) max(112px, calc(var(--viewport) - var(--header-height) - var(--bar-height) - var(--nav-height) - var(--safe-bottom) - 2 * var(--gap))) var(--nav-height) auto auto;
            grid-template-areas: "progress progress" "photo card" "photo navigation" "extra extra" "download download";
        }

        #nageldesign.finder-mobile .preview-frame {
            max-height: 100%;
            max-width: 100%;
            height: auto;
            width: 100%;
            object-fit: contain;
        }

        #nageldesign.finder-mobile .layout:has(#connection-status:not(:empty)) {
            grid-template-columns: minmax(0px, 0.85fr) minmax(0px, 1.15fr);
            grid-template-rows: var(--bar-height) max(65px, calc(var(--viewport) - var(--header-height) - var(--bar-height) - var(--nav-height) - var(--safe-bottom) - 44px - 3 * var(--gap))) 44px var(--nav-height) auto auto;
            grid-template-areas: "progress progress" "photo error" "photo recovery" "photo navigation" "extra extra" "download download";
        }
    }
}

@media (max-width: 850px) and (orientation: portrait) {
    #nageldesign.finder-mobile {
        --photo-height: min(calc((min(100vw, 600px) - 2 * var(--inset)) * 1.157), max(0px, calc(var(--content-height) - var(--card-min))));
    }

    #nageldesign.finder-mobile .preview-frame {
        width: 100%;
        aspect-ratio: auto;
    }

    #nageldesign.finder-mobile #nail-preview,
    #nageldesign.finder-mobile .preview-frame img {
        object-fit: cover;
        object-position: 50% 84%;
    }
}

@media (max-width: 850px) and (orientation: portrait) {
    #nageldesign.finder-mobile .preview-frame {
        container-type: size;
    }

    @supports (width: 1cqh) {
        #nageldesign.finder-mobile #nail-preview,
        #nageldesign.finder-mobile .preview-frame img {
            max-width: 102.9cqh;
            margin-inline: auto;
        }

        #nageldesign.finder-mobile .preview-frame {
            background: var(--paper);
        }
    }
}

@media (max-width: 850px) {
    #nageldesign.finder-mobile #save-picture {
        display: none;
    }

    #nageldesign.finder-mobile .layout[data-mobile-stage="3"] .asidebody {
        display: contents;
    }

    #nageldesign.finder-mobile .layout[data-mobile-stage="3"] #preview-note {
        grid-area: download;
        margin-inline: auto;
        padding-inline: 4px;
        text-align: center;
    }

    #nageldesign.finder-mobile .layout[data-mobile-stage="3"]:not(:has(#connection-status:not(:empty))) #save-picture {
        grid-area: picture-tools;
        display: inline-flex;
        align-items: center;
        place-self: stretch end;
        min-height: 0px;
        max-width: 100%;
        margin: 0px;
        padding: 0px 5px;
        border: 0px;
        border-radius: 4px;
        background: transparent;
        color: rgb(135, 64, 104);
        font-size: max(12px, 0.85em);
    }

    #nageldesign.finder-mobile #save-picture:disabled {
        visibility: hidden;
    }

    #nageldesign.finder-mobile #save-picture .save-standard {
        display: none;
    }

    #nageldesign.finder-mobile #save-picture .save-compact {
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }

    #nageldesign.finder-mobile .save-compact svg {
        width: 1.2em;
        height: 1.2em;
        flex: 0 0 auto;
    }

    #nageldesign.finder-mobile .mobile-nav .result-actions {
        flex: 1 1 0%;
        grid-template-columns: minmax(0px, 1fr);
        gap: var(--gap);
        margin: 0px;
    }

    #nageldesign.finder-mobile .mobile-nav .result-actions .cta {
        min-height: 44px;
        padding: 3px 6px;
        font: 700 clamp(12.8px, 3.5vw, 19.2px) / 1.2 "DejaVu Sans", Arial, sans-serif;
        overflow-wrap: anywhere;
    }

    #nageldesign.finder-mobile .mobile-result-edit {
        display: flex;
        gap: var(--gap);
        flex-wrap: wrap;
    }

    #nageldesign.finder-mobile .mobile-result-edit .back {
        width: auto;
        flex: 1 1 0%;
        margin: 0px;
        min-height: 40px;
        padding: 6px;
    }
}

@media (max-width: 850px) and (orientation: portrait),
(max-width: 850px) and (orientation: landscape) and (min-height: 521px) {
    #nageldesign.finder-mobile .layout[data-mobile-stage="3"]:not(:has(#connection-status:not(:empty))) {
        grid-template-rows: var(--bar-height) var(--photo-height) 44px auto auto auto auto;
        grid-template-areas: "progress" "photo" "picture-tools" "card" "navigation" "extra" "download";
    }

    #nageldesign.finder-mobile .layout[data-mobile-stage="3"] .mobile-card {
        container-type: normal;
    }

    #nageldesign.finder-mobile .mobile-choice-body[data-mobile-page="result"] {
        height: auto;
        padding-bottom: 12px;
    }
}

@media (max-width: 850px) and (orientation: portrait) {
    @supports (width: 1cqh) {
        #nageldesign.finder-mobile .layout[data-mobile-stage="3"]:not(:has(#connection-status:not(:empty))) #save-picture {
            margin-inline-end: max(0px, calc((100% - var(--photo-height) * 1.029) / 2));
        }
    }
}

@media (max-width: 850px) and (orientation: landscape) and (min-height: 521px) {
    #nageldesign.finder-mobile .layout[data-mobile-stage="3"]:not(:has(#connection-status:not(:empty))) #save-picture {
        margin-inline-end: max(0px, calc((100% - var(--photo-height) * 1166 / 1349) / 2));
    }
}

@media (max-width: 850px) and (orientation: landscape) and (max-height: 520px) {
    #nageldesign.finder-mobile .layout[data-mobile-stage="3"]:not(:has(#connection-status:not(:empty))) {
        --result-card-height: max(112px, calc(var(--viewport) - var(--header-height) - var(--bar-height) - var(--safe-bottom) - 88px - 3 * var(--gap)));
        --result-photo-height: calc(var(--result-card-height) + var(--gap) + 44px);
        grid-template-rows: var(--bar-height) var(--result-card-height) 44px 44px auto auto;
        grid-template-areas: "progress progress" "photo card" "photo navigation" "picture-tools navigation" "extra extra" "download download";
    }

    #nageldesign.finder-mobile .layout[data-mobile-stage="3"] .preview-frame {
        width: auto;
        height: 100%;
        max-width: 100%;
        aspect-ratio: 1166 / 1349;
        align-self: end;
    }

    #nageldesign.finder-mobile .layout[data-mobile-stage="3"]:not(:has(#connection-status:not(:empty))) #save-picture {
        margin-inline-end: max(0px, calc((100% - var(--result-photo-height) * 1166 / 1349) / 2));
    }
}

#nageldesign > footer {
    display: none;
}

@media (min-width: 851px) {
    #nageldesign {
        display: flow-root;
    }

    #nageldesign > header {
        display: none;
    }
}

@media (max-width: 850px) {
    #nageldesign.finder-mobile header > img {
        display: none;
    }

    #nageldesign.finder-mobile header {
        grid-template-columns: minmax(0px, 1fr) auto;
    }
}

/* Gemeinsame Zustände der Aktionsschaltflächen. */
#nageldesign :is(
    .cta:not(.result-phone),
    .mobile-next,
    .result-phone,
    .back,
    .mobile-back,
    .small-button:not(#save-picture)
) {
    text-decoration: none;
    text-shadow: none;
    box-sizing: border-box;
    min-height: 44px;
    line-height: 1.3;
    white-space: normal;
    background: var(--button-fill, var(--un-button-pink, #e85697)) !important;
    color: var(--button-text, var(--un-button-ink, #fff)) !important;
    border: 1px solid var(--button-edge, var(--un-button-pink, #e85697)) !important;
    border-radius: 999px !important;
    font-family: Open, "Open Sans", Arial, sans-serif !important;
    font-weight: 600 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    box-shadow: none !important;
}

@media (hover: hover) {
    #nageldesign :is(
        .cta:not(.result-phone),
        .mobile-next,
        .result-phone,
        .back,
        .mobile-back,
        .small-button:not(#save-picture)
    ):hover:not(:disabled) {
        background: var(--button-hover, var(--un-button-hover, #f276ab)) !important;
    }
}

#nageldesign :is(
    .cta:not(.result-phone),
    .mobile-next,
    .result-phone,
    .back,
    .mobile-back,
    .small-button:not(#save-picture)
):active:not(:disabled) {
    background: var(--button-active, var(--un-button-active, #df4689)) !important;
}

#nageldesign :is(
    .cta:not(.result-phone),
    .mobile-next,
    .result-phone,
    .back,
    .mobile-back,
    .small-button:not(#save-picture)
):focus-visible {
    outline: var(--un-button-focus, #741a46) solid 3px;
    outline-offset: 3px;
}

#nageldesign :is(
    .cta:not(.result-phone),
    .mobile-next,
    .result-phone,
    .back,
    .mobile-back,
    .small-button:not(#save-picture)
):disabled {
    background: rgb(241, 235, 238) !important;
    color: rgb(118, 108, 113) !important;
    border-color: rgb(231, 221, 226) !important;
}

@media (min-width: 851px) {
    #nageldesign #save-picture {
        min-height: 44px;
        border-radius: 999px;
        border-color: rgb(236, 196, 214);
        color: rgb(142, 39, 84);
        background: white;
    }
}

#nageldesign.finder-mobile #save-picture {
    color: rgb(142, 39, 84);
    font-family: Open, "Open Sans", Arial, sans-serif;
}

#nageldesign .panel {
    margin-bottom: 0;
    box-shadow: none;
}

@media (min-width: 851px) {
    .finder-page .buttonArea .container {
        width: 100%;
        max-width: 1180px;
        padding: 0;
    }

    /* Oben gilt der Galerieabstand aus dem gemeinsamen Seitenlayout. */
    .finder-page .secotionTitle {
        padding-bottom: 0;
        margin: 0 auto 26px;
    }

    .finder-page .finder-intro-copy {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        max-width: 1160px;
        margin: 28px auto;
    }

    .finder-page .finder-intro-copy p {
        margin: 0;
        padding: 0 23px;
        color: #474047;
        font: 400 15px/1.55 'Open Sans', sans-serif;
        text-align: center;
        text-wrap: pretty;
    }

    .finder-page .finder-intro-copy p + p {
        border-left: 1px solid #f0d9e3;
    }

    .finder-page .intro-lead {
        display: block;
        margin: 0 auto 12px;
        color: #9c2456;
        font: 500 19px/1.45 Montserrat, sans-serif;
    }

    .finder-page #nageldesign {
        width: 1160px;
        max-width: 92%;
        margin: 36px auto 20px;
        scroll-margin-top: 100px;
    }

    .finder-page #nageldesign .layout {
        grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
        align-items: start;
        gap: 42px;
        margin: 0;
        padding: 0;
    }

    .finder-page #nageldesign .panel,
    .finder-page #nageldesign .photo-panel {
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .finder-page #nageldesign .panel {
        padding: 8px 0 0;
    }

    .finder-page #nageldesign .photo-panel {
        position: static;
    }

    .finder-page #nageldesign .asidebody {
        padding: 10px 0;
    }

    .finder-page #nageldesign .steps {
        margin-bottom: 24px;
    }

    .finder-page #nageldesign .preview-frame {
        border-radius: 3px;
    }
}

@media (max-width: 850px) {
    #nageldesign.finder-mobile {
        --viewport: var(--sichtbare-hoehe, 100dvh);
    }

    #nageldesign.finder-mobile .mobile-card-head h2 {
        text-transform: none;
        letter-spacing: normal;
    }
}

@media (max-width: 850px) and (orientation: portrait),
(max-width: 850px) and (min-height: 521px) {
    #nageldesign.finder-mobile {
        --card-min: clamp(170px, 46vw, 235px);
    }

    #nageldesign.finder-mobile .layout[data-mobile-stage="3"]:not(:has(#connection-status:not(:empty))) {
        --photo-height: max(90px, min(99vw, calc(var(--viewport) - var(--header-height) - var(--bar-height) - var(--safe-bottom) - 44px - 5 * var(--gap) - var(--ergebnis-hoehe, 280px))));
    }
}

#nageldesign .color-tuerkis {
    background: #45c5bd;
}

/* Platz für den mittig über der Fußzeile sitzenden Sprunglink. */
.finder-page {
    padding-bottom: 44px;
}
