.sql-question{margin:1.25rem 0;border:1px solid #cbd4cd;border-radius:12px;overflow:hidden;background:#fff;min-width:0}
.sql-question .sql-editor-label{display:block;padding:.8rem 1rem;background:#0b100e;color:white;font-weight:700}
.sql-question textarea.sql-editor{display:block;box-sizing:border-box;width:100%;min-height:12rem;margin:0;padding:1rem;border:0;border-radius:0;background:#fcfdfb;color:#0b100e;font:1rem/1.65 ui-monospace,SFMono-Regular,Consolas,monospace;resize:vertical;tab-size:2}
.sql-question textarea.sql-editor:focus{outline:2px solid #537d27;outline-offset:-2px}
.sql-actions,.sql-table-controls{display:flex;align-items:center;gap:.65rem;flex-wrap:wrap;padding:.75rem 1rem;border-top:1px solid #d8dfd5}
.sql-actions button,.sql-table-controls button,.sql-table-controls select{font:inherit;padding:.5rem .85rem;border:1px solid #b8c3b2;border-radius:7px;background:white;color:#131813;cursor:pointer}
.sql-actions [data-sql-run]{background:#c5f58d;border-color:#91c55d;font-weight:700}
.sql-actions button:disabled,.sql-table-controls button:disabled{opacity:.5;cursor:wait}
.sql-engine{margin-left:auto;font-size:.875rem;color:#58604f}
.sql-question .sql-data-note,.sql-question .sql-status{font-size:.9rem;line-height:1.5;margin:.5rem 1rem;color:#50594c}
.sql-question .sql-error{color:#a51d16;font-weight:600}
.sql-results{padding:0 1rem}.sql-results h3{font-size:1rem;margin:.75rem 0 .3rem}.sql-results p{font-size:.9rem}
.sql-data{border-top:1px solid #d8dfd5;margin-top:1rem}.sql-data summary{padding:.8rem 1rem;cursor:pointer;font-weight:600}.sql-records{padding:0 1rem}
.sql-question .sql-table-scroll{overflow-x:auto;max-height:24rem;margin:.5rem 0 1rem}
.sql-question table{width:100%;border-collapse:collapse;font-size:.9rem;background:white}
.sql-question th,.sql-question td{padding:.6rem .75rem;border:1px solid #d9dfd6;text-align:left;white-space:pre-wrap;min-width:5rem}
.sql-question th{background:#edf8e0;color:#10160e}.sql-question tbody tr:nth-child(even){background:#f7faf3}
.sql-question [hidden]{display:none!important}
@media print{.sql-actions,.sql-data,.sql-status,.sql-data-note{display:none}}
.tm-paper2-source .sql-question textarea.sql-editor{font:1rem/1.65 ui-monospace,SFMono-Regular,Consolas,monospace;border-radius:0;margin:0;padding:1rem;min-height:12rem}
.db-practice .question-marks{text-align:right}
