:root{font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#18372c;background:#f7faf8;font-size:16px;line-height:1.6}*{box-sizing:border-box}body{margin:0}header{max-width:1040px;margin:auto;padding:16px 24px;display:flex;align-items:center;justify-content:space-between;gap:14px;border-bottom:1px solid #dbe5df}a{color:#24694e;text-underline-offset:4px}header a{font-weight:650;text-decoration:none}main{max-width:960px;margin:auto;padding:32px 24px 64px}.intro{max-width:760px;margin-bottom:28px}.eyebrow{font-size:12px;letter-spacing:.13em;font-weight:650;color:#486959}h1{font-size:clamp(30px,5vw,46px);letter-spacing:-.035em;line-height:1.13;margin:14px 0}h2{font-size:23px;line-height:1.3;margin:0 0 18px}.lead{font-size:18px;color:#506358}.badges,.actions,.mode-tabs{display:flex;gap:10px;flex-wrap:wrap}.badges span{font-size:13px;padding:5px 10px;background:#edf4ef;border:1px solid #d8e5dc;border-radius:30px}button,.button,select{font:inherit;font-size:16px;min-height:44px;border:1px solid #bdcfc3;border-radius:9px;background:white;color:#244e3a;padding:10px 15px;cursor:pointer}button:disabled{opacity:.6;cursor:wait}button:hover,.button:hover{background:#edf4ef}.primary,button[aria-pressed=true]{background:#285d46;color:white;border-color:#285d46}.primary:hover,button[aria-pressed=true]:hover{background:#214c3a}button:focus-visible,a:focus-visible,select:focus-visible,textarea:focus-visible,.file-label:focus-within{outline:3px solid #d18d20;outline-offset:3px}.quiet{background:transparent}.mode-tabs{margin-bottom:14px}.mode-tabs button{flex:1}.panel{padding:28px;background:white;border:1px solid #d5e2da;border-radius:18px}.upload-zone{padding:22px;border:2px dashed #acc7b5;border-radius:12px;background:#f7faf8}.upload-zone p:first-child{margin-top:0}.dragover{background:#e1efe6}.file-label{position:relative;overflow:hidden;display:inline-flex;align-items:center}.file-label input{position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer}.muted{color:#586b60;font-size:14px}.status{min-height:1.6em;overflow-wrap:anywhere}.status[data-error=true]{color:#a12e21}.image-details{display:flex;gap:24px;align-items:flex-start;margin:16px 0 24px}.preview{display:flex;align-items:center;justify-content:center;flex:0 0 160px;min-height:150px;border:1px solid #d8e2dc;border-radius:10px;background:repeating-conic-gradient(#eee 0% 25%,#fff 0% 50%) 50%/16px 16px;overflow:hidden}.preview img{max-width:100%;max-height:180px;object-fit:contain}.decoded{margin:20px 0;min-height:200px}.decoded img{max-height:350px}dl{margin:0;min-width:0}dt{font-size:13px;color:#53665a}dd{margin:0 0 10px;overflow-wrap:anywhere}label:not(.button){display:block;margin:10px 0 6px}textarea{display:block;width:100%;min-height:180px;max-height:65vh;resize:vertical;font:16px/1.5 ui-monospace,monospace;padding:14px;border:1px solid #b9cbbf;border-radius:9px;background:#fbfdfb;color:#213b2c;overflow-wrap:anywhere}#outputFormat{width:100%}.guide{margin-top:32px;padding:28px 4px}.guide h2:not(:first-child){margin-top:32px}.guide p{color:#4b6153}.guide li{padding:4px 0}.formats{display:grid;grid-template-columns:140px 1fr;gap:10px}.formats dt{font-size:16px;font-weight:650}.sample-link{display:inline-flex;align-items:center;gap:18px}.sample-link img{image-rendering:pixelated;border:1px solid #d8e2dc}.actions{margin:16px 0}.actions a{min-height:44px;display:inline-flex;align-items:center;padding-right:12px}footer{border-top:1px solid #dbe5df;display:flex;gap:24px;padding-top:24px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}[hidden]{display:none!important}@media(max-width:600px){header{padding:12px 16px;gap:8px;font-size:14px}header select{padding:8px;max-width:110px}main{padding:24px 16px 48px}.panel{padding:18px 16px}.upload-zone{padding:16px}.image-details{flex-direction:column;gap:16px}.preview{width:100%;flex:auto}.formats{display:block}.formats dd{margin-bottom:18px}.actions button{flex-grow:1}.mode-tabs button{padding:10px}.badges{gap:6px}.guide{padding:24px 0}}
