* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #0d0f13;
  color: #d7dae0;
  display: flex;
  flex-direction: column;
}
header {
  padding: 10px 16px;
  border-bottom: 1px solid #20242c;
  display: flex;
  align-items: baseline;
  gap: 12px;
  background: #12151b;
}
header h1 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #9aa3b2;
}
header .sub {
  margin: 0;
  font-size: 12px;
  color: #5c6472;
}
.split {
  flex: 1;
  display: flex;
  min-height: 0;
}
.pane {
  flex: 1 1 50%;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.pane + .pane {
  border-left: 1px solid #20242c;
}
.label {
  padding: 6px 14px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5c6472;
  background: #10131a;
  border-bottom: 1px solid #20242c;
}
#input {
  flex: 1;
  width: 100%;
  resize: none;
  border: 0;
  outline: 0;
  padding: 16px;
  background: #0d0f13;
  color: #d7dae0;
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 14px;
  line-height: 1.55;
  tab-size: 2;
}
#output {
  flex: 1;
  overflow: auto;
  padding: 20px 24px;
  line-height: 1.6;
}
#output h1, #output h2, #output h3, #output h4, #output h5, #output h6 {
  color: #f0f2f6;
  margin: 1.2em 0 0.5em;
  line-height: 1.25;
}
#output h1 { font-size: 1.8em; border-bottom: 1px solid #20242c; padding-bottom: 0.2em; }
#output h2 { font-size: 1.45em; border-bottom: 1px solid #20242c; padding-bottom: 0.2em; }
#output h3 { font-size: 1.2em; }
#output h4 { font-size: 1.05em; }
#output p { margin: 0.8em 0; }
#output a { color: #7aa2f7; text-decoration: none; }
#output a:hover { text-decoration: underline; }
#output strong { color: #f0f2f6; }
#output em { color: #c9cdd6; }
#output code {
  background: #1a1e26;
  color: #e6a86b;
  padding: 0.15em 0.4em;
  border-radius: 3px;
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.9em;
}
#output pre {
  background: #12151b;
  border: 1px solid #20242c;
  border-radius: 6px;
  padding: 12px 14px;
  overflow-x: auto;
  margin: 1em 0;
}
#output pre code {
  background: transparent;
  color: #c9cdd6;
  padding: 0;
  border-radius: 0;
  font-size: 0.88em;
}
#output blockquote {
  margin: 1em 0;
  padding: 0.3em 1em;
  border-left: 3px solid #3a4252;
  color: #9aa3b2;
  background: #12151b;
}
#output ul, #output ol { padding-left: 1.6em; margin: 0.8em 0; }
#output li { margin: 0.25em 0; }
#output hr {
  border: 0;
  border-top: 1px solid #20242c;
  margin: 1.5em 0;
}
#output img { max-width: 100%; border-radius: 4px; }
#output table {
  border-collapse: collapse;
  margin: 1em 0;
}
#output th, #output td {
  border: 1px solid #20242c;
  padding: 6px 10px;
}
#output th { background: #12151b; }
@media (max-width: 720px) {
  .split { flex-direction: column; }
  .pane + .pane { border-left: 0; border-top: 1px solid #20242c; }
}
