:root{--paper:#f7f6f2;--ink:#293c35;--muted:#7a827b;--line:#e2e5dc;--sage:#6c8172;--deep:#354d41;--accent:#e7ece2;--warm:#eee9e0}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:14px/1.6 'Microsoft YaHei','PingFang SC',sans-serif}button,input{font:inherit}button{cursor:pointer;border:0;background:transparent;color:inherit;transition:background .18s,color .18s,box-shadow .18s}button:disabled{opacity:.32;cursor:default}button:focus-visible,input:focus-visible{outline:2px solid #718978;outline-offset:4px}button:hover:not(:disabled){background:var(--accent)}[hidden]{display:none!important}.app{min-height:100vh;display:flex;flex-direction:column}.topbar{height:94px;padding:0 42px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);gap:24px}.brand{display:flex;align-items:center;gap:12px;font-size:17px;letter-spacing:3px;min-width:215px}.brand-mark{font-family:'SimSun',serif;font-size:28px;border:1px solid #89978b;width:45px;height:45px;display:grid;place-items:center;border-radius:50%;padding-left:3px}.brand small{display:block;font-size:9px;letter-spacing:4.2px;color:var(--muted);margin-top:2px}.main-tabs{display:flex;gap:38px;height:100%;align-items:stretch}.main-tabs button{font-size:15px;position:relative;padding:0 10px;white-space:nowrap}.main-tabs button.active:after{content:'';height:3px;background:var(--deep);position:absolute;bottom:0;left:9px;right:9px}.main-tabs button.active{font-weight:600}.profile{display:flex;gap:10px;align-items:center;min-width:215px;justify-content:flex-end;font-size:12px}.prototype{font-size:10px;color:var(--muted);margin-right:8px}.profile-dot{width:6px;height:6px;background:#8b9a87;border-radius:50%}.workspace{display:grid;grid-template-columns:94px minmax(320px,1fr) 348px;min-height:660px;flex:1}.category-rail{border-right:1px solid var(--line);padding:35px 11px;display:flex;flex-direction:column;gap:10px}.category-rail button{padding:13px 0;border-radius:4px;font-size:12px;display:flex;gap:4px;flex-direction:column;align-items:center}.category-rail button.active{background:var(--deep);color:#f9faf6}.category-rail .nav-symbol{font:22px/1.2 'Georgia',serif;margin-bottom:3px;opacity:.9}.stage{position:relative;isolation:isolate;min-height:660px;background:radial-gradient(ellipse at 55% 48%,#fbfaf6 0,#efeee5 56%,#e8e9e1 100%);overflow:hidden}.stage:after{content:'';position:absolute;bottom:0;left:0;right:0;height:28%;background:linear-gradient(transparent,#d9ded22e);z-index:-1}.stage-arch{position:absolute;width:58%;height:82%;left:23%;top:14%;border:1px solid #d5d8ca;border-radius:50% 50% 0 0;box-shadow:-22px 3px 35px #b6c0ad12,inset 17px 3px 35px #bbc1b21c;z-index:-1;transform:rotate(-5deg)}.stage-heading{position:absolute;top:32px;left:35px;pointer-events:none;z-index:1}.stage-heading p{font:10px/1.5 Georgia,serif;letter-spacing:3px;color:#8a9182;margin:0 0 8px}.stage-heading h1{font-family:'SimSun','Songti SC',serif;font-size:21px;letter-spacing:2px;font-weight:400;margin:0;color:#687564}#viewport{position:absolute;width:100%;height:100%;display:block;touch-action:none}.stage-name{position:absolute;bottom:107px;left:34px;display:flex;align-items:flex-start;gap:12px;font-family:'SimSun',serif;font-size:23px;pointer-events:none;letter-spacing:3px}.name-line{width:30px;height:1px;background:#99a390;margin-top:18px}.stage-name small{font:10px/1.8 'Microsoft YaHei',sans-serif;letter-spacing:1px;display:block;color:#76836f;margin-top:10px}.camera-tools{position:absolute;right:22px;top:30px;display:flex;padding:4px;gap:2px;background:#fcfcf6ba;border:1px solid #fffffe;border-radius:25px;box-shadow:0 3px 10px #33432d08}.camera-tools button{font-size:11px;padding:6px 12px;border-radius:20px}.camera-tools button[aria-pressed=true]{background:#e1e7db;color:#334732}.stage-bottom{position:absolute;bottom:22px;left:26px;right:24px;display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:center}.gesture-hint{width:100%;text-align:center;color:#89927e;font-size:10px;letter-spacing:1px;margin-bottom:3px}.compare{padding:8px 13px;border:1px solid #bcc6b5;border-radius:3px;font-size:11px;background:#f8faf1d1;touch-action:none;user-select:none}.expressions{display:flex;background:#f8faf1d1;border:1px solid #d3d9ca;border-radius:3px;padding:3px}.expressions button{padding:4px 11px;font-size:11px;border-radius:2px}.expressions button[aria-pressed=true]{background:#dde5d7}.editor{background:#fbfcf8;border-left:1px solid var(--line);min-width:0}.editor-content{padding:37px 29px 24px}.eyebrow{font-family:Georgia,serif;font-size:10px;letter-spacing:2.5px;color:#8e9a89;margin:0 0 8px}.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:5px}.panel-heading h2{font-family:'SimSun',serif;font-weight:400;font-size:25px;letter-spacing:2px;margin:0}.item-count{font:11px Georgia,serif;color:#8d9a8b}.intro{font-size:11px;color:#82907d;line-height:1.8;margin:10px 0 28px}.control-group{margin-bottom:21px}.control-group .label-row{display:flex;justify-content:space-between;align-items:center;font-size:12px;margin-bottom:8px}.control-group output{font:12px/1.4 Georgia,serif;color:#687e66;min-width:32px;text-align:right;font-variant-numeric:tabular-nums}.control-group input[type=range]{appearance:none;-webkit-appearance:none;width:100%;height:3px;border-radius:0;background:linear-gradient(to right,#687f67 var(--fill,0%),#dce3d6 var(--fill,0%));display:block;margin:16px 0;cursor:pointer}.control-group input[type=range]::-webkit-slider-thumb{appearance:none;width:11px;height:11px;border:2px solid #536f52;border-radius:50%;background:#fbfcf7}.range-captions{display:flex;justify-content:space-between;color:#99a391;font-size:9px;margin-top:-7px}.subheading{font-size:12px;display:flex;justify-content:space-between;align-items:center;margin:23px 0 12px;font-weight:400}.subheading small{font-weight:400;color:#95a18f;font-size:10px}.panel-reset{width:100%;border:1px solid #dbe2d4;padding:10px;font-size:11px;margin-top:14px}.small-note{font-size:10px;line-height:1.9;color:#8b9685;margin:14px 0 0}.bottom-bar{height:86px;background:#fcfcf8;border-top:1px solid var(--line);display:flex;align-items:center;padding:0 40px;gap:24px}.history{display:flex;gap:10px}.history button{font-size:18px;padding:8px;white-space:nowrap}.history button span{font-size:11px;margin-left:5px}.change-state{font-size:11px;color:#8c9787;flex:1}.change-state.dirty{color:#657d5e}.change-state.dirty:before{content:'•';margin-right:8px}.commit-actions{display:flex;align-items:center;gap:20px}.quiet{font-size:12px;padding:10px 15px}.primary{background:var(--deep);color:#f4f7ef;padding:13px 30px;font-size:12px;letter-spacing:1px;border-radius:3px;box-shadow:0 5px 16px #29472c14}.primary:hover:not(:disabled){background:#47634f;color:#fff}.primary span{margin-left:22px}.swatches{display:grid;grid-template-columns:repeat(4,1fr);gap:15px 7px}.swatch{display:flex;align-items:center;flex-direction:column;gap:7px;font-size:10px;color:#7a8973;padding:7px 2px;border-radius:3px}.swatch .chip{width:36px;height:36px;border:4px solid #fbfcf8;background:var(--swatch);box-shadow:0 0 0 1px #dfe4d9;border-radius:50%}.swatch[aria-pressed=true] .chip{box-shadow:0 0 0 2px #7a9270}.swatch[aria-pressed=true]{color:#314b2e}.select-row{display:flex;gap:7px;flex-wrap:wrap}.select-row button{border:1px solid #dce3d6;padding:7px 12px;font-size:11px}.select-row button[aria-pressed=true]{background:#e4eddd;border-color:#94aa86;color:#34522f}.catalog{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 12px}.catalog-item{padding:0;text-align:left;border:1px solid #dfe5d8;border-radius:4px;overflow:hidden;background:#f1f4ec;position:relative}.catalog-item img{width:100%;height:155px;object-fit:cover;display:block;filter:brightness(1.08)}.catalog-item .item-copy{padding:9px 10px;display:block;background:#fbfcf6;font-size:11px;line-height:1.5}.catalog-item .item-copy small{display:block;color:#96a08d;font-size:9px;margin-top:2px}.catalog-item[aria-pressed=true]{border-color:#687f5c;box-shadow:0 0 0 1px #687f5c}.catalog-item[aria-pressed=true]:after{content:'✓';position:absolute;top:7px;right:7px;color:#fff;background:#536c48;border-radius:50%;width:18px;height:18px;text-align:center;line-height:18px;font-size:11px}.wardrobe-filter{display:flex;gap:14px;border-bottom:1px solid #e2e8dc;margin-bottom:20px}.wardrobe-filter button{padding:0 0 9px;font-size:11px;color:#87977b}.wardrobe-filter button.active{border-bottom:2px solid #536e44;color:#38532e}.hair-catalog .catalog-item img{height:136px;object-position:50% 13%}.empty-looks{padding:50px 8px;text-align:center;color:#879a7b}.empty-looks .empty-mark{font:50px Georgia,serif;color:#b1bda7}.empty-looks h3{font-weight:400;font-size:14px;color:#627858}.empty-looks p{font-size:11px;line-height:1.9}.saved-item{margin-bottom:16px}.saved-item .saved-preview{width:100%;height:155px;background:#edf1e5;object-fit:cover;border-radius:4px}.saved-meta{display:flex;justify-content:space-between;align-items:center;margin:7px 0;font-size:12px}.saved-actions{display:flex;gap:7px}.saved-actions button{border:1px solid #d6e0cf;padding:5px 10px;font-size:10px}.saved-date{color:#8c9c80;font-size:9px}.model-loading{position:absolute;inset:0;display:flex;justify-content:center;align-items:center;gap:14px;font-size:12px;color:#748568;background:#efefe7d9;z-index:3}.loading-ring{width:19px;height:19px;border:1px solid #becab3;border-top-color:#627d4f;border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.stage-error{position:absolute;inset:25% 15%;padding:25px;background:#fafbf5;border:1px solid #ced8c4;z-index:5;font-size:13px}.toast{position:fixed;bottom:103px;left:50%;transform:translateX(-50%);padding:11px 23px;border-radius:5px;background:#364f2fea;color:#fafdf5;font-size:12px;box-shadow:0 9px 32px #243d291a;z-index:10;max-width:calc(100% - 32px);text-align:center}dialog{border:1px solid #d3ddc8;padding:36px;border-radius:9px;max-width:calc(100% - 32px);width:430px;background:#fbfcf5;color:var(--ink);box-shadow:0 20px 80px #33472e22}dialog::backdrop{background:#2f452940;backdrop-filter:blur(3px)}dialog h2{font:22px/1.6 'SimSun',serif;font-weight:400;margin:8px 0 24px}dialog label{font-size:12px;display:block;margin-bottom:8px}dialog input{width:100%;padding:10px 12px;border:1px solid #cfdbc1;background:#fffef9;color:var(--ink);border-radius:3px}dialog .dialog-note{font-size:11px;color:#839575;line-height:1.9}.dialog-actions{display:flex;justify-content:flex-end;gap:15px;margin-top:26px}.dialog-actions button{padding:10px 19px;font-size:12px}@media(min-height:900px) and (min-width:1000px){.workspace{min-height:calc(100vh - 180px)}}@media(max-width:1100px){.topbar{padding:0 25px}.brand,.profile{min-width:175px}.main-tabs{gap:16px}.workspace{grid-template-columns:80px minmax(300px,1fr) 310px}.editor-content{padding:30px 22px}.stage-heading{left:25px}.stage-heading h1{font-size:18px}.camera-tools{top:100px}.bottom-bar{padding:0 24px}}@media(max-width:800px){.topbar{height:75px;padding:0 18px;gap:10px;flex-wrap:wrap}.brand{min-width:0;font-size:13px}.brand-mark{width:34px;height:34px;font-size:22px}.brand small{font-size:7px;letter-spacing:2px}.profile{display:none}.main-tabs{gap:4px}.main-tabs button{font-size:12px;padding:0 10px}.workspace{grid-template-columns:62px minmax(0,1fr);min-height:0}.category-rail{grid-row:1;padding:25px 6px;gap:5px}.category-rail button{font-size:10px;padding:12px 0}.category-rail .nav-symbol{font-size:20px}.stage{min-height:560px}.stage-heading{top:25px;left:23px}.stage-heading h1{font-size:16px}.stage-name{font-size:20px;left:22px;bottom:110px}.stage-name small{font-size:9px}.camera-tools{top:78px;right:15px}.stage-bottom{left:12px;right:12px;bottom:18px;gap:8px}.editor{grid-column:1/-1;border-top:1px solid var(--line);border-left:0}.editor-content{padding:25px 30px}.control-group{margin-bottom:23px}.editor .catalog{grid-template-columns:repeat(3,minmax(0,1fr))}.bottom-bar{height:auto;min-height:110px;padding:17px 20px;flex-wrap:wrap;gap:9px 18px}.history{gap:5px}.history button{padding:3px}.change-state{font-size:10px}.commit-actions{width:100%;justify-content:space-between}.commit-actions .primary{padding:12px 25px}.swatches{grid-template-columns:repeat(4,1fr)}.stage .expressions button{padding:5px 8px;font-size:10px}.compare{font-size:10px}.catalog-item img{height:160px}.toast{bottom:25px}}@media(max-width:420px){.brand{gap:7px;letter-spacing:1px}.topbar{padding:0 12px}.brand-mark{display:none}.main-tabs button{padding:0 8px}.editor-content{padding:25px 22px}.editor .catalog{grid-template-columns:repeat(2,minmax(0,1fr))}.stage{min-height:520px}.stage-heading h1{max-width:155px;line-height:1.7}.stage-heading p{font-size:8px;letter-spacing:2px}.camera-tools{top:100px}.stage-name{bottom:125px}.stage-bottom{gap:6px}.gesture-hint{font-size:9px}.expressions button{padding:4px 7px}.compare{padding:7px 8px}}@media(prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}

.nav-symbol svg{width:23px;height:23px;stroke-width:1.3;display:block;margin:0 auto}.label-row{font-size:13px!important}.intro{font-size:12px}.catalog-item .item-copy{font-size:12px}.small-note{font-size:11px}

.bilateral{position:relative}.bilateral .range-captions{position:relative}.bilateral .mid-caption{position:absolute;left:50%;transform:translateX(-50%)}.bilateral input[type=range]{background:linear-gradient(to right,#dce3d6 49.7%,#a9b6a2 49.7%,#a9b6a2 50.3%,#dce3d6 50.3%)}#pause-motion{font-size:10px;padding:8px 11px;color:#788570;border:1px solid #d3d9ca;border-radius:3px;background:#f8faf1d1}

/* Decorative copy belongs behind the transparent character canvas. */
.stage-heading,.stage-name{z-index:0;pointer-events:none}#viewport{z-index:1}.camera-tools,.stage-bottom{z-index:2}

.brand{text-decoration:none;color:inherit}
