/* Promptable object redaction: the clickable image and the object list. */
.stage {
  margin: 8px 0 0;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  text-align: center;
}
/* Sized by aspect ratio (no object-fit letterboxing), so pointer positions
   map straight to image coordinates. */
.stage canvas.selectable {
  display: inline-block;
  max-width: 100%;
  max-height: 70vh;
  width: auto;
  height: auto;
  vertical-align: top;
  cursor: crosshair;
  touch-action: none;
  user-select: none;
}
/* Above the image: the interaction example, the click mode, what the
   example does, and a status line (hover captions, tips, guard rails). */
.toolbar {
  margin: 16px 0 0;
}
.toolbar-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
}
.examples {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}
.examples button {
  font: inherit;
  font-weight: normal;
  padding: 4px 12px;
  border: 1px solid var(--border, #ccc);
  border-radius: 999px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.examples button[aria-pressed="true"] {
  background: var(--fg, #222);
  color: var(--bg, #fff);
  border-color: var(--fg, #222);
}
.toolbar .choice {
  display: inline-flex;
  gap: 12px;
  font-weight: 600;
}
.toolbar .choice label {
  font-weight: normal;
}
.example-about {
  margin: 8px 0 0;
}
.example-about .how {
  font-size: 0.85em;
  color: #666;
}
.status {
  margin: 4px 0 0;
  min-height: 1.5em;
  font-size: 0.9em;
  color: #666;
}
.status.message {
  color: inherit;
  font-weight: 600;
}
.status button {
  margin-left: 4px;
  padding: 1px 8px;
}
/* Settings: one row per choice (Mask, View), so the groups don't run
   together. */
.tuning-extras,
.tuning-extras .view-controls {
  flex-direction: column;
  align-items: flex-start;
}
.tuning-extras .view-controls {
  display: flex;
  gap: 8px;
}
ol.objects {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}
ol.objects li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 6px;
  border-radius: 6px;
  cursor: pointer;
}
ol.objects li.active {
  background: rgba(0, 0, 0, 0.06);
  font-weight: 600;
}
ol.objects li button {
  margin-left: auto;
}
.swatch {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  flex: none;
}
p.empty {
  color: #666;
}
.actions {
  margin: 12px 0 0;
}
.actions button + button {
  margin-left: 8px;
}
@media (prefers-color-scheme: dark) {
  .example-about .how,
  .status,
  p.empty {
    color: #aaa;
  }
  ol.objects li.active {
    background: rgba(255, 255, 255, 0.08);
  }
}
