/* Page controls only; studio geometry and chrome stay in image-studio-shell.css. */
.photo-rescue .rescue-auto .iadj-btn { margin: 12px 0 4px; }
.photo-rescue .rescue-section > summary {
  cursor: pointer; font-size: .84rem; font-weight: 750;
  color: var(--is-text); padding: 3px 0;
}
.photo-rescue .rescue-section[open] > summary { margin-bottom: 14px; }
.photo-rescue .rescue-check {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: .77rem; line-height: 1.5; color: var(--is-text); margin: 10px 0;
}
.photo-rescue .rescue-check input { margin-top: 4px; accent-color: var(--is-accent); flex-shrink: 0; }
.photo-rescue .rescue-label { display: block; font-size: .76rem; margin-bottom: 6px; color: var(--is-muted); }
.photo-rescue #rescue-sample { width: 100%; margin-bottom: 8px; }
.photo-rescue #rescue-histogram { display: block; width: 100%; height: 64px; border-radius: 6px; background: var(--is-stage); }
.photo-rescue .rescue-oval {
  position: absolute; z-index: 3; box-sizing: border-box;
  border: 2px dashed #fff; border-radius: 50%; padding: 0;
  box-shadow: 0 0 0 1px #25252588; background: #ffffff08;
  cursor: move; touch-action: none; color: #fff;
}
.photo-rescue .rescue-oval span { font-size: 11px; background: #121721b8; border-radius: 5px; padding: 3px 6px; }
.photo-rescue .rescue-oval:focus-visible { outline: 3px solid var(--is-accent); outline-offset: 3px; }
.photo-rescue .rescue-clipping { position: absolute; z-index: 2; pointer-events: none; border-radius: 4px; }
.photo-rescue.is-comparing .rescue-oval,
.photo-rescue.is-comparing .rescue-clipping,
.photo-rescue.is-empty .rescue-oval,
.photo-rescue.is-empty .rescue-clipping { display: none !important; }
.photo-rescue.is-detail .iadj-viewport {
  display: block; overflow: auto; overscroll-behavior: contain; min-height: 0; height: 100%;
}
.photo-rescue.is-detail .iadj-stage-canvas {
  max-width: none; max-height: none; border: 0; border-radius: 0;
  width: var(--rescue-image-width); height: var(--rescue-image-height);
}
.photo-rescue #rescue-zoom[aria-pressed="true"] { color: var(--is-accent); border-color: var(--is-accent); }
.photo-rescue .iadj-ba-frame { margin-inline: auto; }
.photo-rescue button:focus-visible, .photo-rescue summary:focus-visible { outline: 2px solid var(--is-accent); outline-offset: 3px; }
.photo-rescue input[type="range"]:disabled { opacity: .4; }
@media (max-width: 820px) {
  .photo-rescue .iadj-topbar-right .istudio-view-toggle { order: 5; }
  .photo-rescue .iadj-stage-canvas { max-height: 100%; }
  .photo-rescue .iadj-pane-canvas { max-height: calc(42svh - 64px); }
  .photo-rescue.has-batch .iadj-pane-canvas { max-height: calc(32svh - 64px); }
  .photo-rescue .iadj-batch { max-height: 112px; }
  .photo-rescue .iadj-batch .aib-list { flex-wrap: nowrap; }
  .photo-rescue .iadj-batch .aib-item { flex: 0 0 210px; }
}
