:root{--bg:#fff;--bg-soft:#f7f8fa;--surface:#fff;--text:#16181d;--muted:#5b6270;--faint:#8a909c;--border:#e3e6eb;--border-strong:#cfd4dc;--primary:#2b5bc8;--primary-hover:#234db0;--primary-soft:#eaf0fc;--danger:#c43c3c;--success:#1f8a53;--radius:12px;--radius-sm:8px;--shadow:0 1px 2px #1018280a, 0 8px 24px #1018280f;--checker:repeating-conic-gradient(#e9ebef 0% 25%, #fff 0% 50%) 0 0 / 16px 16px;--font:"Inter", "Mukta", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}*{box-sizing:border-box}html,body{margin:0}body{font-family:var(--font);color:var(--text);background:var(--bg);-webkit-font-smoothing:antialiased;flex-direction:column;min-height:100vh;font-size:15px;line-height:1.5;display:flex}html[lang=ne] body{font-family:Mukta,Inter,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Noto Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif}main{flex:1}a{color:var(--primary);text-decoration:none}button,input,select,textarea{font:inherit;color:inherit}button{cursor:pointer}[hidden]{display:none!important}.wrap{width:100%;max-width:1104px;margin:0 auto;padding:0 16px}.wrap.wide{max-width:1104px}.site-header{border-bottom:1px solid var(--border);background:var(--bg);z-index:30;position:sticky;top:0}.header-inner{justify-content:space-between;align-items:center;height:60px;display:flex}.brand{color:var(--text);letter-spacing:-.01em;align-items:center;gap:10px;font-size:19px;font-weight:700;display:flex}.brand-logo{background:var(--primary);color:#fff;border-radius:8px;place-items:center;width:32px;height:32px;display:grid}.header-actions{align-items:center;gap:22px;display:flex}.link-btn{color:var(--muted);background:0 0;border:0;align-items:center;gap:7px;padding:6px 0;font-size:14px;font-weight:500;display:inline-flex}.link-btn:hover{color:var(--text)}.lang-btn{font-family:"Mukta", var(--font);font-weight:600}.site-footer{border-top:1px solid var(--border);background:var(--bg-soft);margin-top:64px}.footer-inner{color:var(--muted);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;padding-top:22px;padding-bottom:22px;font-size:13.5px;display:flex}.footer-note{align-items:center;gap:7px;display:inline-flex}.hero{grid-template-columns:1.15fr 1fr;align-items:center;gap:48px;padding:56px 0 40px;display:grid}.hero h1{letter-spacing:-.025em;margin:0 0 16px;font-size:clamp(32px,5vw,46px);font-weight:800;line-height:1.12}.hero p{color:var(--muted);max-width:470px;margin:0;font-size:17px}.hero-card{border:1px solid var(--border);box-shadow:var(--shadow);background:var(--surface);border-radius:16px;padding:28px}.hero-card h2{margin:16px 0 6px;font-size:20px}.hero-card p{color:var(--muted);margin:0 0 18px;font-size:14px}.hero-card .drop-hint{text-align:center;color:var(--faint);margin-top:12px;font-size:13px}.hero-card.dragover{border-color:var(--primary);background:var(--primary-soft)}.section-title{margin:32px 0 16px;font-size:19px;font-weight:700}.tool-grid{grid-template-columns:repeat(4,1fr);gap:12px;display:grid}.tool-card{border:1px solid var(--border);border-radius:var(--radius);color:var(--text);background:var(--surface);align-items:flex-start;gap:14px;min-height:118px;padding:18px;transition:border-color .15s,box-shadow .15s,transform .15s;display:flex;position:relative}.tool-card:hover{border-color:var(--border-strong);box-shadow:var(--shadow);transform:translateY(-1px)}.tool-card h3{margin:0 0 4px;font-size:15.5px;font-weight:650}.tool-card p{color:var(--muted);margin:0;font-size:13.5px;line-height:1.45}.tool-card .badge{letter-spacing:.04em;background:var(--primary-soft);color:var(--primary);vertical-align:2px;border-radius:99px;margin-left:6px;padding:1px 6px;font-size:10.5px;font-weight:700;display:inline-block;position:absolute;top:10px;right:10px}.icon-tile{border-radius:10px;flex:none;place-items:center;width:42px;height:42px;display:grid}.icon-tile svg{width:21px;height:21px}.c-blue{color:#2b5bc8;background:#eaf0fc}.c-orange{color:#d0562a;background:#fdeee6}.c-green{color:#1f8a53;background:#e6f5ee}.c-indigo{color:#5046c8;background:#ecebfc}.c-pink{color:#c8346a;background:#fce9ef}.c-teal{color:#157a70;background:#e3f4f2}.c-purple{color:#8a3fc8;background:#f2e9fc}.c-amber{color:#b07510;background:#fdf3df}.c-slate{color:#3d4654;background:#eef0f3}.c-red{color:#c43c3c;background:#fdeaea}.group-label{text-transform:uppercase;letter-spacing:.07em;color:var(--faint);margin:26px 0 10px;font-size:12px;font-weight:700}.btn{border-radius:var(--radius-sm);border:1px solid var(--border-strong);background:var(--surface);height:40px;color:var(--text);white-space:nowrap;justify-content:center;align-items:center;gap:8px;padding:0 16px;font-size:14px;font-weight:600;transition:background .12s,border-color .12s;display:inline-flex}.btn:hover{background:var(--bg-soft)}.btn:disabled{opacity:.5;cursor:not-allowed}.btn svg{width:17px;height:17px}.btn-primary{background:var(--primary);border-color:var(--primary);color:#fff}.btn-primary:hover{background:var(--primary-hover)}.btn-lg{width:100%;height:48px;font-size:15.5px}.btn-sm{height:32px;padding:0 10px;font-size:13px}.btn-ghost{background:0 0;border-color:#0000}.btn-danger{color:var(--danger)}.btn-block{width:100%}.icon-btn{border-radius:var(--radius-sm);border:1px solid var(--border);background:var(--surface);width:36px;height:36px;color:var(--text);place-items:center;padding:0;display:inline-grid}.icon-btn:hover{background:var(--bg-soft)}.icon-btn.active,.tool-btn.active{background:var(--primary-soft);border-color:var(--primary);color:var(--primary)}.icon-btn svg{width:18px;height:18px}.icon-btn:disabled{opacity:.4;cursor:not-allowed}.tool-head{align-items:center;gap:14px;padding:26px 0 18px;display:flex}.tool-head h1{letter-spacing:-.015em;margin:0;font-size:24px}.tool-head p{color:var(--muted);margin:2px 0 0;font-size:14px}.back-link{color:var(--muted);align-items:center;gap:6px;margin-top:18px;font-size:13.5px;display:inline-flex}.back-link:hover{color:var(--text)}.dropzone{border:2px dashed var(--border-strong);text-align:center;background:var(--bg-soft);border-radius:16px;padding:56px 20px;transition:border-color .15s,background .15s}.dropzone.dragover{border-color:var(--primary);background:var(--primary-soft)}.dropzone h2{margin:14px 0 4px;font-size:18px}.dropzone p{color:var(--muted);margin:0 0 18px;font-size:14px}.dropzone .btn{min-width:220px;height:46px}.dropzone small{color:var(--faint);margin-top:12px;font-size:12.5px;display:block}.workspace{grid-template-columns:minmax(0,1fr) 300px;align-items:start;gap:16px;display:grid}.workspace.no-panel{grid-template-columns:1fr}.stage-wrap{border:1px solid var(--border);border-radius:var(--radius);background:var(--bg-soft);flex-direction:column;min-width:0;display:flex;position:relative;overflow:hidden}.stage-toolbar{border-bottom:1px solid var(--border);background:var(--surface);flex-wrap:wrap;align-items:center;gap:6px;padding:8px;display:flex}.stage-toolbar .sep{background:var(--border);width:1px;height:24px;margin:0 4px}.stage-toolbar .spacer{flex:1}.stage{background:var(--checker);touch-action:none;height:min(70vh,720px);padding:16px;display:flex;position:relative;overflow:auto}.stage.plain{background:#eef0f3}.stage canvas{image-rendering:auto;max-width:none;display:block}.stage .canvas-holder{margin:auto;position:relative;box-shadow:0 2px 12px #00000026}.stage-footer{border-top:1px solid var(--border);background:var(--surface);color:var(--muted);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;padding:8px 12px;font-size:12.5px;display:flex}.zoom-ctrl{align-items:center;gap:4px;display:inline-flex}.zoom-ctrl button{border:1px solid var(--border);background:var(--surface);border-radius:6px;width:28px;height:28px}.zoom-ctrl span{text-align:center;font-variant-numeric:tabular-nums;min-width:46px}.panel{border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);flex-direction:column;gap:14px;max-height:calc(100vh - 92px);padding:16px;display:flex;position:sticky;top:76px;overflow:auto}.panel>*{flex-shrink:0}.panel h3{text-transform:uppercase;letter-spacing:.06em;color:var(--faint);margin:0;font-size:13px;font-weight:700}.panel .group{flex-direction:column;gap:10px;display:flex}.panel .group+.group{border-top:1px solid var(--border);padding-top:14px}.field{flex-direction:column;gap:5px;font-size:13.5px;display:flex}.field>label,.field-label{color:var(--text);justify-content:space-between;gap:8px;font-weight:550;display:flex}.field-label output,.field>label output{color:var(--muted);font-variant-numeric:tabular-nums;font-weight:500}.row{align-items:center;gap:8px;display:flex}.row>*{flex:1;min-width:0}.row>.fixed{flex:none}input[type=text],input[type=number],select,textarea{border:1px solid var(--border-strong);border-radius:var(--radius-sm);background:var(--surface);width:100%;min-width:0;height:36px;padding:0 10px}textarea{resize:vertical;height:auto;padding:8px 10px}input:focus,select:focus,textarea:focus{outline:2px solid var(--primary-soft);border-color:var(--primary)}input[type=range]{width:100%;accent-color:var(--primary)}input[type=checkbox],input[type=radio]{accent-color:var(--primary);width:16px;height:16px}input[type=color]{border:1px solid var(--border-strong);border-radius:var(--radius-sm);background:var(--surface);flex:none;width:40px;height:34px;padding:2px}.check{cursor:pointer;align-items:center;gap:8px;font-size:13.5px;display:flex}.seg{border:1px solid var(--border-strong);border-radius:var(--radius-sm);flex-wrap:wrap;display:flex;overflow:hidden}.seg button{background:var(--surface);color:var(--muted);border:0;border-right:1px solid var(--border);white-space:nowrap;flex:1;min-width:0;padding:7px 8px;font-size:13px;font-weight:550}.seg button:last-child{border-right:0}.seg button.active{background:var(--primary);color:#fff}.chips{flex-wrap:wrap;gap:6px;display:flex}.chip{border:1px solid var(--border-strong);background:var(--surface);color:var(--muted);border-radius:99px;padding:4px 10px;font-size:12.5px;font-weight:550}.chip:hover{border-color:var(--primary);color:var(--primary)}.chip.active{background:var(--primary-soft);border-color:var(--primary);color:var(--primary)}.hint{color:var(--muted);margin:0;font-size:12.5px;line-height:1.45}.note{background:var(--bg-soft);border:1px solid var(--border);border-radius:var(--radius-sm);color:var(--muted);padding:9px 11px;font-size:12.5px}.actions{flex-direction:column;gap:8px;display:flex}.stat{color:var(--muted);justify-content:space-between;font-size:13px;display:flex}.stat b{color:var(--text);font-weight:600}.file-list{flex-direction:column;gap:8px;display:flex}.file-item{border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--surface);grid-template-columns:56px 1fr auto;align-items:center;gap:12px;padding:8px;display:grid}.file-item img,.file-item canvas{object-fit:cover;background:var(--checker);border-radius:6px;width:56px;height:56px}.file-item .meta{min-width:0}.file-item .name{white-space:nowrap;text-overflow:ellipsis;font-size:13.5px;font-weight:600;overflow:hidden}.file-item .sub{color:var(--muted);font-size:12.5px}.file-item .saving{color:var(--success);font-weight:600}.file-item .worse{color:var(--danger);font-weight:600}.file-item .ops{gap:4px;display:flex}.thumb-grid{grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:10px;display:grid}.thumb{border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--checker);aspect-ratio:1;position:relative;overflow:hidden}.thumb img{object-fit:contain;width:100%;height:100%;display:block}.thumb .thumb-ops{justify-content:space-between;gap:4px;display:flex;position:absolute;top:auto;bottom:4px;left:4px;right:4px}.thumb .thumb-ops button{background:#ffffffeb;border:0;border-radius:6px;place-items:center;width:26px;height:26px;display:grid;box-shadow:0 1px 3px #0003}.thumb .idx{color:#fff;background:#0009;border-radius:4px;padding:0 6px;font-size:11px;font-weight:700;position:absolute;top:4px;left:4px}.thumb.add{background:var(--bg-soft);color:var(--muted);cursor:pointer;border-style:dashed;place-items:center;font-size:13px;font-weight:600;display:grid}.compare{-webkit-user-select:none;user-select:none;touch-action:none;cursor:ew-resize;position:relative;overflow:hidden}.compare img{pointer-events:none;width:100%;height:auto;display:block}.compare .after{clip-path:inset(0 0 0 50%);position:absolute;top:0;bottom:0;left:0;right:0}.compare .after img{width:100%;height:100%}.compare .handle{background:#fff;width:2px;position:absolute;top:0;bottom:0;left:50%;transform:translate(-1px);box-shadow:0 0 0 1px #00000040}.compare .handle:after{content:"⟷";color:#333;background:#fff;border-radius:50%;place-items:center;width:34px;height:34px;font-size:15px;display:grid;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);box-shadow:0 2px 8px #0000004d}.compare .lbl{color:#fff;background:#0009;border-radius:4px;padding:2px 8px;font-size:11.5px;font-weight:600;position:absolute;top:8px}.busy{z-index:5;text-align:center;background:#ffffffd1;flex-direction:column;justify-content:center;align-items:center;gap:12px;padding:20px;display:flex;position:absolute;top:0;bottom:0;left:0;right:0}.spinner{border:3px solid var(--primary-soft);border-top-color:var(--primary);border-radius:50%;width:34px;height:34px;animation:.8s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.progress{background:var(--primary-soft);border-radius:99px;width:min(320px,80%);height:6px;overflow:hidden}.progress>div{background:var(--primary);width:0%;height:100%;transition:width .2s}.busy-text{color:var(--muted);font-size:13.5px;font-weight:550}.toast{color:#fff;opacity:0;pointer-events:none;z-index:100;background:#1d2128;border-radius:10px;max-width:calc(100% - 32px);padding:10px 16px;font-size:14px;transition:opacity .2s,transform .2s;position:fixed;bottom:24px;left:50%;transform:translate(-50%,20px)}.toast.show{opacity:1;transform:translate(-50%)}.toast.error{background:var(--danger)}.text-editor{border:1px dashed var(--primary);resize:none;white-space:pre;transform-origin:0 0;background:0 0;outline:none;margin:0;padding:0;line-height:1.2;position:absolute;overflow:hidden}.swatches{flex-wrap:wrap;gap:6px;display:flex}.swatch{cursor:pointer;border:1px solid #00000026;border-radius:6px;width:24px;height:24px}.swatch.active{outline:2px solid var(--primary);outline-offset:2px}.palette{grid-template-columns:repeat(auto-fill,minmax(92px,1fr));gap:8px;display:grid}.palette .p{border:1px solid var(--border);cursor:pointer;background:var(--surface);text-align:center;border-radius:8px;font-size:12px;overflow:hidden}.palette .p div{height:44px}.palette .p span{padding:4px;font-family:ui-monospace,monospace;font-weight:600;display:block}.kv{border:1px solid var(--border);border-radius:var(--radius-sm);grid-template-columns:minmax(110px,38%) 1fr;font-size:13px;display:grid;overflow:hidden}.kv>div{border-bottom:1px solid var(--border);word-break:break-word;padding:7px 10px}.kv>div:nth-child(odd){color:var(--muted);background:var(--bg-soft);font-weight:550}.kv>div:nth-last-child(-n+2){border-bottom:0}.muted{color:var(--muted)}.mt{margin-top:12px}@media (max-width:960px){.tool-grid{grid-template-columns:repeat(2,1fr)}.workspace{grid-template-columns:1fr}.panel{max-height:none;position:static}.stage{height:58vh}}@media (max-width:760px){.hero{grid-template-columns:1fr;gap:28px;padding:32px 0 12px}.header-actions{gap:14px}}@media (max-width:520px){.tool-grid{grid-template-columns:1fr}.tool-card{min-height:0}.brand-name{font-size:17px}#installBtn span{display:none}}
