.face-studio{--face-line:#e7dcd4;max-width:1240px;margin:0 auto;color:var(--ink)}
.face-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:12px}.face-heading>div{display:flex;align-items:baseline;gap:18px}.face-heading h1{font:32px/1.35 var(--serif);letter-spacing:2px}.face-heading p{font-size:13px;color:var(--muted)}.face-heading a{display:flex;align-items:center;gap:4px;color:var(--rose-dark);white-space:nowrap}.face-studio svg{width:19px;height:19px;flex-shrink:0}
.face-sample-note{font-size:11px;line-height:1.7;color:#9b7a66;background:#f4e9df;border-radius:9px;padding:8px 13px;margin-bottom:15px}
.face-editor{display:grid;grid-template-columns:minmax(150px,.75fr) minmax(260px,1.55fr) minmax(255px,1.05fr);gap:14px;align-items:stretch}.face-presets,.face-controls{padding:16px;border:1px solid var(--face-line);border-radius:14px;background:var(--white);min-width:0}.face-section-title{display:flex;align-items:center;justify-content:space-between;gap:5px;margin-bottom:13px}.face-section-title h2{font:19px var(--serif);white-space:nowrap}.face-small-btn{font-size:10px;border:1px solid var(--line);border-radius:7px;display:flex;align-items:center;gap:3px;padding:6px;white-space:nowrap;color:var(--muted)}.face-small-btn svg{width:13px;height:13px}
.face-preset-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.face-preset{min-width:0;overflow:hidden;border-radius:10px;border:1.5px solid transparent;padding:3px;background:#f3ece6;text-align:left;transition:border-color .15s,background .15s}.face-preset.selected{border-color:var(--rose);background:#fff4ee}.face-preset canvas{display:block;width:100%;height:auto;aspect-ratio:4/5;background:linear-gradient(135deg,#e6d8cb,#f8efe5);border-radius:7px}.face-preset>span{display:block;font-size:11px;text-align:center;padding:7px 0 3px}.face-preset>small{display:none;font-size:9px;line-height:1.5;color:var(--muted);text-align:center;padding:0 3px 6px}.face-muted{color:var(--muted);font-size:11px;line-height:1.8}.face-preset-note{margin-top:22px}
.face-stage-wrap{position:relative;min-width:0;height:570px;border:1px solid var(--face-line);border-radius:14px;overflow:hidden;background:radial-gradient(ellipse at 45% 25%,#f4eee7,#d6c8bc 80%)}.face-stage{position:absolute;inset:0}.face-render-canvas{display:block;width:100%;height:100%;touch-action:none}.face-stage-tag{position:absolute;top:15px;left:15px;padding:5px 9px;border-radius:6px;background:#6e625b96;backdrop-filter:blur(6px);font-size:10px;color:#fff8f0;pointer-events:none}.face-stage-tools{position:absolute;left:12px;right:12px;bottom:13px;display:flex;align-items:center;justify-content:space-between;gap:4px;border:1px solid #fff9;border-radius:11px;padding:7px;background:#fffbf1e8;backdrop-filter:blur(10px)}.face-stage-tools>div{display:flex;gap:2px}.face-round-btn{display:inline-flex;align-items:center;justify-content:center;min-width:33px;min-height:33px;border-radius:8px;color:#796558}.face-round-btn:hover{background:var(--blush)}.face-view-tabs{align-items:center}.face-view-tabs button{font-size:11px;padding:5px 10px;border-radius:8px;min-height:32px;color:#89776a}.face-view-tabs button.active{background:var(--rose);color:var(--white)}
.face-loading,.face-render-error{position:absolute;inset:0;z-index:2;background:#eee5dced;display:flex;align-items:center;justify-content:center;flex-direction:column;padding:25px;text-align:center;gap:14px;color:#987e6d}.face-loading[hidden],.face-render-error[hidden]{display:none}.face-loading p{font-size:12px}.face-render-error h3{font:20px var(--serif);color:var(--ink)}.face-render-error p{font-size:12px;max-width:280px;line-height:1.9}.face-render-error>svg{width:42px;height:42px}.face-loader{width:27px;height:27px;border-radius:50%;border:2px solid #dbc1b0;border-top-color:var(--rose);animation:face-spin 1.1s linear infinite}@keyframes face-spin{to{transform:rotate(360deg)}}
.face-controls{display:flex;flex-direction:column}.face-tabs{display:flex;border-bottom:1px solid var(--face-line);gap:3px;margin:-3px -5px 14px}.face-tabs button{flex:1;padding:9px 1px 13px;font-size:13px;white-space:nowrap;position:relative}.face-tabs button.active{color:var(--rose-dark)}.face-tabs button.active:after{content:'';height:2px;background:var(--rose);position:absolute;left:20%;right:20%;bottom:-1px}.face-tabs [data-face-tab=presets]{display:none}.face-control-panel{min-height:240px}.face-control-panel h3{font-size:13px;font-weight:500;margin-bottom:15px}.face-feature-tabs{display:flex;background:#f5efeb;border-radius:9px;padding:3px;margin-bottom:22px}.face-feature-tabs button{flex:1;min-height:32px;font-size:11px;border-radius:7px;color:var(--muted)}.face-feature-tabs button.active{background:var(--blush);color:var(--rose-dark)}.face-sliders{display:grid;gap:22px}.face-slider{display:grid;grid-template-columns:76px minmax(0,1fr) 24px;gap:9px;align-items:center;min-height:26px}.face-slider>span{font-size:11px}.face-slider input{width:100%;min-width:0;accent-color:var(--rose);height:20px;cursor:pointer}.face-slider output{font:11px var(--sans);color:var(--muted);text-align:right}.face-slider-tip{font-size:10px;margin-top:24px;color:#b3a094}
.face-edit-tools{display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--face-line);border-bottom:1px solid var(--face-line);padding:15px 0;gap:5px;margin-top:auto}.face-edit-tools button{display:flex;flex-direction:column;align-items:center;gap:6px;min-width:33px;font-size:9px;color:#927765}.face-edit-tools button:disabled{opacity:.35;cursor:default}.face-edit-tools .face-compare{font-size:10px;flex-direction:row;padding:10px 0}.face-edit-tools .comparing{color:var(--rose-dark)}
.face-current-card{display:flex;gap:10px;align-items:center;margin-top:17px}.face-current-card canvas{width:38px;height:48px;object-fit:contain;background:#efe2d6;border-radius:7px}.face-current-card>div{display:flex;flex-direction:column;gap:4px;min-width:0}.face-current-card small{font-size:10px;color:var(--muted)}.face-current-card strong{font-size:12px;font-weight:500}.face-current-card span{font-size:10px;color:#a28f81}.face-save-actions{display:grid;grid-template-columns:1fr 1.25fr;gap:9px;margin-top:17px}.face-save-actions button{font-size:11px;padding:11px 6px;min-height:41px;white-space:nowrap}.face-save-actions button:disabled{opacity:.48;cursor:default}.face-generation-note{font-size:9px;text-align:center;margin-top:9px}.face-inline-error{font-size:11px;color:#a45e54;line-height:1.8;margin-top:7px}.face-inline-error:empty{display:none}
.face-hair-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-bottom:23px}.face-hair-choices button{border:1.5px solid var(--line);border-radius:9px;display:flex;align-items:center;flex-direction:column;gap:7px;padding:12px 3px;font-size:10px;color:#8c7668}.face-hair-choices button.selected{border-color:var(--rose);background:#fff4ee}.face-hair-mark svg{width:28px;height:28px;stroke-width:1}.face-palette{border:0;margin:0 0 21px;padding:0}.face-palette legend{font-size:11px;margin-bottom:10px}.face-palette>div{display:flex;gap:9px;flex-wrap:wrap}.face-palette button{width:28px;height:28px;border-radius:50%;background:var(--swatch);border:3px solid var(--white);box-shadow:0 0 0 1px #dccfc5}.face-palette button.selected{box-shadow:0 0 0 1.5px var(--rose)}.face-asset-note{font-size:10px;line-height:1.8;color:#a28b7b;background:#f6eee7;border-radius:9px;padding:10px}
.face-directions{display:grid;grid-template-columns:150px repeat(3,minmax(0,1fr));gap:12px;border:1px solid var(--face-line);border-radius:14px;padding:13px;margin-top:18px;background:var(--white)}.face-directions>div{padding:13px 2px 10px 8px}.face-directions h2{font:19px var(--serif)}.face-directions p{font-size:11px;line-height:1.9;color:var(--muted);margin-top:13px}.face-direction{position:relative;border-radius:9px;overflow:hidden;background:#e9ddd2;text-align:left;min-width:0}.face-direction canvas{display:block;width:100%;height:160px;object-fit:contain}.face-direction>span{position:absolute;bottom:10px;left:10px;background:#fffbf2df;padding:6px 9px;border-radius:6px;display:flex;flex-direction:column;gap:3px}.face-direction small{font:10px Georgia;color:#927563}.face-direction b{font-size:11px;font-weight:500}
.face-dialog-backdrop{position:fixed;inset:0;background:#372b2466;backdrop-filter:blur(5px);display:flex;align-items:center;justify-content:center;padding:20px;z-index:150}.face-dialog{width:min(760px,100%);max-height:92dvh;overflow:auto;border:1px solid #fff9;border-radius:20px;padding:24px;background:var(--paper);box-shadow:0 25px 80px #34221430}.face-dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:14px}.face-dialog-heading h2{font:24px var(--serif)}.face-dialog-note{font-size:12px;line-height:1.9;color:var(--muted);margin-bottom:16px}.face-preview-pair{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin-bottom:14px}.face-preview-pair figure{margin:0;min-width:0}.face-preview-pair canvas{display:block;width:100%;height:auto;max-height:48dvh;object-fit:contain;border-radius:12px;background:#e9ddd2}.face-preview-pair figcaption{font-size:12px;text-align:center;margin-top:10px}.face-demo-pill{font-size:9px;color:var(--rose-dark);padding:3px 6px;border-radius:5px;background:var(--blush);margin-left:4px}.face-dialog-actions{display:flex;justify-content:center;gap:12px;margin-top:20px}.face-dialog-actions button{flex:1;max-width:250px;font-size:12px}.face-preview-failure-link{display:block;font-size:10px;color:var(--muted);margin:15px auto 0;text-decoration:underline;text-underline-offset:3px}.face-exit-actions{display:flex;flex-direction:column;gap:10px}.face-exit-actions button{font-size:13px}.face-studio button:focus-visible,.face-dialog button:focus-visible,.face-studio a:focus-visible{outline:2px solid var(--rose-dark);outline-offset:3px}.face-studio button:hover:not(:disabled){filter:brightness(.98)}
@media(min-width:1500px){.face-editor{grid-template-columns:200px minmax(340px,1fr) 310px}.face-stage-wrap{height:620px}.face-preset-grid{gap:12px}.face-preset>small{display:block}.face-preset-grid{grid-template-columns:1fr}.face-preset{display:grid;grid-template-columns:65px 1fr;align-items:center}.face-preset canvas{grid-row:span 2}.face-preset>span,.face-preset>small{text-align:left;padding-left:8px}.face-directions{grid-template-columns:170px repeat(3,minmax(0,1fr))}}
@media(max-width:1100px) and (min-width:781px){.face-editor{grid-template-columns:120px minmax(210px,1fr) 235px;gap:9px}.face-presets,.face-controls{padding:12px}.face-section-title{flex-direction:column;align-items:flex-start}.face-preset-grid{grid-template-columns:1fr}.face-preset canvas{max-height:112px;object-fit:contain}.face-stage-wrap{height:570px}.face-slider{grid-template-columns:67px minmax(0,1fr) 20px;gap:5px}.face-view-tabs button{padding:5px 7px}.face-stage-tools{left:7px;right:7px;padding:4px}.face-stage-tools svg{width:16px}.face-round-btn{min-width:25px}.face-heading>div{display:block}.face-heading p{margin-top:4px}.face-directions{grid-template-columns:120px repeat(3,minmax(0,1fr))}}
@media(max-width:780px){.face-heading{gap:10px;margin-bottom:10px}.face-heading>div{display:block}.face-heading h1{font-size:25px}.face-heading p{font-size:10px;margin-top:5px}.face-heading a{font-size:10px}.face-heading a svg{width:14px}.face-sample-note{font-size:9px;padding:7px 10px;margin-bottom:12px}.face-editor{display:flex;flex-direction:column;gap:11px}.face-stage-wrap{order:0;height:360px;border-radius:13px}.face-stage-tag{top:10px;left:10px;font-size:9px}.face-stage-tools{left:10px;right:10px;bottom:10px;padding:5px}.face-presets{order:1;padding:10px;border-radius:12px}.face-section-title{margin-bottom:8px}.face-section-title h2{font-size:14px}.face-small-btn{font-size:9px;padding:4px 7px}.face-preset-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.face-preset canvas{height:85px;aspect-ratio:auto;object-fit:cover;object-position:center 35%}.face-preset>span{font-size:10px;padding:6px 0 3px}.face-preset-note{display:none}.face-controls{order:2;border-radius:12px;padding:13px}.face-tabs{margin-bottom:13px}.face-tabs [data-face-tab=presets]{display:block}.face-tabs button{font-size:12px;padding-bottom:11px}.face-control-panel{min-height:180px}.face-feature-tabs{margin-bottom:16px}.face-sliders{gap:15px}.face-slider{grid-template-columns:82px minmax(0,1fr) 24px;gap:12px;min-height:28px}.face-slider>span{font-size:12px}.face-slider-tip{margin-top:13px}.face-edit-tools{margin-top:8px;padding:12px 0}.face-current-card{margin-top:13px}.face-save-actions{margin-top:13px}.face-save-actions button{min-height:44px;font-size:12px}.face-generation-note{font-size:9px}.face-directions{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;padding:10px;margin-top:13px}.face-directions>div{grid-column:1/-1;padding:3px 2px}.face-directions h2{font-size:15px}.face-directions p{font-size:10px;margin-top:5px}.face-directions p br{display:none}.face-direction canvas{height:120px}.face-direction>span{left:4px;bottom:5px;padding:4px 5px}.face-direction b{font-size:9px}.face-direction small{font-size:8px}.face-dialog-backdrop{padding:13px}.face-dialog{padding:18px;border-radius:17px}.face-dialog-heading h2{font-size:21px}.face-dialog-note{font-size:11px}.face-preview-pair{gap:9px}.face-preview-pair figcaption{font-size:10px}.face-dialog-actions{gap:8px}.face-dialog-actions button{font-size:11px;padding:11px 8px}.face-hair-choices{margin-bottom:18px}.face-palette{margin-bottom:18px}}
.face-fitting-entry{display:flex;align-items:center;gap:12px}.face-fitting-entry .text-btn{white-space:nowrap;font-size:12px}
@media(prefers-reduced-motion:reduce){.face-loader{animation:none}.face-preset{transition:none}}
