:root{color-scheme:light;--ink:#152c34;--muted:#667778;--green:#165c49;--line:#dce4df;--paper:#fff;--canvas:#f4f6f1;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;color:var(--ink);background:var(--canvas);font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input{font:inherit}button,a,input{touch-action:manipulation}button{cursor:pointer;border:1px solid var(--line);border-radius:8px;padding:9px 14px;background:var(--paper);color:var(--ink);font-weight:550}button:disabled{cursor:default;opacity:.45}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #e7aa4e;outline-offset:3px}a{color:var(--green);text-underline-offset:4px}[hidden]{display:none!important}.shell{max-width:1400px;margin:auto;padding:0 36px}.top{height:80px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);gap:20px}.top>a{text-decoration:none;font-size:13px}.brand{display:flex;gap:10px;align-items:center;color:var(--ink);font-weight:650}.mark{background:var(--green);color:white;border-radius:8px;padding:8px;font-family:Georgia,serif;font-weight:650}.intro{padding:30px 0 25px}.intro h1{font-size:clamp(26px,3vw,38px);line-height:1.25;letter-spacing:-.035em;margin:0;font-weight:600}.intro p{margin:10px 0 0;color:var(--muted);font-size:15px}.workspace{border:1px solid var(--line);border-radius:12px;background:white;overflow:hidden;box-shadow:0 12px 34px #17352407}.panels{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);min-height:370px}.source-panel,.result-panel{min-width:0;display:flex;flex-direction:column}.source-panel{border-right:1px solid var(--line)}.panel-header{padding:16px 20px;display:flex;gap:12px;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);min-height:65px}.panel-header h2{font-size:14px;margin:0;font-weight:650}.panel-header>span{font-size:12px;color:var(--muted)}.input-actions{display:flex;gap:6px}.input-actions button{font-size:12px;padding:7px 10px}.input-actions button:last-child{border-color:transparent;color:var(--muted)}.dropzone{flex:1;min-height:270px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;padding:24px;background:#fcfdfb}.empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;text-align:center;color:var(--muted);min-height:150px}.empty strong{font-weight:500;font-size:14px}.empty p{font-size:12px;line-height:1.7;margin:0}.empty-symbol{display:grid;place-items:center;border:1px solid var(--line);color:#8ea49a;width:55px;height:55px;border-radius:12px;font-size:29px;font-weight:400}.dropzone.dragging{background:#eaf4ee;outline:3px dashed #8aaa95;outline-offset:-5px}.choose{background:var(--green);color:white;border-color:var(--green);font-size:13px;min-height:40px}canvas{display:block;max-width:100%;height:auto;max-height:290px;object-fit:contain;border-radius:3px}.source-info{padding:11px 20px 14px;border-top:1px solid var(--line);font-size:11px;color:var(--muted);line-height:1.6}.source-info p{margin:0;overflow-wrap:anywhere}.source-info p:last-child{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}.source-info #file-name{color:var(--ink);margin-bottom:5px}.result-image{flex:1;min-height:270px;padding:24px;background:#eaf0eb;display:flex;align-items:center;justify-content:center}.result-info{padding:14px 20px;background:#fcfdfb;border-top:1px solid var(--line);font-size:11px;line-height:1.6}.result-info>strong{color:var(--green);font-size:12px;font-weight:650}.result-info>strong.failed{color:#9b402e}.result-info dl{margin:8px 0}.result-info dl>div{display:flex;justify-content:space-between;gap:16px;margin:4px 0}.result-info dt{color:var(--muted)}.result-info dd{margin:0;text-align:right;font-variant-numeric:tabular-nums}.result-info p{margin:7px 0 0;color:var(--muted)}.settings{padding:20px;border-top:1px solid var(--line)}.target-label{display:block;font-size:13px;font-weight:600;margin-bottom:11px}.target-controls{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap}.presets{display:flex;gap:7px;flex-wrap:wrap}.presets button{padding:8px 12px;font-size:12px;min-height:38px}.presets button[aria-pressed=true]{background:var(--green);color:white;border-color:var(--green)}.custom{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--muted)}.custom input{width:104px;border:1px solid var(--line);border-radius:7px;padding:9px 10px;color:var(--ink);font-variant-numeric:tabular-nums}.shrink{display:flex;align-items:center;gap:8px;font-size:12px;margin-top:17px;line-height:1.6}.shrink input{accent-color:var(--green);width:17px;height:17px;margin:0}.setting-help{font-size:11px;color:var(--muted);line-height:1.7;margin:5px 0 0 25px;max-width:830px}.notice{font-size:11px;color:#705724;background:#fff7e8;padding:10px 12px;border-radius:6px;margin:12px 0 0;line-height:1.7}.actions{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:16px 20px;border-top:1px solid var(--line);background:#fcfdfb}.actions #status{font-size:12px;line-height:1.6;color:var(--muted);margin:0;max-width:660px}.actions #status.error{color:#9b402e}.action-buttons{display:flex;gap:9px;align-items:center;flex-shrink:0}.primary{background:var(--green);border-color:var(--green);color:white;min-height:44px;font-size:13px;padding:12px 19px}.download{border-color:var(--green);color:var(--green);min-height:44px;font-size:13px;padding:12px 19px}.help{padding:28px 2px}.help h2{font-size:14px;margin:0 0 10px;font-weight:600}.help p{font-size:12px;line-height:1.85;color:var(--muted);max-width:1000px;margin:9px 0}footer{border-top:1px solid var(--line);padding:23px 0 30px;display:flex;justify-content:space-between;font-size:12px;color:var(--muted)}.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}html[data-embedded=true] body{background:transparent}html[data-embedded=true] .shell{max-width:none;padding:0}html[data-embedded=true] .top,html[data-embedded=true] .intro,html[data-embedded=true] .help,html[data-embedded=true] footer{display:none}html[data-embedded=true] .workspace{box-shadow:none}@media(max-width:800px){.shell{padding:0 22px}.actions{align-items:flex-start;flex-direction:column}.action-buttons{align-self:stretch;justify-content:flex-end}}@media(max-width:600px){.shell{padding:0 16px}.top{height:67px}.intro{padding:26px 0 23px}.intro p{font-size:13px;line-height:1.7}.panels{grid-template-columns:1fr}.source-panel{border-right:0;border-bottom:1px solid var(--line)}.panel-header{padding:14px 16px}.dropzone,.result-image{min-height:220px;padding:20px}.empty{min-height:130px}canvas{max-height:250px}.settings{padding:17px 16px}.target-controls{align-items:flex-start;flex-direction:column;gap:13px}.presets{gap:5px}.presets button{padding:8px 11px;min-height:40px}.custom input{font-size:16px}.actions{padding:16px;gap:13px}.action-buttons{width:100%;display:grid;grid-template-columns:1fr 1fr}.action-buttons button{min-height:47px;padding:11px 12px}.source-info,.result-info{padding-left:16px;padding-right:16px}.setting-help{margin-left:0}.help{padding:24px 2px}}@media(prefers-reduced-motion:no-preference){button{transition:background-color .12s ease,opacity .12s ease}}button:hover:not(:disabled){filter:brightness(.97)}
