@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');
:root{--ink:#183a35;--muted:#73817b;--line:#dee5dd;--green:#cdf477;--bg:#f7f8f2}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:14px 'DM Sans',sans-serif}button,input,select{font:inherit}button,a,input,select{touch-action:manipulation}button,a{ -webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:default;opacity:.45}a{color:inherit;text-decoration:none}header,footer{max-width:1240px;margin:auto;display:flex;align-items:center;justify-content:space-between;padding:28px 40px}header{border-bottom:1px solid var(--line)}.brand{font-family:Manrope,sans-serif;font-size:27px;font-weight:800;letter-spacing:-2px}.brand span{font:500 13px 'DM Sans';letter-spacing:0;margin-left:12px}.access{font-size:12px;border:1px solid var(--line);border-radius:30px;padding:9px 13px}.access i{display:inline-block;width:6px;height:6px;background:#669946;border-radius:50%;margin-right:7px}main{max-width:1160px;margin:60px auto 0;padding:0 40px}.eyebrow{font-size:10px;font-weight:700;letter-spacing:2px;color:#71816c}h1{font:600 clamp(32px,4.3vw,54px)/1.15 Manrope,sans-serif;letter-spacing:-2.5px;margin:17px 0}h1 span{color:#8a9887}.intro{color:var(--muted);line-height:1.8;margin-bottom:34px}.studio{border:1px solid var(--line);background:#fff;border-radius:20px;overflow:hidden;box-shadow:0 14px 45px #25432c04}nav{display:flex;background:#f0f3eb;border-bottom:1px solid var(--line);padding:9px;gap:8px}.tab{flex:1;border:0;border-radius:10px;background:transparent;color:#7c8878;padding:14px;font-weight:600}.tab.active{background:white;color:var(--ink);box-shadow:0 2px 6px #1b38230b}.workspace{display:grid;grid-template-columns:1.15fr 1fr}.upload-col,.settings{padding:30px}.upload-col{border-right:1px solid var(--line)}.section-label{font-size:11px;color:#8e9b88;display:flex;align-items:center;gap:12px;margin-bottom:25px}.section-label span{color:var(--ink);font-weight:600;font-size:13px}.drop{border:1.5px dashed #c8d5bf;background:#fafcf7;min-height:286px;border-radius:14px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:13px;text-align:center;padding:20px;cursor:pointer}.drop.drag{background:#edf9d9;border-color:#588d35}.drop input{display:none}.upload-icon{font-size:32px;background:#edf3e5;border:1px solid #e0e8d8;border-radius:15px;width:60px;height:60px;line-height:60px;margin-bottom:5px}.drop strong{font-size:14px}.drop>span:not(.upload-icon):not(.choose){font-size:11px;color:var(--muted)}.choose{background:white;border:1px solid var(--line);padding:10px 14px;border-radius:7px;font-size:12px;margin-top:8px}.choose b{margin-left:20px}.hint{color:#8a9585;font-size:11px;line-height:1.7;margin:16px 0 0}.field-title,.field>label{display:block;font-weight:600;font-size:12px;margin-bottom:10px}.preset{width:100%;display:flex;justify-content:space-between;align-items:center;border:1px solid var(--line);border-radius:9px;background:white;padding:13px 15px;text-align:left;margin-bottom:9px;color:var(--ink)}.preset b{font-size:12px}.preset small{display:block;font-size:10px;color:#89917e;margin-top:5px}.preset i{height:15px;width:15px;border:1px solid #cbd4c4;border-radius:100%}.preset.selected{border-color:#9ab378;background:#f5faed}.preset.selected i{border:4px solid #536f39;background:#fff}.preset em{font-size:7px;font-style:normal;letter-spacing:.5px;padding:4px 6px;background:#e3edcf;color:#65813e;margin-left:5px;border-radius:3px}.field{margin-top:20px;min-width:0}select,input[type=number]{width:100%;padding:11px;border:1px solid var(--line);border-radius:7px;background:#fff;color:var(--ink);font-size:12px}.primary{display:flex;align-items:center;justify-content:space-between;gap:24px;width:100%;border:0;border-radius:8px;padding:15px 18px;background:var(--green);font-weight:600;font-size:12px;color:var(--ink);margin-top:24px}.primary:hover:not(:disabled){background:#bde668}.primary span{font-size:18px}.row{display:flex;gap:12px}.row>div{flex:1}.check{display:flex;align-items:center;gap:8px;margin-top:18px;font-size:12px}.check input{accent-color:#54743e}#status{font-size:12px;margin-top:12px;line-height:1.6}.error{color:#a33b32}.file-row{display:flex;align-items:center;gap:8px;padding:10px 0;border-bottom:1px solid var(--line);font-size:11px}.file-row span{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.file-row button{border:0;background:#edf1e7;border-radius:4px;padding:4px 7px}.file-row small{color:var(--muted)}#result{margin-top:24px;padding:25px;background:#edf4e3;border-radius:16px;display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:30px}#result[hidden],[hidden]{display:none!important}#result .primary{width:fit-content}#preview img,#preview video{max-width:100%;max-height:240px;border-radius:8px}h2{font:600 28px Manrope;margin:12px 0}#stats{font-size:13px;line-height:1.7}.bottom-note{display:flex;justify-content:space-between;color:#8a9585;font-size:10px;margin:22px 0 50px}footer{border-top:1px solid var(--line);color:#899183;font-size:11px}footer b{font-weight:500;color:var(--ink)}.gate{min-height:65vh;padding-top:45px}.gate .primary{max-width:230px}.file-preview{display:block;max-width:100%;max-height:160px;margin:16px auto 0;border-radius:8px}:focus-visible{outline:2px solid #56843a;outline-offset:4px}@media(max-width:700px){header,footer{padding:22px}.brand span{font-size:11px}main{padding:0 20px;margin-top:35px}h1{letter-spacing:-1.5px}.workspace{grid-template-columns:1fr}.upload-col{border-right:0;border-bottom:1px solid var(--line)}.upload-col,.settings{padding:22px}.drop{min-height:220px}.bottom-note{gap:20px;line-height:1.7}footer{gap:20px}#result{grid-template-columns:1fr}}

.source-preview{margin-top:16px;border:1px solid var(--line);border-radius:14px;background:#f4f6f0;overflow:hidden}.source-preview figure{margin:0;padding:12px}.source-preview img,.source-preview video{display:block;width:100%;max-height:300px;object-fit:contain;border-radius:9px;background:#e9eee4}.source-preview figcaption{font-size:11px;overflow-wrap:anywhere;color:var(--muted);margin-top:8px}.source-preview.frames{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0}.source-preview.frames img{height:90px;object-fit:contain}.drop.has-files{min-height:100px;padding:12px;gap:5px}.drop.has-files .upload-icon{display:none}.drop.has-files .choose{margin-top:2px}.drop.has-files strong{font-size:12px}

.drop .source-preview{width:100%;margin:4px 0;cursor:default}.drop.has-files{min-height:286px}.drop.has-files #formats{display:none}

.progress-layer{position:fixed;inset:0;z-index:20;display:grid;place-items:center;padding:22px;background:rgba(15,32,28,.88);backdrop-filter:blur(7px)}.progress-card{width:min(100%,560px);max-height:min(90vh,860px);overflow:auto;border:1px solid #e0e8d8;border-radius:20px;background:#fff;padding:clamp(24px,5vw,44px);box-shadow:0 25px 90px #0005}.progress-card h2{font-size:clamp(25px,6vw,36px);letter-spacing:-1px}.progress-detail{min-height:24px;color:var(--muted);font-size:13px;line-height:1.6;overflow-wrap:anywhere}.progress-track{height:10px;margin-top:28px;border-radius:9px;background:#edf1e7;overflow:hidden}.progress-bar{width:0;height:100%;border-radius:inherit;background:#83b34d;transition:width .3s ease}.progress-bar.is-busy{width:38%!important;animation:progress-sweep 1.25s ease-in-out infinite alternate;background:linear-gradient(90deg,#83b34d,#cdf477)}@keyframes progress-sweep{from{transform:translateX(-12%)}to{transform:translateX(190%)}}.progress-meta{display:flex;justify-content:space-between;margin-top:10px;color:#899183;font-size:11px}.progress-actions{display:flex;align-items:center;gap:14px;margin-top:18px}.progress-actions .primary{margin:0;flex:1}.secondary{border:1px solid var(--line);background:white;border-radius:8px;padding:13px 17px;color:var(--ink);cursor:pointer}.progress-close{margin-top:22px}.progress-preview{display:grid;place-items:center;margin-top:20px}.progress-preview img,.progress-preview video{max-width:100%;max-height:34vh;border-radius:10px;background:#f0f3eb}.zip-summary{padding:22px;border:1px dashed #bbcca9;border-radius:10px;background:#f6faef;color:var(--ink);text-align:center;font-size:13px}.progress-layer.is-ready .progress-track{background:#d8ebc5}.progress-layer.is-error .progress-bar{background:#b74e43}@media(max-width:520px){.progress-actions{align-items:stretch;flex-direction:column}.progress-actions .primary{width:100%}.progress-close{width:100%}}
#files{max-height:360px;overflow-y:auto;overscroll-behavior:contain;padding-right:4px}.file-row{gap:10px;padding:8px 2px}.file-row .file-thumb{flex:0 0 52px;width:52px;height:42px;object-fit:cover;border-radius:6px;background:#e9eee4}.file-row .file-name{min-width:0}.drop.has-many{min-height:138px}.drop.has-many .upload-icon{display:none}.drop.has-many #formats{display:block}
@media(max-width:700px){#files{max-height:300px}.file-row .file-thumb{flex-basis:46px;width:46px;height:40px}}

/* Local editing controls, consistent with Tool Hub. */
:root{--muted:#5d6f65}h1{font-size:44px;letter-spacing:-.035em}.intro{max-width:65ch}.studio{border-radius:16px;box-shadow:none}.hint,.preset small,.bottom-note,.section-label{color:#5d6f65}.advanced{border-top:1px solid var(--line);margin-top:24px;padding-top:18px}.advanced summary{cursor:pointer;font-weight:600;font-size:13px;list-style-position:inside}.advanced summary span{display:block;margin:6px 0 0 17px;font-size:11px;font-weight:400;color:var(--muted)}.advanced-body>.hint{margin-top:12px}.advanced fieldset{border:0;margin:0;padding:0;min-width:0}.advanced fieldset:disabled{opacity:.55}.advanced .field label{display:flex;align-items:baseline;justify-content:space-between;gap:8px}.advanced .field label span{font-variant-numeric:tabular-nums;font-weight:400;white-space:nowrap}.range-row{display:flex;align-items:center;gap:14px}.range-row input[type=number]{width:76px;flex:none}input[type=range]{width:100%;min-width:0;accent-color:var(--ink);cursor:pointer;height:26px}input[type=color]{width:100%;height:42px;padding:4px;border:1px solid var(--line);border-radius:7px;background:white}.field .hint{margin-top:7px}.settings-summary{margin-top:22px;font-size:12px;line-height:1.6;padding-left:12px;border-left:3px solid #a9c585;color:#355347;font-variant-numeric:tabular-nums}.preview-button{width:100%;margin-top:16px;font-size:12px}.settings .primary{margin-top:14px}.local-limit{max-width:60ch}.comparison{margin-top:28px;scroll-margin-top:24px}.comparison-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.comparison h2{font-size:24px}.comparison-heading p{font-size:13px;color:var(--muted);line-height:1.6}.compare-stage{position:relative;width:100%;height:380px;background:#edf1e7;border:1px solid var(--line);border-radius:12px;overflow:hidden}.compare-stage>img,.compare-stage>div,.compare-stage>div>img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}.compare-stage>div{background:#edf1e7;clip-path:inset(0 50% 0 0)}.compare-label{position:absolute;top:12px;background:#fff;padding:7px 10px;font-size:11px;border-radius:5px}.original-label{right:12px}.output-label{left:12px}.compare-control{display:block;font-size:12px;margin-top:12px}.compare-control input{display:block;margin-top:8px}.comparison .hint{margin-top:8px}.progress-card{border-radius:16px;box-shadow:none}.progress-meta{color:var(--muted)}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}#files:empty{display:none}.settings input:disabled{cursor:default}.bottom-note{font-size:11px;line-height:1.7;gap:24px}.bottom-note span:first-child{max-width:65ch}.drop .source-preview{border:0}.source-preview img,.source-preview video{padding:8px}.progress-actions .primary{overflow-wrap:anywhere}.file-row .file-name{max-width:100%}
@media(max-width:700px){h1{font-size:34px}.compare-stage{height:280px}.comparison-heading{align-items:flex-start}.comparison-heading .secondary{font-size:11px;white-space:nowrap;padding:11px}.bottom-note{flex-direction:column;gap:6px}.row{flex-wrap:wrap}.row>div{min-width:120px}.range-row{gap:8px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation:none!important;transition:none!important}.progress-bar.is-busy{width:100%!important;opacity:.6}}

.clear-files{margin-top:12px;font-size:12px}.settings .check{line-height:1.5}

.tab{color:#50664f}h1 span{color:#63765f}
