.synced-lighten {
  color-scheme: light;
  --paper: #f8f6ef;
  --ink: #20221f;
  --muted: #595b52;
  --hairline: #dedbd0;
  --card-paper: #fffcf5;
  --step-background: #f9e6bf;
  --step-ink: var(--ink);
  --focus-ring: #b96213;
  --accent: #f8ca73;
  --accent-hover: #ffda97;
  --night: #212622;
  --editor-panel: #282e28;
  --sans: system-ui, sans-serif;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
}
.dark .synced-lighten {
  color-scheme: dark;
  --paper: #151a16;
  --ink: #f6f3e9;
  --muted: #c8cbbf;
  --hairline: #3a4239;
  --card-paper: #222922;
  --step-background: #493b26;
  --step-ink: #ffe0a6;
  --focus-ring: var(--accent);
  --night: #1b211d;
  --editor-panel: #242b25;
}
.synced-lighten *,
.synced-lighten *::before,
.synced-lighten *::after {
  box-sizing: border-box;
}
.synced-lighten [hidden] {
  display: none !important;
}
.synced-lighten button,
.synced-lighten select,
.synced-lighten input {
  font: inherit;
}
.synced-lighten button,
.synced-lighten select,
.synced-lighten input[type='range'] {
  cursor: pointer;
}
.synced-lighten button:disabled,
.synced-lighten input:disabled {
  cursor: default;
  opacity: 0.55;
}
.synced-lighten :focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 4px;
}
.synced-lighten #editor {
  scroll-margin-top: 16px;
}
.synced-lighten [data-gf-tool='lighten-image'] .workbench {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  grid-template-rows: 1fr auto;
  gap: 0;
  border: 1px solid #363d36;
  border-radius: 18px;
  background: var(--night);
  color: #f4f3eb;
  overflow: clip;
  box-shadow: 0 16px 38px #22241b16;
}
.synced-lighten .workbench :focus-visible {
  outline-color: var(--accent);
}
.synced-lighten .workbench .media-column {
  grid-row: 1 / span 2;
  min-width: 0;
}
.synced-lighten .workbench .media-bar,
.synced-lighten .workbench .media-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 16px;
}
.synced-lighten .workbench .media-bar {
  min-height: 58px;
}
.synced-lighten .workbench .file-info {
  min-width: 0;
  display: grid;
  gap: 1px;
}
.synced-lighten .workbench .file-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.84rem;
  font-weight: 680;
}
.synced-lighten .workbench .file-size {
  font-size: 0.69rem;
  color: #b7bcb1;
  font-variant-numeric: tabular-nums;
}
.synced-lighten .workbench .choose-actions {
  display: grid;
  justify-items: end;
  gap: 5px;
  max-inline-size: 65%;
  flex-shrink: 0;
  text-align: end;
}
.synced-lighten .workbench .choose-button,
.synced-lighten .workbench .download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  font-size: 0.85rem;
  font-weight: 775;
  border-radius: 8px;
  line-height: 1.15;
}
.synced-lighten .workbench .choose-button {
  background: #f7f4e9;
  color: #292a22;
  padding: 10px 13px;
  flex-shrink: 0;
  min-height: 40px;
}
.synced-lighten .workbench .choose-button:hover {
  background: var(--accent-hover);
}
.synced-lighten .workbench:not([data-image-source='file']) .choose-button {
  background: var(--accent);
}
.synced-lighten
  .workbench:not([data-image-source='file'])
  .choose-button:hover {
  background: var(--accent-hover);
}
.synced-lighten .workbench .choose-button [aria-hidden],
.synced-lighten .workbench .download-button [aria-hidden] {
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1;
}
.synced-lighten .workbench .preview {
  position: relative;
  aspect-ratio: 1.9;
  min-height: 250px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background-color: #171d1b;
  background-image: conic-gradient(
    #202724 25%,
    transparent 0 50%,
    #202724 0 75%,
    transparent 0
  );
  background-size: 20px 20px;
}
.synced-lighten .workbench .preview-empty {
  display: grid;
  gap: 5px;
  place-items: center;
  color: #ece7db;
  font-weight: 700;
}
.synced-lighten .workbench .comparison {
  --split: 50%;
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.synced-lighten .workbench canvas {
  display: block;
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  object-fit: contain;
}
.synced-lighten .workbench canvas[data-before] {
  z-index: 1;
  clip-path: inset(0 calc(100% - var(--split)) 0 0);
}
.synced-lighten .workbench canvas[data-after] {
  clip-path: inset(0 0 0 var(--split));
}
.synced-lighten
  .workbench
  .comparison[data-original-only]
  canvas[data-before] {
  clip-path: none;
}
.synced-lighten
  .workbench
  .comparison[data-original-only]
  :is(canvas[data-after], .tag-after, .handle-line, .compare-control) {
  display: none;
}
.synced-lighten .workbench .image-tag {
  position: absolute;
  top: 13px;
  z-index: 2;
  color: white;
  background: #1c211fcc;
  border: 1px solid #ffffff26;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 650;
  padding: 6px 9px;
  pointer-events: none;
}
.synced-lighten .workbench .tag-before {
  left: 13px;
}
.synced-lighten .workbench .tag-after {
  right: 13px;
  background: #fae4b9;
  color: #2b2519;
  border-color: transparent;
}
.synced-lighten .workbench .handle-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: clamp(2px, var(--split), calc(100% - 2px));
  background: #fffae8;
  width: 2px;
  transform: translateX(-50%);
  z-index: 2;
  pointer-events: none;
  box-shadow: 0 0 2px #0007;
}
.synced-lighten .workbench .handle-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  background: #fff8e7;
  color: #232723;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  box-shadow: 0 3px 12px #0006;
  font:
    700 24px/1 system-ui,
    sans-serif;
  white-space: nowrap;
}
.synced-lighten .workbench .compare-control {
  position: absolute;
  z-index: 3;
  left: -22px;
  top: 50%;
  transform: translateY(-50%);
  width: calc(100% + 44px);
  height: 65px;
  margin: 0;
  appearance: none;
  background: transparent;
  opacity: 0;
  cursor: ew-resize;
}
.synced-lighten .workbench .compare-control::-webkit-slider-thumb {
  appearance: none;
  width: 44px;
  height: 44px;
}
.synced-lighten .workbench .compare-control::-moz-range-thumb {
  width: 44px;
  height: 44px;
}
.synced-lighten .workbench .comparison:focus-within .handle-knob {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
.synced-lighten .workbench .drop-note {
  display: none;
  position: absolute;
  z-index: 4;
  inset: 8px;
  place-items: center;
  border: 2px dashed var(--accent);
  border-radius: 8px;
  background: #141b17dd;
  color: #fff1d8;
  pointer-events: none;
  font-weight: 700;
}
.synced-lighten .workbench .preview[data-dragging] .drop-note {
  display: grid;
}
.synced-lighten .workbench .media-footer {
  min-height: 50px;
}
.synced-lighten .workbench .media-footer p,
.synced-lighten .workbench .choose-note,
.synced-lighten .workbench .upload-feedback,
.synced-lighten .workbench .output-size,
.synced-lighten .workbench .export-feedback {
  font-size: 0.75rem;
  color: #c8cabe;
  margin: 0;
  line-height: 1.4;
}
.synced-lighten .workbench .choose-note {
  font-size: 0.72rem;
}
.synced-lighten .workbench .upload-feedback:not(:empty) {
  padding: 0 16px 10px;
  text-align: right;
}
.synced-lighten .workbench [data-error] {
  color: #ffd18b;
}
.synced-lighten .workbench .preview-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0 14px;
}
.synced-lighten .workbench .text-button {
  padding: 5px 0;
  border: 0;
  color: #e5d6b5;
  background: transparent;
  font-size: 0.75rem;
  font-weight: 670;
  white-space: nowrap;
}
.synced-lighten .workbench .text-button:hover:enabled {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.synced-lighten .workbench .original-toggle[aria-pressed='true'] {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.synced-lighten .workbench .edit-column {
  grid-column: 2;
  padding: 22px 20px 16px;
  border-left: 1px solid #3a413a;
  background: var(--editor-panel);
  display: flex;
  flex-direction: column;
}
.synced-lighten .workbench .edit-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.synced-lighten .workbench .edit-heading h2 {
  margin: 0;
  font-size: 1.24rem;
  letter-spacing: -0.04em;
}
.synced-lighten .workbench .adjustments {
  display: grid;
  gap: 15px;
  margin: 19px 0 22px;
  border: 0;
  padding: 0;
  min-width: 0;
}
.synced-lighten .workbench .advanced-adjustments {
  display: grid;
  gap: inherit;
}
.synced-lighten .workbench .advanced-toggle {
  display: none;
}
.synced-lighten .workbench .slider-label {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 5px 10px;
  font-size: 0.82rem;
  font-weight: 650;
}
.synced-lighten .workbench .slider-label output {
  color: #f6dab4;
  font-size: 0.76rem;
  font-variant-numeric: tabular-nums;
}
.synced-lighten .workbench .slider-label input {
  --fill: 0%;
  grid-column: 1 / -1;
  width: 100%;
  margin: 0;
  appearance: none;
  background: transparent;
  height: 24px;
}
.synced-lighten
  .workbench
  .slider-label
  input::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 8px;
  background: linear-gradient(
    to right,
    var(--accent) var(--fill),
    #535b51 var(--fill)
  );
}
.synced-lighten .workbench .slider-label input::-moz-range-track {
  height: 4px;
  border-radius: 8px;
  background: #535b51;
}
.synced-lighten .workbench .slider-label input::-moz-range-progress {
  height: 4px;
  border-radius: 8px;
  background: var(--accent);
}
.synced-lighten .workbench .slider-label input::-webkit-slider-thumb {
  appearance: none;
  width: 15px;
  height: 15px;
  margin-top: -5.5px;
  border-radius: 50%;
  background: #fae4b9;
  border: 0;
}
.synced-lighten .workbench .slider-label input::-moz-range-thumb {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #fae4b9;
  border: 0;
}
.synced-lighten .workbench .export {
  grid-column: 2;
  padding: 12px 20px 16px;
  border-left: 1px solid #3a413a;
  background: var(--editor-panel);
  font-size: 0.81rem;
  font-weight: 660;
}
.synced-lighten .workbench .export-actions {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: stretch;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid #485048;
}
.synced-lighten .workbench .export select {
  padding: 8px 9px;
  color: #f4f3eb;
  border: 1px solid #535b51;
  border-radius: 7px;
  background: #222823;
  color-scheme: dark;
}
.synced-lighten .workbench .download-button {
  width: 100%;
  min-height: 45px;
  padding-inline: 6px;
  white-space: nowrap;
  color: #242018;
  background: var(--accent);
}
.synced-lighten .workbench .download-button:hover:enabled {
  background: var(--accent-hover);
}
.synced-lighten
  .workbench[data-image-source='sample']
  .download-button:not([data-exporting]) {
  color: #f4f3eb;
  background: #343c34;
  border-color: #626c60;
}
.synced-lighten
  .workbench[data-image-source='sample']
  .download-button:hover:enabled {
  background: #454f45;
}
.synced-lighten .workbench .output-size:not(:empty),
.synced-lighten .workbench .export-feedback:not(:empty) {
  padding-top: 5px;
  text-align: right;
}
.synced-lighten .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.synced-lighten .noscript {
  background: #fff1d6;
  padding: 12px;
}
@media (max-width: 840px) {
  .synced-lighten [data-gf-tool='lighten-image'] .workbench {
    grid-template-columns: minmax(0, 1fr) 235px;
  }
  .synced-lighten .workbench .edit-column,
  .synced-lighten .workbench .export {
    padding-inline: 15px;
  }
}
@media (min-width: 681px) and (max-width: 840px) {
  .synced-lighten .workbench .download-button [aria-hidden] {
    display: none;
  }
}
@media (max-width: 680px) {
  .synced-lighten [data-gf-tool='lighten-image'] .workbench {
    display: block;
    border-radius: 13px;
  }
  .synced-lighten .workbench .media-bar,
  .synced-lighten .workbench .media-footer {
    padding-inline: 12px;
  }
  .synced-lighten .workbench .preview {
    min-height: 210px;
    aspect-ratio: 1.5;
  }
  .synced-lighten .workbench .edit-column {
    border-left: 0;
    border-top: 1px solid #3a413a;
    padding: 12px 14px 0;
  }
  .synced-lighten .workbench .adjustments {
    gap: 6px;
    margin-block: 10px 4px;
  }
  .synced-lighten .workbench .advanced-adjustments:not([data-expanded]) {
    display: none;
  }
  .synced-lighten .workbench .advanced-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: start;
  }
  .synced-lighten .workbench .advanced-toggle[aria-expanded='true'] span {
    transform: rotate(180deg);
  }
  .synced-lighten .workbench .text-button,
  .synced-lighten .workbench .choose-button,
  .synced-lighten .workbench .slider-label input {
    min-height: 44px;
  }
  .synced-lighten .workbench .text-button {
    min-width: 44px;
  }
  .synced-lighten .workbench .media-footer {
    flex-wrap: wrap;
    gap: 0 12px;
    padding-block: 4px;
  }
  .synced-lighten .workbench .export {
    border-left: 0;
    padding: 0 14px 10px;
    padding-bottom: max(10px, env(safe-area-inset-bottom));
  }
  .synced-lighten .workbench[data-image-source='file'] .export {
    position: sticky;
    bottom: 0;
    z-index: 5;
    box-shadow: 0 -8px 16px #1117;
  }
  .synced-lighten
    .workbench[data-image-source='file']
    .edit-column
    :is(button, input) {
    scroll-margin-bottom: calc(110px + env(safe-area-inset-bottom));
  }
}
@media (max-width: 680px) and (max-height: 760px) {
  .synced-lighten .workbench .media-bar {
    padding-block: 7px;
  }
  .synced-lighten .workbench .preview {
    min-height: 170px;
    aspect-ratio: 1.78;
  }
}
.synced-lighten .workbench .preview[data-sample-preview] canvas {
  object-fit: cover;
}
