.play { display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: start; }
@media (max-width: 860px) { .play { grid-template-columns: 1fr; } }
.play-side h1 { margin: 0 0 6px; font-size: 1.6rem; }
.play-side details { margin: 14px 0; border-top: 1px solid var(--line); padding-top: 8px; }
.play-side summary { cursor: pointer; font-weight: 600; }
.tour { padding-left: 20px; margin: 8px 0; }
.tour li { margin-bottom: 8px; }
.tour-item { text-align: left; font-weight: 600; }
.schema, .cols, .saved, .history { list-style: none; padding: 0; margin: 6px 0; }
.schema > li { margin: 4px 0; }
.cols { padding-left: 14px; border-left: 2px solid var(--line); margin: 4px 0 8px 6px; }
.cols li { font-size: .85rem; line-height: 1.5; }
.tbl { text-align: left; }
.saved li, .history li { margin: 4px 0; font-size: .9rem; display: flex; gap: 8px; align-items: baseline; }
.mono { font-family: ui-monospace, Consolas, monospace; font-size: .85rem; text-align: left; }

.editor-wrap { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--panel); }
.CodeMirror { height: auto; min-height: 180px; max-height: 50vh; font: 14px/1.5 ui-monospace, Consolas, monospace; background: var(--panel); color: var(--text); }
.CodeMirror-scroll { max-height: 50vh; }
.CodeMirror-gutters { background: var(--bg); border-right: 1px solid var(--line); }
.CodeMirror-linenumber { color: var(--muted); }
.CodeMirror-cursor { border-left-color: var(--text); }
.CodeMirror-selected, .CodeMirror-focused .CodeMirror-selected { background: rgba(227, 180, 138, .45); }
.cm-s-default .cm-keyword { color: var(--accent); font-weight: 600; }
.cm-s-default .cm-builtin { color: #4D6B2C; }
.cm-s-default .cm-string { color: #A44C26; }
.cm-s-default .cm-number { color: #2F5F8A; }
.cm-s-default .cm-comment { color: var(--muted); font-style: italic; }
.cm-s-default .cm-variable-2, .cm-s-default .cm-atom { color: var(--text); }
.cm-error-mark { background: rgba(158, 59, 43, .22); border-bottom: 2px solid var(--danger); }

.runbar { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin: 10px 0; }
.runbar kbd { font-size: .75rem; background: rgba(42, 53, 20, .08); border-radius: 4px; padding: 0 4px; margin-left: 2px; }
.results-wrap { overflow: auto; max-height: 70vh; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.results { border-collapse: collapse; font: 13px/1.4 ui-monospace, Consolas, monospace; width: max-content; min-width: 100%; }
.results th { position: sticky; top: 0; background: var(--bg); text-align: left; padding: 6px 10px; border-bottom: 2px solid var(--line); white-space: nowrap; }
.results th small { display: block; font-weight: 400; color: var(--muted); font-size: .72rem; }
.results td { padding: 4px 10px; border-bottom: 1px solid var(--line); white-space: pre; max-width: 480px; overflow: hidden; text-overflow: ellipsis; }
.results td.num { text-align: right; font-variant-numeric: tabular-nums; }
.results tr:hover td { background: rgba(143, 163, 107, .14); }
.results .null { color: var(--muted); font-style: italic; }
