dialog:has(.proof-stage) {
  max-width: 980px;
}
.proof-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 14px 0;
}
.proof-spacer {
  flex: 1;
}
.button-link {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 14px;
  text-decoration: none;
  color: #26374c;
  background: #fff;
}
.button-link:hover {
  border-color: #8ab8ff;
  background: #f4f8ff;
}
.proof-stage {
  height: min(62vh, 680px);
  overflow: auto;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #e9eef5;
  padding: 12px;
}
.proof-image {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
}
.proof-error {
  margin: auto;
  text-align: center;
  color: #b4233a;
}
.proof-details {
  margin-top: 14px;
}
.proof-details summary {
  cursor: pointer;
  font-weight: 600;
}
.proof-details dl {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 9px 14px;
}
.proof-details dt {
  color: var(--muted);
}
.proof-details dd {
  margin: 0;
}
@media (max-width: 640px) {
  .proof-stage {
    height: 55vh;
  }
  .proof-spacer {
    display: none;
  }
  .proof-details dl {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
