:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;--brand:#087f73;--brand-hover:#06685f;--brand-soft:#edf8f7;--accent:#2563eb;--heading:#0f172a;--text:#334155;--muted:#64748b;--border:#d8e0ea;--surface:#fff;--background:#f6f8fb;--radius:10px;--shadow:0 1px 2px #0f172a0a, 0 8px 24px #0f172a0f;--sans:Roboto, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;--mono:"Roboto Mono", "SFMono-Regular", Consolas, monospace}:root[data-theme=dark]{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--brand-soft:#123c39;--heading:#f1f5f9;--text:#cbd5e1;--muted:#94a3b8;--border:#334155;--surface:#172033;--background:#0f172a;--shadow:0 1px 2px #0003, 0 8px 24px #00000038}*{box-sizing:border-box}body{background:var(--background);min-height:100vh;color:var(--text);font:14px/1.5 var(--sans);margin:0;padding-top:64px;overflow-y:auto}button,a{transition:background-color .15s,border-color .15s,color .15s,box-shadow .15s,transform .15s}button:focus-visible,a:focus-visible{outline-offset:2px;outline:3px solid #60a5fa73}button:disabled{cursor:not-allowed;opacity:.52}pre,h1,h2{margin:0}.sr-only{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;padding:0;position:absolute;overflow:hidden}.p-4{padding:4px}.flex{display:flex}.justify-between{justify-content:space-between}.top-bar{z-index:10;background:var(--brand);border-bottom:1px solid #ffffff1a;justify-content:space-between;align-items:center;height:64px;padding:0 24px;display:flex;position:fixed;inset:0 0 auto;box-shadow:0 2px 12px #0f172a29}.brand{color:#fff;align-items:center;margin-left:20px;display:flex}.logo{width:30px;height:30px}.logo-section{flex-direction:column;padding-left:11px;display:flex}.main-title{letter-spacing:-.015em;font-size:17px;font-weight:700;line-height:1.1}.sub-title{color:#cbd5e1;margin-top:3px;font-size:12px}.sub-title a{color:#e2e8f0}.top-links{align-items:center;gap:3px;margin-right:12px;display:flex}.top-links a,.share-btn{color:#dbe4f0;cursor:pointer;font:inherit;background:0 0;border:0;border-radius:6px;padding:7px 9px;font-size:14px;text-decoration:none}.theme-control{color:#fff;cursor:pointer;background:0 0;border:0;border-radius:6px;justify-content:center;align-items:center;width:34px;height:34px;margin-inline:4px;padding:6px;display:flex}.theme-control:hover{background:var(--brand-hover)}.theme-icon{fill:currentColor;width:22px;height:22px;display:none}.theme-control[data-theme=auto] .theme-icon-auto,.theme-control[data-theme=light] .theme-icon-light,.theme-control[data-theme=dark] .theme-icon-dark{display:block}.top-links a:hover,.share-btn:hover{background:var(--brand-hover);color:#fff}.pgrubic-version{color:#fff;background:#ffffff24;border:1px solid #ffffff3d;border-radius:999px;margin-right:8px;padding:3px 8px;font-size:12px;font-weight:600}.hamburger{cursor:pointer;background:0 0;border:0;border-radius:6px;flex-direction:column;justify-content:center;gap:5px;width:40px;height:40px;display:none}.hamburger:hover{background:var(--brand-hover)}.hamburger span{background:#fff;border-radius:2px;width:23px;height:2px;margin-inline:auto;display:block}.main-container{gap:20px;width:100%;max-width:1800px;margin-inline:auto;padding:24px;display:flex}.config-panel,.editor-section{border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);min-width:0;box-shadow:var(--shadow)}.config-panel{flex:0 380px;max-width:100%;padding:20px}.editor-section{flex:640px;padding:20px;overflow:hidden}.config-header,.editor-header{min-height:28px;color:var(--heading);justify-content:space-between;align-items:center;margin-bottom:11px;display:flex}.config-header h2,.editor-header h2,.editor-header{letter-spacing:-.01em;font-size:15px;font-weight:700}.save-status{color:var(--muted);font-size:11px;font-weight:500}.config-editor,.sql-editor{min-width:0;font-family:var(--mono);background:#fbfcfe;border:1px solid #cbd5e1;border-radius:8px;overflow:auto;box-shadow:inset 0 1px 2px #0f172a08}.config-editor:focus-within,.sql-editor:focus-within{border-color:#93c5fd;box-shadow:0 0 0 3px #3b82f61a}.config-editor{height:75vh;max-height:75vh}.reset-config-container{justify-content:center;width:100%;display:flex}.reset-config-btn{color:#334155;cursor:pointer;font:inherit;background:#fff;border:1px solid #cbd5e1;border-radius:7px;margin-top:14px;padding:8px 14px;font-size:12px;font-weight:600}.reset-config-btn:hover{background:#f8fafc;border-color:#94a3b8}:root[data-theme=dark] .config-editor,:root[data-theme=dark] .sql-editor{background:#1e293b;border-color:#475569}:root[data-theme=dark] .reset-config-btn,:root[data-theme=dark] .copy-btn,:root[data-theme=dark] .lint-btn,:root[data-theme=dark] .lint-output,:root[data-theme=dark] .lint-message{border-color:var(--border);color:var(--text);background:#1e293b}:root[data-theme=dark] .reset-config-btn:hover,:root[data-theme=dark] .lint-btn:hover:not(:disabled){background:#273449;border-color:#64748b}:root[data-theme=dark] .lint-message:nth-child(2n){background:#1a2538}:root[data-theme=dark] .lint-message strong{color:var(--heading)}:root[data-theme=dark] .no-violations{color:#86efac;background:#102d22;border-color:#166534}:root[data-theme=dark] .has-violations{color:#fca5a5;background:#351719;border-color:#7f1d1d}.sql-editor-box{gap:16px;display:flex}.editor-container,.sql-output-box-container{flex:320px;min-width:0}.sql-output-box-container{display:flex}.sql-output-box{flex-direction:column;flex:1;min-width:0}.sql-editor{height:40vh;max-height:40vh}.copy-btn{border:1px solid var(--border);color:#475569;cursor:pointer;background:#fff;border-radius:6px;width:30px;height:30px}.copy-btn:hover{background:var(--brand-soft);color:var(--brand-hover);border-color:#bfdbfe}.action-buttons{gap:10px;margin-block:18px 10px;display:flex}.action-btn{cursor:pointer;min-height:40px;font:inherit;border:1px solid #0000;border-radius:7px;flex:1;padding:9px 18px;font-size:13px;font-weight:650}.action-btn:not(:disabled):active{transform:translateY(1px)}.format-btn{border-color:var(--brand);background:var(--brand);color:#fff;box-shadow:0 1px 2px #087f7333}.format-btn:hover:not(:disabled){border-color:var(--brand-hover);background:var(--brand-hover)}.lint-btn{color:#334155;background:#fff;border-color:#cbd5e1}.lint-btn:hover:not(:disabled){background:#f8fafc;border-color:#94a3b8}.lint-fix-btn{border-color:var(--accent);background:var(--accent);color:#fff;box-shadow:0 1px 2px #2563eb2e}.lint-fix-btn:hover:not(:disabled){background:#1d4ed8;border-color:#1d4ed8}.lint-output{border:1px solid var(--border);max-height:30vh;font:12px/1.45 var(--mono);text-wrap:wrap;background:#fff;border-radius:8px;overflow:auto}.lint-output:empty{display:none}.lint-message{background:#fff;border-bottom:1px solid #e8edf3;align-items:baseline;gap:6px;padding:7px 10px;display:flex}.lint-message:nth-child(2n){background:#fbfcfe}.lint-message:last-child{border-bottom:0}.lint-message strong{color:#1e293b;font-weight:650}.lint-message-metadata{color:var(--muted);white-space:nowrap;font-size:11px}.lint-message-error{flex-direction:column;align-items:flex-start;gap:3px;padding-block:10px}.lint-error-hint{color:var(--muted);font-family:var(--sans);overflow-wrap:anywhere;font-size:12px;line-height:1.5}.lint-violations-summary{border-radius:6px;flex:1;margin-block:10px;font-size:12px;font-weight:600}.lint-violations-summary:empty{display:none}.no-violations{color:#166534;background:#f0fdf4;border:1px solid #bbf7d0}.has-violations{color:#991b1b;background:#fef2f2;border:1px solid #fecaca}.notifications{z-index:1000;pointer-events:none;flex-direction:column;gap:8px;width:min(360px,100vw - 32px);display:flex;position:fixed;top:76px;right:16px}.notification{color:#fff;pointer-events:auto;white-space:pre-wrap;border:1px solid #ffffff24;border-radius:8px;justify-content:space-between;align-items:flex-start;gap:12px;padding:10px 12px;font-size:13px;line-height:1.4;display:flex;box-shadow:0 10px 30px #0f172a33}.notification.success{background:#166534}.notification.warning{background:#a16207}.notification.error{background:#b91c1c}.notification.info{background:#1d4ed8}.notification-dismiss{color:inherit;cursor:pointer;background:0 0;border:0;font-size:18px;line-height:1}@media (width<=1000px){.main-container,.sql-editor-box{flex-wrap:wrap}.config-panel{flex-basis:100%}.config-editor{height:45vh}}@media (width<=900px){.top-bar{padding-inline:16px}.brand{margin-left:0}.sub-title{display:none}.hamburger{display:flex}.top-links{border:1px solid var(--border);background:var(--surface);width:min(260px,100vw - 24px);box-shadow:var(--shadow);border-radius:8px;align-items:stretch;margin-right:0;padding:10px;display:none;position:absolute;top:58px;right:12px}.top-links.show{flex-direction:column;display:flex}.top-links a,.share-btn,.theme-control{color:var(--text);text-align:left}.theme-control{color:var(--text);margin:0}.top-links a:hover,.share-btn:hover{background:var(--brand-soft);color:var(--brand-hover)}.pgrubic-version{background:var(--brand-soft);width:fit-content;color:var(--brand-hover);border-color:#bfdbfe;margin:4px 8px}.main-container{gap:12px;padding:12px}.config-panel,.editor-section{flex-basis:100%;padding:14px}.sql-editor-box{gap:12px}.editor-container,.sql-output-box-container{flex-basis:100%}.action-buttons{flex-wrap:wrap;gap:8px}.action-btn{min-width:120px}.lint-message{flex-direction:column;align-items:flex-start;gap:1px}}
