:root{color-scheme:dark;--bg:#06111a;--panel:rgba(8,20,31,.92);--panel-deep:#07141f;--border:#233d50;--border-soft:#172d3d;--text:#f3f7fb;--muted:#aec0d2;--green:#62f38b;--green-soft:#9cff7f;--blue:#16aaf2}*{box-sizing:border-box}html{background:var(--bg)}body{min-width:320px;min-height:100vh;margin:0;overflow-x:hidden;color:var(--text);background:radial-gradient(circle at 50% 43%,rgba(19,70,83,.15),transparent 38%),radial-gradient(circle at 83% 35%,rgba(20,59,70,.12),transparent 30%),linear-gradient(180deg,#06101a,#07131d);font:16px/1.45 Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}body:before{content:"";position:fixed;inset:0;pointer-events:none;opacity:.22;background-image:linear-gradient(rgba(255,255,255,.025) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.02) 1px,transparent 1px);background-size:4px 4px;mix-blend-mode:screen}button,input,select{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid var(--blue);outline-offset:3px}.pixel-field:before,.pixel-field:after{content:"";position:fixed;z-index:0;inset:145px auto auto 0;width:74px;height:820px;opacity:.62;background:linear-gradient(#17364a 0 0) 16px 0/18px 24px,linear-gradient(#1e4559 0 0) 34px 50px/21px 21px,linear-gradient(#42a87f 0 0) 16px 54px/15px 15px,linear-gradient(#174053 0 0) 0 122px/34px 24px,linear-gradient(#173647 0 0) 34px 236px/18px 20px,linear-gradient(#234c60 0 0) 16px 505px/18px 22px,linear-gradient(#193a4c 0 0) 0 700px/36px 23px;background-repeat:no-repeat}.pixel-field:after{inset:160px 0 auto auto;transform:scaleX(-1)}.site-header,main{position:relative;z-index:1}.site-header{width:calc(100% - 112px);max-width:1424px;height:72px;margin:10px auto 0;padding:0 34px 0 46px;display:flex;align-items:center;justify-content:space-between;isolation:isolate;z-index:2}.site-header:before{content:"";position:absolute;z-index:-1;inset:0;border:1px solid var(--border);background:#051019e6;clip-path:polygon(10px 0,calc(100% - 10px) 0,calc(100% - 10px) 5px,100% 5px,100% calc(100% - 7px),calc(100% - 7px) calc(100% - 7px),calc(100% - 7px) 100%,7px 100%,7px calc(100% - 5px),0 calc(100% - 5px),0 7px,10px 7px)}.brand{display:inline-flex;align-items:center;height:48px}.brand img{width:148px;height:auto;display:block}nav{display:flex;align-items:center;gap:34px}nav a,.header-text-button{display:inline-flex;align-items:center;gap:12px;color:var(--text);text-decoration:none;font-size:15px}nav svg{width:21px;fill:none;stroke:#a8bed2;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.header-text-button{padding:0;border:0;background:none;cursor:pointer}.account-menu{position:relative}.account-menu summary{display:flex;align-items:center;gap:6px;cursor:pointer;color:var(--text);font-size:15px;font-weight:750;list-style:none}.account-menu summary::-webkit-details-marker{display:none}.account-menu summary:after{content:"";width:0;height:0;border:4px solid transparent;border-top:5px solid var(--green-soft);transform:translateY(2px)}.account-menu-list{position:absolute;z-index:3;right:0;top:calc(100% + 13px);min-width:176px;display:grid;gap:2px;padding:10px;border:1px solid var(--border);background:#071521;box-shadow:0 12px 24px #00000047}.account-menu-list a,.account-menu-list .header-text-button{min-height:38px;padding:8px 10px;font-size:14px;white-space:nowrap}.account-menu-list a:hover,.account-menu-list .header-text-button:hover{color:var(--green-soft);background:#102536}.account-button,.browse-button,.process-button{border:0;cursor:pointer;text-decoration:none}.account-button{min-width:148px;justify-content:center;padding:14px 20px;color:#03110a;background:var(--green);font-weight:800}.pixel-corners{clip-path:polygon(10px 0,calc(100% - 10px) 0,calc(100% - 10px) 5px,100% 5px,100% calc(100% - 9px),calc(100% - 6px) calc(100% - 9px),calc(100% - 6px) 100%,8px 100%,8px calc(100% - 6px),0 calc(100% - 6px),0 8px,10px 8px)}main{width:calc(100% - 160px);max-width:1378px;margin:18px auto 48px}.hero{text-align:center;margin-bottom:26px}.hero h1{margin:0;font-size:clamp(42px,3.7vw,58px);line-height:1.12;letter-spacing:-1.4px;font-weight:850}.hero h1 span{color:var(--green)}.hero p{margin:10px 0 0;color:#bdccdd;font-size:20px;line-height:1.3}.workspace{display:grid;grid-template-columns:minmax(0,1.85fr) minmax(390px,1fr);gap:28px;align-items:stretch}.left-column{display:flex;flex-direction:column;gap:14px}.panel{border:1px solid var(--border);background:linear-gradient(145deg,#07151ff5,#06111bf0)}.upload-panel{min-height:340px;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;overflow:hidden;outline:2px dashed #6e9aae;outline-offset:-15px}.upload-panel.is-dragging{outline-color:var(--green);background:linear-gradient(145deg,#0f3430fa,#06181ffa)}.grid-overlay{position:absolute;inset:0;opacity:.33;background-image:linear-gradient(#183345 1px,transparent 1px),linear-gradient(90deg,#183345 1px,transparent 1px);background-size:24px 24px;-webkit-mask-image:radial-gradient(circle,#000,transparent 78%);mask-image:radial-gradient(circle,#000,transparent 78%)}.upload-panel>*:not(.grid-overlay){position:relative;z-index:1}.upload-corner{position:absolute!important;z-index:2!important;width:20px;height:20px;border-top:8px solid var(--green-soft);border-left:8px solid var(--green-soft)}.corner-top-left{top:10px;left:10px}.corner-top-right{top:10px;right:10px;transform:rotate(90deg)}.corner-bottom-left{bottom:10px;left:10px;transform:rotate(-90deg)}.corner-bottom-right{right:10px;bottom:10px;transform:rotate(180deg);opacity:.58}.upload-icon{width:64px;height:64px;display:grid;place-items:center;margin-bottom:12px;color:var(--green-soft);border:5px solid var(--green-soft);border-radius:7px;box-shadow:6px 0 #133b40,-6px 0 #133b40;background:#25734b1f;font-size:40px;font-weight:800;line-height:1}.upload-panel h2{margin:0;font-size:24px}.upload-panel p{margin:4px 0 10px;color:#bbcad9}.browse-button{width:254px;padding:13px 22px;color:#fff;text-align:center;font-weight:750;background:linear-gradient(180deg,#16b6f7,#1597df);box-shadow:inset 0 -3px #004f8b59}.file-types{margin-top:16px;color:#b1c0d0;font-size:14px}.file-types i,.file-details i{display:inline-block;width:4px;height:4px;margin:0 10px 3px;border-radius:50%;background:#8297aa}.upload-panel small{color:#aabccc}.operations{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;min-width:0}.operation{min-width:0;height:90px;position:relative;padding:0 22px;display:flex;align-items:center;gap:15px;color:var(--text);text-align:left;border:1px solid var(--border);background:#07131df5;clip-path:polygon(8px 0,calc(100% - 8px) 0,calc(100% - 8px) 4px,100% 4px,100% calc(100% - 8px),calc(100% - 5px) calc(100% - 8px),calc(100% - 5px) 100%,8px 100%,8px calc(100% - 5px),0 calc(100% - 5px),0 8px,8px 8px);cursor:pointer}.operation.active{border-color:var(--green);box-shadow:inset 0 0 28px #5af48614}.operation strong{display:block;margin-bottom:2px;font-size:18px}.operation small{display:block;color:#9fb3c6;font-size:14px;white-space:nowrap}.operation-icon{width:42px;min-width:42px;height:42px;display:grid;place-items:center;color:#9bb0c4}.operation-icon svg{width:42px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}.resize-icon{width:33px;height:33px;border:3px dashed var(--green-soft)}.radio{width:20px;height:20px;margin-left:auto;border:1px solid #607990;border-radius:50%}.operation.active .radio{border:0;background:var(--green);box-shadow:0 0 14px #62f38b59}.options-panel{min-height:238px;padding:18px 24px 22px}.options-panel h2{margin:0 0 18px;font-size:20px}.option-controls{display:grid;max-width:540px;gap:24px}.option-controls.two-columns{grid-template-columns:1fr 1fr}.option-controls label{display:grid;gap:8px;color:#dce7f0;font-size:15px}.option-controls input{width:100%;height:48px;padding:0 16px;color:var(--text);border:1px solid #314d60;border-radius:8px;background:#0b1a26;font-size:18px;outline:none}.option-controls input:focus{border-color:var(--green)}.format-picker{max-width:540px;margin:0;padding:0;border:0}.format-picker legend{margin-bottom:8px;color:#dce7f0;font-size:15px}.format-picker div{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.format-picker button{min-height:48px;color:#c6d2de;border:1px solid #314d60;border-radius:8px;background:#0b1a26;cursor:pointer;font-weight:750}.format-picker button.selected{color:#031208;border-color:var(--green);background:var(--green)}.format-picker button:hover:not(.selected){border-color:#5d8aa1}.process-button{width:100%;min-height:59px;margin-top:28px;display:inline-flex;align-items:center;justify-content:center;gap:12px;color:#031208;background:linear-gradient(180deg,#9bff84,#53ee83);font-size:20px;font-weight:850}.process-button span{font-size:28px;font-weight:400}.process-button:disabled{cursor:not-allowed;opacity:.65}.aspect-ratio-toggle{grid-column:1 / -1;display:flex!important;align-items:center;gap:9px;width:max-content;cursor:pointer;color:#dce7f0}.aspect-ratio-toggle input{width:17px!important;height:17px!important;accent-color:var(--green)}.submission-note{margin:10px 0 0;color:var(--muted);text-align:center;font-size:14px}.loading-dots{display:inline-flex;margin-left:2px;font-size:inherit!important}.loading-dots span{display:inline-block;font:inherit!important;animation:loading-dot .9s ease-in-out infinite}.loading-dots span:nth-child(2){animation-delay:.15s}.loading-dots span:nth-child(3){animation-delay:.3s}@keyframes loading-dot{0%,80%,to{transform:translateY(0);opacity:.35}40%{transform:translateY(-4px);opacity:1}}.auth-card>.alert{margin:0 0 22px}.preview-column{padding:20px;display:flex;flex-direction:column;gap:18px}.section-title{display:flex;align-items:center;justify-content:space-between}.section-title h2,.output-heading h2{margin:0;font-size:16px}.clear-button{color:#b8c7d7;border:0;background:none;cursor:pointer;font:inherit}.image-frame{height:277px;margin-top:21px;padding:5px;background:#193246}.image-frame img{width:100%;height:100%;display:block;object-fit:contain;background:#02080d}.empty-preview{display:grid;place-items:center;padding:28px;color:#a9bbcc;text-align:center;background:#0a1a25}.file-details{min-height:71px;display:flex;align-items:center;justify-content:space-between;padding:10px 4px 0 17px}.file-details strong{display:block;margin-bottom:3px;overflow-wrap:anywhere;font-size:14px}.file-details small{color:#a9bbcc}.format-badge{padding:6px 14px;border-radius:6px;background:#149de7;font-size:13px}.output-card{flex:1;min-height:220px;padding:15px 18px 12px;border:1px solid var(--border-soft);background:#071521}.output-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}dl{margin:0}dl div{min-height:43px;display:grid;grid-template-columns:45% 55%;align-items:center;border-bottom:1px solid #1a3040;color:#acbdcf;font-size:14px}dl div:last-child{border-bottom:0}dt span{display:inline-block;width:36px;color:#b8d0e2;font-size:20px}dd{margin:0;color:#c6d2de;overflow-wrap:anywhere}.alert{margin:0;padding:13px 15px;border:1px solid;clip-path:polygon(6px 0,100% 0,100% calc(100% - 6px),calc(100% - 6px) 100%,0 100%,0 6px)}.alert-error{color:#ffd3d3;border-color:#a65860;background:#69232a5c}.alert-info{color:#d4edff;border-color:#39799d;background:#12435d66}.field-error{max-width:80%;margin:12px 0 0!important;color:#ffbec4!important;text-align:center}.narrow-page{max-width:780px;min-height:70vh;display:grid;place-items:center}.job-card{width:100%;padding:34px}.job-card h1{margin:0;font-size:clamp(30px,4vw,42px);line-height:1.15}.job-card>p{color:var(--muted)}.eyebrow{margin:0 0 7px!important;color:var(--green-soft)!important;font-size:14px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.job-heading{display:flex;align-items:start;justify-content:space-between;gap:18px}.job-heading p{margin:9px 0 0;color:var(--muted)}.status-badge{display:inline-flex;align-items:center;min-height:30px;padding:5px 11px;border:1px solid currentColor;font-size:13px;font-weight:800;white-space:nowrap}.status-pending{color:#d7d56e}.status-processing{color:#78d4ff}.status-completed{color:var(--green-soft)}.status-failed{color:#ff9da6}.job-state{min-height:120px;margin:26px 0 14px;padding:26px;display:flex;align-items:center;gap:15px;border:1px solid var(--border-soft);background:var(--panel-deep);color:#dce8f2;font-size:18px}.success-state{flex-direction:column;align-items:stretch;color:var(--green-soft)}.success-state .process-button{margin-top:6px}.failed-state{display:block}.secondary-link{display:inline-block;margin-top:22px;color:var(--green-soft);font-weight:750}.action-link{text-decoration:none}.job-note,.loading-copy{color:var(--muted);font-size:14px}.spinner{width:24px;height:24px;flex:0 0 24px;border:3px solid #33556a;border-top-color:var(--green);border-radius:50%;animation:spin .85s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.auth-page{max-width:520px;min-height:calc(100vh - 150px);display:grid;place-items:center}.auth-card{width:100%;padding:34px}.auth-card h1{margin:0;font-size:clamp(30px,4vw,42px);line-height:1.15}.auth-description{margin:10px 0 25px;color:var(--muted)}.auth-form{display:grid;gap:18px}.form-field{display:grid;gap:8px;color:#dce7f0;font-size:15px}.form-field input{width:100%;min-height:48px;padding:0 15px;color:var(--text);border:1px solid #314d60;border-radius:8px;background:#0b1a26;outline:none}.form-field input:focus{border-color:var(--green)}.form-field input[aria-invalid=true]{border-color:#d76f78}.form-field-error{color:#ffbec4}.password-help{margin:0;color:var(--muted);font-size:13px}.auth-form .process-button,.auth-success .process-button{margin-top:4px}.auth-footer{margin-top:24px;color:var(--muted)}.auth-footer a,.inline-link,.auth-success .secondary-link{color:var(--green-soft);font-weight:750}.inline-link{width:max-content}.auth-success{color:#dce8f2}.auth-success p{color:var(--muted)}.auth-success .process-button{margin-top:12px}.history-page{max-width:1040px}.history-heading{display:flex;align-items:end;justify-content:space-between;gap:24px;margin:42px 0 24px}.history-heading h1{margin:0;font-size:clamp(32px,4vw,46px);line-height:1.12}.history-heading p:not(.eyebrow){margin:9px 0 0;color:var(--muted)}.history-heading .account-button{min-width:184px;text-decoration:none}.history-panel{padding:18px}.loading-history{min-height:180px;display:flex;align-items:center;justify-content:center;gap:14px;color:var(--muted)}.empty-history{min-height:280px;display:grid;align-content:center;justify-items:center;text-align:center}.empty-history h2{margin:0;font-size:28px}.empty-history p{color:var(--muted)}.empty-history .process-button{width:min(100%,360px);text-decoration:none}.history-list{display:grid}.history-item{min-height:100px;display:grid;grid-template-columns:minmax(0,1fr) auto 22px;align-items:center;gap:22px;padding:18px;color:var(--text);text-decoration:none;border-bottom:1px solid var(--border-soft)}.history-item:last-child{border-bottom:0}.history-item:hover{background:#0c2230}.history-item-main{min-width:0;display:grid;gap:4px}.history-item-main strong{font-size:18px}.history-item-main span,.history-item-main small{overflow-wrap:anywhere;color:var(--muted)}.history-item-main small{font-size:13px}.history-item-arrow{color:var(--green-soft);font-size:24px}.pagination{display:flex;align-items:center;justify-content:center;gap:16px;margin-top:22px;color:var(--muted)}.pagination button{min-height:40px;padding:0 15px;color:var(--text);border:1px solid var(--border);background:#0b1a26;cursor:pointer}.pagination button:not(:disabled):hover{border-color:var(--green)}.pagination button:disabled{cursor:not-allowed;opacity:.5}@media(max-width:1100px){.site-header{width:calc(100% - 32px);padding-inline:24px}main{width:calc(100% - 32px)}.workspace{grid-template-columns:1fr}.preview-column{display:grid;grid-template-columns:1.1fr .9fr}.image-frame{height:300px}.output-card{min-height:auto}}@media(min-width:1101px)and (max-width:1280px){.operation{padding-inline:12px;gap:10px}.operation-icon{width:30px;min-width:30px;font-size:27px}.operation strong{font-size:16px}.operation small{white-space:normal;font-size:12px}.radio{width:18px;height:18px;flex:0 0 18px}}@media(max-width:740px){.site-header{height:auto;min-height:70px}.brand{font-size:30px}nav{gap:12px}.account-button{min-width:auto;padding:11px 14px}main{margin-top:28px}.hero h1{font-size:38px}.hero p{font-size:16px}.upload-panel{min-height:330px}.operations{grid-template-columns:1fr}.operation{height:78px}.preview-column{display:flex}.narrow-page{min-height:60vh}.job-card,.auth-card{padding:24px}nav a,.header-text-button{font-size:13px}.history-heading{align-items:start;flex-direction:column;margin-top:12px}.history-heading .account-button{width:100%}.history-item{grid-template-columns:minmax(0,1fr) auto;gap:14px}.history-item-arrow{display:none}}@media(max-width:460px){.site-header{padding-inline:12px}.brand img{width:126px}.site-header nav{flex-shrink:0}.site-header nav>a:not(.account-button){display:none}.site-header .account-button{min-width:112px;padding:11px 12px;font-size:12px;white-space:nowrap}.hero h1{font-size:33px}.option-controls.two-columns{grid-template-columns:1fr}.options-panel{padding:18px}.preview-column{padding:14px}.image-frame{height:230px}.job-heading{flex-direction:column}.field-error{max-width:90%}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}
