:root{font-family:Inter,Segoe UI,Arial,sans-serif;color:#1c3045;background:#f4f7fa}*{box-sizing:border-box}body{margin:0}.topbar{height:68px;background:#fff;border-bottom:1px solid #e0e8ef;display:flex;align-items:center;justify-content:space-between;padding:0 max(28px,calc((100vw - 1510px)/2))}.brand{display:flex;align-items:center;gap:11px}.brand-icon{color:#157db6;font-size:30px;font-weight:600;line-height:1}.brand strong,.brand small{display:block}.brand strong{font-size:15px}.brand small{font-size:10px;color:#8392a2;margin-top:3px}.local-badge{font-size:11px;font-weight:700;color:#218373;background:#e9f7f1;padding:8px 12px;border-radius:18px}main{max-width:1510px;margin:0 auto;padding:29px 28px 32px}.intro{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:23px}.eyebrow{font-size:10px;font-weight:800;letter-spacing:.15em;color:#4684ad}.intro h1{font-size:29px;margin:5px 0 8px}.intro p{margin:0;color:#74879a;font-size:13px;line-height:1.5}.flow{display:flex;gap:7px;white-space:nowrap}.flow span{font-size:11px;color:#a5b3c0;padding:8px 10px;border-radius:7px;background:#eef2f5}.flow .current{background:#e2f1fb;color:#1877a9;font-weight:800}.workspace{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:18px}.card{background:#fff;border:1px solid #e0e8ef;border-radius:14px;box-shadow:0 6px 22px #26425809;overflow:hidden}.card-head{padding:22px 23px 16px;display:flex;align-items:center;justify-content:space-between;gap:12px}.card-head h2,.panel h2{font-size:18px;margin:5px 0 0}.meta{font-size:11px;color:#8292a2;white-space:nowrap}.source-tools{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:0 23px 17px}.tool-sep{flex:1}button{font:inherit;font-size:11px;font-weight:750;color:#316283;background:#fff;border:1px solid #d6e2ec;border-radius:7px;padding:10px 12px;cursor:pointer}button:hover:not(:disabled){border-color:#62a6d1;background:#f7fbfe}.blue{background:#157db6;color:#fff;border-color:#157db6}.blue:hover:not(:disabled){background:#096da5}button:disabled{cursor:not-allowed;opacity:.48}.stage{height:540px;overflow:auto;margin:0 18px;border:1px solid #e8edf2;border-radius:9px;background:#e8edf2;background-image:linear-gradient(45deg,#e2e8ed 25%,transparent 25%),linear-gradient(-45deg,#e2e8ed 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#e2e8ed 75%),linear-gradient(-45deg,transparent 75%,#e2e8ed 75%);background-size:22px 22px;background-position:0 0,0 11px,11px -11px,-11px 0}.empty{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;background:#f8fafc;color:#8092a4;text-align:center}.empty strong{font-size:14px;color:#39556d}.empty span{font-size:11px}.empty-icon{font-size:43px;color:#b4c4d1;margin-bottom:4px}.stage.dragover{outline:3px dashed #278ec4;outline-offset:-7px}.surface{position:relative;width:100%;height:max-content;user-select:none;touch-action:none}.surface img{width:100%;height:auto;display:block;pointer-events:none}.surface svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible;cursor:crosshair;touch-action:none}.stage-bottom{padding:14px 22px;display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:11px;color:#75889b}.zoom{display:flex;align-items:center;gap:7px}.zoom button{width:26px;height:26px;padding:0;font-size:16px}.zoom span{min-width:35px;text-align:center}.settings{display:grid;gap:16px;align-content:start}.panel{padding:22px}.panel h2{margin:6px 0 9px}.panel-copy,.muted,.scope-note{color:#788a9c;font-size:11px;line-height:1.52;margin:0}.corners{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:18px 0}.corners button{text-align:left;padding:11px 10px;background:#f7f9fb;border-color:#e2e9ef;color:#516b80}.corners button.active{background:#e8f5fc;border-color:#3da4d1;color:#096a9e;box-shadow:0 0 0 1px #3da4d1}.corners button.done:before{content:'● ';color:#25a58c}.corner-guide{display:grid;grid-template-columns:1fr 1fr;gap:8px;color:#a0afbc;font-size:10px}.corner-guide span:nth-child(even){text-align:right}.size-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:17px 0 11px}.size-grid label{font-size:10px;color:#5b7186;font-weight:700}.size-grid input{width:100%;margin-top:6px;padding:9px 10px;border:1px solid #d9e4ed;border-radius:6px;font:inherit;font-size:12px}.wide{width:100%;margin-top:18px;padding:12px}.scope-note{padding:11px 12px;background:#f2f7fa;border-radius:6px;margin-top:14px}.result-card{margin-top:18px}.result-stage{min-height:330px;background:#f7f9fb;border-top:1px solid #edf1f5;border-bottom:1px solid #edf1f5;display:flex;align-items:center;justify-content:center;padding:18px}.result-stage img{max-width:100%;max-height:650px;object-fit:contain;box-shadow:0 4px 18px #17304528}.empty-result{color:#94a4b3;font-size:12px}.result-actions{padding:15px 23px;display:flex;justify-content:space-between;align-items:center;gap:12px}.result-actions>span{font-size:11px;color:#728698;line-height:1.5}.result-actions>span.error{color:#b44f35}.result-actions>span.success{color:#16866a}.result-actions>div{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}.bottom-note{font-size:11px;color:#9aaab8;line-height:1.55;margin:15px 2px}button:focus-visible,input:focus-visible{outline:2px solid #52acd9;outline-offset:1px}@media(max-width:1050px){.workspace{grid-template-columns:1fr}.settings{grid-template-columns:1fr 1fr}.flow{display:none}}@media(max-width:700px){main{padding:19px 12px}.topbar{padding:0 14px}.intro h1{font-size:23px}.intro p{font-size:12px}.settings{grid-template-columns:1fr}.stage{height:420px;margin:0 10px}.source-tools{padding:0 13px 13px}.tool-sep{display:none}.result-actions{align-items:start;flex-direction:column}.result-actions>div{justify-content:flex-start}.card-head{padding:18px 15px 13px}.meta{white-space:normal;text-align:right}.local-badge{font-size:10px}}
