:root {
  color-scheme: light dark;
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Helvetica,
    Arial,
    "Apple Color Emoji",
    "Segoe UI Emoji";
}

body {
  margin: 0;
  padding: 0;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px;
}

.row {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 16px;
  align-items: start;
}

.card {
  border: 1px solid color-mix(in oklab, currentColor 20%, transparent);
  border-radius: 12px;
  padding: 16px;
  background: color-mix(in oklab, canvas 98%, currentColor 2%);
}

.muted {
  opacity: 0.8;
}

.input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid color-mix(in oklab, currentColor 20%, transparent);
  background: canvas;
  color: canvastext;
}

.btn {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid color-mix(in oklab, currentColor 20%, transparent);
  background: color-mix(in oklab, canvas 96%, currentColor 4%);
  color: canvastext;
  cursor: pointer;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.facts {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.fact {
  width: 100%;
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid color-mix(in oklab, currentColor 18%, transparent);
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.factSelected {
  outline: 2px solid color-mix(in oklab, currentColor 40%, transparent);
}

.factKey {
  font-family:
    ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
  font-size: 12px;
}

.factValue {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.mermaidWrap {
  overflow: auto;
}

.error {
  white-space: pre-wrap;
  color: #b00020;
}
