.fth-crop,.fth-crop *{box-sizing:border-box}.fth-crop{--fth-crop-orange:#f97316;--fth-crop-navy:#17243b;--fth-crop-text:#283447;--fth-crop-muted:#64748b;--fth-crop-border:#dce3ec;--fth-crop-soft:#f6f8fb;width:100%;margin:0 auto;color:var(--fth-crop-text);font-family:inherit}.fth-crop [hidden]{display:none!important}.fth-crop__header,.fth-crop__toolbar,.fth-crop__controls,.fth-crop__actions{display:flex;align-items:center;justify-content:space-between;gap:16px}.fth-crop__header{margin-bottom:22px}.fth-crop__heading{margin:0 0 6px;color:var(--fth-crop-navy);font-size:1.35rem;line-height:1.3}.fth-crop__intro{margin:0;color:var(--fth-crop-muted);font-size:.94rem}.fth-crop__status{flex:0 0 auto;padding:7px 11px;border:1px solid var(--fth-crop-border);border-radius:30px;color:var(--fth-crop-muted);background:#fff;font-size:.78rem}.fth-crop__upload{position:relative;display:flex;min-height:245px;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:28px 18px;border:2px dashed #cbd5e1;border-radius:14px;background:var(--fth-crop-soft);text-align:center;transition:border-color 0.2s ease,background 0.2s ease}.fth-crop__upload.is-dragover{border-color:var(--fth-crop-orange);background:#fff7ed}.fth-crop__file{position:absolute;width:1px;height:1px;overflow:hidden;opacity:0;pointer-events:none}.fth-crop__upload-icon{display:grid;width:48px;height:48px;place-items:center;border-radius:50%;background:#fff0e4;color:var(--fth-crop-orange);font-size:1.8rem;line-height:1}.fth-crop__upload strong{color:var(--fth-crop-navy);font-size:1.08rem}.fth-crop__upload>span:not(.fth-crop__upload-icon){color:var(--fth-crop-muted);font-size:.9rem}.fth-crop__upload small{color:var(--fth-crop-muted);font-size:.78rem}.fth-crop__button{display:inline-flex;min-height:43px;align-items:center;justify-content:center;padding:10px 18px;border:1px solid #fff0;border-radius:8px;font:inherit;font-size:.9rem;font-weight:650;line-height:1.2;cursor:pointer;transition:background 0.2s ease,border-color 0.2s ease,transform 0.2s ease}.fth-crop__button:focus-visible,.fth-crop__text-button:focus-visible,.fth-crop__field select:focus-visible,.fth-crop__field input:focus-visible,.fth-crop__handle:focus-visible{outline:3px solid rgb(249 115 22 / .3);outline-offset:2px}.fth-crop__button:active{transform:translateY(1px)}.fth-crop__button--primary{background:var(--fth-crop-orange);color:#fff}.fth-crop__button--primary:hover{background:#e8660d}.fth-crop__button--secondary{border-color:var(--fth-crop-border);background:#fff;color:var(--fth-crop-navy)}.fth-crop__button--secondary:hover{border-color:var(--fth-crop-orange);color:#c6530b}.fth-crop__workspace{margin-top:20px}.fth-crop__toolbar{margin-bottom:14px}.fth-crop__image-info{color:var(--fth-crop-muted);font-size:.85rem;overflow-wrap:anywhere}.fth-crop__text-button{padding:5px 0;border:0;background:#fff0;color:#c6530b;font:inherit;font-size:.88rem;font-weight:650;cursor:pointer}.fth-crop__stage-wrap{display:flex;min-height:180px;align-items:center;justify-content:center;overflow:hidden;padding:14px;border:1px solid var(--fth-crop-border);border-radius:12px;background-color:#edf1f6;background-image:linear-gradient(45deg,#e2e8f0 25%,transparent 25%),linear-gradient(-45deg,#e2e8f0 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#e2e8f0 75%),linear-gradient(-45deg,transparent 75%,#e2e8f0 75%);background-size:20px 20px;background-position:0 0,0 10px,10px -10px,-10px 0}.fth-crop__stage{position:relative;display:inline-block;max-width:100%;line-height:0;user-select:none;touch-action:none}.fth-crop__stage img{display:block;width:auto;max-width:100%;max-height:540px;height:auto;user-select:none;pointer-events:none}.fth-crop__selection{position:absolute;z-index:2;top:0;left:0;border:2px solid #fff;box-shadow:0 0 0 9999px rgb(15 23 42 / .48);cursor:move;touch-action:none}.fth-crop__selection::after{position:absolute;inset:0;border:1px solid rgb(23 36 59 / .35);content:"";pointer-events:none}.fth-crop__handle{position:absolute;z-index:3;display:block;width:14px;height:14px;border:2px solid var(--fth-crop-orange);border-radius:3px;background:#fff;touch-action:none}.fth-crop__handle--nw{top:-7px;left:-7px;cursor:nwse-resize}.fth-crop__handle--ne{top:-7px;right:-7px;cursor:nesw-resize}.fth-crop__handle--sw{bottom:-7px;left:-7px;cursor:nesw-resize}.fth-crop__handle--se{right:-7px;bottom:-7px;cursor:nwse-resize}.fth-crop__hint{margin:10px 0 18px;color:var(--fth-crop-muted);font-size:.82rem;text-align:center}.fth-crop__controls{flex-wrap:wrap;padding:16px;border:1px solid var(--fth-crop-border);border-radius:10px;background:#fff}.fth-crop__field{display:flex;min-width:150px;flex:1 1 180px;flex-direction:column;gap:7px}.fth-crop__field label{color:var(--fth-crop-navy);font-size:.84rem;font-weight:650}.fth-crop__field select{width:100%;min-height:42px;padding:8px 11px;border:1px solid var(--fth-crop-border);border-radius:7px;background:#fff;color:var(--fth-crop-text);font:inherit;font-size:.9rem}.fth-crop__dimensions{display:flex;min-width:145px;flex-direction:column;gap:5px}.fth-crop__dimensions span{color:var(--fth-crop-muted);font-size:.78rem}.fth-crop__dimensions strong{color:var(--fth-crop-navy);font-size:.95rem;font-variant-numeric:tabular-nums}.fth-crop__output{margin-top:18px;padding:18px;border:1px solid var(--fth-crop-border);border-radius:10px;background:var(--fth-crop-soft)}.fth-crop__output h3{margin:0 0 15px;color:var(--fth-crop-navy);font-size:1rem}.fth-crop__output-grid{display:flex;flex-wrap:wrap;gap:16px}.fth-crop__field input[type="range"]{width:100%;accent-color:var(--fth-crop-orange)}.fth-crop__actions{justify-content:flex-start;margin-top:18px}.fth-crop__message{min-height:20px;margin:12px 0 0;color:var(--fth-crop-muted);font-size:.84rem}.fth-crop__message.is-success{color:#167447}.fth-crop__message.is-error,.fth-crop__error{color:#b42318}.fth-crop__error{margin-top:14px;padding:12px 14px;border:1px solid #f2c6c3;border-radius:8px;background:#fff5f4;font-size:.88rem}@media (max-width:640px){.fth-crop__header,.fth-crop__toolbar{align-items:flex-start}.fth-crop__header{flex-direction:column;gap:10px}.fth-crop__stage-wrap{min-height:140px;padding:8px}.fth-crop__stage img{max-height:420px}.fth-crop__controls{align-items:stretch;flex-direction:column}.fth-crop__dimensions{padding:4px 0}.fth-crop__controls>.fth-crop__button{width:100%}.fth-crop__output{padding:14px}.fth-crop__actions,.fth-crop__actions .fth-crop__button{width:100%}}@media (prefers-reduced-motion:reduce){.fth-crop *,.fth-crop *::before,.fth-crop *::after{scroll-behavior:auto!important;transition-duration:0.01ms!important}}