.crop-page{--crop-ink:#172437;--crop-muted:#607286;--crop-line:#d3dfe6;--crop-green:#087f72;--crop-green-dark:#06675e;--crop-soft:#f2f8f7;--crop-coral:#b44b3e;color:var(--crop-ink)}
.crop-page *{box-sizing:border-box}.crop-page [hidden]{display:none!important}.crop-heading{margin-bottom:22px}.crop-eyebrow{margin:0 0 7px;color:var(--crop-green-dark);font-size:.8rem;font-weight:850}.crop-heading h1{margin:0 0 12px;color:var(--crop-ink);font-size:clamp(2rem,3.8vw,2.8rem);line-height:1.2;letter-spacing:0}.crop-heading>p:not(.crop-eyebrow){margin:0;color:var(--crop-muted);font-size:1.02rem;line-height:1.72}.crop-local{display:inline-flex;margin-top:13px;padding:6px 9px;border:1px solid #bddbd5;border-radius:5px;background:#eef9f6;color:var(--crop-green-dark);font-size:.78rem;font-weight:800}
.crop-tool{overflow:hidden;border:1px solid var(--crop-line);border-radius:7px;background:#fff}.crop-tool-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 22px 0}.crop-tool-head h2{margin:0 0 4px;color:var(--crop-ink);font-size:1.4rem}.crop-tool-head p{margin:0;color:var(--crop-muted);font-size:.82rem}.crop-choose,.crop-result button{display:inline-flex;min-height:44px;padding:8px 15px;align-items:center;justify-content:center;border:1px solid var(--crop-green);border-radius:6px;background:var(--crop-green);color:#fff;font-size:.88rem;font-weight:800;cursor:pointer}.crop-choose:hover,.crop-result button:hover{background:var(--crop-green-dark);color:#fff}#cropFile{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.crop-dropzone{display:flex;min-height:150px;margin:18px 22px 0;padding:20px;align-items:center;justify-content:center;gap:15px;border:1px dashed #91aaa9;border-radius:7px;background:#f6faf9;cursor:pointer}.crop-dropzone:hover,.crop-dropzone:focus,.crop-dropzone.is-dragging{border-color:var(--crop-green);background:#ebf8f4;outline:0}.crop-file-mark{display:grid;width:58px;height:58px;flex:0 0 58px;place-items:center;border-radius:6px;background:#dcefeb;color:var(--crop-green-dark);font-size:.82rem;font-weight:900}.crop-dropzone strong,.crop-dropzone span,.crop-dropzone small{display:block}.crop-dropzone strong{color:var(--crop-ink);font-size:1rem}.crop-dropzone span{margin-top:4px;color:var(--crop-green-dark);font-size:.82rem;font-weight:700}.crop-dropzone small{margin-top:5px;color:var(--crop-muted);font-size:.72rem;line-height:1.5}.crop-empty{margin:15px 22px 22px;padding:12px 14px;border-radius:5px;background:#f5f7f9;color:var(--crop-muted);font-size:.79rem;text-align:center}
.crop-file-info{display:grid;grid-template-columns:minmax(0,1.35fr) repeat(2,minmax(0,1fr)) auto;gap:1px;margin:18px 22px;background:var(--crop-line);border:1px solid var(--crop-line);border-radius:6px;overflow:hidden}.crop-file-info>div{min-width:0;padding:11px 12px;background:#fff}.crop-file-info span{display:block;color:var(--crop-muted);font-size:.69rem}.crop-file-info strong{display:block;margin-top:4px;color:var(--crop-ink);font-size:.83rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.crop-file-actions{display:flex;gap:6px;align-items:center}.crop-file-actions button,.crop-ratios button,.crop-editor-toolbar button{min-height:38px;padding:6px 10px;border:1px solid #bccbd3;border-radius:5px;background:#fff;color:var(--crop-ink);font-size:.77rem;font-weight:750;cursor:pointer}.crop-file-actions button:hover,.crop-ratios button:hover,.crop-editor-toolbar button:hover{border-color:var(--crop-green);color:var(--crop-green-dark)}
.crop-ratios,.crop-output{min-width:0;margin:0 22px 18px;padding:0;border:0}.crop-ratios legend,.crop-output legend{margin-bottom:8px;color:var(--crop-ink);font-size:.9rem;font-weight:800}.crop-ratios>div{display:flex;flex-wrap:wrap;gap:7px}.crop-ratios button{min-width:50px}.crop-ratios button.is-active{border-color:var(--crop-green);background:var(--crop-green);color:#fff}
.crop-editor-shell{margin:0 22px 18px;border:1px solid var(--crop-line);border-radius:7px;background:#eef3f5;overflow:hidden}.crop-editor-toolbar{display:flex;flex-wrap:wrap;gap:7px;padding:10px;border-bottom:1px solid var(--crop-line);background:#fff}.crop-stage{display:flex;width:100%;min-height:300px;align-items:center;justify-content:center;overflow:hidden}.crop-stage canvas{display:block;max-width:100%;touch-action:none;cursor:crosshair}.crop-editor-shell>p{margin:0;padding:9px 12px;background:#fff;color:var(--crop-muted);font-size:.74rem;line-height:1.55}
.crop-selection{margin:0 22px 18px;padding:16px;border:1px solid var(--crop-line);border-radius:7px}.crop-selection-head{display:flex;align-items:start;justify-content:space-between;gap:16px}.crop-selection h3,.crop-result h3{margin:0 0 4px;color:var(--crop-ink);font-size:1.05rem}.crop-selection-head p,.crop-result header p{margin:0;color:var(--crop-muted);font-size:.76rem}.crop-selection dl{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px 16px;margin:0}.crop-selection dl div{min-width:74px}.crop-selection dt{color:var(--crop-muted);font-size:.67rem}.crop-selection dd{margin:2px 0 0;color:var(--crop-ink);font-size:.78rem;font-weight:800}.crop-pixel-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:14px}.crop-pixel-grid label,.crop-output-grid>label,.crop-custom-size label{display:flex;min-width:0;flex-direction:column;gap:6px;color:var(--crop-ink);font-size:.78rem;font-weight:750}.crop-pixel-grid label>span:last-child,.crop-custom-size label>span:last-child{display:flex;align-items:center;gap:5px;color:var(--crop-muted);font-weight:500}.crop-page input,.crop-page select{min-width:0}.crop-pixel-grid input,.crop-output select,.crop-custom-size input{width:100%;height:43px;padding:8px 10px;border:1px solid #bfcfd8;border-radius:5px;background:#fff;color:var(--crop-ink);font-size:.9rem;font-weight:700}.crop-pixel-grid input:focus,.crop-output select:focus,.crop-custom-size input:focus{outline:2px solid var(--crop-green);outline-offset:1px}
.crop-output{padding:16px;border:1px solid var(--crop-line);border-radius:7px}.crop-output-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.crop-output-grid label>span:first-child,.crop-custom-size label>span:first-child{color:var(--crop-ink);font-size:.78rem;font-weight:750}.crop-output input[type=range]{width:100%;accent-color:var(--crop-green)}.crop-custom-size{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;grid-column:1/-1}.crop-output>p{margin:10px 0 0;color:var(--crop-coral);font-size:.74rem;line-height:1.5}
.crop-result{margin:0 22px 20px;padding:16px;border:1px solid #bcdad4;border-radius:7px;background:var(--crop-soft)}.crop-result header{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:12px}.crop-result button:disabled{border-color:#cbd6db;background:#dce4e8;color:#7c8995;cursor:not-allowed}.crop-preview-wrap{display:grid;min-height:220px;place-items:center;padding:14px;border:1px solid #cbd9df;border-radius:6px;background-color:#fff;background-image:linear-gradient(45deg,#e8edef 25%,transparent 25%),linear-gradient(-45deg,#e8edef 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#e8edef 75%),linear-gradient(-45deg,transparent 75%,#e8edef 75%);background-size:20px 20px;background-position:0 0,0 10px,10px -10px,-10px 0}.crop-preview-wrap img{display:block;max-width:100%;max-height:520px;border:1px solid #d5dfe4;background:transparent}.crop-preview-empty{text-align:center;color:var(--crop-muted)}.crop-preview-empty strong,.crop-preview-empty span{display:block}.crop-preview-empty span{margin-top:5px;font-size:.76rem}.crop-status{min-height:1.5em;margin:0;padding:0 22px 20px;color:var(--crop-muted);font-size:.79rem;line-height:1.5}.crop-status[data-kind=error]{color:#a33a32}.crop-status[data-kind=success]{color:var(--crop-green-dark)}
.crop-guide,.crop-faq,.crop-related{margin-top:34px;padding-top:28px;border-top:1px solid var(--crop-line)}.crop-guide h2,.crop-faq h2,.crop-related h2{margin:0 0 12px;color:var(--crop-ink);font-size:1.48rem;line-height:1.3}.crop-guide h2:not(:first-child){margin-top:28px}.crop-guide p,.crop-guide li,.crop-faq p{color:var(--crop-muted);font-size:.9rem;line-height:1.78}.crop-guide ol{padding-left:21px}.crop-guide a{color:var(--crop-green-dark);font-weight:700;text-decoration:underline;text-underline-offset:3px}.crop-format-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.crop-format-grid article{padding:15px;border:1px solid var(--crop-line);border-radius:6px}.crop-format-grid h3{margin:0 0 6px;color:var(--crop-ink);font-size:.95rem}.crop-format-grid p{margin:0;font-size:.8rem}.crop-faq details{padding:14px 0;border-bottom:1px solid var(--crop-line)}.crop-faq summary{color:var(--crop-ink);font-weight:750;cursor:pointer}.crop-faq details p{margin:9px 0 0}.crop-related>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;align-items:stretch}.crop-related a{display:flex;min-height:94px;flex-direction:column;justify-content:center;gap:5px;padding:13px 15px;border:1px solid var(--crop-line);border-radius:6px;background:#fff;text-decoration:none}.crop-related a:hover{border-color:var(--crop-green);background:#f6fbf9}.crop-related strong{color:var(--crop-ink);font-size:.94rem}.crop-related span{color:var(--crop-muted);font-size:.78rem;line-height:1.45}
.crop-choose:focus-visible,.crop-dropzone:focus-visible,.crop-page button:focus-visible,.crop-page input:focus-visible,.crop-page select:focus-visible,.crop-page summary:focus-visible{outline:3px solid rgba(8,127,114,.25);outline-offset:2px}
@media(max-width:760px){.crop-file-info{grid-template-columns:repeat(2,minmax(0,1fr))}.crop-file-actions{justify-content:flex-start}.crop-selection-head{display:block}.crop-selection dl{justify-content:flex-start;margin-top:11px}.crop-pixel-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.crop-output-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.crop-format-grid{grid-template-columns:1fr}}
@media(max-width:520px){.crop-heading h1{font-size:1.85rem}.crop-tool-head{align-items:stretch;flex-direction:column;padding:17px 16px 0}.crop-choose{width:100%}.crop-dropzone{min-height:135px;margin:15px 16px 0;flex-direction:column;padding:17px 12px;text-align:center}.crop-empty{margin:13px 16px 17px}.crop-file-info,.crop-ratios,.crop-editor-shell,.crop-selection,.crop-output,.crop-result{margin-right:16px;margin-left:16px}.crop-file-info{grid-template-columns:1fr}.crop-file-actions button{flex:1}.crop-ratios>div{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}.crop-ratios button{min-width:0;padding-right:4px;padding-left:4px}.crop-editor-toolbar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.crop-editor-toolbar button{min-height:44px}.crop-editor-toolbar button:last-child{grid-column:1/-1}.crop-output-grid,.crop-related>div{grid-template-columns:1fr}.crop-result header{align-items:stretch;flex-direction:column}.crop-result button{width:100%}.crop-status{padding-right:16px;padding-left:16px}}
@media(max-width:340px){.crop-pixel-grid{grid-template-columns:1fr}.crop-ratios>div{grid-template-columns:repeat(2,minmax(0,1fr))}.crop-selection dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}}
@media(prefers-color-scheme:dark){.crop-page{--crop-ink:#edf4f4;--crop-muted:#b6c6ce;--crop-line:#40545e;--crop-soft:#183632}.crop-tool,.crop-tool-head,.crop-file-info>div,.crop-editor-toolbar,.crop-editor-shell>p,.crop-selection,.crop-output,.crop-related a,.crop-page input,.crop-page select,.crop-file-actions button,.crop-ratios button,.crop-editor-toolbar button{background:#172a32;color:var(--crop-ink)}.crop-dropzone,.crop-empty{background:#20353b}.crop-stage{background:#13232a}.crop-preview-wrap{background-color:#26373c}.crop-local{background:#173b36}.crop-result{background:#173a35}}
