:root{font-family:Inter,-apple-system,BlinkMacSystemFont,'PingFang SC','Microsoft YaHei',sans-serif;color:#f5f0ed;background:#17151b;font-synthesis:none;-webkit-font-smoothing:antialiased;--accent:#f2bea8;--muted:#a8a0a4}
*{box-sizing:border-box}
body{margin:0;min-width:320px;min-height:100vh;overflow-x:hidden}
button,input{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed}button:focus-visible,a:focus-visible,label:focus-visible,input:focus-visible{outline:2px solid #ffd5bf;outline-offset:4px}
.ambient{position:fixed;pointer-events:none;z-index:-1;border-radius:50%;filter:blur(90px);opacity:.38}.ambient-one{width:540px;height:540px;left:-180px;top:-190px;background:#985c66}.ambient-two{width:650px;height:650px;right:-280px;bottom:-230px;background:#5c424e}
.app-shell{width:min(1320px,100%);margin:auto;padding:0 50px}.site-header{height:100px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #ffffff18}.brand{display:flex;align-items:center;gap:13px}.brand-mark{width:41px;height:41px;border-radius:14px;background:linear-gradient(145deg,#f7c9ad,#da8b8e);color:#3d252d;display:grid;place-items:center;box-shadow:0 7px 25px #ed9f9940}.brand-mark svg{width:23px}.brand-text{display:flex;flex-direction:column;gap:2px}.brand-name{font-size:18px;font-weight:700;letter-spacing:.06em}.brand-sub{font-size:8px;letter-spacing:.3em;color:#c0aeb1;font-weight:700}.privacy-pill{display:flex;gap:9px;align-items:center;padding:10px 14px;border:1px solid #ffffff20;border-radius:999px;color:#cbbcc0;font-size:11px;letter-spacing:.02em}.privacy-dot{width:7px;height:7px;border-radius:50%;background:#c2d3ba;box-shadow:0 0 0 4px #c2d3ba19}
.layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(350px,.87fr);gap:clamp(38px,6vw,100px);align-items:center;padding:49px 0 52px}.camera-section{display:flex;flex-direction:column;align-items:center;min-width:0}.camera-frame{position:relative;width:min(100%,500px);aspect-ratio:3/4;background:#28232b;border-radius:30px;overflow:hidden;border:1px solid #ffffff32;box-shadow:0 35px 75px #06050769,0 0 0 8px #ffffff09}.camera-frame:before{content:'';position:absolute;inset:0;z-index:1;pointer-events:none;border-radius:30px;box-shadow:inset 0 0 0 1px #ffffff0c}.camera-frame canvas{display:block;width:100%;height:100%;object-fit:cover}.camera-frame video{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.camera-topbar{position:absolute;z-index:6;top:18px;left:18px;right:18px;display:flex;align-items:center;justify-content:space-between;gap:12px}.live-badge{height:35px;display:flex;align-items:center;gap:7px;padding:0 12px;background:#17141aa8;backdrop-filter:blur(14px);border:1px solid #ffffff24;border-radius:999px;font-size:11px;font-weight:600;letter-spacing:.04em;color:#f6e7df}.live-badge>span:first-child{width:6px;height:6px;border-radius:50%;background:#f3a6a0;box-shadow:0 0 0 3px #f3a6a034}.top-actions{display:flex;gap:8px}.icon-button,.side-control{display:grid;place-items:center;border:1px solid #ffffff32;background:#17141a80;color:#fff;backdrop-filter:blur(14px);transition:background .2s,transform .2s}.icon-button:hover:not(:disabled),.side-control:hover{background:#ffffff32;transform:translateY(-2px)}.icon-button:disabled{opacity:.45}.icon-button{width:35px;height:35px;border-radius:11px}.icon-button[aria-pressed="true"]{background:#f1bdaa;color:#38232b}.icon-button svg,.side-control svg,.primary-button svg{width:19px;height:19px;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.viewfinder-grid{position:absolute;z-index:3;inset:0;pointer-events:none;display:none;background:linear-gradient(to right,transparent calc(33.333% - .5px),#ffffff60 33.333%,transparent calc(33.333% + .5px),transparent calc(66.666% - .5px),#ffffff60 66.666%,transparent calc(66.666% + .5px)),linear-gradient(to bottom,transparent calc(33.333% - .5px),#ffffff60 33.333%,transparent calc(33.333% + .5px),transparent calc(66.666% - .5px),#ffffff60 66.666%,transparent calc(66.666% + .5px))}.viewfinder-grid.visible{display:block}
.empty-state{position:absolute;z-index:4;inset:0;background:radial-gradient(circle at 65% 27%,#855d6a 0,#43313d 33%,#28232b 70%);display:grid;place-items:center;text-align:center;overflow:hidden}.empty-state[hidden]{display:none}.empty-glow{position:absolute;inset:10%;border-radius:50%;background:radial-gradient(circle,#f2ad9a32,transparent 64%);filter:blur(10px)}.empty-state:before,.empty-state:after{content:'';position:absolute;border:1px solid #ffffff15;border-radius:50%;width:480px;height:480px}.empty-state:after{width:700px;height:700px;border-color:#ffffff0b}.empty-content{z-index:1;position:relative;width:100%;padding:26px}.empty-symbol{width:72px;height:72px;margin:0 auto 23px;display:grid;place-items:center;border-radius:23px;background:#ffffff16;border:1px solid #ffffff35;box-shadow:0 10px 50px #0002}.empty-symbol svg{width:40px;stroke:#f9d4be;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.eyebrow{color:#ebc4b6;font-size:10px;font-weight:700;letter-spacing:.24em;margin:0 0 14px}.empty-content h1{font-size:clamp(31px,3vw,44px);letter-spacing:-.05em;line-height:1.35;margin:0;font-weight:700}.empty-content h1 em{font-style:normal;color:#f5c5ae}.empty-copy{margin:19px 0 27px;color:#e0cdd0;font-size:12px;line-height:1.7}.primary-button{display:inline-flex;align-items:center;justify-content:center;gap:9px;border:0;border-radius:15px;background:linear-gradient(135deg,#ffe0c6,#f3b9a8);color:#3b2830;padding:14px 22px;font-size:14px;font-weight:700;box-shadow:0 10px 25px #11060946}.primary-button:hover{transform:translateY(-2px);box-shadow:0 14px 30px #11060964}.text-link{display:block;color:#f4d1c2;font-size:11px;margin-top:18px;text-decoration:underline;text-underline-offset:4px;cursor:pointer}.text-link span{margin-left:3px}
.camera-bottom{position:absolute;z-index:5;bottom:0;left:0;right:0;padding:65px 30px 25px;background:linear-gradient(transparent,#09070abb);text-align:center}.camera-tip{font-size:11px;color:#e5d9d8;margin-bottom:18px;letter-spacing:.08em}.camera-frame.empty .camera-tip{display:none}.capture-row{display:flex;align-items:center;justify-content:space-between;max-width:280px;margin:auto}.side-control{width:45px;height:45px;border-radius:15px}.side-control svg{width:22px;height:22px}.timer-button span{font-size:10px;font-weight:700;letter-spacing:.03em}.shutter{width:70px;height:70px;display:grid;place-items:center;border-radius:50%;border:3px solid #fff;background:#ffffff1b;padding:6px;box-shadow:0 0 0 5px #ffffff1e}.shutter span{width:100%;height:100%;border-radius:50%;background:#f8d5c5;transition:transform .15s,background .15s}.shutter:hover:not(:disabled) span{transform:scale(.9);background:#fff}.shutter:disabled{opacity:.5}.shutter:active:not(:disabled) span{transform:scale(.8)}.camera-note{margin:18px 0 0;color:#948b91;font-size:11px;letter-spacing:.01em;text-align:center}
.countdown{position:absolute;z-index:10;inset:0;display:grid;place-items:center;background:#09060b64;color:white;font-size:120px;font-weight:700;text-shadow:0 7px 25px #0006}.countdown[hidden]{display:none}.result-view{position:absolute;z-index:9;inset:0;background:#17151b}.result-view[hidden]{display:none}.result-view img{width:100%;height:100%;display:block;object-fit:cover}.result-top{position:absolute;top:20px;left:20px}.result-badge{padding:10px 14px;border-radius:999px;background:#160f16aa;backdrop-filter:blur(15px);border:1px solid #ffffff38;font-size:12px}.result-actions{position:absolute;bottom:0;left:0;right:0;display:flex;gap:12px;padding:70px 22px 25px;background:linear-gradient(transparent,#0b080dc9)}.result-actions>*{flex:1;text-align:center;border:0;border-radius:14px;padding:15px 7px;font-size:13px;font-weight:700;text-decoration:none}.result-secondary{background:#ffffff28;color:white;border:1px solid #ffffff54}.result-primary{background:#f5c5ae;color:#392530}
.controls-section{min-width:0}.section-intro{padding:0 3px 27px}.section-kicker{font-size:10px;letter-spacing:.22em;color:#efc2b0;font-weight:700}.kicker-star{font-size:15px;margin-right:7px}.section-intro h2{font-size:clamp(35px,4vw,58px);letter-spacing:-.065em;line-height:1.28;margin:15px 0 16px}.section-intro h2 span{color:#f0bea9}.section-intro p{max-width:410px;color:#b3a8ad;font-size:13px;line-height:1.8;margin:0}.panel{background:#ffffff0a;border:1px solid #ffffff1b;border-radius:23px;padding:24px 26px;margin-bottom:15px;box-shadow:0 15px 40px #00000014}.panel-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}.panel-heading>div{display:flex;align-items:center;gap:10px}.panel-heading h3{font-size:16px;font-weight:600;margin:0;letter-spacing:.02em}.panel-number{color:#ad8191;font-size:12px;font-weight:700}.panel-aside{font-size:11px;color:#9b8c96}.toggle{width:41px;height:24px;border:0;border-radius:999px;background:#f0bda7;padding:3px;transition:background .2s}.toggle span{display:block;width:18px;height:18px;border-radius:50%;background:#382a30;transform:translateX(17px);transition:transform .2s}.toggle[aria-checked="false"]{background:#685c64}.toggle[aria-checked="false"] span{transform:translateX(0);background:#efeaec}.slider-group{display:grid;gap:6px}.slider-group.disabled{opacity:.45;pointer-events:none}.slider-row{display:flex;align-items:center;justify-content:space-between;margin-top:1px;font-size:13px}.slider-name{display:flex;align-items:center;gap:9px}.slider-icon{width:20px;text-align:center;color:#e6afa3;font-size:18px}.slider-value{font-size:12px;color:#d7bdb6;font-variant-numeric:tabular-nums}.range{appearance:none;-webkit-appearance:none;width:100%;height:20px;background:transparent;margin:0 0 11px;cursor:pointer}.range::-webkit-slider-runnable-track{height:4px;border-radius:99px;background:linear-gradient(to right,#e7a798 var(--fill,35%),#51434b var(--fill,35%))}.range::-moz-range-track{height:4px;border-radius:99px;background:#51434b}.range::-moz-range-progress{height:4px;border-radius:99px;background:#e7a798}.range::-webkit-slider-thumb{-webkit-appearance:none;width:17px;height:17px;margin-top:-6.5px;border-radius:50%;background:#f5d0bc;border:3px solid #2c242b;box-shadow:0 0 0 2px #f5d0bc}.range::-moz-range-thumb{width:12px;height:12px;border-radius:50%;background:#f5d0bc;border:3px solid #2c242b;box-shadow:0 0 0 2px #f5d0bc}.filter-panel .panel-heading{margin-bottom:21px}.filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.filter-card{border:1px solid transparent;background:transparent;color:#f1e5e3;border-radius:15px;padding:7px 4px 10px;text-align:center;display:flex;flex-direction:column;align-items:center;transition:transform .2s,background .2s,border .2s}.filter-card:hover{transform:translateY(-3px);background:#ffffff0b}.filter-card.active{border-color:#f3baa878;background:#f3baa814}.filter-swatch{width:100%;aspect-ratio:1.25;max-height:66px;border-radius:12px;margin-bottom:9px;display:grid;place-items:center;overflow:hidden}.filter-swatch span{font-size:25px;color:#ffffffad}.swatch-natural{background:linear-gradient(145deg,#d4a390,#876a76)}.swatch-warm{background:linear-gradient(145deg,#ecbf87,#ad6963)}.swatch-clear{background:linear-gradient(145deg,#b7cfd1,#6c9aa3)}.swatch-film{background:linear-gradient(145deg,#baaa8c,#5a5759)}.filter-card strong{font-size:12px;font-weight:600}.filter-card small{font-size:10px;color:#a8989d;margin-top:3px}.small-print{display:flex;align-items:flex-start;gap:11px;padding:12px 5px;color:#a7999e}.small-print-icon{color:#dbb09e;font-size:15px}.small-print p{margin:0;font-size:11px;line-height:1.7}.site-footer{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #ffffff15;padding:25px 0 30px;color:#7d737c;font-size:10px;letter-spacing:.07em}.site-footer span:first-child{color:#b9a2a7;font-weight:700}.toast{position:fixed;z-index:30;left:50%;bottom:28px;transform:translate(-50%,20px);background:#f4cfbe;color:#32252b;max-width:calc(100vw - 32px);padding:12px 18px;border-radius:12px;box-shadow:0 15px 40px #0005;font-size:12px;font-weight:600;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;text-align:center}.toast.show{opacity:1;transform:translate(-50%,0)}
@media(max-width:900px){.app-shell{padding:0 24px}.layout{grid-template-columns:1fr;gap:42px;padding-top:29px}.camera-frame{width:min(100%,490px)}.controls-section{max-width:630px;width:100%;margin:auto}.section-intro h2{font-size:42px}.site-header{height:80px}}
@media(max-width:520px){.app-shell{padding:0 15px}.site-header{height:72px}.brand-mark{width:36px;height:36px;border-radius:12px}.brand-mark svg{width:20px}.brand-name{font-size:15px}.brand-sub{font-size:7px}.privacy-pill{font-size:0;width:32px;height:32px;padding:0;display:grid;place-items:center}.privacy-dot{width:7px;height:7px}.layout{padding-top:16px;gap:33px}.camera-frame{border-radius:21px;box-shadow:0 20px 45px #05040970;max-height:72vh}.camera-frame:before{border-radius:21px}.camera-note{font-size:10px;margin-top:13px}.camera-topbar{top:13px;left:13px;right:13px}.empty-symbol{width:57px;height:57px;margin-bottom:16px;border-radius:18px}.empty-symbol svg{width:32px}.empty-content h1{font-size:32px}.empty-copy{font-size:11px;margin:15px 0 22px}.primary-button{padding:12px 18px}.camera-bottom{padding-bottom:18px}.shutter{width:63px;height:63px}.section-intro{padding-bottom:19px}.section-intro h2{font-size:36px;margin:9px 0 11px}.section-intro p{font-size:12px}.panel{padding:20px 19px;border-radius:19px}.filter-swatch{max-height:58px}.site-footer{font-size:9px;gap:12px}.site-footer span:last-child{text-align:right}}
@media(max-height:680px) and (max-width:520px){.camera-frame{max-height:none}}
@media(max-width:520px){.camera-frame.empty .empty-content{transform:translateY(-22px)}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important}}

.camera-frame.with-background{aspect-ratio:2/3;max-height:none}
.background-panel .panel-heading{margin-bottom:17px}.background-selection{display:flex;gap:14px;align-items:center;min-height:103px;padding:10px;border-radius:16px;background:#0e0d116b;border:1px solid #ffffff14}.background-mosaic{flex:0 0 120px;height:82px;display:flex;overflow:hidden;border-radius:10px;background:#6c5357}.background-mosaic img{display:block;width:40px;height:100%;object-fit:cover}.background-mosaic.selected img{width:100%}.background-selection-copy{display:flex;flex-direction:column;gap:7px;min-width:0}.background-selection-copy strong{font-size:13px;line-height:1.3}.background-selection-copy span{font-size:11px;color:#b4a6aa;line-height:1.5}.background-actions{display:flex;gap:10px;margin-top:13px}.background-actions button{border-radius:12px;padding:11px 14px;font-size:12px;font-weight:700}.background-open{flex:1;border:0;color:#35242c;background:#f1c2ae;display:flex;align-items:center;justify-content:space-between}.background-open:hover{background:#ffe0cd}.background-clear{border:1px solid #ffffff29;background:#ffffff0a;color:#d8cbd0}.background-clear:hover:not(:disabled){background:#ffffff1d}.background-clear:disabled{opacity:.38}.background-note{margin:14px 1px 0;color:#94888f;font-size:10px;line-height:1.65}
.background-dialog{width:min(1040px,calc(100vw - 24px));height:min(86vh,890px);max-width:none;max-height:none;padding:0;border:1px solid #ffffff2b;border-radius:24px;background:#201b23;color:#f5ece8;box-shadow:0 30px 90px #0009;overflow:hidden}.background-dialog[open]{display:flex;flex-direction:column}.background-dialog::backdrop{background:#060408ca;backdrop-filter:blur(9px)}.dialog-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:27px 30px 17px;border-bottom:1px solid #ffffff1b}.dialog-head h2{font-size:27px;letter-spacing:-.04em;margin:6px 0 3px}.dialog-head p{font-size:11px;color:#bbaeb1;margin:0}.dialog-close{width:34px;height:34px;border-radius:10px;border:1px solid #ffffff2c;background:#ffffff11;color:#fff;font-size:25px;line-height:1}.dialog-close:hover{background:#ffffff25}.dialog-tools{padding:16px 30px 13px}.background-search-wrap{height:39px;display:flex;align-items:center;gap:8px;padding:0 12px;background:#ffffff0d;border:1px solid #ffffff24;border-radius:11px}.background-search-wrap svg{width:17px;height:17px;stroke:#c8b6b8;stroke-width:1.7;stroke-linecap:round}.background-search-wrap input{background:transparent;border:0;outline:0;color:#fff;width:100%;font-size:12px}.background-search-wrap input::placeholder{color:#998b92}.background-tabs{display:flex;gap:7px;overflow-x:auto;padding-top:12px;scrollbar-width:none}.background-tabs button{flex:0 0 auto;padding:8px 12px;border:1px solid #ffffff1f;border-radius:999px;background:#ffffff09;color:#bcaeb4;font-size:11px}.background-tabs button[aria-pressed="true"]{background:#f0c3af;color:#3c292e;border-color:#f0c3af;font-weight:700}.background-grid{padding:4px 30px 24px;overflow-y:auto;min-height:0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));align-content:start;gap:14px;scrollbar-color:#7c6672 #211b23}.background-card{border:1px solid #ffffff16;border-radius:13px;background:#ffffff09;color:#f1e5e1;text-align:left;padding:6px;min-width:0;transition:transform .15s,border-color .15s,background .15s}.background-card:hover{transform:translateY(-3px);border-color:#f0c3af8c;background:#ffffff14}.background-card[aria-pressed="true"]{border-color:#f0c3af;background:#f0c3af22}.background-card img{display:block;width:100%;aspect-ratio:2/3;object-fit:cover;border-radius:8px;background:#554149}.background-card-caption{display:block;padding:8px 3px 4px}.background-card-title{display:block;font-size:11px;font-weight:600;line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.background-card-meta{display:flex;justify-content:space-between;gap:3px;color:#a99ba1;font-size:9px;margin-top:5px}.background-card-meta em{font-style:normal;color:#e9b7a6}.background-empty{grid-column:1/-1;text-align:center;padding:50px;color:#ae9da4;font-size:12px}.dialog-foot{padding:12px 30px 17px;border-top:1px solid #ffffff1b;color:#96878f;font-size:10px;line-height:1.55}
@media(max-width:900px){.background-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:580px){.camera-frame{max-height:none}.background-mosaic{flex-basis:92px;height:72px}.background-mosaic img{width:31px}.background-dialog{width:100vw;height:100dvh;border-radius:0;border:0}.dialog-head{padding:20px 18px 15px}.dialog-head h2{font-size:23px}.dialog-tools{padding:13px 18px}.background-grid{padding:4px 18px 20px;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.dialog-foot{padding:11px 18px 16px}.background-card-title{font-size:10px}.background-card-meta{font-size:8px}}

.portrait-quick{height:35px;padding:0 11px;border:1px solid #ffffff32;border-radius:11px;background:#17141a99;color:#f6e7df;backdrop-filter:blur(14px);font-size:11px;font-weight:700;white-space:nowrap}
.portrait-quick[aria-pressed="true"]{border-color:#f0bda7aa;background:#f0bda7;color:#38232b}
.portrait-effect-panel{border-color:#efc2ae49;background:linear-gradient(145deg,#f0c0aa18,#ffffff0a)}
.portrait-effect-panel .panel-heading{margin-bottom:16px}
.portrait-effect-options{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.portrait-effect-options button{min-height:43px;padding:9px 12px;border:1px solid #ffffff2a;border-radius:12px;background:#ffffff0b;color:#d4c7c9;font-size:12px;font-weight:600}
.portrait-effect-options button[aria-pressed="true"]{border-color:#f0bda7;background:#f0bda726;color:#ffded0}
.portrait-effect-options button span{color:#f0bda7;margin-right:4px}
.portrait-effect-copy{margin:12px 0 13px;color:#c6b4b5;font-size:11px;line-height:1.6}
.portrait-effect-panel .range{margin:4px 0 5px}
.portrait-effect-panel #portraitStrengthControls.disabled{opacity:.45}
.portrait-effect-status{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:20px;color:#a99aa0;font-size:10px;line-height:1.5}
.portrait-effect-status button{flex:none;padding:5px 8px;border:1px solid #efc2ae66;border-radius:8px;background:#efc2ae1c;color:#f6ded2;font-size:10px}
.portrait-effect-status button[hidden]{display:none}
.portrait-comparison{display:flex;align-items:center;justify-content:center;gap:10px;margin-top:14px;color:#ad9da3;font-size:11px}
.portrait-comparison button{border:1px solid #efc2ae77;border-radius:999px;background:#efc2ae1c;color:#f6ded2;padding:8px 14px;font-size:11px;font-weight:700}
.portrait-comparison button[aria-pressed="true"]{background:#f0bda7;color:#38232b}
.portrait-comparison button:disabled{opacity:.45;cursor:default}
.portrait-comparison+.camera-note{margin-top:9px}
.result-actions .result-cinematic{grid-column:auto}
.result-actions .result-hair{display:flex;align-items:center;justify-content:center;gap:5px;border:1px solid #f4c5b698;border-radius:14px;background:#453139e8;color:#ffe0d1;font-weight:700}
.result-actions .result-hair:hover{background:#694950}
.hair-dialog{width:min(860px,calc(100vw - 28px));max-width:none;max-height:92vh;padding:0;border:1px solid #ffffff2b;border-radius:24px;background:#211b24;color:#f9eeea;box-shadow:0 35px 100px #000b}
.hair-dialog[open]{display:flex;flex-direction:column}.hair-dialog[hidden],.hair-dialog [hidden]{display:none!important}
.hair-dialog::backdrop{background:#060408cc;backdrop-filter:blur(8px)}
.hair-dialog-head{display:flex;justify-content:space-between;gap:15px;padding:25px 28px 19px;border-bottom:1px solid #ffffff1b}
.hair-dialog-head h2{margin:7px 0 4px;font-size:26px}.hair-dialog-head p{margin:0;color:#b6a6aa;font-size:11px;line-height:1.55}
.hair-dialog-body{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(190px,.7fr);gap:22px;padding:22px 28px;overflow:auto}
.hair-previews{display:grid;grid-template-columns:1fr 1fr;gap:10px;min-width:0}.hair-previews figure{margin:0;min-width:0}.hair-previews img,.hair-after-wrap{width:100%;aspect-ratio:3/4;object-fit:cover;border-radius:13px;background:#161219;display:block}.hair-after-wrap{overflow:hidden;border:1px solid #ffffff1b}.hair-after-wrap img{height:100%;object-fit:cover}.hair-previews figcaption{margin-top:8px;color:#c0adb0;font-size:11px}.hair-after-wrap #hairPlaceholder{height:100%;display:grid;align-content:center;text-align:center;color:#e9b6a4;font-size:28px}.hair-after-wrap #hairPlaceholder span{font-size:11px;color:#a999a0}
.hair-controls{padding:14px 15px;border:1px solid #ffffff1c;border-radius:15px;background:#ffffff08;align-self:start}.hair-controls strong{font-size:14px}.hair-controls p,.hair-status{font-size:11px;line-height:1.7;color:#b8a8ac}.hair-status{margin:16px 0 0;color:#efd1c2}.hair-controls button,.hair-controls a{display:inline-block;margin:4px 8px 0 0;padding:8px 10px;border:1px solid #efc2ae66;border-radius:9px;background:#efc2ae1c;color:#f6ded2;font-size:10px;text-decoration:none}.hair-dialog-foot{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:9px;padding:15px 28px 20px;border-top:1px solid #ffffff1b}.hair-dialog-foot button{border:1px solid #ffffff30;border-radius:11px;padding:10px 14px;background:#ffffff0b;color:#f5e8e4;font-size:12px;font-weight:700}.hair-dialog-foot #hairGenerate,.hair-dialog-foot #hairApply{border-color:#efc2ae;background:#efc2ae;color:#392830}.hair-dialog-foot button:disabled{opacity:.38;cursor:default}
.still-hair-entry{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:13px;padding:14px;border:1px solid #efc2ae55;border-radius:14px;background:#efc2ae12}.still-hair-entry div{display:grid;gap:5px}.still-hair-entry strong{font-size:12px}.still-hair-entry span{color:#b5a4a8;font-size:10px}.still-hair-entry button{flex:none;padding:8px 11px;border:1px solid #efc2ae66;border-radius:9px;background:#efc2ae1c;color:#f6ded2;font-size:10px;font-weight:700}
@media(min-width:901px){
  .layout{align-items:start}
  .camera-section{position:sticky;top:16px}
  .camera-frame{width:min(100%,500px,calc(75vh - 128px))}
  .camera-frame.with-background{width:min(100%,500px,calc(66.667vh - 114px))}
}
@media(max-width:580px){.hair-dialog{width:100vw;height:100dvh;max-height:none;border:0;border-radius:0}.hair-dialog-head{padding:19px}.hair-dialog-body{grid-template-columns:1fr;gap:13px;padding:16px 19px}.hair-previews{max-height:46vh}.hair-previews img,.hair-after-wrap{max-height:42vh}.hair-dialog-foot{padding:12px 19px calc(12px + env(safe-area-inset-bottom))}}
@media(max-width:520px){.portrait-quick{padding:0 8px;font-size:10px}.portrait-effect-copy{font-size:10px}}
