.image-frame-dialog {
  width: min(720px, calc(100% - 24px));
  max-height: 92dvh;
  overflow: auto;
  background: #202022;
  color: white;
  border: 1px solid #65656a;
  padding: 24px;
}
.image-frame-dialog::backdrop {
  background: #000b;
}
.image-frame-dialog p {
  font-size: 13px;
  line-height: 1.7;
}
.image-frame-dialog button {
  padding: 10px 18px;
  margin: 8px 8px 8px 0;
  background: #303033;
  color: white;
  border: 1px solid #777;
}
.image-frame-dialog button[aria-pressed="true"] {
  border-color: #f2a900;
  color: #f2a900;
}
.image-frame-stage {
  position: relative;
  overflow: hidden;
  background: #111;
  width: 100%;
  max-width: 600px;
  margin: 12px auto;
  touch-action: none;
  cursor: move;
}
.image-frame-stage img {
  position: absolute;
  max-width: none !important;
  object-fit: fill !important;
  pointer-events: none;
  user-select: none;
}
.image-frame-dialog label {
  display: grid;
  gap: 8px;
  color: white;
}
.image-frame-dialog input {
  width: 100%;
  padding: 0;
}
.image-frame-dialog output {
  font-size: 13px;
}
.photo-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.photo-settings-grid article {
  border: 1px solid #555;
  padding: 14px;
  min-width: 0;
}
.photo-settings-preview {
  aspect-ratio: 16/6;
  background: #29292b;
  background-repeat: no-repeat;
  margin: 12px 0;
}
.photo-settings-preview.detail {
  aspect-ratio: 4/3;
}
@media (max-width: 650px) {
  .photo-settings-grid {
    grid-template-columns: 1fr;
  }
  .image-frame-dialog {
    padding: 16px;
  }
}
