.pysely-home-link { color: inherit; }
body:has(.pysely-playground) .md-main__inner { margin-top: 12px; }
body:has(.pysely-playground) .md-content__inner { padding-top: 0; }
body:has(.pysely-playground) .md-content__inner::before { height: 0; }
body:has(.pysely-playground) .md-content__button,
body:has(.pysely-playground) .md-typeset > h1#__skip { display: none; }
body:has(.pysely-playground) .md-grid { max-width: 100%; }
body:has(.pysely-playground) .md-content { min-width: 0; }
.pysely-playground { border: 1px solid var(--md-default-fg-color--lightest); border-radius: 8px; overflow: hidden; }
.pysely-playground__toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; background: var(--md-code-bg-color); }
.pysely-playground__toolbar button, .pysely-playground__toolbar select { font: inherit; font-size: 14px; padding: 6px 12px; border: 1px solid var(--md-default-fg-color--lighter); border-radius: 4px; cursor: pointer; }
.pysely-playground__toolbar button:disabled { opacity: .5; cursor: default; }
#playground-run { background: var(--md-primary-fg-color); color: var(--md-primary-bg-color); }
#playground-intelligence-status { margin-left: auto; font-size: 13px; }
#playground-status { font-size: 13px; }
.pysely-playground [aria-busy="true"]::before,
.pysely-editor__loading::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 8px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; vertical-align: -2px; animation: pysely-spin .8s linear infinite; }
@keyframes pysely-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .pysely-playground [aria-busy="true"]::before,
  .pysely-editor__loading::before { animation: none; }
}
.pysely-playground__panes { display: grid; grid-template-columns: 1fr 1.3fr 1fr; }
.pysely-playground__panes section { min-width: 0; border-top: 1px solid var(--md-default-fg-color--lightest); }
.pysely-playground__panes section + section { border-left: 1px solid var(--md-default-fg-color--lightest); }
.pysely-playground__panes h2 { margin: 0; padding: 12px 16px; font-size: 14px; font-weight: 600; }
.pysely-playground__panes small { float: right; font-weight: 400; opacity: .6; }
.pysely-editor { height: var(--pysely-editor-height, clamp(260px, calc(100dvh - 340px), 640px)); position: relative; }
.pysely-editor__loading { position: absolute; inset: 0; padding: 14px 16px; background: var(--md-code-bg-color); color: var(--md-code-fg-color); font-family: var(--md-code-font-family); font-size: 14px; }
.pysely-playground__parameters { display: flex; align-items: center; gap: 16px; padding: 12px 16px; border-top: 1px solid var(--md-default-fg-color--lightest); font-size: 13px; }
.pysely-playground__parameters code { white-space: pre-wrap; }
.pysely-playground__divider { width: 1px; align-self: stretch; background: var(--md-default-fg-color--lighter); }
.pysely-playground__pipeline { opacity: .7; }
.pysely-playground__tabs { display: flex; gap: 2px; }
.pysely-tab { font: inherit; font-weight: inherit; color: inherit; background: none; border: 0; border-bottom: 2px solid transparent; padding: 0 8px 4px; cursor: pointer; }
.pysely-tab[aria-selected="true"] { border-bottom-color: var(--md-accent-fg-color, currentColor); }
.pysely-tab small { float: none; margin-left: 6px; }
/* Static code views. `.monaco-editor` scopes the theme's token colors; the rest matches the editors' text metrics. */
.pysely-code.monaco-editor { position: static; display: block; width: auto; height: 100%; box-sizing: border-box; margin: 0; padding: 12px 0; overflow-y: auto; overflow-x: hidden; outline: none; box-shadow: none; white-space: pre-wrap; overflow-wrap: break-word; font-family: Menlo, Monaco, "Courier New", monospace; font-size: 14px; line-height: 19px; tab-size: 4; }
.pysely-code__line { display: flex; min-height: 19px; }
.pysely-code__number { flex: 0 0 3.5em; padding-right: 1.4em; text-align: right; opacity: .45; user-select: none; }
.pysely-code__text { flex: 1; min-width: 0; padding-right: 16px; padding-left: 4ch; text-indent: -4ch; }
#playground-error { margin: 0; padding: 16px; white-space: pre-wrap; color: var(--md-typeset-a-color); }
#playground-error[hidden] { display: none; }
@media (max-width: 1000px) {
  .pysely-playground__panes { grid-template-columns: 1fr; }
  .pysely-playground__panes section + section { border-left: 0; }
  .pysely-editor { height: clamp(240px, 50dvh, 400px); }
}
