:root{--bg:#f7f7f2;--paper:#fff;--ink:#262d25;--muted:#858b7f;--accent:#526b43;--accent-hover:#3f5632;--line:#e0e3d9;--soft:#eef1e7;--olive:#788764;--shadow:0 12px 35px #3a463914;--font:-apple-system,BlinkMacSystemFont,"Segoe UI","Malgun Gothic","Apple SD Gothic Neo",sans-serif;font-family:var(--font);color:var(--ink);background:var(--bg);font-synthesis:none;font-size:14px;-webkit-font-smoothing:antialiased}
*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,a,input,textarea,summary{ -webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit}button:disabled{cursor:not-allowed;opacity:.46}a{color:inherit;text-decoration:none}button,input,textarea,select{outline:none}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #91ab72;outline-offset:3px}button svg,a svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.6;flex:none}button{border:0;background:none}input[type=file][hidden],[hidden]{display:none!important}.icon-defs{position:absolute;width:0;height:0;overflow:hidden}.app-header{height:82px;padding:0 38px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;background:#fbfbf7}.brand{display:flex;align-items:center;gap:13px}.brand-mark{width:33px;height:33px;display:grid;grid-template-columns:1fr 1fr;gap:3px;transform:rotate(-5deg)}.brand-mark i{display:block;background:var(--accent);border-radius:3px}.brand-mark i:nth-child(2){background:#b8c2a9}.brand-mark i:nth-child(3){background:#d8deca}.brand-wordmark{font-weight:750;font-size:17px;letter-spacing:-.5px}.brand-wordmark>span{display:block;font-size:8px;letter-spacing:2px;font-weight:500;color:var(--muted);margin-top:4px}.header-actions{display:flex;align-items:center;gap:16px}.connection-pill{display:flex;align-items:center;gap:8px;font-size:11px;color:#73786b;border:1px solid var(--line);padding:8px 12px;border-radius:24px;background:white;white-space:nowrap}.status-dot{display:block;width:6px;height:6px;border-radius:50%;background:#a8ad9e;flex:none}.connection-pill.ready .status-dot{background:#70914e;box-shadow:0 0 0 3px #e8eedf}.connection-pill.ready{color:#52683e}.connection-pill.offline .status-dot{background:#ba9461}.connection-pill.busy .status-dot{background:#82965d;animation:pulse 1.7s infinite}.header-divider{width:1px;height:20px;background:var(--line);margin:0 1px}.text-button{display:inline-flex;align-items:center;gap:7px;font-size:12px;padding:8px 3px;color:#59614f;white-space:nowrap}.text-button:hover{color:var(--accent-hover)}.workspace{max-width:1680px;display:grid;grid-template-columns:330px minmax(0,1fr);gap:46px;padding:38px 42px 32px;margin:0 auto;align-items:start}.controls{min-width:0}.intro{margin:2px 0 31px}.eyebrow{font-size:9px;letter-spacing:1.7px;font-weight:600;color:var(--muted);margin:0 0 13px;line-height:1.5}.intro .eyebrow{display:flex;gap:7px;align-items:center}.intro .eyebrow>span{width:5px;height:5px;background:var(--accent);border-radius:50%}.intro h1{font-size:29px;line-height:1.4;font-weight:650;letter-spacing:-1.2px;margin:0 0 11px}.intro>p:last-child{color:#858b7d;font-size:12px;line-height:1.8;margin:0}.form-section{margin:0 0 27px}.section-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:13px}.section-heading h2{display:flex;align-items:center;gap:9px;font-size:13px;font-weight:650;margin:0}.step-number{font-size:9px;font-weight:600;font-variant-numeric:tabular-nums;color:#8b957e;letter-spacing:.7px}.subtle{font-size:10px;color:var(--muted)}.upload-zone{width:100%;min-height:156px;display:flex;flex-direction:column;align-items:center;justify-content:center;border:1px dashed #c5ceba;background:#fbfcf8;border-radius:9px;transition:background .2s,border-color .2s,transform .2s;padding:20px 10px}.upload-zone:hover,.upload-zone.dragging{background:#eef2e7;border-color:var(--accent)}.upload-zone.dragging{transform:scale(1.015)}.upload-icon{position:relative;margin-bottom:12px}.upload-icon>svg{width:28px;height:28px;color:#8b9c76;stroke-width:1.3}.upload-icon>span{position:absolute;right:-6px;bottom:0;display:flex;align-items:center;justify-content:center;font-size:12px;border-radius:50%;height:15px;width:15px;background:#edf2e6;color:#587346;border:1px solid #fafbf7}.upload-zone>strong{font-size:12px;font-weight:550;line-height:1.8}.upload-zone>span:not(.upload-icon){font-size:11px;color:#8a927f}.upload-zone>small{font-size:9px;letter-spacing:.2px;color:#a0a695;margin-top:13px}.field-hint{font-size:10px;line-height:1.7;color:#8b9283;margin:9px 0 0}.reference-list{display:flex;flex-direction:column;gap:8px}.reference-card{display:grid;grid-template-columns:49px minmax(0,1fr) 24px;align-items:center;gap:10px;border:1px solid var(--line);border-radius:7px;background:#fff;padding:7px;margin-bottom:1px}.reference-card:last-child{margin-bottom:10px}.reference-card img{width:49px;height:55px;border-radius:4px;object-fit:cover;background:#f1f2ed}.reference-info{min-width:0}.reference-name{display:block;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;font-size:10px;max-width:190px;margin-bottom:6px;color:#626b58}.reference-info select{border:1px solid #e3e6dd;border-radius:4px;background:#f7f9f3;color:#647256;font-size:10px;padding:4px 20px 4px 5px;max-width:100%}.remove-reference{width:24px;height:24px;padding:2px;display:flex;align-items:center;justify-content:center;color:#989e91;border-radius:4px}.remove-reference:hover{background:#f2f3ee;color:#5d6d50}.remove-reference svg{width:15px;height:15px}.reference-list:not(:empty)+.upload-zone{min-height:70px;display:grid;grid-template-columns:22px auto;justify-content:center;gap:0 8px;padding:12px}.reference-list:not(:empty)+.upload-zone .upload-icon{margin:0;grid-row:1/3}.reference-list:not(:empty)+.upload-zone .upload-icon>svg{width:21px;height:21px}.reference-list:not(:empty)+.upload-zone>small{display:none}.reference-list:not(:empty)+.upload-zone>strong{font-size:10px}.reference-list:not(:empty)+.upload-zone>span:not(.upload-icon){font-size:9px}.field-label{display:block;font-size:11px;color:#58624e;font-weight:550;margin-bottom:7px}.field-label>span{font-size:9px;color:#a0a797;font-weight:400;margin-left:3px}.text-input,textarea{width:100%;background:#fff;border:1px solid #e1e5d9;border-radius:6px;color:#394331;line-height:1.8;padding:10px 12px;font-size:12px;transition:border-color .2s}.text-input{height:41px;margin-bottom:15px}textarea{resize:vertical;min-height:106px}input::placeholder,textarea::placeholder{color:#a1a89a;font-size:11px}.text-input:focus,textarea:focus{border-color:#91a179;outline:none;box-shadow:0 0 0 3px #dfe7d555}.style-fieldset{border:0;padding:0;margin:15px 0 0;min-width:0}.style-fieldset legend{padding:0;margin-bottom:8px}.choice-group{display:flex;gap:6px}.choice-group label{position:relative;flex:1;cursor:pointer}.choice-group input,.preset-card>input{position:absolute;opacity:0;pointer-events:none;width:1px;height:1px}.choice-group span{display:flex;align-items:center;justify-content:center;gap:6px;min-height:37px;border:1px solid var(--line);background:#fff;color:#8b9382;font-size:11px;border-radius:5px;transition:background .15s,border-color .15s}.choice-group svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}.choice-group input:checked+span{background:#edf2e5;border-color:#a8b696;color:#4c6538;font-weight:600}.choice-group input:focus-visible+span,.preset-card:has(input:focus-visible){outline:3px solid #91ab72;outline-offset:2px}.preset-options{display:flex;flex-direction:column;gap:8px}.preset-card{position:relative;display:flex;align-items:center;gap:11px;padding:12px 13px;background:#fff;border:1px solid var(--line);border-radius:7px;cursor:pointer;transition:background .15s,border-color .15s}.preset-card:has(input:checked){background:#f1f4eb;border-color:#acb99a}.preset-mini{display:grid;width:29px;height:36px;gap:2px;padding:4px;border:1px solid #cbd3c0;background:#fdfefa;grid-template-columns:1fr 1fr;flex:none}.preset-mini i{background:#dce3d0;min-height:4px}.full-mini i:first-child,.full-mini i:last-child{grid-column:span 2}.simple-mini{grid-template-columns:repeat(3,1fr);height:26px}.preset-copy{min-width:0;flex:1}.preset-copy strong{display:flex;align-items:center;gap:6px;font-size:11px;font-weight:550;margin-bottom:5px}.preset-copy em{font-size:8px;font-weight:500;font-style:normal;background:#dee8d1;padding:2px 4px;border-radius:3px;color:#627b44}.preset-copy small{font-size:9px;color:#8c9581}.radio-dot{width:13px;height:13px;border:1px solid #d3dac8;border-radius:50%;position:relative;flex:none}.preset-card:has(input:checked) .radio-dot{border-color:#647d4d}.preset-card:has(input:checked) .radio-dot:after{content:"";position:absolute;inset:3px;border-radius:50%;background:#647d4d}.paper-control{display:flex;align-items:center;margin-top:15px;gap:12px}.paper-control>.field-label{margin:0;flex:1}.paper-choices{gap:3px;min-width:97px}.paper-choices span{min-height:27px;font-size:10px;border-radius:4px}.paper-note{font-size:9px;color:#919b86}.create-area{padding-top:1px}.primary-button{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:47px;padding:11px 18px;background:var(--accent);color:#fff;border:1px solid var(--accent);border-radius:7px;font-size:12px;font-weight:550;transition:background .15s,transform .15s;white-space:nowrap}.primary-button:hover:not(:disabled){background:var(--accent-hover);border-color:var(--accent-hover)}.primary-button:active:not(:disabled){transform:translateY(1px)}#createBtn{width:100%}#createBtn>svg{width:16px;height:16px}.button-arrow{margin-left:auto}#createBtn>span{margin-right:auto}.create-hint{font-size:10px;color:#929b86;margin:9px 0 0;line-height:1.7;text-align:center}.subtle-button{font-size:10px;color:#748464;display:inline-flex;gap:6px;align-items:center;padding:5px 0}.subtle-button:hover{color:var(--accent-hover);text-decoration:underline}#setupLink{display:flex;margin:3px auto 0}.import-area{border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:6px;margin-top:24px;padding-top:15px}.import-area>span{font-size:10px;color:#929b86}.import-area .text-button{font-size:10px}.import-area svg{width:13px;height:13px}.control-footer{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:10px;margin-top:23px;padding-top:17px;border-top:1px solid #e6e9df;color:#a2aa98;font-size:8px}.control-footer a:hover{color:#657a51}.control-footer>span{font-size:7px;letter-spacing:1px}.preview-area{min-width:0}.preview-header{height:67px;display:flex;align-items:center;justify-content:space-between}.preview-header .eyebrow{margin-bottom:6px;font-size:8px}.preview-header h2{font-size:16px;letter-spacing:-.3px;font-weight:550;margin:0;max-width:500px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.preview-tools{display:flex;align-items:center;gap:11px}.paper-badge{font-size:10px;color:#7c8870;background:#edf0e6;border:1px solid #e4e9db;border-radius:5px;padding:6px 9px}.icon-button{width:31px;height:31px;display:flex;align-items:center;justify-content:center;color:#7d8970;border-radius:5px}.icon-button:hover:not(:disabled){background:#e9eee1}.icon-button svg{height:16px;width:16px}.canvas-surface{position:relative;border:1px solid #e0e4d8;border-radius:10px;background-color:#eaece5;background-image:radial-gradient(#cbd1c1 .65px,transparent .65px);background-size:12px 12px;padding:19px 34px 16px;overflow:hidden;min-height:610px}.canvas-topline{display:flex;align-items:center;justify-content:space-between;margin:0 0 20px;font-size:8px;letter-spacing:.3px;color:#98a18b}.canvas-state{display:flex;align-items:center;gap:5px;font-size:9px}.canvas-state>span{display:block;width:4px;height:4px;background:#96a085;border-radius:50%}.paper{--paper-w:210;--paper-h:297;--margin:10;position:relative;aspect-ratio:var(--paper-w)/var(--paper-h);width:100%;max-width:554px;margin:0 auto;background:var(--paper);box-shadow:0 3px 8px #3c443114,0 14px 25px #3c44311c;overflow:hidden;transition:aspect-ratio .2s}.paper-inner{position:absolute;left:calc(var(--margin)/var(--paper-w)*100%);right:calc(var(--margin)/var(--paper-w)*100%);top:calc(var(--margin)/var(--paper-h)*100%);bottom:calc(var(--margin)/var(--paper-h)*100%);display:flex;align-items:center;justify-content:center;min-width:0;min-height:0}.result-image{height:100%;width:100%;object-fit:contain;display:block}.canvas-caption{text-align:center;color:#98a28b;font-size:9px;margin:19px 0 1px;line-height:1.6}.sample-sheet{width:100%;height:100%;display:flex;flex-direction:column;color:#8a9580;container-type:inline-size;overflow:hidden;user-select:none;opacity:.9}.sample-top{display:flex;justify-content:space-between;border-bottom:1px solid #e1e6d9;padding-bottom:3.3cqw}.sample-kicker{font-size:1.3cqw;letter-spacing:.3cqw;color:#9aa88a;margin:0 0 2.1cqw}.sample-top h3{font-size:5.3cqw;line-height:1.14;font-weight:450;letter-spacing:-.13cqw;color:#79886b;margin:0}.sample-top h3>span{color:#b2bf9c}.sample-top-mark{font-size:1.5cqw;line-height:1.6;text-align:right;letter-spacing:.3cqw;padding-top:.5cqw}.sample-profile{display:grid;grid-template-columns:35% 1fr;gap:6cqw;padding:3.8cqw 0}.portrait-box{position:relative;background:#e8ecdf;height:26cqw;display:flex;align-items:end;justify-content:center;overflow:hidden}.portrait-box>svg{height:105%;width:105%;opacity:.65}.portrait-box>span{position:absolute;bottom:1.3cqw;left:1.6cqw;font-size:1.15cqw;letter-spacing:.15cqw;color:#929e83}.profile-copy{display:flex;flex-direction:column;padding-top:1cqw}.sample-label{font-size:1.45cqw;letter-spacing:.15cqw;margin-bottom:3cqw;display:block}.profile-copy>strong{font-size:3.2cqw;line-height:1.45;font-family:Georgia,serif;font-weight:400;color:#839074}.sample-lines{margin:2.6cqw 0;display:grid;gap:1.2cqw}.sample-lines i{height:.4cqw;background:#e6eadf;max-width:95%}.sample-lines i:nth-child(2){width:80%}.sample-lines i:nth-child(3){width:65%}.palette-dots{display:flex;gap:1.4cqw}.palette-dots i{display:block;width:2.5cqw;height:2.5cqw;border-radius:50%;background:#ced6c1}.palette-dots i:nth-child(2){background:#8b9a79}.palette-dots i:nth-child(3){background:#b9c4a5}.palette-dots i:nth-child(4){background:#e3e7d8}.sample-section{border-top:1px solid #e5e9de;padding-top:2.2cqw}.sample-section-title{display:flex;justify-content:space-between;gap:4px;align-items:center;margin-bottom:2cqw;line-height:1.5}.sample-section-title>span{font-size:1.45cqw;letter-spacing:.08cqw}.sample-section-title>small{font-size:.95cqw;letter-spacing:.08cqw;color:#a2ac96}.sample-figures{display:flex;justify-content:space-around;gap:3cqw;margin-bottom:2.2cqw}.sample-figures>div{display:flex;flex-direction:column;align-items:center;flex:1;min-width:0;background:#f2f4ee;padding:1cqw 0}.sample-figures svg{width:100%;height:25cqw;opacity:.7}.sample-figures span{display:block;font-size:1.15cqw;letter-spacing:.1cqw;margin-top:1.4cqw;color:#9ca68f}.figure-quarter svg{transform:scaleX(.8)}.figure-side svg{transform:scaleX(.55)}.figure-back svg{transform:scaleX(-1);filter:brightness(.95)}.sample-duo{display:grid;grid-template-columns:1fr 1.12fr;gap:3cqw}.sample-faces{display:flex;gap:1cqw}.sample-faces svg{background:#f1f4ed;width:0;flex:1;height:15cqw;opacity:.65}.face-details>svg:last-child{transform:scaleX(-1)}.expression-faces svg{height:12cqw}.mini-labels{display:flex;justify-content:space-around;gap:1cqw;margin:1.5cqw 0 2.5cqw;font-size:.9cqw;color:#a0a992;letter-spacing:.02cqw}.bottom-duo{margin-top:2cqw;grid-template-columns:1.12fr 1fr}.pose-figures{gap:1cqw}.pose-figures svg{height:16cqw}.pose-figures>div{background:transparent;padding:0}.pose-figures>div:nth-child(2){transform:rotate(3deg)}.pose-figures>div:nth-child(3){transform:scaleX(.75)}.costume-swatches{display:flex;gap:1.3cqw}.costume-swatches i{flex:1;height:13.5cqw;background:repeating-linear-gradient(45deg,#dce2d3,#dce2d3 2px,#d7decc 2px,#d7decc 3px)}.costume-swatches i:nth-child(2){background:#b8c5a9;position:relative;overflow:hidden}.costume-swatches i:nth-child(2):after{content:"";position:absolute;left:40%;top:0;bottom:0;width:12%;border-left:1px solid #95a37f;border-right:1px solid #95a37f;transform:rotate(-18deg)}.costume-swatches i:nth-child(3){background:repeating-linear-gradient(90deg,#e4e7df,#e4e7df 2px,#d9dfcf 2px,#d9dfcf 3px)}.palette-section{padding-top:1.8cqw}.palette-section .sample-section-title{margin-bottom:1.5cqw}.color-strip{display:flex;gap:1.4cqw}.color-strip>i{flex:1;height:4.5cqw;background:#d9dfd0}.color-strip>i:nth-child(2){background:#aebc98}.color-strip>i:nth-child(3){background:#7b8b69}.color-strip>i:nth-child(4){background:#bac2ac}.color-strip>i:nth-child(5){background:#e2e5d9}.color-strip>i:nth-child(6){background:#8f9e7c}.sample-bottom{display:flex;justify-content:space-between;border-top:1px solid #e5e9de;margin-top:auto;padding-top:2.5cqw;font-size:.95cqw;letter-spacing:.13cqw}.sample-sheet.is-simple .sample-profile,.sample-sheet.is-simple .bottom-duo,.sample-sheet.is-simple .palette-section{display:none}.sample-sheet.is-simple .sample-top{padding-bottom:6cqw}.sample-sheet.is-simple .sample-section{padding-top:5cqw}.sample-sheet.is-simple>.sample-section .sample-figures>div:last-child{display:none}.sample-sheet.is-simple>.sample-section .sample-figures svg{height:47cqw}.sample-sheet.is-simple>.sample-section .sample-figures{margin-bottom:5cqw;gap:2cqw}.sample-sheet.is-simple .sample-duo:not(.bottom-duo){display:block}.sample-sheet.is-simple .sample-duo>.sample-section:first-child{display:none}.sample-sheet.is-simple .expression-faces svg{height:30cqw}.sample-sheet.is-simple .sample-top h3{font-size:7cqw}.sample-sheet.is-simple .sample-section-title>span{font-size:2cqw}.sample-sheet.is-simple .sample-section-title>small{display:none}.sample-sheet.is-simple .sample-faces{gap:2cqw}.sample-sheet.is-simple .sample-bottom{font-size:1.3cqw}.sample-sheet.is-simple .mini-labels{font-size:1.3cqw}.working-overlay{position:absolute;inset:0;background:#f2f4eceb;backdrop-filter:blur(7px);z-index:2;display:flex;align-items:center;justify-content:center;padding:25px}.working-card{text-align:center;max-width:330px}.working-orbit{height:78px;width:78px;position:relative;margin:0 auto 27px;display:flex;align-items:center;justify-content:center;color:#71855c}.working-orbit>svg{width:30px;height:30px;fill:none;stroke:currentColor;stroke-width:1.2}.working-orbit>span{position:absolute;inset:0;border:1px solid #d9e1cc;border-top-color:#6c8354;border-radius:50%;animation:spin 2s linear infinite}.working-card .eyebrow{font-size:8px;letter-spacing:1.8px}.working-card h3{font-size:21px;font-weight:500;letter-spacing:-.7px;margin:0 0 13px}.working-card>p:not(.eyebrow){font-size:12px;line-height:1.8;color:#859174}.elapsed{font-size:11px;font-variant-numeric:tabular-nums;color:#8e9d7d;display:block;margin:21px 0 13px;letter-spacing:1px}.working-card>.subtle-button{font-size:11px;color:#9a9f91}.result-toolbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:15px;margin-top:15px;padding:16px 19px;border:1px solid #dee6d4;border-radius:9px;background:#f0f5e9}.result-status{display:flex;gap:10px;align-items:center;min-width:0}.result-check{width:29px;height:29px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:#e1ebd4;color:#5c7543;flex:none}.result-check svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.6}.result-status strong{display:block;font-size:11px;font-weight:550}.result-status div>span{display:block;color:#89967a;font-size:9px;margin-top:5px}.result-actions{display:flex;gap:6px;flex-wrap:wrap}.secondary-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:35px;padding:8px 11px;border-radius:5px;border:1px solid #d4ddc9;background:#fcfdf9;font-size:10px;color:#637454;white-space:nowrap}.secondary-button:hover:not(:disabled){background:#e8eedf}.secondary-button svg{width:13px;height:13px}.primary-button.compact{min-height:35px;padding:8px 13px;font-size:10px;border-radius:5px;gap:7px}.primary-button.compact svg{width:14px;height:14px}.output-details{display:flex;align-items:start;gap:10px;justify-content:space-between;margin-top:12px;padding:3px 2px}.output-details details{flex:1;max-width:520px}.output-details summary{cursor:pointer;color:#929c85;font-size:10px;line-height:2;padding:5px 0}.output-details summary>span{font-size:9px;margin-left:8px;color:#a3aa98}.output-details-body{padding:8px 0 12px;max-width:440px}.output-details dl{margin:0 0 15px;display:grid;gap:8px;font-size:10px}.output-details dl>div{display:flex;justify-content:space-between;gap:15px}.output-details dt{color:#96a088}.output-details dd{margin:0;color:#6f7e60}.margin-label{display:flex;align-items:center;justify-content:space-between;color:#869476;font-size:10px}.margin-label strong{font-weight:500;font-size:10px}.output-details input[type=range]{accent-color:#788d62;width:100%;margin:9px 0 0;height:12px}.prompt-link{font-size:9px;margin-top:2px;color:#929d85}.prompt-link svg{height:12px;width:12px}.error-panel{display:flex;gap:12px;border:1px solid #e2d8c6;background:#f6f2e9;border-radius:8px;padding:17px 20px;margin-top:15px;color:#827354}.error-panel>svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.5;flex:none}.error-panel strong{font-size:12px;font-weight:600}.error-panel p{font-size:11px;line-height:1.8;margin:8px 0;overflow-wrap:anywhere}.workflow-note{display:flex;align-items:center;justify-content:center;gap:18px;font-size:8px;margin:22px 0 8px;color:#a2ab96}.workflow-note span{display:flex;align-items:center;gap:6px;font-variant-numeric:tabular-nums}.workflow-note b{font-weight:400;font-size:9px;color:#919d84}.workflow-note i{font-style:normal;color:#bbc3b2}.modal,.side-dialog,.image-dialog{border:1px solid #dfe5d5;color:var(--ink);background:#fafbf6;border-radius:14px;padding:28px;width:calc(100% - 36px);max-width:500px;box-shadow:0 25px 70px #1f291b35;max-height:90vh;overflow:auto}.modal::backdrop,.side-dialog::backdrop,.image-dialog::backdrop{background:#26302255;backdrop-filter:blur(3px)}.modal-heading{display:flex;align-items:start;justify-content:space-between;gap:20px}.modal-heading .eyebrow{font-size:8px;margin-bottom:8px}.modal-heading h2{font-size:21px;letter-spacing:-.6px;font-weight:550;margin:0}.modal-heading>.icon-button{margin-top:-5px;margin-right:-7px}.modal-description{color:#89957b;font-size:12px;line-height:1.85;margin:18px 0 23px}.modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:23px}.modal-actions button{font-size:11px;min-height:37px}.connection-detail{display:flex;align-items:center;gap:9px;background:#eff3e7;border:1px solid #e1e7d7;border-radius:6px;padding:11px 12px}.connection-detail>p{font-size:11px;line-height:1.8;margin:0;color:#7d8b6d;overflow-wrap:anywhere}.setup-steps{list-style:none;margin:23px 0 20px;padding:0;display:flex;flex-direction:column;gap:19px}.setup-steps>li{display:flex;gap:12px}.setup-steps>li>span{display:flex;align-items:center;justify-content:center;width:23px;height:23px;background:#e8edde;border-radius:50%;flex:none;font-size:10px;color:#7a8c65}.setup-steps strong{font-size:12px;font-weight:550;display:block;margin:3px 0 5px}.setup-steps p{font-size:11px;color:#89957b;line-height:1.8;margin:0 0 9px}.setup-steps code{display:inline-block;background:#eef1e7;border:1px solid #e2e6d7;font:11px/1.8 Consolas,monospace;padding:7px 10px;border-radius:4px;color:#60714f;overflow-wrap:anywhere}.setup-note{font-size:10px;line-height:1.8;color:#9aa38f;border-top:1px solid #e2e7d8;padding-top:15px}.side-dialog{margin:0 0 0 auto;min-height:100dvh;max-height:100dvh;width:420px;max-width:calc(100vw - 24px);border-radius:12px 0 0 12px;padding:28px}.history-list{display:grid;gap:10px}.history-item{display:grid;grid-template-columns:63px minmax(0,1fr) 20px;gap:13px;align-items:center;width:100%;border:1px solid #e1e6d9;background:white;border-radius:7px;padding:10px;text-align:left}.history-item:hover{background:#f0f4e8;border-color:#bdccaa}.history-thumb{width:63px;height:81px;background:#eff2e8;display:flex;align-items:center;justify-content:center;border:1px solid #e5e9dd;border-radius:3px;overflow:hidden}.history-thumb img{height:100%;width:100%;object-fit:contain}.history-thumb svg{width:22px;height:22px;color:#a0af8d}.history-item-copy{min-width:0}.history-item-copy>strong{font-size:12px;display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-weight:550;margin-bottom:8px}.history-item-copy>span{font-size:9px;color:#9aa68d;display:block;margin:4px 0}.history-item-copy .job-status{color:#788b63;font-size:10px}.history-arrow{height:14px!important;width:14px!important;color:#9aa88a}.empty-history{font-size:12px;color:#99a58b;text-align:center;padding:35px 15px;line-height:1.8}.prompt-modal{max-width:670px}.prompt-modal pre{white-space:pre-wrap;overflow-wrap:anywhere;background:#eef2e7;border:1px solid #dfe5d5;padding:17px;font:11px/1.85 var(--font);color:#6f7d60;border-radius:7px;max-height:50vh;overflow:auto}.image-dialog{max-width:1200px;padding:0;background:#e7eae0}.image-dialog-header{display:flex;align-items:center;justify-content:space-between;padding:13px 18px;background:#f6f8f0;position:sticky;top:0;border-bottom:1px solid #dce3d1;font-size:12px;color:#6e7f5d;z-index:1}.image-dialog>img{display:block;width:auto;max-width:100%;height:auto;margin:18px auto;background:white;box-shadow:var(--shadow)}.toast{position:fixed;left:50%;bottom:27px;transform:translateX(-50%);max-width:min(480px,calc(100vw - 30px));padding:13px 21px;border:1px solid #bac9a5;border-radius:8px;background:#405533;color:#fff;font-size:12px;line-height:1.7;z-index:20;box-shadow:0 5px 20px #30432630;text-align:center}.toast.is-error{background:#715e40;border-color:#988160}.low-resolution{color:#a18b55!important}.is-loading{opacity:.65;pointer-events:none}.loading-mark{display:inline-block;width:13px;height:13px;border:1px solid currentColor;border-right-color:transparent;border-radius:50%;animation:spin .8s linear infinite}.file-counter{font-size:9px}
@keyframes spin{to{transform:rotate(360deg)}}@keyframes pulse{50%{opacity:.35}}
@media(min-width:1500px){.workspace{gap:64px;padding:43px 60px 32px}.paper{max-width:595px}.canvas-surface{padding-top:22px}.preview-header{height:67px}.intro h1{font-size:31px}}
@media(max-width:1100px){.app-header{padding:0 25px}.workspace{grid-template-columns:300px minmax(0,1fr);gap:28px;padding:29px 26px}.intro h1{font-size:27px}.canvas-surface{padding:17px 20px 16px;min-height:560px}.canvas-topline{font-size:7px;margin-bottom:17px}.result-toolbar{padding:14px;gap:12px}.result-actions{width:100%}.result-actions>.compact{margin-left:auto}.output-details{flex-direction:column;gap:0}.output-details>details{width:100%;max-width:none}.workflow-note{gap:11px}}
@media(max-width:800px){.app-header{height:73px;padding:0 20px}.brand-wordmark{font-size:15px}.brand-mark{width:29px;height:29px}.header-actions{gap:9px}.header-actions .text-button>span{display:none}.header-actions .text-button{padding:6px}.header-divider{display:none}.connection-pill{font-size:10px;padding:7px 9px}.workspace{grid-template-columns:260px minmax(0,1fr);padding:23px 20px;gap:20px}.intro h1{font-size:23px}.intro .eyebrow{font-size:8px;letter-spacing:1px}.intro>p:last-child{font-size:11px}.canvas-surface{padding:14px 13px;min-height:480px}.canvas-topline>span:last-child{display:none}.canvas-caption{font-size:8px}.preview-header{height:64px}.preview-header h2{font-size:14px;max-width:180px}.preview-tools{gap:3px}.paper-badge{font-size:9px;padding:5px 6px}.workflow-note{gap:6px;flex-wrap:wrap}.workflow-note b{font-size:8px}.form-section{margin-bottom:24px}.result-actions{gap:5px}.result-actions .secondary-button{padding:7px 8px}.result-actions .primary-button{padding:7px 10px}.result-actions #reviseBtn{width:100%;justify-content:flex-start;border:0;background:transparent;padding:2px 0 5px}.import-area{flex-wrap:wrap}.control-footer>span{display:none}}
@media(max-width:620px){.app-header{height:68px;padding:0 17px;gap:12px}.brand-wordmark{font-size:14px}.brand-wordmark>span{font-size:6px;letter-spacing:1.4px}.brand{gap:9px}.brand-mark{height:25px;width:25px;gap:2px}.header-actions{gap:5px}.connection-pill{border:0;background:transparent;padding:5px}.connection-pill>span:last-child{display:none}.header-actions .text-button svg{width:17px;height:17px}.workspace{display:flex;flex-direction:column;padding:26px 20px;gap:28px}.controls,.preview-area{width:100%}.intro h1{font-size:28px;line-height:1.35}.intro h1 br{display:none}.intro>p:last-child br{display:none}.intro{margin-bottom:25px}.intro .eyebrow{font-size:8px}.form-section{margin-bottom:24px}.upload-zone{min-height:133px}.reference-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.reference-card{grid-template-columns:38px minmax(0,1fr) 20px;gap:7px;margin-bottom:8px;padding:5px}.reference-card img{width:38px;height:47px}.reference-name{font-size:8px}.reference-info select{font-size:9px;padding:3px}.text-input,textarea{font-size:16px}.text-input{height:43px}textarea{min-height:95px}.style-fieldset{margin-top:13px}.preset-options{display:grid;grid-template-columns:1fr 1fr;gap:8px}.preset-card{padding:12px 10px;gap:8px}.preset-mini{width:23px;height:31px}.simple-mini{height:23px}.preset-copy strong{font-size:10px;gap:3px}.preset-copy small{font-size:8px;line-height:1.6;display:block}.radio-dot{display:none}.preset-copy em{font-size:7px;padding:1px 3px}.paper-control{margin-top:16px}.import-area{margin-top:18px;flex-wrap:nowrap}.control-footer{margin-top:16px;padding-top:13px}.preview-header{height:59px}.preview-header h2{font-size:16px;max-width:240px}.preview-tools{gap:9px}.canvas-surface{min-height:500px;padding:15px 19px}.canvas-topline>span:last-child{display:block}.canvas-topline{margin-bottom:17px}.canvas-caption{font-size:9px;margin-top:16px}.result-toolbar{padding:14px}.result-actions #reviseBtn{width:auto;border:1px solid #d4ddc9;background:#fcfdf9;padding:8px 10px}.result-actions .primary-button{margin-left:auto}.output-details{flex-direction:row}.output-details>details{flex:1}.output-details summary{font-size:9px}.output-details summary>span{display:none}.modal,.side-dialog{padding:23px}.modal-heading h2{font-size:20px}.modal-description{font-size:11px}.modal textarea{font-size:14px}.connection-detail>p{font-size:10px}.setup-steps code{font-size:10px}.result-status strong{font-size:12px}.working-card h3{font-size:20px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.001ms!important;animation-iteration-count:1!important;transition:none!important;scroll-behavior:auto!important}}

/* Liquid glass studio. The output paper keeps its original white background. */
:root{
  --bg:#6e79dc;--paper:#fff;--ink:#233367;--muted:#64719a;
  --accent:#7060dc;--accent-hover:#5849c6;--line:rgba(255,255,255,.52);
  --soft:rgba(255,255,255,.42);--olive:#7d7cbd;
  --shadow:0 18px 44px rgba(40,43,115,.16);
  --glass:linear-gradient(145deg,rgba(255,255,255,.78),rgba(255,255,255,.64));
  --glass-edge:inset 0 1px 0 rgba(255,255,255,.9),inset 1px 0 0 rgba(255,255,255,.55);
}
body{
  min-height:100vh;isolation:isolate;
  background:radial-gradient(ellipse at 3% 17%,#397bff 0,transparent 45%),
    radial-gradient(ellipse at 94% 84%,#ffc09c 0,transparent 47%),
    radial-gradient(ellipse at 80% 4%,#9c77de 0,transparent 52%),
    linear-gradient(128deg,#4764df 6%,#8584dc 55%,#d4a3cc 100%);
  background-attachment:fixed;
}
body::before,body::after{content:"";position:fixed;pointer-events:none;border-radius:50%;z-index:-1}
body::before{width:430px;height:430px;left:-170px;top:32vh;background:radial-gradient(circle at 35% 30%,#8fe7ff50,transparent 65%);filter:blur(7px)}
body::after{width:370px;height:370px;right:-135px;top:18vh;background:radial-gradient(circle at 35% 30%,#ffe3fc38,transparent 67%)}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible{outline-color:#5747c4;outline-offset:4px}
.app-header{
  max-width:1440px;width:calc(100% - 56px);height:78px;margin:24px auto 22px;padding:0 28px;
  background:linear-gradient(115deg,#2c46b44a,#66529c6b);border:1px solid #ffffff60;border-radius:23px;
  color:#fff;box-shadow:var(--glass-edge),0 12px 32px #30359012;
  backdrop-filter:blur(22px) saturate(135%);-webkit-backdrop-filter:blur(22px) saturate(135%);
}
.brand{gap:12px}.brand-wordmark{font-size:18px;letter-spacing:-.65px}.brand-wordmark>span{color:#eef1ff;letter-spacing:2.3px;font-size:8px}
.brand-mark{width:35px;height:35px;gap:4px;transform:rotate(-9deg);filter:drop-shadow(0 3px 6px #444db431)}
.brand-mark i{background:linear-gradient(145deg,#fce9ff,#c2d8ff);border:1px solid #fff8;border-radius:6px;box-shadow:inset 0 1px 1px #fff9}
.brand-mark i:nth-child(2){background:linear-gradient(140deg,#aee6ff,#b7b2ff)}
.brand-mark i:nth-child(3){background:linear-gradient(140deg,#f8b6e7,#ffced1)}
.brand-mark i:nth-child(4){background:linear-gradient(140deg,#d8b1ff,#969cfa)}
.header-actions{gap:15px}.header-actions .text-button{color:#fff;padding:9px 10px;border:1px solid transparent;border-radius:12px;transition:background .2s,border-color .2s}
.header-actions .text-button:hover{background:#ffffff22;border-color:#ffffff35;color:#fff}
.header-divider{background:#ffffff40}.connection-pill{background:#f8f8ff24;color:#fff;border-color:#ffffff5c;padding:9px 13px;box-shadow:inset 0 1px 0 #ffffff2b}
.connection-pill.ready{background:#f0fff42e;color:#fff;border-color:#deffe65c}
.connection-pill.ready .status-dot{background:#a8ffda;box-shadow:0 0 0 3px #a8ffda23,0 0 8px #a8ffda55}
.connection-pill.offline .status-dot{background:#ffe3b3}.connection-pill.busy .status-dot{background:#dad0ff}
.workspace{max-width:1496px;grid-template-columns:350px minmax(0,1fr);gap:24px;padding:0 28px 40px;align-items:start}
.controls,.preview-area{
  border:1px solid #ffffff80;border-radius:28px;background:var(--glass);
  box-shadow:var(--glass-edge),0 16px 50px #34388119;
  backdrop-filter:blur(26px) saturate(125%);-webkit-backdrop-filter:blur(26px) saturate(125%);
}
.controls{padding:26px 24px 22px}.preview-area{padding:19px 24px 23px}
.intro{position:relative;isolation:isolate;overflow:hidden;margin:-9px -7px 25px;padding:23px 18px 22px;border:1px solid #fff5;border-radius:21px;background:linear-gradient(125deg,#3e5bd5ec,#7350bcec 82%,#874dadec);box-shadow:inset 0 1px 0 #ffffff65,0 8px 22px #615eb719}
.intro::after{
  content:"";position:absolute;z-index:-1;right:-26px;top:17px;width:106px;height:106px;border:2px solid #ffffff60;border-radius:50%;
  background:radial-gradient(circle at 30% 24%,#ffffff9c 0,#ffffff12 24%,#c5bcff15 48%,#fce7ff63 73%,#fff8 79%,#ffffff15 86%);
  box-shadow:inset 5px 5px 8px #ffffff76,inset -5px -5px 12px #e1beff4d,0 9px 20px #5652b633;transform:rotate(-18deg);
}
.intro .eyebrow{font-size:8px;letter-spacing:1.6px;color:#f0efff;margin-bottom:12px}
.intro .eyebrow>span{background:#e7d1ff;box-shadow:0 0 8px #ffffff80}
.intro h1{font-size:27px;line-height:1.4;letter-spacing:-1.1px;font-weight:680;color:#fff;margin-bottom:11px;text-shadow:0 1px 10px #4146a822}
.intro>p:last-child{color:#f2f2ff;font-size:11px;line-height:1.85}
.form-section{margin-bottom:25px}.section-heading{margin-bottom:12px}.section-heading h2{font-size:13px;color:#25336b;letter-spacing:-.25px}
.step-number{width:24px;height:24px;border-radius:8px;display:inline-flex;align-items:center;justify-content:center;color:#5f58ae;background:linear-gradient(145deg,#ffffffc2,#ebe5ff90);border:1px solid #ffffffa3;box-shadow:0 3px 9px #7672ba10;font-size:9px;letter-spacing:0}
.subtle{color:#5d6895}.field-label{color:#354475;font-size:11px}.field-label>span{color:#6c769b}
.field-hint,.create-hint,.paper-note{color:#566187}.field-hint{font-size:10px;line-height:1.85}
.upload-zone{min-height:156px;border:1px dashed #8b91cbaa;border-radius:16px;background:linear-gradient(135deg,#ffffff8c,#ffffff3d);box-shadow:inset 0 1px 0 #ffffffb0;color:#344277}
.upload-zone:hover,.upload-zone.dragging{background:linear-gradient(135deg,#fff9,#eee9ff85);border-color:#8c72d1;box-shadow:inset 0 1px 0 #fff,0 5px 20px #7473c11b}
.upload-icon{margin-bottom:11px}.upload-icon>svg{width:31px;height:31px;color:#7a6cc4}
.upload-icon>span{background:#dcd3ff;color:#6850b5;border-color:#ffffffbb;box-shadow:0 2px 6px #7265b322}
.upload-zone>strong{font-size:12px;color:#344277}.upload-zone>span:not(.upload-icon){color:#66719b}.upload-zone>small{color:#69759c;font-size:9px}
.text-input,textarea{border:1px solid #ffffffb0;border-radius:12px;background:#ffffff8a;color:#27366d;box-shadow:inset 0 1px 2px #6372b311,0 2px 7px #525e9c06;font-size:12px;padding:10px 12px}
.text-input{height:44px}textarea{min-height:110px}
input::placeholder,textarea::placeholder{color:#677297;font-size:11px}
.text-input:focus,textarea:focus{border-color:#9384d8;background:#ffffffb0;box-shadow:0 0 0 3px #8e79dd24}
.choice-group{gap:7px}.choice-group span{min-height:39px;color:#64719b;background:#ffffff69;border-color:#ffffffb3;border-radius:10px;box-shadow:inset 0 1px 0 #ffffff5c}
.choice-group input:checked+span{background:linear-gradient(140deg,#eee8ffdb,#dbdcffb8);border-color:#9c8bd6;color:#5e48ad;box-shadow:inset 0 1px 0 #fff8,0 3px 10px #7662b91b}
.choice-group input:focus-visible+span,.preset-card:has(input:focus-visible){outline-color:#5747c4}
.preset-card{border-color:#ffffffad;border-radius:13px;background:#ffffff59;padding:13px 12px;box-shadow:inset 0 1px 0 #ffffff54}
.preset-card:has(input:checked){background:linear-gradient(125deg,#f1eaffc7,#e5e6ffc2);border-color:#a394d9;box-shadow:inset 0 1px 0 #fffc,0 4px 11px #7763b414}
.preset-copy strong{color:#354277;font-size:11px}.preset-copy small{color:#65739a;line-height:1.7}
.preset-copy em{background:#d8cdf5;color:#624da4;border-radius:5px;padding:2px 5px}
.preset-mini{border-color:#b7add9;background:#ffffffa1;border-radius:4px}.preset-mini i{background:#c1b5df}
.radio-dot{border-color:#a9a1c4;background:#ffffff77}.preset-card:has(input:checked) .radio-dot{border-color:#8570bd}.preset-card:has(input:checked) .radio-dot:after{background:#8570bd}
.paper-choices span{min-height:29px;border-radius:7px}.paper-control{gap:11px}
.primary-button{min-height:49px;border:1px solid #b3a0ec;border-radius:13px;background:linear-gradient(115deg,#6269e5,#9660d2);box-shadow:inset 0 1px 0 #ffffff48,0 7px 18px #6556be2b;font-weight:600;color:#fff}
.primary-button:hover:not(:disabled){background:linear-gradient(115deg,#525ed8,#8651c4);border-color:#d4c8ff;box-shadow:inset 0 1px 0 #ffffff50,0 9px 22px #6556be3b}
.primary-button:disabled{opacity:.55;box-shadow:inset 0 1px 0 #ffffff35}
.primary-button.compact{border-radius:9px}.secondary-button{background:#ffffff80;border-color:#ffffffc4;border-radius:9px;color:#4d5688;box-shadow:inset 0 1px 0 #fff9}
.secondary-button:hover:not(:disabled){background:#eeebffd6;border-color:#b8a9e1}
.text-button,.subtle-button{color:#5b5595}.text-button:hover,.subtle-button:hover{color:#4b3c9f}
.import-area{border-top-color:#ffffff85;padding-top:17px}.import-area>span{color:#65729a}
.control-footer{border-color:#ffffff80;color:#6b7399}.control-footer a:hover{color:#5945a7}
.preview-header{height:65px;padding:0 3px 4px}.preview-header .eyebrow{font-size:8px;color:#70749e;letter-spacing:1.8px}.preview-header h2{color:#303b72;font-size:17px;font-weight:650;letter-spacing:-.5px}
.preview-tools{gap:9px}.paper-badge{border-color:#ffffffa6;border-radius:9px;color:#666093;background:#ffffff6e;padding:7px 10px;box-shadow:inset 0 1px 0 #fff7}
.icon-button{color:#6b609e;border-radius:9px}.icon-button:hover:not(:disabled){background:#ffffff70}
.canvas-surface{border-color:#ffffffb2;border-radius:19px;background-color:#ffffff28;background-image:radial-gradient(#ffffff80 .7px,transparent .7px),linear-gradient(150deg,#c8d3ff26,#ffe3ef24);background-size:15px 15px,100% 100%;box-shadow:inset 0 1px 0 #ffffff80,inset 0 -1px 0 #ffffff2e;padding:20px 30px 18px}
.canvas-topline,.canvas-caption{color:#63719a}.canvas-state{color:#626c9a}.canvas-state>span{background:#9b87d6;box-shadow:0 0 0 3px #c9b8ee33}
.paper{background:#fff;box-shadow:0 5px 12px #333b7815,0 20px 38px #3c3c7a24;border-radius:2px}
.sample-sheet.sample-reference{display:flex;align-items:center;justify-content:center;opacity:1;background:#fff}
.sample-reference-image{display:block;width:100%;height:100%;min-width:0;min-height:0;object-fit:contain;object-position:center;background:#fff}
.working-overlay{background:linear-gradient(145deg,#eef0ffef,#f5eaf6ed);backdrop-filter:blur(13px);-webkit-backdrop-filter:blur(13px)}
.working-card h3{color:#344077}.working-card>p:not(.eyebrow){color:#68739d}.working-card .eyebrow{color:#8b78b5}
.working-orbit{color:#8b6dc4}.working-orbit>span{border-color:#ddd3f4;border-top-color:#8c6cc6}.elapsed,.working-card>.subtle-button{color:#8173a5}
.result-toolbar{background:linear-gradient(125deg,#ffffff8c,#f5edff76);border-color:#ffffffc4;border-radius:17px;box-shadow:inset 0 1px 0 #fff9;padding:16px 17px}
.result-status strong{color:#364274}.result-status div>span{color:#66759b}.result-check{background:#d9ebee;color:#4c8f8c;box-shadow:inset 0 1px 0 #ffffff9c}
.output-details{padding:8px 5px 0}.output-details summary,.output-details summary>span,.output-details dt,.margin-label,.prompt-link{color:#626c96}.output-details dd{color:#374674}.output-details input[type=range]{accent-color:#8d70c6}
.workflow-note{margin-top:23px;color:#74769e}.workflow-note b{color:#646d96}.workflow-note i{color:#9188b2}
.error-panel{border-color:#ffffffa3;border-radius:15px;background:#fff1e3b5;color:#8c5b53}.error-panel .subtle-button{color:#8a5757}
.reference-card{border-color:#ffffffb3;border-radius:12px;background:#ffffff7d;box-shadow:inset 0 1px 0 #fff8}
.reference-card img{border-radius:7px;background:#e7e7f3}.reference-name{color:#45517f}.reference-info select{border-color:#cfc8e5;border-radius:6px;background:#f6f4ffd9;color:#66588e}.remove-reference{color:#8c80a6;border-radius:6px}.remove-reference:hover{color:#755398;background:#eee3fa}
.modal,.side-dialog,.image-dialog{color:#29376a;border:1px solid #ffffffca;border-radius:24px;background:linear-gradient(145deg,#f4f4ffed,#f6eef7ed);box-shadow:inset 0 1px 0 #fff,0 26px 80px #2b2d7950;backdrop-filter:blur(32px);-webkit-backdrop-filter:blur(32px)}
.modal::backdrop,.side-dialog::backdrop,.image-dialog::backdrop{background:#30336e55;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
.modal-heading h2{color:#303d72;font-weight:650}.modal-heading .eyebrow{color:#8a75aa}.modal-description,.setup-steps p,.setup-note{color:#6c759a}
.connection-detail{border-color:#ffffffdc;border-radius:12px;background:#e6e6f993}.connection-detail>p{color:#65729a}
.setup-steps>li>span{color:#8470b3;background:#e5dcf5;box-shadow:inset 0 1px 0 #fff9}.setup-steps strong{color:#3c4879}
.setup-steps code{background:#e9e4f694;border-color:#d9d0ec;border-radius:8px;color:#675589}.setup-note{border-color:#dcd7ea}
.side-dialog{border-radius:25px 0 0 25px}.history-item{border-color:#ffffffdf;background:#ffffff7d;border-radius:13px;box-shadow:inset 0 1px 0 #fff}.history-item:hover{background:#e9e3f7ad;border-color:#c6b7e1}
.history-thumb{border-color:#ded8ee;border-radius:8px;background:#efedf6}.history-item-copy>span,.empty-history{color:#7881a3}.history-item-copy .job-status{color:#8c6bae}.history-arrow{color:#9b8db4}
.prompt-modal pre{background:#e8e4f787;border-color:#d7ceeb;border-radius:13px;color:#697195}
.image-dialog{background:#dcdcf0e8}.image-dialog-header{background:#efebfacf;border-color:#d5cce7;color:#67588b;backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px)}
.toast{background:linear-gradient(120deg,#4e57b5f5,#7b51a9f5);border-color:#d9c8ff85;border-radius:14px;box-shadow:inset 0 1px 0 #ffffff38,0 10px 30px #3331753d;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}
.toast.is-error{background:linear-gradient(120deg,#956277f5,#946173f5);border-color:#f1c8db90}.low-resolution{color:#a47351!important}
@media(min-width:1500px){.workspace{gap:28px;padding:0 28px 44px;grid-template-columns:362px minmax(0,1fr)}.controls{padding:28px 28px 23px}.intro h1{font-size:28px}.paper{max-width:595px}}
@media(max-width:1100px){.app-header{width:calc(100% - 40px);padding:0 23px;margin:20px auto}.workspace{grid-template-columns:310px minmax(0,1fr);padding:0 20px 32px;gap:20px}.controls{padding:23px 20px}.preview-area{padding:16px 18px 21px}.intro{margin:-7px -5px 24px;padding:21px 16px}.intro h1{font-size:25px}.intro::after{width:90px;height:90px;right:-32px}.canvas-surface{padding:18px 20px}.result-toolbar{padding:15px}.result-actions{width:100%}}
@media(max-width:800px){.app-header{height:70px;padding:0 20px;border-radius:20px}.brand-wordmark{font-size:16px}.header-actions{gap:4px}.workspace{grid-template-columns:270px minmax(0,1fr);gap:17px}.controls{padding:20px 17px;border-radius:23px}.preview-area{padding:13px 14px 18px;border-radius:23px}.intro{margin:-5px -3px 22px;padding:19px 14px}.intro h1{font-size:22px}.intro .eyebrow{font-size:7px;letter-spacing:1.3px}.intro>p:last-child{font-size:10px}.intro::after{right:-38px;top:30px}.preview-header{height:62px}.preview-header h2{font-size:15px}.canvas-surface{padding:15px 13px;border-radius:15px}.canvas-caption{font-size:8px}.result-actions #reviseBtn{color:#61568f;background:transparent}.paper-badge{padding:6px 7px;font-size:9px}}
@media(max-width:680px){.app-header{width:calc(100% - 28px);height:68px;margin:14px auto 16px;padding:0 17px;border-radius:19px}.brand{gap:10px}.brand-mark{width:29px;height:29px;gap:3px}.brand-wordmark{font-size:15px}.brand-wordmark>span{font-size:6px;letter-spacing:1.8px}.header-actions{gap:2px}.connection-pill{padding:6px 8px}.connection-pill>span:last-child{display:none}.header-actions .text-button{padding:8px}.workspace{display:flex;flex-direction:column;padding:0 14px 28px;gap:19px}.controls,.preview-area{width:100%;border-radius:25px}.controls{padding:24px}.intro{margin:-6px -6px 26px;padding:25px 21px}.intro h1{font-size:28px;line-height:1.38}.intro h1 br{display:none}.intro>p:last-child{font-size:11px}.intro>p:last-child br{display:none}.intro .eyebrow{font-size:8px;letter-spacing:1.5px}.intro::after{width:108px;height:108px;right:-24px;top:20px}.field-hint,.create-hint{font-size:11px}.upload-zone{min-height:145px}.text-input,textarea{font-size:16px}.text-input{height:46px}textarea{min-height:108px}.choice-group span{min-height:42px}.preset-options{display:grid;grid-template-columns:1fr 1fr;gap:8px}.preset-card{padding:13px 10px;gap:8px}.preset-copy strong{font-size:10px}.preset-copy small{font-size:9px}.preview-area{padding:17px 18px 21px}.preview-header{height:61px}.preview-header h2{font-size:17px}.canvas-surface{padding:18px 20px;min-height:500px;border-radius:17px}.canvas-topline>span:last-child{display:block}.canvas-caption{font-size:9px}.paper-badge{padding:7px 10px}.result-actions #reviseBtn{width:auto;border:1px solid #ffffffc4;border-radius:9px;background:#ffffff80;padding:8px 10px}.result-actions .primary-button{margin-left:auto}.result-toolbar{border-radius:15px}.output-details{flex-direction:row}.modal{border-radius:21px;padding:24px}.side-dialog{border-radius:21px 0 0 21px}}
@media(max-width:380px){.controls{padding:22px 19px}.intro{padding:23px 17px}.intro h1{font-size:26px}.brand-wordmark{font-size:14px}.brand-wordmark>span{letter-spacing:1.2px}.app-header{padding:0 13px}.header-actions .text-button{padding:6px}.preset-copy strong{font-size:10px}.preset-copy small{font-size:8px}.preview-area{padding:14px}.canvas-surface{padding:15px 12px}.canvas-topline{font-size:7px}.result-actions{gap:5px}}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){.controls,.preview-area{background:#e8e9f6f0}.app-header{background:#747ed8ed}.modal,.side-dialog{background:#f3effbf7}}
