.custom-exam-trigger {
  flex: 1 1 220px;
  max-width: 360px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid #7594bd;
  border-radius: 999px;
  background: #f5f8fc;
  color: #183657;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .01em;
  white-space: nowrap;
}

.custom-exam-trigger[hidden] {
  display: none;
}

.custom-exam-dialog {
  width: min(760px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 20px;
  background: #f7f9fc;
  color: #18304c;
  box-shadow: 0 24px 80px rgb(21 41 70 / 32%);
}

.custom-exam-dialog::backdrop {
  background: rgb(14 30 52 / 55%);
  backdrop-filter: blur(5px);
}

.custom-exam-dialog__shell {
  margin: 0;
}

.custom-exam-dialog__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 24px 18px;
  border-bottom: 1px solid #dce4ee;
  background: #fff;
}

.custom-exam-dialog__header h2 {
  margin: 3px 0 6px;
  font-size: 22px;
}

.custom-exam-dialog__header p:last-child {
  max-width: 560px;
  margin: 0;
  color: #65778c;
  font-size: 12px;
  line-height: 1.6;
}

.custom-exam-dialog__close {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border: 1px solid #d5dfeb;
  border-radius: 50%;
  background: #f7f9fc;
  color: #38516e;
  font-size: 22px;
}

.custom-exam-dialog__body {
  display: grid;
  gap: 16px;
  max-height: calc(100vh - 150px);
  padding: 20px 24px 24px;
  overflow: auto;
}

.custom-exam-selector label,
.custom-exam-runtime label {
  display: grid;
  gap: 6px;
  color: #536980;
  font-size: 11px;
  font-weight: 700;
}

.custom-exam-selector__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.custom-exam-selector select,
.custom-exam-runtime select {
  min-width: 0;
  min-height: 40px;
  border: 1px solid #cad6e4;
  border-radius: 10px;
  background: #fff;
  color: #1d3857;
}

.custom-exam-message {
  min-height: 18px;
  margin: 7px 0 0;
  color: #687b91;
  font-size: 11px;
}

.custom-exam-message.is-error {
  color: #a42f37;
}

.custom-exam-identity {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  overflow: hidden;
  border: 1px solid #dce4ee;
  border-radius: 12px;
  background: #dce4ee;
}

.custom-exam-identity div {
  min-width: 0;
  padding: 10px 12px;
  background: #fff;
}

.custom-exam-identity dt {
  color: #78899b;
  font-size: 9px;
  letter-spacing: .06em;
}

.custom-exam-identity dd {
  margin: 4px 0 0;
  overflow: hidden;
  color: #203f61;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.custom-exam-runtime {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.custom-exam-evidence {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border: 1px solid #dce4ee;
  border-radius: 12px;
  background: #fff;
}

.custom-exam-badge {
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .04em;
}

.custom-exam-badge--sim {
  background: #edf1f5;
  color: #617285;
}

.custom-exam-badge--sim.is-verified {
  background: #e4f4eb;
  color: #16653d;
}

.custom-exam-badge--physical {
  background: #fff0dc;
  color: #895313;
}

.custom-exam-evidence strong,
.custom-exam-evidence small {
  grid-column: 3;
  justify-self: end;
}

.custom-exam-evidence small {
  color: #6a7d91;
}

.custom-exam-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

@media (max-width: 760px) {
  .custom-exam-trigger {
    order: 4;
    width: 100%;
  }

  .custom-exam-identity {
    grid-template-columns: 1fr 1fr;
  }

  .custom-exam-runtime,
  .custom-exam-evidence {
    grid-template-columns: 1fr;
  }

  .custom-exam-evidence strong,
  .custom-exam-evidence small {
    grid-column: 1;
    justify-self: start;
  }
}
