*, ::before, ::after {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
  --tw-contain-size:  ;
  --tw-contain-layout:  ;
  --tw-contain-paint:  ;
  --tw-contain-style:  ;
}

::backdrop {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
  --tw-contain-size:  ;
  --tw-contain-layout:  ;
  --tw-contain-paint:  ;
  --tw-contain-style:  ;
}/*
! tailwindcss v3.4.19 | MIT License | https://tailwindcss.com
*//*
1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)
*/

*,
::before,
::after {
  box-sizing: border-box; /* 1 */
  border-width: 0; /* 2 */
  border-style: solid; /* 2 */
  border-color: #e5e7eb; /* 2 */
}

::before,
::after {
  --tw-content: '';
}

/*
1. Use a consistent sensible line-height in all browsers.
2. Prevent adjustments of font size after orientation changes in iOS.
3. Use a more readable tab size.
4. Use the user's configured `sans` font-family by default.
5. Use the user's configured `sans` font-feature-settings by default.
6. Use the user's configured `sans` font-variation-settings by default.
7. Disable tap highlights on iOS
*/

html,
:host {
  line-height: 1.5; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */
  -moz-tab-size: 4; /* 3 */
  -o-tab-size: 4;
     tab-size: 4; /* 3 */
  font-family: "Google Sans Flex", -apple-system, BlinkMacSystemFont, sans-serif; /* 4 */
  font-feature-settings: normal; /* 5 */
  font-variation-settings: normal; /* 6 */
  -webkit-tap-highlight-color: transparent; /* 7 */
}

/*
1. Remove the margin in all browsers.
2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.
*/

body {
  margin: 0; /* 1 */
  line-height: inherit; /* 2 */
}

/*
1. Add the correct height in Firefox.
2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
3. Ensure horizontal rules are visible by default.
*/

hr {
  height: 0; /* 1 */
  color: inherit; /* 2 */
  border-top-width: 1px; /* 3 */
}

/*
Add the correct text decoration in Chrome, Edge, and Safari.
*/

abbr:where([title]) {
  -webkit-text-decoration: underline dotted;
          text-decoration: underline dotted;
}

/*
Remove the default font size and weight for headings.
*/

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}

/*
Reset links to optimize for opt-in styling instead of opt-out.
*/

a {
  color: inherit;
  text-decoration: inherit;
}

/*
Add the correct font weight in Edge and Safari.
*/

b,
strong {
  font-weight: bolder;
}

/*
1. Use the user's configured `mono` font-family by default.
2. Use the user's configured `mono` font-feature-settings by default.
3. Use the user's configured `mono` font-variation-settings by default.
4. Correct the odd `em` font sizing in all browsers.
*/

code,
kbd,
samp,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; /* 1 */
  font-feature-settings: normal; /* 2 */
  font-variation-settings: normal; /* 3 */
  font-size: 1em; /* 4 */
}

/*
Add the correct font size in all browsers.
*/

small {
  font-size: 80%;
}

/*
Prevent `sub` and `sup` elements from affecting the line height in all browsers.
*/

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/*
1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
3. Remove gaps between table borders by default.
*/

table {
  text-indent: 0; /* 1 */
  border-color: inherit; /* 2 */
  border-collapse: collapse; /* 3 */
}

/*
1. Change the font styles in all browsers.
2. Remove the margin in Firefox and Safari.
3. Remove default padding in all browsers.
*/

button,
input,
optgroup,
select,
textarea {
  font-family: inherit; /* 1 */
  font-feature-settings: inherit; /* 1 */
  font-variation-settings: inherit; /* 1 */
  font-size: 100%; /* 1 */
  font-weight: inherit; /* 1 */
  line-height: inherit; /* 1 */
  letter-spacing: inherit; /* 1 */
  color: inherit; /* 1 */
  margin: 0; /* 2 */
  padding: 0; /* 3 */
}

/*
Remove the inheritance of text transform in Edge and Firefox.
*/

button,
select {
  text-transform: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Remove default button styles.
*/

button,
input:where([type='button']),
input:where([type='reset']),
input:where([type='submit']) {
  -webkit-appearance: button; /* 1 */
  background-color: transparent; /* 2 */
  background-image: none; /* 2 */
}

/*
Use the modern Firefox focus style for all focusable elements.
*/

:-moz-focusring {
  outline: auto;
}

/*
Remove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)
*/

:-moz-ui-invalid {
  box-shadow: none;
}

/*
Add the correct vertical alignment in Chrome and Firefox.
*/

progress {
  vertical-align: baseline;
}

/*
Correct the cursor style of increment and decrement buttons in Safari.
*/

::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
  height: auto;
}

/*
1. Correct the odd appearance in Chrome and Safari.
2. Correct the outline style in Safari.
*/

[type='search'] {
  -webkit-appearance: textfield; /* 1 */
  outline-offset: -2px; /* 2 */
}

/*
Remove the inner padding in Chrome and Safari on macOS.
*/

::-webkit-search-decoration {
  -webkit-appearance: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Change font properties to `inherit` in Safari.
*/

::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}

/*
Add the correct display in Chrome and Safari.
*/

summary {
  display: list-item;
}

/*
Removes the default spacing and border for appropriate elements.
*/

blockquote,
dl,
dd,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
figure,
p,
pre {
  margin: 0;
}

fieldset {
  margin: 0;
  padding: 0;
}

legend {
  padding: 0;
}

ol,
ul,
menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

/*
Reset default styling for dialogs.
*/
dialog {
  padding: 0;
}

/*
Prevent resizing textareas horizontally by default.
*/

textarea {
  resize: vertical;
}

/*
1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)
2. Set the default placeholder color to the user's configured gray 400 color.
*/

input::-moz-placeholder, textarea::-moz-placeholder {
  opacity: 1; /* 1 */
  color: #9ca3af; /* 2 */
}

input::placeholder,
textarea::placeholder {
  opacity: 1; /* 1 */
  color: #9ca3af; /* 2 */
}

/*
Set the default cursor for buttons.
*/

button,
[role="button"] {
  cursor: pointer;
}

/*
Make sure disabled buttons don't get the pointer cursor.
*/
:disabled {
  cursor: default;
}

/*
1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)
2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
   This can trigger a poorly considered lint error in some tools but is included by design.
*/

img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block; /* 1 */
  vertical-align: middle; /* 2 */
}

/*
Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)
*/

img,
video {
  max-width: 100%;
  height: auto;
}

/* Make elements with the HTML hidden attribute stay hidden by default */
[hidden]:where(:not([hidden="until-found"])) {
  display: none;
}
  * {
  margin: 0px;
  box-sizing: border-box;
  padding: 0px;
}

  html,
  body {
  height: 100%;
}

  body {
  min-height: 100vh;
  overflow-x: hidden;
  --tw-bg-opacity: 1;
  background-color: rgb(10 10 10 / var(--tw-bg-opacity, 1));
  font-family: "Google Sans Flex", -apple-system, BlinkMacSystemFont, sans-serif;
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}

  :root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-press: #1e40af;
    --primary-text: #ffffff;
  }

  /* Animated gradient background */
  body::before {
    content: "";
    pointer-events: none;
    position: fixed;
    inset: 0px;
  }
  @keyframes bgPulse {

  0% {
    opacity: 0.7;
  }

  100% {
    opacity: 1;
  }
}
  body::before {
  animation: bgPulse 10s ease-in-out infinite alternate;
    background: radial-gradient(circle at 20% 20%,
        rgba(255, 107, 107, 0.12) 0%,
        transparent 50%),
      radial-gradient(circle at 80% 80%,
        rgba(72, 219, 251, 0.12) 0%,
        transparent 50%),
      radial-gradient(circle at 40% 80%,
        rgba(255, 159, 243, 0.08) 0%,
        transparent 40%);
}
.container {
  width: 100%;
}
@media (min-width: 640px) {

  .container {
    max-width: 640px;
  }
}
@media (min-width: 768px) {

  .container {
    max-width: 768px;
  }
}
@media (min-width: 1024px) {

  .container {
    max-width: 1024px;
  }
}
@media (min-width: 1280px) {

  .container {
    max-width: 1280px;
  }
}
@media (min-width: 1536px) {

  .container {
    max-width: 1536px;
  }
}
/* App container */
#app {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
/* Page drop target */
.page-drop-target {
  position: relative;
  display: flex;
  min-height: 100vh;
  width: 100%;
  align-items: center;
  justify-content: center;
}
/* Marching ants animation */
.marching-ants {
  pointer-events: none;
  position: fixed;
  z-index: 100;
  overflow: visible;
    inset: 1rem;
    width: calc(100% - 2rem);
    height: calc(100% - 2rem);
    filter: drop-shadow(0 0 20px rgba(255, 107, 107, 0.4));
}
@keyframes marchingAnts {

  to {
    stroke-dashoffset: -20;
  }
}
.marching-ants rect {
  animation: marchingAnts 0.4s linear infinite;
  fill: none;
  stroke: #ff6b6b;
    stroke-width: 3;
    stroke-dasharray: 12 8;
}
.page-drop-target.dragging .drop-zone {
  --tw-border-opacity: 1;
  border-color: rgb(255 107 107 / var(--tw-border-opacity, 1));
    box-shadow: 0 0 30px rgba(255, 107, 107, 0.4);
}
/* Main content */
main {
  display: flex;
  width: 100%;
  max-width: 700px;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
/* Title with gradient */
.title {
  text-align: center;
  font-weight: 700;
  letter-spacing: -0.025em;
    font-size: clamp(1.8rem, 6vw, 2.4rem);
}
.camel-logo {
  margin-right: 0.3em;
  display: inline-block;
  height: 0.85em;
  width: auto;
  vertical-align: middle;
    margin-bottom: 0.1em;
}
@keyframes gradientShift {

  0%, 100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}
.title-gradient {
  animation: gradientShift 5s ease infinite;
  background-size: 300% 300%;
  background-clip: text;
    background-image: linear-gradient(135deg,
        #ff6b6b,
        #feca57,
        #48dbfb,
        #ff9ff3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.tagline {
  margin-bottom: 1rem;
  text-align: center;
  --tw-text-opacity: 1;
  color: rgb(71 85 105 / var(--tw-text-opacity, 1));
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
}
/* Hidden file input */
.hidden-input {
  pointer-events: none;
  position: absolute;
  opacity: 0;
}
/* Drop zone wrapper */
.drop-zone-wrapper {
  position: relative;
  width: 100%;
}
/* Clear button */
.clear-btn {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 10;
  cursor: pointer;
  border-radius: 20px;
  border-width: 1px;
  border-color: rgb(255 255 255 / 0.1);
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  padding-top: 0.375rem;
  padding-bottom: 0.375rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: rgba(255, 255, 255, 0.4);
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 200ms;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    font-family: inherit;
}
.clear-btn:hover {
  border-color: rgb(255 107 107 / 0.3);
  --tw-text-opacity: 1;
  color: rgb(255 107 107 / var(--tw-text-opacity, 1));
    background: rgba(255, 107, 107, 0.15);
}
/* Drop zone */
.drop-zone {
  position: relative;
  display: flex;
  height: 160px;
  min-height: 160px;
  width: 100%;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 20px;
  border-width: 3px;
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.08);
  background-color: rgba(255, 255, 255, 0.03);
  padding: 1.5rem;
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 300ms;
    backdrop-filter: blur(20px);
}
.drop-zone:hover {
  border-color: rgb(255 255 255 / 0.25);
  background-color: rgba(255, 255, 255, 0.08);
}
.drop-zone.active {
  --tw-border-opacity: 1;
  border-color: rgb(255 107 107 / var(--tw-border-opacity, 1));
    box-shadow: 0 0 30px rgba(255, 107, 107, 0.4);
}
.drop-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}
.drop-text {
  font-size: 1.25rem;
  line-height: 1.75rem;
  font-weight: 600;
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}
.drop-hint {
  max-width: 450px;
  font-size: 1rem;
  line-height: 1.5rem;
  line-height: 1.625;
  color: rgba(255, 255, 255, 0.4);
}
.paste-hint {
  font-size: 0.875rem;
  line-height: 1.25rem;
  opacity: 0.8;
}
/* Source preview */
.source-preview {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.source-images {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}
.source-thumb {
  position: relative;
  height: 3.5rem;
  width: 3.5rem;
  overflow: hidden;
  border-radius: 10px;
  border-width: 1px;
  border-color: rgb(255 255 255 / 0.1);
    background: rgba(0, 0, 0, 0.3);
    cursor: grab;
    transition: transform 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}
.source-thumb:active {
    cursor: grabbing;
  }
.source-thumb.dragging {
    opacity: 0.5;
    transform: scale(0.95);
  }
.source-thumb.drag-over {
    border-color: #ff6b6b;
    transform: scale(1.05);
  }
.source-thumb img {
  height: 100%;
  width: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}
.source-thumb.more {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgb(255 255 255 / 0.05);
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.4);
    cursor: default;
}
.source-count {
  font-size: 1rem;
  line-height: 1.5rem;
  color: rgba(255, 255, 255, 0.4);
}
/* Compress toggle */
.compress-toggle {
  display: flex;
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  align-items: center;
  gap: 0.5rem;
}
.compress-toggle input {
  display: none;
}
.checkmark {
  position: relative;
  height: 1.25rem;
  width: 1.25rem;
  border-radius: 0.25rem;
  border-width: 2px;
  border-color: rgba(255, 255, 255, 0.08);
  background-color: rgba(255, 255, 255, 0.03);
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 200ms;
}
.compress-toggle input:checked+.checkmark {
  border-color: transparent;
    background: linear-gradient(135deg, #ff6b6b, #feca57);
}
.checkmark::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 2px;
    height: 10px;
    width: 5px;
    opacity: 0;
    transition-property: opacity;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 200ms;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
  }
.compress-toggle input:checked+.checkmark::after {
  opacity: 1;
}
.compress-label {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.4);
}
.compress-toggle:hover .checkmark {
  border-color: rgb(255 255 255 / 0.3);
}
.compress-toggle:hover .compress-label {
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}
/* Stitch toggle group */
.stitch-toggle-group {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.stitch-type-select {
  cursor: pointer;
  border-radius: 0.375rem;
  padding-left: 0.5rem;
  padding-top: 0.125rem;
  padding-bottom: 0.125rem;
  font-size: 0.95rem;
  font-weight: 500;
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 200ms;
    background-color: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: inherit;
    font-family: inherit;
    -moz-appearance: none;
         appearance: none;
    -webkit-appearance: none;
    padding-right: 1.5rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2710%27 height=%2710%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27rgba%28255,255,255,0.6%29%27 stroke-width=%272.5%27%3E%3Cpath d=%27M6 9l6 6 6-6%27/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.35rem center;
    background-size: 10px 10px;
}
.stitch-type-select:hover {
    background-color: rgba(139, 92, 246, 0.25);
    border-color: rgba(139, 92, 246, 0.5);
  }
.stitch-type-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.2);
  }
.stitch-type-select option {
    background: #1a1a24;
    color: white;
    padding: 8px;
  }
.stitch-config-btn {
  display: flex;
  height: 1.25rem;
  width: 1.25rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.25rem;
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 200ms;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: inherit;
    padding: 0;
}
.stitch-config-btn svg {
  height: 0.875rem;
  width: 0.875rem;
    color: var(--color-text-dim);
}
.stitch-config-btn:hover:not(:disabled) svg {
    color: white;
  }
.stitch-config-btn.disabled,
  .stitch-config-btn:disabled {
    cursor: default;
    opacity: 0.4;
  }
.stitch-toggle-group.disabled {
    opacity: 0.5;
  }
.stitch-toggle-group.disabled .compress-toggle {
    cursor: default;
  }
.stitch-type-select:disabled {
    cursor: default;
    opacity: 0.7;
  }
/* Remove background toggle group */
.remove-bg-toggle-group {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.remove-bg-help-btn {
  display: flex;
  height: 1.25rem;
  width: 1.25rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.25rem;
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 200ms;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: inherit;
    padding: 0;
}
.remove-bg-help-btn svg {
  height: 0.875rem;
  width: 0.875rem;
    color: var(--color-text-dim);
}
.remove-bg-help-btn:hover svg {
    color: white;
  }
/* Remove background help modal */
.remove-bg-help-modal {
    max-width: 380px;
  }
.remove-bg-help-text {
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  line-height: 1.625;
    color: var(--color-text-dim);
}
.remove-bg-help-text:last-child {
    margin-bottom: 0;
  }
.remove-bg-help-text strong {
  font-weight: 600;
    color: white;
}
.animation-play-btn {
  border-radius: 0.25rem;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  padding-top: 0.125rem;
  padding-bottom: 0.125rem;
  font-size: 0.75rem;
  line-height: 1rem;
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 200ms;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: inherit;
    cursor: pointer;
}
.animation-play-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
  }
/* Crossfade toggle in animation modal */
.animation-crossfade-toggle {
  display: flex;
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  align-items: center;
  gap: 0.75rem;
}
.animation-crossfade-toggle input[type="checkbox"] {
  display: none;
}
.animation-crossfade-toggle .checkmark {
  position: relative;
  height: 1.25rem;
  width: 1.25rem;
  flex-shrink: 0;
  border-radius: 0.25rem;
  border-width: 2px;
  border-color: rgb(255 255 255 / 0.2);
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 200ms;
    background: rgba(255, 255, 255, 0.05);
}
.animation-crossfade-toggle:hover .checkmark {
    border-color: rgba(255, 255, 255, 0.35);
  }
.animation-crossfade-toggle input:checked + .checkmark {
  border-color: transparent;
    background: linear-gradient(135deg, #ff6b6b, #feca57);
}
.animation-crossfade-toggle .checkmark::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 2px;
    height: 10px;
    width: 5px;
    opacity: 0;
    transition-property: opacity;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 200ms;
    border: solid rgba(0, 0, 0, 0.7);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
  }
.animation-crossfade-toggle input:checked + .checkmark::after {
  opacity: 1;
}
.crossfade-label {
  display: flex;
  flex-direction: column;
}
.crossfade-description {
  font-size: 0.75rem;
  line-height: 1rem;
  color: rgba(255, 255, 255, 0.4);
}
/* Options row */
.options-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  row-gap: 0.5rem;
}
/* Transform toggle button */
/* Transform panel */
/* Resize controls */
/* Rotate/Flip controls */
.rotate-btn.active,
  .flip-btn.active {
    background: rgba(37, 99, 235, 0.25);
    border-color: rgba(37, 99, 235, 0.6);
    color: var(--color-text);
  }
/* Crop controls */
/* Apply and Reset buttons */
/* Image Editor Modal */
.image-editor-overlay {
  position: fixed;
  inset: 0px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
    background: radial-gradient(1200px 600px at 50% 10%, rgba(72, 219, 251, 0.08), rgba(0, 0, 0, 0.88));
    backdrop-filter: blur(8px);
}
.image-editor-modal {
  display: flex;
  max-height: 90vh;
  width: 100%;
  max-width: 56rem;
  flex-direction: column;
  overflow: hidden;
  border-radius: 1rem;
    background: linear-gradient(180deg, rgba(18, 18, 18, 0.98), rgba(8, 8, 8, 0.98));
    border: 1px solid var(--color-border);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}
.editor-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom-width: 1px;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
    border-color: var(--color-border);
    background: rgba(255, 255, 255, 0.02);
}
.editor-header h3 {
  margin: 0px;
  font-size: 1.125rem;
  line-height: 1.75rem;
  font-weight: 600;
    color: var(--color-text);
}
.editor-filename {
  flex: 1 1 0%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.875rem;
  line-height: 1.25rem;
    color: var(--color-text-dim);
}
.editor-close-btn {
  display: flex;
  height: 2rem;
  width: 2rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  font-size: 1.25rem;
  line-height: 1.75rem;
  line-height: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text-dim);
}
.editor-close-btn:hover {
    background: rgba(255, 107, 107, 0.2);
    color: var(--color-text);
  }
.editor-canvas-container {
  display: flex;
  flex: 1 1 0%;
  align-items: center;
  justify-content: center;
  overflow: auto;
  padding: 1.5rem;
    background:
      linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
      linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
      rgba(0, 0, 0, 0.2);
    background-size: 24px 24px;
    min-height: 300px;
}
.editor-canvas-container .ReactCrop {
    max-width: 100%;
    max-height: 60vh;
  }
.editor-canvas-container .ReactCrop__crop-selection {
    border: 2px dashed rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.45) inset, 0 0 18px rgba(72, 219, 251, 0.25);
  }
.editor-canvas-container .ReactCrop__crop-mask {
    background: rgba(0, 0, 0, 0.55);
  }
.editor-canvas-container .ReactCrop__drag-handle {
    width: 14px;
    height: 14px;
    border-radius: 999px;
    border: 2px solid rgba(0, 0, 0, 0.6);
    background: linear-gradient(135deg, #48dbfb, #ff6b6b);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
  }
.editor-canvas-container .ReactCrop__drag-handle.ord-n,
  .editor-canvas-container .ReactCrop__drag-handle.ord-e,
  .editor-canvas-container .ReactCrop__drag-handle.ord-s,
  .editor-canvas-container .ReactCrop__drag-handle.ord-w {
    display: none;
  }
.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  border-top-width: 1px;
  border-bottom-width: 1px;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
    border-color: var(--color-border);
    background: rgba(0, 0, 0, 0.1);
}
.toolbar-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.toolbar-label {
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.025em;
    color: var(--color-text-dim);
}
.toolbar-btn {
  display: flex;
  height: 2.25rem;
  width: 2.25rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 200ms;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text-dim);
}
.toolbar-btn svg {
  height: 1.25rem;
  width: 1.25rem;
}
.toolbar-btn:hover {
    background: rgba(72, 219, 251, 0.15);
    border-color: rgba(72, 219, 251, 0.3);
    color: var(--color-text);
  }
.toolbar-btn.active {
    background: rgba(37, 99, 235, 0.25);
    border-color: rgba(37, 99, 235, 0.6);
    color: var(--color-text);
  }
.toolbar-btn.reset-btn {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 500;
    width: auto;
}
.scale-slider {
  height: 0.25rem;
  width: 6rem;
  cursor: pointer;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  border-radius: 9999px;
    background: transparent;
}
.scale-slider::-webkit-slider-thumb {
  height: 1rem;
  width: 1rem;
  cursor: pointer;
  -webkit-appearance: none;
          appearance: none;
  border-radius: 9999px;
    background: var(--primary);
    border: none;
    margin-top: -6px;
}
.scale-slider::-webkit-slider-runnable-track {
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
  }
.scale-slider::-moz-range-track {
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
  }
.scale-slider::-moz-range-progress {
    height: 4px;
    border-radius: 999px;
    background: var(--primary);
  }
.scale-value {
  width: 2.5rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.75rem;
  line-height: 1rem;
    color: var(--color-text-dim);
}
.editor-info {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  font-size: 0.75rem;
  line-height: 1rem;
    color: var(--color-text-dim);
    background: rgba(0, 0, 0, 0.05);
}
.editor-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}
@media (max-width: 900px) {
    .image-editor-modal {
      max-width: 95vw;
      max-height: 92vh;
    }
  }
@media (max-width: 640px) {
    .image-editor-overlay {
      padding: 12px;
    }

    .image-editor-modal {
      border-radius: 18px;
      max-height: 94vh;
    }

    .editor-header {
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }

    .editor-canvas-container {
    padding: 0.75rem;
      min-height: 240px;
  }

    .editor-toolbar {
    gap: 0.75rem;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }

    .toolbar-group {
    gap: 0.5rem;
  }

    .scale-slider {
    width: 7rem;
  }


    .editor-info {
    padding-left: 1rem;
    padding-right: 1rem;
  }

    .editor-actions {
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }
  }
.editor-cancel-btn {
  border-radius: 0.75rem;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 200ms;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text-dim);
}
.editor-cancel-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-text);
  }
.editor-save-btn {
  border-radius: 0.75rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 200ms;
    background: var(--primary);
    color: var(--primary-text);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.editor-save-btn:hover {
    transform: translateY(-1px);
    background: var(--primary-hover);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
  }
/* Grid config modal */
.grid-config-overlay {
  position: fixed;
  inset: 0px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
    background: radial-gradient(900px 500px at 50% 30%, rgba(72, 219, 251, 0.08), rgba(0, 0, 0, 0.88));
    backdrop-filter: blur(8px);
}
.grid-config-modal {
  display: flex;
  width: 100%;
  max-width: 28rem;
  flex-direction: column;
  border-radius: 1rem;
    background: linear-gradient(180deg, rgba(26, 26, 36, 0.98), rgba(18, 18, 26, 0.99));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
    max-height: 90vh;
    overflow-y: auto;
}
.grid-config-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.grid-config-header h3 {
  flex: 1 1 0%;
  font-size: 1.125rem;
  line-height: 1.75rem;
  font-weight: 600;
}
.grid-config-close-btn {
  display: flex;
  height: 2rem;
  width: 2rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  font-size: 1.25rem;
  line-height: 1.75rem;
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 200ms;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text-dim);
    cursor: pointer;
    font-family: inherit;
}
.grid-config-close-btn:hover {
    background: rgba(255, 107, 107, 0.15);
    border-color: rgba(255, 107, 107, 0.3);
    color: #ff6b6b;
  }
.grid-config-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.grid-config-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.grid-config-label {
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
    color: var(--color-text-dim);
}
.grid-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.grid-preset-btn {
  border-radius: 0.5rem;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  padding-top: 0.375rem;
  padding-bottom: 0.375rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 200ms;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text-dim);
    cursor: pointer;
    font-family: inherit;
}
.grid-preset-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: white;
  }
.grid-preset-btn.active {
    background: linear-gradient(135deg, #ff6b6b, #feca57);
    border-color: transparent;
    color: white;
  }
.grid-preview-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 0.75rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.grid-preview-image {
  display: block;
  height: auto;
  width: 100%;
    max-height: 300px;
    -o-object-fit: contain;
       object-fit: contain;
    transition: opacity 0.2s ease;
}
.grid-preview-image.generating {
    opacity: 0.5;
  }
.grid-preview-placeholder {
  padding-top: 3rem;
  padding-bottom: 3rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
    color: var(--color-text-dim);
}
.grid-preview-spinner {
  position: absolute;
  height: 1.5rem;
  width: 1.5rem;
  border-radius: 9999px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--primary);
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
  }
/* Animation preview with crossfade support */
.animation-preview-stack {
  position: relative;
  width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.animation-preview-frame {
  display: block;
  height: auto;
  width: 100%;
    max-height: 300px;
    -o-object-fit: contain;
       object-fit: contain;
}
.animation-preview-frame-top {
  position: absolute;
  inset: 0px;
    -o-object-fit: contain;
       object-fit: contain;
    width: 100%;
    height: 100%;
    -o-object-position: center;
       object-position: center;
}
.grid-preview-info {
  text-align: center;
  font-size: 0.75rem;
  line-height: 1rem;
    color: var(--color-text-dim);
}
.grid-config-slider-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.grid-config-slider {
  height: 0.25rem;
  flex: 1 1 0%;
  cursor: pointer;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  border-radius: 9999px;
    background: rgba(255, 255, 255, 0.2);
}
.grid-config-slider::-webkit-slider-thumb {
  height: 1rem;
  width: 1rem;
  cursor: pointer;
  -webkit-appearance: none;
          appearance: none;
  border-radius: 9999px;
    background: var(--primary);
    border: none;
}
.grid-config-slider::-moz-range-thumb {
  height: 1rem;
  width: 1rem;
  cursor: pointer;
  border-radius: 9999px;
    background: var(--primary);
    border: none;
}
.grid-config-value {
  width: 3rem;
  text-align: right;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.875rem;
  line-height: 1.25rem;
    color: var(--color-text-dim);
}
.grid-config-colors {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.grid-color-btn {
  height: 2rem;
  width: 2rem;
  cursor: pointer;
  border-radius: 0.5rem;
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 200ms;
    border: 2px solid transparent;
}
.grid-color-btn:hover {
    transform: scale(1.1);
  }
.grid-color-btn.active {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.3);
  }
.grid-color-btn.transparent-bg {
    background: repeating-conic-gradient(#808080 0% 25%, #ffffff 0% 50%) 50% / 8px 8px;
  }
.grid-color-picker {
  height: 2rem;
  width: 2rem;
  cursor: pointer;
  border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0;
}
.grid-color-picker::-webkit-color-swatch-wrapper {
    padding: 2px;
  }
.grid-color-picker::-webkit-color-swatch {
    border-radius: 4px;
    border: none;
  }
.grid-config-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.grid-config-cancel-btn {
  border-radius: 0.75rem;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 200ms;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text-dim);
    cursor: pointer;
    font-family: inherit;
}
.grid-config-cancel-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
  }
.grid-config-save-btn {
  border-radius: 0.75rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 200ms;
    background: var(--primary);
    color: var(--primary-text);
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    font-family: inherit;
}
.grid-config-save-btn:hover {
    transform: translateY(-1px);
    background: var(--primary-hover);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
  }
/* Edit button on source thumbnails */
.source-thumb {
  position: relative;
}
.source-thumb .edit-btn {
  position: absolute;
  bottom: 0.25rem;
  right: 0.25rem;
  display: flex;
  height: 1.5rem;
  width: 1.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.375rem;
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 200ms;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    opacity: 1;
    transform: scale(0.95);
}
.source-thumb:hover .edit-btn {
    transform: scale(1.05) rotate(-4deg);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
  }
.source-thumb .edit-btn svg {
  height: 0.875rem;
  width: 0.875rem;
}
.source-thumb .edit-btn:hover {
    background: var(--primary);
  }
.source-thumb .edit-btn:focus-visible {
    outline: 2px solid rgba(72, 219, 251, 0.7);
    outline-offset: 2px;
  }
/* Results grid */
.results-grid {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
@media (max-width: 600px) {
    .results-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  }
@media (max-width: 400px) {
    .results-grid {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
  }
/* Format cards */
.format-card {
  position: relative;
  display: flex;
  min-height: 140px;
  cursor: pointer;
  flex-direction: column;
  gap: 0.75rem;
  overflow: hidden;
  border-radius: 1rem;
  border-width: 2px;
  border-color: rgba(255, 255, 255, 0.08);
  background-color: rgba(255, 255, 255, 0.03);
  padding: 1rem;
  text-align: left;
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 300ms;
    font-family: inherit;
    color: inherit;
}
.format-card:disabled {
  cursor: default;
}
.format-card.has-results:hover {
  --tw-translate-y: -3px;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
  border-color: rgb(255 255 255 / 0.2);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}
.format-card.has-results:active {
  --tw-translate-y: -1px;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 100ms;
}
.format-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.format-name {
  background-clip: text;
  font-size: 1.25rem;
  line-height: 1.75rem;
  font-weight: 700;
    background: linear-gradient(135deg, #ff6b6b, #feca57);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.spinner-small {
  height: 1rem;
  width: 1rem;
}
@keyframes spin {

  to {
    transform: rotate(360deg);
  }
}
.spinner-small {
  animation: spin 0.8s linear infinite;
  border-radius: 9999px;
  border-width: 2px;
  border-color: rgba(255, 255, 255, 0.08);
  --tw-border-opacity: 1;
  border-top-color: rgb(255 107 107 / var(--tw-border-opacity, 1));
}
/* Format preview */
.format-preview {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 48px;
  flex: 1 1 0%;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.375rem;
}
.preview-thumb {
  height: 2.75rem;
  width: 2.75rem;
  overflow: hidden;
  border-radius: 0.5rem;
  border-width: 1px;
  border-color: rgb(255 255 255 / 0.08);
    background: rgba(0, 0, 0, 0.3);
}
.preview-thumb img {
  height: 100%;
  width: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}
.preview-thumb.more {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgb(255 255 255 / 0.05);
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.4);
}
.preview-thumb.placeholder {
  border-width: 1px;
  border-style: dashed;
  border-color: rgb(255 255 255 / 0.1);
  background-color: rgb(255 255 255 / 0.03);
    animation: none;
}
@keyframes placeholderPulse {

  0%, 100% {
    opacity: 0.4;
  }

  50% {
    opacity: 0.8;
  }
}
.preview-thumb.placeholder.pulsing {
  animation: placeholderPulse 1.5s ease-in-out infinite;
}
.format-footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.file-count {
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: rgba(255, 255, 255, 0.4);
}
.total-size {
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.4);
}
.compressed-size {
  background-clip: text;
  font-weight: 600;
    background: linear-gradient(135deg, #ff6b6b, #feca57);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.download-hint {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  font-size: 0.75rem;
  line-height: 1rem;
  color: rgba(255, 255, 255, 0.4);
  opacity: 0.5;
  transition-property: opacity;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 200ms;
}
.format-card.has-results:hover .download-hint {
  opacity: 1;
}
/* Footer */
.footer-text {
  margin-top: 0.5rem;
  text-align: center;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: rgba(255, 255, 255, 0.4);
  opacity: 0.5;
}
/* Mobile results */
.mobile-results {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 1.5rem;
}
.mobile-format-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.mobile-format-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.mobile-format-header .format-name {
  font-size: 1.125rem;
  line-height: 1.75rem;
}
.mobile-size {
  margin-left: auto;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: rgba(255, 255, 255, 0.4);
}
.mobile-images-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
}
@media (max-width: 600px) {
    .mobile-images-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  }
@media (max-width: 400px) {
    .mobile-images-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  }
.mobile-result-img {
  aspect-ratio: 1 / 1;
  width: 100%;
  border-radius: 0.75rem;
  border-width: 1px;
  border-color: rgba(255, 255, 255, 0.08);
  background-color: rgba(255, 255, 255, 0.03);
  -o-object-fit: cover;
     object-fit: cover;
}
.mobile-download-btn {
  margin-top: 0.5rem;
  width: 100%;
  border-radius: 1rem;
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 200ms;
    background: var(--primary);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--primary-text);
}
.mobile-download-btn:hover {
    transform: translateY(-1px);
    background: var(--primary-hover);
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.3);
  }
.mobile-placeholder-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}
.mobile-placeholder {
  aspect-ratio: 1 / 1;
  width: 100%;
  border-radius: 0.75rem;
  border-width: 1px;
  border-style: dashed;
  border-color: rgb(255 255 255 / 0.1);
  background-color: rgb(255 255 255 / 0.03);
}
@keyframes placeholderPulse {

  0%, 100% {
    opacity: 0.4;
  }

  50% {
    opacity: 0.8;
  }
}
.mobile-placeholder.pulsing {
  animation: placeholderPulse 1.5s ease-in-out infinite;
}
.mobile-hint {
  margin-top: 0.5rem;
  text-align: center;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: rgba(255, 255, 255, 0.4);
  opacity: 0.7;
}
/* Processing state */
@keyframes processingPulse {

  0%, 100% {
    opacity: 1;
  }

  50% {
    opacity: 0.7;
  }
}
.format-card.processing {
  animation: processingPulse 1.5s ease-in-out infinite;
}
/* Animation result section - matches regular results-grid */
.animation-result-section {
  width: 100%;
}
.animation-grid {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
@media (max-width: 600px) {
    .animation-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  }
@media (max-width: 400px) {
    .animation-grid {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
  }
/* Animation preview - matches format-preview */
.animation-preview {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 48px;
  flex: 1 1 0%;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.375rem;
}
.animation-preview img,
  .animation-preview video {
  height: 2.75rem;
  width: 2.75rem;
  overflow: hidden;
  border-radius: 0.5rem;
  border-width: 1px;
  border-color: rgb(255 255 255 / 0.08);
  -o-object-fit: cover;
     object-fit: cover;
    background: rgba(0, 0, 0, 0.3);
}
.animation-placeholder {
  height: 2.75rem;
  width: 2.75rem;
  border-radius: 0.5rem;
  border-width: 1px;
  border-style: dashed;
  border-color: rgb(255 255 255 / 0.1);
  background-color: rgb(255 255 255 / 0.03);
}
@keyframes placeholderPulse {

  0%, 100% {
    opacity: 0.4;
  }

  50% {
    opacity: 0.8;
  }
}
.animation-placeholder.pulsing {
  animation: placeholderPulse 1.5s ease-in-out infinite;
}
/* Theme toggle button */
.theme-toggle {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 50;
  display: flex;
  height: 2.5rem;
  width: 2.5rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border-width: 1px;
  border-color: rgba(255, 255, 255, 0.08);
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 300ms;
    background: var(--theme-toggle-bg, rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(10px);
}
.theme-toggle:hover {
  border-color: rgb(255 255 255 / 0.3);
    background: var(--theme-toggle-hover-bg, rgba(255, 255, 255, 0.1));
}
.theme-toggle svg {
  height: 1.25rem;
  width: 1.25rem;
    color: var(--theme-toggle-icon, rgba(255, 255, 255, 0.7));
}
.theme-toggle:hover svg {
    color: var(--theme-toggle-icon-hover, #fff);
  }
/* Toast notification */
.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  z-index: 50;
  --tw-translate-x: -50%;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
  border-radius: 0.75rem;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
    background: linear-gradient(135deg, #ff6b6b, #feca57);
    color: white;
    animation: toastIn 0.3s ease-out, toastOut 0.3s ease-in 1.7s forwards;
}
@keyframes toastIn {
    from {
      opacity: 0;
      transform: translateX(-50%) translateY(20px);
    }

    to {
      opacity: 1;
      transform: translateX(-50%) translateY(0);
    }
  }
@keyframes toastOut {
    from {
      opacity: 1;
      transform: translateX(-50%) translateY(0);
    }

    to {
      opacity: 0;
      transform: translateX(-50%) translateY(20px);
    }
  }
/* URL import section */
.block {
  display: block;
}
.grid {
  display: grid;
}
.hidden {
  display: none;
}
.transform {
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.resize {
  resize: both;
}
.filter {
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}
.transition {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

/* CONVERTCAMEL - Custom Styles with Tailwind */

/* Mobile tweaks */
@media (max-width: 500px) {
  #app {
    padding: 1.25rem;
  }

  main {
    gap: 1.25rem;
  }

  .title {
    font-size: 1.8rem;
  }

  .drop-zone {
    height: 160px;
    min-height: 160px;
    padding: 1.25rem;
  }

  .drop-icon {
    height: 2.5rem;
    width: 2.5rem;
  }

  .drop-icon svg {
    height: 18px;
    width: 18px;
  }

  .drop-text {
    font-size: 1.25rem;
    line-height: 1.75rem;
  }

  .format-card {
    min-height: 120px;
    padding: 0.875rem;
  }

  .source-thumb {
    height: 3rem;
    width: 3rem;
  }

  .preview-thumb {
    height: 2.5rem;
    width: 2.5rem;
  }
}

/* Light mode styles */
body.light {
  --theme-toggle-bg: rgba(0, 0, 0, 0.05);
  --theme-toggle-hover-bg: rgba(0, 0, 0, 0.1);
  --theme-toggle-icon: rgba(0, 0, 0, 0.6);
  --theme-toggle-icon-hover: #000;
  --url-input-bg: rgba(0, 0, 0, 0.05);
  --url-input-text: #1a1a1a;
  --url-input-placeholder: rgba(0, 0, 0, 0.4);
  --tw-bg-opacity: 1;
  background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
  --tw-text-opacity: 1;
  color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}

body.light::before {
  background: radial-gradient(circle at 20% 20%,
      rgba(255, 107, 107, 0.08) 0%,
      transparent 50%),
    radial-gradient(circle at 80% 80%,
      rgba(72, 219, 251, 0.08) 0%,
      transparent 50%),
    radial-gradient(circle at 40% 80%,
      rgba(255, 159, 243, 0.05) 0%,
      transparent 40%);
}

/* Light mode component overrides */
body.light .drop-zone {
  --tw-border-opacity: 1;
  border-color: rgb(209 213 219 / var(--tw-border-opacity, 1));
  background-color: rgb(249 250 251 / 0.8);
}

body.light .drop-zone:hover {
  --tw-border-opacity: 1;
  border-color: rgb(156 163 175 / var(--tw-border-opacity, 1));
  background-color: rgb(243 244 246 / 0.8);
}

body.light .drop-text {
  --tw-text-opacity: 1;
  color: rgb(31 41 55 / var(--tw-text-opacity, 1));
}

body.light .drop-hint {
  --tw-text-opacity: 1;
  color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}

body.light .source-count {
  --tw-text-opacity: 1;
  color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}

body.light .source-thumb {
  --tw-border-opacity: 1;
  border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
  background: rgba(0, 0, 0, 0.05);
}

body.light .source-thumb.more {
  --tw-bg-opacity: 1;
  background-color: rgb(243 244 246 / var(--tw-bg-opacity, 1));
  --tw-text-opacity: 1;
  color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}

body.light .clear-btn {
  --tw-border-opacity: 1;
  border-color: rgb(209 213 219 / var(--tw-border-opacity, 1));
  --tw-text-opacity: 1;
  color: rgb(107 114 128 / var(--tw-text-opacity, 1));
  background: rgba(255, 255, 255, 0.9);
}

body.light .clear-btn:hover {
  border-color: rgb(255 107 107 / 0.3);
  --tw-text-opacity: 1;
  color: rgb(255 107 107 / var(--tw-text-opacity, 1));
  background: rgba(255, 107, 107, 0.1);
}

body.light .format-card {
  --tw-border-opacity: 1;
  border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
  background-color: rgb(255 255 255 / 0.8);
}

body.light .format-card.has-results:hover {
  --tw-border-opacity: 1;
  border-color: rgb(209 213 219 / var(--tw-border-opacity, 1));
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

body.light .file-count,
body.light .total-size {
  --tw-text-opacity: 1;
  color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}

body.light .download-hint {
  --tw-text-opacity: 1;
  color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}

body.light .preview-thumb {
  --tw-border-opacity: 1;
  border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
  background: rgba(0, 0, 0, 0.05);
}

body.light .preview-thumb.more {
  --tw-bg-opacity: 1;
  background-color: rgb(243 244 246 / var(--tw-bg-opacity, 1));
  --tw-text-opacity: 1;
  color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}

body.light .preview-thumb.placeholder {
  --tw-border-opacity: 1;
  border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
  --tw-bg-opacity: 1;
  background-color: rgb(243 244 246 / var(--tw-bg-opacity, 1));
}

body.light .spinner-small {
  border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
  --tw-border-opacity: 1;
  border-top-color: rgb(255 107 107 / var(--tw-border-opacity, 1));
}

body.light .checkmark {
  --tw-border-opacity: 1;
  border-color: rgb(209 213 219 / var(--tw-border-opacity, 1));
  --tw-bg-opacity: 1;
  background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
}

body.light .compress-toggle:hover .checkmark {
  --tw-border-opacity: 1;
  border-color: rgb(156 163 175 / var(--tw-border-opacity, 1));
}

body.light .compress-label {
  --tw-text-opacity: 1;
  color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}

body.light .compress-toggle:hover .compress-label {
  --tw-text-opacity: 1;
  color: rgb(31 41 55 / var(--tw-text-opacity, 1));
}

body.light .footer-text {
  --tw-text-opacity: 1;
  color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}

body.light .mobile-placeholder {
  --tw-border-opacity: 1;
  border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
  --tw-bg-opacity: 1;
  background-color: rgb(243 244 246 / var(--tw-bg-opacity, 1));
}

body.light .mobile-hint {
  --tw-text-opacity: 1;
  color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}

body.light .mobile-size {
  --tw-text-opacity: 1;
  color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}

body.light .mobile-result-img {
  --tw-border-opacity: 1;
  border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
  --tw-bg-opacity: 1;
  background-color: rgb(249 250 251 / var(--tw-bg-opacity, 1));
}

body.light .mobile-download-btn {
  background: var(--primary);
  border-color: rgba(0, 0, 0, 0.08);
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}

body.light .url-import-link {
  --tw-text-opacity: 1;
  color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}

body.light .url-import-link:hover {
  --tw-text-opacity: 1;
  color: rgb(31 41 55 / var(--tw-text-opacity, 1));
}

body.light .url-cancel-btn {
  --tw-border-opacity: 1;
  border-color: rgb(209 213 219 / var(--tw-border-opacity, 1));
  --tw-text-opacity: 1;
  color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}

body.light .url-cancel-btn:hover {
  --tw-border-opacity: 1;
  border-color: rgb(156 163 175 / var(--tw-border-opacity, 1));
  --tw-text-opacity: 1;
  color: rgb(31 41 55 / var(--tw-text-opacity, 1));
}

body.light .delay-label {
  --tw-text-opacity: 1;
  color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}

body.light .delay-input {
  --tw-border-opacity: 1;
  border-color: rgb(209 213 219 / var(--tw-border-opacity, 1));
  --tw-bg-opacity: 1;
  background-color: rgb(249 250 251 / var(--tw-bg-opacity, 1));
  --tw-text-opacity: 1;
  color: rgb(31 41 55 / var(--tw-text-opacity, 1));
}

body.light .delay-unit {
  --tw-text-opacity: 1;
  color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}

body.light .animation-preview img,
body.light .animation-preview video {
  --tw-border-opacity: 1;
  border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
}

body.light .animation-placeholder {
  --tw-border-opacity: 1;
  border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
  background-color: rgb(243 244 246 / 0.6);
}

body.light .transform-toggle-btn {
  background: var(--primary);
  border-color: rgba(0, 0, 0, 0.08);
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}

body.light .transform-toggle-btn:hover {
  background: var(--primary-hover);
}

body.light .transform-panel {
  background: linear-gradient(135deg, rgba(72, 219, 251, 0.03), rgba(255, 107, 107, 0.03));
  border: 1px solid rgba(72, 219, 251, 0.15);
}

body.light .transform-section {
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

body.light .transform-section-label {
  --tw-text-opacity: 1;
  color: rgb(75 85 99 / var(--tw-text-opacity, 1));
}

body.light .resize-mode-select,
body.light .resize-input,
body.light .crop-input {
  --tw-border-opacity: 1;
  border-color: rgb(209 213 219 / var(--tw-border-opacity, 1));
  --tw-bg-opacity: 1;
  background-color: rgb(249 250 251 / var(--tw-bg-opacity, 1));
  --tw-text-opacity: 1;
  color: rgb(31 41 55 / var(--tw-text-opacity, 1));
}

body.light .resize-dimensions span,
body.light .resize-percentage span,
body.light .crop-row span,
body.light .crop-row label {
  --tw-text-opacity: 1;
  color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}

body.light .rotate-btn,
body.light .flip-btn {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.1);
  --tw-text-opacity: 1;
  color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}

body.light .rotate-btn:hover,
body.light .flip-btn:hover {
  background: rgba(72, 219, 251, 0.1);
  border-color: rgba(72, 219, 251, 0.3);
  --tw-text-opacity: 1;
  color: rgb(31 41 55 / var(--tw-text-opacity, 1));
}

body.light .rotate-btn.active,
body.light .flip-btn.active {
  background: rgba(37, 99, 235, 0.2);
  border-color: rgba(37, 99, 235, 0.45);
  --tw-text-opacity: 1;
  color: rgb(31 41 55 / var(--tw-text-opacity, 1));
}

body.light .flip-divider {
  background: rgba(0, 0, 0, 0.1);
}

body.light .reset-transforms-btn {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.1);
  --tw-text-opacity: 1;
  color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}

body.light .reset-transforms-btn:hover {
  background: rgba(255, 107, 107, 0.1);
  border-color: rgba(255, 107, 107, 0.2);
  --tw-text-opacity: 1;
  color: rgb(31 41 55 / var(--tw-text-opacity, 1));
}

/* Image Editor light mode */
body.light .image-editor-overlay {
  background: radial-gradient(900px 500px at 50% 10%, rgba(72, 219, 251, 0.08), rgba(255, 255, 255, 0.85));
}

body.light .image-editor-modal {
  background: linear-gradient(180deg, #ffffff, #f6f7f9);
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

body.light .editor-header {
  border-color: rgba(0, 0, 0, 0.08);
  background: rgba(0, 0, 0, 0.02);
}

body.light .editor-header h3 {
  --tw-text-opacity: 1;
  color: rgb(31 41 55 / var(--tw-text-opacity, 1));
}

body.light .editor-filename {
  --tw-text-opacity: 1;
  color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}

body.light .editor-close-btn {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.1);
  --tw-text-opacity: 1;
  color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}

body.light .editor-close-btn:hover {
  background: rgba(255, 107, 107, 0.1);
  --tw-text-opacity: 1;
  color: rgb(31 41 55 / var(--tw-text-opacity, 1));
}

body.light .editor-canvas-container {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px),
    rgba(0, 0, 0, 0.02);
  background-size: 24px 24px;
}

body.light .editor-canvas-container .ReactCrop__crop-selection {
  border-color: rgba(0, 0, 0, 0.75);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.8) inset, 0 0 12px rgba(72, 219, 251, 0.2);
}

body.light .editor-canvas-container .ReactCrop__crop-mask {
  background: rgba(255, 255, 255, 0.45);
}

body.light .editor-canvas-container .ReactCrop__drag-handle {
  border-color: rgba(255, 255, 255, 0.9);
}

body.light .editor-toolbar {
  border-color: rgba(0, 0, 0, 0.08);
  background: rgba(0, 0, 0, 0.02);
}

body.light .toolbar-label {
  --tw-text-opacity: 1;
  color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}

body.light .toolbar-btn {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.1);
  --tw-text-opacity: 1;
  color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}

body.light .toolbar-btn:hover {
  background: rgba(72, 219, 251, 0.1);
  border-color: rgba(72, 219, 251, 0.3);
  --tw-text-opacity: 1;
  color: rgb(31 41 55 / var(--tw-text-opacity, 1));
}

body.light .toolbar-btn.active {
  background: rgba(37, 99, 235, 0.2);
  border-color: rgba(37, 99, 235, 0.45);
  --tw-text-opacity: 1;
  color: rgb(31 41 55 / var(--tw-text-opacity, 1));
}

body.light .scale-slider {
  background: transparent;
}

body.light .scale-slider::-webkit-slider-runnable-track {
  background: rgba(0, 0, 0, 0.2);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}

body.light .scale-slider::-moz-range-track {
  background: rgba(0, 0, 0, 0.2);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}

body.light .scale-slider::-moz-range-progress {
  background: var(--primary);
}


body.light .scale-value {
  --tw-text-opacity: 1;
  color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}

body.light .editor-info {
  --tw-text-opacity: 1;
  color: rgb(107 114 128 / var(--tw-text-opacity, 1));
  background: rgba(0, 0, 0, 0.02);
}

body.light .editor-cancel-btn {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.1);
  --tw-text-opacity: 1;
  color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}

body.light .editor-cancel-btn:hover {
  background: rgba(0, 0, 0, 0.05);
  --tw-text-opacity: 1;
  color: rgb(31 41 55 / var(--tw-text-opacity, 1));
}

/* Light mode grid config modal */
body.light .grid-config-overlay {
  background: radial-gradient(900px 500px at 50% 30%, rgba(72, 219, 251, 0.06), rgba(255, 255, 255, 0.92));
}

body.light .grid-config-modal {
  background: linear-gradient(180deg, #ffffff, #f6f7f9);
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

body.light .grid-config-header {
  border-color: rgba(0, 0, 0, 0.08);
}

body.light .grid-config-header h3 {
  --tw-text-opacity: 1;
  color: rgb(31 41 55 / var(--tw-text-opacity, 1));
}

body.light .grid-config-close-btn {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.1);
  --tw-text-opacity: 1;
  color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}

body.light .grid-config-close-btn:hover {
  background: rgba(255, 107, 107, 0.1);
  border-color: rgba(255, 107, 107, 0.3);
}

body.light .grid-config-label {
  --tw-text-opacity: 1;
  color: rgb(75 85 99 / var(--tw-text-opacity, 1));
}

body.light .grid-preset-btn {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.1);
  --tw-text-opacity: 1;
  color: rgb(75 85 99 / var(--tw-text-opacity, 1));
}

body.light .grid-preset-btn:hover {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.15);
  --tw-text-opacity: 1;
  color: rgb(31 41 55 / var(--tw-text-opacity, 1));
}

body.light .grid-preview-container {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.08);
}

body.light .grid-preview-placeholder {
  --tw-text-opacity: 1;
  color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}

body.light .grid-preview-spinner {
  border-color: rgba(0, 0, 0, 0.1);
  border-top-color: var(--primary);
}

body.light .grid-preview-info {
  --tw-text-opacity: 1;
  color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}

body.light .grid-config-slider {
  background: rgba(0, 0, 0, 0.1);
}

body.light .grid-config-value {
  --tw-text-opacity: 1;
  color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}

body.light .grid-color-picker {
  border-color: rgba(0, 0, 0, 0.15);
}

body.light .grid-config-actions {
  border-color: rgba(0, 0, 0, 0.08);
}

body.light .grid-config-cancel-btn {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.1);
  --tw-text-opacity: 1;
  color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}

body.light .grid-config-cancel-btn:hover {
  background: rgba(0, 0, 0, 0.05);
  --tw-text-opacity: 1;
  color: rgb(31 41 55 / var(--tw-text-opacity, 1));
}

/* Light mode stitch type select */
body.light .stitch-type-select {
  background-color: rgba(139, 92, 246, 0.1);
  border-color: rgba(139, 92, 246, 0.25);
  background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2710%27 height=%2710%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27rgba%280,0,0,0.5%29%27 stroke-width=%272.5%27%3E%3Cpath d=%27M6 9l6 6 6-6%27/%3E%3C/svg%3E");
}

body.light .stitch-type-select:hover {
  background-color: rgba(139, 92, 246, 0.18);
  border-color: rgba(139, 92, 246, 0.4);
}

body.light .stitch-type-select:focus {
  box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.15);
}

body.light .stitch-type-select option {
  background: white;
  color: #1a1a1a;
}

/* Light mode stitch config button */
body.light .stitch-config-btn svg {
  --tw-text-opacity: 1;
  color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}

body.light .stitch-config-btn:hover:not(:disabled) svg {
  --tw-text-opacity: 1;
  color: rgb(55 65 81 / var(--tw-text-opacity, 1));
}

/* Light mode remove background help button */
body.light .remove-bg-help-btn svg {
  --tw-text-opacity: 1;
  color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}

body.light .remove-bg-help-btn:hover svg {
  --tw-text-opacity: 1;
  color: rgb(55 65 81 / var(--tw-text-opacity, 1));
}

body.light .remove-bg-help-text {
  --tw-text-opacity: 1;
  color: rgb(75 85 99 / var(--tw-text-opacity, 1));
}

body.light .remove-bg-help-text strong {
  --tw-text-opacity: 1;
  color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}

body.light .delay-input-modal {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.15);
}

body.light .delay-input-modal:focus {
  border-color: var(--primary);
}

body.light .animation-play-btn {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.15);
}

body.light .animation-play-btn:hover {
  background: rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.2);
}

body.light .animation-crossfade-toggle .checkmark {
  border-color: rgba(0, 0, 0, 0.2);
  background: rgba(0, 0, 0, 0.03);
}

body.light .crossfade-description {
  --tw-text-opacity: 1;
  color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}

/* Light mode drag states */
body.light .source-thumb.drag-over {
  border-color: #ff6b6b;
}

body.light .source-thumb .edit-btn {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 0, 0, 0.1);
  --tw-text-opacity: 1;
  color: rgb(75 85 99 / var(--tw-text-opacity, 1));
}
@-webkit-keyframes marching-ants{0%{background-position:0 0,0 100%,0 0,100% 0}to{background-position:20px 0,-20px 100%,0 -20px,100% 20px}}@keyframes marching-ants{0%{background-position:0 0,0 100%,0 0,100% 0}to{background-position:20px 0,-20px 100%,0 -20px,100% 20px}}:root{--rc-drag-handle-size: 12px;--rc-drag-handle-mobile-size: 24px;--rc-drag-handle-bg-colour: rgba(0, 0, 0, .2);--rc-drag-bar-size: 6px;--rc-border-color: rgba(255, 255, 255, .7);--rc-focus-color: #0088ff}.ReactCrop{position:relative;display:inline-block;cursor:crosshair;max-width:100%}.ReactCrop *,.ReactCrop *:before,.ReactCrop *:after{-webkit-box-sizing:border-box;box-sizing:border-box}.ReactCrop--disabled,.ReactCrop--locked{cursor:inherit}.ReactCrop__child-wrapper{overflow:hidden;max-height:inherit}.ReactCrop__child-wrapper>img,.ReactCrop__child-wrapper>video{display:block;max-width:100%;max-height:inherit}.ReactCrop:not(.ReactCrop--disabled) .ReactCrop__child-wrapper>img,.ReactCrop:not(.ReactCrop--disabled) .ReactCrop__child-wrapper>video{-ms-touch-action:none;touch-action:none}.ReactCrop:not(.ReactCrop--disabled) .ReactCrop__crop-selection{-ms-touch-action:none;touch-action:none}.ReactCrop__crop-mask{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none;width:calc(100% + .5px);height:calc(100% + .5px)}.ReactCrop__crop-selection{position:absolute;top:0;left:0;-webkit-transform:translateZ(0);transform:translateZ(0);cursor:move}.ReactCrop--disabled .ReactCrop__crop-selection{cursor:inherit}.ReactCrop--circular-crop .ReactCrop__crop-selection{border-radius:50%}.ReactCrop--circular-crop .ReactCrop__crop-selection:after{pointer-events:none;content:"";position:absolute;top:-1px;right:-1px;bottom:-1px;left:-1px;border:1px solid var(--rc-border-color);opacity:.3}.ReactCrop--no-animate .ReactCrop__crop-selection{outline:1px dashed white}.ReactCrop__crop-selection:not(.ReactCrop--no-animate .ReactCrop__crop-selection){-webkit-animation:marching-ants 1s;animation:marching-ants 1s;background-image:-webkit-gradient(linear,left top, right top,color-stop(50%, #fff),color-stop(50%, #444)),-webkit-gradient(linear,left top, right top,color-stop(50%, #fff),color-stop(50%, #444)),-webkit-gradient(linear,left top, left bottom,color-stop(50%, #fff),color-stop(50%, #444)),-webkit-gradient(linear,left top, left bottom,color-stop(50%, #fff),color-stop(50%, #444));background-image:linear-gradient(to right,#fff 50%,#444 50%),linear-gradient(to right,#fff 50%,#444 50%),linear-gradient(to bottom,#fff 50%,#444 50%),linear-gradient(to bottom,#fff 50%,#444 50%);background-size:10px 1px,10px 1px,1px 10px,1px 10px;background-position:0 0,0 100%,0 0,100% 0;background-repeat:repeat-x,repeat-x,repeat-y,repeat-y;color:#fff;-webkit-animation-play-state:running;animation-play-state:running;-webkit-animation-timing-function:linear;animation-timing-function:linear;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite}.ReactCrop__crop-selection:focus{outline:2px solid var(--rc-focus-color);outline-offset:-1px}.ReactCrop--invisible-crop .ReactCrop__crop-mask,.ReactCrop--invisible-crop .ReactCrop__crop-selection{display:none}.ReactCrop__rule-of-thirds-vt:before,.ReactCrop__rule-of-thirds-vt:after,.ReactCrop__rule-of-thirds-hz:before,.ReactCrop__rule-of-thirds-hz:after{content:"";display:block;position:absolute;background-color:#fff6}.ReactCrop__rule-of-thirds-vt:before,.ReactCrop__rule-of-thirds-vt:after{width:1px;height:100%}.ReactCrop__rule-of-thirds-vt:before{left:33.3333333333%}.ReactCrop__rule-of-thirds-vt:after{left:66.6666666667%}.ReactCrop__rule-of-thirds-hz:before,.ReactCrop__rule-of-thirds-hz:after{width:100%;height:1px}.ReactCrop__rule-of-thirds-hz:before{top:33.3333333333%}.ReactCrop__rule-of-thirds-hz:after{top:66.6666666667%}.ReactCrop__drag-handle{position:absolute;width:var(--rc-drag-handle-size);height:var(--rc-drag-handle-size);background-color:var(--rc-drag-handle-bg-colour);border:1px solid var(--rc-border-color)}.ReactCrop__drag-handle:focus{background:var(--rc-focus-color)}.ReactCrop .ord-nw{top:0;left:0;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);cursor:nw-resize}.ReactCrop .ord-n{top:0;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);cursor:n-resize}.ReactCrop .ord-ne{top:0;right:0;-webkit-transform:translate(50%,-50%);transform:translate(50%,-50%);cursor:ne-resize}.ReactCrop .ord-e{top:50%;right:0;-webkit-transform:translate(50%,-50%);transform:translate(50%,-50%);cursor:e-resize}.ReactCrop .ord-se{bottom:0;right:0;-webkit-transform:translate(50%,50%);transform:translate(50%,50%);cursor:se-resize}.ReactCrop .ord-s{bottom:0;left:50%;-webkit-transform:translate(-50%,50%);transform:translate(-50%,50%);cursor:s-resize}.ReactCrop .ord-sw{bottom:0;left:0;-webkit-transform:translate(-50%,50%);transform:translate(-50%,50%);cursor:sw-resize}.ReactCrop .ord-w{top:50%;left:0;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);cursor:w-resize}.ReactCrop__disabled .ReactCrop__drag-handle{cursor:inherit}.ReactCrop__drag-bar{position:absolute}.ReactCrop__drag-bar.ord-n{top:0;left:0;width:100%;height:var(--rc-drag-bar-size);-webkit-transform:translateY(-50%);transform:translateY(-50%)}.ReactCrop__drag-bar.ord-e{right:0;top:0;width:var(--rc-drag-bar-size);height:100%;-webkit-transform:translate(50%);transform:translate(50%)}.ReactCrop__drag-bar.ord-s{bottom:0;left:0;width:100%;height:var(--rc-drag-bar-size);-webkit-transform:translateY(50%);transform:translateY(50%)}.ReactCrop__drag-bar.ord-w{top:0;left:0;width:var(--rc-drag-bar-size);height:100%;-webkit-transform:translate(-50%);transform:translate(-50%)}.ReactCrop--new-crop .ReactCrop__drag-bar,.ReactCrop--new-crop .ReactCrop__drag-handle,.ReactCrop--fixed-aspect .ReactCrop__drag-bar,.ReactCrop--fixed-aspect .ReactCrop__drag-handle.ord-n,.ReactCrop--fixed-aspect .ReactCrop__drag-handle.ord-e,.ReactCrop--fixed-aspect .ReactCrop__drag-handle.ord-s,.ReactCrop--fixed-aspect .ReactCrop__drag-handle.ord-w{display:none}@media (pointer: coarse){.ReactCrop .ord-n,.ReactCrop .ord-e,.ReactCrop .ord-s,.ReactCrop .ord-w{display:none}.ReactCrop__drag-handle{width:var(--rc-drag-handle-mobile-size);height:var(--rc-drag-handle-mobile-size)}}


/*# sourceMappingURL=main.32ad898e75e2c226525d.css.map*/