:root {
  --lt-accent: #1f6f5c;
}

.content {
  max-width: 860px;
}

.content main {
  line-height: 1.65;
}

.content pre {
  border-radius: 6px;
}

.content table {
  font-size: 0.94em;
}

.content code {
  font-size: 0.92em;
}

/* The playground fills the content column and keeps its own scroll areas. */
.lt-playground {
  margin: 1.25rem 0 2rem;
  border: 1px solid var(--table-border-color, #d8dee4);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg, #fff);
}

.lt-playground__toolbar,
.lt-playground__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  padding: 0.55rem 0.7rem;
  border-bottom: 1px solid var(--table-border-color, #d8dee4);
  background: var(--quote-bg, #f6f8fa);
}

.lt-playground__toolbar {
  justify-content: space-between;
}

.lt-playground__files {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.lt-playground button,
.lt-playground select {
  font: inherit;
  font-size: 0.86rem;
  padding: 0.28rem 0.55rem;
  border: 1px solid var(--table-border-color, #d8dee4);
  border-radius: 5px;
  background: var(--bg, #fff);
  color: inherit;
  cursor: pointer;
}

.lt-playground button[aria-pressed="true"],
.lt-playground button.lt-playground__primary {
  background: var(--lt-accent);
  border-color: var(--lt-accent);
  color: #fff;
}

.lt-playground__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 420px;
}

@media (max-width: 760px) {
  .lt-playground__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.lt-playground__editor {
  min-height: 420px;
  border-right: 1px solid var(--table-border-color, #d8dee4);
  overflow: auto;
}

.lt-playground__output {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.lt-playground__code {
  flex: 1;
  margin: 0;
  padding: 0.8rem;
  overflow: auto;
  max-height: 520px;
  font-size: 0.82rem;
  line-height: 1.5;
  white-space: pre;
}

.lt-playground__diagnostics {
  margin: 0;
  padding: 0.55rem 0.7rem;
  border-top: 1px solid var(--table-border-color, #d8dee4);
  background: var(--quote-bg, #f6f8fa);
  font-size: 0.84rem;
  max-height: 150px;
  overflow: auto;
}

.lt-playground__diagnostics:empty {
  display: none;
}

.lt-playground__diagnostics .error {
  color: #b42318;
}

.lt-playground__status {
  font-size: 0.82rem;
  opacity: 0.75;
}

.lt-playground__hint {
  font-size: 0.8rem;
  opacity: 0.7;
}
