.intro {
  padding: 0 0 12px 0;
}
.intro h1 {
  font-size: 20px;
  margin: 0 0 5px;
  padding: 0;
  color: #dd4814;
}
.intro p {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 18px;
}
button {
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 6px 12px;
  min-height: 30px;
  font: bold 14px/1.25 Arial, sans-serif;
  cursor: pointer;
}
.primary {
  background: #000;
  color: #fff;
}
.primary:hover {
  background: #333;
}
.secondary {
  background: #fff;
  border-color: #cfd5da;
  color: #30363b;
}
.secondary:hover {
  background: #f4f6f8;
}
.grid > * {
  min-width: 0;
  max-width: 100%;
}
.pane-tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 9px;
  flex-wrap: wrap;
}
.label {
  display: block;
  font-weight: bold;
  margin: 0;
}
.file-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.file-btn {
  display: inline-flex;
  align-items: center;
  border: 1px solid #cfd5da;
  border-radius: 7px;
  background: #fff;
  color: #30363b;
  font: bold 13px/1.2 Arial, sans-serif;
  margin: 0;
  padding: 6px 10px;
  cursor: pointer;
}
.file-btn:hover {
  background: #f4f6f8;
}
.file-btn input {
  display: none;
}
.quiet {
  color: var(--muted);
  font-size: 12px;
  font-weight: normal;
}
.editor {
  position: relative;
  width: 100%;
  max-width: 100%;
  border: 1px solid #cfd5da;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}
.editor:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(23, 105, 170, 0.12);
}
.nums {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 46px;
  box-sizing: border-box;
  padding: 13px 8px 13px 0;
  overflow: hidden;
  text-align: right;
  color: #9aa4b2;
  background: #f8fafc;
  border-right: 1px solid #edf0f3;
  font: 13px/20px Consolas, "Courier New", monospace;
  white-space: pre;
  user-select: none;
}
textarea {
  display: block;
  width: calc(100% - 46px);
  max-width: calc(100% - 46px);
  min-width: 0;
  height: 320px;
  min-height: 160px;
  margin-left: 46px;
  resize: vertical;
  padding: 13px 14px;
  border: 0;
  background: transparent;
  font: 13px/20px Consolas, "Courier New", monospace;
  color: #202124;
  outline: none;
  tab-size: 2;
  white-space: pre;
  overflow: auto;
}
textarea:focus {
  box-shadow: none;
}
.meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  margin-top: 7px;
}
.result {
  width: 100%;
  max-width: 100%;
  height: 320px;
  overflow: auto;
  border: 1px solid #cfd5da;
  border-radius: 8px;
  background: #fff;
}
.result pre {
  margin: 0;
  padding: 13px 14px;
  min-height: 100%;
  width: max-content;
  min-width: 100%;
  box-sizing: border-box;
  white-space: pre;
  font: 13px/20px Consolas, "Courier New", monospace;
  color: #202124;
}
.tree {
  display: none;
  min-height: 100%;
  box-sizing: border-box;
  padding: 13px 14px;
  font: 13px/20px Consolas, "Courier New", monospace;
  background: #fff;
  color: #202124;
}
.node {
  margin-left: 18px;
}
.row {
  cursor: pointer;
  user-select: none;
}
.row:hover {
  background: #f4f6f8;
}
.toggle {
  display: inline-block;
  width: 18px;
  color: var(--muted);
}
.key {
  color: #075985;
}
.str {
  color: #067647;
}
.num {
  color: #9a6700;
}
.bool {
  color: #6941c6;
}
.null {
  color: var(--muted);
}
.status {
  min-height: 22px;
  font-size: 13px;
  margin-top: 8px;
  overflow-wrap: anywhere;
  color: #287346;
}
.error {
  display: none;
  margin-top: 8px;
  padding: 13px 15px;
  border: 1px solid #e8eaed;
  background: #fff;
  border-radius: 8px;
  color: var(--danger);
  font-size: 14px;
}

@media (max-width: 760px) {
  .grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 17px;
  }
  .toolbar {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  textarea,
  .result {
    height: 220px;
  }
}
