/* The query editor: the database content on the left, the editor and its result on the right. */

.explorer { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 14px; align-items: start; }
.explorer > * { min-width: 0; }
@media (max-width: 900px) { .explorer { grid-template-columns: minmax(0, 1fr); } }

.schema h3, .history h3 { margin: 0 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.schema details { margin-bottom: 6px; }
.schema summary { cursor: pointer; font-weight: 600; padding: 3px 0; }
.schema .chips { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0 6px; }
.schema .chip { background: var(--surface-2); border-radius: 6px; padding: 1px 8px; font: 12px var(--mono); }
.schema .chip.tag { border-style: dashed; }

.editor-actions { display: flex; gap: 10px; align-items: center; margin: 10px 0; flex-wrap: wrap; }
.editor-actions .spacer { flex: 1; }

.series-title { margin: 14px 0 4px; font-size: 12px; color: var(--accent); font-family: var(--mono); }

.history ul { list-style: none; margin: 0; padding: 0; }
.history li { padding: 6px 8px; border-radius: 6px; cursor: pointer; font: 12px var(--mono); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.history li:hover { background: var(--surface-2); color: var(--text); }
