:root{color:#fff;background-color:#242424;font-family:system-ui,Avenir,Helvetica,Arial,sans-serif}body{margin:0;display:flex;place-items:center;min-height:100vh}.upload-page-wrapper{width:100vw;height:100vh;display:flex;justify-content:center;align-items:center;background-image:url(/Background-Navy-Abstract-Wallpaper-28346.jpg);background-size:cover;background-position:center;background-repeat:no-repeat;background-attachment:fixed;padding:2rem;box-sizing:border-box}.upload-container{background-color:#fff;color:#333;width:100%;max-width:500px;border-radius:16px;box-shadow:0 20px 40px #0003;padding:2.5rem;display:flex;flex-direction:column;gap:1.2rem;position:relative;z-index:1;transition:all .3s ease}.upload-title{font-size:2.3rem;font-weight:800;text-align:center;margin-bottom:1rem;color:#1a1a1a;display:flex;align-items:center;justify-content:center;gap:.6rem}.upload-title span[role=img]{font-size:2.5rem}.upload-subtitle{text-align:center;font-size:1.1rem;font-weight:500;margin-bottom:1rem;color:#555}.upload-container button{background:linear-gradient(135deg,#007bff,#0056d2);color:#fff;font-size:1.15rem;font-weight:600;padding:.9rem 2rem;border:none;border-radius:12px;cursor:pointer;transition:transform .2s ease,box-shadow .2s ease;width:100%;max-width:350px;align-self:center;box-shadow:0 6px 18px #007bff4d}.upload-container button:hover:enabled{transform:translateY(-1px);box-shadow:0 10px 20px #007bff73}.upload-container button:disabled{opacity:.5;cursor:not-allowed}.compare-slider{width:100%;max-width:700px;margin:1.5rem auto;border-radius:10px;overflow:hidden;box-shadow:0 8px 20px #00000026}.compare-slider img{max-height:500px;object-fit:contain;width:100%}.radio-group{display:flex;justify-content:center;gap:1rem;font-size:.95rem}.radio-group label{display:flex;align-items:center;gap:.4rem}select,input[type=file]{padding:.6rem 1rem;font-size:1rem;border:1px solid #ccc;border-radius:8px;width:100%;max-width:100%;background:#f9f9f9;cursor:pointer}.upload-preview{width:100%;max-height:300px;object-fit:contain;border-radius:10px;border:1px solid #ddd;margin-top:1rem}.manual-paint-wrapper{display:flex;gap:2rem;padding:2rem;color:#fff}.manual-left{flex:1;display:flex;flex-direction:column;gap:1rem}.manual-right{flex:2;position:relative}.prompt-box{width:100%;padding:1rem;font-size:1rem;border-radius:8px;border:1px solid #ccc;resize:vertical}.brush-controls{display:flex;flex-direction:column;gap:.3rem;font-size:.95rem}.button-group{display:flex;gap:.8rem}canvas{z-index:10}.mask-modal{position:fixed;top:0;left:0;width:100vw;height:100vh;background:#000000b3;display:flex;justify-content:center;align-items:center;z-index:1000}.mask-modal-content{background:#222;padding:2rem;border-radius:12px;width:90%;max-width:800px;color:#fff}.mask-tools{margin:1rem 0}.image-mask-preview-wrapper{border:1px dashed #999;padding:.5rem;margin-top:1rem;border-radius:6px}.mask-popup-overlay{position:fixed;top:0;left:0;z-index:999;background:#000c;width:100vw;height:100vh;display:flex;justify-content:center;align-items:center}.mask-popup{background:#111;padding:2rem;border-radius:10px;max-width:90vw;max-height:90vh;overflow:auto;text-align:center}.react-compare-slider__handle{background:none!important;border:none!important;box-shadow:none!important}.react-compare-slider__line{background-color:transparent!important}.fullscreen-modal{position:fixed;top:0;left:0;width:100vw;height:100vh;background-color:#1e1e1e;color:#fff;z-index:1000;display:flex;flex-direction:column;font-family:sans-serif}.top-bar{display:flex;justify-content:space-between;align-items:center;padding:8px 15px;background-color:#2a2a2a;border-bottom:1px solid #000;flex-shrink:0}.top-bar button,.left-toolbar button{background:#444;color:#fff;border:1px solid #555;padding:8px 12px;margin:0 5px;border-radius:4px;cursor:pointer}.top-bar button:hover,.left-toolbar button:hover{background:#555}.left-toolbar button.active{background:#6af;border-color:#8cf}.save-button{background-color:#4caf50}.save-button:hover{background-color:#5cb860}.main-content{display:flex;flex-grow:1;overflow:hidden}.left-toolbar{background-color:#2a2a2a;padding:15px 10px;flex-shrink:0;display:flex;flex-direction:column;gap:10px;border-right:1px solid #000}.right-sidebar{background-color:#2a2a2a;padding:15px;flex-shrink:0;width:240px;border-left:1px solid #000;overflow-y:auto}.right-sidebar h4{margin-top:0}.right-sidebar div{margin-bottom:15px}.canvas-area{flex-grow:1;background-color:#000;position:relative;overflow:hidden;touch-action:none;-webkit-user-select:none;user-select:none}.canvas-transform-wrapper{position:absolute;will-change:transform}.canvas-transform-wrapper canvas{position:absolute;top:0;left:0;image-rendering:pixelated}.manual-paint-wrapper{width:100vw;height:100vh;display:flex;flex-wrap:wrap;justify-content:center;align-items:flex-start;gap:2rem;padding:2rem;margin:0 auto;background-image:url(/Background-Navy-Abstract-Wallpaper-28346.jpg);background-size:cover;background-position:center;background-repeat:no-repeat;background-attachment:fixed;box-sizing:border-box;color:#fff;overflow-y:auto}.manual-left{flex:1 1 320px;max-width:480px;background:#fff;padding:2rem;border-radius:16px;display:flex;flex-direction:column;gap:1.2rem;box-shadow:0 10px 30px #0000004d;color:#111;align-self:stretch}.prompt-box{width:100%;font-size:1rem;padding:1rem;border-radius:8px;border:1px solid #ccc;resize:vertical;background:#f9f9f9;color:#000;box-sizing:border-box;min-height:80px}.brush-controls{display:flex;flex-direction:column;gap:.4rem;font-size:.95rem}.button-group{display:flex;gap:1rem;flex-wrap:wrap}.button-group button{background:#007bff;color:#fff;border:none;padding:10px 15px;border-radius:5px;cursor:pointer;font-size:1rem;font-weight:500;transition:background-color .2s ease}.button-group button:hover{background:#0056b3}.button-group button:disabled{background:#ccc;color:#666;cursor:not-allowed}.manual-right{flex:2 1 500px;display:flex;flex-direction:column;gap:1rem;max-width:700px;align-self:stretch}.preview-box h4{font-size:1.2rem;font-weight:700;color:#fff;margin-top:0;margin-bottom:.75rem}.preview-image-wrapper{position:relative;border:2px solid #444;border-radius:12px;overflow:hidden;background:#000;width:100%;display:flex;justify-content:center;align-items:center;min-height:300px}.base-image{display:block;max-width:100%;max-height:60vh;object-fit:contain;z-index:1;border-radius:10px}.mask-overlay{position:absolute;top:0;left:0;z-index:2;width:100%;height:100%;object-fit:contain;opacity:.6;pointer-events:none;border-radius:10px}.loading-overlay{position:fixed;top:0;left:0;width:100%;height:100%;background:#1e1e1ed9;color:#fff;font-size:1.6rem;font-weight:700;display:flex;justify-content:center;align-items:center;z-index:9999;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px)}.version-gallery{margin-top:2rem;background:#ffffff1a;padding:1rem;border-radius:8px}.version-list{display:flex;flex-wrap:wrap;gap:.75rem}.version-thumb{width:60px;height:60px;object-fit:cover;border:2px solid #555;border-radius:6px;cursor:pointer;transition:border-color .2s ease,transform .2s ease}.version-thumb:hover{transform:scale(1.05)}.version-thumb.selected{border-color:#007bff}.manual-left{background:#fffffff2;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,.18)}.upload-section{padding-bottom:1rem;border-bottom:1px solid #eee;margin-bottom:1rem}.custom-file-upload-button{display:inline-block;padding:10px 18px;cursor:pointer;background-color:#007bff;color:#fff;border-radius:5px;font-size:.95rem;font-weight:500;text-align:center;transition:background-color .2s ease}.custom-file-upload-button:hover{background-color:#0056b3}.regenerate-button{background-color:#28a745!important}.regenerate-button:hover{background-color:#1e7e34!important}.version-gallery{margin-top:1.5rem;border-top:1px solid #eee;padding-top:1.5rem}.version-gallery h4{font-size:1rem;color:#333;margin-bottom:.75rem;font-weight:600}.version-list{display:flex;flex-wrap:wrap;gap:10px;max-height:200px;overflow-y:auto;padding:5px;background:#f0f0f0;border-radius:4px}.version-thumb{width:70px;height:70px;object-fit:cover;border:2px solid #ccc;border-radius:6px;cursor:pointer;transition:border-color .2s ease,transform .2s ease;background-color:#e0e0e0}.version-thumb:hover{border-color:#007bff;transform:scale(1.05)}.version-thumb.selected{border-color:#0056b3;box-shadow:0 0 8px #0056b380}.preview-box h4{text-shadow:1px 1px 2px rgba(0,0,0,.5)}.final-text-page{display:flex;flex-direction:column;width:100vw;height:100vh;background-color:#18181b;color:#e4e4e7;font-family:Inter,sans-serif;overflow:hidden}.ftp-top-bar{display:flex;justify-content:space-between;align-items:center;padding:10px 20px;background-color:#27272a;border-bottom:1px solid #3f3f46;box-shadow:0 2px 4px #0003}.ftp-top-bar h3{margin:0;font-size:1.2rem;font-weight:600}.ftp-top-bar button{background:#3f3f46;color:#e4e4e7;border:1px solid #52525b;padding:8px 15px;margin-left:10px;border-radius:6px;cursor:pointer;transition:background-color .2s ease,transform .1s ease;font-weight:500}.ftp-top-bar button:hover{background-color:#52525b}.ftp-top-bar button:active{transform:translateY(1px)}.ftp-top-bar button.ftp-save-button{background-color:#22c55e;border-color:#4ade80;color:#fff;font-weight:600}.ftp-top-bar button.ftp-save-button:hover{background-color:#16a34a}.ftp-main-content{display:flex;flex-grow:1;overflow:hidden}.ftp-controls-panel{width:280px;background-color:#27272a;padding:20px;border-right:1px solid #3f3f46;overflow-y:auto;flex-shrink:0}.ftp-controls-panel h4{margin-top:0;margin-bottom:20px;color:#a1a1aa;border-bottom:1px solid #3f3f46;padding-bottom:8px;font-size:1.1rem;font-weight:600}.ftp-controls-panel div{margin-bottom:18px}.ftp-controls-panel label{display:block;margin-bottom:6px;font-size:.85rem;color:#d4d4d8;font-weight:500}.ftp-controls-panel input[type=number],.ftp-controls-panel select{width:100%;padding:9px 12px;background:#3f3f46;border:1px solid #52525b;color:#e4e4e7;border-radius:4px;box-sizing:border-box;font-size:.9rem}.ftp-controls-panel input[type=number]:focus,.ftp-controls-panel select:focus{outline:none;border-color:#0ea5e9;box-shadow:0 0 0 2px #0ea5e94d}.ftp-controls-panel input[type=color]{width:100%;padding:0;height:35px;border:1px solid #52525b;border-radius:4px;cursor:pointer;background:#3f3f46}.ftp-controls-panel input[type=color]::-webkit-color-swatch-wrapper{padding:3px}.ftp-controls-panel input[type=color]::-webkit-color-swatch{border:none;border-radius:2px}.ftp-controls-panel .ftp-add-button{width:100%;padding:10px 15px;margin-bottom:25px;background:#0ea5e9;color:#fff;border:none;border-radius:6px;font-size:1rem;font-weight:600;cursor:pointer;transition:background-color .2s ease}.ftp-controls-panel .ftp-add-button:hover{background:#0284c7}.ftp-controls-panel .ftp-style-buttons,.ftp-controls-panel .ftp-align-buttons{display:flex;align-items:center}.ftp-controls-panel .ftp-style-buttons label,.ftp-controls-panel .ftp-align-buttons label{margin-right:10px;margin-bottom:0;flex-shrink:0}.ftp-controls-panel .ftp-style-buttons button,.ftp-controls-panel .ftp-align-buttons button{background:#3f3f46;color:#e4e4e7;border:1px solid #52525b;padding:6px 12px;margin-right:5px;border-radius:4px;cursor:pointer;font-size:.9rem;transition:background-color .2s ease}.ftp-controls-panel .ftp-style-buttons button:hover,.ftp-controls-panel .ftp-align-buttons button:hover{background-color:#52525b}.ftp-controls-panel .ftp-style-buttons button.active,.ftp-controls-panel .ftp-align-buttons button.active{background-color:#0ea5e9;color:#fff;border-color:#0ea5e9}.ftp-controls-panel .ftp-delete-button{width:100%;margin-top:25px;background:#ef4444;color:#fff;border:none;border-radius:6px;padding:9px 15px;cursor:pointer;font-weight:500;transition:background-color .2s ease}.ftp-controls-panel .ftp-delete-button:hover{background:#dc2626}.ftp-controls-panel .ftp-delete-button:disabled{background:#52525b;cursor:not-allowed;opacity:.6}.ftp-image-area-wrapper{flex-grow:1;display:flex;justify-content:center;align-items:center;background-color:#000;overflow:auto;padding:20px;box-sizing:border-box}.ftp-image-container{position:relative;background-color:#111;box-shadow:0 0 15px #000000b3;-webkit-user-select:none;user-select:none}.ftp-image-container img{display:block;width:100%;height:100%;object-fit:contain;pointer-events:none}.text-element{position:absolute;box-sizing:border-box;padding:4px 6px;cursor:grab;-webkit-user-select:none;user-select:none;line-height:1.25;overflow-wrap:break-word;word-break:break-word;display:flex;align-items:center;justify-content:center;background:transparent;text-shadow:-1px -1px 0 #000,1px -1px 0 #000,-1px 1px 0 #000,1px 1px 0 #000;color:#fff}.text-element span{width:100%;text-align:inherit;display:block}.text-element.selected{outline:2px dashed #0ea5e9;z-index:10}.resize-handle{position:absolute;bottom:-5px;right:-5px;width:10px;height:10px;background-color:#0ea5e9;border:1px solid white;border-radius:50%;cursor:nwse-resize;z-index:15}.text-element-editing{position:absolute;background:#0009;border:2px solid #0ea5e9;border-radius:3px;resize:none;overflow:hidden;z-index:20;line-height:1.25;padding:4px 6px;box-sizing:border-box;outline:none;font-weight:700;font-family:Impact,sans-serif;color:#fff}.final-text-page.loading{display:flex;justify-content:center;align-items:center;font-size:1.5rem;color:#a1a1aa}
