.resizer-page{background:#f7f9fd;min-height:75vh;padding-bottom:68px;color:var(--ink)}.resizer-container{width:min(1240px,calc(100% - 48px))}.resizer-intro{padding:30px 0 27px;background:#fff;border-bottom:1px solid #edf0f5}.resizer-breadcrumbs{display:flex;justify-content:center;gap:10px;color:#8290a3;font-size:12px;margin-bottom:22px}.resizer-breadcrumbs a{color:#52647d}.resizer-intro>.container{text-align:center}.resizer-intro h1{font:800 clamp(34px,4vw,42px)/1.15 var(--head);letter-spacing:-1.4px;color:var(--navy);margin:10px 0 8px}.resizer-intro>div>p:not(.resizer-privacy){font-size:16px;color:#68778c;margin:0}.resizer-privacy{display:inline-flex;gap:8px;align-items:center;margin:14px 0 0;padding:9px 13px;border-radius:8px;background:#edf8f3;color:#39795f;font-size:12px}.resizer-workspace{padding:28px 0 0}.resizer-upload-card,.resizer-preview-card,.resizer-options-card{background:#fff;border:1px solid #e2e8f1;border-radius:14px;box-shadow:0 5px 20px #1d35500a}.resizer-upload-card{padding:14px}.resizer-drop{min-height:280px;border:2px dashed #c8d6ed;border-radius:10px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:24px;transition:border-color .18s,background .18s}.resizer-drop:hover,.resizer-drop:focus-visible,.resizer-drop.is-dragging{border-color:#6792e8;background:#f8faff;outline:none}.resizer-upload-icon{width:60px;height:60px;border-radius:17px;background:#edf3ff;color:var(--blue);display:grid;place-items:center;margin-bottom:14px}.resizer-upload-icon svg{width:34px;height:34px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.resizer-drop h2{font:700 21px var(--head);color:var(--navy);margin:0 0 5px}.resizer-drop p{font-size:14px;color:#748197;margin:0 0 15px}.resizer-drop small{font-size:12px;color:#8491a4;margin-top:14px}.resizer-page .resizer-error{color:#ae3340;background:#fff1f2;padding:11px 14px;margin:12px 3px 0;border-radius:7px;font-size:13px;line-height:1.55}.resizer-page [hidden]{display:none!important}.resizer-editor{display:grid;grid-template-columns:minmax(0,1.24fr) minmax(360px,.76fr);gap:18px;align-items:start}.resizer-preview-card,.resizer-options-card{padding:22px}.resizer-card-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.resizer-card-heading h2{font:700 19px var(--head);color:#233451;margin:5px 0 0}.resizer-link-button,.resizer-icon-button{border:0;background:none;color:#426cb7;font-size:12px;font-weight:700;cursor:pointer;padding:8px;border-radius:6px}.resizer-link-button:hover,.resizer-icon-button:hover{background:#f0f5ff}.resizer-icon-button{border:1px solid #dce4f0;background:#fff}.resizer-file-info{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px;margin-bottom:12px;color:#76849a;font-size:12px}.resizer-file-info strong{max-width:66%;overflow-wrap:anywhere;color:#30415d;font-size:13px}.resizer-stage{height:min(62vh,650px);min-height:390px;position:relative;display:grid;place-items:center;overflow:hidden;border:1px solid #e1e7f0;border-radius:10px;background:repeating-conic-gradient(#f1f3f7 0% 25%,#fff 0% 50%) 50%/20px 20px}.resizer-stage>img{display:block;width:100%;height:100%;object-fit:contain;user-select:none;-webkit-user-drag:none}.crop-selection{position:absolute;display:none;box-sizing:border-box;border:2px solid #fff;outline:1px solid #2868df;box-shadow:0 0 0 9999px rgba(15,28,49,.57);touch-action:none;cursor:move}.crop-selection.is-visible{display:block}.crop-selection:focus-visible{outline:3px solid #ffd56b;outline-offset:2px}.crop-handle{position:absolute;z-index:2;width:14px;height:14px;padding:0;border:2px solid #2f6ede;border-radius:4px;background:white;touch-action:none}.crop-handle.nw{top:-8px;left:-8px;cursor:nwse-resize}.crop-handle.ne{top:-8px;right:-8px;cursor:nesw-resize}.crop-handle.se{right:-8px;bottom:-8px;cursor:nwse-resize}.crop-handle.sw{left:-8px;bottom:-8px;cursor:nesw-resize}.crop-handle.n,.crop-handle.s{left:50%;transform:translateX(-50%);width:25px;height:10px;border-radius:5px;cursor:ns-resize}.crop-handle.n{top:-6px}.crop-handle.s{bottom:-6px}.crop-handle.e,.crop-handle.w{top:50%;transform:translateY(-50%);width:10px;height:25px;border-radius:5px;cursor:ew-resize}.crop-handle.e{right:-6px}.crop-handle.w{left:-6px}.resizer-empty-preview{position:absolute;color:#70809a;font-size:13px}.crop-tools{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:12px}.crop-tools p{margin:0;color:#75839a;font-size:11px;line-height:1.5}.resizer-output-preview{margin-top:20px;padding-top:17px;border-top:1px solid #edf0f5;display:grid;grid-template-columns:1fr auto;align-items:center;gap:10px}.resizer-output-title{grid-column:1/-1;display:flex;justify-content:space-between;align-items:baseline;gap:10px}.resizer-output-title strong{color:#243652;font-size:14px}.resizer-output-title span{color:#73829a;font-size:11px;text-align:right}.resizer-output-preview img{display:block;max-width:100%;max-height:220px;object-fit:contain;border:1px solid #e7ebf2;border-radius:7px;background:repeating-conic-gradient(#f1f3f7 0% 25%,#fff 0% 50%) 50%/16px 16px}.resizer-output-preview .button{white-space:nowrap}.resizer-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;padding:4px;margin-bottom:17px;border-radius:9px;background:#f1f4f9}.resizer-tabs button{min-height:38px;padding:7px 5px;border:0;border-radius:7px;background:transparent;color:#687991;font:600 12px var(--font);cursor:pointer}.resizer-tabs button[aria-selected=true]{background:#fff;color:#245bbd;box-shadow:0 1px 4px #20395c18}.resizer-tabs button:focus-visible,.resizer-page select:focus-visible,.resizer-page input:focus-visible,.resizer-page button:focus-visible{outline:3px solid #8eb1ff;outline-offset:2px}.resizer-tab-panel>label,.resizer-format-section>label{display:block;color:#34445e;font-size:12px;font-weight:700;margin:0 0 7px}.resizer-page select,.resizer-size-fields input{width:100%;min-width:0;height:42px;border:1px solid #dce3ed;border-radius:7px;padding:0 10px;background:#fff;color:#34445e;font:13px var(--font)}.resizer-tab-panel select{margin-bottom:4px}.resizer-help{margin:8px 0 0;color:#7c899d;font-size:11px;line-height:1.55}.resizer-size-fields{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:end;gap:9px}.resizer-size-fields>span{padding-bottom:11px;color:#8391a5}.resizer-size-fields label{display:block;color:#34445e;font-size:12px;font-weight:700;margin:0 0 7px}.resizer-checkbox{display:flex;align-items:flex-start;gap:9px;margin:13px 0 18px;padding:10px;border:1px solid #e2e8f1;border-radius:8px;background:#fafbfe;cursor:pointer}.resizer-checkbox input,.resize-behavior input,.paper-orientation input{accent-color:var(--blue)}.resizer-checkbox input{width:16px;height:16px;flex:0 0 16px;margin:1px 0}.resizer-checkbox span,.resize-behavior label span{display:flex;flex-direction:column;gap:4px}.resizer-checkbox strong,.resize-behavior strong{font-size:12px;color:#34445e}.resizer-checkbox small,.resize-behavior small{font-size:11px;line-height:1.4;color:#7c899d}.resize-behavior,.paper-orientation{border:0;border-top:1px solid #edf0f5;padding:13px 0 0;margin:0}.resize-behavior legend,.paper-orientation legend{font-size:12px;font-weight:700;color:#34445e;padding:0 0 2px}.resize-behavior label{display:flex;align-items:flex-start;gap:9px;margin-top:9px;padding:10px;border:1px solid #e2e8f1;border-radius:8px;cursor:pointer}.resize-behavior label:has(input:checked){border-color:#91afe9;background:#f7f9ff}.resize-behavior input{margin:2px 0 0}.paper-orientation{display:flex;gap:8px;margin:12px 0}.paper-orientation legend{float:left;width:100%;margin-bottom:6px}.paper-orientation label{flex:1;display:flex;align-items:center;gap:7px;padding:10px;border:1px solid #e2e8f1;border-radius:8px;color:#40516b;font-size:12px;cursor:pointer}.paper-orientation label:has(input:checked){border-color:#91afe9;background:#f7f9ff}.paper-dimensions{margin:8px 0 0;padding:10px;border-radius:7px;background:#f5f8fd;color:#30425e;font-size:12px;font-weight:700}.resizer-format-section{display:grid;gap:8px;margin-top:17px;padding-top:15px;border-top:1px solid #edf0f5}.resizer-format-section>small{font-size:11px;color:#7c899d;line-height:1.45}.resizer-format-section>div label{display:flex;justify-content:space-between;color:#34445e;font-size:12px;font-weight:700;margin:3px 0 8px}.resizer-format-section input[type=range]{width:100%;accent-color:var(--blue)}.quality-labels{display:flex;justify-content:space-between;color:#8995a7;font-size:10px}.resizer-action-area{margin-top:17px}.resizer-action-area>p{margin:0 0 10px;color:#ae3540;background:#fff1f2;padding:10px;border-radius:7px;font-size:12px;line-height:1.5}.resizer-submit{width:100%;min-height:46px;cursor:pointer;border:0;font:700 14px var(--font)}.resizer-submit:disabled{opacity:.55;cursor:wait}.resizer-change-bottom{width:100%;margin-top:8px}.resizer-page .visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:980px){.resizer-editor{grid-template-columns:minmax(0,1.1fr) minmax(320px,.9fr);gap:13px}.resizer-preview-card,.resizer-options-card{padding:17px}.resizer-stage{min-height:330px;height:55vh}}
@media(max-width:760px){.resizer-container{width:calc(100% - 32px)}.resizer-editor{grid-template-columns:1fr}.resizer-preview-card{order:1}.resizer-options-card{order:2}.resizer-stage{min-height:360px;height:54vh}.resizer-output-preview img{max-height:180px}}
@media(max-width:480px){.resizer-intro{padding:23px 0}.resizer-breadcrumbs{font-size:11px;margin-bottom:16px}.resizer-intro h1{font-size:32px}.resizer-intro>div>p:not(.resizer-privacy){font-size:14px;line-height:1.55}.resizer-privacy{font-size:11px;text-align:left;line-height:1.45}.resizer-workspace{padding-top:16px}.resizer-upload-card{padding:9px}.resizer-drop{min-height:250px;padding:18px}.resizer-drop h2{font-size:19px}.resizer-drop small{font-size:10px;line-height:1.5}.resizer-preview-card,.resizer-options-card{padding:14px}.resizer-stage{min-height:280px;height:43vh}.resizer-card-heading h2{font-size:17px}.resizer-file-info{font-size:11px}.crop-tools{align-items:flex-start}.crop-tools p{max-width:72%}.resizer-output-preview{grid-template-columns:1fr}.resizer-output-title{grid-column:auto}.resizer-output-preview img{max-width:100%;max-height:180px;margin:auto}.resizer-output-preview .button{width:100%}.resizer-tabs button{font-size:11px}.crop-handle{width:17px;height:17px}.crop-handle.n,.crop-handle.s{width:30px;height:12px}.crop-handle.e,.crop-handle.w{width:12px;height:30px}}

/* Keep the preview element itself at the contained image bounds so crop math maps directly to visible pixels. */
.resizer-stage>img{position:absolute;left:50%;top:50%;width:auto;height:auto;max-width:100%;max-height:100%;object-fit:contain;transform:translate(-50%,-50%)}

.resizer-preset-label{display:block;color:#34445e;font-size:12px;font-weight:700;margin:0 0 8px}.platform-selector{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.platform-button,.resizer-preset-option{appearance:none;-webkit-appearance:none;font-family:var(--font);cursor:pointer;transition:background .16s,border-color .16s,color .16s,box-shadow .16s}.platform-button{display:flex;align-items:center;justify-content:center;width:100%;min-width:0;min-height:40px;padding:9px 8px;border:1px solid #dce3ed;border-radius:8px;background:#fff;color:#52647d;font-size:12px;font-weight:650;line-height:1.2;text-align:center}.platform-button:hover{border-color:#a9bce0;background:#f1f5fc;color:#294b82}.platform-button.active{border-color:var(--blue);background:var(--blue);color:#fff}.platform-button:focus-visible,.resizer-preset-option:focus-visible{outline:3px solid #8eb1ff;outline-offset:2px}.resizer-preset-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:12px}.resizer-preset-option{display:flex;flex-direction:column;align-items:flex-start;gap:4px;width:100%;min-width:0;min-height:76px;padding:10px;border:1px solid #e2e8f1;border-radius:8px;background:#fff;text-align:left}.resizer-preset-option:hover{border-color:#a9bce0;background:#f8faff}.resizer-preset-option[aria-pressed=true]{border-color:#6e96e4;background:#f2f6ff;box-shadow:inset 0 0 0 1px #6e96e4}.resizer-preset-option strong{color:#34445e;font-size:12px;line-height:1.3}.resizer-preset-option span{color:#708099;font-size:10px;line-height:1.35}.resizer-preset-option[aria-pressed=true] strong{color:#245bbd}.resizer-preset-grid:empty{display:none}
@media(max-width:420px){.platform-selector{grid-template-columns:repeat(2,minmax(0,1fr))}.resizer-preset-grid{gap:6px}.resizer-preset-option{padding:9px 8px}}
.resizer-preset-option{min-height:58px;padding:7px 9px;gap:3px}.resizer-preset-option strong,.resizer-preset-option span{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.resizer-preset-option span{font-size:10px;line-height:1.25}.resizer-size-fields+.resizer-checkbox{margin-top:18px}.paper-size-selector{margin-bottom:14px}
@media(max-width:420px){.resizer-preset-option{min-height:55px;padding:7px 6px}.resizer-preset-option span{font-size:9px}}
