/* 测试入口跟随渠道；离线校验使用固定标题和底栏，样例与转换结果按需展开。 */
dialog#test-dialog {
  width: min(560px, calc(100vw - 32px));
  max-height: min(680px, calc(100dvh - 32px));
}
#test-form,
#test-form > fieldset {
  display: contents;
}
#test-dialog .dialog-heading {
  align-items: center;
  padding: 16px 20px;
}
#test-dialog .dialog-heading h2 {
  padding: 0;
}
#test-dialog .dialog-body {
  padding: 20px;
  scrollbar-width: none;
}
#test-dialog .dialog-body::-webkit-scrollbar {
  display: none;
}
.offline-test-context {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.offline-test-context strong {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 13px;
}
#test-sample-hint {
  flex: 0 0 auto;
  font-size: 11px;
  color: var(--muted);
}
#test-form .offline-test-description {
  font-size: 12px;
  margin: 0 0 18px;
}
#test-form .dialog-disclosure {
  margin: 0;
  padding: 11px 0;
}
#test-next-hint p {
  font-size: 12px;
  margin: 10px 0 0;
}
#test-input-options .form-grid {
  gap: 16px;
  padding: 16px 0 6px;
}
#test-input-options label {
  margin: 0;
}
#test-dialog .dialog-actions {
  padding: 12px 20px;
}
#test-submit {
  margin: 0;
}
#test-details {
  color: var(--muted);
}
#test-details pre {
  max-height: 220px;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  scrollbar-width: none;
  margin-bottom: 0;
}
@media (max-width: 600px) {
  #test-dialog .dialog-heading,
  #test-dialog .dialog-body {
    padding: 16px;
  }
  #test-dialog .dialog-actions {
    padding: 12px 16px;
  }
}
#live-test-target {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 12px;
}
.test-parameters,
.test-prompt,
.test-reference-notice {
  grid-column: 1 / -1;
}
.test-reference-notice {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.test-parameters > summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 12px;
  padding: 8px 0;
}
.test-parameters .form-grid {
  margin-top: 10px;
}
#live-test-form {
  border: 0;
  padding: 0;
  margin: 0;
}
#live-test-form fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
#live-test-form .test-consent {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
}
#live-test-form .test-consent input {
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  flex: none;
}
#live-test-result {
  margin-top: 16px;
}
#live-test-result pre {
  max-height: 240px;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 12px;
}
.test-result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 12px;
}
.test-result-meta code {
  overflow-wrap: anywhere;
}
#live-test-history {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.test-history-item {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
}
.acceptance-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.acceptance-form label {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.acceptance-form input,
.acceptance-form select {
  width: 100%;
  min-width: 0;
}
.acceptance-form p {
  grid-column: 1 / -1;
  margin: 0;
  overflow-wrap: anywhere;
}
.acceptance-form button {
  justify-self: start;
}
.acceptance-record {
  overflow-wrap: anywhere;
}
.acceptance-record small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}
@media (max-width: 600px) {
  .acceptance-form {
    grid-template-columns: minmax(0, 1fr);
  }
}
