.decode-options{display:flex;gap:14px;flex-wrap:wrap;padding:16px 0}.decode-options label{display:flex;gap:6px;align-items:center;flex-wrap:wrap}.decode-options select,.decode-options input{font:inherit;max-width:100%;padding:7px}.decode-options input[type=file]{width:100%}#advanced-output{padding:16px;border:1px solid var(--border);border-radius:12px;margin:16px 0}#size-readout{overflow-wrap:anywhere}.decoded-line{padding:10px 0;border-top:1px solid var(--border)}.decoded-line textarea{display:block;width:100%;min-height:90px;max-height:400px;resize:vertical;white-space:pre-wrap;overflow-wrap:anywhere;box-sizing:border-box}#decoded-download{display:inline-block;margin:12px 0}#decode-volume-math p{overflow-wrap:anywhere}@media(max-width:600px){.decode-options{display:block}.decode-options label{margin:10px 0}.decode-options select{max-width:100%}}

/* Keep the unchanged reference table and code inside the mobile viewport. */
.ref{min-width:0;max-width:100%;overflow-x:auto}.ref pre{max-width:100%;overflow-x:auto}.ref img{max-width:100%;height:auto}#decoded-download[hidden]{display:none}

/* Mobile-first first-screen polish; keep all original DOM and script behavior. */
.wrap>header{padding:22px 0 16px}.wrap>header h1{font-size:25px;line-height:1.22;letter-spacing:-.025em;margin-bottom:14px;color:#183b2e}.wrap>header .sub{font-size:14px;line-height:1.6;max-width:74ch}.wrap>header>p+p{font-size:14px;line-height:1.6;margin-top:10px;color:#4b6458}.tool{margin-top:8px}.tool .box{border-color:#ccdcd1;border-radius:18px;background:#fff;box-shadow:0 8px 28px #173d3109}.tool #input{min-height:132px;font-size:14px;line-height:1.65;padding:18px;color:#183b2e;background:#fff}.tool #input::placeholder{color:#708579}.decode-options{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px;padding:16px 18px;border-top:1px solid #e7eee8;background:#fbfdfb}.decode-options label{display:block;min-width:0;margin:0;font-size:13px;font-weight:600;line-height:1.5;color:#385b47}.decode-options select{display:block;width:100%;min-height:44px;margin-top:6px;padding:8px 10px;border:1px solid #bfd1c4;border-radius:9px;background:#fff;color:#183b2e;font:inherit;font-size:15px}.decode-options label:nth-child(3){grid-column:1/-1;display:flex;align-items:center;gap:10px;min-height:32px;font-size:14px;font-weight:400}.decode-options input[type=checkbox]{width:19px;height:19px;accent-color:#254f3c;flex-shrink:0}.decode-options label:last-child{grid-column:1/-1}.decode-options input[type=file]{display:block;margin-top:6px;padding:9px;border:1px dashed #b8cdbf;border-radius:9px;background:#fff;font-size:13px}.decode-options input::file-selector-button{min-height:34px;padding:6px 10px;border:1px solid #c9d8ce;border-radius:6px;color:#254f3c;background:#f3f8f4;font:inherit;margin-right:8px;cursor:pointer}.tool .bar{padding:14px 18px;gap:10px;background:#f0f5f1;border-color:#dce7df}.tool .bar button{min-height:44px;border-radius:9px;font-size:14px;padding:10px 16px}.tool .bar .primary{background:#254f3c;border-color:#254f3c;color:#fff;box-shadow:0 3px 8px #173d3112}.tool .chips{gap:8px;line-height:1.7}.tool .chip{padding:6px 11px}.decode-options :is(select,input):focus-visible,.tool button:focus-visible{outline:2px solid #6f9c83;outline-offset:2px}
@media(max-width:600px){.tool .bar .counter{flex-basis:100%;margin:0}.tool .bar .primary{flex:1}.tool .bar button:last-child{min-width:78px}}@media(min-width:720px){.wrap>header{padding:40px 0 22px}.wrap>header h1{font-size:34px}.wrap>header .sub,.wrap>header>p+p{font-size:15px}.decode-options{grid-template-columns:1fr 1fr;gap:18px 24px;padding:22px}.decode-options label:nth-child(3),.decode-options label:last-child{grid-column:auto}.tool #input{min-height:160px}.tool .bar .counter{margin-right:auto}}

@media(max-width:600px){.wrap>header h1{font-size:23px;line-height:1.24}}
