:root{--paper:#faf9f6;--ink:#262720;--muted:#66685f;--line:#dfdfd6;--orange:#ff733a;--pale:#fff0e6;--sans:"Instrument Sans","Inter",Arial,Helvetica,sans-serif;font:16px/1.5 var(--sans);color:var(--ink);background:var(--paper);font-synthesis:none}
*{box-sizing:border-box}body{margin:0;min-height:100vh;display:flex;flex-direction:column}button,select,input{font:inherit}button,a,select,input{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:wait;opacity:.6}button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible+span{outline:3px solid #156b82;outline-offset:3px}svg{width:1.15em;height:1.15em;fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.75;flex:none}.icons,[hidden]{display:none!important}.shell{width:min(1144px,calc(100% - 88px));margin-inline:auto}header{border-bottom:1px solid var(--line);background:#fffefa}.topbar,.nav-right,.plain,.brand,.local,.card-head,.btn,.formats,.upload-foot,.queue-head,.sample,.hint,.empty,.footer-brand,.dialog-head,.guide-note{display:flex;align-items:center}.topbar{min-height:69px;justify-content:space-between}.brand{color:var(--ink);text-decoration:none;font-size:1.75rem;font-weight:780;letter-spacing:-1.7px;line-height:1;gap:10px}.brand span{color:#ef6228;margin-left:-10px}.nav-right{gap:21px}.nav-rule{height:19px;width:1px;background:var(--line)}.local,.plain,.sample{gap:7px;font-size:.875rem;font-weight:600}.local{color:#405b44;background:#eff3eb;border:1px solid #dde6d7;border-radius:99px;padding:3px 10px;font-size:.8rem}.local svg{width:15px;height:15px}.plain,.sample,.iconbtn{background:none;border:0;color:var(--ink)}.plain{padding:7px 0}.plain:hover,.sample:hover{text-decoration:underline;text-underline-offset:3px}main{flex:1}.intro{display:flex;align-items:center;justify-content:space-between;min-height:222px;gap:18px;padding:22px 0 25px}.intro h1{font-size:clamp(3.65rem,5.4vw,5.15rem);line-height:1.02;letter-spacing:-.069em;margin:0 0 13px;font-weight:650}.intro h1 em{font-family:Georgia,"Times New Roman",serif;font-weight:500;letter-spacing:-.06em;color:#d85621}.intro p{font-size:1.025rem;color:#5a5c53;line-height:1.55;margin:0}.hero-art{width:clamp(265px,27vw,350px);height:auto;max-height:178px;object-fit:contain;margin-right:3.5%}.workgrid{display:grid;grid-template-columns:minmax(0,1.64fr) minmax(315px,1fr);gap:20px}.panel{background:#fffefa;border:1px solid var(--line);border-radius:14px;box-shadow:0 2px 3px #40382005}.upload-panel,.settings{padding:23px;min-width:0}.card-head{gap:11px}.tile{display:grid;place-items:center;width:34px;height:34px;color:#a94624;background:#fff0e5;border:1px solid #f4decf;border-radius:9px;flex:none}.tile svg{width:18px;height:18px}.tile.neutral{background:#f2f2ec;border-color:#e1e3d9;color:#505448}h2{font-size:1.26rem;letter-spacing:-.04em;line-height:1.2;margin:0;font-weight:690}.drop{border:1.5px dashed #d49976;border-radius:9px;background:#fff8f0;min-height:225px;flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:14px;transition:background .15s,box-shadow .15s}.drop.drag{background:#ffe2cc;box-shadow:inset 0 0 0 2px #e77441}.drop img{width:93px;height:auto;margin-bottom:3px}.drop h3{font-size:1.18rem;letter-spacing:-.035em;line-height:1.3;margin:0;font-weight:650}.drop p{margin:3px 0 13px;color:var(--muted);font-size:.885rem}.btn{border-radius:7px;justify-content:center;gap:8px;border:1px solid transparent;padding:9px 17px;font-weight:640;font-size:.9rem;transition:background .15s,transform .15s,box-shadow .15s;line-height:1.4}.btn:active:not(:disabled){transform:translateY(1px)}.orange{background:var(--orange);color:#291c14;border-color:#e7612b}.orange:hover:not(:disabled){background:#ff814b}.dark{background:#292b25;color:#fffefa}.dark:hover:not(:disabled){background:#3e4237}.upload-panel{display:flex;flex-direction:column;gap:16px}.upload-foot{justify-content:space-between;gap:7px}.formats{gap:5px;flex-wrap:wrap}.formats span,#count{font-family:"IBM Plex Mono",ui-monospace,Consolas,monospace;font-size:.76rem;line-height:1.4}.formats span{border:1px solid #e0e0d6;border-radius:4px;background:#f6f6f0;color:#626459;padding:1px 6px;font-weight:600;letter-spacing:.025em}.limit{font-size:.78rem;color:var(--muted)}.settings{display:flex;flex-direction:column}.settings .card-head{margin-bottom:19px}.label{font-size:.875rem;font-weight:650;display:block;margin:0 0 6px}.select-wrap{position:relative}.select-wrap svg{position:absolute;top:50%;transform:translateY(-50%);pointer-events:none;width:16px;height:16px}.select-wrap .format-icon{left:13px;color:#66685d}.select-wrap .chev{right:13px;width:14px}.select-wrap select{-webkit-appearance:none;appearance:none;background:#fffefa;border:1px solid #cccec3;border-radius:7px;width:100%;height:41px;padding:0 35px;color:var(--ink);cursor:pointer;font-size:.92rem}.settings fieldset{margin:16px 0 0;border:0;padding:0}.settings legend{padding:0}.segments{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-radius:7px;padding:3px;background:#f0f1eb;border:1px solid #e3e4db;gap:2px}.segments label{position:relative;cursor:pointer}.segments input{position:absolute;opacity:0;width:1px;height:1px}.segments span{display:block;text-align:center;padding:6px 2px;font-size:.84rem;line-height:1.4;color:#62665b;border-radius:5px;border:1px solid transparent;font-weight:560}.segments input:checked+span{background:#fffefa;color:#9e401f;border-color:#dccabd;box-shadow:0 1px 3px #37302010;font-weight:650}.hint{align-items:flex-start;font-size:.81rem;gap:7px;color:var(--muted);margin:10px 0 15px;min-height:21px;line-height:1.4}.hint svg{margin-top:1px;width:14px;height:14px}.run-wrap{border-top:1px solid var(--line);margin-top:auto;padding-top:16px}.run-wrap button{width:100%;min-height:41px}.run-wrap svg{stroke:#ffc299}.queue{margin-top:21px;padding:20px 23px 19px}.queue-head{justify-content:space-between;gap:10px}#count{display:inline-block;padding:2px 8px;border-radius:99px;background:#f1f2eb;border:1px solid #dfe1d6;color:#5e6256}button.small{font-size:.82rem;color:#6a6d62}.empty{gap:13px;background:#f7f7f2;border:1px solid #e7e7df;border-radius:8px;padding:15px 17px;margin-top:15px}.empty-icon{color:#7a7f6e;border:1px solid #dce0d3;background:#fffefa;width:36px;height:39px;border-radius:7px;display:grid;place-items:center}.empty-icon svg{width:19px;height:19px}.empty strong{font-size:.9rem;font-weight:620}.empty p{font-size:.82rem;margin:1px 0 0;color:var(--muted)}.sample{margin-left:auto;font-size:.82rem;white-space:nowrap;color:#69553f;padding:7px 0}.sample svg{width:15px;height:15px}footer{margin-top:33px!important;padding:17px 0 20px;border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;color:#77796f;font-size:.78rem}.footer-brand{gap:6px;font-weight:650;color:#62665b;font-size:.9rem}.footer-brand img{filter:grayscale(.9);opacity:.65}.notice:not(:empty){margin-top:12px;font-size:.9rem;padding:10px 14px;border:1px solid #eac7aa;border-radius:7px;background:#fff2e6;color:#7a411d}
.row{display:flex;align-items:center;gap:11px;border-top:1px solid var(--line);padding:13px 0;min-width:0}.row:first-child{margin-top:15px}.file-badge{width:43px;height:39px;display:grid;place-items:center;flex:none;border-radius:6px;color:#9b482b;background:#fff0e5;font:bold .73rem/1.3 monospace}.file-data{min-width:0;flex:1}.filename{margin:0;overflow-wrap:anywhere;font-weight:620;font-size:.92rem}.detail{font-size:.82rem;color:var(--muted);overflow-wrap:anywhere}.result-note{font-size:.8rem;font-weight:600;color:#486448}.problem{color:#994722}.iconbtn{display:inline-grid;place-items:center;width:34px;height:34px;border-radius:7px}.iconbtn:hover{background:#f0f0e9}.dl{color:#833c20;background:var(--pale);border-radius:6px;display:inline-flex;align-items:center;gap:5px;font-size:.82rem;font-weight:620;padding:6px 10px;text-decoration:none}.dl:hover{background:#ffe4cf}#result-foot{padding-top:12px;border-top:1px solid var(--line);display:flex;align-items:center;gap:12px;justify-content:space-between;font-size:.86rem;color:var(--muted);flex-wrap:wrap}#result-foot .btn{font-size:.82rem}dialog{border:1px solid var(--line);padding:0;max-width:min(475px,92vw);border-radius:14px;color:var(--ink);background:#fffefa;box-shadow:0 20px 80px #25251c25}dialog::backdrop{background:#20201960}.dialog-inner{padding:24px}.dialog-head{gap:10px}.dialog-head button{margin-left:auto}.dialog-inner ol{padding-left:22px}.dialog-inner li{padding:6px 0 6px 3px;font-size:.94rem}.guide-note{align-items:flex-start;gap:8px;border-top:1px solid var(--line);padding-top:15px;margin:16px 0 0;font-size:.82rem;color:var(--muted)}.guide-note svg{margin-top:2px}
@media(min-width:1450px){.intro{min-height:245px}.drop{min-height:250px}}
@media(max-width:920px){.shell{width:calc(100% - 48px)}.workgrid{grid-template-columns:minmax(0,1.28fr) minmax(285px,1fr);gap:15px}.upload-panel,.settings{padding:19px}.upload-foot{flex-wrap:wrap}.intro{min-height:202px}}
@media(max-width:720px){.shell{width:calc(100% - 32px);max-width:590px}.topbar{min-height:61px}.brand{font-size:1.55rem}.brand img{width:30px;height:30px}.nav-right{gap:12px}.nav-rule{display:none}.intro{min-height:165px;padding:24px 0;gap:0;position:relative}.intro h1{font-size:clamp(2.75rem,8.9vw,3.8rem);margin-bottom:9px}.intro p{font-size:.9rem;max-width:340px}.hero-art{margin:0;width:27%;min-width:100px}.workgrid{grid-template-columns:1fr;gap:14px}.upload-panel,.settings,.queue{padding:17px}.drop{min-height:213px}.settings .card-head{margin-bottom:15px}.queue{margin-top:14px}.empty{flex-wrap:wrap;padding:12px;gap:10px}.sample{margin-left:auto}.queue-head .card-head{gap:8px}.row{flex-wrap:wrap}.dl span{display:inline}.dl{padding:8px}.hint{margin-bottom:13px}footer{margin-top:24px!important}.local{font-size:.75rem}.plain{font-size:.84rem}}
@media(max-width:480px){.intro{min-height:161px}.intro>div{position:relative;z-index:1;flex:1}.intro p{max-width:245px;font-size:.865rem;line-height:1.45}.hero-art{width:112px;min-width:0;margin-left:-8px;align-self:flex-start;margin-top:1px}.intro p br{display:none}.sample{margin-left:46px;padding:0}.empty .empty-icon{width:34px}.formats{gap:3px}.formats span{font-size:.68rem;padding-inline:4px}.limit{font-size:.72rem}.local{gap:4px;padding:3px 7px}.nav-right{gap:10px}.card-head h2{font-size:1.14rem}.row{gap:6px}.queue-head .plain svg{display:none}.settings .segments span{padding:7px 2px}.intro h1{white-space:nowrap}.footer-brand{font-size:.84rem}}
@media(max-width:357px){.hero-art{width:80px}.intro h1{font-size:2.6rem}.local{display:none}.queue-head .tile{display:none}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}

.more-formats{background:transparent;border:0;padding:2px 4px;color:#775039;font-size:.78rem;text-decoration:underline;text-underline-offset:3px}

#download-all{text-decoration:none}
.save-options{display:flex;align-items:center;flex-wrap:wrap;gap:8px 16px;margin-top:12px;padding:12px 16px;background:#f4f4ed;border:1px solid var(--line);border-radius:8px;font-size:.85rem}
.save-options span{overflow-wrap:anywhere}.save-options .sample{margin:0}.save-options a{color:#765039}
.dl{min-height:40px}.save-options a,.save-options .sample{padding:6px 0}

#result-actions{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-wrap:wrap}

.row-actions,.preview-tools,.preview-pager,.preview-head,.preview-foot{display:flex;align-items:center;gap:9px}
.view-button,.preview-tools select,#preview-compare button{font:inherit;font-size:.84rem;font-weight:600;color:#4a5046;background:#fffefa;border:1px solid #cdd0c4;border-radius:6px;padding:8px 11px;cursor:pointer}
.view-button:hover,#preview-compare button:hover{background:#f3f3ec}.view-button:disabled{opacity:.45;cursor:default}
#preview{width:min(940px,95vw);max-width:95vw;max-height:94dvh;overflow:hidden}
#preview[open]{display:flex;flex-direction:column}
.preview-head{position:static;min-height:0;justify-content:space-between;padding:16px 20px;background:#fffefa;border:0}
.preview-head p{margin:0 0 2px;color:var(--muted);font-size:.78rem}.preview-head h2{margin:0;font-size:1.1rem;overflow-wrap:anywhere}
.preview-head .iconbtn{flex:none}.preview-tools,.preview-pager{padding:8px 18px;background:#f6f6f0;border-block:1px solid var(--line);flex-wrap:wrap}
#preview-compare{display:inline-flex}#preview-compare button{border-radius:0}#preview-compare button:first-child{border-radius:6px 0 0 6px}#preview-compare button:last-child{border-radius:0 6px 6px 0;margin-left:-1px}#preview-compare button[aria-pressed=true],#preview-compare button[aria-pressed=true]:hover{background:#454c3c;color:white}
#preview-zoom-label{margin-left:auto;font-size:.82rem}#preview-zoom{margin-left:4px}
#preview-scroll{overflow:auto;overscroll-behavior:contain;min-height:110px;height:58dvh;background:#e9eae3;position:relative}
#preview-content{padding:12px;min-width:100%;width:max-content;min-height:100%;box-sizing:border-box}
#preview-content img,#preview-content canvas{display:block;margin:0 auto;background:repeating-conic-gradient(#f3f3f0 0% 25%,white 0% 50%) 50% / 16px 16px;max-width:none}
.preview-sheet{margin:0 auto;padding:16px 18px;background:white;border:1px solid var(--line);border-radius:6px;line-height:1.55;overflow-wrap:anywhere}
.preview-sheet h3{margin:0 0 8px;font-size:1rem}.preview-sheet p{margin:0 0 .55em}.preview-sheet pre{white-space:pre-wrap;overflow-wrap:anywhere;margin:0;font:.9rem/1.5 ui-monospace,monospace}
.preview-entry{display:block;text-align:left;width:100%;color:#784321;border:0;border-bottom:1px solid var(--line);background:white;padding:9px 3px;overflow-wrap:anywhere;cursor:pointer}
.preview-sheet table{border-collapse:collapse;font-size:.9rem}.preview-sheet td{border:1px solid var(--line);padding:4px 8px;vertical-align:top}.preview-sheet select{max-width:100%;margin:0 0 10px;padding:6px}
.preview-pager{justify-content:center;font-size:.85rem}.preview-foot{justify-content:space-between;margin:0!important;padding:12px 18px;border-top:1px solid var(--line);color:var(--muted);font-size:.82rem}.preview-foot a{text-decoration:none;white-space:nowrap;font-size:.84rem}
@media(max-width:600px){.preview-head,.preview-tools,.preview-foot{padding:9px 11px}.preview-foot{gap:6px}.row-actions{gap:4px}.row .file-data{flex-basis:calc(100% - 85px)}.row-actions{margin-left:49px}.row>.iconbtn{margin-left:auto}#preview-scroll{height:58dvh}#preview{max-width:98vw;width:98vw}}
.cell-ref{color:#70756b;font: .68em ui-monospace,monospace}
