#pg-app{background:#fff;flex-direction:column;height:calc(100vh - 3.5rem);display:flex}@media (width>=1024px){#pg-app{height:100vh}}.pg-toolbar{background:#fafafa;border-bottom:1px solid #e4e4e7;flex-shrink:0;justify-content:space-between;align-items:center;gap:8px;height:44px;padding:0 12px;display:flex}.pg-toolbar-left{align-items:center;gap:8px;display:flex}.pg-toolbar-title{color:#18181b;letter-spacing:-.025em;font-size:.8125rem;font-weight:700}.pg-toolbar-actions{align-items:center;gap:4px;display:flex}.pg-sep{background:#e4e4e7;flex-shrink:0;width:1px;height:18px;margin:0 4px}.pg-icon{flex-shrink:0;width:14px;height:14px}.pg-icon-sm{flex-shrink:0;width:13px;height:13px}.ui-btn:disabled{opacity:.35;cursor:not-allowed;pointer-events:none}.pg-main{flex:1;display:flex;position:relative;overflow:hidden}#pg-app{scrollbar-color:#d4d4d8 transparent}#pg-app ::-webkit-scrollbar{width:6px;height:6px}#pg-app ::-webkit-scrollbar-track{background:0 0}#pg-app ::-webkit-scrollbar-thumb{background:#d4d4d8;border-radius:3px}#pg-app ::-webkit-scrollbar-thumb:hover{background:#a1a1aa}.pg-dark#pg-app{scrollbar-color:#262626 transparent}.pg-dark#pg-app ::-webkit-scrollbar-thumb{background:#262626}.pg-dark#pg-app ::-webkit-scrollbar-thumb:hover{background:#333}.pg-sidebar{background:#fafafa;border-right:1px solid #e4e4e7;flex-direction:column;flex-shrink:0;width:200px;transition:width .2s;display:flex;overflow:hidden}@media (width>=1024px){.sidebar-collapsed{transition:grid-template-columns .2s;grid-template-columns:0 1fr!important}.course-sidebar-hidden{opacity:0;pointer-events:none;border-right:none!important;width:0!important;min-width:0!important;overflow:hidden!important}}.pg-sidebar-header{border-bottom:1px solid #e4e4e7;justify-content:space-between;align-items:center;padding:8px 10px;display:flex}.pg-sidebar-title{text-transform:uppercase;letter-spacing:.05em;color:#a1a1aa;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:.625rem;font-weight:700}.pg-sidebar-action{color:#a1a1aa;cursor:pointer;background:0 0;border:none;border-radius:4px;align-items:center;padding:3px;transition:all .15s;display:flex}.pg-sidebar-action:hover{color:#18181b;background:#e4e4e7}.pg-toggle-sidebar svg{width:16px;height:16px}.pg-collapse-icon,.pg-expand-icon{display:block}.pg-toggle-sidebar.is-collapsed .pg-collapse-icon,.pg-toggle-sidebar:not(.is-collapsed) .pg-expand-icon{display:none}.pg-table-list{flex:1;padding:4px 0;overflow-y:auto}.pg-table-item{color:#27272a;cursor:pointer;text-align:left;background:0 0;border:none;align-items:center;gap:8px;width:100%;padding:5px 10px;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:.75rem;transition:all .1s;display:flex}.pg-table-item:hover{background:#e4e4e7}.pg-table-item.pg-system{color:#a1a1aa}.pg-empty{color:#a1a1aa;text-align:center;padding:20px 10px;font-size:.75rem;font-style:italic}.pg-workspace{flex-direction:column;flex:1;min-width:0;display:flex;overflow:hidden}.pg-tabs-bar{background:#fafafa;border-bottom:1px solid #e4e4e7;flex-shrink:0;align-items:stretch;min-height:34px;display:flex}.pg-tabs-scroll{scrollbar-width:none;flex:1;display:flex;overflow-x:auto}.pg-tabs-scroll::-webkit-scrollbar{display:none}.pg-tab{color:#a1a1aa;cursor:pointer;white-space:nowrap;border-right:1px solid #e4e4e7;flex-shrink:0;align-items:center;gap:6px;height:34px;padding:0 12px;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:.6875rem;font-weight:500;transition:all .1s;display:flex;position:relative}.pg-tab:hover{color:#52525b;background:#fff}.pg-tab.active{color:#18181b;background:#fff;font-weight:600}.pg-tab.active:after{content:"";background:#18181b;height:2px;position:absolute;bottom:-1px;left:0;right:0}.pg-tab-icon{opacity:.4;flex-shrink:0;width:12px;height:12px}.pg-tab.active .pg-tab-icon{opacity:.7}.pg-tab-name{text-overflow:ellipsis;max-width:120px;overflow:hidden}.pg-tab-close{color:inherit;cursor:pointer;opacity:0;background:0 0;border:none;border-radius:3px;padding:0 2px;font-size:14px;line-height:1;transition:opacity .1s}.pg-tab:hover .pg-tab-close{opacity:.5}.pg-tab-close:hover{color:#18181b;background:#e4e4e7;opacity:1!important}.pg-tab-rename{color:#18181b;background:#fff;border:1px solid #18181b;border-radius:3px;outline:none;padding:0 4px;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:.6875rem}.pg-add-tab{color:#a1a1aa;cursor:pointer;background:0 0;border:none;border-radius:4px;flex-shrink:0;justify-content:center;align-items:center;width:28px;height:28px;margin:3px 4px;transition:all .1s;display:flex}.pg-add-tab:hover{color:#18181b;background:#e4e4e7}.pg-editor-area{flex-direction:column;flex:0 0 50%;min-height:60px;display:flex;overflow:hidden}.pg-editor{flex:1;overflow:auto}.pg-editor .cm-editor{height:100%}.pg-editor .cm-scroller{overflow:auto}.pg-editor .cm-active-statement{background:#eab3080f;box-shadow:inset 3px 0 #eab308}.pg-editor .cm-active-statement.cm-activeLine{background:#eab30824}.pg-resize-handle{cursor:row-resize;background:#e4e4e7;flex-shrink:0;height:4px;transition:background .15s}.pg-resize-handle:hover,.pg-resize-handle:active{background:#18181b}.pg-results-area{background:#fff;flex-direction:column;flex:1;min-height:40px;display:flex;overflow:hidden}.pg-results-header{background:#fafafa;border-bottom:1px solid #e4e4e7;flex-shrink:0;justify-content:space-between;align-items:center;gap:8px;height:30px;padding:0 12px;display:flex}.pg-results-label{text-transform:uppercase;letter-spacing:.05em;color:#a1a1aa;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:.625rem;font-weight:700}.pg-results-meta{align-items:center;gap:0;font-size:.6875rem;display:flex}.pg-meta{font-weight:600}.pg-meta-ok{color:#16a34a}.pg-meta-err{color:#991b1b}.pg-meta-dim{color:#a1a1aa;margin:0 6px}.pg-results-content{flex:1;overflow:auto}.pg-row-count{color:#a1a1aa;padding:6px 12px 2px;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:.6875rem}.pg-table-wrap{border-radius:.5rem;margin:4px 8px 8px;overflow-x:auto;box-shadow:0 1px 3px #0000000f,0 0 0 1px #0000000a}.pg-table{border-collapse:collapse;width:100%;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:.75rem}.pg-table th{text-align:left;color:#52525b;white-space:nowrap;z-index:1;background:#fff;border-bottom:1px solid #f4f4f5;padding:.5rem .75rem;font-weight:600;position:sticky;top:0}.pg-table td{color:#18181b;white-space:nowrap;text-overflow:ellipsis;background:#fff;border-bottom:1px solid #f4f4f5;max-width:300px;padding:.375rem .75rem;overflow:hidden}.pg-table tr:nth-child(2n) td{background:#fafafa}.pg-table tbody tr:hover td{background:#f4f4f5}.pg-th-sortable{cursor:pointer;user-select:none;position:relative}.pg-th-sortable:hover{background:#f4f4f5}.pg-sort-indicator{opacity:0;vertical-align:middle;margin-left:4px;transition:opacity .15s;display:inline-flex}.pg-th-sortable:hover .pg-sort-indicator{opacity:.4}.pg-th-sorted .pg-sort-indicator{opacity:.8!important}.pg-sort-icon{width:14px;height:14px}.pg-empty-row{text-align:center;color:#a1a1aa;font-family:system-ui,-apple-system,sans-serif;font-style:italic;padding:24px 16px!important}.pg-data-toolbar{border-bottom:1px solid #f4f4f5;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;padding:6px 12px;display:flex}.pg-data-toolbar-left,.pg-data-toolbar-right{align-items:center;gap:8px;display:flex}.pg-filter-toggle{color:#52525b;cursor:pointer;background:#fff;border:1px solid #e4e4e7;border-radius:6px;align-items:center;gap:5px;padding:4px 10px;font-family:inherit;font-size:.6875rem;font-weight:500;transition:all .15s;display:inline-flex}.pg-filter-toggle:hover{background:#f4f4f5;border-color:#d4d4d8}.pg-filter-toggle.pg-filter-active{color:#6d28d9;background:#f5f3ff;border-color:#818cf8}.pg-filter-toggle.pg-filter-open{color:#52525b;background:#f4f4f5;border-color:#d4d4d8}.pg-filter-toggle.pg-filter-disabled{color:#dc2626;background:#fef2f2;border-color:#fca5a5}.pg-filter-badge{color:#fff;background:#6d28d9;border-radius:8px;justify-content:center;align-items:center;min-width:16px;height:16px;padding:0 4px;font-size:.5625rem;font-weight:700;line-height:1;display:inline-flex}.pg-filter-panel{background:#fafafa;border-bottom:1px solid #f4f4f5;padding:0 12px 8px;transition:opacity .2s}.pg-filter-panel.pg-filters-off .pg-filter-rows,.pg-filter-panel.pg-filters-off .pg-filter-add{opacity:.35;pointer-events:none}.pg-filter-panel-header{justify-content:space-between;align-items:center;padding:6px 0 4px;display:flex}.pg-filter-panel-title{text-transform:uppercase;letter-spacing:.04em;color:#a1a1aa;font-size:.625rem;font-weight:600}.pg-filter-panel-close{color:#a1a1aa;cursor:pointer;background:0 0;border:none;border-radius:4px;justify-content:center;align-items:center;width:20px;height:20px;transition:all .15s;display:inline-flex}.pg-filter-panel-close:hover{color:#52525b;background:#e4e4e7}.pg-filter-rows{flex-direction:column;gap:6px;display:flex}.pg-filter-row{flex-wrap:wrap;align-items:center;gap:6px;display:flex}.pg-filter-empty{color:#a1a1aa;padding:4px 0;font-size:.6875rem;font-style:italic}.pg-filter-col,.pg-filter-op{color:#18181b;cursor:pointer;background:#fff;border:1px solid #e4e4e7;border-radius:5px;outline:none;padding:4px 8px;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:.6875rem}.pg-filter-col:focus,.pg-filter-op:focus{border-color:#818cf8}.pg-filter-val{color:#18181b;background:#fff;border:1px solid #e4e4e7;border-radius:5px;outline:none;min-width:80px;max-width:180px;padding:4px 8px;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:.6875rem}.pg-filter-val:focus{border-color:#818cf8}.pg-filter-val::placeholder{color:#a1a1aa}.pg-filter-remove{color:#a1a1aa;cursor:pointer;background:0 0;border:none;border-radius:4px;flex-shrink:0;justify-content:center;align-items:center;width:24px;height:24px;transition:all .15s;display:inline-flex}.pg-filter-remove:hover{color:#dc2626;background:#fef2f2}.pg-filter-add{color:#71717a;cursor:pointer;background:0 0;border:1px dashed #d4d4d8;border-radius:5px;align-items:center;gap:4px;margin-top:6px;padding:4px 10px;font-family:inherit;font-size:.6875rem;transition:all .15s;display:inline-flex}.pg-filter-add:hover{color:#6d28d9;background:#f5f3ff;border-color:#818cf8}.pg-page-size-wrap{align-items:center;gap:4px;display:flex}.pg-page-label{color:#71717a;font-size:.6875rem}.pg-page-select{color:#18181b;cursor:pointer;background:#fff;border:1px solid #e4e4e7;border-radius:5px;outline:none;padding:3px 6px;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:.6875rem}.pg-page-info{color:#71717a;white-space:nowrap;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:.6875rem}.pg-page-nav{align-items:center;gap:2px;display:flex}.pg-page-btn{color:#52525b;cursor:pointer;background:0 0;border:1px solid #e4e4e7;border-radius:5px;justify-content:center;align-items:center;width:26px;height:26px;transition:all .15s;display:inline-flex}.pg-page-btn:hover:not(:disabled){background:#f4f4f5;border-color:#d4d4d8}.pg-page-btn:disabled{opacity:.3;cursor:not-allowed}.pg-page-current{color:#52525b;white-space:nowrap;padding:0 6px;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:.6875rem}.pg-sql-bar{background:#f8f8fa;border-bottom:1px solid #f4f4f5;align-items:center;gap:8px;padding:6px 12px;display:flex}.pg-sql-text{color:#3f3f46;white-space:nowrap;text-overflow:ellipsis;flex:1;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:.6875rem;line-height:1.4;overflow:hidden}.pg-sql-copy{color:#a1a1aa;cursor:pointer;background:0 0;border:1px solid #e4e4e7;border-radius:5px;flex-shrink:0;justify-content:center;align-items:center;width:26px;height:26px;transition:all .15s;display:inline-flex}.pg-sql-copy:hover{color:#18181b;background:#f4f4f5;border-color:#d4d4d8}.pg-sql-copied{color:#16a34a!important;border-color:#16a34a!important}.pg-editable{cursor:text}.pg-editable:hover{outline-offset:-1px;outline:1px solid #d4d4d8}.pg-null{color:#a1a1aa;font-style:italic}.pg-th-actions,.pg-td-actions{text-align:center;background:inherit;width:32px;padding:0 4px!important}.pg-row-delete{color:#d4d4d8;cursor:pointer;background:0 0;border:none;border-radius:4px;justify-content:center;align-items:center;padding:2px;transition:all .15s;display:inline-flex}.pg-row-delete:hover{color:#dc2626;background:#fef2f2}.pg-table tbody tr:hover .pg-row-delete{color:#a1a1aa}.pg-table tbody tr:hover .pg-row-delete:hover{color:#dc2626}.pg-tooltip{z-index:9999;color:#fafafa;white-space:nowrap;pointer-events:none;opacity:0;background:#18181b;border-radius:6px;padding:3px 8px;font-size:.625rem;font-weight:500;transition:opacity .15s,translate .15s;position:fixed;translate:0 4px}.pg-tooltip.visible{opacity:1;translate:0}.pg-cell-input{color:#18181b;background:#fff;border:1.5px solid #18181b;border-radius:3px;outline:none;width:100%;padding:1px 4px;font-family:inherit;font-size:.75rem}.pg-summary{color:#166534;background:#f0fdf4;border-radius:.5rem;align-items:center;gap:10px;margin:8px;padding:16px;font-size:.8125rem;display:flex}.pg-summary-check{flex-shrink:0;font-size:1rem}.pg-summary-detail{color:#166534;opacity:.7;font-size:.75rem}.pg-error{color:#991b1b;word-break:break-word;background:#fef2f2;border-radius:.5rem;align-items:flex-start;gap:8px;margin:8px;padding:12px 16px;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:.8125rem;line-height:1.5;display:flex}.pg-error-x{flex-shrink:0;font-weight:700}.pg-toast{color:#991b1b;z-index:1000;background:#fef2f2;border:1px solid #fecaca;border-radius:.5rem;padding:10px 16px;font-size:.75rem;animation:.2s ease-out pg-toast-in;position:fixed;bottom:20px;right:20px;box-shadow:0 4px 12px #00000014}@keyframes pg-toast-in{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}.pg-dark-toggle{color:#a1a1aa;cursor:pointer;background:0 0;border:none;border-radius:6px;justify-content:center;align-items:center;margin-left:4px;padding:4px;transition:all .15s;display:flex}.pg-dark-toggle:hover{color:#18181b;background:#e4e4e7}.pg-dark-toggle svg{width:16px;height:16px}.pg-moon-icon,.pg-dark .pg-sun-icon{display:none}.pg-dark .pg-moon-icon{display:block}.pg-dark .pg-dark-toggle{color:#a1a1a1}.pg-dark .pg-dark-toggle:hover{color:#ededed;background:#262626}@media (width<=768px){.pg-sidebar,.pg-toolbar .ui-btn-label{display:none}.pg-toolbar .ui-btn-sm{padding:5px 7px}.pg-toolbar .ui-shortcut{display:none}.pg-toolbar{padding:0 8px}.pg-toolbar-actions{gap:2px}.pg-data-toolbar{flex-direction:column;align-items:stretch;gap:6px}.pg-data-toolbar-left{flex-wrap:wrap}.pg-data-toolbar-right{justify-content:space-between}.pg-filter-row{flex-wrap:wrap}.pg-filter-val{flex:1;min-width:60px}.pg-sql-text{font-size:.625rem}}.pg-dark{color:#ededed;background:#000}.pg-dark .pg-toolbar{background:#0a0a0a;border-bottom-color:#1a1a1a}.pg-dark .pg-toolbar-title{color:#ededed}.pg-dark .pg-toolbar-left .pg-icon{color:#a1a1a1}.pg-dark .pg-sep{background:#1a1a1a}.pg-dark .ui-btn-primary{color:#000;background:#fff}.pg-dark .ui-btn-primary:hover{background:#e5e5e5}.pg-dark .ui-btn-secondary{color:#ededed;background:#1a1a1a;border-color:#262626}.pg-dark .ui-btn-secondary:hover{background:#262626;border-color:#333}.pg-dark .ui-btn-ghost{color:#a1a1a1}.pg-dark .ui-btn-ghost:hover{color:#ededed;background:#1a1a1a}.pg-dark .ui-btn-danger{color:#ff6369}.pg-dark .ui-btn-danger:hover{background:#ff63691a}.pg-dark .ui-btn-primary .ui-shortcut kbd{background:#00000040}.pg-dark .ui-btn-secondary .ui-shortcut kbd{color:#a1a1a1;background:#ededed1a}.pg-dark .pg-sidebar{background:#0a0a0a;border-right-color:#1a1a1a}.pg-dark .pg-sidebar-header{border-bottom-color:#1a1a1a}.pg-dark .pg-sidebar-title,.pg-dark .pg-sidebar-action{color:#666}.pg-dark .pg-sidebar-action:hover{color:#ededed;background:#1a1a1a}.pg-dark .pg-table-item{color:#ededed}.pg-dark .pg-table-item:hover{background:#1a1a1a}.pg-dark .pg-table-item.pg-system,.pg-dark .pg-empty{color:#666}.pg-dark .pg-tabs-bar{background:#0a0a0a;border-bottom-color:#1a1a1a}.pg-dark .pg-tab{color:#666;border-right-color:#1a1a1a}.pg-dark .pg-tab:hover{color:#a1a1a1;background:#000}.pg-dark .pg-tab.active{color:#ededed;background:#000}.pg-dark .pg-tab.active:after{background:#fff}.pg-dark .pg-tab-close:hover{color:#ededed;background:#1a1a1a}.pg-dark .pg-tab-rename{color:#ededed;background:#1a1a1a;border-color:#fff}.pg-dark .pg-add-tab{color:#666}.pg-dark .pg-add-tab:hover{color:#ededed;background:#1a1a1a}.pg-dark .pg-resize-handle{background:#1a1a1a}.pg-dark .pg-resize-handle:hover,.pg-dark .pg-resize-handle:active{background:#fff}.pg-dark .pg-results-area{background:#000}.pg-dark .pg-results-header{background:#0a0a0a;border-bottom-color:#1a1a1a}.pg-dark .pg-results-label{color:#666}.pg-dark .pg-meta-ok{color:#4ade80}.pg-dark .pg-meta-err{color:#ff6369}.pg-dark .pg-meta-dim,.pg-dark .pg-row-count{color:#666}.pg-dark .pg-table-wrap{box-shadow:0 1px 3px #0000004d,0 0 0 1px #1a1a1a}.pg-dark .pg-table th{color:#a1a1a1;background:#0a0a0a;border-bottom-color:#1a1a1a}.pg-dark .pg-table td{color:#ededed;background:#000;border-bottom-color:#1a1a1a}.pg-dark .pg-table tr:nth-child(2n) td{background:#0a0a0a}.pg-dark .pg-table tbody tr:hover td,.pg-dark .pg-th-sortable:hover{background:#111}.pg-dark .pg-empty-row{color:#666}.pg-dark .pg-data-toolbar{border-bottom-color:#1a1a1a}.pg-dark .pg-filter-toggle{color:#a1a1a1;background:#1a1a1a;border-color:#262626}.pg-dark .pg-filter-toggle:hover{background:#262626;border-color:#333}.pg-dark .pg-filter-toggle.pg-filter-active{color:#a78bfa;background:#cba6f71a;border-color:#a78bfa}.pg-dark .pg-filter-toggle.pg-filter-open{color:#a1a1a1;background:#262626;border-color:#333}.pg-dark .pg-filter-toggle.pg-filter-disabled{color:#ff6369;background:#ff63691a;border-color:#ff636966}.pg-dark .pg-filter-badge{color:#000;background:#a78bfa}.pg-dark .pg-filter-panel{background:#0a0a0a;border-bottom-color:#1a1a1a}.pg-dark .pg-filter-panel-title,.pg-dark .pg-filter-panel-close{color:#666}.pg-dark .pg-filter-panel-close:hover{color:#a1a1a1;background:#1a1a1a}.pg-dark .pg-filter-empty{color:#666}.pg-dark .pg-filter-col,.pg-dark .pg-filter-op{color:#ededed;background:#1a1a1a;border-color:#262626}.pg-dark .pg-filter-col:focus,.pg-dark .pg-filter-op:focus{border-color:#a78bfa}.pg-dark .pg-filter-val{color:#ededed;background:#1a1a1a;border-color:#262626}.pg-dark .pg-filter-val:focus{border-color:#a78bfa}.pg-dark .pg-filter-val::placeholder{color:#666}.pg-dark .pg-filter-remove:hover{color:#ff6369;background:#ff63691a}.pg-dark .pg-filter-add{color:#666;border-color:#262626}.pg-dark .pg-filter-add:hover{color:#a78bfa;background:#cba6f71a;border-color:#a78bfa}.pg-dark .pg-page-label{color:#666}.pg-dark .pg-page-select{color:#ededed;background:#1a1a1a;border-color:#262626}.pg-dark .pg-page-info{color:#666}.pg-dark .pg-page-btn{color:#a1a1a1;border-color:#262626}.pg-dark .pg-page-btn:hover:not(:disabled){background:#1a1a1a;border-color:#333}.pg-dark .pg-page-current{color:#a1a1a1}.pg-dark .pg-sql-bar{background:#0a0a0a;border-bottom-color:#1a1a1a}.pg-dark .pg-sql-text{color:#a1a1a1}.pg-dark .pg-sql-copy{color:#666;border-color:#262626}.pg-dark .pg-sql-copy:hover{color:#ededed;background:#1a1a1a;border-color:#333}.pg-dark .pg-sql-copied{color:#4ade80!important;border-color:#4ade80!important}.pg-dark .pg-editable:hover{outline-color:#262626}.pg-dark .pg-null{color:#666}.pg-dark .pg-cell-input{color:#ededed;background:#1a1a1a;border-color:#fff}.pg-dark .pg-row-delete{color:#262626}.pg-dark .pg-row-delete:hover{color:#ff6369;background:#ff63691a}.pg-dark .pg-table tbody tr:hover .pg-row-delete{color:#666}.pg-dark .pg-table tbody tr:hover .pg-row-delete:hover{color:#ff6369}.pg-dark .pg-tooltip{color:#ededed;background:#1a1a1a}.pg-dark .pg-summary{color:#4ade80;background:#4ade801a}.pg-dark .pg-summary-detail{color:#4ade80}.pg-dark .pg-error{color:#ff6369;background:#ff63691a}.pg-dark .pg-toast{color:#ff6369;background:#ff636926;border-color:#ff63694d}.pg-dark .pg-editor .cm-active-statement{background:#fafafa0f;box-shadow:inset 3px 0 #fafafa}.pg-dark .pg-editor .cm-active-statement.cm-activeLine{background:#fafafa1f}.pg-ai-btn{position:relative}.pg-ai-btn:disabled{opacity:.35;cursor:not-allowed;pointer-events:none}.pg-ai-dot{border:1.5px solid #fafafa;border-radius:50%;width:7px;height:7px;position:absolute;top:3px;right:3px}.pg-ai-dot-red{background:#ef4444}.pg-ai-dot-gray{background:#a1a1aa}.pg-ai-dot-yellow{background:#eab308}.pg-ai-dot-green{background:#22c55e}.pg-dark .pg-ai-dot{border-color:#0a0a0a}.pg-ai-sidebar{background:#fafafa;border-left:0 solid #e4e4e7;flex-direction:column;flex-shrink:0;width:0;min-width:0;transition:width .25s,min-width .25s,border-left-width .25s;display:flex;overflow:hidden}.pg-ai-sidebar.pg-ai-open{border-left-width:1px;width:340px;min-width:340px}.pg-ai-sidebar>*{opacity:0;min-width:340px;transition:opacity .15s}.pg-ai-sidebar.pg-ai-open>*{opacity:1;transition:opacity .2s .15s}.pg-ai-header{border-bottom:1px solid #e4e4e7;flex-shrink:0;justify-content:space-between;align-items:center;padding:8px 10px;display:flex}.pg-ai-title{text-transform:uppercase;letter-spacing:.05em;color:#a1a1aa;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:.625rem;font-weight:700}.pg-ai-progress{border-bottom:1px solid #e4e4e7;flex-shrink:0;padding:10px 12px}.pg-ai-progress-text{color:#52525b;margin-bottom:6px;font-size:.6875rem;display:block}.pg-ai-progress-track{background:#e4e4e7;border-radius:2px;height:4px;overflow:hidden}.pg-ai-progress-fill{background:#eab308;border-radius:2px;width:0%;height:100%;transition:width .3s}.pg-ai-messages{flex-direction:column;flex:1;gap:8px;padding:8px;display:flex;overflow-y:auto}.pg-ai-welcome{text-align:center;color:#a1a1aa;flex-direction:column;flex:1;justify-content:center;align-items:center;gap:10px;padding:32px 16px;display:flex}.pg-ai-welcome-icon{opacity:.4;width:32px;height:32px}.pg-ai-welcome p{max-width:240px;font-size:.75rem;line-height:1.5}.pg-ai-msg{display:flex}.pg-ai-msg-user{justify-content:flex-end}.pg-ai-msg-ai{justify-content:flex-start}.pg-ai-msg-content{border-radius:12px;max-width:95%;padding:8px 12px;font-size:.75rem;line-height:1.5}.pg-ai-msg-user .pg-ai-msg-content{color:#fff;background:#18181b;border-bottom-right-radius:3px}.pg-ai-msg-ai .pg-ai-msg-content{color:#3f3f46;background:#fff;border:1px solid #e4e4e7;border-bottom-left-radius:3px;width:100%;max-width:100%;padding:6px 0}.pg-ai-msg-text{word-break:break-word;padding:0 10px}.pg-ai-msg-error .pg-ai-msg-content{color:#991b1b;background:#fef2f2;border-color:#fecaca;padding:8px 12px}.pg-ai-code{background:#f4f4f5;border-radius:6px;margin:6px 8px 2px;padding:10px 12px;font-size:.7rem;line-height:1.6}.pg-ai-code code{white-space:pre-wrap;word-break:break-word;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace}.pg-hl-kw{color:#a626a4;font-weight:600}.pg-hl-str{color:#50a14f}.pg-hl-num{color:#986801}.pg-hl-comment{color:#a0a1a7;font-style:italic}.pg-ai-inline-code{color:#a626a4;background:#f4f4f5;border-radius:4px;padding:1px 5px;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:.7rem}.pg-ai-actions{gap:6px;padding:6px 10px 4px;display:flex}.pg-ai-action-btn{color:#52525b;cursor:pointer;background:#fafafa;border:1px solid #e4e4e7;border-radius:4px;align-items:center;gap:4px;padding:3px 8px;font-family:inherit;font-size:.625rem;font-weight:600;transition:all .15s;display:inline-flex}.pg-ai-action-icon{flex-shrink:0;width:10px;height:10px}.pg-ai-action-btn:hover{color:#18181b;background:#e4e4e7}.pg-ai-action-run{color:#fff;background:#18181b;border-color:#18181b}.pg-ai-action-run:hover{background:#27272a}.pg-ai-input-area{border-top:1px solid #e4e4e7;flex-shrink:0;align-items:flex-end;gap:6px;padding:8px;display:flex}.pg-ai-input{color:#18181b;resize:none;field-sizing:content;background:#fff;border:1px solid #d4d4d8;border-radius:8px;outline:none;flex:1;max-height:120px;padding:8px 10px;font-family:inherit;font-size:.75rem;line-height:1.4;transition:border-color .15s}.pg-ai-input:focus{border-color:#18181b}.pg-ai-input::placeholder{color:#a1a1aa}.pg-ai-send{color:#fff;cursor:pointer;background:#18181b;border:none;border-radius:8px;flex-shrink:0;justify-content:center;align-items:center;width:32px;height:32px;transition:all .15s;display:flex}.pg-ai-send:hover{background:#27272a}.pg-dark .pg-ai-sidebar{background:#0a0a0a;border-left-color:#1a1a1a}.pg-dark .pg-ai-header{border-bottom-color:#1a1a1a}.pg-dark .pg-ai-title{color:#666}.pg-dark .pg-ai-progress{border-bottom-color:#1a1a1a}.pg-dark .pg-ai-progress-text{color:#a1a1a1}.pg-dark .pg-ai-progress-track{background:#1a1a1a}.pg-dark .pg-ai-progress-fill{background:#fafafa}.pg-dark .pg-ai-welcome{color:#666}.pg-dark .pg-ai-msg-user .pg-ai-msg-content{color:#000;background:#fff}.pg-dark .pg-ai-msg-ai .pg-ai-msg-content{color:#a1a1a1;background:#1a1a1a;border-color:#262626}.pg-dark .pg-ai-msg-error .pg-ai-msg-content{color:#ff6369;background:#ff63691a;border-color:#ff63694d}.pg-dark .pg-ai-code{background:#000}.pg-dark .pg-hl-kw{color:#a78bfa}.pg-dark .pg-hl-str{color:#4ade80}.pg-dark .pg-hl-num{color:#fbbf24}.pg-dark .pg-hl-comment{color:#666}.pg-dark .pg-ai-inline-code{color:#a78bfa;background:#ededed1a}.pg-dark .pg-ai-action-btn{color:#a1a1a1;background:#1a1a1a;border-color:#262626}.pg-dark .pg-ai-action-btn:hover{color:#ededed;background:#262626}.pg-dark .pg-ai-action-run{color:#000;background:#fff;border-color:#fff}.pg-dark .pg-ai-action-run:hover{background:#e5e5e5}.pg-dark .pg-ai-input-area{border-top-color:#1a1a1a}.pg-dark .pg-ai-input{color:#ededed;background:#1a1a1a;border-color:#262626}.pg-dark .pg-ai-input:focus{border-color:#fff}.pg-dark .pg-ai-input::placeholder{color:#666}.pg-dark .pg-ai-send{color:#000;background:#fff}.pg-dark .pg-ai-send:hover{background:#e5e5e5}@media (width<=768px){.pg-ai-sidebar.pg-ai-open{width:280px;min-width:280px}.pg-ai-sidebar>*{min-width:280px}.pg-ai-btn .ui-btn-label{display:none}}html.dark #pg-app{color:#ededed;background:#000}html.dark .pg-toolbar{background:#0a0a0a;border-bottom-color:#1a1a1a}html.dark .pg-toolbar-title{color:#ededed}html.dark .pg-toolbar-left .pg-icon{color:#a1a1a1}html.dark .pg-sep{background:#1a1a1a}html.dark .pg-sidebar{background:#0a0a0a;border-right-color:#1a1a1a}html.dark .pg-sidebar-header{border-bottom-color:#1a1a1a}html.dark .pg-sidebar-title{color:#666}html.dark .pg-tabs-bar{background:#0a0a0a;border-bottom-color:#1a1a1a}html.dark .pg-results-area{background:#000}html.dark .pg-results-header{background:#0a0a0a;border-bottom-color:#1a1a1a}html.dark .pg-results-label{color:#666}html.dark .pg-resize-handle{background:#1a1a1a}html.dark .pg-empty{color:#666}html.dark .pg-ai-sidebar{background:#0a0a0a;border-left-color:#1a1a1a}html.dark .ui-btn-ghost{color:#a1a1a1}html.dark .ui-btn-primary{color:#000;background:#fff}html.dark .ui-btn-secondary{color:#ededed;background:#1a1a1a;border-color:#262626}html.dark .ui-btn-danger{color:#ff6369}html.dark .pg-dark-toggle{color:#a1a1a1}.pg-sidebar-actions{gap:2px;display:flex}.pg-er-overlay{z-index:50;background:#f4f4f5;flex-direction:column;display:flex;position:absolute;inset:0}.pg-er-toolbar{background:#fafafa;border-bottom:1px solid #e4e4e7;flex-shrink:0;justify-content:space-between;align-items:center;padding:8px 12px;display:flex}.pg-er-title{color:#27272a;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:.75rem;font-weight:700}.pg-er-toolbar-actions{gap:4px;display:flex}.pg-er-canvas{cursor:grab;flex:1;position:relative;overflow:hidden}.pg-er-canvas:active{cursor:grabbing}.pg-er-svg{pointer-events:none;transform-origin:0 0;width:100%;height:100%;position:absolute;inset:0;overflow:visible}.pg-er-tables{transform-origin:0 0;position:absolute;inset:0}.pg-er-line{fill:none;stroke:var(--er-line-color,#a1a1aa);stroke-width:1.5px}.pg-er-card{background:#fff;border:1px solid #e4e4e7;border-radius:8px;min-width:180px;max-width:280px;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:.7rem;transition:box-shadow .15s;position:absolute;overflow:hidden;box-shadow:0 1px 3px #00000014,0 1px 2px #0000000a}.pg-er-card:hover{box-shadow:0 4px 12px #0000001a}.pg-er-card.pg-er-dragging{z-index:10;box-shadow:0 8px 24px #00000026}.pg-er-card-header{color:#fff;cursor:grab;user-select:none;background:#18181b;align-items:center;gap:6px;padding:6px 10px;font-size:.72rem;font-weight:700;display:flex}.pg-er-card-header:active{cursor:grabbing}.pg-er-card-icon{flex-shrink:0;width:14px;height:14px}.pg-er-col{border-top:1px solid #f4f4f5;justify-content:space-between;align-items:center;gap:8px;padding:4px 10px;display:flex}.pg-er-col:first-of-type{border-top:none}.pg-er-col-name{color:#27272a;white-space:nowrap}.pg-er-col-meta{align-items:center;gap:4px;display:flex}.pg-er-col-type{color:#a1a1aa;white-space:nowrap;font-size:.625rem}.pg-er-badge{letter-spacing:.02em;border-radius:3px;align-items:center;padding:0 4px;font-size:.55rem;font-weight:700;line-height:1.5;display:inline-flex}.pg-er-pk{color:#92400e;background:#fef3c7}.pg-er-fk{color:#1e40af;background:#dbeafe}.pg-dark .pg-er-overlay{background:#000}.pg-dark .pg-er-toolbar{background:#0a0a0a;border-bottom-color:#1a1a1a}.pg-dark .pg-er-title{color:#ededed}.pg-dark .pg-er-card{background:#000;border-color:#1a1a1a;box-shadow:0 1px 3px #0000004d}.pg-dark .pg-er-card:hover{box-shadow:0 4px 12px #0006}.pg-dark .pg-er-card.pg-er-dragging{box-shadow:0 8px 24px #00000080}.pg-dark .pg-er-card-header{color:#ededed;background:#1a1a1a}.pg-dark .pg-er-col{border-top-color:#1a1a1a}.pg-dark .pg-er-col-name{color:#ededed}.pg-dark .pg-er-col-type{color:#666}.pg-dark .pg-er-pk{color:#fafafa;background:#fafafa26}.pg-dark .pg-er-fk{color:#fff;background:#ffffff26}.pg-dark .pg-er-line{--er-line-color:#333;stroke:#333}.pg-dark #er-arrow polygon{fill:#333}html.dark .pg-er-overlay{background:#000}html.dark .pg-er-toolbar{background:#0a0a0a;border-bottom-color:#1a1a1a}html.dark .pg-er-title{color:#ededed}html.dark .pg-er-card{background:#000;border-color:#1a1a1a}html.dark .pg-er-card-header{color:#ededed;background:#1a1a1a}html.dark .pg-er-col{border-top-color:#1a1a1a}html.dark .pg-er-col-name{color:#ededed}html.dark .pg-er-col-type{color:#666}
