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