.run-proof-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.6);
}

.run-proof-modal-backdrop[hidden] {
  display: none !important;
}

.run-proof-modal-dialog {
  width: min(760px, 100%);
  max-height: calc(100vh - 2rem);
  overflow: auto;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  background: #fff;
  box-shadow: 0 28px 56px rgba(2, 6, 23, 0.25);
  padding: 1rem 1rem 1.1rem;
}

.run-proof-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.45rem;
}

.run-proof-modal-header h2 {
  margin: 0;
  font-size: 1.2rem;
  color: #0f172a;
}

.run-proof-modal-close {
  width: 34px;
  height: 34px;
  border: 1px solid #cbd5e1;
  background: #fff;
  border-radius: 10px;
  color: #0f172a;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}

.run-proof-modal-close:hover {
  background: #f8fafc;
}

.run-proof-modal-desc {
  margin: 0 0 0.85rem;
  color: #475569;
  font-size: 0.92rem;
}

.run-proof-form {
  display: grid;
  gap: 0.75rem;
}

.run-proof-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.run-proof-field {
  display: grid;
  gap: 0.35rem;
}

.run-proof-field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #334155;
}

.run-proof-field input,
.run-proof-field select {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  padding: 0.58rem 0.64rem;
  color: #0f172a;
  font-size: 0.94rem;
}

.run-proof-field input:focus,
.run-proof-field select:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.13);
}

.run-proof-meta {
  margin: 0.1rem 0 0;
  color: #64748b;
  font-size: 0.83rem;
  min-height: 1.1rem;
}

.run-proof-message {
  margin: 0.1rem 0 0;
  font-size: 0.85rem;
  min-height: 1.2rem;
  color: #334155;
}

.run-proof-message.is-error {
  color: #b91c1c;
}

.run-proof-message.is-success {
  color: #047857;
}

.run-proof-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.55rem;
  margin-top: 0.2rem;
}

@media (max-width: 700px) {
  .run-proof-grid {
    grid-template-columns: 1fr;
  }

  .run-proof-modal-dialog {
    padding: 0.9rem;
  }

  .run-proof-actions {
    flex-direction: column-reverse;
  }

  .run-proof-actions .btn {
    width: 100%;
  }
}
