.query-lab { min-width: 0; }
.query-lab [hidden] { display: none !important; }
.query-lab__controls, .query-lab__results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.query-lab__controls label { display: flex; flex-direction: column; justify-content: space-between; gap: .5rem; font-weight: 600; }
.query-lab__controls input, .query-lab__controls select { width: 100%; min-width: 0; min-height: 48px; padding: .7rem; border: 1px solid #a9bfc3; border-radius: 10px; background: #fff; color: #121d22; font: inherit; }
.query-lab__input, .query-lab__controls > p { grid-column: 1 / -1; }
.query-lab__controls > p { margin: 0; }
.query-lab__card { min-width: 0; padding: 1.1rem; border: 1px solid #d4dfdd; border-radius: 16px; background: #fff; }
.query-lab__card h3 { margin-top: 0; font-size: 1.15rem; }
.query-lab pre { max-width: 100%; padding: 0; border: 0; border-radius: 0; margin-bottom: 0; background: #fff; white-space: pre-wrap; overflow-wrap: anywhere; font-size: .875rem; line-height: 1.6; }
.query-lab [data-query-status], .query-lab [data-query-pairs], .query-lab td code { overflow-wrap: anywhere; }
.query-lab td ol { padding-left: 1.2rem; }
@media (max-width: 600px) {
  .query-lab__controls, .query-lab__results { grid-template-columns: minmax(0, 1fr); }
}

