/* Editor layout */
.mobile-download,
.mobile-tools {
  display: none;
}
body.editing {
  background: #f5f5f3;
  color: #232522;
}
.editing .header {
  height: 64px;
  background: #fff;
  border-bottom: 1px solid #e6e7e3;
  padding: 0 36px;
}
.editing .header .beta {
  display: none;
}
#editor {
  max-width: 1440px;
  margin: auto;
  padding-bottom: 32px;
}
.editor-heading {
  max-width: none;
  padding: 24px 36px;
  gap: 16px;
}
.editor-heading > div {
  gap: 20px;
  min-width: 0;
}
.editor-heading .text-button {
  font-size: 12px;
  color: #71756e;
}
.editor-title {
  display: inline;
  font:
    500 15px/1.3 Inter,
    Arial,
    sans-serif;
  letter-spacing: -0.3px;
  color: #292d27;
  border-color: #dcded8;
}
.demo-badge {
  background: #eaece6;
  color: #697260;
  font-size: 8px;
  letter-spacing: 1px;
  padding: 6px 9px;
  border-radius: 5px;
}
.editor-heading > .button {
  background: #fff;
  border: 1px solid #dedfd9;
  color: #343a2e;
  border-radius: 9px;
  padding: 10px 16px;
  min-height: 40px;
  font-size: 12px;
  gap: 8px;
  box-shadow: 0 2px 3px #17230d03;
}
.editor-heading > .button:hover {
  background: #ecefe7;
}
.editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  align-items: stretch;
  max-width: none;
  padding: 0 36px;
  gap: 24px;
}
.workspace {
  min-width: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid #dedfd9;
  border-radius: 18px;
  background: #eeefeb;
  overflow: hidden;
  box-shadow: 0 8px 28px #222c1404;
}
.canvas-toolbar {
  height: 68px;
  flex-shrink: 0;
  background: #fff;
  border-bottom: 1px solid #e4e6df;
  padding: 14px 20px;
  gap: 12px;
}
.segmented {
  background: #f1f2ee;
  border: 1px solid #e8e9e3;
  padding: 3px;
  border-radius: 9px;
}
.segmented button {
  min-height: 32px;
  padding: 7px 18px;
  border-radius: 6px;
  font-size: 11px;
  color: #72796c;
}
.segmented .selected {
  background: #fff;
  color: #242b1f;
  box-shadow: 0 1px 4px #28301914;
}
.history {
  gap: 5px;
  align-items: center;
}
.history button {
  width: 34px;
  height: 34px;
  border-radius: 7px;
  color: #676f60;
  font-size: 21px;
}
.history button:disabled {
  opacity: 0.3;
}
.history button:hover:not(:disabled) {
  background: #f0f2eb;
}
.history #compare-toggle {
  display: flex;
  width: auto;
  gap: 7px;
  align-items: center;
  padding: 0 11px;
  margin-left: 7px;
  border: 1px solid #e0e3d9;
  font-size: 18px;
}
#compare-toggle span {
  font:
    500 11px Inter,
    Arial,
    sans-serif;
}
.history button[aria-pressed="true"] {
  background: #edf0ff;
  border-color: #cbd4fc !important;
  color: #4161d8;
}
.canvas-area {
  position: relative;
  isolation: isolate;
  flex: 1;
  padding: 24px;
  min-height: 0;
  background: radial-gradient(ellipse at 50% 35%, #fafbf8, #eeefea 80%);
}
.canvas-area::before {
  content: "";
  position: absolute;
  inset: 12%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(ellipse, #a0b4ff44, transparent 70%);
  filter: blur(28px);
  opacity: 0;
  pointer-events: none;
}
.workspace-label {
  display: none;
}
#editor-canvas {
  width: min(
    100%,
    calc(clamp(260px, calc(100dvh - 310px), 660px) * var(--image-ratio, 1))
  );
  max-width: 100%;
  min-width: 0;
  aspect-ratio: 1;
  flex-shrink: 0;
  border: 1px solid #ffffff;
  border-radius: 9px;
  box-shadow: 0 6px 24px #2536150a;
  background-color: #fafbf9;
  background-image: conic-gradient(
    #edf0e9 25%,
    transparent 0 50%,
    #edf0e9 0 75%,
    transparent 0
  );
  background-size: 20px 20px;
}
#editor-subject {
  inset: 0;
}
#editor-original-image {
  inset: 0;
}
#editor-divider {
  width: 2px;
  background: #fff;
  box-shadow: 0 0 5px #14231840;
  z-index: 4;
}
#editor-divider::after {
  content: "‹ ›";
  width: 36px;
  height: 36px;
  font-size: 20px;
  color: #3c4435;
  border: 1px solid #e3e6dc;
  box-shadow: 0 3px 12px #14231820;
}
#editor-canvas:focus-within {
  outline: 2px solid #627fec;
  outline-offset: 4px;
}
.canvas-status {
  background: #fff;
  border-top: 1px solid #e4e6df;
  font-size: 10px;
  padding: 16px 20px;
  gap: 12px;
  color: #7b8273;
}
#editor-status {
  color: #566847;
  white-space: nowrap;
}
.canvas-status i {
  width: 6px;
  height: 6px;
  background: #779461;
  box-shadow: 0 0 0 3px #edf2e8;
  margin-right: 8px;
}
#image-dimensions {
  max-width: 65%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.settings {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #fff;
  border: 1px solid #dedfd9;
  border-radius: 18px;
  padding: 28px 24px 22px;
  color: #252b20;
  box-shadow: 0 8px 28px #222c1404;
}
.settings-heading {
  display: block;
}
.settings-heading .editor-eyebrow {
  font-size: 8px;
  letter-spacing: 1.5px;
  color: #7d8773;
  margin: 0 0 13px;
  max-width: none;
}
.settings h2 {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 38px;
  font-weight: 400;
  letter-spacing: -1.1px;
  line-height: 1.05;
  color: #282f21;
}
.settings-heading > p:last-child {
  font-size: 11px;
  color: #7a8172;
  margin: 12px 0 0;
  line-height: 1.6;
  max-width: none;
}
.settings > h3 {
  font-size: 11px;
  text-transform: none;
  font-weight: 500;
  letter-spacing: 0;
  color: #333b2b;
  margin: 30px 0 12px;
}
.bg-tabs {
  padding: 4px;
  background: #f2f3ef;
  border: 1px solid #e9ece3;
  border-radius: 9px;
  gap: 1px;
}
.bg-tabs button {
  border: 0;
  min-height: 35px;
  padding: 9px 3px;
  border-radius: 6px;
  color: #737c69;
  font-size: 10px;
}
.bg-tabs button[aria-selected="true"] {
  background: #fff;
  color: #28331e;
  box-shadow: 0 1px 4px #28301910;
  font-weight: 500;
}
.bg-panel {
  min-height: 182px;
  padding: 18px 0 20px;
}
.transparent-preview {
  height: 116px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 9px;
  border: 1px solid #e6e9df;
  border-radius: 10px;
  background-color: #fafbf8;
  background-image: conic-gradient(
    #edf0e7 25%,
    transparent 0 50%,
    #edf0e7 0 75%,
    transparent 0
  );
  background-size: 20px 20px;
}
.transparent-preview span {
  display: grid;
  place-items: center;
  padding: 0;
  width: 34px;
  height: 34px;
  color: #6e8259;
  background: #fff;
  border: 1px solid #e1e7d8;
  box-shadow: 0 2px 8px #3346210a;
  font-size: 15px;
}
.transparent-preview strong {
  font-size: 12px;
  font-weight: 500;
  color: #3b4632;
}
.transparent-preview small {
  font-size: 10px;
  color: #748166;
}
.bg-panel p {
  font-size: 10px;
  line-height: 1.6;
  color: #7c8570;
  margin-top: 12px;
}
.swatches {
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  padding: 3px;
}
.swatches button {
  min-height: 28px;
  border: 1px solid #00000012;
  border-radius: 8px;
}
.swatches button[aria-pressed="true"] {
  outline: 2px solid #5975dc;
  outline-offset: 3px;
}
.custom-color {
  border-top: 1px solid #eceee6;
  margin-top: 23px;
  padding-top: 16px;
  font-size: 11px;
  color: #727d65;
}
.custom-color input {
  width: 32px;
  height: 32px;
  border: 1px solid #dde3d5;
  border-radius: 7px;
  background: #fff;
}
.background-upload {
  height: 116px;
  background: #fafbf8;
  border: 1px dashed #cdd6c1;
  border-radius: 10px;
  color: #4c5b3c;
  font-size: 11px;
  justify-content: center;
  gap: 11px;
}
.background-upload:hover {
  background: #f0f4e9;
  border-color: #9aa98c;
}
.background-upload span {
  font-size: 24px;
  font-weight: 300;
}
.background-upload small {
  font-size: 9px;
  color: #808d71;
}
.export-heading {
  margin-top: auto;
  border-top: 1px solid #eceee6;
  padding-top: 16px;
}
.export-heading > span {
  font-size: 7px;
  letter-spacing: 1.2px;
  color: #87917c;
}
.export-summary {
  margin: 13px 0;
  border: 0;
  padding: 0;
  font-size: 10px;
  color: #818b75;
}
.export-summary strong {
  font-weight: 500;
  color: #4b583c;
}
.settings > .button.primary {
  border: 1px solid #3154dd;
  background: #3e60e7;
  border-radius: 9px;
  color: #fff;
  min-height: 48px;
  padding: 13px 17px;
  font-size: 12px;
  box-shadow: 0 3px 7px #3154dd17;
}
.settings > .button.primary:hover {
  background: #2d4fcf;
}
.settings > .button.primary span {
  font-size: 18px;
}
.editor-demo-note {
  margin-top: 13px;
  font-size: 9px;
  line-height: 1.7;
  color: #858f79;
}
.editing button:focus-visible,
.editing input:focus-visible,
.editing select:focus-visible {
  outline: 2px solid #627fec;
  outline-offset: 3px;
}
.editing dialog {
  background: #fff;
  border: 1px solid #dfe4d7;
  border-radius: 18px;
}
.editing dialog p {
  color: #748165;
}
.editing .dialog-close {
  background: #f1f4ec;
  color: #586947;
}
.editing select {
  background: #fafbf8;
  color: #3f5030;
  border-color: #dfe5d6;
}
@media (min-width: 761px) and (max-width: 1050px) {
  .editor-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 16px;
    padding: 0 20px;
  }
  .editor-heading {
    padding: 20px;
  }
  .canvas-toolbar {
    padding: 12px;
  }
  .canvas-area {
    padding: 18px;
  }
  .settings {
    padding: 25px 20px 20px;
  }
  #compare-toggle span {
    display: none;
  }
  .history #compare-toggle {
    padding: 0 9px;
    margin-left: 3px;
  }
  .segmented button {
    padding: 7px 12px;
  }
}
@media (max-width: 760px) {
  .editing .header {
    height: 64px;
    padding: 0 20px;
  }
  .editor-heading {
    padding: 16px;
    gap: 10px;
  }
  .editor-heading > div {
    gap: 12px;
  }
  .editor-heading .text-button {
    font-size: 11px;
  }
  .editor-title {
    font-size: 13px;
    padding-left: 12px;
  }
  .demo-badge {
    display: none;
  }
  .editor-heading > .button {
    min-height: 36px;
    padding: 8px 12px;
    font-size: 11px;
  }
  .editor-layout {
    display: flex;
    flex-direction: column;
    padding: 0 12px;
    gap: 16px;
  }
  .workspace,
  .settings {
    border-radius: 14px;
    width: 100%;
  }
  .canvas-toolbar {
    height: 60px;
    padding: 10px 12px;
  }
  .canvas-area {
    padding: 14px;
  }
  #editor-canvas {
    width: min(100%, calc(420px * var(--image-ratio, 1)));
    max-width: 100%;
  }
  .segmented button {
    padding: 7px 12px;
  }
  .history {
    gap: 2px;
  }
  .history button {
    width: 30px;
    height: 32px;
  }
  .history #compare-toggle {
    margin-left: 3px;
    padding: 0 8px;
  }
  #compare-toggle span {
    font-size: 10px;
  }
  .canvas-status {
    padding: 13px;
    font-size: 9px;
  }
  .settings {
    padding: 24px;
  }
  .settings h2 {
    font-size: 34px;
  }
  .settings > h3 {
    margin-top: 24px;
  }
  .bg-panel {
    min-height: 200px;
  }
  .transparent-preview,
  .background-upload {
    height: 135px;
  }
  .swatches {
    grid-template-columns: repeat(6, 1fr);
  }
  .swatches button {
    max-height: 46px;
  }
}
/* Mobile editor */
@media (max-width: 760px) {
  body.editing {
    overflow: hidden;
    background: #f3f4ef;
  }
  .editing .header {
    display: none;
  }
  #editor {
    height: 100dvh;
    padding: 0;
    display: flex;
    flex-direction: column;
  }
  #editor[hidden] {
    display: none;
  }
  .editor-heading {
    flex-shrink: 0;
    width: 100%;
    height: 58px;
    margin: 0;
    padding: 7px 16px;
    background: #fff;
    border-bottom: 1px solid #e3e7db;
  }
  .editor-heading > div {
    gap: 12px;
  }
  .editor-heading .text-button {
    min-height: 44px;
    font-size: 12px;
  }
  .editor-title {
    font-size: 12px;
  }
  .editor-heading > [data-upload] {
    display: none;
  }
  .mobile-download {
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 18px;
    z-index: 8;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 54px;
    padding: 0 10px 0 20px;
    border: 1px solid #ffffff24;
    border-radius: 15px;
    background: linear-gradient(135deg, #26312a, #151b17);
    color: #fff;
    font:
      600 14px Inter,
      Arial,
      sans-serif;
    letter-spacing: -0.2px;
    box-shadow:
      0 14px 34px #1420183d,
      0 1px 0 #ffffff20 inset;
  }
  .mobile-download::before {
    content: "Export ready";
    position: absolute;
    left: 20px;
    top: 8px;
    color: #b8c2bb;
    font-size: 8px;
    font-weight: 500;
    letter-spacing: 0.8px;
    text-transform: uppercase;
  }
  .mobile-download > span:first-child {
    padding-top: 13px;
  }
  .mobile-download-icon {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 11px;
    background: #fff;
    color: #202922;
    font-size: 20px;
    line-height: 1;
  }
  .mobile-download:disabled {
    opacity: 0.45;
  }
  .editor-layout {
    display: flex;
    flex: 1;
    width: 100%;
    min-height: 0;
    margin: 0;
    padding: 0;
    gap: 0;
  }
  .workspace {
    flex: 1;
    min-height: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  .canvas-toolbar {
    justify-content: center;
    flex-shrink: 0;
    height: 54px;
    border: 0;
    background: transparent;
  }
  .canvas-toolbar .history {
    display: none;
  }
  .segmented button {
    min-height: 36px;
    padding: 8px 23px;
  }
  .canvas-area {
    flex: 1;
    min-height: 0;
    margin: 0 10px;
    padding: 8px 8px 86px;
    overflow: hidden;
    border: 1px solid #dde2d7;
    border-radius: 22px;
    background: radial-gradient(ellipse at 50% 30%, #ffffff, #eaeee7 82%);
    box-shadow: 0 14px 34px #1d281b0d;
  }
  .canvas-area::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 120px;
    z-index: 6;
    pointer-events: none;
    background: linear-gradient(transparent, #dfe5dcbb);
  }
  #editor-canvas {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    aspect-ratio: auto;
    border: 0;
    border-radius: 16px;
    box-shadow: none;
  }
  #editor-slider {
    pointer-events: none;
    touch-action: pan-y;
  }
  #editor-divider {
    width: 44px;
    margin-left: -22px;
    background: transparent;
    box-shadow: none;
    pointer-events: auto;
    touch-action: none;
    cursor: ew-resize;
    z-index: 7;
  }
  #editor-divider::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    transform: translateX(-50%);
    background: #fff;
    box-shadow: 0 0 5px #14231840;
  }
  #editor-divider::after {
    width: 44px;
    height: 44px;
  }
  .canvas-status {
    flex-shrink: 0;
    background: transparent;
    border: 0;
    padding: 10px 18px 12px;
    font-size: 9px;
  }
  .mobile-tools {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    flex-shrink: 0;
    padding: 6px 8px max(8px, env(safe-area-inset-bottom));
    gap: 6px;
    background: #fff;
    border-top: 1px solid #e3e7db;
    box-shadow: 0 -8px 24px #1f28190a;
  }
  .mobile-tools button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 54px;
    background: transparent;
    border: 0;
    border-radius: 11px;
    color: #657355;
    font:
      500 10px Inter,
      Arial,
      sans-serif;
  }
  .mobile-tools button span {
    font-size: 23px;
    line-height: 1;
  }
  .mobile-tools button[aria-pressed="true"] {
    background: #edf0ff;
    color: #3e60e7;
  }
  .mobile-tools button:disabled {
    opacity: 0.35;
  }
  .editing dialog.mobile-background-sheet {
    inset: auto 0 0;
    margin: 0;
    width: 100%;
    max-width: 100%;
    max-height: 78dvh;
    padding: 0 0 env(safe-area-inset-bottom);
    border-radius: 22px 22px 0 0;
    border: 1px solid #e3e7db;
    overflow-y: auto;
    text-align: left;
  }
  .mobile-background-sheet::backdrop {
    background: #27302040;
    backdrop-filter: blur(3px);
  }
  .sheet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px 4px;
  }
  .editing .sheet-header h2 {
    font:
      600 17px Inter,
      Arial,
      sans-serif;
    letter-spacing: -0.4px;
  }
  .sheet-done {
    min-height: 44px;
    min-width: 64px;
    padding: 8px 14px;
    background: #edf0ff;
    color: #3e60e7;
    border: 0;
    border-radius: 9px;
    font-size: 12px;
  }
  .mobile-background-sheet .settings {
    padding: 12px 20px 18px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .mobile-background-sheet .settings-heading,
  .mobile-background-sheet .settings > h3,
  .mobile-background-sheet .export-heading,
  .mobile-background-sheet .export-summary,
  .mobile-background-sheet #open-export,
  .mobile-background-sheet .editor-demo-note {
    display: none;
  }
  .mobile-background-sheet .bg-tabs button {
    min-height: 44px;
    font-size: 12px;
  }
  .mobile-background-sheet .bg-panel {
    min-height: 0;
    padding: 20px 0 0;
  }
  .mobile-background-sheet .transparent-preview {
    display: none;
  }
  .mobile-background-sheet .bg-panel p {
    margin: 8px 0;
    font-size: 12px;
  }
  .mobile-background-sheet .swatches {
    grid-template-columns: repeat(auto-fit, minmax(44px, 1fr));
    gap: 12px;
  }
  .mobile-background-sheet .swatches button {
    min-height: 44px;
    max-height: none;
  }
  .mobile-background-sheet .custom-color input {
    width: 44px;
    height: 44px;
  }
}

/* Processing follows the visible image bounds, including letterboxed uploads. */
.is-processing .canvas-area {
  padding: 48px 28px 80px;
  background: #f7f8fc;
}
.is-processing .canvas-area::before,
.is-processing .canvas-area::after {
  display: none;
}
.thumbnail-progress {
  position: absolute;
  z-index: 8;
  pointer-events: none;
  color: #242936;
}
.thumbnail-progress[hidden] {
  display: none;
}
.thumbnail-progress-border {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: none;
  stroke-width: 1.5;
}
.thumbnail-progress-track {
  stroke: #252c4217;
}
.thumbnail-progress-light {
  stroke: #3157ff;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  opacity: 0.7;
  filter: none;
}
.thumbnail-progress-heading {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  white-space: nowrap;
}
.thumbnail-progress-stage {
  overflow: hidden;
  text-overflow: ellipsis;
}
.thumbnail-progress-stage::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 7px;
  border-radius: 50%;
  background: #3157ff;
  box-shadow: 0 0 0 3px #3157ff12;
}
.thumbnail-progress-time {
  flex-shrink: 0;
  padding: 5px 8px;
  border: 1px solid #e5e8f0;
  border-radius: 6px;
  background: #ffffffc9;
  color: #586174;
  font-size: 11px;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}
.thumbnail-progress-caption {
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: max(100%, 220px);
  text-align: center;
}
.thumbnail-progress-caption strong {
  display: block;
  font-size: 12px;
  font-weight: 500;
}
.thumbnail-progress-caption small {
  display: block;
  margin-top: 6px;
  font-size: 10px;
  line-height: 1.5;
  color: #788194;
}
.thumbnail-progress.is-complete .thumbnail-progress-light {
  opacity: 1;
  stroke: #6b7fe0;
}

/* The loading frame sits 12px outside the contained photograph. */
.thumbnail-progress::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 8px solid #fff;
  border-radius: 20px;
  box-shadow:
    0 12px 32px #16213a0a,
    0 2px 6px #16213a08;
  pointer-events: none;
}
.thumbnail-progress-border {
  stroke-width: 1.5;
}
.thumbnail-progress-track {
  stroke: #dce2f1;
}
.thumbnail-progress-light {
  stroke: #6b7fe0;
  opacity: 0.8;
}
.thumbnail-progress-heading {
  bottom: calc(100% + 18px);
  padding: 0 3px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
}
.thumbnail-progress-stage::before {
  display: none;
}
.thumbnail-progress-time {
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 11px;
  color: #7b8499;
}
.thumbnail-progress-caption {
  top: calc(100% + 24px);
}
.thumbnail-progress-caption strong {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #30374a;
}
.thumbnail-progress-caption small {
  color: #9198a8;
  font-size: 11px;
}
@media (max-width: 760px) {
  .is-processing .canvas-area {
    padding: 48px 18px 80px;
  }
  .thumbnail-progress-heading {
    font-size: 9px;
  }
  .thumbnail-progress-caption {
    top: calc(100% + 20px);
  }
  .thumbnail-progress-caption small {
    font-size: 10px;
  }
}
@media (min-width: 761px) {
  .is-processing #editor-canvas {
    width: min(
      100%,
      calc(clamp(300px, calc(100dvh - 400px), 640px) * var(--image-ratio, 1))
    );
  }
}

.is-processing #editor-canvas {
  background: transparent;
  box-shadow: none;
  border-color: transparent;
}
.is-processing #canvas-bg {
  visibility: hidden;
}

/* A soft sweep stays inside the photograph, separate from its outer frame. */
.is-processing .thumbnail-progress::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 8px;
  pointer-events: none;
  background: linear-gradient(
    110deg,
    transparent 32%,
    #8ca8ff14 42%,
    #d5e1ff45 48%,
    #ffffff45 50%,
    #b8cdff30 54%,
    transparent 66%
  );
  background-size: 300% 100%;
  background-repeat: no-repeat;
  box-shadow: inset 0 0 24px #7194ff1f;
  animation: thumbnail-inner-glow 4.8s ease-in-out infinite;
}
@keyframes thumbnail-inner-glow {
  0% {
    background-position: 100% 0;
    opacity: 0.35;
  }
  45%,
  55% {
    opacity: 1;
  }
  100% {
    background-position: 0% 0;
    opacity: 0.35;
  }
}
.is-processing .thumbnail-progress.is-complete::after {
  animation: none;
  opacity: 0;
}
@media (prefers-reduced-motion: reduce) {
  .is-processing .thumbnail-progress::after {
    animation: none;
    background: #a9bfff0a;
    opacity: 1;
  }
  .is-processing .thumbnail-progress.is-complete::after {
    opacity: 0;
  }
}
