.gif-studio{max-width:1200px;padding:0 28px;margin:auto;color:#1d1d1f}.gif-studio [hidden]{display:none!important}.gif-studio button,.gif-studio input,.gif-studio select{font:inherit}.gif-studio button{cursor:pointer}.gif-studio button:disabled{cursor:not-allowed;opacity:.45}.gif-studio :is(button,input,select,a,label[for=video-file]):focus-visible{outline:3px solid #0071e3;outline-offset:4px}.gif-hero{text-align:center;padding:64px 0 46px}.gif-hero .eyebrow{font-size:14px;letter-spacing:.14em;color:#606068}.gif-hero h1{font-size:clamp(44px,6.8vw,78px);line-height:1.02;letter-spacing:-.055em;margin:16px 0 22px;font-weight:650}.gif-hero h1 span{color:#76767d}.gif-hero .lead{font-size:20px;line-height:1.5;color:#63636b}.local-note{display:flex;align-items:center;justify-content:center;gap:8px;font-size:14px;margin-top:22px;color:#54695b}.local-note svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.6}.gif-workspace{display:grid;grid-template-columns:minmax(0,1.12fr) minmax(0,1fr);gap:24px;align-items:start}.media-card,.settings-card{border:1px solid #e2e2e7;border-radius:24px;overflow:hidden;background:#fff}.card-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:22px 26px;border-bottom:1px solid #ececef}.card-heading h2{font-size:20px;letter-spacing:-.025em;margin:0}.card-heading span{font-size:14px;color:#6e6e73}.gif-drop{position:relative;display:flex;min-height:390px;padding:44px 24px;flex-direction:column;align-items:center;justify-content:center;text-align:center;background:#f5f5f7;border:2px dashed transparent;transition:border-color .15s}.gif-drop.dragging{border-color:#0071e3;background:#f0f7ff}.film-icon{width:76px;height:76px;fill:none;stroke:#8a8a94;stroke-width:2;margin-bottom:20px}.gif-drop h3{font-size:22px;letter-spacing:-.035em;line-height:1.2;margin:0 0 10px}.gif-drop p{color:#6e6e73;font-size:16px;line-height:1.5;margin:0 0 24px}.gif-drop label{pointer-events:none}.gif-drop input{position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer}.gif-drop:focus-within{outline:3px solid #0071e3;outline-offset:-4px}.gif-drop p.fine{font-size:14px;margin:20px 0 0}.gif-drop:has(input:disabled){opacity:.55}.media-foot{display:flex;justify-content:center;flex-wrap:wrap;gap:18px;padding:19px 16px;color:#6e6e73;font-size:14px}.media-stage{background:#f5f5f7;display:grid;place-items:center;min-height:240px}.media-stage video,.media-stage img{display:block;width:100%;max-height:450px;object-fit:contain}.source-info{padding:20px 26px}.source-info strong{display:block;font-size:16px;overflow-wrap:anywhere}.source-info p{font-size:14px;color:#6e6e73;line-height:1.5;margin:6px 0}.source-info .quiet-button{margin-top:9px}.settings-card form{padding:0 26px}.settings-card fieldset{border:0;padding:0;margin:0;min-width:0}.settings-card fieldset:disabled{opacity:.5}.setting-block{padding:24px 0;border-bottom:1px solid #ececef}.setting-block h3{display:flex;align-items:center;gap:10px;font-size:17px;font-weight:600;letter-spacing:-.015em;margin:0 0 18px}.step{display:grid;place-items:center;border-radius:50%;background:#f0f0f3;width:26px;height:26px;font-size:14px;font-weight:600;color:#5f5f65;flex:none}.pair{display:grid;grid-template-columns:1fr 1fr;gap:12px}.gif-studio label{display:block;font-size:14px;font-weight:600}.gif-studio label .unit{color:#73737b;font-weight:400;font-size:14px}.gif-studio input[type=number],.gif-studio select{display:block;width:100%;min-height:46px;padding:10px 12px;border:1px solid #d4d4da;border-radius:10px;background:#fff;color:#1d1d1f;margin-top:8px;font-size:16px}.gif-studio select{appearance:none;padding-right:32px;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%236e6e73' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 10px center}.fine{font-size:14px!important;line-height:1.5;color:#6e6e73;margin:12px 0 0}.presets{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.presets button{padding:13px 6px;background:#fff;border:1px solid #d5d5db;border-radius:12px;text-align:center;min-height:70px;color:#1d1d1f}.presets button[aria-pressed=true]{border:2px solid #0071e3;padding:12px 5px;background:#f4f9ff}.presets strong{display:block;font-size:14px;font-weight:600}.presets span{display:block;font-size:12px;color:#686871;margin-top:5px}.gif-options{margin-top:17px}.gif-options summary{cursor:pointer;font-size:14px;color:#51515a;min-height:28px}.gif-options[open] summary{margin-bottom:17px}.gif-options>label{margin-top:17px}.brightness-label{display:flex!important;justify-content:space-between}.gif-options input[type=range]{width:100%;margin-top:12px;accent-color:#0071e3}.gif-summary{font-size:14px;line-height:1.5;color:#55555e;background:#f5f5f7;border-radius:12px;padding:13px 15px;margin-top:22px}.validation{font-size:14px;color:#a12525;line-height:1.4;margin:10px 0 0}.validation:empty{display:none}.convert-button{width:100%;margin:16px 0 22px;min-height:48px!important;font-size:16px!important}.engine-note{font-size:14px;line-height:1.55;color:#6e6e73;margin:0;padding:0 26px 24px}.quiet-button,.playhead-actions button{border:0;background:transparent;color:#0071e3;padding:8px 0;font-size:14px;min-height:40px;text-align:left}.playhead-actions{display:flex;gap:14px;justify-content:space-between;flex-wrap:wrap}.playhead-actions button{font-size:14px}.quiet-button:hover,.back-link a:hover{text-decoration:underline}#progress-area{padding:22px 26px 20px}#progress{width:100%;height:10px;accent-color:#0071e3}#status{font-size:14px;line-height:1.5;margin:12px 0 2px;color:#51515a}.gif-error{padding:16px;margin:0 26px 20px;border:1px solid #f1cece;border-radius:12px;background:#fff6f6;color:#942424;font-size:15px;line-height:1.5}.result-section{display:grid;grid-template-columns:1fr 1fr;gap:50px;align-items:center;padding:44px;background:#f5f5f7;border-radius:24px;margin:28px 0 0}.result-section h2{font-size:clamp(30px,4vw,48px);letter-spacing:-.045em;line-height:1.06;margin:12px 0 20px}.result-section .eyebrow{font-size:14px}.result-section #result-info{font-size:16px;color:#606068;margin-bottom:22px}.result-section .quiet-button{display:block;margin:10px 0}.result-stage{display:grid;place-items:center;min-width:0}.result-stage img{display:block;width:auto;max-width:100%;max-height:480px;border-radius:14px}.gif-help{display:grid;grid-template-columns:repeat(3,1fr);gap:40px;border-top:1px solid #e5e5e9;margin-top:58px;padding:40px 0}.gif-help h2{font-size:20px;letter-spacing:-.02em;margin:0 0 13px}.gif-help p{font-size:16px;line-height:1.65;color:#6e6e73;margin:0}.back-link{font-size:14px;text-align:center;color:#0071e3;margin:8px 0 48px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
@media(max-width:900px){.gif-workspace{grid-template-columns:1fr}.gif-drop{min-height:300px}.gif-hero{padding:44px 0 32px}.gif-help{gap:22px}.media-stage video,.media-stage img{max-height:400px}}
@media(max-width:600px){.gif-studio{padding:0 18px}.gif-hero .lead{font-size:18px}.gif-hero h1{font-size:48px}.card-heading{padding:20px}.card-heading span{font-size:12px}.settings-card form{padding:0 20px}.engine-note,#progress-area{padding-left:20px;padding-right:20px}.gif-error{margin-left:20px;margin-right:20px}.gif-drop{padding:32px 16px}.gif-drop h3{font-size:20px}.gif-help{grid-template-columns:1fr;gap:28px;margin-top:38px}.result-section{grid-template-columns:1fr;gap:24px;padding:26px}.result-stage{order:-1}.presets{gap:6px}.presets strong{font-size:13px}.media-foot{gap:12px}.back-link{line-height:1.8}.playhead-actions{gap:5px}.playhead-actions button{font-size:13px}}
@media(prefers-reduced-motion:reduce){.gif-studio *{scroll-behavior:auto!important;transition:none!important}}

/* Crop coordinates are relative to the image, never its letterbox area. */
.crop-preview{display:grid;place-items:center;padding:16px 12px;margin-top:18px;border-radius:14px;background:#f5f5f7}
.crop-stage{position:relative;overflow:hidden;isolation:isolate;max-width:100%;background:#1d1d1f;user-select:none}
.crop-stage>img{display:block;position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.crop-box{position:absolute;box-sizing:border-box;border:2px solid #fff;box-shadow:0 0 0 600px #0009;cursor:move;touch-action:none}
.crop-box::before,.crop-box::after{content:"";position:absolute;pointer-events:none;opacity:.55}
.crop-box::before{inset:0 33.333%;border-left:1px solid #fff;border-right:1px solid #fff}
.crop-box::after{inset:33.333% 0;border-top:1px solid #fff;border-bottom:1px solid #fff}
.crop-box:focus-visible{outline:3px solid #0071e3;outline-offset:-5px}
.gif-studio .crop-handle{position:absolute;width:44px;height:44px;padding:0;margin:0;border:0;background:transparent;touch-action:none;border-radius:0;z-index:1}
.crop-handle::after{content:"";position:absolute;inset:14px;background:#fff;border:2px solid #0071e3;border-radius:50%;box-shadow:0 1px 4px #0006}
.crop-handle.nw{left:-16px;top:-16px;cursor:nwse-resize}.crop-handle.ne{right:-16px;top:-16px;cursor:nesw-resize}
.crop-handle.sw{left:-16px;bottom:-16px;cursor:nesw-resize}.crop-handle.se{right:-16px;bottom:-16px;cursor:nwse-resize}
#crop-reset{display:block}#crop-current-frame{line-height:1.4}#crop-size{font-variant-numeric:tabular-nums}
.crop-box[aria-disabled=true]{cursor:default;pointer-events:none}
