@font-face{font-family:Bricolage;src:url(assets/bricolage-ext.woff2) format("woff2");font-weight:200 800;font-display:swap;unicode-range:U+0100-02BA,U+1E00-1EFF}
@font-face{font-family:Bricolage;src:url(assets/bricolage-latin.woff2) format("woff2");font-weight:200 800;font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+2000-206F,U+2190-21FF,U+2212}
@font-face{font-family:DM;src:url(assets/dm-sans-ext.woff2) format("woff2");font-weight:100 1000;font-display:swap;unicode-range:U+0100-02BA,U+1E00-1EFF}
@font-face{font-family:DM;src:url(assets/dm-sans-latin.woff2) format("woff2");font-weight:100 1000;font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+2000-206F,U+2190-21FF,U+2212}
:root{--ink:#18251e;--green:#294838;--paper:#fffcf4;--bg:#f7f3e8;--muted:#586257;--amber:#fcba32;--mint:#c6d5ca;--line:#27392d}*{box-sizing:border-box}[hidden]{display:none!important}
html{color-scheme:light}body{margin:0;color:var(--ink);background:var(--bg);font:16px/1.45 DM,Arial,sans-serif;min-height:100svh;display:flex;flex-direction:column}
button,a,input{touch-action:manipulation}button,a{color:inherit}button{font:inherit;cursor:pointer}a:focus-visible,button:focus-visible,input:focus-visible+span{outline:3px solid #147499;outline-offset:4px}button:disabled{opacity:.56;cursor:wait}
header{background:var(--paper);border-bottom:1.5px solid var(--line)}.header-inner,main,footer>div{max-width:1360px;width:calc(100% - clamp(36px,9vw,150px));margin:auto}
.header-inner{height:78px;display:flex;align-items:center;justify-content:space-between}.brand{display:inline-flex;gap:11px;align-items:center;text-decoration:none;font:800 27px/1 Bricolage,Arial,sans-serif;letter-spacing:-.055em}.brand img{display:block}.brand strong{font-weight:510}
.local{display:flex;align-items:center;gap:8px;color:var(--green);font-size:13px;font-weight:650}.local i{height:9px;width:9px;background:#507454;border:1px solid var(--ink);border-radius:50%}
main{flex:1;display:flex;align-items:center;padding-block:clamp(40px,6.3vw,97px) clamp(32px,5.5vw,76px)}
.desk{display:grid;width:100%;grid-template-columns:minmax(258px,.72fr) minmax(0,1.28fr);gap:clamp(38px,6.8vw,108px);align-items:center}.controls{min-width:0;max-width:445px}
h1{font:800 clamp(60px,6.8vw,100px)/.9 Bricolage,Arial,sans-serif;letter-spacing:-.072em;margin:0 0 .26em}h1 em{display:inline-block;position:relative;font-style:normal;color:var(--green);isolation:isolate}h1 em:after{content:"";position:absolute;z-index:-1;left:-.025em;right:.03em;bottom:.015em;height:.18em;background:var(--amber);transform:rotate(-2.5deg)}
.lead{color:#47564b;font-size:clamp(16px,1.45vw,19px);max-width:34ch;margin:0 0 26px;line-height:1.55}
.drop{width:100%;min-height:76px;padding:12px 15px;display:flex;align-items:center;gap:12px;text-align:left;background:var(--paper);border:1.5px dashed #6f846f;border-radius:12px}.drop:hover,.drop.drag{background:#e8efe1;border-color:var(--green)}.upload-icon{flex:none;display:grid;place-items:center;background:var(--mint);width:39px;height:39px;border:1.5px solid var(--line);border-radius:9px;font:700 24px/1 DM}.file-copy{min-width:0}.file-copy strong,.file-copy small{display:block}.file-copy strong{font-size:16px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.file-copy small{font-size:12px;margin-top:3px;color:var(--muted)}.pick-plus{margin-left:auto;font-size:20px}
fieldset{padding:0;margin:19px 0 17px;border:0;min-width:0}legend{font-weight:750;margin-bottom:8px;padding:0;font-size:14px}.options{display:grid;grid-template-columns:1fr 1fr;gap:10px}.options label{position:relative;cursor:pointer}.options input{position:absolute;opacity:0}.options label>span{border:1.5px solid #768376;border-radius:10px;display:flex;align-items:center;gap:8px;padding:10px 13px;min-height:51px;background:var(--paper)}.options b{font:800 25px/1 Bricolage;letter-spacing:-.06em}.options span span{font-size:12px;color:#4b584e}.options i{margin-left:auto;border:1px solid #727e72;border-radius:50%;width:12px;height:12px}.options input:checked+span{background:#d5e1d3;border-color:var(--ink);box-shadow:inset 0 0 0 .7px var(--ink)}.options input:checked+span i{border:3px solid var(--ink);background:var(--paper)}
.run{display:flex;align-items:center;justify-content:space-between;width:100%;background:var(--amber);border:1.5px solid var(--ink);border-radius:11px;min-height:54px;padding:8px 17px;box-shadow:3px 3px 0 var(--ink);font:760 18px/1.1 Bricolage}.run:hover:not(:disabled){background:#ffcb56;transform:translateY(-1px)}.arrow{font:500 28px/1 DM}
.status-line{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:13px;color:var(--muted)}#status{margin:10px 0 0}#status:empty{margin:0}.status-line button,#reset{background:transparent;border:0;text-decoration:underline;font-weight:650}#status.error{color:#9a351f}progress{width:100%;height:6px;accent-color:var(--green)}
.preview-wrap{position:relative;min-width:0;isolation:isolate}.preview-wrap:before{content:"";position:absolute;inset:2px 0 39px;background:var(--mint);border:1.5px solid var(--ink);border-radius:19px;transform:rotate(2deg) translate(4px,-4px);z-index:-1}
.preview{border:1.7px solid var(--ink);border-radius:17px;box-shadow:4px 5px 0 #27382c;background:var(--paper);overflow:hidden}.preview-head{display:flex;justify-content:space-between;align-items:center;height:60px;padding:0 19px;gap:8px}.preview-title{display:flex;align-items:center;gap:10px}.preview-title h2{font:750 clamp(18px,2vw,24px)/1 Bricolage;letter-spacing:-.05em;margin:0}.split-icon{width:26px;height:23px;display:block;border:1.6px solid var(--ink);border-radius:6px;background:linear-gradient(to right,#a7caa9 47%,var(--ink) 47% 54%,#f8d28c 54%)}
#zoom{background:transparent;border:1px solid #a4ab9d;border-radius:24px;padding:4px 10px;color:var(--green);font-size:16px}#zoom span{font-size:12px;font-weight:680}#zoom[aria-pressed=true]{background:var(--mint)}
.stage{--split:50%;position:relative;isolation:isolate;overflow:hidden;aspect-ratio:1.49;background:#e1e3d6;outline:1.5px solid var(--ink)}.layers,.layers img{position:absolute;inset:0;width:100%;height:100%}.layers img{object-fit:contain;transform:scale(var(--zoom,1));transform-origin:center;pointer-events:none}#after{clip-path:inset(0 0 0 var(--clip,50%))}.stage .divider{position:absolute;top:0;bottom:0;left:var(--split);width:2px;background:white;filter:drop-shadow(0 0 2px #233329)}.divider span{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);white-space:nowrap;font:750 23px/1 DM;text-align:center;border:1.5px solid var(--ink);background:var(--paper);border-radius:50%;padding:4px 0 7px;width:42px;color:var(--ink)}
.stage input{opacity:0;position:absolute;inset:0;width:100%;height:100%;margin:0;cursor:ew-resize;touch-action:pan-y}.stage:focus-within{outline:3px solid #227ca0;outline-offset:-3px}.stage[data-single] #after,.stage[data-single] .right,.stage[data-single] .divider,.stage[data-single] input{display:none}.tag{position:absolute;top:13px;font-size:12px;font-weight:750;letter-spacing:.015em;padding:4px 9px;border-radius:6px;border:1px solid var(--ink);background:var(--paper)}.left{left:13px}.right{right:13px;background:#ffd16b}
.image-info{padding:13px 17px;display:flex;align-items:center;justify-content:space-between;gap:10px}.image-info>div{min-width:0}.filename{font-weight:700;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.dims{margin-top:3px;color:var(--muted);font-size:12px;font-variant-numeric:tabular-nums}.download{white-space:nowrap;display:inline-flex;align-items:center;gap:7px;color:var(--paper);background:var(--green);border:1.5px solid var(--ink);border-radius:8px;padding:7px 12px;text-decoration:none;font-size:14px;font-weight:700}.download span{font-size:20px}.download:hover{background:#365e46}.download[aria-disabled=true]{background:#d7dbd0;color:#526050;border-color:#a8b0a4;cursor:default}
.under-preview{display:flex;justify-content:space-between;align-items:center;min-height:34px;gap:12px;padding-top:10px;font-size:12px;color:var(--muted)}footer{border-top:1px solid #bcc5b6}footer>div{height:61px;display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px;color:var(--muted)}.footer-brand{font-weight:750}.credit a{text-decoration-thickness:1px;text-underline-offset:3px}
@media(max-width:900px){.desk{grid-template-columns:minmax(235px,.8fr) minmax(0,1.2fr);gap:30px}.header-inner,main,footer>div{width:calc(100% - 44px)}h1{font-size:64px}.options label>span{padding:9px}.preview-head{padding:0 12px;height:51px}.image-info{padding:10px}.preview-wrap:before{transform:rotate(1.5deg) translate(2px,-3px)}}
@media(max-width:700px){.header-inner{height:63px}.brand{font-size:23px}.brand img{width:34px;height:34px}.local{font-size:11px}main{padding:32px 0;display:block}.desk{grid-template-columns:1fr;gap:28px}.controls{max-width:none}h1{font-size:clamp(48px,10vw,68px)}h1 br{display:none}h1 em{margin-left:.12em}.lead{font-size:15px;margin:12px 0 18px;max-width:48ch}.drop{min-height:62px}fieldset{margin:15px 0}.preview-wrap{margin-right:4px}.stage{aspect-ratio:1.5}.header-inner,main,footer>div{width:calc(100% - 30px)}.under-preview{font-size:11px}.options label>span{padding-inline:13px}.run{min-height:48px}.credit{font-size:11px}}@media(max-width:350px){.local{display:none}h1{font-size:43px}.image-info{align-items:flex-start}.download{padding:5px 8px}}
h1{font-weight:700;letter-spacing:-.045em}.brand{letter-spacing:-.04em}.preview-title h2{letter-spacing:-.035em}
@media(max-width:700px){h1{font-size:clamp(43px,9.6vw,62px)}h1 em{margin-left:.2em}}

/* Reserve the mascot's full width before wrapping the translated title. */
h1{
  --mascot-size:clamp(88px,8.8vw,112px);
  --headline-gap:14px;
  display:grid;
  grid-template-columns:fit-content(calc(100% - var(--mascot-size) - var(--headline-gap))) var(--mascot-size);
  column-gap:var(--headline-gap);
  row-gap:clamp(8px,1.2vw,16px);
  align-items:center;
  overflow-wrap:anywhere;
}
h1 .first-word{grid-column:1/-1;grid-row:1}h1 em{grid-column:1;grid-row:2;justify-self:start;margin:0}
h1 .panda{
  grid-column:2;
  grid-row:2;
  display:block;
  inline-size:var(--mascot-size);
  block-size:var(--mascot-size);
  object-fit:contain;
}
.face{display:grid;place-items:center;flex:none;width:40px;height:40px;padding:2px;overflow:hidden;border:1.5px solid var(--ink);border-radius:12px;background:var(--amber)}
.brand .face img{width:100%;height:100%;object-fit:contain}
.tools{display:flex;align-items:center;gap:clamp(8px,2vw,26px)}
.langs{position:relative;z-index:4}.langs summary,.guide summary{cursor:pointer}.langs summary{display:flex;align-items:center;gap:6px;border:1px solid #96a491;border-radius:20px;padding:6px 11px;color:var(--green);font-size:13px;list-style:none}
.langs summary::-webkit-details-marker,.guide summary::-webkit-details-marker{display:none}
.langs nav{position:absolute;inset-inline-end:0;top:calc(100% + 8px);width:min(340px,92vw);max-height:70vh;overflow:auto;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));background:var(--paper);padding:10px;box-shadow:3px 4px 0 var(--ink);border:1.5px solid var(--ink);border-radius:12px}
.langs nav a{text-decoration:none;padding:7px 10px;border-radius:5px;text-align:start}
.langs nav a:hover,.langs nav a[aria-current]{background:#dce6d7}
summary:focus-visible{outline:3px solid #147499;outline-offset:4px}
.privacy{display:flex;gap:10px;align-items:baseline;color:var(--green);font-size:13px;line-height:1.5;margin:19px 0 0}
.lock{border:1.4px solid currentColor;width:11px;height:9px;border-radius:2px;position:relative;flex:none;margin-inline-start:2px}
.lock:before{content:"";position:absolute;left:1px;top:-7px;width:6px;height:7px;border:1.4px solid currentColor;border-bottom:none;border-radius:6px 6px 0 0}
.guide{width:calc(100% - clamp(36px,9vw,150px));max-width:1360px;margin:auto;border-bottom:1px solid #c1c9bb}
.guide summary{display:flex;align-items:center;justify-content:space-between;gap:1rem;list-style:none;font-weight:700;padding-block:20px}.guide summary:after{content:"+";color:var(--green);font-size:1.3em}.guide[open] summary:after{content:"−"}
.guide article{max-width:76ch;padding-block:0 24px;line-height:1.75}.guide article h2{font:700 1.35rem/1.35 Bricolage,system-ui,sans-serif;margin:1.1em 0 .4em}.guide article p{margin:.5em 0}
.pick-plus,.options i{margin-left:0;margin-inline-start:auto;flex:none}.drop{text-align:start}.preview-head{height:auto;min-height:60px;padding-block:8px}.download{white-space:normal;line-height:1.2}.preview-head button{flex:none}.dims{unicode-bidi:isolate}
:where(html:not(:lang(tr))) h1{font-size:clamp(43px,5.1vw,78px)}
html:is(:lang(hi),:lang(bn),:lang(ta),:lang(ur),:lang(ar),:lang(fa),:lang(vi),:lang(th)) h1{line-height:1.2;letter-spacing:normal}
@media(min-width:701px) and (max-width:1040px){h1{--mascot-size:88px;font-size:clamp(48px,5.5vw,60px)}}
@media(max-width:900px){.guide{width:calc(100% - 44px)}}
@media(max-width:700px){h1{--mascot-size:clamp(68px,19vw,90px);font-size:clamp(40px,10.7vw,65px);row-gap:0}h1 .first-word{grid-column:1}h1 .panda{grid-row:1/3}.face{width:34px;height:34px;border-radius:9px}.guide{width:calc(100% - 30px)}.privacy{margin-top:16px}.header-inner{gap:8px}.local{display:none}.langs summary{min-height:36px}.preview-head{min-height:50px}.langs nav{max-width:calc(100vw - 34px)}.langs nav a{font-size:14px}.image-info .download{flex-shrink:0;max-width:45%}}

.quality-options{margin-block:0 17px}
.quality-options .options label>span{min-height:42px}
