.image-viewer-open {
  overflow: hidden;
  scrollbar-gutter: stable;
}
.image-viewer {
  width: min(1500px, calc(100vw - 48px));
  height: min(1040px, calc(100dvh - 48px));
  max-width: none;
  max-height: none;
  margin: auto;
  padding: 0;
  border: 1px solid #41514e;
  border-radius: 4px;
  background: #0b151f;
  color: #f7faf8;
  box-shadow: 0 24px 80px #0005;
  overflow: hidden;
}
.image-viewer:not([open]) {
  display: none;
}
.image-viewer[open] {
  display: flex;
  flex-direction: column;
}
.image-viewer::backdrop {
  background: rgba(4, 12, 17, 0.83);
  backdrop-filter: blur(5px);
}
.image-viewer-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex: none;
  border-bottom: 1px solid #34434a;
  padding: 14px 20px;
  background: #101d27;
}
.image-viewer-toolbar h2 {
  font-size: 17px;
  line-height: 1.6;
  font-weight: 500;
  letter-spacing: 0;
  min-width: 0;
  color: #f7faf8;
}
.image-viewer-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}
.image-viewer-controls button {
  height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #f7faf8;
  background: transparent;
  border: 1px solid #50616a;
  border-radius: 3px;
  font-size: 14px;
  line-height: 1.5;
  padding: 8px 12px;
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease;
}
.image-viewer-controls .image-viewer-zoom {
  min-width: 112px;
}
.image-viewer-controls .image-viewer-close {
  padding: 8px;
  border-color: transparent;
}
.image-viewer-close .material-symbol {
  width: 26px;
  height: 26px;
  fill: currentColor;
  stroke: none;
}
.image-viewer-controls button:focus-visible {
  outline: 2px solid #83d1b1;
  outline-offset: 3px;
}
.image-viewer-stage {
  min-width: 0;
  min-height: 0;
  flex: 1;
  overflow: auto;
  overscroll-behavior: contain;
  display: flex;
  position: relative;
  padding: 20px;
}
.image-viewer-stage > img {
  flex: none;
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  margin: auto;
  object-fit: contain;
}
.image-viewer-stage > img[hidden] {
  display: none;
}
.image-viewer-original .image-viewer-stage > img {
  width: var(--image-natural-width);
  height: auto;
  max-width: none;
  max-height: none;
  object-fit: initial;
}
.image-viewer-status {
  margin: auto;
  max-width: 480px;
  font-size: 16px;
  line-height: 1.8;
  color: #eef5f0;
  text-align: center;
}
.home-screen-link img[src*="peeloff-workflow-editor"] {
  padding: 0;
  background: #08131e;
}
@media (hover: hover) {
  .image-viewer-controls button:hover {
    background: #25373d;
    border-color: #8ba99a;
  }
}
@media (max-width: 700px) {
  .image-viewer {
    width: calc(100vw - 20px);
    height: calc(100dvh - 24px);
  }
  .image-viewer-toolbar {
    gap: 12px;
    padding: 10px 12px;
    align-items: flex-start;
  }
  .image-viewer-toolbar h2 {
    font-size: 16px;
    padding-top: 7px;
  }
  .image-viewer-controls {
    gap: 4px;
  }
  .image-viewer-controls .image-viewer-zoom {
    min-width: 104px;
    padding-inline: 8px;
  }
  .image-viewer-stage {
    padding: 10px;
  }
  .image-viewer-status {
    font-size: 15px;
    padding: 16px;
  }
  .image-viewer-controls button {
    transition: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .image-viewer-controls button {
    transition: none;
  }
}
.image-viewer-stage:focus-visible {
  outline: 2px solid #83d1b1;
  outline-offset: -4px;
}
