:root {
  color-scheme: light dark;
  font-family: system-ui, sans-serif;
}

body {
  margin: 0;
}

main {
  max-width: 58rem;
  margin: 3rem auto;
  padding: 0 1.25rem;
}

.notice {
  border-left: .3rem solid #d97706;
  padding: .75rem 1rem;
  background: color-mix(in srgb, #d97706 12%, transparent);
}

dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: .6rem 1rem;
  margin: 2rem 0;
}

dt {
  font-weight: 700;
}

dd {
  margin: 0;
  overflow-wrap: anywhere;
}

textarea {
  box-sizing: border-box;
  width: 100%;
  margin: .5rem 0 1rem;
  padding: .75rem;
  resize: vertical;
}

pre {
  max-height: 28rem;
  overflow: auto;
  padding: 1rem;
  border: 1px solid color-mix(in srgb, currentColor 30%, transparent);
  border-radius: .35rem;
  background: color-mix(in srgb, currentColor 6%, transparent);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.actions {
  display: flex;
  gap: .75rem;
  align-items: center;
}

button {
  padding: .55rem .9rem;
  font: inherit;
  cursor: pointer;
}

.probe-frame {
  position: fixed;
  left: -10000px;
  top: 0;
  width: 720px;
  height: 760px;
  border: 1px solid #888;
}

.debug-frames .probe-frame {
  position: static;
  display: block;
  max-width: calc(100% - 2rem);
  margin: 1rem;
}
