:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;color:#21334c;background:#f6f9fe;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.46}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #1689ed;outline-offset:3px}a{color:inherit;text-decoration:none}.skip{position:absolute;top:-100px;left:12px;background:#fff;padding:10px;z-index:50}.skip:focus{top:10px}.top{background:#fff;border-bottom:1px solid #e8edf6;display:flex;justify-content:space-between;align-items:center;padding:13px clamp(18px,3vw,54px)}.brand{display:flex;align-items:center;gap:11px}.mark{display:grid;place-items:center;width:39px;height:39px;border-radius:12px;background:linear-gradient(140deg,#38b8fa,#4080eb);color:#fff;font-size:25px;font-weight:800}.brand strong{font-size:14px}.brand small{display:block;font-size:10px;color:#7a8ba4;margin-top:2px}.brand .dash{color:#cad6e5}.sub-brand{color:#677b96}.top nav{display:flex;gap:24px;color:#58708e;font-size:13px}.top nav a:hover{color:#1382e7}main{max-width:1640px;margin:0 auto;padding:28px clamp(14px,2.8vw,42px)}.intro{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:23px}.intro h1{font-size:clamp(25px,3vw,34px);margin:5px 0 8px;letter-spacing:-1px;color:#203758}.intro p{color:#6f8099;font-size:14px;margin:0;line-height:1.5}.eyebrow{color:#3f89d5;font-weight:800;letter-spacing:2.1px;font-size:10px}.privacy{color:#318b75;background:#e8f8f2;border:1px solid #c6ecda;border-radius:100px;padding:10px 14px;font-size:12px;white-space:nowrap}.dot{display:inline-block;width:7px;height:7px;background:#25bb8b;border-radius:50%;vertical-align:middle;margin-right:5px}.workbench{display:grid;grid-template-columns:332px minmax(0,1fr);gap:18px;align-items:start}.editor-area,.panel{border:1px solid #e0e8f3;background:#fff;border-radius:18px;box-shadow:0 6px 24px #26477308;min-width:0}.controls{max-height:calc(100vh - 108px);overflow:auto;scrollbar-width:thin}.panel-header{display:flex;justify-content:space-between;align-items:center;padding:20px 20px 15px;border-bottom:1px solid #edf1f7}.editor-bar strong,.panel-header strong{display:block;font-size:15px}.editor-bar small,.panel-header small{display:block;color:#8292a8;font-size:11px;margin-top:5px}.pill{background:#eaf5ff;color:#328fdb;font-size:10px;padding:6px 9px;border-radius:100px;font-weight:700}.control-section{padding:17px 20px;border-bottom:1px solid #edf1f7}.control-section.last{border-bottom:0}.section-heading{display:flex;align-items:center;gap:9px;margin-bottom:14px}.section-heading h2{font-size:13px;margin:0}.step{display:grid;place-items:center;width:25px;height:25px;border-radius:9px;color:#2787d8;background:#e8f4ff;font-size:10px}.hint,.micro,.upload p{color:#8190a5;font-size:11px;line-height:1.6}.hint{margin:-5px 0 12px}.upload{text-align:center;border:1.5px dashed #bdddf8;background:#f5faff;border-radius:12px;padding:12px 11px 10px}.upload p{margin:9px 0 0}.btn{border:1px solid #e0e8f3;background:#fff;color:#37526d;border-radius:9px;padding:10px 12px;font-size:12px;font-weight:700;transition:background .12s,border-color .12s}.btn:hover:not(:disabled){background:#eaf5ff;border-color:#9fcaf4}.btn.primary{background:#238ee8;color:#fff;border-color:#238ee8}.btn.primary:hover:not(:disabled){background:#1476d0}.btn.subtle{background:#f6f9fd}.btn.quiet{border:0;color:#8292a8;font-size:11px}.btn.danger{color:#cf4561;background:#fff2f4;border-color:#fbd1d8}.btn.block{width:100%;display:block;text-align:center}.btn.large{padding:13px 14px}.row{display:flex;gap:9px;align-items:end;margin-top:10px}.row.compact{margin:0}.grow{flex:1;min-width:0}.field{display:block;font-size:11px;color:#62768e;font-weight:700;margin:11px 0 0;min-width:0}.field>label{display:flex;justify-content:space-between;align-items:center;margin-bottom:6px}.field input[type=number],.field select{width:100%;margin-top:6px;padding:10px 9px;border:1px solid #dfe7f1;border-radius:9px;background:#fbfdff;color:#344a63;min-width:0}.field input[type=range]{width:100%;accent-color:#258ee3}.field output{color:#288cdd}.range-ends{display:flex;justify-content:space-between;font-size:10px;color:#a1afbf}.micro{margin-top:9px;overflow-wrap:anywhere}.editor-bar{display:flex;justify-content:space-between;align-items:center;padding:19px 21px;border-bottom:1px solid #e9eef6;gap:10px}.editor-area{overflow:hidden}.canvas-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;background:#f9fbff;padding:15px;min-height:455px}.image-card{background:#fff;border-radius:13px;border:1px solid #e3eaf3;min-width:0;display:flex;flex-direction:column;overflow:hidden}.image-card-head{display:flex;justify-content:space-between;align-items:center;padding:14px 14px;border-bottom:1px solid #eaf0f8;color:#889cb4;font-size:10px;font-weight:800;letter-spacing:.7px}.image-card-head span{white-space:nowrap}.mini-dot{display:inline-block;height:7px;width:7px;border-radius:50%;margin-right:5px}.mini-dot.blue{background:#2c92ed}.mini-dot.green{background:#3ebb9c}.image-stage{position:relative;flex:1;min-height:330px;display:flex;align-items:center;justify-content:center;background-color:#f1f6fc;background-image:linear-gradient(45deg,#e9f0f9 25%,transparent 25%),linear-gradient(-45deg,#e9f0f9 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#e9f0f9 75%),linear-gradient(-45deg,transparent 75%,#e9f0f9 75%);background-size:22px 22px;background-position:0 0,0 11px,11px -11px,-11px 0;overflow:hidden;padding:14px}.image-stage canvas{display:none;max-width:100%;max-height:430px;object-fit:contain;width:auto;height:auto;box-shadow:0 2px 18px #203a5526}.image-stage.loaded canvas{display:block}.empty{text-align:center;color:#8394a9;max-width:260px;padding:20px;position:relative}.empty h2{font-size:15px;margin:8px 0;color:#4f6581}.empty p{font-size:12px;line-height:1.7}.empty-icon{display:inline-grid;place-items:center;width:52px;height:52px;background:#e3f1ff;border-radius:17px;font-size:29px;color:#2b93ea}.image-caption{font-size:10px;color:#91a0b2;padding:12px 15px;border-top:1px solid #edf2f9}.corner-overlay{position:absolute;touch-action:none;z-index:2;inset:auto;border:0}.corner-overlay svg{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;overflow:visible}.corner-overlay polygon{fill:#2398fb17;stroke:#1a9af2;stroke-width:3;stroke-dasharray:10 7;vector-effect:non-scaling-stroke}.handle{position:absolute;transform:translate(-50%,-50%);width:28px;height:28px;border-radius:50%;border:3px solid #fff;background:#248fed;box-shadow:0 2px 9px #00295b70;color:#fff;font-size:12px;font-weight:900;touch-action:none;cursor:grab;display:grid;place-items:center}.handle:active{cursor:grabbing}.handle.selected{background:#0c57a8;outline:3px solid #98d0ff}.bottom-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:14px 18px;border-top:1px solid #e9eef6;font-size:11px;color:#61748d}.meta{color:#9cadbe}.progress{width:120px;height:5px;border-radius:10px;background:#edf3fb;overflow:hidden}.progress>div{height:100%;background:#2490ed;width:10%;transition:width .2s}.tips{padding:17px 20px;border-top:1px solid #eef3f9}.tips strong{font-size:12px;color:#425976}.tips-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.tips p{font-size:11px;color:#8292a8;line-height:1.5;margin:9px 0 0}.tips b{color:#4a6582}.seo{margin:24px 0 0;border:1px solid #e4ebf6;border-radius:16px;padding:22px 25px;background:#fff;color:#677d98;font-size:13px;line-height:1.8}.seo h2,.seo h3{color:#294465;letter-spacing:-.3px}.seo h2{font-size:19px;margin:0}.seo h3{font-size:15px}footer{text-align:center;padding:22px;color:#97a8bd;font-size:12px}#cancelBtn[hidden],#cornerOverlay[hidden],#emptyState[hidden],#progress[hidden],#resultEmpty[hidden]{display:none!important}@media(max-width:1100px){.workbench{grid-template-columns:300px minmax(0,1fr)}.canvas-grid{grid-template-columns:1fr}.image-stage{min-height:260px}.controls{max-height:none}.image-stage canvas{max-height:330px}}@media(max-width:700px){.top{padding:12px 16px}.brand small,.dash,.sub-brand{display:none!important}.top nav{gap:13px;font-size:11px}.intro{display:block}.privacy{display:inline-block;margin-top:14px}.workbench{grid-template-columns:1fr}.controls{max-height:none}.canvas-grid{padding:11px;gap:11px}.image-stage{min-height:260px}.tips-grid{grid-template-columns:1fr;gap:0}.editor-bar{padding:14px}.panel-header{padding:16px}.control-section{padding:15px}.canvas-grid{grid-template-columns:1fr}.sourceWrap{min-height:250px}.image-stage canvas{max-height:360px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}#customRatioFields[hidden],#progressLabel[hidden]{display:none!important}.recovery-toggle{display:flex;align-items:flex-start;gap:10px;margin-top:15px;padding:11px;border-radius:11px;background:#f4f8fd;color:#425976;font-size:11px;cursor:pointer}.recovery-toggle input{flex:0 0 auto;accent-color:#238ee8;margin:3px 0 0;width:16px;height:16px}.recovery-toggle small{display:block;font-weight:400;color:#70849d;line-height:1.55;margin-top:4px}#zoomLabel{font-size:11px;font-weight:700;color:#536b86;min-width:34px;text-align:center}#sourceWrap.zoomed{justify-content:flex-start;align-items:flex-start;overflow:auto}#sourceWrap.zoomed canvas{max-width:none;max-height:none;margin:0}#sourceWrap.zoomed .corner-overlay{pointer-events:none}#sourceWrap.zoomed .handle{pointer-events:auto}#sourceWrap.zoomed .corner-overlay svg{pointer-events:none}#sourceWrap{scrollbar-width:thin}#recoveryDialog{width:min(540px,calc(100vw - 24px));border:1px solid #dce8f5;border-radius:19px;padding:22px;background:#fff;color:#293e59;box-shadow:0 24px 80px #172a4e44}#recoveryDialog::backdrop{background:#12263e80}.dialog-top{display:flex;justify-content:space-between;align-items:start;gap:16px}.dialog-top h2{margin:0;font-size:20px}.dialog-top p{margin:9px 0 0;font-size:12px;color:#647992;line-height:1.6}.recovery-list{display:grid;gap:12px;margin:19px 0}.recovery-item{border:1px solid #e2ebf6;border-radius:12px;padding:13px}.recovery-item strong{display:block;font-size:13px}.recovery-item small{display:block;color:#667d97;font-size:11px;margin-top:5px;overflow-wrap:anywhere}.recovery-item .row{align-items:center}.dialog-bottom{border-top:1px solid #ebf0f6;padding-top:15px;display:flex;justify-content:flex-end}#recoveryDialog button:focus-visible,.recovery-toggle input:focus-visible{outline:3px solid #1689ed;outline-offset:3px}@media(max-width:700px){.editor-bar{flex-wrap:wrap}.editor-bar .compact{flex-wrap:wrap}.recovery-item .row{flex-wrap:wrap}}.validation-error{color:#b82f4c!important;font-weight:650}.privacy{color:#176850}.hint,.image-caption,.meta,.micro,.tips p,.upload p{color:#5a6f89}.image-caption,.tips p{font-size:12px}