.selfie-dialog{border:1px solid #dfdfd5;border-radius:6px;background:#fff;color:var(--ink);padding:0;width:min(430px,calc(100% - 24px));max-height:calc(100svh - 24px);overflow:auto;box-shadow:0 20px 90px #3f412618}.selfie-dialog::backdrop{background:#ededdf88;-webkit-backdrop-filter:blur(7px);backdrop-filter:blur(7px)}.dialog-inner{padding:32px 28px 23px;position:relative}.dialog-close{position:absolute;right:9px;top:9px}.eyebrow{text-transform:uppercase;color:#8c9182;font-size:8px;letter-spacing:1.6px}.dialog-inner h2{font-family:var(--serif);font-weight:400;font-size:33px;line-height:1.2;margin:13px 0 11px}.dialog-inner>p{font-size:12px;line-height:1.7;color:#7e8374}.photo-empty,.photo-preview,.camera-preview{margin:22px 0 17px;height:220px;border:1px solid #e6e6de;border-radius:3px;background:#f9f9f5;overflow:hidden;position:relative}.photo-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:20px;color:#a0a692}.photo-empty span{font-size:11px}.photo-preview img{width:100%;height:100%;object-fit:contain}.camera-preview video{width:100%;height:100%;object-fit:cover;transform:scaleX(-1)}.face-guide{position:absolute;inset:12% 24%;border:1px solid #ffffe9a6;border-radius:48%;pointer-events:none}.primary-button,.secondary-button{display:flex;align-items:center;justify-content:center;gap:9px;padding:13px 18px;border-radius:3px;min-height:45px;font-size:11px}.primary-button{background:#7b866c;color:#fff}.primary-button:hover{background:#68775a}.secondary-button{border:1px solid #dddfd4;color:#818a73;background:transparent}.secondary-button:hover{background:#f9faf6}.dialog-actions{display:flex;flex-direction:column;gap:9px;margin-top:18px}.dialog-inner>.privacy-note{font-size:10px;line-height:1.65;color:#999e90;margin-top:18px}.dialog-inner>.analysis-status{display:flex;flex-direction:column;gap:10px;margin-top:12px;color:#879077;font-size:11px}.dialog-inner>.dialog-error{font-size:11px;color:#a56e55;padding:10px 0}.suggested-color{display:flex;align-items:center;gap:12px;padding:7px 0}.suggested-color input{appearance:none;width:28px;height:28px;border:0;border-radius:50%;padding:0;overflow:hidden;background:none;cursor:pointer}.suggested-color input::-webkit-color-swatch-wrapper{padding:0}.suggested-color input::-webkit-color-swatch{border:0;border-radius:50%}.suggested-color strong{font-size:11px;font-weight:400}.suggested-color small{display:block;font-size:9px;color:#959c89;margin-top:3px}.suggested-color>svg{margin-left:auto;color:#a5af96}.selfie-suggestions{margin:14px 0 8px}.selfie-suggestions>p{font-size:10px;line-height:1.6;color:#929a86;margin:10px 0}@media(max-width:420px){.dialog-inner{padding:30px 23px 21px}.photo-empty,.photo-preview,.camera-preview{height:195px}}.suggested-hairstyle{display:flex;align-items:center;justify-content:space-between;font-size:11px;color:#7e8374;margin:12px 0}.suggested-hairstyle select{font:inherit;color:#58614c;background:#fff;border:1px solid #dcded4;padding:6px 9px;border-radius:3px}:root{font-family:Helvetica Neue,Arial,sans-serif;color:#393a36;background:#fff;font-synthesis:none;--ink: #393a36;--muted: #797a72;--line: #292a2419;--serif: "Iowan Old Style", "Baskerville", Georgia, serif;color-scheme:light}*{box-sizing:border-box}body{margin:0;min-width:320px;overflow:hidden}button,input{font:inherit}button{cursor:pointer;color:inherit;border:0;background:none;-webkit-tap-highlight-color:transparent}button:disabled{cursor:wait;opacity:.4}button:focus-visible,input:focus-visible{outline:2px solid #897960;outline-offset:5px}fieldset{border:0;padding:0;margin:0;min-width:0}legend{padding:0}h1,h2,p{margin:0}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.atelier{width:100%;height:100svh;height:100dvh;position:relative;overflow:hidden;background:#fff}.viewport,.scene-canvas{position:absolute;inset:0}.scene-canvas canvas{display:block;width:100%;height:100%;touch-action:none}.studio-actions{position:absolute;z-index:5;top:calc(21px + env(safe-area-inset-top));right:max(25px,env(safe-area-inset-right));display:flex;align-items:center;gap:16px}.icon-button{width:42px;height:42px;display:inline-flex;align-items:center;justify-content:center;position:relative;padding:0;color:#62635a;background:transparent}.icon-button:hover{color:#1a201b}.save-check{position:absolute;right:2px;bottom:5px;color:#6a795c}.save-icon:not(.is-saved):not(:disabled):after{content:"";position:absolute;top:8px;right:6px;width:3px;height:3px;border-radius:50%;background:#b8a887}.is-saving{animation:save-pulse 1s ease-in-out infinite alternate}.editor{position:absolute;z-index:2;right:42px;top:98px;bottom:105px;width:270px;pointer-events:none;display:flex}.control-content{width:100%;overflow-y:auto;padding:5px 8px 18px;pointer-events:auto;scrollbar-width:thin;scrollbar-color:#302a231f transparent}.control-content h2{font-size:12px;font-weight:400;letter-spacing:1.2px;color:#797a72;margin-bottom:30px}.category-nav{position:absolute;z-index:4;bottom:calc(26px + env(safe-area-inset-bottom));left:50%;transform:translate(-50%);display:flex;gap:38px;align-items:center}.category-nav button{min-height:46px;padding:10px 2px;display:flex;gap:9px;align-items:center;position:relative;color:#96968e;font-size:11px;letter-spacing:.3px}.category-nav button[aria-selected=true]{color:#383c31}.category-nav button[aria-selected=true]:after{content:"";position:absolute;bottom:0;height:1px;width:20px;left:calc(50% - 10px);background:#8d927d}.category-nav button:hover{color:#393d34}.rotation-tools{position:absolute;left:26px;bottom:29px;display:flex;gap:2px;align-items:center;z-index:3;color:#98998f}.rotation-tools .icon-button{width:31px;height:36px;color:#95978b}.rotation-tools span{font-size:9px;margin-left:9px}.reset-button{position:absolute;right:27px;bottom:29px;z-index:3;color:#999b90}.color-field,.choice-field{margin-bottom:27px}.color-field legend,.choice-field legend,.field-label{font-size:11px;color:#585a51}.color-field legend,.choice-field legend{margin-bottom:14px}.swatches{display:flex;gap:8px;flex-wrap:wrap;align-items:center;padding:3px;margin:-3px}.swatch{width:23px;height:23px;border-radius:50%;border:1px solid #302a2314;display:grid;place-items:center;padding:0}.swatch svg{opacity:0;color:#fff;filter:drop-shadow(0 1px 2px #0009)}.swatch.selected{outline:1px solid #787f6d;outline-offset:3px}.swatch.selected svg{opacity:1}.custom-color{width:23px;height:23px;border:1px dashed #b1b1a6;border-radius:50%;position:relative;display:grid;place-items:center;overflow:hidden;color:#929387;font-size:16px}.custom-color input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.range-field{display:block;margin-bottom:21px}.field-label{display:flex;justify-content:space-between;gap:15px;margin-bottom:8px}.field-label output{color:#929388;font-size:10px;font-variant-numeric:tabular-nums}.range-field input{appearance:none;display:block;width:100%;height:20px;margin:0;cursor:pointer;background:transparent}.range-field input::-webkit-slider-runnable-track{height:1px;background:#dcddd5}.range-field input::-moz-range-track{height:1px;background:#dcddd5}.range-field input::-webkit-slider-thumb{appearance:none;width:9px;height:9px;border-radius:50%;background:#818974;margin-top:-4px;box-shadow:0 0 0 4px #fff}.range-field input::-moz-range-thumb{width:9px;height:9px;border:0;border-radius:50%;background:#818974;box-shadow:0 0 0 4px #fff}.range-ends{display:flex;justify-content:space-between;color:#999b90;font-size:9px;margin-top:2px}.choices{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.choices button{min-height:36px;border:1px solid #dfdfd6;border-radius:3px;padding:8px 5px;font-size:10px;color:#8a8b7f}.choices button.selected{color:#4c5342;border-color:#a3a993;background:#89906e08}.choices button:hover{border-color:#a6ad98}.field-note{font-size:10px;line-height:1.6;color:var(--muted)}.scene-message{position:absolute;z-index:6;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:20px;color:#777d6d;background:#fff;padding:30px;text-align:center;font-size:12px}.scene-error{background:#ffffffed}.scene-error p{max-width:350px;line-height:1.7}.loading-line{display:block;width:55px;height:1px;background:#c6cabb;position:relative;overflow:hidden}.loading-line:after{content:"";position:absolute;left:-20px;height:1px;width:20px;background:#838e72;animation:loading 1.2s ease-in-out infinite}.toast{position:fixed;z-index:12;bottom:calc(95px + env(safe-area-inset-bottom));left:50%;transform:translate(-50%);width:max-content;max-width:min(520px,calc(100% - 30px));display:flex;align-items:center;gap:15px;padding:13px 17px;border:1px solid #e5e7df;border-radius:4px;background:#fffffff2;color:#5d6451;box-shadow:0 3px 25px #2d31170a;font-size:11px;line-height:1.6}.toast button{white-space:nowrap;padding:5px 0;text-decoration:underline;font-size:11px}.toast .toast-close{text-decoration:none;display:flex;padding:5px}@keyframes loading{to{left:55px}}@keyframes save-pulse{to{opacity:.35}}@media(max-width:1000px)and (min-width:701px){.editor{right:25px;width:245px}.category-nav{gap:25px}.rotation-tools span{display:none}}@media(max-width:700px){.studio-actions{top:calc(14px + env(safe-area-inset-top));right:16px;gap:13px}.studio-actions .icon-button{width:40px;height:40px}.editor{left:23px;right:23px;top:auto;width:auto;bottom:calc(88px + env(safe-area-inset-bottom));height:31svh;max-height:290px}.control-content{padding:12px 7px 8px;background:linear-gradient(#ffffffeb,#fffffffa);border-top:1px solid #e6e7e015;-webkit-mask-image:linear-gradient(to bottom,transparent,#000 9px,#000 calc(100% - 8px),transparent);mask-image:linear-gradient(to bottom,transparent,#000 9px,#000 calc(100% - 8px),transparent)}.control-content h2{display:none}.category-nav{bottom:calc(18px + env(safe-area-inset-bottom));gap:26px}.category-nav button{min-height:48px;font-size:10px;gap:7px;flex-direction:column;padding:0 4px 9px}.category-nav button svg{width:20px;height:20px}.rotation-tools{left:11px;bottom:calc(25px + env(safe-area-inset-bottom))}.rotation-tools span,.rotation-tools button:last-of-type{display:none}.reset-button{right:11px;bottom:calc(23px + env(safe-area-inset-bottom))}.range-field{margin-bottom:15px}.field-label{font-size:11px;margin-bottom:4px}.range-field input{height:26px}.range-field input::-webkit-slider-thumb{width:12px;height:12px;margin-top:-5.5px}.range-field input::-moz-range-thumb{width:12px;height:12px}.range-ends{font-size:9px;margin-top:0}.color-field,.choice-field{margin-bottom:21px}.swatches{gap:12px}.swatch,.custom-color{width:26px;height:26px}.choices button{min-height:40px;font-size:11px}.toast{bottom:calc(96px + env(safe-area-inset-bottom));padding:11px 13px;gap:10px;font-size:10px}}@media(max-width:360px){.category-nav{gap:19px}.editor{left:20px;right:20px}.swatches{gap:10px}.swatch,.custom-color{width:23px;height:23px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;scroll-behavior:auto!important}}
