.captures-main {
  padding-block: 28px 40px;
}
.captures-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}
.captures-heading h1 {
  font-size: 28px;
  margin: 0 0 8px;
}
.captures-heading p {
  margin-block: 4px;
  color: var(--muted);
}
.captures-links {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.captures-controls {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 12px;
}
.captures-controls label {
  display: grid;
  gap: 6px;
  min-width: 0;
  font-size: 12px;
}
.captures-controls select {
  width: 100%;
  min-height: 44px;
  min-width: 0;
}
.captures-run-label {
  flex: 2 1 280px;
}
.captures-frame-label {
  flex: 1 1 220px;
}
.captures-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-block: 16px;
}
.captures-toolbar > div {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.captures-toolbar :is(button, a) {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.captures-toolbar .segments {
  padding: 3px;
}
.captures-status {
  color: var(--muted);
  min-height: 1.6em;
  overflow-wrap: anywhere;
}
.captures-figure {
  margin: 0;
}
.captures-figure figcaption {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
}
.captures-stage {
  overflow: auto;
  max-height: 78vh;
  min-height: 180px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
}
.captures-stage img {
  display: block;
  max-width: 100%;
  height: auto;
  margin-inline: auto;
}
.captures-stage[data-scale="actual"] img {
  max-width: none;
  margin: 0;
}
.captures-note {
  color: var(--muted);
  font-size: 12px;
}
#captures-share-fallback {
  width: 100%;
  margin-bottom: 12px;
}
@media (max-width: 700px) {
  .captures-main {
    padding-top: 16px;
  }
  .captures-heading {
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
  }
  .captures-heading .eyebrow {
    display: none;
  }
  .captures-heading p {
    font-size: 13px;
  }
  .captures-heading h1 {
    font-size: 22px;
  }
  .captures-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }
  .captures-run-label {
    grid-column: 1 / -1;
  }
  .captures-toolbar button {
    font-size: 13px;
  }
  .captures-toolbar {
    font-size: 13px;
  }
  .captures-tools {
    width: 100%;
  }
  .captures-stage {
    max-height: 70vh;
  }
}
