.workbench-shell{position:relative;border:1px solid var(--line);border-radius:16px;background:#071522;overflow:visible;box-shadow:var(--shadow);isolation:isolate}.wb-modebar{min-height:48px;display:flex;align-items:center;gap:8px;padding:8px 10px;border-bottom:1px solid var(--line);background:#0b1929;border-radius:16px 16px 0 0}.wb-mode{border:1px solid transparent;background:transparent;color:var(--muted);padding:7px 12px;border-radius:9px;font-weight:800;cursor:pointer}.wb-mode.active{background:#123050;border-color:#38658d;color:var(--text)}.wb-spacer{flex:1}.wb-virtual{font-size:11px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.wb-virtual b{color:var(--ok)}.wb-fullscreen{min-width:38px;padding:7px 10px!important;font-size:15px!important}.wb-error{padding:10px 14px;background:#2a111b;border-bottom:1px solid #723447;color:#ffd4db;font-size:12px}.wb-toolbar{position:relative;z-index:120;display:flex;align-items:center;gap:8px;padding:10px;border-bottom:1px solid var(--line);background:#091827;overflow:visible}.wb-search{min-width:260px;flex:1;border:1px solid var(--line);background:#071522;color:var(--text);border-radius:9px;padding:9px 11px;outline:0}.wb-search:focus{border-color:var(--brand)}.wb-toolbar .ghost,.wb-toolbar .primary{white-space:nowrap;padding:9px 11px;font-size:12px}.wb-toolbar button:disabled{opacity:.45}.wb-export{position:relative;z-index:300}.wb-export summary{list-style:none;white-space:nowrap;cursor:pointer}.wb-export summary::-webkit-details-marker{display:none}.wb-export-menu{position:absolute;right:0;top:calc(100% + 7px);z-index:5000;min-width:150px;padding:6px;background:#0c1b2d;border:1px solid var(--line);border-radius:10px;box-shadow:0 18px 50px rgba(0,0,0,.45)}.wb-export-menu button{display:block;width:100%;border:0;background:transparent;color:var(--text);text-align:left;padding:9px 10px;border-radius:7px;cursor:pointer}.wb-export-menu button:hover{background:#123050}.wb-main{position:relative;z-index:1;display:grid;grid-template-columns:245px minmax(0,1fr);min-height:690px;overflow:hidden}.wb-columns{min-width:0;border-right:1px solid var(--line);background:#081523;padding:12px;display:flex;flex-direction:column;gap:10px}.wb-columns-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.wb-columns-head strong{font-size:11px;letter-spacing:.09em;color:#c5d7eb}.wb-columns-head strong span{color:var(--muted);font-weight:600}.wb-columns-head div{display:flex;gap:5px}.wb-columns-head button{border:0;background:transparent;color:var(--brand);font-size:10px;cursor:pointer;padding:3px}.wb-columns>input{border:1px solid var(--line);background:#07111f;color:var(--text);border-radius:8px;padding:8px 9px;font-size:12px;outline:0}.wb-column-list{overflow:auto;display:flex;flex-direction:column;gap:2px;max-height:620px}.wb-column-list label{display:grid;grid-template-columns:18px minmax(0,1fr);grid-template-areas:'check name' 'check type';align-items:center;padding:6px 5px;border-radius:7px;cursor:pointer}.wb-column-list label:hover{background:#0c1c2e}.wb-column-list input{grid-area:check;margin:0}.wb-column-list span{grid-area:name;font:600 11px/1.25 ui-monospace,SFMono-Regular,Menlo,monospace;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.wb-column-list span.readonly{color:var(--muted)}.wb-column-list small{grid-area:type;font:9px/1.2 ui-monospace,SFMono-Regular,Menlo,monospace;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-top:3px}.wb-grid{min-width:0;background:#081523}.wb-status{min-height:34px;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:7px 11px;border-top:1px solid var(--line);background:#07111f;color:var(--muted);font:10px/1.4 ui-monospace,SFMono-Regular,Menlo,monospace;border-radius:0 0 16px 16px}.wb-loading{min-height:154px;padding:30px;border:1px solid var(--line);border-radius:14px;background:var(--panel);color:var(--cyan);display:flex;align-items:center;justify-content:center;gap:16px;text-align:left}.wb-loader-ring{width:34px;height:34px;flex:0 0 34px;border-radius:50%;border:3px solid color-mix(in srgb,var(--brand) 20%,transparent);border-top-color:var(--cyan);animation:wb-spin .75s linear infinite}.wb-loading strong{display:block;color:var(--text);font-size:14px}.wb-loading small{display:block;margin-top:4px;color:var(--muted);font-size:11px}.wb-loading-dots::after{content:'…';display:inline-block;width:18px;overflow:hidden;vertical-align:bottom;animation:wb-dots 1.15s steps(4,end) infinite}@keyframes wb-spin{to{transform:rotate(360deg)}}@keyframes wb-dots{0%{width:0}100%{width:18px}}.wb-sql{padding:16px}.wb-sql>p{margin:0 0 10px;color:var(--muted);font-size:12px}.wb-sql textarea{width:100%;min-height:150px;resize:vertical;border:1px solid var(--line);border-radius:10px;background:#06111d;color:#dbeafe;padding:12px;font:12px/1.55 ui-monospace,SFMono-Regular,Menlo,monospace;outline:0}.wb-sql textarea:focus{border-color:var(--brand)}.wb-sql>.primary{margin-top:10px}.wb-sql-result{margin-top:14px;max-height:520px}.wb-sql-empty{margin-top:14px;padding:25px;color:var(--muted);text-align:center}.wb-sort{max-width:180px;overflow:hidden;text-overflow:ellipsis}.wb-type-dot{width:7px;height:7px;border-radius:2px;display:inline-block;margin-right:5px}.workbench-shell.is-fullscreen{position:fixed;inset:8px;z-index:10000;border-radius:14px;display:flex;flex-direction:column;box-shadow:0 30px 100px rgba(0,0,0,.55)}.workbench-shell.is-fullscreen .wb-modebar{border-radius:14px 14px 0 0}.workbench-shell.is-fullscreen .wb-main{flex:1;min-height:0}.workbench-shell.is-fullscreen .wb-columns{min-height:0}.workbench-shell.is-fullscreen .wb-column-list{max-height:none;flex:1}.workbench-shell.is-fullscreen .wb-status{border-radius:0 0 14px 14px}.workbench-shell.is-fullscreen .wb-sql{flex:1;overflow:auto}.wb-fullscreen-open{overflow:hidden!important}
html[data-theme="light"] .workbench-shell{background:#fff}html[data-theme="light"] .wb-modebar{background:#f1f5f9}html[data-theme="light"] .wb-mode.active{background:#e3efff;border-color:#a6c3e6;color:#174b84}html[data-theme="light"] .wb-toolbar{background:#f7f9fc}html[data-theme="light"] .wb-search,html[data-theme="light"] .wb-columns>input{background:#fff;color:var(--text)}html[data-theme="light"] .wb-export-menu{background:#fff;box-shadow:0 18px 45px rgba(35,60,90,.18)}html[data-theme="light"] .wb-export-menu button:hover{background:#eef4fa}html[data-theme="light"] .wb-columns{background:#f7f9fc}html[data-theme="light"] .wb-columns-head strong{color:#31445a}html[data-theme="light"] .wb-column-list label:hover{background:#edf3f8}html[data-theme="light"] .wb-grid{background:#fff}html[data-theme="light"] .wb-status{background:#f7f9fc}html[data-theme="light"] .wb-sql textarea{background:#fff;color:#26394f}html[data-theme="light"] .wb-loading{background:#fff}
@media(max-width:900px){.wb-main{grid-template-columns:1fr}.wb-columns{border-right:0;border-bottom:1px solid var(--line);max-height:220px}.wb-column-list{max-height:130px}.wb-virtual{display:none}.wb-status{flex-wrap:wrap;justify-content:flex-start}.wb-toolbar{flex-wrap:wrap}.wb-search{min-width:min(100%,300px)}.workbench-shell.is-fullscreen{inset:4px}}
@media(max-width:620px){.wb-toolbar{padding:8px}.wb-search{min-width:100%;flex-basis:100%}.wb-main{min-height:520px}.wb-modebar{align-items:center}.wb-status span:nth-child(2){display:none}.wb-export{margin-left:auto}}

/* Let a small dataset and SQL result use only the room they need. */
.wb-main{min-height:0}.wb-columns{max-height:var(--wb-grid-height);min-height:0}.wb-column-list{max-height:none;min-height:0;flex:1}.wb-mode,.wb-toolbar button,.wb-export summary{min-height:44px}.wb-sql textarea{min-height:120px}.wb-sql-result{max-height:420px}.wb-modebar{flex-wrap:wrap}
@media(max-width:900px){.wb-main{display:flex;flex-direction:column;min-height:0}.wb-grid{order:0}.wb-columns{order:1;max-height:180px;border-top:1px solid var(--line);border-bottom:0}.wb-column-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));max-height:110px;flex:1}.wb-fullscreen{margin-left:auto}}

@media(max-width:900px){.workbench-shell.is-fullscreen .wb-grid,.workbench-shell.is-fullscreen .wb-columns{flex-shrink:0}}
@media(max-width:900px){.workbench-shell.is-fullscreen .wb-main{overflow-y:auto}}
