.mask-editor.canvas-fit-editor,.comparison.canvas-fit-comparison{display:flex;flex:1 1 0;flex-direction:column;align-self:stretch;width:100%;height:100%;min-width:0;min-height:0;max-width:none;max-height:100%}.canvas-fit-editor>.mask-editor-head,.canvas-fit-editor>.mask-toolbar,.canvas-fit-editor>.mask-footer,.canvas-fit-editor>.mask-error,.canvas-fit-comparison>.compare-modes,.canvas-fit-comparison>.field-hint{flex:0 0 auto}.canvas-fit-editor .mask-viewport,.canvas-fit-comparison .compare-viewport{position:relative;flex:1 1 0;min-width:0;min-height:0;max-width:100%;max-height:none}.canvas-fit-editor .mask-viewport{overflow:auto;overscroll-behavior:contain}.canvas-fit-editor .mask-scroll-space{display:grid;place-items:center;min-width:100%;min-height:100%}.canvas-fit-editor .mask-stage{position:relative;flex:none;margin:0;line-height:0}.canvas-fit-editor .mask-stage>img{display:block;width:100%;height:100%;max-width:none;object-fit:contain;-webkit-user-select:none;user-select:none}.canvas-fit-editor .mask-loading{position:absolute;inset:0;display:grid;place-items:center}.canvas-fit-comparison .compare-viewport{width:100%;align-self:stretch;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr);place-items:center;overflow:hidden}.canvas-fit-comparison .ab-grid{width:100%;height:100%;min-height:0;align-items:stretch}.canvas-fit-comparison .ab-grid>figure{display:flex;flex-direction:column;min-width:0;min-height:0}.canvas-fit-comparison .ab-grid figcaption{flex:0 0 auto}.canvas-fit-comparison .ab-image{flex:1 1 0;min-height:0;aspect-ratio:auto}.canvas-fit-comparison .ab-image img{width:100%;height:100%;min-height:0;object-fit:contain}.canvas-fit-comparison .compare-stage{flex:none;min-width:0;min-height:0;max-width:100%;max-height:100%;margin:0}.canvas-fit-comparison>.compare-modes{margin-bottom:10px;max-width:100%}.canvas-fit-comparison>.field-hint{margin-top:8px}@media(max-width:740px){.canvas-fit-editor>.mask-editor-head{margin-bottom:7px}.canvas-fit-editor>.mask-toolbar{margin-bottom:7px}.canvas-fit-editor>.mask-footer{padding-top:7px}}@media(max-width:420px){.studio-page .canvas-fit-comparison>.compare-modes{width:100%}.studio-page .canvas-fit-comparison>.compare-modes button{flex:1;min-width:0;padding:7px 4px;justify-content:center}.studio-page .canvas-fit-comparison>.compare-modes button svg{display:none}}.press-compare{position:relative;flex:1 1 0;align-self:stretch;width:100%;height:100%;min-width:0;min-height:0;overflow:hidden;isolation:isolate}.press-compare>.press-compare-image{position:absolute;inset:0;display:block;width:100%;height:100%;max-width:none;max-height:none;object-fit:contain;object-position:center;pointer-events:none;user-select:none;-webkit-user-select:none;transition:none}.press-compare .press-compare-before,.press-compare.is-showing-before .press-compare-after{opacity:0;visibility:hidden}.press-compare .press-compare-after,.press-compare.is-showing-before .press-compare-before{opacity:1;visibility:visible}.press-compare>.press-compare-button{position:absolute;z-index:1;bottom:12px;left:50%;transform:translate(-50%);display:inline-flex;align-items:center;justify-content:center;min-width:124px;min-height:40px;padding:9px 18px;border:1px solid #ffffff66;border-radius:22px;background:#604278e6;box-shadow:0 3px 14px #35234126;color:#fff;font-size:13px;font-weight:500;line-height:1.3;white-space:nowrap;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}.press-compare>.press-compare-button[aria-pressed=true]{background:#49305eef}.press-compare>.press-compare-button:focus-visible{outline:3px solid #b8a4e9;outline-offset:3px}.studio-page.has-result-view .canvas-body{background:#f7f6f9}.studio-page.has-result-view .ab-image,.studio-page.has-result-view .compare-stage,.studio-page.has-result-view .compare-before img{background:#f1f0f4}.studio-page .canvas-header:has(.canvas-expand-button){display:grid;grid-template-columns:minmax(0,1fr) max-content;align-items:center;gap:10px;height:auto;min-height:48px;padding:6px 12px}.studio-page .canvas-header:has(.canvas-expand-button) .canvas-tabs{display:flex;align-items:center;flex-wrap:wrap;min-width:0;min-height:34px;height:auto;gap:0 12px}.studio-page .canvas-header:has(.canvas-expand-button) .canvas-tabs button{flex:0 0 auto;min-width:0;max-width:100%;height:34px;white-space:nowrap}.studio-page .canvas-expand-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:34px;min-height:34px;margin:0;padding:7px 10px;border:1px solid #cbb6df;border-radius:8px;background:#f4edfc;color:#65418e;font-size:13px;font-weight:550;line-height:18px;white-space:nowrap;box-shadow:0 1px 4px #68458b08}.studio-page .canvas-expand-button svg{flex-shrink:0;width:16px;height:16px}.studio-page .canvas-expand-button:hover{border-color:#a482c3;background:#eadff6;color:#56317d}.studio-page.is-canvas-expanded .canvas-expand-button{border-color:#b294cc;background:#eae0f6;color:#5d3585}.studio-page.is-canvas-expanded>.studio-toolbar,.studio-page.is-canvas-expanded>.generation-bar,.studio-page.is-canvas-expanded .settings-panel{display:none}.studio-page.is-canvas-expanded .studio-grid,.studio-page.is-canvas-expanded .canvas-panel{min-width:0;max-width:100%}.studio-page.has-result-view .result-actions{flex-shrink:0}@media(min-width:901px){.studio-page.has-result-view .studio-grid{grid-template-columns:clamp(300px,24vw,320px) minmax(0,1fr);gap:12px}.studio-page.has-result-view .setting-content{min-width:0;padding-inline:14px}.studio-page.has-result-view .settings-panel .region-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.studio-page.has-result-view .settings-panel .region-grid button{min-width:0;padding-inline:3px;gap:3px;white-space:normal;overflow-wrap:anywhere}.studio-page.is-canvas-expanded{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr);height:calc(100dvh - var(--topbar-height, 44px));min-height:0;padding:10px 16px 12px;gap:0;overflow:hidden}.studio-page.is-canvas-expanded .studio-grid{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr);width:100%;height:100%;min-height:0;gap:0;overflow:hidden}.studio-page.is-canvas-expanded .canvas-panel{display:flex;flex-direction:column;width:100%;height:100%;min-height:0;overflow:hidden}.studio-page.is-canvas-expanded .canvas-body,.studio-page.is-canvas-expanded .canvas-body:has(.comparison),.studio-page.is-canvas-expanded .canvas-body:has(.result-view){flex:1 1 0;height:auto;min-height:0;max-height:none;padding:10px 12px;overflow:hidden}.studio-page.is-canvas-expanded .canvas-header,.studio-page.is-canvas-expanded .result-actions{flex:0 0 auto}}@media(max-width:900px){.studio-page.has-result-view .canvas-body:has(.comparison),.studio-page.has-result-view .canvas-body:has(.result-view){height:clamp(400px,72dvh,800px);min-height:0;max-height:none;overflow:hidden}.studio-page.is-canvas-expanded{display:block;height:auto;min-height:0;padding:12px 14px 18px;overflow:visible}.studio-page.is-canvas-expanded .studio-grid{display:block;height:auto;min-height:0;overflow:visible}.studio-page.is-canvas-expanded .canvas-panel{width:100%;height:auto;min-height:0;overflow:hidden}.studio-page.is-canvas-expanded .canvas-body,.studio-page.is-canvas-expanded .canvas-body:has(.comparison),.studio-page.is-canvas-expanded .canvas-body:has(.result-view){flex:0 0 auto;height:clamp(440px,85dvh,1100px);min-height:0;max-height:none;overflow:hidden}}@media(max-width:740px){.studio-page .canvas-header:has(.canvas-expand-button){min-height:46px;padding:5px 10px;gap:6px}.studio-page .canvas-header:has(.canvas-expand-button) .canvas-tabs{gap:0 8px}.studio-page .canvas-header:has(.canvas-expand-button) .canvas-tabs button{height:34px;gap:4px;font-size:12px}.studio-page .canvas-header:has(.canvas-expand-button) .canvas-tabs button svg{width:13px;height:13px}.studio-page .canvas-expand-button{width:34px;height:34px;padding:8px;gap:0}.studio-page .canvas-expand-button>span{display:none}.studio-page.is-canvas-expanded .canvas-body,.studio-page.is-canvas-expanded .canvas-body:has(.comparison),.studio-page.is-canvas-expanded .canvas-body:has(.result-view){padding:10px}}:root{font-family:Inter,PingFang SC,Microsoft YaHei,sans-serif;color:#292735;background:#f7f7fb;font-synthesis:none;font-weight:400;--accent:#7760bf;--accent-dark:#6650ab;--lavender:#f0ebfa;--muted:#95909f;--border:#eae7f0;--ink:#292735}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.48;cursor:not-allowed}button,a{transition:background .16s,color .16s,border-color .16s,box-shadow .16s}button{border:0;background:none;color:inherit}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #b8a4e9;outline-offset:3px}h1,h2,h3,p{margin:0}input,select,textarea{border:1px solid var(--border);border-radius:9px;background:#fff;color:var(--ink);padding:11px 12px;width:100%;outline:none;font-size:13px}input:focus,select:focus,textarea:focus{border-color:#a892d5}textarea{line-height:1.8;resize:vertical}select{cursor:pointer}input::placeholder,textarea::placeholder{color:#aaa5b3}small{font-size:11px}.app-shell{display:flex;min-height:100vh}.sidebar{width:212px;flex-shrink:0;background:#fff;border-right:1px solid var(--border);padding:31px 18px 24px;position:fixed;inset:0 auto 0 0;display:flex;flex-direction:column;z-index:10}.brand{display:flex;align-items:center;gap:10px;margin:0 8px 45px;font-size:21px;font-weight:650;letter-spacing:1px;white-space:nowrap}.brand-symbol{background:#7660b5;color:#fff;width:39px;height:42px;border-radius:13px;display:grid;place-items:center;box-shadow:0 5px 15px #7760bf22}.brand small{display:block;font-size:8px;letter-spacing:1.6px;margin-top:5px;font-weight:500;color:#9990a9}.nav-caption{color:#aaa3b1;font-size:10px;letter-spacing:1.5px;margin:0 13px 12px}.nav-item{display:flex;align-items:center;gap:11px;min-height:44px;padding:12px 13px;border-radius:9px;width:100%;text-align:left;margin-bottom:5px;font-size:13px;color:#7b7487}.nav-item.active{background:var(--lavender);color:var(--accent);font-weight:600}.nav-item:hover,.tool-nav:hover{background:#f7f4fc}.nav-dot{width:5px;height:5px;border-radius:50%;background:var(--accent);margin-left:auto}.nav-count{margin-left:auto;font-size:11px;color:#aaa3b1}.tool-caption{margin-top:35px}.tool-nav{display:flex;align-items:center;gap:11px;padding:12px 13px;border-radius:9px;font-size:12px;color:#817a8a;text-align:left;margin:2px 0}.tool-nav.selected{color:#7054b2;background:#faf8fd}.small-tag{margin-left:auto;background:#f3eef9;border:1px solid #e5dbf3;color:#a28bbf;padding:2px 4px;font-size:8px;border-radius:3px}.sidebar-bottom{margin-top:auto;padding-top:35px}.engine-card{display:flex;align-items:center;gap:8px;border:1px solid #ebe5f4;border-radius:11px;padding:13px 10px;background:linear-gradient(110deg,#f9f6fe,#f5f8fc);font-size:10px}.engine-card strong{font-size:11px;font-weight:600}.engine-card small{display:block;font-size:9px;color:#a49aad;margin-top:5px}.engine-card>svg{margin-left:auto;color:#b2a5c7}.engine-orb{width:23px;height:23px;border-radius:50%;background:radial-gradient(circle at 30% 25%,#fff 0,#c6b4e8 35%,#a08acb 80%);box-shadow:0 2px 6px #c2b2df55}.help-link{display:flex;align-items:center;gap:9px;width:100%;margin-top:21px;font-size:11px;color:#8c8398;padding:6px}.help-link svg:last-child{margin-left:auto}.sidebar-foot{font-size:8px;color:#b4aebb;display:block;margin-top:19px;text-align:center}.main-shell{margin-left:212px;width:calc(100% - 212px)}.topbar{height:73px;background:#fff9;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;padding:0 35px;gap:20px}.breadcrumbs{font-size:11px;color:#a29ba9;white-space:nowrap}.breadcrumbs span{margin:0 13px;color:#c9c3ce}.breadcrumbs strong{font-weight:500;color:#5e566a}.topbar-actions{display:flex;align-items:center;gap:18px}.private-label{display:flex;align-items:center;gap:5px;font-size:10px;color:#aaa1b5}.connection{display:flex;gap:7px;align-items:center;background:#fff;border:1px solid var(--border);padding:9px 12px;border-radius:8px;font-size:11px;color:#82768f}.connection>span{background:#c4bbc9;width:5px;height:5px;border-radius:50%}.connection.connected>span{background:#7aa58b}.connection:hover{border-color:#b8a7d3}.avatar{background:#eae4f5;border:3px solid white;width:32px;height:32px;display:grid;place-items:center;border-radius:50%;font-size:11px;color:#8f77b5}main{padding:31px 35px 0;max-width:1640px;margin:auto}.intro{display:flex;align-items:center;justify-content:space-between;margin-bottom:27px;gap:20px}.eyebrow{font-size:9px;color:#aa9abf;letter-spacing:1.8px;margin-bottom:11px}.intro h1{font-size:26px;letter-spacing:.4px;font-weight:600;line-height:1.4}.intro h1 span{color:#8e79b1}.intro p{color:#9b93a4;font-size:12px;margin-top:10px}.quiet-button,.primary{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 15px;border-radius:8px;white-space:nowrap;font-size:12px}.quiet-button{border:1px solid var(--border);background:#fff;color:#8c819b}.quiet-button:hover{border-color:#c8b8df;background:#fcfaff}.primary{background:var(--accent);color:#fff;border:1px solid var(--accent);font-weight:500}.primary:hover{background:var(--accent-dark)}.workflow{display:flex;align-items:center;gap:12px;margin-bottom:21px;padding:0 2px}.workflow>span{display:flex;align-items:center;gap:7px;font-size:10px;color:#b2aaba}.workflow b{display:grid;place-items:center;width:19px;height:19px;border-radius:50%;background:#eeebf2;font-size:9px;font-weight:500}.workflow .current,.workflow .done{color:#8971ae}.workflow .current b{background:#e9def8}.workflow .done b{background:#7d68b6;color:#fff}.workflow i{width:30px;border-top:1px solid #ded7e8}.workflow-note{margin-left:auto;color:#b8aebe;font-size:10px}.studio-grid{display:grid;grid-template-columns:325px minmax(0,1fr);align-items:start;gap:20px}.panel{background:#fff;border:1px solid var(--border);border-radius:13px;box-shadow:0 4px 18px #34204703}.panel-title{display:flex;gap:10px;align-items:center;padding:20px 20px 17px;border-bottom:1px solid #f1edf5}.section-icon{display:grid;place-items:center;background:#f4effb;color:#9277bd;width:35px;height:35px;border-radius:10px;flex-shrink:0}.panel-title h2{font-size:14px;font-weight:600}.panel-title p{font-size:10px;color:#aaa0b2;margin-top:4px}.panel-title>.icon-button{margin-left:auto}.icon-button{display:inline-flex;align-items:center;justify-content:center;color:#a396ad;padding:6px;border-radius:6px;flex-shrink:0}.icon-button:hover{background:#f2edf9;color:#7c5ca9}.setting-content{padding:19px 20px}.field-title{display:flex;align-items:center;justify-content:space-between;font-size:12px;font-weight:550;margin:0 0 10px}.field-title>span{font-size:10px;font-weight:400;color:#a89bb4}.field-hint{font-size:10px;color:#a59cad;line-height:1.75;margin-top:9px}.section-gap{margin-top:24px}.region-search{font-size:11px;padding:9px 10px;background:#fcfbfe}.region-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;max-height:171px;overflow:auto;margin:10px 0 12px;padding-right:2px;scrollbar-width:thin;scrollbar-color:#ded5e8 transparent}.region-grid button{font-size:10px;border:1px solid #ece8f0;min-height:31px;border-radius:6px;color:#8d819b;display:flex;align-items:center;justify-content:center;gap:3px;padding:5px 3px}.region-grid button:hover{border-color:#bca5d9}.region-grid button.selected{background:#f3edfb;color:#8a62b5;border-color:#c5afdf}.region-details{border-top:1px solid #f1edf5}.region-details details{border-bottom:1px solid #f1edf5}.region-details summary{list-style:none;display:flex;align-items:center;gap:7px;cursor:pointer;padding:11px 1px;font-size:11px;color:#816d9c}.region-details summary small{margin-left:auto;font-size:9px;color:#b2a6bc}.region-details textarea{font-size:11px;margin-bottom:10px}.segmented{display:flex;background:#f7f5f9;border:1px solid #eeebf2;border-radius:8px;padding:3px;gap:3px}.segmented button{flex:1;font-size:11px;color:#a398af;padding:8px 3px;white-space:nowrap;border-radius:5px}.segmented button.selected{color:#8765b1;background:#fff;box-shadow:0 2px 5px #4632530c}.angles{gap:0}.angles button{font-size:9px}.recommended-dot{display:inline-block;width:4px;height:4px;margin-left:5px;vertical-align:middle;border-radius:50%;background:#bea4d8}.two-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:21px}.two-fields label{font-size:11px;color:#81738f}.two-fields select{font-size:11px;margin-top:10px;padding:9px 8px}.prompt-toggle{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #eee8f4;margin-top:20px;padding:17px 0 10px;width:100%;font-size:11px;color:#9684ac}.prompt-toggle>span{display:flex;gap:6px;align-items:center}.prompt-toggle b{font-size:8px;font-weight:400;padding:3px;background:#f1e9fa;border-radius:3px}.rotated{transform:rotate(180deg)}.prompt-editor p{font-size:10px;line-height:1.8;color:#a292b0;margin:2px 0 9px}.prompt-editor textarea{font-size:10px;background:#faf8fd}.prompt-editor>div{display:flex;justify-content:space-between;margin:8px 0}.text-button{font-size:10px;color:#947bab;display:inline-flex;align-items:center;gap:5px;padding:4px 0}.text-button:hover{color:#6c449b}.save-preset{display:flex;align-items:center;justify-content:center;gap:7px;font-size:11px;width:100%;border:1px dashed #ddd1e9;border-radius:8px;color:#9a85ad;padding:12px;margin-top:12px}.save-preset:hover{background:#faf7fe;border-color:#b7a1ce}.canvas-panel{overflow:hidden;position:sticky;top:18px}.canvas-header{display:flex;align-items:center;justify-content:space-between;padding:0 20px;height:68px;border-bottom:1px solid #eeeaf4}.canvas-tabs{display:flex;align-items:center;gap:22px;height:100%}.canvas-tabs button{height:100%;font-size:11px;color:#a398af;display:flex;align-items:center;gap:6px;position:relative;padding:0}.canvas-tabs button.selected{color:#8161ab;font-weight:550}.canvas-tabs button.selected:after{content:"";position:absolute;bottom:0;height:2px;border-radius:2px;background:#9672c7;left:0;right:0}.canvas-tabs button span{background:#f3edf9;color:#a181bf;border-radius:4px;padding:1px 5px;font-size:8px}.canvas-model{display:flex;align-items:center;gap:4px;font-size:9px;color:#aea1bb}.canvas-model>span{width:4px;height:4px;border-radius:50%;background:#ad97c4}.canvas-body{background:radial-gradient(ellipse at 50% 40%,#fbfafd,#f8f8fc 75%);min-height:525px;padding:18px;display:flex;align-items:center;justify-content:center}.canvas-body.drag-over{box-shadow:inset 0 0 0 3px #b9a1d7;background:#f0eafa}.upload-empty{text-align:center;display:flex;align-items:center;flex-direction:column;justify-content:center;padding:20px 0;max-width:100%}.face-art{color:#c1b2d4;width:153px;height:165px;position:relative;margin-bottom:26px;background:radial-gradient(ellipse,#ece6f5aa,transparent 70%)}.face-art svg{width:100%;height:100%;opacity:.7}.scan-corner{position:absolute;width:18px;height:18px;border-color:#d8cee7;border-style:solid;opacity:.7}.scan-corner.a{top:1px;left:0;border-width:1px 0 0 1px;border-radius:5px 0 0}.scan-corner.b{top:1px;right:0;border-width:1px 1px 0 0;border-radius:0 5px 0 0}.scan-corner.c{bottom:1px;left:0;border-width:0 0 1px 1px;border-radius:0 0 0 5px}.scan-corner.d{bottom:1px;right:0;border-width:0 1px 1px 0;border-radius:0 0 5px}.upload-empty h3,.result-empty h3{font-size:17px;font-weight:500;letter-spacing:.3px;margin:0 0 12px}.upload-empty p,.result-empty p{font-size:11px;line-height:1.9;color:#ada3b9}.upload-button{margin:24px 0 13px;padding:12px 23px;box-shadow:0 5px 15px #9b7aca21}.upload-meta{font-size:9px;color:#b9afc1}.photo-tips{margin-top:40px;display:flex;gap:19px;color:#aaa0b5;font-size:9px}.photo-tips span{display:flex;align-items:center;gap:4px}.photo-tips svg{color:#b5a5c7}.optional-note{margin-top:16px!important;font-size:10px!important}.canvas-bottom{display:flex;align-items:center;justify-content:center;gap:6px;border-top:1px solid #f0ecf5;padding:15px;color:#b8adbf;font-size:9px}.reference-tray{display:flex;align-items:center;gap:10px;padding:14px 18px;border-top:1px solid var(--border)}.reference-thumb{height:62px;width:54px;position:relative;flex-shrink:0}.reference-thumb img{width:100%;height:100%;object-fit:cover;border-radius:6px;border:1px solid #ddd0ea}.reference-thumb>span{position:absolute;bottom:0;left:0;right:0;text-align:center;background:#3e2b5d80;color:#fff;font-size:8px;border-radius:0 0 6px 6px;padding:2px}.reference-thumb button{position:absolute;right:-4px;top:-4px;background:#9174b3;color:#fff;border:2px solid white;border-radius:50%;padding:1px;display:flex}.add-reference{border:1px dashed #d7c9e5;border-radius:7px;height:62px;min-width:60px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:4px;color:#ad97c3;font-size:8px}.reference-tray>p{font-size:9px;line-height:1.9;color:#b5a8c0;margin-left:auto;text-align:right}.result-empty{display:flex;flex-direction:column;align-items:center;text-align:center;padding:35px;gap:17px;color:#bdacd0;max-width:420px}.result-empty h3{color:#766387;margin-bottom:0}.result-empty p{color:#a695b4}.result-view{width:100%;display:flex;flex-direction:column;align-items:center;gap:15px}.result-image{display:block;max-width:100%;height:auto;max-height:550px;object-fit:contain;border-radius:7px}.result-meta{width:100%;display:flex;justify-content:space-between;color:#a391b2;gap:10px;font-size:9px}.result-meta>span{display:flex;align-items:center;gap:5px}.result-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:14px 18px;border-top:1px solid var(--border)}.result-actions .quiet-button,.result-actions .primary{padding:9px 10px;font-size:10px}.generation-orbit{border-radius:50%;width:100px;height:100px;display:grid;place-items:center;background:radial-gradient(circle,#ebe3f6,#faf8fe);border:1px solid #e4d7f1;box-shadow:0 0 0 15px #f1eaf833;animation:breathe 3s ease-in-out infinite}.status-pill{display:inline-flex;align-items:center;gap:6px;border-radius:20px;font-size:10px;background:#f1eaf8;padding:8px 13px}.generation-bar{display:flex;align-items:center;justify-content:space-between;gap:20px;background:#fff;border:1px solid var(--border);border-radius:12px;padding:15px 20px;margin-top:21px;position:sticky;bottom:12px;z-index:5;box-shadow:0 8px 35px #4a2d6d0b}.output-settings{display:flex;align-items:center;gap:15px}.output-settings label{display:flex;align-items:center;gap:7px;font-size:10px;color:#a698b3;white-space:nowrap}.output-settings select{border:none;background:#f8f5fc;font-size:10px;padding:8px;color:#8b739f;width:auto}.output-count{font-size:9px;color:#b4a7bf}.generate-group{display:flex;align-items:center;gap:18px}.generate-group strong{display:block;font-size:10px;font-weight:500;color:#8c789d;text-align:right}.generate-group small{display:block;font-size:8px;color:#b3a5be;margin-top:5px;text-align:right}.generate-button{padding:13px 19px;font-size:12px;box-shadow:0 5px 15px #8e6db422}.generate-button svg:last-child{margin-left:8px}footer{padding:24px 0 20px;text-align:center;font-size:9px;color:#bbb2c5}footer span{margin:0 8px}.comparison{width:100%;display:flex;align-items:center;flex-direction:column}.compare-stage{position:relative;width:min(100%,390px);max-height:560px;overflow:hidden;background:#eeebf2;border-radius:8px}.compare-stage>img,.compare-before{position:absolute;width:100%;height:100%;inset:0;object-fit:contain}.compare-before img{width:100%;height:100%;object-fit:contain;background:#eeebf2}.compare-line{position:absolute;top:0;bottom:0;border-left:2px solid #fff;pointer-events:none;filter:drop-shadow(0 0 2px #0005)}.compare-line svg{position:absolute;top:48%;left:-16px;color:#786493;background:#fff;border-radius:50%;padding:6px;box-sizing:content-box}.compare-stage input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:ew-resize;padding:0}.compare-label{position:absolute;bottom:14px;background:#30233f80;color:#fff;font-size:9px;border-radius:5px;padding:6px 9px;pointer-events:none}.compare-label.before{left:12px}.compare-label.after{right:12px}.gallery,.saved-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.job-card{overflow:hidden}.job-preview{padding:0;width:100%;height:245px;background:#f5f1fa;display:block}.job-preview>img{width:100%;height:100%;object-fit:cover}.job-preview>div{display:flex;align-items:center;justify-content:center;height:100%;flex-direction:column;gap:15px;color:#a68abf;font-size:12px}.job-info{padding:16px}.job-info h3{font-size:13px;font-weight:550}.job-info p{font-size:9px;color:#aa9cb6;margin-top:8px}.job-info>div{display:flex;gap:13px;margin-top:13px}.job-info .icon-button{margin-left:auto}.collection-empty{padding:75px 25px;display:flex;align-items:center;flex-direction:column;gap:18px;color:#ac96c2}.collection-empty h3{font-weight:500;color:#7f6992;font-size:18px}.collection-empty p{font-size:12px;color:#aa9cb6;text-align:center}.saved-card{padding:25px}.saved-card h3{font-size:16px;margin:20px 0 10px}.saved-card p{font-size:11px;color:#ae9fba}.saved-card>div:last-child{display:flex;justify-content:space-between;margin-top:25px}.modal-backdrop{position:fixed;inset:0;background:#29203955;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);display:flex;align-items:center;justify-content:center;padding:22px;z-index:100}.modal{background:#fff;border:1px solid #eee7f6;box-shadow:0 20px 80px #2a183a22;border-radius:19px;padding:35px;width:460px;max-width:100%;max-height:90vh;overflow:auto;position:relative;outline:none}.modal-close{position:absolute;right:17px;top:16px}.modal-emblem{display:grid;place-items:center;background:var(--lavender);color:var(--accent);width:46px;height:46px;border-radius:14px;margin-bottom:22px}.modal h2{font-size:22px;font-weight:550;margin-bottom:12px}.muted{color:#ac9eb8;font-size:12px;line-height:1.8}.modal form{margin-top:25px}.full{width:100%;margin-top:21px}.api-link{font-size:10px;color:#a08bb3;display:flex;align-items:center;justify-content:center;gap:5px;margin-top:22px}.connection-summary{display:flex;gap:14px;align-items:center;border:1px solid #e3d6ed;padding:20px;border-radius:12px;margin-top:25px;color:#9a78b4}.connection-summary strong{font-size:13px}.connection-summary p{font-size:10px;color:#b09bbf;margin-top:6px}.job-prompt{font-size:11px;margin-top:12px;background:#faf8fc}.help-steps{padding-left:18px;margin:25px 0 10px;color:#866d9c}.help-steps li{padding-left:6px;margin-bottom:20px;font-size:13px}.help-steps b{font-weight:550}.help-steps p{font-size:11px;line-height:1.9;margin-top:7px;color:#a695b2}.help-note{padding:13px;background:#f7f2fb;border-radius:8px;color:#a48ab6;font-size:10px;line-height:1.8}.error-banner{position:fixed;bottom:27px;left:50%;transform:translate(-50%);z-index:150;border:1px solid #e8cece;background:#fff9f9;box-shadow:0 8px 35px #4d1c2015;padding:14px 18px;display:flex;align-items:center;gap:11px;border-radius:10px;width:max-content;max-width:90vw;color:#a2646b;font-size:12px}.error-banner>svg{flex-shrink:0}.error-banner button{display:flex;color:#b8888d}.toast{position:fixed;top:86px;left:50%;transform:translate(-50%);z-index:140;display:flex;align-items:center;gap:9px;background:#fff;border:1px solid #e4d7f0;box-shadow:0 5px 30px #3d204b15;border-radius:10px;padding:13px 21px;font-size:12px;color:#9472aa;max-width:90vw}.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}.spin{animation:spin 1.3s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}@keyframes breathe{50%{box-shadow:0 0 0 21px #f1eaf833;opacity:.7}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}@media(min-width:1550px){.studio-grid{grid-template-columns:360px minmax(0,1fr)}.canvas-body{min-height:620px}.canvas-panel{max-width:940px}.region-grid{max-height:208px}.intro h1{font-size:30px}}@media(max-width:1200px){.sidebar{width:185px;padding:27px 12px}.main-shell{margin-left:185px;width:calc(100% - 185px)}.brand{font-size:19px;gap:7px;margin-left:5px}.brand-symbol{width:33px;height:36px}.brand small{font-size:7px}.topbar{padding:0 25px}.private-label{display:none}main{padding:26px 24px 0}.studio-grid{grid-template-columns:295px minmax(0,1fr);gap:15px}.setting-content,.panel-title{padding:17px}.canvas-header{padding:0 14px}.canvas-model{display:none}.canvas-tabs{gap:16px}.canvas-body{padding:13px}.photo-tips{gap:10px;font-size:8px}.generation-bar{padding:13px 15px;gap:10px}.generate-group>div{display:none}.output-settings{gap:10px}.output-count{display:none}.intro h1{font-size:24px}.gallery{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:980px){.sidebar{width:75px;padding:25px 11px}.brand{margin:0 auto 34px}.brand>span:last-child,.nav-caption,.nav-item:not(.active) .nav-count,.nav-count,.nav-dot,.small-tag,.sidebar-bottom,.tool-nav{display:none}.nav-item{font-size:0;width:47px;height:44px;justify-content:center;padding:10px;margin-bottom:10px}.nav-item svg{width:20px;height:20px}.main-shell{margin-left:75px;width:calc(100% - 75px)}.intro .quiet-button,.workflow-note{display:none}.studio-grid{grid-template-columns:280px minmax(0,1fr)}.intro h1{font-size:22px}.canvas-body{min-height:505px}.upload-empty h3{font-size:14px}.photo-tips{flex-wrap:wrap;justify-content:center;max-width:240px}.canvas-tabs button{font-size:10px}.canvas-tabs{gap:14px}.result-actions{flex-wrap:wrap}.saved-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:740px){.sidebar{inset:auto 0 0;width:100%;height:62px;flex-direction:row;justify-content:space-around;align-items:center;padding:7px 12px;border-top:1px solid var(--border);border-right:0;z-index:15}.brand{display:none}.nav-item{width:auto;min-width:84px;height:47px;flex-direction:column;gap:4px;font-size:9px;margin:0;padding:7px 12px}.nav-item svg{width:17px;height:17px}.nav-item.active{background:#f4effb}.main-shell{margin-left:0;width:100%;padding-bottom:63px}.topbar{height:60px;padding:0 17px}.breadcrumbs{font-size:10px}.breadcrumbs span{margin:0 7px}.avatar{display:none}.topbar-actions{gap:8px}.connection{font-size:9px;padding:8px}.connection svg{width:12px}main{padding:23px 16px 0}.intro{margin-bottom:23px}.eyebrow{font-size:8px;letter-spacing:1.4px}.intro h1{font-size:22px;line-height:1.55}.intro h1 span{display:block}.intro p{font-size:10px;line-height:1.8;max-width:270px;margin-top:8px}.workflow{margin-bottom:17px}.studio-grid{display:flex;flex-direction:column;gap:16px}.settings-panel{width:100%;order:2}.canvas-panel{width:100%;position:static;order:1}.canvas-body{min-height:390px;padding:15px}.canvas-header{height:54px;padding:0 18px}.canvas-tabs button{font-size:11px}.face-art{width:116px;height:127px;margin-bottom:22px}.upload-empty{padding:17px 0}.upload-empty h3{font-size:16px}.upload-empty p{font-size:10px}.photo-tips{max-width:none;gap:16px;margin-top:28px}.upload-button{margin-top:20px}.setting-content{padding:20px}.panel-title{padding:19px 20px}.region-grid{grid-template-columns:repeat(4,1fr);max-height:179px}.region-grid button{font-size:10px}.angles button{font-size:11px}.generation-bar{position:sticky;bottom:71px;padding:11px;flex-wrap:wrap;gap:10px;margin-top:17px;z-index:12}.output-settings{flex:1;gap:10px}.output-settings label{font-size:9px;gap:5px}.output-settings select{font-size:9px;padding:8px 4px}.generate-button{font-size:11px;padding:11px 12px;gap:6px}.generate-button svg:last-child{display:none}.generate-button svg{width:15px}.output-count{display:none}.gallery,.saved-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.job-preview{height:190px}.job-info{padding:12px}.job-info h3{font-size:12px}.job-info>div{gap:7px;flex-wrap:wrap}.job-info p{font-size:8px}.job-info .text-button{font-size:9px}.saved-card{padding:17px}.saved-card h3{font-size:14px}.saved-card>div:last-child{flex-wrap:wrap;gap:9px}.saved-card .primary{padding:8px;font-size:10px}.intro>.primary{font-size:10px;padding:9px}.result-image{max-height:550px}.modal{padding:28px 24px}.modal h2{font-size:20px}.error-banner{bottom:140px;font-size:11px;padding:12px;width:90vw}.toast{top:70px;width:max-content;max-width:92vw;font-size:11px}footer{font-size:8px;line-height:1.8;max-width:300px;margin:auto;padding:20px 0 25px}.collection-empty{padding:60px 20px}.collection-empty h3{font-size:16px}.collection-empty p{font-size:11px}.compare-stage{width:min(100%,320px)}}@media(max-width:380px){.generate-button{padding:10px;font-size:10px}.output-settings{gap:6px}.output-settings label{gap:2px}.region-grid{grid-template-columns:repeat(3,1fr)}.canvas-tabs{gap:13px}.canvas-tabs button{font-size:10px}}.mask-editor{width:100%;max-width:560px}.mask-editor-head{display:flex;justify-content:space-between;align-items:center;margin:0 0 12px;gap:10px;font-size:11px;color:#9885ab}.mask-editor-head>span{display:flex;align-items:center;gap:6px}.mask-coverage{font-size:9px;color:#ad9abb}.mask-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;background:#fff;border:1px solid #e9e1f0;border-radius:8px;padding:6px 8px;margin-bottom:10px}.mask-tool-group{display:flex;align-items:center;gap:3px}.mask-tool{display:flex;align-items:center;justify-content:center;gap:5px;color:#9c82b3;border-radius:5px;padding:6px;font-size:10px}.mask-tool.active{background:#eee5f8;color:#8760b0}.mask-tool:hover{background:#f3eef8}.mask-brush-control{display:flex;gap:7px;align-items:center;font-size:9px;color:#ae9abc;margin-left:auto}.mask-brush-control input{width:65px;padding:0;height:17px;accent-color:#9e7bbb}.mask-brush-control output{font-size:9px;min-width:18px}.mask-viewport{max-height:490px;max-width:100%;border-radius:8px;background:#eeebf2;scrollbar-width:thin;scrollbar-color:#cfc0df #f3eef8}.mask-stage{margin:auto}.mask-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:12px 0 0}.mask-hint{font-size:9px;color:#b09ebd;line-height:1.7}.mask-zoom{display:flex;gap:3px;align-items:center;font-size:9px;color:#ae94c1}.mask-zoom output{min-width:30px;text-align:center}.mask-error{font-size:11px;color:#a76770;margin-top:9px}.mask-loading{padding:30px;color:#b4a0c4;font-size:11px}.mask-selection-canvas:focus-visible{outline:2px solid #ad87cf;outline-offset:-2px}@media(max-width:740px){.mask-viewport{max-height:480px}.mask-toolbar{gap:6px}.mask-brush-control{gap:5px}.mask-editor-head{font-size:10px}.mask-tool{padding:5px}}.field-title{font-size:13px}.field-hint{font-size:11px;color:#8e809b}.region-grid button{font-size:11px}.region-details summary{font-size:12px}.region-details textarea,.segmented button{font-size:12px}.angles button{font-size:10px}.two-fields label,.two-fields select,.prompt-toggle,.save-preset{font-size:12px}.panel-title p{color:#9785a5}.upload-empty p{font-size:12px;color:#9a88aa}.upload-meta{color:#aa97b8}.face-art{width:134px;height:143px;margin-bottom:19px}.upload-empty{padding:9px 0}.canvas-body{min-height:485px}.intro p{color:#8b7b9a}.canvas-tabs button{font-size:12px}.nav-item{font-size:13px}.tool-nav{font-size:12px}.generation-bar{margin-bottom:10px}@media(max-width:980px){.nav-item{font-size:0}.canvas-tabs button{font-size:11px}}@media(max-width:740px){.nav-item{font-size:9px}.field-title{font-size:13px}.region-grid button{font-size:11px}.face-art{width:112px;height:120px}.canvas-body{min-height:380px}.upload-empty p,.angles button,.canvas-tabs button{font-size:11px}}button,input,select,textarea,a{scroll-margin-top:90px;scroll-margin-bottom:130px}.output-angles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}.output-angles button{min-height:34px;font-size:11px;padding:8px 4px}.output-angles button:disabled{cursor:not-allowed;opacity:.48}.output-angles button.selected:disabled{opacity:.8}.angle-override-notice{margin-top:12px;padding:11px 12px;border:1px solid #e5dbef;border-radius:8px;background:#faf7fd}.angle-override-notice p{font-size:11px;line-height:1.7;color:#8b779d}.angle-override-notice .text-button{margin-top:5px;font-size:11px}.canvas-caption{font-size:10px;color:#a699b1;white-space:nowrap}.face-art{width:106px;height:118px;background:none!important;box-shadow:none!important;color:#baacd2}.face-art:before,.face-art:after{display:none}.upload-empty .photo-tips{margin-top:20px}.upload-empty{padding:15px 0}.portrait-library{padding:20px 22px;border-top:1px solid var(--border)}.portrait-library-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:15px}.portrait-library-heading h3{font-size:12px;font-weight:600;display:flex;align-items:center;gap:7px;color:#77658d}.portrait-library-heading p{font-size:10px;color:#a69aac;margin-top:5px}.portrait-library-heading .text-button{white-space:nowrap}.portrait-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}.portrait-card{min-width:0;padding:0;text-align:left;border-radius:8px}.portrait-card>div{position:relative;aspect-ratio:2/3;border-radius:8px;overflow:hidden;background:#f0edf4;border:2px solid transparent}.portrait-card img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .2s}.portrait-card:hover img{transform:scale(1.04)}.portrait-card.selected>div{border-color:#9171c3}.portrait-card strong{display:block;font-size:10px;color:#766781;font-weight:500;margin-top:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.portrait-card small{display:block;font-size:9px;color:#ab9eb2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:4px}.portrait-use{position:absolute;inset:auto 0 0;display:flex;align-items:center;justify-content:center;gap:5px;padding:7px;background:#615074bb;color:#fff;font-size:10px;opacity:0;transition:opacity .2s}.portrait-card:hover .portrait-use,.portrait-card:focus-visible .portrait-use,.portrait-card.selected .portrait-use{opacity:1}.portrait-filters{display:flex;gap:7px;margin-bottom:14px}.portrait-filters button{padding:6px 11px;border:1px solid var(--border);border-radius:20px;font-size:10px;color:#93849e}.portrait-filters .selected{background:var(--lavender);color:var(--accent);border-color:#d9c9ee}.portrait-library-note{font-size:10px;line-height:1.8;color:#a69aac;margin-top:14px}.comparison{width:100%;max-width:none}.compare-modes{display:flex;justify-content:center;gap:5px;margin:0 auto 18px;width:max-content;padding:4px;border-radius:9px;background:#eeebf3}.compare-modes button{display:flex;align-items:center;gap:7px;font-size:11px;color:#988ba3;padding:8px 13px;border-radius:6px}.compare-modes .selected{background:#fff;color:#7c609f;box-shadow:0 2px 5px #5141600a}.ab-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;width:100%;align-items:start}.ab-grid figure{margin:0;min-width:0}.ab-grid figcaption{display:flex;align-items:center;gap:7px;font-size:11px;color:#8d7a9e;margin-bottom:10px}.ab-grid figcaption b{display:grid;place-items:center;width:22px;height:22px;border-radius:6px;background:#ece5f7;color:#8265ac;font-size:10px}.ab-image{aspect-ratio:2/3;background:#eeebf2;border-radius:9px;overflow:hidden;display:flex;align-items:center;justify-content:center}.ab-image img{display:block;width:100%;height:100%;object-fit:contain}.comparison>.field-hint{margin-top:15px;text-align:center;font-size:10px;line-height:1.8}.canvas-body:has(.comparison){align-items:flex-start;min-height:0;padding-top:22px;padding-bottom:22px}.canvas-body:has(.upload-empty){min-height:420px}.compare-stage{margin:auto}.canvas-panel{position:static}.result-actions{flex-wrap:wrap}.canvas-header{gap:8px}.canvas-tabs{gap:18px}@media(max-width:1200px){.canvas-caption{display:none}.portrait-library{padding:17px 15px}.portrait-grid{gap:7px}.portrait-library-heading h3{font-size:11px}.ab-grid{gap:10px}.compare-modes button{font-size:10px;padding:8px 10px}}@media(max-width:740px){.portrait-library{padding:17px}.portrait-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:7px}.portrait-grid.expanded{grid-template-columns:repeat(4,minmax(0,1fr));row-gap:15px}.portrait-card small{display:none}.portrait-card strong{font-size:9px;margin-top:6px}.portrait-use{font-size:9px;padding:4px}.portrait-library-heading h3{font-size:12px}.canvas-body:has(.upload-empty){min-height:335px}.upload-empty .face-art{width:78px;height:88px;margin-bottom:12px}.upload-empty .photo-tips{display:none}.upload-empty h3{font-size:15px}.ab-grid{gap:9px}.ab-grid figcaption{font-size:10px}.compare-modes{margin-bottom:15px}.comparison>.field-hint{font-size:9px}.canvas-tabs{gap:18px}.canvas-body:has(.comparison){padding:15px 12px}}:root{--accent:#6b49a8;--accent-dark:#56368e;--lavender:#f0eafa;--muted:#6f657b;--border:#e2dce9;--ink:#30283d;color:var(--ink)}body{font-size:15px;line-height:1.6}button,input,select,textarea{line-height:1.5}input,select,textarea{font-size:14px;border-color:#d9d1e2}input::placeholder,textarea::placeholder{color:#82758e}small{font-size:12px}.studio-grid{grid-template-columns:380px minmax(0,1fr);gap:22px}.settings-panel{border-color:#d7cce5;box-shadow:0 4px 18px #42256608}.setting-content{padding:22px;container-type:inline-size}.panel-title{padding:20px 22px;background:#fcfaff}.panel-title h2{font-size:18px;color:#3c2f4e}.panel-title p{font-size:12px;color:#746480}.section-icon{color:#76519f;background:#eee5f7}.field-title{font-size:16px;font-weight:650;color:#3d304f;gap:12px}.field-title>span{font-size:12px;color:#756582;text-align:right}.field-hint,.angle-override-notice p{font-size:12px;color:#756680;line-height:1.75}.section-gap{margin-top:28px}.region-search,.region-details textarea,.prompt-editor textarea,.job-prompt{font-size:14px}.region-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;max-height:235px;margin:12px 0}.region-grid button{min-height:43px;padding:8px 5px;font-size:14px;line-height:1.4;color:#645370;border-color:#dcd3e6;background:#fff}.region-grid button:hover{background:#f5f0fb;border-color:#9e81bf}.region-grid button.selected{background:#eee4fa;color:#5e348e;border-color:#9271b6;font-weight:600;box-shadow:inset 0 0 0 1px #b49acc}.region-grid button svg{flex-shrink:0}.region-details summary{font-size:14px;color:#654b7e}.region-details summary small{font-size:12px;color:#7a6a88}.segmented{padding:4px;border-color:#ddd4e7;background:#f5f2f8;gap:4px}.segmented button,.output-angles button{font-size:14px;min-height:42px;color:#71607e;padding:9px 5px}.segmented button.selected{background:#fff;color:#5b348b;font-weight:650;box-shadow:0 1px 5px #44255916,inset 0 0 0 1px #d7c6e9}.two-fields label{font-size:14px;color:#554260}.two-fields select{font-size:14px;padding:10px 8px}.prompt-toggle,.save-preset{font-size:14px;color:#6c4b89}.prompt-toggle b{font-size:12px;padding:3px 6px;color:#6d438e}.prompt-editor p{font-size:12px;color:#776383}.text-button,.angle-override-notice .text-button{font-size:14px;color:#6b458b}.quiet-button,.primary,.generate-button{font-size:15px;min-height:42px}.quiet-button{color:#675274;border-color:#d6c9e2}.icon-button{color:#79628c}.save-preset{border-color:#c9b7db}.angle-override-notice{background:#f7f1fc;border-color:#d9c8e9}.mode-picker{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:11px;margin:0 0 22px}.mode-option{min-width:0;min-height:82px;text-align:left;padding:13px 12px;border:1px solid #dcd4e5;border-radius:10px;background:#fff;color:#574762;transition:background .16s,border-color .16s,box-shadow .16s}.mode-option strong{display:block;font-size:15px;font-weight:600;line-height:1.5;color:#473552}.mode-option span{display:block;font-size:12px;line-height:1.6;color:#786783;margin-top:4px}.mode-option:hover{background:#faf7fe;border-color:#a68ac2}.mode-option.selected,.mode-option[aria-pressed=true]{background:#f0e8fa;border-color:#9167b8;box-shadow:inset 0 0 0 1px #9167b8}.mode-option.selected strong,.mode-option[aria-pressed=true] strong{color:#5b2f85}.mode-option.selected span,.mode-option[aria-pressed=true] span{color:#6e4f86}.mode-summary{font-size:14px;line-height:1.75;color:#70577e;margin:0 0 18px}.parameter-fields{margin:0;padding:0;border:0;min-width:0}.parameter-fields:disabled{opacity:.7}.parameter-fields:disabled button{opacity:1;cursor:not-allowed}.parameter-fields:disabled input,.parameter-fields:disabled select,.parameter-fields:disabled textarea{cursor:not-allowed;background:#f5f2f7;color:#6e6378}.parameter-fields:disabled summary{color:#796c85}.region-selection-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 12px}.region-selection-header .field-title,.region-selection-header h3{font-size:16px;margin:0;color:#3d304f}.region-selection-header>span,.region-selection-header small{font-size:12px;color:#756582}.region-more{display:flex;align-items:center;justify-content:center;gap:6px;width:100%;min-height:38px;margin:3px 0 0;padding:8px 12px;border:1px dashed #c9b9da;border-radius:8px;background:#fcfaff;color:#705182;font-size:13px}.region-more:hover{border-color:#a88cbd;background:#f5effb}.region-effects{display:grid;gap:13px;margin-top:17px}.region-effect-card{padding:15px;border:1px solid #dcd1e6;border-radius:12px;background:#fff;box-shadow:0 2px 8px #42255705}.region-effect-card h3{font-size:16px;font-weight:650;color:#442d57;line-height:1.5;margin-bottom:10px}.region-effect-card>header{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:11px}.region-effect-card>header h3{margin:0}.region-effect-card>header>button{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;min-width:30px;min-height:30px;border-radius:7px;color:#846e91}.region-effect-card>header>button:hover{background:#f0e9f7;color:#67447d}.effect-selected{font-size:13px;color:#6b4a82;background:#f5effb;padding:7px 9px;border-radius:7px;margin:-1px 0 12px;line-height:1.7;overflow-wrap:anywhere}.region-effect-card>header>span,.region-effect-card>header>small,.region-effect-card h3+span,.region-effect-card h3+small{font-size:12px;color:#705584;line-height:1.5}.effect-options{display:flex;flex-wrap:wrap;gap:8px}.effect-options button{min-height:40px;padding:9px 11px;border:1px solid #d8cce4;border-radius:8px;background:#faf8fd;color:#624a76;font-size:14px;line-height:1.4;text-align:center}.effect-options button:hover{background:#efe6f9;border-color:#a17bc0}.effect-options button[aria-pressed=true],.effect-options button.selected{background:#6b49a8;color:#fff;border-color:#6b49a8;font-weight:600;box-shadow:0 2px 6px #68419720}.effect-custom{margin-top:13px;border-top:1px solid #eee7f3;padding-top:7px}.effect-custom summary{font-size:13px;color:#725987;cursor:pointer;padding:5px 0;line-height:1.6}.effect-custom textarea{font-size:14px;margin-top:9px;line-height:1.75;min-height:88px;background:#fff}.effect-custom p,.effect-custom small{font-size:12px;color:#7e6c8b}.selection-summary{margin-top:19px;padding:14px 16px;border:1px solid #d8c8e9;border-left:3px solid #8c65b7;border-radius:10px;background:#f5effb;color:#5d426f;font-size:14px;line-height:1.75}.selection-summary strong{font-size:14px;color:#513260}.selection-summary p,.selection-summary span{font-size:13px;line-height:1.75}.selection-summary ul{display:flex;flex-wrap:wrap;gap:7px;list-style:none;margin:9px 0 0;padding:0}.selection-summary li{font-size:12px;line-height:1.6;padding:5px 8px;background:#fff;border:1px solid #dfd0ec;border-radius:6px;color:#694b7a;overflow-wrap:anywhere}.selection-summary>div{display:flex;flex-wrap:wrap;gap:7px;margin-top:9px}.selection-summary>div>span{font-size:12px;line-height:1.6;padding:5px 8px;background:#fff;border:1px solid #dfd0ec;border-radius:6px;color:#694b7a;overflow-wrap:anywhere}.advanced-settings{margin-top:22px;padding:0 16px;border:1px solid #ddd4e7;border-radius:11px;background:#fcfaff}.advanced-settings>summary{font-size:14px;font-weight:600;line-height:1.6;color:#654779;padding:15px 0;cursor:pointer}.advanced-settings[open]{padding-bottom:16px}.advanced-settings .section-gap:first-child{margin-top:4px}.advanced-settings>summary span,.advanced-settings>summary small{font-size:12px;font-weight:400;color:#796586}@container (min-width:500px){.region-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}.brand small{font-size:12px;letter-spacing:.2px;color:#7e6e8e}.nav-caption{font-size:12px;letter-spacing:.6px;color:#7d7089}.nav-item,.tool-nav{font-size:14px;color:#685674}.nav-item.active,.tool-nav.selected{color:#603d93;background:#eee6f8}.nav-count,.small-tag,.sidebar-foot{font-size:12px;color:#7e6990}.small-tag{padding:2px 5px}.help-link{font-size:14px;color:#78618b}.breadcrumbs{font-size:13px;color:#87758f}.breadcrumbs strong{color:#51415f}.private-label,.connection,.avatar{font-size:12px;color:#79658a}.intro p{font-size:14px;color:#766383}.intro h1 span{color:#805aa6}.eyebrow{font-size:12px;color:#826b99}.workflow>span{font-size:13px;color:#887494}.workflow b{font-size:12px;width:23px;height:23px}.workflow .current,.workflow .done{color:#704794}.workflow-note{font-size:12px;color:#81718e}.canvas-tabs button{font-size:14px;color:#887293}.canvas-tabs button.selected{color:#633a91}.canvas-tabs button span,.canvas-model,.canvas-caption{font-size:12px;color:#7a6289}.upload-empty h3,.result-empty h3{font-size:19px;color:#594368}.upload-empty p,.result-empty p{font-size:14px;color:#7c698b}.upload-meta,.photo-tips,.canvas-bottom{font-size:12px;color:#806e8d}.optional-note{font-size:12px!important}.reference-tray{flex-wrap:wrap}.reference-thumb{height:72px;width:63px}.reference-thumb>span,.add-reference,.reference-tray>p{font-size:12px}.add-reference{height:72px;min-width:70px;color:#806391}.reference-tray>p{color:#7d688c}.result-meta,.status-pill{font-size:12px;color:#79608a}.result-actions .quiet-button,.result-actions .primary{font-size:14px;padding:9px 12px}.output-settings label{font-size:13px;color:#70577f}.output-settings select{font-size:13px;padding:9px;color:#644577}.output-count,.generate-group strong,.generate-group small{font-size:12px;color:#7d678c}.generation-bar{gap:14px;flex-wrap:wrap}.compare-modes button,.ab-grid figcaption{font-size:14px;color:#745781}.ab-grid figcaption b,.compare-label,.comparison>.field-hint{font-size:12px}.compare-modes .selected{color:#60398e}.comparison>.field-hint{color:#7c6888}.mask-editor-head{font-size:14px;color:#74577f}.mask-coverage,.mask-brush-control,.mask-brush-control output,.mask-hint,.mask-zoom,.mask-zoom output,.mask-error,.mask-loading{font-size:12px;color:#7d638d}.mask-toolbar{gap:8px;padding:8px}.mask-tool{font-size:13px;min-height:35px;color:#755786}.mask-tool.active{background:#e9dcf6;color:#633789}.mask-brush-control input{width:85px}.mask-footer{flex-wrap:wrap}.portrait-library-heading h3{font-size:16px;color:#5e446e}.portrait-filters{flex-wrap:wrap}.portrait-filters button{font-size:13px;min-height:35px;padding:6px 12px;color:#765c85;border-color:#dacde5}.portrait-filters .selected{color:#603b8e;border-color:#a88bc2;background:#eee4fa}.portrait-card strong{font-size:14px;color:#62496f;line-height:1.5;margin-top:8px}.portrait-card small{display:block;font-size:12px;color:#897191;line-height:1.6;white-space:normal;overflow:visible;text-overflow:clip}.portrait-use,.portrait-library-note{font-size:12px}.portrait-library-note{color:#82708f}.portrait-card.selected>div{border-color:#8057ad;box-shadow:0 0 0 2px #eadff5}.job-info h3{font-size:15px;color:#533e60}.job-info p,.job-info .text-button,.saved-card p{font-size:12px;color:#7a6488}.job-info>div{flex-wrap:wrap}.job-preview>div{font-size:14px}.collection-empty p{font-size:14px;color:#7c6889}.saved-card .primary,.intro>.primary{font-size:15px}.muted,.help-steps p{font-size:14px;color:#7c658a}.help-steps li{font-size:15px;color:#634774}.help-note,.api-link,.connection-summary p{font-size:12px;color:#7c638b}.connection-summary strong{font-size:14px}.error-banner,.toast{font-size:14px;color:#755380}.error-banner{color:#98525b}.error-banner button{color:#96535c}footer{font-size:12px;color:#887696;line-height:1.8}@media(min-width:1550px){.studio-grid{grid-template-columns:380px minmax(0,1fr)}}@media(max-width:1200px){.studio-grid{grid-template-columns:360px minmax(0,1fr);gap:18px}.setting-content,.panel-title{padding:19px}.brand small{font-size:12px}.canvas-tabs{gap:15px}.canvas-tabs button{font-size:14px}.portrait-grid{gap:8px}.result-actions{justify-content:flex-start}}@media(max-width:1100px){.mode-picker{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(min-width:741px)and (max-width:980px){.nav-item{font-size:0}}@media(max-width:900px){.studio-grid{display:flex;flex-direction:column;gap:18px}.settings-panel{width:100%;order:2}.canvas-panel{width:100%;order:1}.canvas-body{min-height:400px}.portrait-grid{grid-template-columns:repeat(5,minmax(0,1fr))}}@media(max-width:740px){.sidebar{height:72px;padding:7px 10px}.nav-item{font-size:12px;min-width:88px;height:55px;gap:3px;padding:6px 9px}.main-shell{padding-bottom:77px}.topbar{padding:0 16px}.breadcrumbs{font-size:12px}.intro p{font-size:14px;max-width:none}.intro h1{font-size:24px}.setting-content{padding:20px}.field-title{font-size:16px}.field-title>span{font-size:12px}.panel-title h2{font-size:18px}.mode-picker{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-bottom:18px}.mode-option{min-height:80px}.mode-option strong{font-size:15px}.mode-option span{font-size:12px}.region-grid{grid-template-columns:repeat(3,minmax(0,1fr));max-height:230px}.region-grid button{font-size:14px}.region-effect-card{padding:14px}.segmented button,.output-angles button,.two-fields select,.effect-options button{font-size:14px}.canvas-header{padding:0 15px;height:60px}.canvas-tabs{gap:16px}.canvas-tabs button{font-size:14px}.canvas-tabs button span{font-size:12px}.upload-empty h3{font-size:18px}.upload-empty p{font-size:14px}.canvas-bottom{font-size:12px;line-height:1.7;text-align:center;padding:13px}.portrait-grid,.portrait-grid.expanded{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.portrait-card small{display:block;font-size:12px}.portrait-card strong{font-size:14px}.portrait-library-heading h3{font-size:16px}.portrait-use{font-size:12px;padding:6px}.portrait-filters{gap:6px}.portrait-filters button{font-size:12px;padding:6px 10px}.generation-bar{bottom:82px;padding:12px;gap:12px}.output-settings{gap:12px;flex-wrap:wrap}.output-settings label,.output-settings select{font-size:12px}.generate-button{font-size:15px;padding:12px 15px;min-height:45px}.generate-group{margin-left:auto}.compare-modes button,.ab-grid figcaption{font-size:13px}.comparison>.field-hint{font-size:12px}.mask-editor-head{font-size:14px}.mask-tool{font-size:13px}.mask-brush-control{font-size:12px}.result-actions .quiet-button,.result-actions .primary{font-size:14px}.job-info h3{font-size:15px}.job-info p,.job-info .text-button{font-size:12px}.saved-card .primary{font-size:15px}.toast,.error-banner{font-size:14px}.error-banner{bottom:160px;max-height:35vh;overflow:auto}.toast{top:70px}footer{font-size:12px;max-width:none;padding:23px 0}}@media(max-width:380px){.effect-options{gap:6px}.effect-options button{padding:8px 10px}.region-effect-card{padding:12px}.generate-button{font-size:15px}.canvas-tabs{gap:12px}}.app-shell{--sidebar-width:200px;--topbar-height:44px}.topbar{height:var(--topbar-height);min-height:var(--topbar-height);padding:0 20px;gap:12px}.topbar-actions{gap:12px}.avatar{width:28px;height:28px;border-width:2px}.sidebar-header{display:flex;align-items:center;justify-content:space-between;gap:6px;flex-shrink:0}.sidebar-toggle{display:inline-flex;align-items:center;justify-content:center;flex:0 0 32px;width:32px;height:32px;padding:0;border:1px solid #ded3e8;border-radius:8px;background:#fff;color:#735585}.sidebar-toggle:hover{background:#f1eafa;border-color:#ac91c7}.sidebar-toggle svg{width:17px;height:17px}.studio-toolbar{display:flex;align-items:center;gap:14px;min-width:0}.studio-toolbar h1{flex-shrink:0;font-size:18px;font-weight:650;line-height:1.4;white-space:nowrap}.studio-toolbar .mode-picker{flex:1;min-width:0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;margin:0}.studio-toolbar .mode-option{display:flex;align-items:center;justify-content:center;gap:6px;min-height:38px;padding:8px 9px;border-radius:8px;text-align:center}.studio-toolbar .mode-option>svg{width:17px;height:17px;flex-shrink:0}.studio-toolbar .mode-option strong{font-size:14px;line-height:1.4;white-space:nowrap}.studio-toolbar .mode-option .mode-desc{display:none}.studio-toolbar>.icon-button{width:32px;height:32px;border:1px solid #ded3e8;background:#fff;border-radius:8px}.compact-intensity{display:flex;align-items:center;gap:12px;margin-top:16px}.compact-intensity .field-title{flex-shrink:0;margin:0;font-size:14px;white-space:nowrap}.compact-intensity .field-title>span{display:none}.compact-intensity .segmented{flex:1;min-width:0;padding:3px;gap:3px}.compact-intensity .segmented button{min-height:32px;padding:5px 7px;font-size:14px}.compact-angle{display:flex;align-items:center;gap:12px;margin-top:12px}.compact-angle label,.compact-angle .field-title{flex-shrink:0;margin:0;font-size:14px;font-weight:600;white-space:nowrap}.compact-angle select{flex:1;min-width:0;width:auto;min-height:36px;padding:7px 10px;font-size:14px}.canvas-utilities{display:flex;align-items:center;justify-content:space-between;flex-shrink:0;gap:12px;padding:8px 13px;border-top:1px solid var(--border);background:#fff}.canvas-utilities>span{display:inline-flex;align-items:center;justify-content:flex-end;gap:4px;min-width:0;font-size:12px;color:#7c698b;line-height:1.5;text-align:right}.canvas-utilities>span>svg{flex-shrink:0}.portrait-launcher{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:32px;padding:5px 9px;border:1px solid #d9cce5;border-radius:7px;background:#faf7fd;color:#6a4a80;font-size:14px;white-space:nowrap}.portrait-launcher:hover{background:#eee5f9;border-color:#a988c4}.portrait-launcher svg{width:16px;height:16px}.modal-wide{width:1000px;max-width:min(1000px,calc(100vw - 44px));max-height:85dvh;padding:25px;overflow:auto}.modal-wide>.modal-emblem{display:none}.modal-wide>h2{font-size:20px;padding-right:28px;margin-bottom:14px}.modal-wide .portrait-library{padding:0;border:0}.modal-wide .portrait-library-heading{display:none}.modal-wide .portrait-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:15px}.modal-wide .portrait-filters{margin-bottom:15px}.modal-wide .portrait-library-note{margin-top:12px}.modal-wide .portrait-card>div{max-height:220px}.studio-page .canvas-body:has(.result-view) .result-view{height:100%;min-height:0;min-width:0;gap:6px;overflow:hidden}.studio-page .canvas-body:has(.result-view) .result-image{flex:1 1 auto;width:100%;height:0;min-height:0;max-height:none;object-fit:contain}.studio-page .canvas-body:has(.result-view) .result-meta{flex-shrink:0;min-height:20px;flex-wrap:wrap;font-size:12px;line-height:1.5}.effect-card-actions{display:flex;align-items:center;gap:3px;flex-shrink:0}.effect-card-actions .icon-button{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;padding:4px;border-radius:6px}.effect-card-actions .icon-button[aria-expanded=true]{background:#eee4f8;color:#5f368c}.panel-title>.icon-button{margin-left:0}.panel-title>.panel-save{margin-left:auto}.generate-summary{display:block;flex:0 1 350px;max-width:350px;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:14px;color:#725782}.canvas-fit-editor.is-preview>.mask-editor-head,.canvas-fit-editor.is-preview>.mask-footer{display:none}@media(min-width:741px){.app-shell.sidebar-collapsed{--sidebar-width:64px}.app-shell .sidebar{width:var(--sidebar-width);padding:15px 12px 12px;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin}.app-shell .main-shell{width:calc(100% - var(--sidebar-width));margin-left:var(--sidebar-width);padding-bottom:0;min-width:0}.sidebar .sidebar-header{margin-bottom:18px}.sidebar .brand{display:flex;gap:8px;margin:0;min-width:0;font-size:17px;letter-spacing:0}.sidebar .brand-symbol{width:32px;height:34px;flex-shrink:0;border-radius:10px}.sidebar .brand-symbol svg{width:20px;height:20px}.sidebar .brand-copy{display:block;min-width:0;white-space:nowrap}.sidebar .brand small{display:none}.sidebar .nav-caption{display:block;font-size:12px;margin:0 8px 7px;letter-spacing:.3px}.sidebar .nav-item,.sidebar .tool-nav{display:flex;align-items:center;flex-direction:row;justify-content:flex-start;gap:9px;width:100%;min-width:0;min-height:39px;height:auto;padding:9px 10px;margin:0 0 3px;font-size:14px}.sidebar .nav-item>svg,.sidebar .tool-nav>svg{width:17px;height:17px;flex-shrink:0}.sidebar .nav-label{display:inline;font-size:14px;white-space:nowrap}.sidebar .tool-caption{margin-top:21px}.sidebar .sidebar-bottom{display:block;margin-top:auto;padding-top:18px}.sidebar .help-link{display:flex;align-items:center;margin:0;min-height:36px;padding:8px 10px;font-size:14px}.sidebar .small-tag{font-size:12px;padding:1px 3px;line-height:1.3}.sidebar-collapsed .sidebar{padding:13px 10px 12px}.sidebar-collapsed .sidebar-header{flex-direction:column;gap:8px;margin-bottom:15px}.sidebar-collapsed .sidebar .brand{justify-content:center;width:40px}.sidebar-collapsed .sidebar .brand-copy,.sidebar-collapsed .sidebar .nav-label,.sidebar-collapsed .sidebar .nav-caption,.sidebar-collapsed .sidebar .nav-count,.sidebar-collapsed .sidebar .nav-dot,.sidebar-collapsed .sidebar .small-tag,.sidebar-collapsed .sidebar .engine-card,.sidebar-collapsed .sidebar .sidebar-foot{display:none}.sidebar-collapsed .sidebar .nav-item,.sidebar-collapsed .sidebar .tool-nav{justify-content:center;min-height:40px;padding:10px 0;gap:0;font-size:0}.sidebar-collapsed .sidebar .tool-nav:first-of-type{margin-top:12px}.sidebar-collapsed .sidebar .help-link{justify-content:center;padding:8px 0}.sidebar-collapsed .sidebar .help-link>svg:last-child:not(:first-child){display:none}.collection-page{padding:24px 22px 0}.collection-page footer{padding:18px 0}}@media(min-width:901px){.studio-page{height:calc(100dvh - var(--topbar-height));min-height:0;max-width:none;margin:0;padding:8px 16px 0;display:flex;flex-direction:column;gap:10px;overflow:hidden}.studio-page .studio-toolbar{flex:0 0 46px;min-height:46px}.studio-page .studio-grid{display:grid;grid-template-columns:clamp(340px,27vw,370px) minmax(0,1fr);flex:1;min-width:0;min-height:0;align-items:stretch;gap:12px;overflow:hidden}.studio-page .settings-panel,.studio-page .canvas-panel{display:flex;flex-direction:column;width:100%;height:100%;min-width:0;min-height:0;overflow:hidden;position:static;order:initial}.studio-page .panel-title{flex-shrink:0;min-height:46px;padding:9px 14px;gap:8px}.studio-page .panel-title h2{font-size:16px}.studio-page .section-icon{width:28px;height:28px;border-radius:8px}.studio-page .setting-content{flex:1;min-width:0;min-height:0;overflow-y:auto;overflow-x:hidden;padding:8px 13px;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#cbbada transparent}.studio-page .mode-summary{font-size:12px;line-height:1.65;margin-bottom:11px}.studio-page .field-title{font-size:14px;line-height:1.4;margin-bottom:4px}.studio-page .field-title>span{font-size:12px}.studio-page .region-selection-header{margin:0 0 4px}.studio-page .section-gap{margin-top:8px}.studio-page .region-search{height:32px;min-height:32px;padding:5px 9px;line-height:1.4;font-size:14px}.studio-page .region-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;max-height:158px;margin:4px 0;padding-right:0}.studio-page .region-grid button{min-height:28px;padding:3px 2px;font-size:14px;line-height:1.4;white-space:nowrap}.studio-page .region-grid button>svg{display:none}.studio-page .region-more{min-height:24px;height:24px;margin:0;padding:1px 7px;font-size:12px;line-height:1.5}.studio-page .region-effects{gap:7px;margin-top:0}.studio-page .region-effect-card{padding:8px;border-radius:9px}.studio-page .region-effect-card>header{height:24px;min-height:24px;margin-bottom:2px;gap:7px}.studio-page .region-effect-card h3{font-size:14px}.studio-page .region-effect-card>header>button{min-width:24px;min-height:24px;padding:3px}.studio-page .effect-card-actions .icon-button{width:24px;height:24px;min-width:24px;min-height:24px;padding:3px}.studio-page .effect-options{gap:6px}.studio-page .effect-options button{min-height:32px;padding:5px 8px;font-size:14px;line-height:1.4;display:inline-flex;align-items:center;justify-content:center;gap:4px}.studio-page .effect-selected{font-size:12px;margin:8px 0 0;padding:6px 8px;line-height:1.6}.studio-page .effect-custom{margin-top:6px;padding-top:2px}.studio-page .effect-custom summary{font-size:12px;padding:3px 0}.studio-page .effect-custom textarea{margin-top:6px;min-height:76px;padding:8px 9px}.studio-page .compact-intensity{margin-top:8px;gap:10px}.studio-page .compact-intensity .field-title{margin:0}.studio-page .compact-intensity .segmented{padding:1px;gap:3px}.studio-page .compact-intensity .segmented button{min-height:30px;padding:4px 7px;line-height:1.4}.studio-page .compact-angle{margin-top:8px;gap:10px}.studio-page .compact-angle .field-title{margin:0}.studio-page .compact-angle select{min-height:32px;height:32px;padding:5px 9px;line-height:1.4}.studio-page .field-hint{margin-top:6px;font-size:12px;line-height:1.6}.studio-page .advanced-settings{margin-top:8px;padding:0 9px;border-radius:8px}.studio-page .advanced-settings>summary{padding:6px 0;font-size:14px;line-height:1.4}.studio-page .advanced-settings[open]{padding-bottom:11px}.studio-page .two-fields{margin-top:3px;gap:8px}.studio-page .two-fields select{margin-top:6px;padding:7px 8px}.studio-page #notes{font-size:14px;padding:8px 10px;line-height:1.6;min-height:64px}.studio-page .selection-summary{margin-top:12px;padding:9px 11px;border-radius:8px}.studio-page .selection-summary strong{font-size:13px}.studio-page .selection-summary>div{gap:5px;margin-top:6px}.studio-page .selection-summary>div>span{padding:3px 6px}.studio-page .prompt-toggle{margin-top:8px;padding:6px 0;font-size:14px;line-height:1.4}.studio-page .save-preset{min-height:35px;padding:7px;margin-top:8px;font-size:13px}.studio-page .angle-override-notice{padding:9px 11px;margin-bottom:12px}.studio-page .canvas-header{flex-shrink:0;height:46px;padding:0 14px}.studio-page .canvas-tabs{gap:18px}.studio-page .canvas-tabs button{font-size:14px}.studio-page .canvas-body,.studio-page .canvas-body:has(.comparison),.studio-page .canvas-body:has(.upload-empty){flex:1;min-height:0;min-width:0;overflow:hidden;padding:10px;display:flex;align-items:center;justify-content:center}.studio-page .upload-empty{max-height:100%;width:100%;overflow:auto;padding:12px;flex-shrink:1}.studio-page .upload-empty .face-art{width:65px;height:75px;margin-bottom:10px;flex-shrink:0}.studio-page .upload-empty h3{font-size:18px;margin-bottom:6px}.studio-page .upload-empty p{font-size:14px;line-height:1.6}.studio-page .upload-button{min-height:38px;margin:15px 0 8px;padding:8px 17px;font-size:14px}.studio-page .upload-meta{font-size:12px}.studio-page .optional-note{margin-top:8px!important}.studio-page .result-empty{min-height:0;max-height:100%;overflow:auto;padding:12px;gap:12px}.studio-page .result-empty h3{font-size:18px}.studio-page .result-empty p{font-size:14px;line-height:1.6}.studio-page .generation-orbit{width:64px;height:64px;flex-shrink:0}.studio-page .result-view{height:100%;min-height:0;min-width:0;gap:6px;overflow:hidden}.studio-page .result-image{flex:1 1 auto;width:100%;height:0;min-height:0;max-height:none;object-fit:contain}.studio-page .result-meta{flex-shrink:0;min-height:20px;flex-wrap:wrap;font-size:12px;line-height:1.5}.studio-page .comparison{height:100%;min-height:0;min-width:0;overflow:hidden}.studio-page .compare-modes{flex-shrink:0;margin:0 auto 8px;padding:3px}.studio-page .compare-modes button{font-size:13px;padding:6px 10px}.studio-page .ab-grid{flex:1;min-height:0;grid-template-rows:minmax(0,1fr);align-items:stretch;gap:12px}.studio-page .ab-grid figure{display:flex;flex-direction:column;min-height:0}.studio-page .ab-grid figcaption{flex-shrink:0;font-size:13px;margin-bottom:6px}.studio-page .ab-image{flex:1;min-height:0;height:0;width:100%;aspect-ratio:auto}.studio-page .ab-image img{width:100%;height:100%;object-fit:contain}.studio-page .compare-stage{flex-shrink:1;min-height:0;max-height:100%}.studio-page .comparison>.field-hint{flex-shrink:0;margin-top:6px;font-size:12px;line-height:1.5}.studio-page .reference-tray{flex-shrink:0;gap:9px;padding:7px 12px;flex-wrap:nowrap;min-height:58px;overflow-x:auto;overflow-y:hidden}.studio-page .reference-thumb{width:38px;height:44px}.studio-page .reference-thumb>span{font-size:12px;line-height:1.2;padding:1px}.studio-page .reference-thumb button{right:-3px;top:-3px}.studio-page .add-reference{height:44px;min-width:60px;font-size:12px;gap:2px;padding:3px}.studio-page .add-reference svg{width:15px;height:15px}.studio-page .reference-tray>p{font-size:12px;line-height:1.5;white-space:nowrap;margin-left:auto}.studio-page .result-actions{flex-shrink:0;gap:7px;padding:7px 12px;min-height:50px}.studio-page .result-actions .quiet-button,.studio-page .result-actions .primary{min-height:34px;padding:6px 9px;font-size:13px;gap:5px}.studio-page .canvas-utilities{min-height:45px;padding:6px 12px}.studio-page .canvas-bottom{flex-shrink:0;padding:6px 12px;font-size:12px}.studio-page .generation-bar{position:static;flex:0 0 auto;min-height:58px;bottom:auto;margin:0;padding:8px 13px;gap:12px;flex-wrap:nowrap;box-shadow:0 3px 15px #4a2d6d06;border-radius:10px;z-index:5}.studio-page .output-settings{flex:0 0 auto;gap:14px;min-width:0}.studio-page .output-settings label,.studio-page .output-settings select{font-size:13px}.studio-page .output-settings select{padding:7px 9px}.studio-page .generate-group{flex:1 1 0;min-width:0;justify-content:flex-end;margin-left:auto;gap:12px}.studio-page .generate-button{flex-shrink:0;min-height:40px;padding:8px 18px;font-size:15px}.studio-page>footer{flex-shrink:0;min-height:21px;padding:0 0 5px;margin:-3px 0 0;font-size:12px;line-height:1.5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:none}.toast{top:54px}.error-banner{bottom:94px}}@media(min-width:901px)and (max-width:1120px){.app-shell:not(.sidebar-collapsed) .studio-toolbar{gap:10px}.app-shell:not(.sidebar-collapsed) .studio-toolbar h1{font-size:16px}.app-shell:not(.sidebar-collapsed) .studio-toolbar .mode-option{padding:8px 5px}.app-shell:not(.sidebar-collapsed) .studio-toolbar .mode-option>svg{display:none}.studio-page .studio-grid{grid-template-columns:340px minmax(0,1fr);gap:10px}.studio-page .canvas-tabs{gap:12px}.studio-page .canvas-tabs button{font-size:13px}.studio-page .reference-tray>p{display:none}.studio-page .canvas-utilities>span{max-width:145px}}@media(min-width:741px)and (max-width:900px){.studio-page{height:auto;overflow:visible;padding:15px 18px 0;max-width:none}.studio-toolbar{flex-wrap:wrap;gap:12px;margin-bottom:16px}.studio-toolbar h1{margin-right:auto}.studio-toolbar .mode-picker{order:3;flex-basis:100%;grid-template-columns:repeat(5,minmax(0,1fr))}.studio-toolbar .mode-option{padding:8px 5px}.studio-toolbar .mode-option>svg{display:none}.studio-page .studio-grid{display:flex;flex-direction:column;overflow:visible}.studio-page .settings-panel{order:2;height:auto;overflow:visible}.studio-page .setting-content{overflow:visible;max-height:none}.studio-page .canvas-panel{order:1;height:auto;min-height:0}.studio-page .canvas-body{min-height:360px;max-height:none}.studio-page .canvas-body:has(.canvas-fit-editor),.studio-page .canvas-body:has(.canvas-fit-comparison),.studio-page .canvas-body:has(.result-view){height:clamp(360px,65dvh,600px);overflow:hidden}.studio-page .generation-bar{position:sticky;bottom:10px;flex-wrap:wrap;margin-top:15px}.studio-page footer{padding:18px 0}.canvas-utilities{padding:9px 13px}}@media(max-width:740px){.app-shell .sidebar-header{display:none}.app-shell .sidebar{height:72px;padding:7px 10px}.app-shell .sidebar .nav-label,.app-shell.sidebar-collapsed .sidebar .nav-label{display:inline;font-size:12px}.app-shell .sidebar .nav-item{display:flex;flex-direction:column;justify-content:center;min-width:88px;min-height:55px;gap:3px;padding:6px 9px;font-size:12px}.app-shell .sidebar .nav-caption,.app-shell .sidebar .tool-nav,.app-shell .sidebar .sidebar-bottom,.app-shell .sidebar .nav-count,.app-shell .sidebar .nav-dot{display:none}.app-shell .main-shell{width:100%;margin-left:0;padding-bottom:77px}.topbar{height:44px;min-height:44px;padding:0 16px}.studio-page{display:block;height:auto;min-height:0;overflow:visible;padding:16px 14px 108px;max-width:none}.studio-toolbar{flex-wrap:wrap;gap:10px;margin-bottom:15px}.studio-toolbar h1{font-size:19px;margin-right:auto}.studio-toolbar .mode-picker{order:3;flex-basis:100%;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.studio-toolbar .mode-option{min-height:38px;padding:8px;gap:6px}.studio-toolbar .mode-option strong{font-size:14px}.studio-page .studio-grid{display:flex;flex-direction:column;gap:14px;min-height:0;overflow:visible}.studio-page .settings-panel{order:2;height:auto;min-height:0;overflow:visible}.studio-page .setting-content{padding:17px;max-height:none;overflow:visible}.studio-page .canvas-panel{order:1;height:auto;min-height:0;overflow:hidden}.studio-page .canvas-header{height:50px;padding:0 12px}.studio-page .canvas-tabs{gap:12px}.studio-page .canvas-tabs button{font-size:13px}.studio-page .canvas-body,.studio-page .canvas-body:has(.comparison),.studio-page .canvas-body:has(.upload-empty){min-height:0;max-height:none;overflow:visible;padding:12px}.studio-page .canvas-body:has(.canvas-fit-editor),.studio-page .canvas-body:has(.canvas-fit-comparison),.studio-page .canvas-body:has(.result-view){height:clamp(320px,60dvh,520px);overflow:hidden}.studio-page .upload-empty{min-height:260px}.studio-page .result-empty{min-height:260px;padding:24px 12px}.studio-page .reference-tray{gap:8px;padding:9px 12px;flex-wrap:wrap}.studio-page .reference-thumb{width:40px;height:48px}.studio-page .add-reference{height:48px;min-width:60px;gap:2px;padding:3px;font-size:12px}.studio-page .reference-tray>p{font-size:12px;line-height:1.5}.studio-page .result-actions{padding:9px 12px;gap:7px}.studio-page .result-actions .quiet-button,.studio-page .result-actions .primary{min-height:36px;padding:7px 9px;font-size:13px}.canvas-utilities{padding:8px 11px;gap:8px}.canvas-utilities>span{font-size:12px;max-width:145px}.portrait-launcher{font-size:13px;min-height:32px;padding:5px 8px}.compact-intensity{margin-top:19px;gap:10px}.compact-angle{gap:10px}.compact-intensity .segmented button{min-height:35px;font-size:14px}.studio-page .generation-bar{position:fixed;left:8px;right:8px;bottom:calc(78px + env(safe-area-inset-bottom,0px));width:auto;min-height:60px;margin:0;padding:9px 10px;gap:8px;flex-wrap:wrap;z-index:12;box-shadow:0 -3px 22px #4a2d6d12}.studio-page .output-settings{flex:1 1 210px;gap:8px;min-width:0;flex-wrap:nowrap}.studio-page .output-settings label{font-size:12px;gap:4px}.studio-page .output-settings select{font-size:12px;padding:7px 5px}.studio-page .generate-group{margin-left:auto;flex-shrink:0}.studio-page .generate-button{min-height:38px;padding:8px 13px;font-size:15px}.studio-page>footer{padding:18px 0 0;max-width:none;font-size:12px;line-height:1.7}.collection-page{padding:20px 15px 0}.modal-wide{padding:22px 18px;max-width:calc(100vw - 24px);max-height:88dvh}.modal-wide .portrait-grid,.modal-wide .portrait-grid.expanded{grid-template-columns:repeat(3,minmax(0,1fr));gap:13px 9px}.modal-wide .portrait-card>div{max-height:none}.toast{top:52px}.error-banner{bottom:190px}}@media(max-width:380px){.studio-page .canvas-tabs{gap:10px}.studio-page .canvas-tabs button{font-size:12px;gap:4px}.studio-page .canvas-tabs button span{font-size:12px;padding:1px 4px}.studio-page .canvas-utilities>span{max-width:125px}.studio-page .output-settings{flex-basis:100%}.studio-page .generation-bar{gap:6px}.studio-page .generate-button{min-height:36px;padding:7px 12px}}@media(max-width:1100px){.generate-summary{display:none}}@media(min-width:901px){.canvas-fit-editor.is-editable>.mask-editor-head{height:24px;min-height:24px;gap:8px;margin:0;font-size:14px;line-height:20px}.canvas-fit-editor.is-editable .mask-coverage{font-size:12px;white-space:nowrap}.canvas-fit-editor.is-editable>.mask-toolbar{height:36px;min-height:36px;flex-wrap:nowrap;gap:6px;padding:2px;margin:0 0 4px;overflow-x:auto;overflow-y:hidden}.canvas-fit-editor.is-editable .mask-tool-group{flex-shrink:0;gap:3px}.canvas-fit-editor.is-editable .mask-tool{height:28px;min-height:28px;min-width:28px;padding:4px;gap:4px;font-size:14px;line-height:20px;white-space:nowrap}.canvas-fit-editor.is-editable .mask-brush-control{min-width:0;gap:4px;margin-left:auto;font-size:12px;line-height:20px;white-space:nowrap}.canvas-fit-editor.is-editable .mask-brush-control input{width:clamp(44px,5vw,72px);min-width:44px;height:18px}.canvas-fit-editor.is-editable .mask-brush-control output{min-width:22px;font-size:12px}.canvas-fit-editor.is-editable>.mask-footer{height:28px;min-height:28px;flex-wrap:nowrap;gap:8px;padding:2px 0 0}.canvas-fit-editor.is-editable .mask-hint{flex:1;min-width:0;font-size:12px;line-height:20px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.canvas-fit-editor.is-editable .mask-zoom{flex-shrink:0;gap:2px;font-size:12px;line-height:20px}.canvas-fit-editor.is-editable .mask-zoom .mask-tool{height:24px;min-height:24px;min-width:26px;padding:3px}.canvas-fit-editor.is-editable .mask-zoom output{min-width:36px;font-size:12px;line-height:20px}}.studio-page .panel{border-radius:16px;border-color:#e2d9eb;box-shadow:0 5px 20px #49335f07}.studio-page .canvas-panel{max-width:none}.studio-page .settings-panel{border-color:#d9cce6;box-shadow:0 4px 20px #6c48970a}.studio-page .panel-title{background:linear-gradient(110deg,#fcfaff,#fff);border-bottom-color:#ece5f2}.studio-page .region-grid{grid-template-columns:repeat(3,minmax(0,1fr));width:100%;min-width:0;max-height:none;overflow:visible;gap:6px;margin:8px 0;padding:0}.studio-page .region-grid button{width:100%;min-width:0;max-width:100%;min-height:36px;padding:7px 5px;font-size:14px;line-height:1.4;white-space:normal;overflow-wrap:anywhere;border-radius:8px;background:#fdfcfe;border-color:#e1d7ea;box-shadow:none}.studio-page .region-grid button:hover{background:#f6f0fc;border-color:#b69bcf}.studio-page .region-grid button.selected{background:#ede3f9;color:#5f378b;border-color:#a486c3;box-shadow:inset 0 0 0 1px #cdb9e1;font-weight:600}.studio-page .region-grid button>span{min-width:0;max-width:100%;overflow-wrap:anywhere;text-align:center}.studio-page .region-grid button>svg{display:block;width:13px;height:13px;flex-shrink:0}.studio-page .region-effect-card{background:linear-gradient(135deg,#fff,#fdfbff);border-color:#e1d5eb;box-shadow:0 2px 7px #68448c04}.studio-page .effect-options button{min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere}.studio-page .canvas-body:has(.upload-empty){background:radial-gradient(ellipse at 50% 30%,#f4edfbe6,#fcfaff 65%,#f7f5fa)}.studio-page .upload-empty .face-art{color:#b69dcb}.studio-page .upload-button{background:#7650ad;border-color:#7650ad;box-shadow:0 4px 13px #7650ad22}.studio-page .upload-button:hover{background:#644294;border-color:#644294;box-shadow:0 5px 16px #7650ad2a}.portrait-strip{--portrait-card-width:48px;display:grid;grid-template-rows:25px minmax(0,1fr);flex:0 0 auto;height:116px;min-width:0;max-width:100%;padding:6px 12px;border-top:1px solid #e8dff0;background:linear-gradient(180deg,#fcfaff,#f8f5fc)}.portrait-strip.is-roomy{--portrait-card-width:72px;height:178px;padding:10px 12px 11px;grid-template-rows:30px minmax(0,1fr)}.portrait-strip-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0}.portrait-strip-heading h3{display:flex;align-items:center;gap:6px;font-size:14px;font-weight:600;line-height:20px;color:#60476e;white-space:nowrap}.portrait-strip-heading h3>svg{width:15px;height:15px;flex-shrink:0}.portrait-strip-actions{display:flex;align-items:center;gap:4px;min-width:0}.portrait-strip-actions button{display:inline-flex;align-items:center;justify-content:center;gap:3px;min-width:24px;height:24px;padding:3px;border:1px solid transparent;border-radius:6px;color:#765987;font-size:12px;line-height:18px;white-space:nowrap}.portrait-strip-actions button:hover{background:#eee5f8;border-color:#dccbe9;color:#5e3a80}.portrait-strip-actions .text-button{padding:3px 7px;background:#fff;border-color:#ded2e9}.portrait-strip-page{min-width:28px;text-align:center;font-size:12px;line-height:18px;color:#877493;white-space:nowrap}.portrait-strip-grid{display:grid;grid-auto-flow:column;grid-auto-columns:var(--portrait-card-width);grid-template-columns:none;justify-content:start;gap:8px;min-width:0;min-height:0;max-width:100%}.portrait-strip-card{display:grid;grid-template-rows:minmax(0,1fr) 18px;gap:0;min-width:0;min-height:0;max-width:100%;height:100%;padding:0;border:0;background:none;text-align:left;border-radius:7px}.portrait-strip-card img{display:block;width:100%;height:100%;min-width:0;min-height:0;border:1px solid #e3d9ec;border-radius:8px;object-fit:contain;object-position:center;background:#f2edf7;transition:border-color .16s,box-shadow .16s}.portrait-strip-card strong{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:500;line-height:18px;color:#746080}.portrait-strip-card:hover img{border-color:#ab87c6;box-shadow:0 2px 8px #73509518}.portrait-strip-card.selected img,.portrait-strip-card[aria-pressed=true] img{border:2px solid #9165b7;box-shadow:0 0 0 1px #e4d5f0}.portrait-strip-card.selected strong,.portrait-strip-card[aria-pressed=true] strong{color:#65418a;font-weight:600}.portrait-strip-card:focus-visible{outline-offset:1px}.portrait-strip.is-roomy .portrait-strip-card{grid-template-rows:minmax(0,1fr) 20px}.portrait-strip.is-roomy .portrait-strip-card strong{font-size:13px;line-height:20px}@media(min-width:901px){.studio-page{padding:10px 18px 12px;gap:12px}.studio-page .studio-grid{grid-template-columns:clamp(350px,28vw,400px) minmax(0,1fr);gap:14px}.studio-page .panel-title{min-height:48px;padding:10px 15px}.studio-page .setting-content{padding:14px 15px;scrollbar-gutter:stable}.studio-page .field-title{font-size:14px;line-height:1.5;margin-bottom:6px}.studio-page .region-selection-header{margin:0 0 7px}.studio-page .section-gap{margin-top:12px}.studio-page .region-search{height:36px;min-height:36px;padding:7px 10px;border-radius:8px;font-size:14px}.studio-page .region-more{height:28px;min-height:28px;padding:4px 8px;font-size:12px;border-color:#d9cbe6;background:#fbf8fe}.studio-page .region-effects{gap:10px;margin-top:7px}.studio-page .region-effect-card{padding:10px 11px;border-radius:11px}.studio-page .region-effect-card>header{height:26px;min-height:26px;margin-bottom:7px;gap:8px}.studio-page .region-effect-card h3{font-size:14px;line-height:21px}.studio-page .effect-card-actions .icon-button{width:26px;height:26px;min-height:26px;min-width:26px;padding:4px}.studio-page .effect-options{gap:7px}.studio-page .effect-options button{min-height:36px;padding:7px 10px;font-size:14px;line-height:1.4;border-radius:8px}.studio-page .effect-custom{margin-top:9px;padding-top:4px}.studio-page .effect-custom textarea{margin-top:7px;min-height:84px;padding:9px 10px;font-size:14px}.studio-page .compact-intensity,.studio-page .compact-angle{margin-top:11px;gap:11px}.studio-page .compact-intensity .segmented{padding:2px;gap:3px}.studio-page .compact-intensity .segmented button{min-height:33px;padding:5px 8px;font-size:14px}.studio-page .compact-angle select{height:36px;min-height:36px;padding:7px 10px;font-size:14px}.studio-page .advanced-settings{margin-top:11px;padding:0 11px;border-radius:9px;background:#fcfaff}.studio-page .advanced-settings>summary{padding:8px 0;font-size:14px;line-height:1.5}.studio-page .prompt-toggle{margin-top:11px;padding:9px 0;font-size:14px;line-height:1.5}.studio-page .upload-empty{padding:16px}.studio-page .upload-empty .face-art{width:70px;height:78px;margin-bottom:11px}.studio-page .upload-button{min-height:40px;padding:9px 19px;margin:15px 0 9px;font-size:14px}.studio-page .generation-bar{border-radius:12px;border-color:#e2d7eb;box-shadow:0 3px 14px #61417f07}}@media(min-width:901px)and (max-height:660px){.studio-page .canvas-panel{overflow-y:auto;scrollbar-width:thin;scrollbar-color:#cbbada transparent}.studio-page .canvas-body,.studio-page .canvas-body:has(.comparison),.studio-page .canvas-body:has(.upload-empty){flex:1 0 240px;min-height:240px}}@media(min-width:741px)and (max-width:900px){.studio-page{padding-bottom:12px}}@media(max-width:740px){.studio-page .setting-content{padding:16px}.studio-page .region-grid{grid-template-columns:repeat(3,minmax(0,1fr));max-height:none;overflow:visible;gap:6px;margin:8px 0}.studio-page .region-grid button{min-height:36px;font-size:14px;padding:7px 4px}.portrait-strip,.portrait-strip.is-roomy{padding-inline:11px}.portrait-strip-grid{grid-template-columns:none;gap:7px;overflow:visible}.portrait-strip-heading h3{font-size:14px}.portrait-strip-actions{gap:3px}.portrait-strip-actions button{min-width:23px;height:23px}.portrait-strip.is-roomy .portrait-strip-card strong{font-size:12px}}
