/* Tool-only bits for /remover-objeto-da-foto/. Chrome stays in image-studio-shell.css. */

#obj-app .istudio-stage { position: relative; }
#obj-app .obj-view {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
#obj-app.is-empty .obj-view { display: none; }
#obj-app.is-busy .obj-view { cursor: progress; }
#obj-app .istudio-stage.is-dragover {
  outline: 2px dashed var(--is-accent, #fa5b0f);
  outline-offset: -8px;
}

#obj-app .obj-progress {
  height: 8px;
  margin: 4px 0 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--is-line, #e2e8f0);
}
#obj-app .obj-progress-fill {
  width: 0;
  height: 100%;
  background: var(--is-accent, #fa5b0f);
  transition: width 0.2s ease;
}

#obj-app .obj-select {
  width: 100%;
  padding: 7px 10px;
  font: inherit;
  font-size: 0.85rem;
  color: var(--is-text, #0f172a);
  background: var(--is-btn, #fff);
  border: 1px solid var(--is-line, #cbd5e1);
  border-radius: 8px;
}

#obj-app .obj-side-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

#obj-app .obj-keys {
  font-size: 0.74rem;
  opacity: 0.8;
}
@media (pointer: coarse) {
  #obj-app .obj-keys { display: none; }
}

#obj-app .obj-zoom {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
#obj-app .obj-zoom .istudio-tool {
  min-width: 30px;
  justify-content: center;
}
#obj-app .obj-zoom-val {
  min-width: 52px;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 820px) {
  #obj-app .istudio-stage {
    flex: 0 0 auto;
    height: clamp(320px, 58svh, 640px);
  }
  /* Apagar e Baixar logo abaixo da foto, sem rolagem dentro da barra */
  #obj-app .istudio-sidebar { max-height: none; }
  #obj-app .istudio-side-actions {
    order: -1;
    border-bottom: 1px solid var(--is-line);
  }
  #obj-app .istudio-topbar-right {
    margin-left: 0;
    flex-wrap: wrap;
  }
}
