/* Shared mobile spacing; typography families, surfaces and effects stay unchanged. */
.look-toolbar{margin-top:0;margin-bottom:16px}
.look-toolbar .generated-result__back{margin:0}
.look-gallery{cursor:grab;user-select:none;-webkit-user-select:none}
.look-gallery:active{cursor:grabbing}
.look-gallery:focus-visible{outline:none}
.look-gallery-shell:has(.look-gallery:focus-visible){outline:2px solid rgb(33 38 43 / 22%);outline-offset:4px}
.legal-consents{overflow:hidden}

/* The photo owns the edge of the opened outfit; its real ratio prevents head cropping. */
.generated-result--immersive{padding:0!important;gap:0!important;overflow:clip}
.generated-result--immersive .generated-result__media{width:100%;justify-self:stretch}
.generated-result--immersive .generated-result__visual{width:100%;border-radius:0;max-height:none}
.generated-result--immersive .generated-result__visual::after{content:"";position:absolute;inset:auto 0 -1px;height:12%;max-height:84px;pointer-events:none;background:linear-gradient(180deg,rgb(255 255 255 / 0),#fff)}
.generated-result--immersive .generated-result__copy{padding:clamp(20px,3vw,40px)}
.look-gallery-shell.generated-result{display:block}
.look-gallery{position:relative;display:block;height:auto;overflow:visible;touch-action:pan-y pinch-zoom}
.look-gallery__slide{display:grid;grid-template-columns:minmax(0,.82fr) minmax(0,1.18fr);width:100%;height:auto;min-width:0;overflow:visible}
.look-gallery__slide.is-changing{position:absolute;inset:0 0 auto}
.look-gallery-shell.is-switching{overflow:clip}
.look-gallery-shell.is-switching .look-gallery{pointer-events:none}
.look-gallery-shell.is-switching .photo-reveal{transition:none}
.look-gallery__slide img{user-select:none;-webkit-user-drag:none}

/* Full-bleed previews retain cover, anchored above the face rather than at the centre. */
.recent-look__image img,.wardrobe-card__visual>img,.look-image>img,.studio-result__image>img{object-fit:cover;object-position:50% 0;transform-origin:50% 0}
.recent-look:nth-child(n) .recent-look__image img{object-position:50% 0}
.recent-look__details{transform:none!important;transition:opacity .32s ease,visibility 0s linear .32s}
.recent-look.is-open .recent-look__details{transition-delay:0s}

/* One outside gap, rather than a section's bottom padding plus footer top padding. */
body[data-page]{--app-section-gap:24px}
body[data-page] .site-footer{padding-top:var(--app-section-gap)}
body[data-page] main{padding-bottom:0}
body[data-page] main:is(.promo-layout,.legal-page,.install-page){padding-bottom:0}
body[data-page] main>:is(.recent-looks,.wardrobe-collection,.account-grid,.pricing-grid,.benefit-line,.admin-grid,.install-walkthrough):last-child{padding-bottom:0;margin-bottom:0}
.archetypes--text-only{gap:16px;grid-auto-rows:auto;align-items:start}
.archetypes--text-only .select-row{grid-template-columns:minmax(0,1fr) auto;align-items:center;align-self:start;min-height:0;padding:16px;gap:12px}
.archetypes--text-only .select-row>span:not(.checkmark){display:flex;flex-direction:column;gap:6px;min-width:0}
.archetypes--text-only .select-row b{display:block;line-height:1.25}
.archetypes--text-only .select-row small{display:block;margin:0;white-space:normal;line-height:1.4}
@media(min-width:681px){
 body[data-page="studio"] .studio-step-slider .form-section:has(>.archetypes){--goals-step-min-height:570px;display:flex;flex-direction:column;height:100%!important;min-height:0;padding-bottom:clamp(1.25rem,2.3vw,2.3rem)}
 body[data-page="studio"] .studio-step-slider .form-section:has(>.archetypes)>.form-section__head{flex:none}
 body[data-page="studio"] .studio-step-slider .form-section:not(.studio-intro-step):not(.studio-result):has(>.archetypes)>.studio-step-actions{position:static;inset:auto;min-height:0;margin-top:auto;padding:24px 0 0;background:transparent;flex:none}
 .archetypes--text-only{flex:none}
}

/* One spacing rhythm and quiet, tactile controls. */
[hidden]{display:none!important}
.look-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px}
.look-toolbar .generated-result__back{display:inline-flex;align-items:center;gap:10px;min-height:33px;padding:0;border:0;background:none;font:inherit;font-size:14px;cursor:pointer}
.look-toolbar [data-look-next]:disabled{opacity:.3;cursor:default}
.look-toolbar svg{width:23px;height:23px}
.look-gallery-shell{overflow:clip!important;isolation:isolate;touch-action:pan-y pinch-zoom}
.look-gallery__slide{background:#fff;will-change:transform}
.look-gallery-shell.is-switching .look-gallery__slide{backface-visibility:hidden}
body[data-page] .wardrobe-collection{margin-top:24px!important}
.wardrobe-card.is-current{border-color:rgb(169 50 22 / 40%)}
.wardrobe-card__visual>img[data-server-photo]:not(.photo-reveal){opacity:1}
.wardrobe-pending{position:relative;min-height:260px}
.wardrobe-empty{padding-block:24px}
.wardrobe-empty h2{margin-bottom:16px}
.navigation-scrim{position:fixed;inset:0;z-index:45;border:0;border-radius:0;background:rgb(25 29 31 / 9%);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);opacity:0;visibility:hidden;pointer-events:none;transition:opacity .22s ease,visibility .22s}
.navigation-scrim.is-open{opacity:1;visibility:visible;pointer-events:auto}
.mobile-panel,.language-picker__menu{background:rgb(250 250 248 / 94%)!important;backdrop-filter:blur(28px) saturate(120%);-webkit-backdrop-filter:blur(28px) saturate(120%)}
.style-preview,.style-preview>div,.style-preview.is-switching>div{transform:none!important;filter:none!important;transition:opacity .16s ease}
.select-row .checkmark{width:24px;height:24px;border-radius:6px;font-size:0;flex:none}
.select-row.is-selected .checkmark{transform:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12 4 4 8-9' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-size:18px;background-position:center;background-repeat:no-repeat}
body[data-page] :is(.classic-preference,.legal-consents) input[type="checkbox"]{appearance:none!important;-webkit-appearance:none!important;display:block;flex:none;width:20px!important;height:20px!important;min-width:20px;border:1px solid rgb(33 38 43 / 24%);border-radius:5px;background:#fff;cursor:pointer;box-shadow:none}
body[data-page] :is(.classic-preference,.legal-consents) input[type="checkbox"]:checked{border-color:var(--color-accent-action);background:var(--color-accent-action) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12 4 4 8-9' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/17px no-repeat}
.recent-look{height:auto!important;width:300px!important;flex:0 0 auto}
.recent-look__preview{display:block;text-decoration:none}
.recent-look__image{height:auto;aspect-ratio:4/5}
.recent-look__image img{height:100%;width:100%;object-fit:cover;object-position:50% 0}
.recent-look__title{display:block;min-height:0;padding:16px}
.recent-look__title strong{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2;font-size:16px;line-height:1.16;font-weight:600}
.recent-look__title small{display:-webkit-box;max-width:none;margin-top:8px;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2;white-space:normal;font-size:14px;line-height:1.45;color:var(--color-text-secondary)}
@media(max-width:680px){
 body[data-page] .site-footer{padding-bottom:max(16px,env(safe-area-inset-bottom))!important}
 body[data-page="studio"] .recent-looks__head{display:none!important}
 body[data-page="studio"] .recent-looks{padding-top:16px!important}
 body[data-page="studio"] :is(.recent-looks__slider,.option-slider,[data-occasion-options]){border-radius:18px;overflow:hidden;mask-image:none!important;-webkit-mask-image:none!important}
 body[data-page="studio"] [data-occasion-options]{padding:4px 1px 8px!important}
 body[data-page="studio"] .recent-look{width:calc((100vw - 32px) * .82)!important;border-radius:20px}
 body[data-page="studio"] .recent-look__title{padding:16px}
 body[data-page="studio"] .archetypes--text-only .select-row{padding:16px;min-height:0;align-self:start}
 body[data-page="studio"] .form-section .body-type-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:6px;overflow:visible;padding:0;width:100%;min-width:0}
 body[data-page="studio"] .body-type-grid .body-type-option{min-width:0;width:100%;min-height:98px;padding:8px 2px!important;gap:6px;border-radius:10px!important}
 body[data-page="studio"] .body-type-option svg{width:30px;height:48px}
 body[data-page="studio"] .form-section .body-type-option span{font-size:10px;line-height:1.2;letter-spacing:-.02em;white-space:nowrap}
 body[data-page="studio"] .mobile-style-selections{display:block;grid-template-rows:none;margin-top:16px;opacity:1;transition:none}
 body[data-page="studio"] .mobile-style-selections__inner{display:block;min-height:128px;overflow:visible;transition:none}
 body[data-page="studio"] .mobile-style-card{min-height:128px;padding:16px;box-sizing:border-box;transform:none!important}
 body[data-page="studio"] .form-section .mobile-style-card strong{font-size:16px;line-height:1.3}
 body[data-page="studio"] .form-section .mobile-style-card small{font-size:14px;line-height:1.45;margin-top:6px;-webkit-line-clamp:2}
 body[data-page="studio"] .mobile-style-card a{margin-top:8px}
 body[data-page="studio"] .mobile-style-card a[hidden]{display:inline-block!important;visibility:hidden}
 body[data-page] .wardrobe-collection{margin-top:16px!important;gap:16px}
 body[data-page="wardrobe"] .wardrobe-title-row{border:0;padding:0;display:block}
 body[data-page="wardrobe"] .wardrobe-hero{border:0}
 body[data-page="wardrobe"] .wardrobe-hero h1{margin-bottom:0}
 .look-toolbar{margin-bottom:16px}
}

/* Native horizontal scrolling avoids JS momentum and preserves server photo nodes. */
.recent-looks__slider[data-native-scroll]{overflow-x:auto!important;overflow-y:hidden!important;scroll-snap-type:x proximity;overscroll-behavior-x:contain;scrollbar-width:none;-webkit-overflow-scrolling:touch;touch-action:pan-x pan-y;border-radius:20px;mask-image:none!important;-webkit-mask-image:none!important}
.recent-looks__slider[data-native-scroll]::-webkit-scrollbar{display:none}
.recent-looks__slider[data-native-scroll]>.swiper-wrapper{display:flex;width:max-content;max-width:none;height:auto;gap:16px;transform:none!important;transition:none!important}
.recent-looks__slider[data-native-scroll] .recent-look{scroll-snap-align:start;flex-shrink:0}
.recent-looks__slider[data-native-scroll] .recent-look__preview img,.recent-looks__slider[data-native-scroll] .recent-look__preview:hover img{transform:none!important;filter:none!important;transition:opacity .18s ease!important}
.recent-looks__slider[data-native-scroll] .recent-look__image,.recent-looks__slider[data-native-scroll] img{backface-visibility:visible!important;-webkit-backface-visibility:visible!important;will-change:auto!important}
.recent-looks__slider[data-native-scroll] a{-webkit-user-drag:none;-webkit-touch-callout:none;user-select:none}
.recent-looks__slider[data-native-scroll]>.swiper-wrapper{gap:var(--app-section-gap,24px);backface-visibility:visible!important;will-change:auto!important}
.recent-looks__slider[data-native-scroll]{user-select:none;-webkit-user-select:none;cursor:grab}
.recent-looks__slider[data-native-scroll].is-dragging{scroll-snap-type:none;cursor:grabbing}
@media(hover:hover) and (pointer:fine){.recent-looks__slider[data-native-scroll]{scroll-snap-type:none}}
body[data-page="studio"]{overflow-anchor:none}
html:has(body[data-page="studio"]){overflow-anchor:none;scroll-behavior:auto}
.recent-look__image .photo-reveal{transition:opacity .2s ease}
@media(min-width:681px){
 body[data-page="studio"] .studio-step-slider{overflow:clip!important}
 body[data-page="studio"] .studio-step-slider .form-section{box-shadow:none!important}
}
@media(max-width:680px){
 body[data-page="studio"] .form-section>.field{flex-shrink:0;overflow:visible}
 body[data-page="studio"] .form-section:first-child>.field{padding-bottom:2px}
 body[data-page="studio"] #occasion{display:block;box-sizing:border-box;height:50px;min-height:50px;margin:0;padding:12px 14px;font-size:16px;line-height:24px;background-clip:padding-box}
 body[data-page="studio"] .style-option-group{display:grid;gap:16px;align-content:start}
 body[data-page="studio"] .style-option-group>legend{padding:0;margin:0 0 16px}
 body[data-page="studio"] .style-option-group .option-slider{margin:0!important;padding:2px 0!important;min-height:40px}
 body[data-page="studio"] .style-option-group .style-preview{display:none!important}
 body[data-page="studio"] .mobile-style-selections{margin:0!important}
 body[data-page="studio"] .mobile-style-selections__inner,body[data-page="studio"] .mobile-style-card{min-height:0!important}
 body[data-page="studio"] .mobile-style-card small{display:block;-webkit-line-clamp:unset;overflow:visible}
 body[data-page="studio"] .form-section .mobile-style-card a{font:inherit;font-size:14px;line-height:1.45;margin-top:8px}
 body[data-page="studio"] .mobile-style-card a[hidden]{display:none!important}
 body[data-page="studio"] .recent-look__title strong{font-size:16px;line-height:1.16}
}
@media(hover:none){.recent-look__preview:hover img{transform:none!important}}

/* Shared questionnaire controls. Description tiles have one shared tile size. */
body[data-page="studio"] .studio-form{--control-height:44px;--control-font:14px;--control-x:14px;--control-radius:12px}
body[data-page="studio"] .studio-form :is(.button,[data-slider-prev],[data-slider-next],.studio-step-back){box-sizing:border-box;height:var(--control-height)!important;min-height:var(--control-height)!important;padding:10px var(--control-x)!important;gap:8px;font-family:var(--font-button)!important;font-size:var(--control-font)!important;font-weight:500;line-height:22px!important;letter-spacing:0;border-radius:var(--control-radius)!important;align-items:center;justify-content:center}
body[data-page="studio"] .studio-form .button>span{font:inherit!important;line-height:inherit!important}
body[data-page="studio"] .studio-form .chip:not(.body-type-option):not(.weather-choice){height:auto;min-height:33px;padding:6px 12px;font-size:14px;line-height:19px;box-sizing:border-box}
body[data-page="studio"] .studio-form .gender-choice{align-self:center}
body[data-page="studio"] .studio-form .studio-step-back,body[data-page="studio"] .studio-form :is([data-slider-prev],[data-slider-next]){width:44px!important;min-width:44px;padding:10px!important}
body[data-page="studio"] .studio-form .studio-step-back{border-radius:50%!important}
body[data-page="studio"] .studio-form .weather-choice{justify-content:flex-start}
body[data-page="studio"] .archetypes--text-only .select-row{height:auto;min-height:0;align-self:start;padding:16px;box-sizing:border-box}
body[data-page="studio"] .archetypes--text-only .select-row b{font-size:13px;line-height:18px}
body[data-page="studio"] .archetypes--text-only .select-row small{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;font-size:13px;line-height:18px}
body[data-page="studio"] .style-option-group .style-preview{max-width:none;width:100%;min-height:132px;height:auto}
body[data-page="studio"] .style-preview>div{width:100%;max-width:none}
body[data-page="studio"] .style-preview p{max-width:none;font-size:16px;line-height:1.5}
body[data-page="studio"] .style-preview strong{font-size:18px;line-height:1.3}
body[data-page="studio"] .style-preview a{font-size:16px;line-height:1.5}
body[data-page="studio"] .style-option-group .chip{max-width:190px;height:auto;min-height:33px;padding:6px 12px;white-space:normal;line-height:18px!important}
@media(max-width:680px){
 body[data-page="studio"] .studio-form{--control-x:14px}
 body[data-page="studio"] .studio-form .portrait-capture__controls .button{padding-inline:4px!important}
 body[data-page="studio"] .portrait-step .portrait-camera-button svg{display:none}
 body[data-page="studio"] .portrait-step .portrait-capture__controls{gap:6px}
 body[data-page="studio"] .studio-step-slider:not(.is-generating){background:#fff;border:1px solid var(--color-border);border-radius:24px;overflow:clip!important;box-sizing:border-box}
 body[data-page="studio"] .studio-step-slider>.swiper-wrapper>.form-section:not(.studio-result){border:0!important;background:transparent!important;box-shadow:none!important;backface-visibility:visible!important}
 body[data-page="studio"] .studio-step-slider>.swiper-wrapper{backface-visibility:visible!important;will-change:auto!important}
 body[data-page="studio"] .archetypes--text-only .select-row b{font-size:13px;line-height:18px;white-space:normal;letter-spacing:0}
}
body[data-page="studio"] .weather-dropdown__trigger{display:grid;grid-template-columns:24px minmax(0,1fr) 16px;align-items:center;gap:10px;height:44px;min-height:44px;padding:9px 14px;font-size:14px;line-height:24px;box-sizing:border-box}
body[data-page="studio"] .weather-dropdown__trigger{height:50px;min-height:50px;padding-block:12px}
body[data-page="studio"] #occasion{box-sizing:border-box;height:50px;min-height:50px;padding:12px 14px;line-height:24px}
body[data-page="studio"] .style-option-group{display:block}
body[data-page="studio"] .style-option-group>legend{padding:0;margin:0 0 16px}
body[data-page="studio"] .style-option-group .option-slider{margin:0 0 16px!important;padding:2px 0!important;--style-fade-left:0px;--style-fade-right:24px;mask-image:linear-gradient(90deg,transparent,#000 var(--style-fade-left),#000 calc(100% - var(--style-fade-right)),transparent)!important;-webkit-mask-image:linear-gradient(90deg,transparent,#000 var(--style-fade-left),#000 calc(100% - var(--style-fade-right)),transparent)!important}
body[data-page="studio"] .style-option-group .option-slider:not(.is-at-start){--style-fade-left:24px}
body[data-page="studio"] .style-option-group .option-slider.is-at-end{--style-fade-right:0px}
body[data-page="studio"] .style-option-group .style-preview,body[data-page="studio"] .mobile-style-selections{margin:0!important}
body[data-page="studio"] .classic-preference{font-size:13px;line-height:18px}
body[data-page="studio"] .classic-preference input[type="checkbox"]{width:24px!important;height:24px!important;min-width:24px;border-radius:6px}
body[data-page="studio"] .portrait-step .portrait-capture__stage.has-portrait{height:auto!important;min-height:0!important;aspect-ratio:auto}
body[data-page="studio"] .portrait-capture__stage.has-portrait img:not([hidden]){position:absolute!important;inset:0!important;display:block;width:100%;height:100%!important;object-fit:contain!important}
body[data-page="studio"] .portrait-capture__stage video{opacity:0;transition:opacity .2s ease}
body[data-page="studio"] .portrait-capture__stage.is-camera-active video{opacity:1}
body[data-page="studio"] .portrait-capture__stage.is-camera-loading::before{content:"";position:absolute;inset:0;z-index:2;background:#f8f7f4;pointer-events:none}
body[data-page="studio"] .portrait-capture__stage.is-camera-loading::after{z-index:3;content:"";position:absolute;left:calc(50% - 16px);top:calc(50% - 16px);width:32px;height:32px;box-sizing:border-box;border:2px solid rgb(169 50 22 / 16%);border-top-color:var(--color-accent-action);border-radius:50%;animation:portrait-camera-spin .75s linear infinite}
@keyframes portrait-camera-spin{to{transform:rotate(360deg)}}
body[data-page="studio"] .recent-look__title strong{-webkit-line-clamp:1;white-space:nowrap;display:block;text-overflow:ellipsis}
body[data-page="studio"] .generated-result--immersive .generated-result__copy>.look-rating{margin:0 0 20px;padding:0 0 16px;border-top:0;border-bottom:1px solid var(--color-border)}
body[data-page="studio"] .weather-dropdown__trigger>svg{margin:0;justify-self:end}
body[data-page="studio"] .weather-picker .weather-choice{height:auto;min-height:56px;display:grid;grid-template-columns:24px minmax(0,1fr);align-items:center;gap:12px;padding:10px 12px;box-sizing:border-box}
body[data-page="studio"] .weather-picker .weather-choice>span b{font-size:14px;line-height:20px}
body[data-page="studio"] .weather-picker .weather-choice>span small{font-size:12px;line-height:16px}
body[data-page="studio"] .style-option-group .option-slider__controls{display:none!important}
@media(max-width:680px){
 body[data-page="studio"] .studio-shell{row-gap:16px!important}
 body[data-page] .site-footer{padding-bottom:max(10px,env(safe-area-inset-bottom))!important}
 body[data-page="studio"] .portrait-capture__stage:not(.has-portrait){height:clamp(300px,82vw,420px);min-height:300px}
 body[data-page="studio"] [data-occasion-options]{overflow-x:auto!important;overflow-y:hidden!important;touch-action:pan-x pan-y}
 body[data-page="studio"].studio-past-first-step .studio-aside{max-height:none;margin-block:0;opacity:1;transform:none;pointer-events:auto}
}
.look-gallery-shell.is-dragging{overflow:clip!important}
.portrait-privacy{margin:12px 0 0;font-size:13px;line-height:1.45}
@media(min-width:681px){
 body[data-page="studio"] .studio-step-slider :is(.portrait-step,.refinement-step){display:flex;flex-direction:column}
 body[data-page="studio"] .studio-step-slider :is(.portrait-step,.refinement-step)>.studio-step-actions{position:static!important;inset:auto!important;flex:none;min-height:0;padding:16px 0 0!important;margin-top:auto!important;background:transparent;pointer-events:auto}
 body[data-page="studio"] .portrait-step>.portrait-capture{position:static!important;inset:auto!important;display:grid!important;grid-template-columns:minmax(0,1fr) 190px;width:100%!important;height:auto!important;flex:none}
 body[data-page="studio"] .portrait-step .portrait-capture__stage{position:relative!important;inset:auto!important;width:100%!important;height:280px!important;min-height:280px!important;border:1px solid var(--color-border)!important;border-radius:20px!important}
 body[data-page="studio"] .portrait-step .portrait-capture__controls{position:static!important;inset:auto!important;transform:none!important;width:190px;display:grid!important}
 body[data-page="studio"] .portrait-privacy{grid-column:1/-1}
 body[data-page="studio"] .refinement-grid{flex:none}
}
/* Flat, compositor-only auth transitions; no cube or animated blur. */
.auth-flat.auth-swiper{position:relative!important;perspective:none!important;overflow:clip!important;transition:none!important;height:auto;padding:5px}
.auth-flat.auth-swiper>.swiper-wrapper{position:relative!important;display:block!important;height:auto!important;transform:none!important;transform-style:flat!important;transition:none!important}
.auth-flat.auth-swiper .swiper-slide{position:absolute!important;inset:0 auto auto 0!important;width:100%!important;transform:none!important;transform-style:flat!important;backface-visibility:visible!important;transition:none!important;opacity:1;visibility:visible}
.auth-flat.auth-swiper .swiper-slide.is-auth-current{position:relative!important;inset:auto!important}
.auth-flat.auth-swiper .swiper-slide[hidden]{display:none!important}
body:is([data-page="look"],[data-page="wardrobe"]){overflow-x:clip}
@media(min-width:961px){
 .look-gallery-shell,.look-gallery,.look-gallery__slide{overflow:visible!important}
 .look-gallery-shell.is-switching{overflow:clip!important}
 .look-gallery__slide{will-change:auto;align-items:start}
 .look-gallery__slide .generated-result__media{position:sticky;top:92px;align-self:start;height:max-content}
}
@media(min-width:901px) and (max-height:1000px){body[data-page="studio"] .studio-step-slider .form-section:has(>.archetypes){--goals-step-min-height:535px}}
@media(max-width:680px){
 body[data-page]{--mobile-gutter:16px;--mobile-gap:16px;--app-section-gap:16px}
 body[data-page] .page-main{padding-top:80px!important}
 body[data-page] main>.container{box-sizing:border-box;width:calc(100% - 32px)!important;max-width:calc(100% - 32px)!important;margin-inline:16px!important}
 body[data-page] main>:is(.wardrobe-hero,.account-hero,.pricing-head,.admin-hero,.install-walkthrough){padding:0 0 16px}
 body[data-page] main>.container:not(.generated-result){padding-inline:0}
 body[data-page] :is(.wardrobe-title-row,.account-grid,.pricing-grid,.benefit-line){gap:16px}
 body[data-page] :is(.wardrobe-hero,.account-hero,.pricing-head,.admin-hero) h1{font-size:clamp(30px,8.2vw,36px);line-height:1.12;margin:0 0 16px;letter-spacing:-.045em}
 body[data-page] :is(.wardrobe-title-row,.account-hero,.pricing-head) .lede{font-size:16px;line-height:1.5;margin:0;padding:0}
 body[data-page] .promo-layout{padding:80px 16px 16px;gap:16px}
 body[data-page] .install-page{padding-bottom:16px}
 body[data-page] .install-walkthrough__intro{margin-bottom:16px}
 body[data-page] .legal-page{padding-top:80px;padding-bottom:16px;width:calc(100% - 32px);max-width:none;margin-inline:16px}
 body[data-page] .legal-nav{margin-bottom:16px;gap:10px 16px}
 body[data-page] .legal-document{padding:20px 16px}
 body[data-page] .generated-result{padding:16px;gap:16px}
 body[data-page] .look-toolbar{margin-bottom:16px;padding:0}
 body[data-page] .generated-result__copy h2{margin:0 0 16px}
 body[data-page] .generated-result__actions{gap:12px}
 body[data-page] .account-grid{padding-bottom:16px}
 body[data-page] .generated-result--immersive{padding:0!important;gap:0}
 .generated-result--immersive .generated-result__media{position:relative;top:auto;max-width:none}
 .generated-result--immersive .generated-result__copy{padding:20px 16px}
 .look-gallery__slide{grid-template-columns:minmax(0,1fr)}
 body[data-page="studio"] .studio-step-slider:not(.is-generating){min-height:0!important;overflow:clip!important;transform:none}
 body[data-page="studio"] .studio-step-slider.is-step-resizing{overflow:hidden!important}
 body[data-page="studio"] .studio-step-slider>.swiper-wrapper{display:block;height:auto!important;transform:none!important}
 body[data-page="studio"] .studio-step-slider>.swiper-wrapper>.form-section:not(.studio-result){position:absolute;inset:0 0 auto;width:100%;height:auto!important;min-height:0!important;max-height:none;transform:none!important;display:flex;flex-direction:column;padding:16px!important;gap:0;box-sizing:border-box}
 body[data-page="studio"] .studio-step-slider>.swiper-wrapper>.form-section.swiper-slide-active{position:relative}
 body[data-page="studio"] .studio-step-slider.studio-step-static{height:auto!important;transition:none!important;will-change:auto!important}
 body[data-page="studio"] .studio-step-static>.swiper-wrapper{position:relative;transition:none!important;transform:none!important;will-change:auto!important}
 body[data-page="studio"] .studio-step-static>.swiper-wrapper>.form-section:not(.studio-result){position:relative!important;inset:auto!important;transition:none!important}
 body[data-page="studio"] .studio-step-static>.swiper-wrapper>.form-section[hidden]{display:none!important}
 body[data-page="studio"] .studio-step-slider .form-section:not(.studio-result)>.studio-step-actions{position:static!important;inset:auto!important;margin:16px 0 0!important;padding:0!important;min-height:0!important;flex:none}
 body[data-page="studio"] .studio-step-actions .studio-submit{margin:0!important}
 body[data-page="studio"] .portrait-step--beta>.form-section__head{margin-bottom:20px}
 body[data-page] main:is(.promo-layout,.legal-page,.install-page){padding-bottom:0}
 body[data-page] main>:is(.recent-looks,.wardrobe-collection,.account-grid,.pricing-grid,.benefit-line,.admin-grid,.install-walkthrough):last-child{padding-bottom:0;margin-bottom:0}
}

/* Media and checkbox interaction never change the surrounding panel geometry. */
body[data-page="studio"] .portrait-capture__stage{box-sizing:border-box;isolation:isolate}
body[data-page="studio"] .portrait-step .portrait-capture__controls .button{transition:background-color .18s ease,color .18s ease,border-color .18s ease!important}
body[data-page="studio"] .portrait-step>.form-section__head{opacity:1!important;visibility:visible!important;transform:none!important}
body[data-page="studio"] .classic-preference{position:relative;cursor:pointer;-webkit-tap-highlight-color:transparent}
body[data-page="studio"] .refinement-checkboxes{display:grid;gap:0}
body[data-page="studio"] .generated-result__actions .generated-result__new-look{flex-basis:100%}
@media(min-width:681px){
 body[data-page="studio"] [data-generated-result] .generated-result__actions>.button:not(.generated-result__new-look){flex:1 1 0;min-width:0}
}
body[data-page="studio"] .studio-loading::before{inset:-12%;transform:translate3d(-3%,-2%,0) scale(1.04);animation:lalt-generation-glow 18s ease-in-out infinite;will-change:transform}
@keyframes lalt-generation-glow{
  0%,100%{transform:translate3d(-3%,-2%,0) scale(1.04)}
  50%{transform:translate3d(3%,2%,0) scale(1.08)}
}
@media(prefers-reduced-motion:reduce){body[data-page="studio"] .studio-loading::before{animation:none;transform:none;will-change:auto}}
@media(max-width:680px){
 body[data-page="wardrobe"] .wardrobe-hero{display:none}
 body[data-page="wardrobe"] .look-gallery,body[data-page="look"] .look-gallery{touch-action:pan-y pinch-zoom}
 body[data-page="wardrobe"] .look-gallery__slide,body[data-page="look"] .look-gallery__slide{will-change:transform;backface-visibility:hidden;transform:translate3d(0,0,0)}
 body[data-page="wardrobe"] .is-dragging .look-gallery__slide,body[data-page="look"] .is-dragging .look-gallery__slide,
 body[data-page="wardrobe"] .is-switching .look-gallery__slide,body[data-page="look"] .is-switching .look-gallery__slide{will-change:transform}
 .look-gallery .generated-result__visual.is-photo-interacting>img{transition:none!important;will-change:transform}
}
body[data-page="studio"] .classic-preference input[type="checkbox"]{position:absolute!important;inset:0 auto auto 0;opacity:0;pointer-events:none}
body[data-page="studio"] .classic-preference::before{content:"";box-sizing:border-box;flex:0 0 24px;width:24px;height:24px;border:1px solid rgb(33 38 43 / 24%);border-radius:6px;background:#fff;transition:background-color .18s ease,border-color .18s ease}
body[data-page="studio"] .classic-preference::after{content:"";position:absolute;left:0;top:50%;width:24px;height:24px;margin-top:-12px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12 4 4 8-9' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/17px no-repeat;opacity:0;transition:opacity .18s ease;pointer-events:none}
body[data-page="studio"] .classic-preference:has(input:checked)::before{background-color:var(--color-accent-action);border-color:var(--color-accent-action)}
body[data-page="studio"] .classic-preference:has(input:checked)::after{opacity:1}
body[data-page="studio"] .classic-preference:has(input:focus-visible)::before{outline:2px solid var(--color-accent-action);outline-offset:3px}
body[data-page="studio"] .archetypes .select-row:active{transform:none!important}

/* Desktop panels follow their own content instead of the tallest portrait. */
@media(min-width:681px){
 body[data-page="studio"] .studio-step-slider .form-section:not(.studio-result){display:flex;flex-direction:column;padding:clamp(20px,2.3vw,36px)!important;min-height:0!important;box-sizing:border-box}
 body[data-page="studio"] .studio-step-slider .form-section:not(.studio-result)>*{flex-shrink:0}
 body[data-page="studio"] .studio-step-slider .form-section:not(.studio-result)>.studio-step-actions{position:static!important;inset:auto!important;min-height:0!important;height:auto;margin:24px 0 0!important;padding:0!important;background:transparent}
 body[data-page="studio"] .studio-step-slider .form-section:first-child>.studio-step-actions::before{display:none}
 body[data-page="studio"] .portrait-step>.form-section__head{position:relative!important;inset:auto!important;width:100%!important;max-width:none!important;margin:0 0 24px!important}
}

@media(min-width:681px){
 body[data-page="studio"] .studio-step-slider.studio-step-static:not(.is-generating){height:auto;min-height:0!important;overflow:clip!important;transition:none!important}
 body[data-page="studio"] .studio-step-static>.swiper-wrapper{position:relative!important;display:block!important;height:auto!important;transform:none!important;transition:none!important}
 body[data-page="studio"] .studio-step-static>.swiper-wrapper>.form-section:not(.studio-result){position:relative!important;inset:auto!important;height:auto!important;min-height:0!important;max-height:none;transform:none!important;overflow:visible!important}
 body[data-page="studio"] .studio-step-static>.swiper-wrapper>.form-section[hidden]{display:none!important}
 body[data-page="studio"] .studio-step-static .portrait-step>.portrait-capture{flex:none;align-items:start}
}

@media(min-width:681px){
 body[data-page="studio"] .portrait-step .portrait-capture__stage:not(.has-portrait):not(.is-camera-active){background:#f7f7f5}
 body[data-page="studio"] .portrait-step .portrait-capture__empty{background:transparent!important}
}

/* The 30 px weather icon must fit its own grid column and the field's inner height. */
@media(min-width:681px){
 body[data-page="studio"] .weather-dropdown__trigger{grid-template-columns:30px minmax(0,1fr) 16px;column-gap:12px;padding:0 16px;align-items:center}
 body[data-page="studio"] .weather-dropdown__trigger>canvas{display:block;width:30px;height:30px;align-self:center}
 body[data-page="studio"] .weather-dropdown__trigger>[data-weather-trigger-copy]{display:block;align-self:center;line-height:24px;margin:0}
 body[data-page="studio"] .weather-dropdown__trigger>svg{display:block;width:16px;height:16px;align-self:center;justify-self:end}
}

.admin-password-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr)) auto;align-items:end;gap:16px}
.admin-password-form label{min-width:0}
@media(max-width:680px){.admin-password-form{grid-template-columns:minmax(0,1fr)}}


/* Taps toggle the real checkbox without focusing its hidden control or moving the viewport. */
body[data-page="studio"] .classic-preference{touch-action:manipulation}
body[data-page="studio"] .classic-preference input[type="checkbox"]{top:50%;margin-top:-12px}
body[data-page="studio"] .classic-preference::before{transition:background-color .09s ease,border-color .09s ease}
body[data-page="studio"] .classic-preference::after{transition:opacity .09s ease}
@media(max-width:680px){
 body[data-page="studio"].studio-quiz-active .studio-shell{transform:none!important;transition:opacity .25s ease;max-height:none}
 body[data-page="studio"] .studio-step-static{isolation:isolate;contain:layout style}
 body[data-page="studio"] .studio-step-static .form-section>*{transition:none}
 body[data-page="studio"] .studio-form :is(.button,.studio-step-back,.select-row):active{transform:none!important}
}
/* Mobile questionnaire is a regular document page, with no Swiper rendering layers. */
@media(max-width:680px){
 body[data-page="studio"] .studio-mobile-pages,
 body[data-page="studio"] .studio-mobile-content{display:block!important;position:relative!important;inset:auto!important;height:auto!important;min-height:0!important;max-height:none!important;transform:none!important;translate:none!important;scale:none!important;transition:none!important;animation:none!important;will-change:auto!important;contain:none!important;perspective:none!important;backface-visibility:visible!important}
 body[data-page="studio"] .studio-mobile-content>.form-section{position:relative!important;inset:auto!important;display:flex!important;flex-direction:column;width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;margin:0!important;padding:16px!important;gap:0;box-sizing:border-box;border:0!important;border-radius:0!important;box-shadow:none!important;background:transparent!important;transform:none!important;transition:none!important;animation:none!important;overflow:visible!important;backface-visibility:visible!important}
 body[data-page="studio"] .studio-mobile-content>.form-section[hidden]{display:none!important}
 body[data-page="studio"] .studio-mobile-content>.form-section>*{opacity:1;transition:none;transform:none}
 body[data-page="studio"] .studio-mobile-content .checkmark{transform:none!important}
 body[data-page="studio"] .studio-form{contain:none!important}
}
/* Keep the resizing mobile frame in the document's paint/scroll context. */
@media(max-width:680px){
 html:has(body[data-page="studio"]){overflow-x:clip}
 body[data-page="studio"]{overflow:visible!important;min-height:100svh}
 body[data-page="studio"] .studio-shell,
 body[data-page="studio"] .studio-form,
 body[data-page="studio"] .studio-mobile-pages,
 body[data-page="studio"] .studio-mobile-content{overflow:visible!important;isolation:auto!important;filter:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
 body[data-page="studio"] .studio-form{display:block}
 body[data-page="studio"] .studio-mobile-content>.form-section>.studio-mobile-page-curtain{position:absolute!important;inset:0!important;z-index:20!important;background:#fff;border-radius:inherit;pointer-events:none;transform:none!important}
}
/* Portrait layout must not depend on the retired mobile Swiper wrapper. */
@media(max-width:680px){
 body[data-page="studio"] .studio-mobile-content>.portrait-step>.portrait-capture{position:relative!important;inset:auto!important;display:grid!important;grid-template-columns:minmax(0,1fr)!important;align-items:start;width:100%!important;height:auto!important;min-height:0;flex:none;gap:12px;transform:none!important}
 body[data-page="studio"] .studio-mobile-content .portrait-capture__stage{position:relative!important;inset:auto!important;display:block!important;width:100%!important;flex:none;box-sizing:border-box;border:1px solid var(--color-border)!important;border-radius:20px;overflow:hidden;background:#f7f7f5}
 body[data-page="studio"] .studio-mobile-content .portrait-capture__stage:not(.has-portrait){height:clamp(300px,82vw,420px);min-height:300px}
 body[data-page="studio"] .studio-mobile-content .portrait-capture__controls{position:relative!important;inset:auto!important;display:grid;width:100%!important;transform:none!important}
 body[data-page="studio"] .portrait-step>.form-section__head .portrait-step-title{font-size:clamp(1.674rem,7.86vw,2.232rem)!important;line-height:.96!important}
}
body[data-page="studio"] .portrait-step .portrait-capture__stage{background:radial-gradient(ellipse at 22% 18%,rgb(218 155 129 / 15%),transparent 48%),radial-gradient(ellipse at 83% 80%,rgb(189 59 29 / 11%),transparent 45%),linear-gradient(145deg,#fdfaf8 0%,#fff 48%,#f9eeea 100%)!important}
@media(max-width:680px){
 body[data-page="studio"] .portrait-capture__stage.has-portrait img[data-camera-snapshot="true"]{object-fit:fill!important}
 body[data-page="studio"] .portrait-capture__stage>.portrait-preview-curtain{position:absolute;inset:0;z-index:2;background:inherit;border-radius:inherit;pointer-events:none}
}
@media(max-width:680px){
 body[data-page="studio"] .mobile-style-selections__inner{position:relative;min-height:0}
 body[data-page="studio"] .mobile-style-card{min-height:0;align-items:start;align-content:start}
 body[data-page="studio"] .mobile-style-selections__inner.is-size-changing{overflow:clip}
 body[data-page="studio"] .form-section .mobile-style-card small{height:auto;min-height:0;max-height:none;overflow:hidden}
 body[data-page="studio"] .form-section .mobile-style-card a{display:block!important;width:max-content;max-width:100%;min-height:0;line-height:20px;margin-top:8px}
 body[data-page="studio"] .form-section .mobile-style-card a[hidden]{display:none!important}
 body[data-page="studio"] .mobile-style-curtain{position:absolute;inset:1px;z-index:2;border-radius:13px;background:#fff;pointer-events:none}
}
@media(max-width:680px){
 body[data-page="studio"] .studio-mobile-pages[hidden],
 body[data-page="studio"] .studio-mobile-pages.is-generating>.studio-mobile-content{display:none!important}
 body[data-page="studio"] .classic-preference::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12 4 4 8-9' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-position:center;background-size:17px;background-repeat:no-repeat}
 body[data-page="studio"] .classic-preference::after{display:none}
}

/* Touch gallery owns its movement; native snapping/anchoring must not correct it. */
@media(max-width:680px){
 body[data-page="wardrobe"] .look-gallery,body[data-page="look"] .look-gallery{scroll-snap-type:none;overflow-anchor:none}
 body[data-page="wardrobe"] .look-gallery__slide,body[data-page="look"] .look-gallery__slide{scroll-snap-align:none;scroll-snap-stop:normal;overflow-anchor:none}
}

@media(max-width:680px){
 .look-gallery.look-gallery--fade>.swiper-wrapper{display:flex;align-items:flex-start;height:auto;transition-timing-function:ease}
 .look-gallery.look-gallery--fade .look-gallery__slide.swiper-slide{position:relative;inset:auto;flex:0 0 100%;height:auto;scroll-snap-align:none}
}

@media(max-width:680px){.look-gallery-shell.is-switching .look-gallery{pointer-events:auto}}

 .generation-safety-slot{overflow:hidden;display:flow-root;overflow-anchor:none}
.generation-safety-error{display:grid;grid-template-columns:48px minmax(0,1fr);gap:16px;margin:0 0 16px;padding:20px;border:1px solid rgb(170 49 19 / 13%);border-radius:20px;background:#fffaf7;color:var(--color-accent-deep,#a43117);overflow-wrap:anywhere}
.generation-safety-error>svg{width:48px;height:48px}
.generation-safety-error strong{font-size:1rem;line-height:1.4;font-weight:600}
.generation-safety-error p{margin:8px 0 0;font-size:1rem;line-height:1.45;color:var(--color-text,#21262b)}
.generation-safety-error small{display:block;margin-top:10px;font-size:.85rem;color:var(--color-text-secondary,#646970)}
.generation-safety-error__dismiss{display:block;width:max-content;margin-top:12px;padding:4px 0;border:0;background:none;box-shadow:none;font:inherit;font-size:.85rem;line-height:1.4;color:var(--color-text-secondary,#646970);opacity:.55;cursor:pointer;transition:opacity .2s ease}
.generation-safety-error__dismiss:hover,.generation-safety-error__dismiss:focus-visible{opacity:1}

/* Desktop auth rows must grow with text and forms instead of compressing titles. */
@media(min-width:681px){
 body[data-page="auth"] .auth-panel{height:auto;min-height:max(600px,calc(100svh - 1.3rem));grid-auto-rows:max-content}
 body[data-page="auth"] .auth-panel>h1{margin-bottom:20px;line-height:1.12}
}
body[data-page="auth"] .auth-message-slot{display:flow-root;overflow:hidden;min-height:0;overflow-anchor:none}
body[data-page="auth"] .auth-message-slot>.app-message{transition:background-color .2s ease,color .2s ease}

/* Curl keeps the page raster stable and uses inexpensive vector shadows. */
.look-gallery.is-book-turning{isolation:isolate}
.look-gallery__slide.book-turn-leaf{position:relative;z-index:3;backface-visibility:hidden;will-change:clip-path}
.look-gallery__slide.book-turn-under{z-index:1}
.look-gallery__slide.book-turn-leaf::after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(90deg,rgb(20 16 13 / 8%),rgb(20 16 13 / 65%));opacity:var(--turn-shade,0);border-radius:inherit}
.look-gallery__slide.is-changing.book-turn-leaf{position:absolute}

.look-gallery.is-book-turning .book-turn-leaf::after{display:none}
.book-curl-surface{position:absolute;inset:0 0 auto;z-index:4;width:100%;overflow:hidden;pointer-events:none}


.look-gallery-shell,.look-gallery{overflow-anchor:none}

.look-gallery.is-book-turning .book-curl-surface{overflow:visible}

/* The collapsed quiz must not contribute descendants to scrollable overflow. */
@media(max-width:680px){
 body[data-page="studio"].studio-intro-mode:not(.studio-quiz-active) .studio-shell,
 body[data-page="studio"].studio-intro-mode:not(.studio-quiz-active) .recent-looks{overflow:clip!important}
}
body[data-page="auth"] .legal-consents input[type="checkbox"]{position:relative;background-image:none!important;transition:background-color .2s ease,border-color .2s ease}
body[data-page="auth"] .legal-consents input[type="checkbox"]::after{content:"";position:absolute;inset:0;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12 4 4 8-9' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/17px no-repeat;opacity:0;transition:opacity .18s ease;pointer-events:none}
body[data-page="auth"] .legal-consents input[type="checkbox"]:checked::after{opacity:1}
@media(prefers-reduced-motion:reduce){body[data-page="auth"] .legal-consents input[type="checkbox"],body[data-page="auth"] .legal-consents input[type="checkbox"]::after{transition:none}}

/* Safari must keep identical text metrics on the absolute and resting page. */
@media(max-width:680px){
 body[data-page="wardrobe"] .look-gallery__slide,body[data-page="look"] .look-gallery__slide{box-sizing:border-box;width:var(--look-mobile-width,100%);max-width:var(--look-mobile-width,100%);-webkit-text-size-adjust:100%;text-size-adjust:100%}
 .look-gallery__slide .generated-result__copy,.look-gallery__slide .generated-result__copy h2{-webkit-text-size-adjust:100%;text-size-adjust:100%;box-sizing:border-box;min-width:0}
}

/* Account-backed wardrobe help, separate from the page-turn layout. */
.wardrobe-guide{box-sizing:border-box;width:min(420px,calc(100% - 32px));max-height:calc(100svh - 48px);padding:28px;border:1px solid var(--color-border);border-radius:24px;background:rgba(250,249,247,.97);color:var(--color-text,#21262b);box-shadow:0 20px 70px rgb(33 38 43 / 12%);opacity:0;transition:opacity .22s ease;overflow:auto;text-align:center;font-family:inherit}
.wardrobe-guide::backdrop{background:rgb(25 28 30 / 22%);backdrop-filter:blur(9px);-webkit-backdrop-filter:blur(9px);opacity:0;transition:opacity .22s ease}
.wardrobe-guide.is-visible,.wardrobe-guide.is-visible::backdrop{opacity:1}
.wardrobe-guide__logo{display:block;width:58px;height:58px;object-fit:contain;margin:0 auto 20px}
.wardrobe-guide h2{margin:0 0 12px;font-size:24px;line-height:1.15;letter-spacing:-.025em}
.wardrobe-guide p{margin:0;font-size:16px;line-height:1.5;color:var(--color-text-secondary,#656a70)}
.wardrobe-guide__choice{display:flex;align-items:center;justify-content:center;gap:10px;margin:22px 0;cursor:pointer;user-select:none;font-size:15px;line-height:1.4}
.wardrobe-guide__choice input{appearance:none;-webkit-appearance:none;position:relative;flex:0 0 22px;width:22px;height:22px;margin:0;border:1px solid rgb(33 38 43 / 22%);border-radius:6px;background:transparent;transition:background-color .18s ease,border-color .18s ease;cursor:pointer}
.wardrobe-guide__choice input::after{content:'';position:absolute;inset:3px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='m3 8 3.2 3.2L13 4.5' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;opacity:0;transition:opacity .18s ease}
.wardrobe-guide__choice input:checked{background:var(--color-accent,#ad3217);border-color:var(--color-accent,#ad3217)}
.wardrobe-guide__choice input:checked::after{opacity:1}
.wardrobe-guide__choice input:focus-visible{outline:2px solid var(--color-accent,#ad3217);outline-offset:3px}
.wardrobe-guide>.button{width:100%;justify-content:center}
.wardrobe-guide .wardrobe-guide__error{margin:0 0 12px;color:#ad3217;font-size:14px}
@media(prefers-reduced-motion:reduce){.wardrobe-guide,.wardrobe-guide::backdrop,.wardrobe-guide__choice input,.wardrobe-guide__choice input::after{transition:none}}

/* Keep desktop corners without clipping the sticky photograph. */
@media(min-width:681px){
 .look-gallery__slide{border-radius:inherit}
 .look-gallery__slide .generated-result__media{border-top-left-radius:var(--radius-xl)}
 .look-gallery__slide .generated-result__visual{border-top-left-radius:inherit}
}
@media(min-width:681px) and (max-width:960px){
 .look-gallery__slide .generated-result__media{border-top-right-radius:var(--radius-xl)}
 .look-gallery__slide .generated-result__visual{border-top-right-radius:inherit}
}

/* Desktop wardrobe title hidden; retained in markup. */
@media(min-width:681px){body[data-page="wardrobe"] .wardrobe-hero{display:none!important}}

/* Compact guide; initial focus stays on the dialog, not its checkbox. */
.wardrobe-guide{width:min(390px,calc(100% - 32px));padding:16px;outline:none}
.wardrobe-guide__logo{width:44px;height:44px;margin-bottom:14px}
.wardrobe-guide h2{font-size:22px;margin-bottom:10px}
.wardrobe-guide p{font-size:15px;line-height:1.45}
.wardrobe-guide__choice{margin:16px 0;font-size:14px;gap:8px}
.wardrobe-guide__choice input{width:20px;height:20px;flex-basis:20px;border-color:rgb(33 38 43 / 18%)}
.wardrobe-guide>.button{min-height:38px;padding:8px 12px;font-size:15px}

body[data-page="wardrobe"] .look-toolbar [data-look-prev]{transition:opacity .25s ease,color .25s ease}
body[data-page="wardrobe"] .look-toolbar [data-look-prev][aria-disabled="true"]{opacity:.3;cursor:default}

/* Disabled gallery controls stay still in every interaction state. */
.look-toolbar .generated-result__back:is(:disabled,[aria-disabled="true"]),
.look-toolbar .generated-result__back:is(:disabled,[aria-disabled="true"]):is(:hover,:active){transform:none!important}
.look-toolbar .generated-result__back:is(:disabled,[aria-disabled="true"]) svg,
.look-toolbar .generated-result__back:is(:disabled,[aria-disabled="true"]):is(:hover,:active) svg{transform:none!important;translate:none!important;animation:none!important}

.auth-turnstile.is-scaled [data-turnstile-widget]{width:300px;max-width:none;transform:scale(var(--turnstile-scale));transform-origin:top center;margin-bottom:calc(-65px * (1 - var(--turnstile-scale)))}

/* The intro can reopen for returning accounts: keep its background available. */
body[data-page="studio"].studio-intro-mode:not(.studio-quiz-active) .studio-page-background{display:block;opacity:1;visibility:visible}
@media(max-width:680px){
 body[data-page="studio"].studio-intro-mode:not(.studio-quiz-active) .page-main{min-height:0;margin-bottom:0;padding-bottom:0!important}
 body[data-page="studio"].studio-intro-mode:not(.studio-quiz-active) .internal-hero{box-sizing:border-box;height:auto;min-height:calc(100svh - 80px);margin-block:0;padding:20px 0 60px;display:grid!important;align-items:center}
 body[data-page="studio"].studio-intro-mode:not(.studio-quiz-active) :is(.studio-shell,.recent-looks){margin-block:0!important;padding-block:0!important;min-height:0!important;max-height:0!important;overflow:clip!important}
 body[data-page="studio"].studio-intro-mode:not(.studio-quiz-active) [data-site-footer]{margin-top:0}
 body[data-page="studio"].studio-intro-mode:not(.studio-quiz-active) .site-footer{margin-top:0;padding-top:16px}
}

@media(min-width:681px){body[data-page="wardrobe"] .page-main{padding-top:84px}body[data-page="wardrobe"] .look-toolbar{margin-top:0;margin-bottom:16px}}

/* Portrait controls have horizontal navigation and a stationary camera zoom. */
body[data-page="studio"] .portrait-step .studio-next:not(:disabled):is(:hover,:focus-visible) svg{transform:translateX(3px);translate:none}
body[data-page="studio"] .portrait-camera-button:not(:disabled):is(:hover,:focus-visible) svg{transform:scale(1.1);translate:none}

@media(min-width:961px){
 .generated-result--immersive.generated-result:not(.look-gallery-shell),.look-gallery__slide{grid-template-columns:minmax(0,.74fr) minmax(0,1.26fr)}
 .generated-result--immersive .generated-result__visual{aspect-ratio:2/3!important}
 .generated-result--immersive .generated-result__visual img{position:absolute;inset:0;width:100%!important;height:100%!important;object-fit:cover!important;object-position:50% 0!important}
}

@media(min-width:961px){.generated-result--immersive .generated-result__visual{max-height:calc(100svh - 172px)!important}}

@media(min-width:681px){
 .wardrobe-collection .wardrobe-card__body{padding:1.25rem}
 .wardrobe-collection .wardrobe-card__body h2{margin-top:0}
 .wardrobe-collection .wardrobe-card__body>p{margin-bottom:0}
}

@media(min-width:681px){.wardrobe-guide{width:min(410px,calc(100% - 32px))}}

@media(min-width:681px){html[lang="ru"] .wardrobe-guide{width:min(390px,calc(100% - 32px))}}

/* Intro fills the viewport together with its footer, not above it. */
@media(max-width:680px){
 body[data-page="studio"].studio-intro-mode:not(.studio-quiz-active){display:flex;flex-direction:column;min-height:100svh}
 body[data-page="studio"].studio-intro-mode:not(.studio-quiz-active)>.page-main{display:flex;flex-direction:column;flex:1 0 auto;min-height:0;padding-bottom:0!important}
 body[data-page="studio"].studio-intro-mode:not(.studio-quiz-active) .internal-hero{flex:1;min-height:0!important;height:auto;padding:24px 0;align-content:center}
 body[data-page="studio"].studio-intro-mode:not(.studio-quiz-active)>[data-site-footer]{flex:none;width:100%}
}

@media(max-width:680px){
 body[data-page="studio"].studio-returning .internal-hero,body[data-page="studio"].studio-returning .internal-hero__content :is(h1,.lede){transition:none!important;transform:none!important}
 body[data-page="studio"].studio-intro-mode:not(.studio-quiz-active) :is(.studio-shell,.recent-looks){display:none!important}
}

@media(max-width:680px){.geo-permission-overlay>div{padding:1.25rem}.geo-permission-actions{margin-bottom:0}}

/* Mobile intro transitions change opacity only, never layout geometry. */
@media(max-width:680px){
 body[data-page="studio"]{display:flex;flex-direction:column;min-height:100svh}
 body[data-page="studio"] :is(.internal-hero,.internal-hero__content h1,.internal-hero__content .lede,.studio-enter,.recent-looks){transition:none!important;transform:none!important}
 body[data-page="studio"] :is(.internal-hero__content,.studio-shell){transition:none!important}
}

.official-height-row{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.official-height-row .classic-preference{flex:1;margin:0}.height-picker{display:flex;align-items:center;gap:8px;font-size:14px}.height-picker select{max-width:145px;min-height:33px;padding:6px 8px;border:1px solid var(--color-border);border-radius:9px;background:#fff;color:inherit;font:inherit}

body[data-page="wardrobe"] .look-toolbar{flex-direction:row-reverse}

@media(min-width:681px){body:is([data-page="wardrobe"],[data-page="look"]) .generated-result__actions>button.button:not(.button--accent){font-size:.92rem}}

.purchase-chat__avatar{flex:none;background:rgba(255,255,255,.8)}
.purchase-chat__avatar img{display:block;width:34px;height:34px;object-fit:contain}
.purchase-chat__manager strong{font-size:15px}
.purchase-chat__manager .purchase-chat__online{display:flex;align-items:center;gap:6px;font-size:14px;color:#448567}
.purchase-chat__online i{display:block;width:7px;height:7px;flex:none;border-radius:50%;background:#59a77c}
.purchase-dialog__promo{grid-column:1/-1}
.purchase-dialog__note{font-size:14px;line-height:1.45;margin:2px 0 4px}
@media(min-width:701px){.purchase-dialog{width:min(830px,calc(100% - 2rem))}.purchase-chat{min-height:350px}.purchase-chat__bubble{font-size:15px}.purchase-chat__status{font-size:12px}}

body[data-page="studio"] .engine-note{container-type:inline-size;--aside-content-gap:1.15rem}
body[data-page="studio"] .engine-note [data-studio-aside-title]{width:100%;max-width:100%;white-space:nowrap;font-size:7.6cqw;line-height:1.15;letter-spacing:-.035em;margin-top:var(--aside-content-gap)}
body[data-page="studio"] .engine-note [data-empty-limit-promo]{font-size:.92rem;margin-block:var(--aside-content-gap);padding:.68rem 1rem}
body[data-page="studio"] .engine-note [data-empty-limit-promo]+p{margin-top:0}
.purchase-dialog__promo{font-size:.86rem;margin-block:1.15rem}

/* Purchase dialog only: matching controls and one spacing rhythm. */
.purchase-dialog__surface{row-gap:.75rem}
.purchase-dialog .purchase-dialog__telegram,.purchase-dialog .purchase-dialog__promo{box-sizing:border-box;min-height:54px;padding:.68rem 1.1rem;margin:0;line-height:1.3}
.purchase-dialog .purchase-dialog__promo{background:rgba(255,255,255,.76);border-color:var(--color-border);color:var(--color-text)}
.purchase-dialog .purchase-dialog__promo:hover{background:#fff}
.purchase-dialog .purchase-dialog__note{margin:0 0 .1rem}
@media(min-width:701px){.purchase-dialog .purchase-dialog__telegram,.purchase-dialog .purchase-dialog__promo{font-size:18px}}

body[data-page="studio"] .engine-note [data-empty-limit-promo]{margin-block:1.9rem}

body[data-page="studio"] .engine-note:has([data-empty-limit-promo]:not([hidden])) [data-studio-aside-title],body[data-page="studio"] .engine-note:has([data-empty-limit-promo]:not([hidden])) .limit-topup{margin-bottom:0}

/* Images and headings are not selectable; editable fields retain native selection. */
img,h1,h2,h3,h4,h5,h6,[role="heading"]{-webkit-user-select:none;user-select:none}
