/* LIKE A PRO .DEV — ~/sql (loaded after tools.css + tools-extra.css) */
.sq-top { max-width: 22rem; }
.sq-top .term-field { margin-top: 0; }
.sq-opts { margin-bottom: .6rem; padding: .3rem .85rem .7rem; border: 1px solid var(--border); border-radius: 8px; background: #0a0a0f; }
.sq-opts .x-fields { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.sq-opts .tool-check { margin-top: .3rem; }
.sq-opts .x-note { margin-top: .5rem; }
.sq-btns { display: inline-flex; flex-wrap: wrap; gap: .35rem; justify-content: flex-end; }
.sq-btns .term-copy { position: static; }
.term textarea.sq-area { min-height: 24rem; font-size: .8rem; line-height: 1.55; white-space: pre-wrap; tab-size: 4; }
.term textarea.sq-area.is-err { border-color: rgba(255,95,87,.55); }
.sq-out {
    margin: 0; flex: 1; min-height: 24rem; max-height: 40rem; overflow: auto; padding: .65rem .8rem;
    background: #0b0b10; border: 1px dashed var(--border-strong); border-radius: 6px;
    font-family: var(--font-mono); font-size: .8rem; line-height: 1.55; white-space: pre-wrap; word-break: break-word; color: var(--text); tab-size: 4;
}
.sq-k { color: #a996ff; font-weight: 500; }
.sq-f { color: var(--cyan); }
.sq-s { color: var(--accent); }
.sq-i { color: #ffcf8a; }
.sq-n { color: var(--amber); }
.sq-p { color: #ff9ac0; }
.sq-c { color: var(--dim); font-style: italic; }
.sq-o, .sq-u { color: var(--muted); }
.sq-snip { margin: .4rem 0; padding: .45rem .6rem; background: #0a0a0f; border-radius: 4px; font: inherit; font-size: .78rem; white-space: pre; overflow-x: auto; color: var(--text); }

@media (max-width: 768px) {
    .term textarea.sq-area, .sq-out { min-height: 13rem; }
    .sq-top { max-width: none; }
}
@media (min-width: 769px) { .sq-opts .sq-kcase { grid-column: span 2; } }
