@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css');

.stretch-app.sa-sharpener{position:relative;box-sizing:border-box;width:100%;padding:56px 20px 72px;overflow:hidden;background:#FAF6FE;background-image:radial-gradient(circle at 10% 10%,rgba(153,81,220,.12),transparent 27%),radial-gradient(circle at 93% 35%,rgba(104,25,179,.08),transparent 25%);font-family:Inter,"Plus Jakarta Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#2E073F}
.stretch-app.sa-sharpener *{box-sizing:border-box}
.stretch-app.sa-sharpener button,.stretch-app.sa-sharpener input{font:inherit}
.stretch-app .sa-shell{max-width:1280px;margin:0 auto}
.stretch-app .sa-hero{max-width:760px;margin:0 auto 30px;text-align:center}
.stretch-app .sa-hero h1{margin:0;color:#3B0270;font-size:48px;line-height:1.08;font-weight:800;letter-spacing:-.045em}
.stretch-app .sa-hero p{margin:14px 0 0;color:#6C5B7B;font-size:16px;line-height:1.6}
.stretch-app .sa-tool-card{background:#FFF;border:1px solid #EDE2F5;border-radius:24px;box-shadow:0 18px 55px rgba(59,2,112,.11);padding:26px}
.stretch-app .sa-tool-header{display:flex;justify-content:space-between;gap:20px;align-items:center;padding-bottom:21px;border-bottom:1px solid #EDE2F5}
.stretch-app .sa-tool-heading{display:flex;align-items:flex-start;gap:13px}
.stretch-app .sa-tool-icon{width:42px;height:42px;flex:0 0 42px;display:grid;place-items:center;color:#FFF;border-radius:13px;background:linear-gradient(135deg,#3B0270,#8524D6)}
.stretch-app .sa-tool-icon svg{width:23px;height:23px}
.stretch-app .sa-tool-heading h2,.stretch-app .sa-settings-card h3{margin:0;color:#3B0270;font-weight:800}
.stretch-app .sa-tool-heading h2{font-size:20px;line-height:1.3}
.stretch-app .sa-tool-heading p{margin:4px 0 0;color:#6C5B7B;font-size:14px;line-height:1.45}
.stretch-app .sa-header-actions{display:flex;flex-wrap:wrap;gap:10px}
.stretch-app .sa-btn,.stretch-app .sa-icon-btn,.stretch-app .sa-zoom-reset,.stretch-app .sa-text-btn,.stretch-app .sa-segmented button{border:0;cursor:pointer;transition:transform .18s ease,box-shadow .18s ease,background .18s ease,color .18s ease}
.stretch-app .sa-btn{min-height:42px;padding:10px 15px;border-radius:10px;font-size:14px;font-weight:750;display:inline-flex;align-items:center;justify-content:center;gap:7px}
.stretch-app .sa-btn svg{width:18px;height:18px}
.stretch-app .sa-btn-primary{color:#FFF;background:linear-gradient(135deg,#3B0270,#8A26D9);box-shadow:0 7px 16px rgba(88,15,151,.22)}
.stretch-app .sa-btn-secondary{color:#3B0270;background:#FFF;border:1px solid #DCC7ED}
.stretch-app .sa-btn:hover:not(:disabled),.stretch-app .sa-icon-btn:hover:not(:disabled),.stretch-app .sa-zoom-reset:hover:not(:disabled){transform:translateY(-1px)}
.stretch-app button:focus-visible,.stretch-app input:focus-visible,.stretch-app .sa-upload-zone:focus-visible{outline:3px solid rgba(126,51,196,.32);outline-offset:3px}
.stretch-app button:disabled,.stretch-app input:disabled{cursor:not-allowed;opacity:.46}
.stretch-app .sa-status{min-height:20px;margin:14px 0 0;color:#6C5B7B;font-size:13px;font-weight:650}
.stretch-app .sa-status.is-error{color:#7A164A}
.stretch-app .sa-status.is-success{color:#3B0270}
.stretch-app .sa-layout{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(310px,.8fr);gap:26px;padding-top:25px}
.stretch-app .sa-preview-column{min-width:0}
.stretch-app .sa-upload-wrap{position:relative}
.stretch-app .sa-file-input{position:absolute;inline-size:1px;block-size:1px;opacity:0;pointer-events:none}
.stretch-app .sa-upload-zone{min-height:154px;padding:25px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;border:1.5px dashed #CDAEE5;border-radius:16px;background:#FAF6FE;color:#3B0270;cursor:pointer;transition:border-color .2s ease,background .2s ease,transform .2s ease}
.stretch-app .sa-upload-zone:hover,.stretch-app .sa-upload-zone.is-dragging{border-color:#7420BF;background:#F4EAFE;transform:translateY(-1px)}
.stretch-app .sa-upload-zone svg{width:35px;height:35px;margin-bottom:9px}
.stretch-app .sa-upload-zone strong{font-size:15px}
.stretch-app .sa-upload-zone span{margin-top:3px;color:#6C5B7B;font-size:14px}
.stretch-app .sa-upload-zone small{margin-top:10px;color:#6C5B7B;font-size:12px}
.stretch-app .sa-preview-panel{position:relative;margin-top:18px;min-height:355px;overflow:hidden;display:grid;place-items:center;border:1px solid #EDE2F5;border-radius:18px;background:#FAF6FE}
.stretch-app .sa-preview-empty{max-width:250px;padding:28px;text-align:center;color:#8B709C}
.stretch-app .sa-preview-empty svg{width:48px;height:48px}
.stretch-app .sa-preview-empty p{margin:10px 0 0;font-size:14px;line-height:1.5}
.stretch-app .sa-image-stage{width:100%;height:100%;min-height:355px;display:grid;place-items:center;position:relative;overflow:hidden}
.stretch-app .sa-preview-canvas{display:block;max-width:100%;max-height:500px;object-fit:contain;transform-origin:center;transition:transform .18s ease}
.stretch-app .sa-processing{position:absolute;z-index:3;display:flex;align-items:center;gap:8px;padding:8px 11px;border:1px solid #E2D1EF;border-radius:999px;color:#3B0270;background:rgba(255,255,255,.94);font-size:12px;font-weight:750;box-shadow:0 6px 18px rgba(59,2,112,.12)}
.stretch-app .sa-processing span{width:13px;height:13px;border:2px solid #DCC7ED;border-top-color:#5D139C;border-radius:50%;animation:sa-spin .8s linear infinite}
.stretch-app .sa-preview-footer{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:13px 2px 0;color:#6C5B7B;font-size:12px}
.stretch-app .sa-dimensions{line-height:1.5}
.stretch-app .sa-zoom-controls{display:flex;align-items:center;border:1px solid #EDE2F5;border-radius:10px;background:#FFF;overflow:hidden}
.stretch-app .sa-icon-btn,.stretch-app .sa-zoom-reset{height:34px;min-width:34px;display:grid;place-items:center;background:#FFF;color:#3B0270}
.stretch-app .sa-icon-btn svg{width:17px;height:17px}
.stretch-app .sa-zoom-reset{padding:0 9px;border-left:1px solid #EDE2F5;border-right:1px solid #EDE2F5;font-size:12px;font-weight:750}
.stretch-app .sa-compare-toggle{display:inline-flex;align-items:center;gap:9px;margin-top:16px;color:#2E073F;font-size:14px;font-weight:700;cursor:pointer}
.stretch-app .sa-compare-toggle input{position:absolute;opacity:0}
.stretch-app .sa-switch{position:relative;width:39px;height:22px;border-radius:999px;background:#D8C6E5;transition:background .2s ease}
.stretch-app .sa-switch::after{content:"";position:absolute;top:3px;left:3px;width:16px;height:16px;border-radius:50%;background:#FFF;box-shadow:0 1px 3px rgba(0,0,0,.2);transition:transform .2s ease}
.stretch-app .sa-compare-toggle input:checked+.sa-switch{background:#6314A6}
.stretch-app .sa-compare-toggle input:checked+.sa-switch::after{transform:translateX(17px)}
.stretch-app .sa-compare-toggle input:focus-visible+.sa-switch{outline:3px solid rgba(126,51,196,.32);outline-offset:3px}
.stretch-app .sa-settings-card{padding:19px;border:1px solid #EDE2F5;border-radius:16px;background:#FFF;box-shadow:0 5px 16px rgba(59,2,112,.035)}
.stretch-app .sa-settings-card+.sa-settings-card{margin-top:16px}
.stretch-app .sa-settings-card h3{font-size:17px}
.stretch-app .sa-card-title-row{display:flex;justify-content:space-between;align-items:center;gap:12px}
.stretch-app .sa-text-btn{padding:4px 0;color:#6414A5;background:transparent;font-size:12px;font-weight:800}
.stretch-app .sa-control-group{margin-top:19px}
.stretch-app .sa-control-group label{display:flex;justify-content:space-between;gap:8px;margin-bottom:9px;color:#2E073F;font-size:13px;font-weight:750}
.stretch-app .sa-control-group output{color:#6C5B7B;font-variant-numeric:tabular-nums}
.stretch-app .sa-control-group input[type=range]{width:100%;height:6px;margin:0;appearance:none;border-radius:999px;background:linear-gradient(90deg,#6716A9 var(--sa-progress,50%),#EDE2F5 var(--sa-progress,50%));accent-color:#6716A9;cursor:pointer}
.stretch-app .sa-control-group input[type=range]::-webkit-slider-thumb{width:18px;height:18px;appearance:none;border:3px solid #FFF;border-radius:50%;background:#6716A9;box-shadow:0 1px 5px rgba(59,2,112,.35)}
.stretch-app .sa-control-group input[type=range]::-moz-range-thumb{width:14px;height:14px;border:3px solid #FFF;border-radius:50%;background:#6716A9;box-shadow:0 1px 5px rgba(59,2,112,.35)}
.stretch-app .sa-presets,.stretch-app .sa-format-group{margin:20px 0 0;padding:0;border:0}
.stretch-app .sa-presets legend,.stretch-app .sa-format-group legend{margin-bottom:9px;color:#2E073F;font-size:13px;font-weight:750}
.stretch-app .sa-segmented{display:grid;grid-template-columns:repeat(3,1fr);padding:3px;border:1px solid #EDE2F5;border-radius:10px;background:#FAF6FE}
.stretch-app .sa-segmented button{min-height:34px;padding:6px 5px;border-radius:7px;color:#6C5B7B;background:transparent;font-size:12px;font-weight:800}
.stretch-app .sa-segmented button.is-active{color:#3B0270;background:#FFF;box-shadow:0 2px 7px rgba(59,2,112,.11)}
.stretch-app .sa-helper{margin:8px 0 0;color:#6C5B7B;font-size:12px;line-height:1.45}
.stretch-app .sa-export-summary{display:flex;flex-direction:column;gap:4px;margin-top:19px;padding:12px;border-radius:10px;background:#FAF6FE}
.stretch-app .sa-export-summary span{color:#6C5B7B;font-size:11px;font-weight:750;text-transform:uppercase;letter-spacing:.055em}
.stretch-app .sa-export-summary strong{color:#3B0270;font-size:13px;line-height:1.4}
.stretch-app .sa-info-card dl{margin:14px 0 0}
.stretch-app .sa-info-card dl div{display:flex;justify-content:space-between;gap:14px;padding:8px 0;border-bottom:1px solid #F1E9F7;font-size:13px}
.stretch-app .sa-info-card dl div:last-child{border-bottom:0}
.stretch-app .sa-info-card dt{color:#6C5B7B}
.stretch-app .sa-info-card dd{max-width:65%;margin:0;color:#2E073F;text-align:right;font-weight:750;overflow-wrap:anywhere}
.stretch-app .sa-info-card p{margin:12px 0 0;color:#6C5B7B;font-size:12px;line-height:1.45}
.stretch-app .sa-compare-view{position:absolute;inset:0;overflow:hidden;background:#FAF6FE}
.stretch-app .sa-compare-view img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;user-select:none;pointer-events:none}
.stretch-app .sa-compare-after-wrap{position:absolute;inset:0 0 0 auto;width:50%;overflow:hidden}
.stretch-app .sa-compare-after-wrap img{width:100vw;max-width:none;right:auto}
.stretch-app .sa-compare-label{position:absolute;z-index:2;top:13px;padding:5px 8px;border-radius:6px;background:rgba(59,2,112,.82);color:#FFF;font-size:11px;font-weight:800}
.stretch-app .sa-before-label{left:13px}
.stretch-app .sa-after-label{right:13px}
.stretch-app .sa-compare-divider{position:absolute;z-index:4;top:0;bottom:0;left:50%;width:3px;padding:0;border:0;background:#FFF;box-shadow:0 0 0 1px rgba(59,2,112,.22);cursor:ew-resize}
.stretch-app .sa-compare-divider::after{content:"↔";position:absolute;top:50%;left:50%;width:30px;height:30px;display:grid;place-items:center;transform:translate(-50%,-50%);border-radius:50%;background:#3B0270;color:#FFF;font-size:14px;box-shadow:0 3px 10px rgba(59,2,112,.3)}
.stretch-app .sa-compare-divider:focus-visible{outline:3px solid rgba(126,51,196,.4);outline-offset:3px}
@keyframes sa-spin{to{transform:rotate(360deg)}}
@media (max-width:900px){.stretch-app.sa-sharpener{padding:42px 16px 56px}.stretch-app .sa-layout{grid-template-columns:1fr}.stretch-app .sa-controls-column{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.stretch-app .sa-settings-card+.sa-settings-card{margin-top:0}.stretch-app .sa-info-card{grid-column:1/-1}}
@media (max-width:620px){.stretch-app.sa-sharpener{padding:34px 12px 46px}.stretch-app .sa-hero{margin-bottom:22px}.stretch-app .sa-hero h1{font-size:31px}.stretch-app .sa-hero p{font-size:15px}.stretch-app .sa-tool-card{padding:17px;border-radius:19px}.stretch-app .sa-tool-header{align-items:flex-start;flex-direction:column}.stretch-app .sa-header-actions{width:100%}.stretch-app .sa-btn{flex:1}.stretch-app .sa-preview-panel,.stretch-app .sa-image-stage{min-height:275px}.stretch-app .sa-controls-column{grid-template-columns:1fr}.stretch-app .sa-info-card{grid-column:auto}.stretch-app .sa-preview-footer{align-items:flex-start;flex-direction:column}.stretch-app .sa-tool-heading h2{font-size:19px}.stretch-app .sa-settings-card h3{font-size:16px}.stretch-app .sa-upload-zone{min-height:140px}}
@media (prefers-reduced-motion:reduce){.stretch-app.sa-sharpener *{scroll-behavior:auto!important;transition:none!important;animation:none!important}}