:root {
  color-scheme: light dark;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

body {
  margin: 0;
  background: Canvas;
  color: CanvasText;
}

main {
  width: min(760px, calc(100% - 40px));
  margin: 48px auto;
}

h1,
h2 {
  line-height: 1.2;
}

.boundary,
.panel,
#status {
  border: 1px solid color-mix(in srgb, CanvasText 20%, transparent);
  border-radius: 12px;
  padding: 18px;
  margin: 18px 0;
}

.boundary {
  border-color: #b46b00;
  background: color-mix(in srgb, #f2a900 12%, Canvas);
}

.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
}

button {
  font: inherit;
  padding: 9px 14px;
}

label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

#status[data-kind="pass"] {
  border-color: #16833b;
}

#status[data-kind="fail"] {
  border-color: #c0352b;
}

#status[data-kind="active"] {
  border-color: #246dcc;
}

pre {
  max-height: 320px;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 12px;
  border: 1px solid color-mix(in srgb, CanvasText 20%, transparent);
  border-radius: 8px;
  padding: 12px;
}
