:root{--paper:#eef1f3;--ink:#243747;--muted:#667581;--line:#d5dde2;--accent:#ffbc96;--white:#fff;--panel:#f6f8f9;--body:'Segoe UI',Arial,sans-serif;--display:'Arial',sans-serif;--mono:'Cascadia Code',Consolas,monospace;color:var(--ink);font-family:var(--body);font-size:15px;background:var(--paper);font-synthesis:none}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:24px}body{margin:0}button,a,input,summary{-webkit-tap-highlight-color:transparent}button,input{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer}a{color:inherit;text-decoration:none}button:disabled{cursor:wait;opacity:.5}button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible{outline:3px solid #287cac;outline-offset:5px}button{color:inherit}svg{width:20px;height:20px;flex:none}button{transition:background .15s,transform .15s}button:active:not(:disabled){transform:translateY(1px)}.wrap{width:min(1280px,calc(100% - 96px));margin-inline:auto}.site-header{height:100px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.brand{display:inline-flex;align-items:center;font-size:23px;font-weight:700;letter-spacing:-1px;white-space:nowrap}.brand-light{font-weight:400}.brand-dot{color:#9c573b}.brand-icon{width:27px;height:27px;display:inline-block;margin-right:10px;border:1.5px solid var(--ink);border-radius:50%;background:linear-gradient(90deg,var(--ink) 50%,transparent 50%);transform:rotate(-30deg)}nav{display:flex;align-items:center;gap:30px;font-size:13px}nav a:hover,footer>a:last-child:hover{text-decoration:underline;text-underline-offset:5px}.local-note{display:flex;align-items:center;gap:8px;padding-left:28px;border-left:1px solid var(--line);color:var(--muted);font-size:12px}.local-note span{width:6px;height:6px;background:#4d7b64;border-radius:50%}.intro{display:flex;align-items:flex-end;justify-content:space-between;padding-top:51px;padding-bottom:44px;gap:30px}.eyebrow{font:10px var(--mono);letter-spacing:1.8px;margin:0 0 19px;color:var(--muted)}h1{font-family:var(--display);font-size:clamp(36px,4.1vw,60px);font-weight:500;letter-spacing:-2.8px;line-height:1.11;margin:0}.other{position:relative;display:inline-block;background:var(--ink);color:var(--paper);padding:0 9px 4px;margin:5px 0 0 -2px;transform:rotate(-1.4deg)}.intro-copy{padding:0 6px 9px 0;font-size:16px;line-height:1.7;max-width:370px}.intro-copy p{margin:0}.intro-copy .intro-small{font-size:12px;color:var(--muted);margin-top:14px}.workbench{background:var(--white);border:1px solid #cdd6dc;border-radius:12px;box-shadow:0 8px 25px #263b4706;overflow:hidden;scroll-margin-top:20px}.tool-top{height:57px;display:flex;align-items:center;justify-content:space-between;padding:0 24px;border-bottom:1px solid var(--line)}.tool-title{display:flex;align-items:center;gap:9px;font-size:13px;font-weight:600}.tiny-symbol{font-size:23px;font-weight:400}.sample-badge{font:9px var(--mono);letter-spacing:1px;border:1px solid var(--line);color:var(--muted);border-radius:3px;padding:4px 6px;margin-left:7px}.text-button{display:flex;align-items:center;gap:9px;border:0;background:none;font-size:12px;padding:9px}.text-button span{font-size:21px}.text-button:hover{background:var(--panel);border-radius:4px}.workspace{display:grid;grid-template-columns:255px minmax(0,1fr);position:relative;min-height:400px}.controls{padding:26px 24px 20px;border-right:1px solid var(--line)}.control-heading{display:flex;gap:10px;align-items:center}.step{font:10px var(--mono);color:#6c7e8a}.control-heading h2{font-size:13px;font-weight:600;margin:0}.control-description{font-size:19px;line-height:1.45;letter-spacing:-.3px;margin:13px 0 20px}.upload-button{background:var(--ink);border:1px solid var(--ink);color:#fff;display:flex;align-items:center;justify-content:center;gap:10px;width:100%;padding:13px 10px;border-radius:5px;font-size:13px}.upload-button:hover{background:#395365}.upload-hint{font-size:11px;line-height:1.9;text-align:center;color:var(--muted);margin:11px 0 0}kbd{font:10px var(--mono);border:1px solid var(--line);padding:2px 4px;border-radius:3px;background:var(--panel);white-space:nowrap}.file-types{font-size:10px;color:var(--muted);text-align:center;line-height:1.8;margin:10px 0 20px}.control-divider{height:1px;background:var(--line);margin-bottom:19px}.switch-row{display:flex;justify-content:space-between;align-items:center;position:relative;font-size:12px;margin-top:15px;cursor:pointer;min-height:30px}.switch-row input{position:absolute;right:0;width:36px;height:22px;opacity:0;cursor:pointer}.switch{height:22px;width:36px;background:#b5bfc6;border-radius:20px;pointer-events:none;position:relative}.switch:after{content:'';position:absolute;top:3px;left:3px;width:16px;height:16px;border-radius:50%;background:#fff;transition:transform .15s}.switch-row input:checked+.switch{background:var(--ink)}.switch-row input:checked+.switch:after{transform:translateX(14px)}.switch-row input:focus-visible+.switch{outline:3px solid #287cac;outline-offset:4px}.control-caption{font-size:10px;color:var(--muted);margin:4px 0 20px}.file-info{display:flex;gap:9px;align-items:center;border-top:1px solid var(--line);padding-top:16px;min-width:0}.file-info>div{min-width:0}.file-info span:not(.file-icon){display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;max-width:170px}.file-icon{font-size:23px;color:#7c8c97}#file-meta{color:var(--muted);font-size:9px;margin-top:4px}.sample-link{background:none;border:0;padding:11px 0 0;font-size:10px;color:var(--muted);text-decoration:underline;text-underline-offset:3px}.sample-link span{margin-left:5px}.preview-area{background:var(--panel);padding:28px 28px 22px;display:flex;flex-direction:column;justify-content:center;min-width:0}.preview-heading{display:flex;justify-content:space-between;gap:12px;font:9px var(--mono);letter-spacing:1px;color:var(--muted);margin-bottom:23px}.comparison{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:22px;position:relative}.comparison figure{margin:0;min-width:0}.comparison figcaption{display:flex;align-items:center;font-size:12px;margin-bottom:11px;gap:7px}.dot{display:inline-block;width:6px;height:6px;border-radius:50%}.original-dot{background:#789eb3}.inverted-dot{background:#c38c6c}.figure-note{margin-left:auto;font:8px var(--mono);color:var(--muted);letter-spacing:1px}.image-mat{aspect-ratio:4/3;display:flex;align-items:center;justify-content:center;overflow:hidden;border:1px solid #cdd6dc;border-radius:5px;background-color:#fff;background-image:conic-gradient(#e6eaed 25%,transparent 0 50%,#e6eaed 0 75%,transparent 0);background-size:16px 16px}.image-mat canvas{display:block;width:100%;height:100%;object-fit:contain}.compare-arrow{position:absolute;left:50%;top:calc(50% + 15px);transform:translate(-50%,-50%);width:32px;height:32px;display:grid;place-items:center;background:white;border:1px solid var(--line);border-radius:50%;font-size:17px;z-index:1}.preview-foot{display:flex;justify-content:space-between;align-items:center;gap:10px;color:var(--muted);font-size:10px;margin-top:19px}.preview-foot p{display:flex;align-items:center;gap:6px;margin:0}.preview-foot svg{width:13px;height:13px}.tool-bottom{min-height:76px;display:flex;justify-content:space-between;align-items:center;padding:14px 24px;gap:18px;border-top:1px solid var(--line)}.status{font-size:12px;color:var(--muted);line-height:1.5}.status.error{color:#a23425}.download-button{background:var(--accent);border:1px solid #eeb18e;border-radius:5px;display:flex;align-items:center;gap:12px;padding:12px 15px;font-size:13px;font-weight:600;white-space:nowrap}.download-button:hover{background:#ffcaa9}.download-button>span{border-left:1px solid #cc987b;padding-left:12px;font:10px var(--mono)}.drop-overlay{display:none;position:absolute;inset:8px;background:#eef1f3f5;z-index:5;place-content:center;text-align:center;font-size:30px;border:2px dashed #678ba1;border-radius:6px;pointer-events:none}.drop-overlay span{font-size:14px;color:var(--muted);margin-top:12px}.dragging .drop-overlay{display:grid}.below{display:grid;grid-template-columns:1fr 1fr;gap:100px;padding-top:76px;padding-bottom:66px}.editorial h2,.questions h2{font-size:34px;font-weight:500;letter-spacing:-1.2px;line-height:1.2;margin:0 0 17px}.editorial>p:not(.eyebrow){font-size:13px;line-height:1.85;max-width:350px;color:var(--muted)}.editorial>a{font-size:12px;display:inline-flex;gap:25px;border-bottom:1px solid #91a1ac;padding:7px 0}.instructions{padding-top:5px}.instructions article{display:flex;gap:20px;margin-bottom:25px}.instructions article:last-child{margin-bottom:0}.instructions article>span{font:11px var(--mono);color:#81909b;padding-top:3px}.instructions h3{font-size:14px;font-weight:600;margin:0 0 7px}.instructions p{font-size:12px;line-height:1.85;color:var(--muted);margin:0;max-width:400px}.questions{border-top:1px solid var(--line);padding:53px 0 65px;display:grid;grid-template-columns:1fr 1.4fr;gap:45px}.questions h2{font-size:28px}.faq-list{border-top:1px solid var(--line)}details{border-bottom:1px solid var(--line)}summary{font-size:13px;line-height:1.5;list-style:none;display:flex;justify-content:space-between;align-items:center;padding:18px 0;gap:18px;cursor:pointer}summary::-webkit-details-marker{display:none}summary span{font-size:20px;color:var(--muted);font-weight:300}details[open] summary span{transform:rotate(45deg)}details p{font-size:12px;line-height:1.85;color:var(--muted);margin:0 22px 20px 0}footer{min-height:100px;border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:25px}footer .brand{font-size:19px}footer .brand-icon{width:22px;height:22px}footer p,footer>a:last-child{font-size:11px;color:var(--muted)}.skip{position:fixed;top:-100px;left:20px;z-index:10;background:white;padding:15px}.skip:focus{top:10px}.no-script{padding:20px;color:#a23425}
@media(min-width:1450px){.workspace{min-height:445px}.preview-area{padding-inline:35px}}
@media(max-width:1100px){.wrap{width:calc(100% - 56px)}.workspace{grid-template-columns:225px minmax(0,1fr)}.controls{padding-inline:19px}.preview-area{padding:23px 20px}.preview-foot{align-items:flex-start;flex-direction:column;gap:8px}.intro-copy{font-size:14px}.below{gap:60px}.local-note{display:none}h1{font-size:46px}}
@media(max-width:760px){.wrap{width:calc(100% - 36px)}.site-header{height:76px}nav{gap:18px;font-size:11px}.brand{font-size:21px}.intro{padding-top:33px;padding-bottom:29px;display:block}h1{font-size:44px;letter-spacing:-2px}.eyebrow{font-size:9px;margin-bottom:16px}.intro-copy{padding:19px 0 0;font-size:13px}.intro-copy br{display:none}.intro-copy .intro-small{font-size:11px;margin-top:7px}.tool-top{padding:0 16px;height:51px}.tool-title{font-size:12px}.sample-badge{font-size:8px;margin-left:0}.workspace{display:flex;flex-direction:column}.controls{padding:20px;border-right:0;border-bottom:1px solid var(--line);display:grid;grid-template-columns:1fr 1fr;gap:0 20px}.controls>.control-heading:first-child{grid-column:1/-1;margin-bottom:13px}.control-description,.file-types,.control-divider,.controls>.control-heading:nth-of-type(3),.control-caption{display:none}.upload-button{grid-column:1;grid-row:2;padding:12px 6px;font-size:12px}.upload-hint{grid-column:2;grid-row:2;align-self:center;margin:0;font-size:10px}.switch-row{grid-column:1;grid-row:3;margin:14px 0 0;font-size:11px}.file-info{grid-column:2;grid-row:3;margin-top:13px;padding:0;border:0}.file-info span:not(.file-icon){max-width:110px;font-size:10px}#file-meta{font-size:8px}.sample-link{grid-column:2;text-align:left;padding:8px 0 0}.preview-area{padding:22px 20px}.preview-heading{font-size:8px;letter-spacing:.5px;margin-bottom:20px}.comparison{gap:15px}.comparison figcaption{font-size:11px}.figure-note{display:none}.compare-arrow{width:26px;height:26px;font-size:14px}.preview-foot{font-size:9px;flex-direction:row;flex-wrap:wrap;margin-top:15px}.tool-bottom{padding:15px 16px;flex-direction:column;align-items:stretch;gap:12px}.status{font-size:11px}.download-button{justify-content:center;padding:13px}.below{grid-template-columns:1fr;gap:29px;padding-top:45px;padding-bottom:39px}.editorial h2{font-size:31px}.editorial>p:not(.eyebrow){max-width:440px}.questions{grid-template-columns:1fr;gap:18px;padding:35px 0 40px}footer{flex-wrap:wrap;gap:15px;padding-top:23px;padding-bottom:25px}footer p{order:3;width:100%;margin:0}footer>a:last-child{margin-left:auto;font-size:10px}}
@media(max-width:430px){h1{font-size:38px}.comparison{grid-template-columns:1fr;gap:21px}.image-mat{aspect-ratio:4/3}.compare-arrow{display:none}.figure-note{display:block}.preview-foot>span{display:none}.preview-heading{font-size:7px}.controls{gap:0 14px}.upload-hint{font-size:9px}.sample-badge{display:none}nav{gap:12px}.preview-area{padding:20px 16px}}
.copyright{display:inline-block;margin-top:7px;font-size:10px;line-height:1.5}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{transition:none!important}}

.feedback{display:inline-block;margin-top:7px;line-height:1.7}.feedback a{text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}.feedback a:hover{color:var(--ink)}

.footer-links{display:flex;flex-wrap:wrap;gap:12px 20px;font-size:11px;color:var(--muted)}.footer-links a:hover{text-decoration:underline;text-underline-offset:4px}.info-page{max-width:780px;padding-top:64px;padding-bottom:70px}.info-page h1{font-size:clamp(38px,6vw,64px);letter-spacing:-2px;line-height:1.08;margin:0 0 25px}.info-intro{font-size:19px;line-height:1.7;color:var(--muted);max-width:650px}.info-date{font:11px var(--mono);color:var(--muted);margin:25px 0 36px}.info-page section{margin-top:36px}.info-page h2{font-size:23px;font-weight:500;letter-spacing:-.5px;margin:0 0 14px}.info-page section p{font-size:15px;line-height:1.85;color:var(--muted)}.info-page a{color:var(--ink);text-decoration:underline;text-underline-offset:4px;overflow-wrap:anywhere}.info-return{display:inline-block;margin-top:30px;font-size:14px}@media(max-width:760px){.footer-links{margin-left:auto;font-size:10px;gap:12px}.info-page{padding-top:38px;padding-bottom:45px}.info-intro{font-size:17px}.info-page section p{font-size:14px}.info-page h2{font-size:21px}}

.site-footer{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:26px 0;min-height:0}.footer-identity{display:flex;align-items:center;gap:22px;flex-shrink:0}.footer-identity small{font-size:11px;color:var(--muted)}.site-footer .brand{font-size:18px}.site-footer .brand-icon{width:21px;height:21px;margin-right:8px}.site-footer .footer-links{margin:0;display:flex;align-items:center;gap:24px;font-size:12px}.footer-contact{display:inline-flex;align-items:center;gap:9px;padding-left:24px;border-left:1px solid var(--line)}.footer-contact>span:first-child{color:var(--ink)}.footer-email{font-size:11px}.footer-contact>span:last-child{font-size:14px}@media(max-width:1000px){.footer-email{display:none}}@media(max-width:760px){.site-footer{display:flex;flex-direction:column;align-items:stretch;gap:22px;padding:25px 0}.footer-identity{justify-content:space-between;gap:15px}.footer-identity small{font-size:10px}.site-footer .footer-links{justify-content:flex-start;gap:24px;font-size:12px}.footer-contact{margin-left:auto;padding-left:0;border:0}}

/* Localized headers and copy share the original design, with room for longer labels. */
.site-header .local-note{display:none}.language-menu{position:relative;border:0;flex:none;z-index:20}.language-menu summary{display:flex;gap:7px;padding:10px 0;font-size:12px;white-space:nowrap}.language-menu summary span{font-size:14px;color:inherit}.language-menu[open] summary span{transform:none}.language-options{position:absolute;right:0;top:100%;width:180px;padding:7px;background:var(--panel);border:1px solid var(--line);border-radius:8px;box-shadow:0 10px 25px #24374712;display:grid;gap:2px}.language-options a{padding:10px 12px;border-radius:4px;font-size:13px;text-decoration:none}.language-options a:hover,.language-options a[aria-current]{background:var(--line);color:var(--ink)}.info-contact{margin:24px 0}.control-heading h2{overflow-wrap:anywhere}.upload-button{white-space:normal}.intro h1{overflow-wrap:anywhere}html:not([lang="en"]) .intro h1{font-size:clamp(40px,4.7vw,68px);letter-spacing:-1.7px}html[lang="zh-Hans"] .intro h1,html[lang="ja"] .intro h1{line-height:1.25;letter-spacing:-1px}html[lang="zh-Hans"] .info-page,html[lang="ja"] .info-page{line-height:1.9}.info-page h1{overflow-wrap:anywhere}html:not([lang="en"]) .sample-badge{font-size:8px}html:not([lang="en"]) .tool-title{flex-wrap:wrap}.site-footer .footer-links{flex-wrap:wrap}.control-heading{min-width:0}@media(max-width:760px){.site-header{gap:12px;flex-wrap:wrap;height:auto;min-height:76px;padding-block:14px}.site-header nav{gap:14px;flex-wrap:wrap}.language-menu summary{font-size:11px;padding:7px 0}html:not([lang="en"]) .intro h1{font-size:40px;letter-spacing:-1px}.upload-button{min-height:44px}.instructions p,.editorial>p:not(.eyebrow),details p{overflow-wrap:anywhere}.footer-identity{flex-wrap:wrap}.preview-heading{flex-wrap:wrap;gap:8px}.info-page h1{font-size:38px}.site-footer .footer-links{gap:18px}}

html[lang="zh-Hans"]{--body:'Segoe UI','Microsoft YaHei','PingFang SC',sans-serif;--display:var(--body)}html[lang="ja"]{--body:'Segoe UI','Yu Gothic','Meiryo',sans-serif;--display:var(--body)}html[lang="zh-Hans"] .instructions p,html[lang="ja"] .instructions p,html[lang="zh-Hans"] details p,html[lang="ja"] details p{font-size:14px}

.explanation{padding:45px 0 55px;border-top:1px solid var(--line)}.explanation-intro{display:grid;grid-template-columns:1fr 1.4fr;gap:45px;margin-bottom:30px}.explanation h2{font-size:28px;line-height:1.25;letter-spacing:-.7px;font-weight:500;margin:0}.explanation p{font-size:13px;line-height:1.85;color:var(--muted);margin:0}.explanation-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:34px}.explanation h3{font-size:15px;font-weight:600;line-height:1.5;margin:0 0 12px}.export-actions{display:flex;align-items:stretch;gap:10px;flex-shrink:0}.copy-button{padding:12px 17px;border:1px solid var(--line);border-radius:6px;background:transparent;font-size:12px}.copy-button:hover{background:var(--panel)}.tool-bottom .status{min-width:0;overflow-wrap:anywhere}.tool-bottom{flex-wrap:wrap}.export-actions{margin-left:auto}html[lang="zh-Hans"] .explanation p,html[lang="ja"] .explanation p{font-size:14px}@media(max-width:760px){.explanation{padding:34px 0}.explanation-intro{grid-template-columns:1fr;gap:18px}.explanation-grid{grid-template-columns:1fr;gap:24px}.explanation h2{font-size:26px}.export-actions{margin:0;display:flex;flex-wrap:wrap}.export-actions>button{flex:1 1 auto;min-height:44px}.copy-button{font-size:12px}.explanation p{font-size:13px}}

.format-choice{display:flex;align-items:center;gap:8px;font-size:11px;color:var(--muted)}.format-choice select{font:12px var(--body);color:var(--ink);background:var(--white);border:1px solid var(--line);border-radius:6px;padding:11px 9px;min-height:44px;cursor:pointer}.format-choice select:focus-visible{outline:3px solid #287cac;outline-offset:3px}.format-note{flex-basis:100%;margin:0;font-size:11px;line-height:1.7;color:var(--muted);text-align:right}.export-actions{flex-wrap:wrap}.tool-bottom{row-gap:12px}@media(max-width:760px){.format-choice{flex-basis:100%;justify-content:space-between}.format-choice select{min-width:100px}.format-note{text-align:left;font-size:10px}.export-actions{flex-shrink:1}.export-actions>button{white-space:normal}}
