*{box-sizing:border-box}html{font:16px/1.5 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#17233b;background:#f4f7fc}body{margin:0}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.45}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,.upload:focus-within{outline:3px solid #91b4ff;outline-offset:3px}[hidden]{display:none!important}header{height:84px;border-bottom:1px solid #e1e6ef;display:flex;align-items:center;justify-content:space-between;padding:0 max(24px,calc((100vw - 1120px)/2));background:white;gap:16px}.brand{display:flex;align-items:center;gap:10px;color:#17233b;text-decoration:none;font-size:22px;font-weight:760;letter-spacing:-.6px}.brand-icon{display:grid;place-items:center;background:#1d55ed;color:white;width:33px;height:36px;border-radius:8px;font-size:25px}.private-note{font-size:14px;color:#526078}main{max-width:1168px;margin:auto;padding:42px 24px 22px}.eyebrow{font-size:12px;font-weight:750;letter-spacing:1.8px;color:#1d55ed}h1{font-size:clamp(30px,4vw,43px);line-height:1.15;letter-spacing:-1.5px;margin:10px 0 12px}p{margin:0}.intro>p{color:#617087}.tools{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:30px 0 20px}.tools button{border:1px solid #dce3ef;background:white;border-radius:10px;text-align:left;padding:17px 16px;font-weight:650;color:#526078;transition:background .15s}.tools button span{font-size:12px;color:#8190a5;display:inline-block;margin-right:9px}.tools button.selected{background:#1d55ed;color:white;border-color:#1d55ed;box-shadow:0 4px 10px #1d55ed1c}.tools button.selected span{color:#c7d6ff}.workspace{display:grid;grid-template-columns:1fr 1.04fr;border:1px solid #dde5ef;border-radius:16px;background:white;overflow:hidden;box-shadow:0 12px 36px #17233b04}.settings{padding:28px 30px}.section-title{display:flex;align-items:center;gap:10px}h2{font-size:17px;margin:0;font-weight:700}.step{width:25px;height:25px;border:1px solid #dce3ef;display:grid;place-items:center;border-radius:50%;font-size:13px;color:#617087}.help{font-size:14px;color:#617087;margin:10px 0 20px}.upload{position:relative;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:5px;padding:20px 12px;border:1.5px dashed #adc0e5;border-radius:10px;background:#f7faff;cursor:pointer;text-align:center;overflow:hidden}.upload:hover,.upload.drag{background:#edf3ff;border-color:#1d55ed}.upload input{position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer}.upload strong{font-size:15px;max-width:100%;overflow-wrap:anywhere}.upload>span:last-child{font-size:12px;color:#617087}.upload-icon{color:#1d55ed;font-size:27px;line-height:1.2}.secondary{margin-top:10px;padding:15px}.field{margin-top:20px}.field>label,#cropPosition label{display:block;font-size:14px;font-weight:650;margin-bottom:7px}.input-unit{display:flex;align-items:center;border:1px solid #d5deeb;border-radius:8px;overflow:hidden}.input-unit input{border:0;min-width:0}.input-unit>span{padding:0 14px;color:#617087;font-size:14px}input[type=number],select{width:100%;padding:10px 12px;color:#17233b;background:white;border:1px solid #d5deeb;border-radius:8px;height:44px}.input-unit input{border:0}input[type=checkbox]{accent-color:#1d55ed;width:17px;height:17px}.chips{display:flex;gap:7px;margin-top:9px}.chips button{font-size:13px;border:1px solid #e1e6ef;background:white;padding:5px 10px;border-radius:6px;color:#617087}.chips button.active{color:#1d55ed;border-color:#a9c0ff;background:#f0f5ff}.check{display:flex;align-items:center;gap:8px;font-size:14px;margin-top:20px}.row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.row .field{margin-top:12px}.tiny{font-size:12px;color:#617087;margin-top:8px}input[type=range]{width:100%;accent-color:#1d55ed}#cropPosition{margin-top:16px}.primary{margin-top:24px;display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;padding:13px 17px;background:#1d55ed;border:0;border-radius:8px;color:white;text-decoration:none;font-weight:650;font-size:15px}.primary:hover{background:#1445c8}.primary span{font-size:20px;line-height:1}.result{padding:28px 30px;background:#fbfcfe;border-left:1px solid #e1e6ef;display:flex;flex-direction:column}.text-button{margin-left:auto;border:0;background:transparent;color:#526078;text-decoration:underline;font-size:12px;padding:5px}#previewStage{min-height:300px;flex:1;display:flex;align-items:center;justify-content:center;padding:26px 6px}.empty{text-align:center;color:#8190a5}.empty h3{color:#617087;font-size:16px;font-weight:550;margin:20px 0 6px}.empty p{font-size:14px}.page-icon{height:87px;width:67px;background:white;border:1px solid #dce3ef;border-radius:6px;transform:rotate(-7deg);margin:auto;box-shadow:6px 6px 0 #ecf1f9;padding:24px 13px}.page-icon span{display:block;height:3px;background:#dbe5f5;margin:7px 0}.page-icon span:last-child{width:65%}#preview{max-width:100%;max-height:430px;object-fit:contain;background:white;box-shadow:0 3px 16px #17233b14;border:1px solid #e1e6ef}.result-bottom{border-top:1px solid #e1e6ef;padding-top:18px}#status{font-size:14px;color:#617087}.meta{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}.meta span{font-size:13px;color:#294269;background:#eaf0fb;padding:5px 9px;border-radius:5px}.note{font-size:13px;color:#665324;background:#fff8e6;border-radius:7px;padding:12px;margin-top:14px}.error{font-size:14px;color:#9e2323;background:#fff0ef;padding:12px;border-radius:7px;margin-top:15px}.download{background:#17233b}.download:hover{background:#293c5e}footer{display:flex;justify-content:space-between;gap:16px;font-size:12px;color:#617087;margin-top:22px}@media(max-width:760px){header{height:68px;padding:0 18px}.brand{font-size:20px}.private-note{font-size:12px;max-width:110px;text-align:right}main{padding:26px 16px 18px}.tools{grid-template-columns:1fr 1fr;gap:8px;margin:22px 0 16px}.tools button{font-size:14px;padding:13px 10px}.tools button span{margin-right:5px}.workspace{grid-template-columns:1fr}.settings,.result{padding:22px 20px}.result{border-left:0;border-top:1px solid #e1e6ef}#previewStage{min-height:250px}footer{flex-direction:column;gap:5px}.intro>p{font-size:14px}}@media(prefers-reduced-motion:reduce){*{transition:none!important}}
.crop-toolbar{display:flex;align-items:center;gap:10px;margin-top:10px;flex-wrap:wrap}.outline-button{border:1px solid #cad7ed;background:white;border-radius:7px;padding:8px 13px;font-size:14px;color:#1d55ed}.crop-toolbar .text-button{margin-left:0}.crop-toolbar .tiny{margin:0}#cropDialog{width:min(640px,calc(100% - 24px));max-height:92dvh;overflow:auto;padding:24px;border:1px solid #dce3ef;border-radius:14px;color:#17233b}#cropDialog::backdrop{background:#17233ba6}.crop-heading{display:flex;align-items:center;justify-content:space-between}.crop-heading .text-button{font-size:14px}#cropDialog .field{margin-top:12px}#cropSurface{position:relative;max-width:calc(100% - 24px);margin:24px auto 14px;touch-action:none;user-select:none}#cropCanvas{width:100%;height:100%;display:block}#cropBox{position:absolute;border:2px solid #fff;outline:1px solid #1d55ed;box-shadow:0 0 0 999px #17233b75;cursor:move;touch-action:none}#cropSurface{overflow:hidden}#cropBox:focus-visible{outline:2px solid #1d55ed}#cropBox button{position:absolute;width:24px;height:24px;border:3px solid white;background:#1d55ed;border-radius:5px;padding:0;touch-action:none}#cropBox [data-corner=nw]{left:0;top:0;cursor:nwse-resize}#cropBox [data-corner=ne]{right:0;top:0;cursor:nesw-resize}#cropBox [data-corner=sw]{left:0;bottom:0;cursor:nesw-resize}#cropBox [data-corner=se]{right:0;bottom:0;cursor:nwse-resize}.crop-actions{display:flex;gap:12px;align-items:center;margin-top:16px}.crop-actions .primary{margin:0;width:auto;flex:1;justify-content:center}#cropDialog .help{margin-bottom:8px}#cropSize{min-height:36px}@media(max-width:480px){#cropDialog{padding:18px}#cropBox button{width:28px;height:28px}.crop-actions{gap:8px}}

footer nav{display:flex;gap:20px}footer a{color:#526078;text-underline-offset:3px}.info-page{max-width:800px;padding-top:40px;padding-bottom:56px}.info-page h1{margin-bottom:24px}.info-page h2{font-size:20px;margin:30px 0 12px}.info-page p,.info-page li{line-height:1.75;margin-bottom:12px}.info-page a,header>a:not(.brand){color:#1d55ed;text-underline-offset:3px}.info-page ul,.info-page ol{padding-left:24px}@media(max-width:480px){header .brand{font-size:19px}header>a:not(.brand){font-size:14px}}

.tool-links{display:flex;flex-wrap:wrap;gap:12px 24px;margin:24px 0;font-size:14px}.tool-links a,.tool-guide a{color:#1d55ed;text-underline-offset:3px}.tool-guide{max-width:760px;margin:32px 0;line-height:1.7}.tool-guide h2{font-size:20px;margin:24px 0 10px}.tool-guide p{margin:12px 0}.tool-guide ol{padding-left:24px}.tool-guide li{margin:8px 0}
