.structure-container{height:calc(100vh - 72px);padding:0;background:#fff;overflow:hidden}.qz-customer-nav,.structure-container~.footer-site,.structure-container~.site-footer{display:none!important}.structure-workspace{display:grid;grid-template-columns:140px 240px minmax(0,1fr) 230px;gap:0;align-items:stretch;height:100%;position:relative}.structure-workspace .is-tool-loading-action,.structure-workspace .is-tool-loading-action[disabled]{cursor:wait!important;opacity:.88!important}.tool-loading-inline{display:inline-flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:18px}.tool-loading-inline-spinner{flex:0 0 auto;width:14px;height:14px;border:2px solid rgba(255,255,255,.34);border-top-color:currentColor;border-radius:50%;animation:.85s linear infinite tool-loader-spin}.tool-loading-inline-text{display:inline-block;min-width:0;line-height:1.35;white-space:normal;word-break:break-word;text-align:center}@keyframes tool-loader-spin{from{transform:rotate(0)}to{transform:rotate(360deg)}}.structure-input-column,.structure-preview-column,.structure-settings-column,.structure-tools-column{min-width:0}.modern-canvas-panel,.modern-input-panel,.modern-params-panel,.structure-side-panel{background:#fff;border:none;border-right:1px solid #e5e7eb;border-radius:0;box-shadow:none;overflow:hidden}.structure-side-panel{min-height:100%;display:flex;flex-direction:column}.modern-canvas-heading,.modern-panel-heading,.modern-params-heading,.structure-side-header{padding:12px 14px;background:#fff!important;border:none!important;color:#1f2937!important}.structure-side-header{border-bottom:1px solid #e5e7eb}.modern-canvas-heading .panel-title,.modern-panel-heading .panel-title,.modern-params-heading .panel-title,.structure-side-header h3{margin:0;display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-size:15px;font-weight:600;line-height:1.4;color:#111827}.modern-canvas-heading .panel-title>i:first-child,.modern-panel-heading .panel-title>i:first-child,.modern-params-heading .panel-title>i:first-child{flex:0 0 auto;margin-right:0}.modern-canvas-heading .panel-title .pull-right,.modern-panel-heading .panel-title .pull-right,.modern-params-heading .panel-title .pull-right{float:none!important;margin-left:auto}.modern-canvas-heading i,.modern-panel-heading i,.modern-params-heading i,.params-group-title i,.structure-side-header h3 i{margin-right:8px;color:#111827}.structure-side-header p{margin:3px 0 0;font-size:11px;color:#6b7280}.structure-tool-groups{padding:8px 6px 10px;overflow-y:auto;flex:1}.structure-tool-group+.structure-tool-group{margin-top:10px}.structure-tool-group-title{margin-bottom:6px;padding:0 6px;font-size:10px;font-weight:600;color:#9ca3af;letter-spacing:.04em;text-transform:uppercase}.structure-tool-link{display:flex;align-items:center;gap:7px;margin-bottom:1px;padding:7px 8px;border-radius:0;color:#374151;font-size:12px;font-weight:500;text-decoration:none;transition:background-color .2s,color .2s}.structure-tool-link:focus,.structure-tool-link:hover{background:#f5f5f5;color:#111827;text-decoration:none}.structure-tool-link.is-active{background:#f3f4f6;color:#111827;box-shadow:none;border-left:2px solid #111827}.structure-tool-link.is-active i{color:#111827}.modern-canvas-panel,.modern-input-panel,.modern-params-panel{min-height:100%;display:flex;flex-direction:column}.modern-input-panel .panel-body,.modern-params-body{padding:12px}.modern-input-panel .panel-body{flex:1 1 auto;min-height:0;display:flex;flex-direction:column;gap:6px;overflow-y:auto;overflow-x:hidden;scrollbar-gutter:stable}.modern-canvas-panel .panel-body{padding:0}.help-title,.modern-label{color:#111827;font-weight:700;margin-bottom:10px}.modern-label{font-size:14px}.modern-textarea,.structure-input{width:100%;min-height:220px;height:220px;padding:12px;border:1px solid #d1d5db;border-radius:6px;background:#fff;color:#111827;font-family:Consolas,Monaco,"Courier New",monospace;font-size:13px;line-height:1.55;resize:vertical;transition:border-color .2s,box-shadow .2s}.modern-select:focus,.modern-textarea:focus,.structure-input:focus{border-color:#3b82f6;outline:0;box-shadow:0 0 0 3px rgba(59,130,246,.14)}.modern-textarea::placeholder,.structure-input::placeholder{color:#94a3b8}.structure-page .structure-input,.structure-page .structure-input.modern-textarea{min-height:240px;height:clamp(240px,calc(100vh - 340px),560px)}.modern-help,.status-info{margin-top:8px}.char-count small,.help-block-compact{color:#6b7280;font-size:11px}.modern-help{padding:10px 12px;border:1px solid #e5e7eb;border-radius:6px;background:#fafafa;font-size:12px}.help-title{display:flex;align-items:center}.help-list{list-style:none;padding:0;margin:0}.help-list li{position:relative;margin-bottom:4px;padding-left:14px;color:#475569}.help-list li:last-child{margin-bottom:0}.help-list li::before{content:"•";position:absolute;left:0;top:0;color:#6b7280;font-weight:700}.modern-help .text-danger,.modern-help .text-info,.modern-help .text-primary,.modern-help .text-success{color:#111827;font-weight:600}.structure-input-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:auto;position:sticky;bottom:0;z-index:4;padding-top:10px;background:linear-gradient(180deg,rgba(255,255,255,0) 0,#fff 18px,#fff 100%)}.structure-input-actions .btn-group{flex:1 1 calc(33.333% - 10px);min-width:72px}.modern-btn{width:100%;background:#fff;color:#374151}.modern-btn:hover{background:#f8fafc;border-color:#94a3b8;box-shadow:none}.modern-btn.btn-warning{background:#f3f4f6;border-color:#d1d5db;color:#374151}.modern-btn.btn-info,.modern-btn.btn-primary{background:#2563eb;border-color:#2563eb;color:#fff}.modern-btn.btn-info:hover,.modern-btn.btn-primary:hover{background:#1d4ed8;border-color:#1d4ed8;color:#fff}.modern-alert{margin-top:0;border-radius:6px;border:1px solid;font-size:12px;padding:8px 10px}.modern-alert.alert-info{background:#f9fafb;border-color:#e5e7eb;color:#374151}.modern-alert.alert-danger{background:#fef2f2;border-color:#f3d3d3;color:#991b1b}.modern-canvas-heading{border-bottom:1px solid #e5e7eb!important}.canvas-controls{display:flex;align-items:center;flex-wrap:wrap;justify-content:flex-end;gap:8px;min-width:0;max-width:100%}.modern-control-btn{display:flex;align-items:center;justify-content:center;width:30px;height:30px;border:1px solid #d1d5db;border-radius:6px;background:#fff;color:#6b7280;transition:background-color .2s,color .2s,border-color .2s}.modern-control-btn:hover{background:#f5f5f5;border-color:#d1d5db;color:#111827}.structure-edit-btn,.structure-export-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:96px;width:auto;height:30px;padding:0 12px;flex:0 0 auto;white-space:nowrap}.structure-export-btn{border-color:#10b981;background:#10b981;color:#fff}.structure-export-btn:focus,.structure-export-btn:hover{border-color:#059669;background:#059669;color:#fff}.structure-edit-btn{border-color:#f59e0b;background:#f59e0b;color:#fff}.structure-edit-btn:focus,.structure-edit-btn:hover{border-color:#d97706;background:#d97706;color:#fff}.structure-edit-btn span,.structure-export-btn span{font-size:11px;font-weight:600}.canvas-container,.modern-canvas-body{position:relative;flex:1;min-height:100%;overflow:hidden;background:#fff}#graphContainer,.graph-container,.watermark-layer{width:100%;height:100%}#graphContainer{position:relative;min-height:100%;background:#fff}.graph-container{flex:1}.graph-container .mxGraphContainer,.graph-container svg{background:#fff}.structure-preview-column:-webkit-full-screen,.structure-preview-column:fullscreen{width:100vw;height:100vh;background:#fff}.structure-preview-column:-webkit-full-screen .modern-canvas-panel,.structure-preview-column:fullscreen .modern-canvas-panel{height:100vh;min-height:100vh;border-right:none}.structure-preview-column:-webkit-full-screen #graphContainer,.structure-preview-column:-webkit-full-screen .canvas-container,.structure-preview-column:-webkit-full-screen .modern-canvas-body,.structure-preview-column:fullscreen #graphContainer,.structure-preview-column:fullscreen .canvas-container,.structure-preview-column:fullscreen .modern-canvas-body{min-height:calc(100vh - 58px);height:calc(100vh - 58px)}.watermark,.watermark-layer{position:absolute;pointer-events:none}.watermark-layer{top:0;left:0;right:0;bottom:0;z-index:1000;overflow:visible;transition:opacity .3s}.watermark{font-family:Arial,sans-serif;font-size:14px;font-weight:700;color:rgba(156,163,175,.5);letter-spacing:1px;white-space:nowrap;user-select:none;transform:rotate(-15deg);transform-origin:center}#graphContainer.show-empty .watermark-layer{opacity:0!important;visibility:hidden!important}#graphContainer.show-empty .empty-state{display:block!important}#graphContainer:not(.show-empty) .watermark-layer{opacity:1;visibility:visible}#graphContainer:not(.show-empty) .empty-state{display:none!important}.modern-empty{position:absolute;top:50%;left:50%;z-index:1002;width:calc(100% - 40px);max-width:360px;min-height:280px;padding:20px;margin:0;border-radius:8px;background:rgba(255,255,255,.96);display:flex;flex-direction:column;justify-content:center;text-align:center;transform:translate(-50%,-50%);box-shadow:0 6px 16px rgba(15,23,42,.06)}.structure-page .structure-empty-state{max-width:420px;top:calc(50% - 220px)}.modern-empty .empty-icon{margin-bottom:18px}.modern-empty .empty-icon i{color:#cbd5e1}.modern-empty h4{margin-bottom:10px;color:#475569;font-size:18px;font-weight:600}.modern-empty p{margin-bottom:24px;color:#94a3b8;font-size:14px;line-height:1.6}.structure-empty-actions{display:flex;align-items:stretch;justify-content:center;gap:18px;margin-top:6px}.structure-empty-link{display:block;flex:1 1 0;max-width:220px}.structure-empty-btn{min-height:46px;font-size:14px;border-radius:10px}.structure-empty-btn-primary{background:#3b82f6;border-color:#3b82f6}.structure-empty-btn-primary:hover{background:#2563eb;border-color:#2563eb}.structure-empty-btn-success{background:#10b981;border-color:#10b981}.structure-empty-btn-success:hover{background:#059669;border-color:#059669}.modern-params-panel{position:sticky;top:0;border-right:none;border-left:1px solid #e5e7eb}.modern-params-heading{border-bottom:1px solid #e5e7eb!important}.modern-params-body{flex:1;overflow-y:auto}.modern-canvas-panel,.modern-input-panel,.modern-params-panel,.structure-side-panel{height:100%}.params-grid{display:grid;grid-template-columns:1fr;gap:6px}.params-column{padding:8px 10px;border:1px solid #ececec;border-radius:6px;background:#fff}.params-group-title{display:flex;align-items:center}.form-group-compact:last-child{margin-bottom:0}.modern-slider{opacity:.9;-webkit-appearance:none;appearance:none}.modern-slider::-webkit-slider-thumb{border:none;box-shadow:0 2px 8px rgba(37,99,235,.24);-webkit-appearance:none;appearance:none}.modern-slider::-moz-range-thumb{box-shadow:0 2px 8px rgba(37,99,235,.24)}.modern-select{background:#fff}.btn-group-compact{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.badge{border-radius:999px;padding:4px 8px;font-size:11px;font-weight:700}.badge-success{background:#111827;color:#fff}.params-shortcuts-column .modern-preset-btn:first-child{background:#eff6ff;border-color:#bfdbfe;color:#1d4ed8}.params-shortcuts-column .modern-preset-btn:nth-child(2){background:#f3f4f6;border-color:#d1d5db;color:#111827}.params-shortcuts-column .modern-preset-btn:nth-child(3){background:#ecfdf5;border-color:#bbf7d0;color:#047857}.modal .spinner{display:flex;justify-content:center;align-items:center}.spinner-icon{color:#2563eb}.modern-params-body::-webkit-scrollbar,.modern-textarea::-webkit-scrollbar,.structure-input::-webkit-scrollbar,.structure-tool-groups::-webkit-scrollbar{width:6px}.modern-params-body::-webkit-scrollbar-track,.modern-textarea::-webkit-scrollbar-track,.structure-input::-webkit-scrollbar-track,.structure-tool-groups::-webkit-scrollbar-track{background:#f1f5f9;border-radius:999px}.modern-params-body::-webkit-scrollbar-thumb,.modern-textarea::-webkit-scrollbar-thumb,.structure-input::-webkit-scrollbar-thumb,.structure-tool-groups::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:999px}.modern-params-body::-webkit-scrollbar-thumb:hover,.modern-textarea::-webkit-scrollbar-thumb:hover,.structure-input::-webkit-scrollbar-thumb:hover,.structure-tool-groups::-webkit-scrollbar-thumb:hover{background:#94a3b8}@media (max-width:1680px){.structure-workspace{grid-template-columns:132px 225px minmax(0,1fr) 220px}}@media (max-width:1440px){.structure-workspace{grid-template-columns:120px 210px minmax(0,1fr) 210px}.modern-canvas-heading .panel-title,.modern-panel-heading .panel-title,.modern-params-heading .panel-title,.structure-side-header h3{font-size:14px}}@media (max-width:1200px){.structure-workspace{grid-template-columns:220px minmax(0,1fr);grid-template-areas:"tools preview" "input preview" "settings settings"}.structure-tools-column{grid-area:tools}.structure-input-column{grid-area:input}.structure-preview-column{grid-area:preview}.structure-settings-column{grid-area:settings}.modern-params-panel{position:static;border-left:none;border-top:1px solid #e5e7eb}.params-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.structure-page .structure-input,.structure-page .structure-input.modern-textarea{height:420px;min-height:420px}}@media (max-width:900px){.structure-container{height:auto;min-height:calc(100vh - 72px);overflow:auto;padding:0}.structure-workspace{grid-template-columns:1fr;grid-template-areas:none;height:auto}.structure-input-column,.structure-preview-column,.structure-settings-column,.structure-tools-column{grid-area:auto}.modern-canvas-panel,.modern-input-panel,.modern-params-panel,.structure-side-panel{min-height:auto}#graphContainer,.canvas-container,.modern-canvas-body{min-height:560px}.structure-page .structure-input,.structure-page .structure-input.modern-textarea{height:360px;min-height:360px}.btn-group-compact,.params-grid{grid-template-columns:1fr}}@media (max-width:1366px),(max-height:860px){.modern-canvas-heading .panel-title,.modern-panel-heading .panel-title{align-items:flex-start}.structure-input-actions .btn-group{flex:1 1 calc(50% - 3px);min-width:0}.modern-canvas-heading .panel-title .canvas-controls,.modern-panel-heading .panel-title .canvas-controls{width:100%;margin-left:0;justify-content:flex-start;padding-top:4px}.modern-panel-heading .panel-title small.pull-right{width:100%;margin-left:0;padding-top:2px}}@media (max-height:860px){.structure-container{height:auto;min-height:calc(100vh - 72px);overflow:auto}.structure-workspace{height:auto;min-height:calc(100vh - 72px);align-items:start}.structure-container.erdgram-container,.structure-container.sql2er-page,.structure-container.sqltoword-page,.structure-container.usecasedoc-page{overflow:auto!important}.structure-container.sql2er-page .sql2er-workspace,.structure-container.usecasedoc-page .usecasedoc-workspace{height:auto!important;min-height:calc(100vh - 72px)}.structure-container.usecasedoc-page .usecasedoc-input-panel .panel-body{height:auto!important;max-height:none!important}.structure-container.sql2er-page .sql2er-sql-panel .panel-body{overflow-y:auto!important;overflow-x:hidden!important}.structure-container.erdgram-container .erd-sql-textarea,.structure-container.flowchart-page .flowchart-input,.structure-container.flowchart-page .flowchart-input.modern-textarea,.structure-container.sql2er-page .sql2er-sql-textarea,.structure-container.sql2er-page .sql2er-sql-textarea.modern-textarea,.structure-container.sqltoword-page .modern-textarea.sqltoword-textarea,.structure-container.sqltoword-page .sqltoword-textarea,.structure-container.structure-page .structure-input,.structure-container.structure-page .structure-input.modern-textarea,.structure-container.usecase-page .usecase-input.modern-textarea{height:320px!important;min-height:320px!important}.structure-container #graphContainer,.structure-container .canvas-container,.structure-container .graph-container,.structure-container .modern-canvas-body{min-height:460px}}@media (max-width:680px),(max-height:720px){.structure-input-actions .btn-group{flex-basis:100%}}body{background:#f5f6fa;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI','PingFang SC','Hiragino Sans GB','Microsoft YaHei','Helvetica Neue',Helvetica,Arial,sans-serif;color:#333;line-height:1.6;height:100%;overflow:hidden}*{box-sizing:border-box;margin:0;padding:0}.main-wrapper{min-height:100vh}.top-header{background:#fff;border-bottom:1px solid #e8eaed;padding:20px 0;position:sticky;top:0;z-index:100;box-shadow:0 2px 8px rgba(0,0,0,.06)}.header-content{max-width:1200px;margin:0 auto;padding:0 24px;text-align:center}.main-title{font-size:24px;font-weight:500;color:#202124;margin-bottom:8px}.main-subtitle{font-size:14px;color:#5f6368;margin-bottom:16px}.feature-tags{display:flex;justify-content:center;gap:24px;flex-wrap:wrap}.feature-tag{display:flex;align-items:center;gap:6px;padding:6px 12px;background:#f8f9fa;border-radius:16px;font-size:12px;color:#5f6368;border:1px solid #e8eaed}.feature-tag i{color:#1a73e8;font-size:14px}.main-container{width:100%;margin:0;padding:32px 0;display:grid;grid-template-columns:380px 1fr;align-items:start;min-height:600px;gap:20px}@media (max-width:1024px){.main-container{grid-template-columns:1fr;gap:24px;padding:20px 16px}}.left-panel{display:flex;flex-direction:column;gap:0;padding:0 10px 0 24px;height:1200px;box-sizing:border-box}.card{background:#fff;border-radius:12px;border:1px solid #e8eaed;overflow:hidden;transition:box-shadow .2s}.card:hover{box-shadow:0 2px 12px rgba(0,0,0,.08)}.card-header{padding:16px 20px;border-bottom:1px solid #f1f3f4;background:#fafbfc}.card-title{font-size:16px;font-weight:500;color:#202124;display:flex;align-items:center;gap:8px;margin:0}.card-title i{color:#1a73e8;font-size:18px}.card-body{padding:20px}.sql-input-card{flex:1;display:flex;flex-direction:column}.sql-input-card .card-body{padding:20px 20px 24px;flex:1;display:flex;flex-direction:column}.sql-textarea{width:100%;flex:1;min-height:200px;padding:12px;border:1px solid #dadce0;border-radius:8px;font-family:Monaco,Menlo,Consolas,monospace;font-size:12px;line-height:1.4;background:#fafbfc;resize:vertical;transition:.2s;margin-bottom:16px}.sql-textarea:focus{outline:0;border-color:#1a73e8;background:#fff;box-shadow:0 0 0 1px #1a73e8}.sql-textarea::placeholder{color:#9aa0a6!important;line-height:1.4;opacity:1!important;font-size:12px;white-space:pre-line}.primary-btn{width:100%;height:48px;background:#1a73e8;color:#fff;border:none;border-radius:8px;font-size:15px;font-weight:500;display:flex;align-items:center;justify-content:center;gap:8px;transition:.2s;cursor:pointer}.primary-btn:hover{background:#1557b0;box-shadow:0 2px 8px rgba(26,115,232,.24)}.primary-btn:active{transform:translateY(1px)}.primary-btn i{font-size:16px}.er-display-card{height:1160px;margin:0 24px 0 0;display:flex;flex-direction:column}.er-header{padding:16px 20px;border-bottom:1px solid #f1f3f4;background:#fafbfc;display:flex;justify-content:space-between;align-items:center}.er-title{font-size:16px;font-weight:500;color:#202124;display:flex;align-items:center;gap:8px;margin:0}.er-title i{color:#1a73e8;font-size:18px}.er-toolbar{display:flex;gap:6px}.tool-btn{width:36px;height:36px;background:#fff;border:1px solid #dadce0;border-radius:6px;display:flex;align-items:center;justify-content:center;transition:.2s;color:#5f6368;cursor:pointer}.tool-btn:hover{background:#f1f3f4;border-color:#1a73e8;color:#1a73e8}.tool-btn.edit-btn{width:auto;padding:0 12px;gap:6px;background:#1f6feb;border-color:#1f6feb;color:#fff;font-size:13px;font-weight:500}.tool-btn.edit-btn:hover{background:#1558b0;border-color:#1558b0;color:#fff}.tool-btn.export-btn{width:auto;padding:0 12px;gap:6px;background:#34a853;border-color:#34a853;color:#fff;font-size:13px;font-weight:500}.tool-btn.export-btn:hover{background:#2d8f47;border-color:#2d8f47;color:#fff}.graph-container{flex:1;background:#fff;position:relative;border-radius:0 0 12px 12px;min-height:800px;overflow:hidden}.g6-demo-section{padding:0 24px 32px}.g6-demo-card{margin-top:8px}.g6-demo-body{padding:20px 20px 24px}.g6-demo-intro{margin-bottom:16px;color:#5f6368;font-size:14px;line-height:1.7}.g6-demo-grid{display:grid;grid-template-columns:420px 1fr;gap:20px;align-items:stretch}.g6-demo-subtitle{font-size:14px;font-weight:600;color:#202124;margin:0 0 10px}.g6-demo-canvas-wrap,.g6-demo-sql-wrap{min-width:0}.g6-demo-sql{height:520px;margin:0;overflow:auto;border:1px solid #e2e8f0;border-radius:10px;background:#f8fafc;color:#1f2937;padding:16px;font-size:12px;line-height:1.65;font-family:Monaco,Menlo,Consolas,monospace;white-space:pre-wrap}.g6-demo-sql-textarea{width:100%;height:520px;margin:0;padding:16px;overflow:auto;border:1px solid #e2e8f0;border-radius:10px;background:#f8fafc;color:#1f2937;font-size:12px;line-height:1.65;font-family:Monaco,Menlo,Consolas,monospace;resize:vertical}.g6-demo-sql-textarea:focus{outline:0;border-color:#1a73e8;background:#fff;box-shadow:0 0 0 1px #1a73e8}.g6-demo-actions{margin-top:12px;display:flex;gap:10px;flex-wrap:wrap}.g6-demo-generate-btn{height:42px;min-width:170px}.g6-demo-beautify-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:42px;min-width:170px;padding:0 18px;border-radius:10px;border:1px solid #16a34a;background:linear-gradient(180deg,#34d399 0,#16a34a 100%);color:#fff;font-size:14px;font-weight:600;box-shadow:0 8px 20px rgba(22,163,74,.18)}.g6-demo-beautify-btn:focus,.g6-demo-beautify-btn:hover{border-color:#15803d;background:linear-gradient(180deg,#22c55e 0,#15803d 100%);color:#fff}.g6-demo-radial-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:42px;min-width:150px;padding:0 18px;border-radius:10px;border:1px solid #2563eb;background:linear-gradient(180deg,#60a5fa 0,#2563eb 100%);color:#fff;font-size:14px;font-weight:600;box-shadow:0 8px 20px rgba(37,99,235,.18)}.g6-demo-radial-btn:focus,.g6-demo-radial-btn:hover{border-color:#1d4ed8;background:linear-gradient(180deg,#3b82f6 0,#1d4ed8 100%);color:#fff}.g6-demo-dagre-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:42px;min-width:150px;padding:0 18px;border-radius:10px;border:1px solid #7c3aed;background:linear-gradient(180deg,#a78bfa 0,#7c3aed 100%);color:#fff;font-size:14px;font-weight:600;box-shadow:0 8px 20px rgba(124,58,237,.18)}.g6-demo-dagre-btn:focus,.g6-demo-dagre-btn:hover{border-color:#6d28d9;background:linear-gradient(180deg,#8b5cf6 0,#6d28d9 100%);color:#fff}.g6-demo-dagrejs-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:42px;min-width:158px;padding:0 18px;border-radius:10px;border:1px solid #ea580c;background:linear-gradient(180deg,#fb923c 0,#ea580c 100%);color:#fff;font-size:14px;font-weight:600;box-shadow:0 8px 20px rgba(234,88,12,.18)}.g6-demo-dagrejs-btn:focus,.g6-demo-dagrejs-btn:hover{border-color:#c2410c;background:linear-gradient(180deg,#f97316 0,#c2410c 100%);color:#fff}.g6-demo-d3force-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:42px;min-width:166px;padding:0 18px;border-radius:10px;border:1px solid #0f766e;background:linear-gradient(180deg,#2dd4bf 0,#0f766e 100%);color:#fff;font-size:14px;font-weight:600;box-shadow:0 8px 20px rgba(15,118,110,.18)}.g6-demo-d3force-btn:focus,.g6-demo-d3force-btn:hover{border-color:#115e59;background:linear-gradient(180deg,#14b8a6 0,#115e59 100%);color:#fff}.g6-demo-clusterforce-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:42px;min-width:166px;padding:0 18px;border-radius:10px;border:1px solid #0f3d91;background:linear-gradient(180deg,#60a5fa 0,#1d4ed8 100%);color:#fff;font-size:14px;font-weight:600;box-shadow:0 8px 20px rgba(29,78,216,.18)}.g6-demo-clusterforce-btn:focus,.g6-demo-clusterforce-btn:hover{border-color:#1e3a8a;background:linear-gradient(180deg,#3b82f6 0,#1e40af 100%);color:#fff}.g6-demo-atlas2-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:42px;min-width:154px;padding:0 18px;border-radius:10px;border:1px solid #7c2d12;background:linear-gradient(180deg,#fdba74 0,#ea580c 100%);color:#fff;font-size:14px;font-weight:600;box-shadow:0 8px 20px rgba(234,88,12,.18)}.g6-demo-atlas2-btn:focus,.g6-demo-atlas2-btn:hover{border-color:#9a3412;background:linear-gradient(180deg,#fb923c 0,#c2410c 100%);color:#fff}.g6-demo-error{margin-top:10px;display:none}.g6-demo-canvas{height:520px;border:1px solid #e2e8f0;border-radius:10px;background:#fff;overflow:hidden}@media (max-width:1024px){.g6-demo-section{padding:0 16px 24px}.g6-demo-grid{grid-template-columns:1fr}.g6-demo-canvas,.g6-demo-sql,.g6-demo-sql-textarea{height:420px}}.graph-container .x6-graph-svg,.graph-container svg{display:block!important;position:absolute;top:0;left:0}.empty-state{position:absolute;top:35%;left:50%;transform:translate(-50%,-50%);text-align:center;color:#9aa0a6;z-index:1001;padding:40px;background:rgba(255,255,255,.95);border-radius:8px;max-width:500px}.empty-icon{margin-bottom:20px}.empty-icon i{color:#d1d5db}.icon-4x{font-size:48px}.sql2er-page.structure-container{height:calc(100vh - 72px);padding:0;background:#fff}.sql2er-page .sql2er-workspace{display:grid;grid-template-columns:140px 272px minmax(0,1fr) 248px;gap:0;align-items:stretch}.sql2er-page .modern-canvas-panel,.sql2er-page .modern-input-panel,.sql2er-page .modern-params-panel,.sql2er-page .structure-side-panel{display:flex;flex-direction:column;height:100%;background:#fff;border:none;border-right:1px solid #e5e7eb;overflow:hidden}.sql2er-page .structure-side-panel{min-height:100%}.sql2er-page .modern-canvas-heading,.sql2er-page .modern-panel-heading,.sql2er-page .modern-params-heading,.sql2er-page .structure-side-header{padding:12px 14px;background:#fff!important;border:none!important;color:#111827!important}.sql2er-page .modern-canvas-heading,.sql2er-page .modern-params-heading,.sql2er-page .structure-side-header{border-bottom:1px solid #e5e7eb!important}.sql2er-page .modern-canvas-heading .panel-title,.sql2er-page .modern-panel-heading .panel-title,.sql2er-page .modern-params-heading .panel-title,.sql2er-page .structure-side-header h3{margin:0;font-size:15px;font-weight:600;color:#111827}.sql2er-page .modern-canvas-heading i,.sql2er-page .modern-panel-heading i,.sql2er-page .modern-params-heading i,.sql2er-page .params-group-title i,.sql2er-page .structure-side-header h3 i{margin-right:8px;color:#111827}.sql2er-page .structure-side-header p{margin:3px 0 0;font-size:11px;color:#6b7280}.sql2er-page .structure-tool-groups{padding:8px 6px 10px;overflow-y:auto;flex:1}.sql2er-page .structure-tool-group+.structure-tool-group{margin-top:10px}.sql2er-page .structure-tool-group-title{margin-bottom:6px;padding:0 6px;font-size:10px;font-weight:600;color:#9ca3af;letter-spacing:.04em;text-transform:uppercase}.sql2er-page .structure-tool-link{display:flex;align-items:center;gap:7px;margin-bottom:1px;padding:7px 8px;border-radius:0;color:#374151;font-size:12px;font-weight:500;text-decoration:none;transition:background-color .2s,color .2s}.sql2er-page .structure-tool-link:focus,.sql2er-page .structure-tool-link:hover{background:#f5f5f5;color:#111827;text-decoration:none}.sql2er-page .structure-tool-link.is-active{background:#f3f4f6;color:#111827;border-left:2px solid #111827;box-shadow:none}.sql2er-page .structure-tool-link.is-active i{color:#111827}.sql2er-page .modern-input-panel .panel-body,.sql2er-page .modern-params-body{padding:12px}.sql2er-page .sql2er-sql-panel .panel-body{display:flex;flex-direction:column;gap:10px}.sql2er-page .sql2er-sql-form-group{display:flex;flex:1;flex-direction:column;gap:8px}.sql2er-page .sql2er-input-actions{margin:0}.sql2er-page .modern-label{margin-bottom:0;color:#111827;font-size:14px;font-weight:700}.sql2er-page .sql2er-sql-textarea{flex:1;padding:12px;border:1px solid #d1d5db;color:#111827;font-family:Consolas,Monaco,"Courier New",monospace;font-size:13px;resize:none;transition:border-color .2s,box-shadow .2s}.sql2er-page .modern-select:focus,.sql2er-page .sql2er-sql-textarea:focus{border-color:#3b82f6;outline:0;box-shadow:0 0 0 3px rgba(59,130,246,.14)}.sql2er-page .modern-btn{width:100%;padding:8px 10px;font-size:12px;font-weight:600;text-shadow:none;transition:background-color .2s,border-color .2s,box-shadow .2s}.sql2er-page .modern-alert{margin:0;border-radius:6px;border:1px solid;font-size:12px;padding:8px 10px}.sql2er-page .modern-alert.alert-danger{background:#fef2f2;border-color:#f3d3d3;color:#991b1b}.sql2er-page .canvas-container,.sql2er-page .modern-canvas-body{position:relative;flex:1;min-height:100%;overflow:hidden;background:#fff;padding:0}.sql2er-page .sql2er-graph-container{position:relative;width:100%;height:100%;min-height:100%}.sql2er-page .canvas-controls{display:flex;align-items:center;gap:8px}.sql2er-page .modern-control-btn{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;padding:0;transition:background-color .2s,color .2s,border-color .2s}.sql2er-page .sql2er-edit-btn,.sql2er-page .sql2er-export-btn,.sql2er-page .sql2er-fixed-layout-btn,.sql2er-page .sql2er-node-edit-btn{flex:0 0 auto}.sql2er-page .sql2er-empty-state{position:absolute;left:50%;z-index:1002;margin:0;border-radius:10px;text-align:center}.sql2er-page .sql2er-empty-state .empty-icon{margin-bottom:18px}.sql2er-page .sql2er-empty-state .empty-icon i{color:#cbd5e1}.sql2er-page .sql2er-empty-state h4{color:#475569;font-size:18px;font-weight:600;margin-bottom:12px}.sql2er-page .sql2er-empty-state p{color:#94a3b8;font-size:14px;line-height:1.6;margin-bottom:18px}.sql2er-page .sql2er-empty-btn{max-width:200px}.sql2er-page .modern-params-heading i.icon-chevron-down{color:#6b7280}.sql2er-page .modern-params-body{flex:1;overflow-y:auto}.sql2er-page .params-grid{display:grid;grid-template-columns:1fr}.sql2er-page .params-column{min-width:0;border:1px solid #ececec;background:#fff}.sql2er-page .params-group-title{display:flex;align-items:center;margin:0 0 6px;padding-bottom:4px;border-bottom:1px solid #ececec;color:#0f172a;font-size:12px;font-weight:600}.sql2er-page .form-group-compact{margin-bottom:6px}.sql2er-page .form-group-compact:last-child{margin-bottom:0}.sql2er-page .control-label-compact{display:block;margin-bottom:3px;color:#475569;font-size:11px;font-weight:600}.sql2er-page .help-block-compact{color:#6b7280;font-size:11px}.sql2er-page .modern-slider{width:100%}.sql2er-page .modern-select{width:100%;height:32px;border:1px solid #d1d5db;border-radius:6px;background:#fff;color:#111827;font-size:12px;box-shadow:none}.sql2er-page .checkbox-highlight{border:1px solid #ececec}.sql2er-page .checkbox-label-large{display:flex;align-items:center;gap:8px;margin:0;font-size:12px;font-weight:600}.sql2er-page .checkbox-description{margin-top:6px;font-size:11px;line-height:1.5}.sql2er-page .sql2er-preset-group{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.sql2er-page .modern-preset-btn{min-height:30px;font-size:12px;font-weight:600}.sql2er-page .sql2er-sql-textarea::placeholder{color:#94a3b8!important;font-size:12px!important;line-height:1.7!important}.sql2er-page{overflow:hidden!important;background:#fff}.sql2er-page .sql2er-workspace{grid-template-columns:130px 250px minmax(0,1fr) 240px!important;height:100%!important;overflow:hidden!important;grid-template-columns:140px 270px minmax(0,1fr) 245px}.sql2er-page .sql2er-sql-panel .panel-body{padding:12px!important;display:flex!important;flex-direction:column!important;gap:6px!important;min-height:0!important;overflow:hidden!important}.sql2er-page .sql2er-sql-form-group{display:flex!important;flex:1!important;min-height:0!important;margin-bottom:8px!important;flex-direction:column!important}.sql2er-page .sql2er-sql-textarea,.sql2er-page .sql2er-sql-textarea.modern-textarea{flex:1 1 auto!important;resize:none!important;border-radius:10px!important;line-height:1.7!important;overflow-y:auto!important}.sql2er-page .sql2er-input-actions{margin-bottom:0!important;flex:0 0 auto!important}.sql2er-page .sql2er-generate-btn{min-height:38px!important;padding:8px 10px!important;border-radius:6px!important;border:1px solid #2563eb!important;background:#2563eb!important;color:#fff!important;box-shadow:none!important}.sql2er-page .sql2er-generate-btn:hover{background:#1d4ed8!important;border-color:#1d4ed8!important;color:#fff!important;box-shadow:none!important;box-shadow:0 12px 26px rgba(29,78,216,.18);box-shadow:0 14px 24px rgba(29,78,216,.22)}.sql2er-page .sql2er-generate-btn i{font-size:14px!important}.sql2er-page #graph-container .empty-state{position:absolute!important;top:calc(50% - 100px)!important;left:50%!important;z-index:20!important;width:min(420px,calc(100% - 48px))!important;padding:28px 30px 24px!important;border:1px solid #eef2f7!important;border-radius:18px!important;background:rgba(255,255,255,.98)!important;text-align:center!important;transform:translate(-50%,-50%)!important;box-shadow:0 20px 40px rgba(15,23,42,.06)!important}.sql2er-page #graph-container .empty-state-badge{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:54px!important;height:54px!important;margin-bottom:16px!important;border-radius:16px!important;background:#f8fafc!important;color:#2563eb!important;font-size:22px!important;box-shadow:inset 0 0 0 1px #e2e8f0!important}.sql2er-page #graph-container .empty-state h4{margin:0 0 10px!important;color:#0f172a!important;font-size:24px!important;font-weight:700!important;letter-spacing:-.02em!important}.sql2er-page #graph-container .empty-state p{margin:0 0 20px!important;color:#64748b!important;font-size:14px!important;line-height:1.75!important}.sql2er-page .sql2er-params-panel{border-left:1px solid #e5e7eb!important;border-right:none!important;overflow:hidden!important}.sql2er-page .sql2er-params-panel .modern-params-body{flex:1!important;min-height:0!important;max-height:calc(100vh - 118px)!important;padding:8px!important;overflow-x:hidden!important}.sql2er-page .sql2er-params-panel .params-grid{display:grid!important;grid-template-columns:1fr!important;gap:5px!important}.sql2er-page .sql2er-params-panel .params-column{padding:7px 8px!important}.sql2er-page .sql2er-params-panel .form-group-compact{margin-bottom:5px!important}.sql2er-page .sql2er-params-panel .form-group-compact:last-child{margin-bottom:0!important}.sql2er-page .sql2er-params-panel .params-group-title{margin-bottom:5px!important;padding-bottom:3px!important;font-size:11px!important}.sql2er-page .sql2er-params-panel .control-label-compact{margin-bottom:2px!important;font-size:10px!important}.sql2er-page .sql2er-params-panel .help-block-compact{display:block!important;margin-top:2px!important;font-size:10px!important}.sql2er-page .sql2er-params-panel .modern-slider{height:4px!important}.sql2er-page .sql2er-params-panel .modern-slider::-webkit-slider-thumb{width:14px!important;height:14px!important}.sql2er-page .sql2er-params-panel .modern-slider::-moz-range-thumb{width:14px!important;height:14px!important}.sql2er-page .sql2er-params-panel .modern-select{padding:5px 7px!important;font-size:11px!important}.sql2er-page .sql2er-params-panel .btn-group-compact{gap:4px!important}.sql2er-page .sql2er-params-panel .modern-preset-btn{padding:5px 6px!important;font-size:10px!important}.sql2er-page .sql2er-sql-panel .panel-body{gap:4px;display:flex;flex-direction:column}.sql2er-page .sql2er-sql-panel .form-group{margin-bottom:6px}@media (max-width:1680px){.sql2er-page .sql2er-workspace{grid-template-columns:132px 248px minmax(0,1fr) 228px}}@media (max-width:1440px){.sql2er-page .sql2er-workspace{grid-template-columns:120px 230px minmax(0,1fr) 216px}}@media (max-width:1200px){.sql2er-page .sql2er-workspace{grid-template-columns:220px minmax(0,1fr);grid-template-areas:"tools preview" "input preview" "settings settings"}.sql2er-page .sql2er-sql-textarea,.sql2er-page .sql2er-sql-textarea.modern-textarea{height:420px!important;min-height:420px!important}}@media (max-width:900px){.sql2er-page .sql2er-sql-textarea,.sql2er-page .sql2er-sql-textarea.modern-textarea{height:360px!important;min-height:360px!important}}.sql2er-page .sql2er-sql-textarea,.sql2er-page .sql2er-sql-textarea.modern-textarea{flex:1;min-height:610px!important;height:auto!important;resize:none}.sql2er-page .sql2er-input-actions{flex:0 0 auto}.sql2er-page .sql2er-generate-btn-text{display:none!important}.sql2er-page .sql2er-params-panel .modern-params-body{scrollbar-width:thin;scrollbar-color:#cbd5e1 #f8fafc;flex:1;overflow-y:auto!important;scrollbar-width:thin;scrollbar-color:#cbd5e1 #f8fafc}.sql2er-page .sql2er-generate-btn{box-shadow:0 10px 24px rgba(37,99,235,.16);display:flex;align-items:center;justify-content:center;gap:12px;box-shadow:0 12px 22px rgba(37,99,235,.2)}.sql2er-page .sql2er-generate-btn-text{flex-direction:column;align-items:flex-start;text-align:left;line-height:1.2}.sql2er-page .sql2er-generate-btn-text strong{font-size:15px;font-weight:700;color:#fff}.sql2er-page .sql2er-generate-btn-text small{margin-top:3px;font-size:11px;font-weight:500;color:rgba(255,255,255,.82)}.sql2er-page .sql2er-empty-state{width:calc(100% - 56px);max-width:420px;padding:24px 26px 22px}.sql2er-page .sql2er-params-panel .modern-params-body{display:flex;flex-direction:column;gap:10px;scrollbar-width:thin;scrollbar-color:#cbd5e1 #f8fafc}.sql2er-page .sql2er-param-toolbar{position:sticky;top:0;z-index:5;margin:-12px -12px 0;padding:10px 12px 8px;border-bottom:1px solid #eef2f7;background:rgba(255,255,255,.98);backdrop-filter:blur(8px)}.sql2er-page .sql2er-param-toolbar-label{margin-bottom:6px;color:#64748b;font-size:11px;font-weight:700;letter-spacing:.04em;text-transform:uppercase}.sql2er-page .sql2er-param-toolbar-track{display:flex;gap:6px;overflow-x:auto;padding-bottom:2px;scrollbar-width:thin}.sql2er-page .sql2er-param-toolbar-track::-webkit-scrollbar{height:6px}.sql2er-page .sql2er-param-toolbar-track::-webkit-scrollbar-thumb{border-radius:999px;background:#dbe3ee}.sql2er-page .sql2er-param-chip{flex:0 0 auto;min-width:56px;height:28px;padding:0 12px;border:1px solid #d1d5db;border-radius:999px;background:#fff;color:#475569;font-size:12px;font-weight:600;line-height:26px;text-align:center;transition:background-color .2s,color .2s,border-color .2s}.sql2er-page .sql2er-param-chip:hover{background:#f8fafc;border-color:#94a3b8;color:#111827}.sql2er-page .sql2er-param-chip.is-active{background:#2563eb;border-color:#2563eb;color:#fff}.sql2er-page .sql2er-param-chip-ghost{color:#059669;border-color:#a7f3d0;background:#f0fdf4}.sql2er-page .sql2er-param-chip-ghost:hover{color:#047857;border-color:#6ee7b7;background:#ecfdf5}.sql2er-page .params-column.is-hidden{display:none}.text-muted{color:#6b7280}.empty-state h4{color:#6b7280;font-weight:500;margin-bottom:12px;font-size:18px}.empty-state p{margin:0 0 20px;font-size:14px;line-height:1.5;color:#9ca3af}.modern-btn{font-weight:500;border-radius:6px;padding:10px 20px;transition:.2s;border:1px solid;text-shadow:none;font-size:14px;display:inline-flex;align-items:center;gap:8px}.modern-btn.btn-success{background:#10b981;color:#fff;border-color:#10b981}.modern-btn.btn-success:hover{background:#059669;border-color:#059669;color:#fff;text-decoration:none}.modern-btn i{font-size:14px}.tables-card,.tables-card .card-body{flex:1;display:flex;flex-direction:column}.table-list-container{flex:1;overflow-y:auto;min-height:200px;max-height:450px}.table-item-info{padding:12px 16px;margin-bottom:8px;background:#f8f9fa;border:1px solid #e8eaed;border-radius:8px;transition:.2s}.table-item-info:hover{background:#e8f0fe;border-color:#1a73e8;transform:translateX(2px)}.table-name{font-weight:500;font-size:14px;margin-bottom:4px;color:#202124}.table-comment{font-size:12px;color:#5f6368;margin-bottom:2px}.table-column-count{font-size:11px;color:#9aa0a6}.relationships-card{flex:0 0 auto}.relationships-container{max-height:300px;overflow-y:auto}.relationship-item{padding:10px 12px;margin-bottom:8px;background:#fff3e0;border:1px solid #ffe0b2;border-radius:6px;font-size:12px;display:grid;grid-template-columns:1fr auto 1fr auto;gap:8px;align-items:center}.relationship-from{font-weight:500;color:#202124;text-align:right}.relationship-arrow{color:#f57c00;font-weight:700}.relationship-to{font-weight:500;color:#202124}.relationship-type{color:#5f6368;font-size:10px;grid-column:1/-1;text-align:center;padding-top:4px;border-top:1px solid #ffe0b2;margin-top:4px}.alert{padding:12px 16px;border-radius:8px;margin-top:12px;font-size:13px;display:none;align-items:center;gap:8px}.alert i{font-size:16px}.alert-danger{background:#fce8e6;color:#d93025;border:1px solid #f28b82}.loading-spinner{width:24px;height:24px;border:2px solid #f1f3f4;border-top:2px solid #1a73e8;border-radius:50%;animation:1s linear infinite spin;margin:0 auto 16px}@keyframes spin{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}.relationships-container::-webkit-scrollbar,.table-list-container::-webkit-scrollbar{width:6px}.relationships-container::-webkit-scrollbar-track,.table-list-container::-webkit-scrollbar-track{background:#f1f3f4;border-radius:3px}.relationships-container::-webkit-scrollbar-thumb,.table-list-container::-webkit-scrollbar-thumb{background:#dadce0;border-radius:3px}.relationships-container::-webkit-scrollbar-thumb:hover,.table-list-container::-webkit-scrollbar-thumb:hover{background:#bdc1c6}@media (max-width:768px){.header-content{padding:0 16px}.main-container{padding:20px 16px}.feature-tags{gap:12px}.feature-tag{font-size:11px;padding:4px 8px}.er-header{flex-direction:column;gap:12px;align-items:stretch}.er-toolbar{justify-content:center}.graph-container{height:800px}.table-list-container{max-height:300px}}.params-section{margin-bottom:24px}.modern-params-panel{background:#fff;border:none;box-shadow:0 1px 3px rgba(0,0,0,.1);border-radius:8px;overflow:hidden}.modern-params-heading{background:#fff!important;border:none!important;color:#1f2937!important;padding:16px 20px;cursor:pointer}.modern-params-heading .panel-title{font-size:18px;font-weight:600;margin:0;color:#1f2937}.modern-params-heading i.icon-cogs{color:#3b82f6;margin-right:8px}.modern-params-heading i.icon-chevron-down{color:#6b7280;transition:transform .2s;float:right}.modern-params-heading[aria-expanded=false] i.icon-chevron-down{transform:rotate(-90deg)}.modern-params-body{padding:24px;background:#fff}.params-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:32px}.params-column{min-width:0}.params-group-title{font-size:14px;font-weight:600;color:#1f2937;margin:0 0 16px;padding-bottom:8px;border-bottom:2px solid #e5e7eb;display:flex;align-items:center}.params-group-title i{color:#3b82f6;margin-right:8px;font-size:16px}.form-group-compact{margin-bottom:20px}.control-label-compact{display:block;font-size:12px;font-weight:500;color:#374151;margin-bottom:8px}.modern-slider{width:100%;height:6px;border-radius:3px;background:#e5e7eb;outline:0;opacity:.8;transition:opacity .2s;-webkit-appearance:none;appearance:none}.modern-slider:hover{opacity:1}.modern-slider::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:18px;height:18px;border-radius:50%;background:#3b82f6;cursor:pointer;box-shadow:0 2px 4px rgba(0,0,0,.1);transition:.2s}.modern-slider::-webkit-slider-thumb:hover{background:#2563eb;transform:scale(1.1);box-shadow:0 4px 8px rgba(0,0,0,.15)}.modern-slider::-moz-range-thumb{width:18px;height:18px;border-radius:50%;background:#3b82f6;cursor:pointer;border:none;box-shadow:0 2px 4px rgba(0,0,0,.1);transition:.2s}.modern-slider::-moz-range-thumb:hover{background:#2563eb;transform:scale(1.1);box-shadow:0 4px 8px rgba(0,0,0,.15)}.modern-select{width:100%;padding:8px 12px;border:1px solid #d1d5db;border-radius:6px;font-size:13px;background-color:#fff;color:#374151;transition:border-color .2s}.modern-select:focus{border-color:#3b82f6;outline:0;box-shadow:0 0 0 1px #3b82f6}.help-block-compact{font-size:11px;color:#6b7280;margin-top:4px;font-style:italic}.btn-group-compact{display:flex;flex-wrap:wrap;gap:8px}.modern-preset-btn{padding:6px 12px;border:1px solid #d1d5db;border-radius:6px;background:#fff;color:#374151;font-size:12px;font-weight:500;transition:.2s;text-shadow:none;flex:1;min-width:60px;cursor:pointer}.modern-preset-btn:hover{background:#f9fafb;border-color:#9ca3af;color:#374151;transform:none;box-shadow:none}.modern-preset-btn.btn-warning{background:#f59e0b;color:#fff;border-color:#f59e0b}.modern-preset-btn.btn-warning:hover{background:#d97706;border-color:#d97706;color:#fff}@media (max-width:1200px){.params-grid{grid-template-columns:repeat(2,1fr);gap:20px}}@media (max-width:768px){.params-grid{grid-template-columns:1fr;gap:16px}}.checkbox-highlight{background:linear-gradient(135deg,#e0f2fe 0,#f0f9ff 100%);border:2px solid #0284c7;border-radius:8px;padding:16px;display:flex;flex-direction:column;gap:12px;transition:.3s}.checkbox-highlight:hover{background:linear-gradient(135deg,#cff0fe 0,#e0f8ff 100%);border-color:#0369a1;box-shadow:0 4px 12px rgba(2,132,199,.15)}.checkbox-input-large{width:18px;height:18px;margin-right:12px;cursor:pointer;accent-color:#0284c7;transition:.2s}.checkbox-input-large:hover{transform:scale(1.1)}.checkbox-input-large:checked{background-color:#0284c7}.checkbox-label-large{display:flex;align-items:center;font-size:14px;font-weight:600;color:#0c4a6e;margin:0;cursor:pointer;transition:color .2s}.checkbox-label-large:hover{color:#0369a1}.checkbox-description{font-size:12px;color:#0c4a6e;padding-left:30px;line-height:1.5;opacity:.8}.sql2er-page .sql2er-workspace{grid-template-columns:140px 272px minmax(0,1fr) 248px}.sql2er-page .modern-canvas-panel,.sql2er-page .modern-input-panel,.sql2er-page .modern-params-panel,.sql2er-page .structure-side-panel{border-radius:0;box-shadow:none}.sql2er-page .sql2er-sql-textarea{resize:none;background:#fff}.sql2er-page .sql2er-empty-state{top:50%;transform:translate(-50%,-50%);border:1px solid #e5e7eb;background:rgba(255,255,255,.97);box-shadow:0 10px 26px rgba(15,23,42,.05)}.sql2er-page .params-grid{grid-template-columns:1fr;gap:6px}.sql2er-page .checkbox-highlight,.sql2er-page .params-column{padding:8px 10px;border-width:1px;border-radius:6px;box-shadow:none}.sql2er-page .checkbox-highlight{background:#fafafa;border-color:#ececec;gap:6px}.sql2er-page .checkbox-description,.sql2er-page .checkbox-label-large{color:#111827}.sql2er-page .checkbox-description{padding-left:0;opacity:1}.sql2er-page .modern-preset-btn{flex:initial;min-width:0}@media (max-width:1440px){.sql2er-page .sql2er-workspace{grid-template-columns:132px 248px minmax(0,1fr) 232px}}@media (max-width:1200px){.sql2er-page .sql2er-workspace{grid-template-columns:120px 228px minmax(0,1fr) 216px}.sql2er-page .sql2er-sql-textarea{min-height:520px}}.sql2er-page.structure-container{overflow:hidden}.sql2er-page .sql2er-workspace{grid-template-columns:130px 250px minmax(0,1fr) 240px}.sql2er-page .sql2er-input-column,.sql2er-page .sql2er-preview-column,.sql2er-page .sql2er-settings-column,.sql2er-page .structure-tools-column{min-width:0;min-height:0}.sql2er-page .sql2er-canvas-panel,.sql2er-page .sql2er-params-panel,.sql2er-page .sql2er-sql-panel{min-height:100%;height:100%}.sql2er-page .sql2er-sql-panel .panel-body{display:flex;flex-direction:column;overflow-x:hidden;overflow-y:auto}.sql2er-page .sql2er-sql-form-group{display:flex;flex:1;flex-direction:column}.sql2er-page .sql2er-sql-textarea,.sql2er-page .sql2er-sql-textarea.modern-textarea{width:100%;flex:1 1 auto;height:clamp(240px,calc(100vh - 360px),560px);resize:none}.sql2er-page .sql2er-input-actions{flex:0 0 auto;margin-top:auto;position:sticky;bottom:0;z-index:4;padding-top:10px;background:linear-gradient(180deg,rgba(255,255,255,0) 0,#fff 18px,#fff 100%)}.sql2er-page .sql2er-generate-btn{justify-content:center;gap:6px}.sql2er-page .modern-btn{border-radius:6px;border:1px solid #d1d5db;background:#fff;color:#374151;box-shadow:none}.sql2er-page .modern-btn:hover{background:#f8fafc;border-color:#94a3b8;color:#374151;box-shadow:none}.sql2er-page .modern-btn.btn-warning{background:#f3f4f6;border-color:#d1d5db;color:#374151}.sql2er-page .modern-btn.btn-info,.sql2er-page .modern-btn.btn-primary{background:#2563eb;border-color:#2563eb;color:#fff}.sql2er-page .modern-btn.btn-info:hover,.sql2er-page .modern-btn.btn-primary:hover{background:#1d4ed8;border-color:#1d4ed8;color:#fff}.sql2er-page .modern-btn.btn-success{background:#10b981;border-color:#10b981;color:#fff}.sql2er-page .modern-btn.btn-success:hover{background:#059669;border-color:#059669;color:#fff}.sql2er-page .modern-control-btn{border:1px solid #d1d5db;border-radius:6px;background:#fff;color:#6b7280;box-shadow:none}.sql2er-page .modern-control-btn:hover{background:#f5f5f5;border-color:#d1d5db;color:#111827;box-shadow:none}.sql2er-page .modern-preset-btn{border:1px solid #d1d5db;border-radius:6px;background:#fff;color:#374151;box-shadow:none}.sql2er-page .modern-preset-btn:hover{background:#f8fafc;border-color:#94a3b8;color:#1f2937}.sql2er-page .modern-preset-btn.btn-warning{background:#f59e0b;border-color:#f59e0b;color:#fff}.sql2er-page .modern-preset-btn.btn-warning:hover{background:#d97706;border-color:#d97706;color:#fff}.sql2er-page .sql2er-preview-column #graph-container,.sql2er-page .sql2er-preview-column .canvas-container,.sql2er-page .sql2er-preview-column .modern-canvas-body{min-height:calc(100vh - 120px)}.sql2er-page .sql2er-graph-container{background:#fff}.sql2er-page #graph-container .empty-state{min-height:280px;display:flex;flex-direction:column;justify-content:center;align-items:center}.sql2er-page #graph-container .empty-state-badge{display:inline-flex;align-items:center;justify-content:center}.sql2er-page .sql2er-empty-link{display:block!important;width:100%!important}.sql2er-page .sql2er-empty-btn{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;text-align:center!important;width:100%!important;max-width:none!important;margin:0!important;min-height:46px!important;border-radius:10px!important;background:#10b981!important;border-color:#10b981!important;color:#fff!important}.sql2er-page .sql2er-empty-btn:hover{background:#059669!important;border-color:#059669!important;color:#fff!important}.sql2er-page .sql2er-edit-btn,.sql2er-page .sql2er-export-btn,.sql2er-page .sql2er-fixed-layout-btn,.sql2er-page .sql2er-node-edit-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;width:auto;min-width:96px;padding:0 12px;height:30px;flex:0 0 auto;white-space:nowrap}.sql2er-page .sql2er-node-edit-btn{border-color:#bfdbfe;background:#eff6ff;color:#1d4ed8}.sql2er-page .sql2er-node-edit-btn:hover{background:#dbeafe;border-color:#93c5fd;color:#1e40af}.sql2er-page .sql2er-fixed-layout-btn{border-color:#cbd5e1;background:#fff;color:#334155}.sql2er-page .sql2er-fixed-layout-btn:hover{background:#f8fafc;border-color:#94a3b8;color:#0f172a}.sql2er-page .sql2er-export-btn{border-color:#10b981;background:#10b981;color:#fff}.sql2er-page .sql2er-export-btn:hover{background:#059669;border-color:#059669;color:#fff}.sql2er-page .sql2er-edit-btn{border-color:#f59e0b;background:#f59e0b;color:#fff}.sql2er-page .sql2er-edit-btn:hover{background:#d97706;border-color:#d97706;color:#fff}.sql2er-page .sql2er-edit-btn span,.sql2er-page .sql2er-export-btn span,.sql2er-page .sql2er-fixed-layout-btn span,.sql2er-page .sql2er-node-edit-btn span{font-size:11px;font-weight:600}.sql2er-page .sql2er-fixed-layout-btn i,.sql2er-page .sql2er-node-edit-btn i{font-size:13px}.sql2er-page .sql2er-params-panel .modern-params-body{flex:1;scrollbar-width:thin;scrollbar-color:#cbd5e1 #f8fafc}.sql2er-page .sql2er-params-panel .modern-params-body::-webkit-scrollbar{width:8px}.sql2er-page .sql2er-params-panel .modern-params-body::-webkit-scrollbar-track{background:#f8fafc}.sql2er-page .sql2er-params-panel .modern-params-body::-webkit-scrollbar-thumb{border-radius:999px;background:#cbd5e1}.sql2er-page .sql2er-params-panel .params-grid{display:grid;grid-template-columns:1fr}@media (max-width:1500px){.sql2er-page .sql2er-workspace{grid-template-columns:120px 220px minmax(0,1fr) 220px}}@media (max-width:1200px){.sql2er-page .sql2er-sql-textarea,.sql2er-page .sql2er-sql-textarea.modern-textarea{height:420px;min-height:420px}}@media (max-width:900px){.sql2er-page .sql2er-sql-textarea,.sql2er-page .sql2er-sql-textarea.modern-textarea{height:360px;min-height:360px}}@media (max-height:860px){.sql2er-page .sql2er-sql-textarea,.sql2er-page .sql2er-sql-textarea.modern-textarea{height:300px;min-height:260px}}body #app{height:100vh;min-height:100vh;overflow:hidden}.structure-container.erdgram-container,.structure-container.flowchart-page,.structure-container.sequence-page,.structure-container.sql2er-page,.structure-container.structure-page,.structure-container.usecase-page{height:calc(100vh - 72px)!important;min-height:calc(100vh - 72px)!important;max-height:calc(100vh - 72px)!important;overflow:hidden!important;padding:0!important}.structure-container.erdgram-container .structure-workspace,.structure-container.flowchart-page .flowchart-workspace,.structure-container.sequence-page .sequence-workspace,.structure-container.sql2er-page .sql2er-workspace,.structure-container.structure-page .structure-workspace,.structure-container.usecase-page .usecase-workspace{height:100%!important;min-height:0!important;overflow:hidden!important;align-items:stretch!important;grid-template-areas:none!important}.structure-container.structure-page .structure-workspace{grid-template-columns:140px 240px minmax(0,1fr) 230px!important}.structure-container.usecase-page .usecase-workspace{grid-template-columns:140px 270px minmax(0,1fr) 245px!important}.structure-container.flowchart-page .flowchart-workspace,.structure-container.sequence-page .sequence-workspace{grid-template-columns:140px 260px minmax(0,1fr) 250px!important}.structure-container.sql2er-page .sql2er-workspace{grid-template-columns:130px 250px minmax(0,1fr) 240px!important}.structure-container.erdgram-container .structure-workspace{grid-template-columns:130px 250px minmax(0,1fr) 220px 240px!important}.structure-container.erdgram-container .erd-preview-column,.structure-container.erdgram-container .erd-tablelist-column,.structure-container.erdgram-container .structure-input-column,.structure-container.erdgram-container .structure-settings-column,.structure-container.erdgram-container .structure-tools-column,.structure-container.flowchart-page .flowchart-preview-column,.structure-container.flowchart-page .structure-input-column,.structure-container.flowchart-page .structure-settings-column,.structure-container.flowchart-page .structure-tools-column,.structure-container.sequence-page .sequence-preview-column,.structure-container.sequence-page .structure-input-column,.structure-container.sequence-page .structure-settings-column,.structure-container.sequence-page .structure-tools-column,.structure-container.sql2er-page .sql2er-input-column,.structure-container.sql2er-page .sql2er-preview-column,.structure-container.sql2er-page .sql2er-settings-column,.structure-container.sql2er-page .structure-tools-column,.structure-container.structure-page .structure-input-column,.structure-container.structure-page .structure-preview-column,.structure-container.structure-page .structure-settings-column,.structure-container.structure-page .structure-tools-column,.structure-container.usecase-page .structure-input-column,.structure-container.usecase-page .structure-preview-column,.structure-container.usecase-page .structure-settings-column,.structure-container.usecase-page .structure-tools-column{height:100%!important;min-height:0!important;overflow:hidden!important;grid-area:auto!important}.structure-container.erdgram-container .erd-canvas-panel,.structure-container.erdgram-container .erd-params-panel,.structure-container.erdgram-container .erd-sql-panel,.structure-container.erdgram-container .erd-table-panel,.structure-container.flowchart-page .flowchart-canvas-panel,.structure-container.flowchart-page .flowchart-help-panel,.structure-container.flowchart-page .flowchart-input-panel,.structure-container.sequence-page .sequence-canvas-panel,.structure-container.sequence-page .sequence-help-panel,.structure-container.sequence-page .sequence-input-panel,.structure-container.sql2er-page .sql2er-canvas-panel,.structure-container.sql2er-page .sql2er-params-panel,.structure-container.sql2er-page .sql2er-sql-panel,.structure-container.structure-page .modern-canvas-panel,.structure-container.structure-page .modern-input-panel,.structure-container.structure-page .modern-params-panel,.structure-container.usecase-page .usecase-canvas-panel,.structure-container.usecase-page .usecase-input-panel,.structure-container.usecase-page .usecase-params-panel{height:100%!important;min-height:0!important;overflow:hidden!important}.structure-container.erdgram-container .erd-sql-panel .panel-body,.structure-container.flowchart-page .flowchart-input-panel .panel-body,.structure-container.sequence-page .sequence-input-panel .panel-body,.structure-container.sql2er-page .sql2er-sql-panel .panel-body,.structure-container.structure-page .modern-input-panel .panel-body,.structure-container.usecase-page .usecase-input-panel .panel-body{display:flex!important;flex-direction:column!important;gap:6px!important;min-height:0!important;overflow:hidden!important}.structure-container.erdgram-container .erd-sql-form-group,.structure-container.flowchart-page .flowchart-source-group,.structure-container.sequence-page .sequence-source-group,.structure-container.sql2er-page .sql2er-sql-form-group,.structure-container.structure-page .structure-source-group,.structure-container.usecase-page .usecase-source-group{display:flex!important;flex:1 1 auto!important;flex-direction:column!important;min-height:0!important;margin-bottom:0!important}.structure-container.erdgram-container .erd-sql-textarea,.structure-container.flowchart-page .flowchart-source-group .flowchart-input,.structure-container.flowchart-page .flowchart-source-group .modern-textarea,.structure-container.sequence-page .sequence-source-group .modern-textarea,.structure-container.sequence-page .sequence-source-group .sequence-source-textarea,.structure-container.sql2er-page .sql2er-sql-textarea,.structure-container.structure-page .structure-source-group .modern-textarea,.structure-container.structure-page .structure-source-group .structure-input,.structure-container.usecase-page .usecase-source-group .modern-textarea,.structure-container.usecase-page .usecase-source-group .usecase-input{flex:1 1 auto!important;width:100%!important;height:100%!important;min-height:0!important;max-height:none!important;resize:none!important;overflow-y:auto!important}.structure-container.erdgram-container .erd-input-actions,.structure-container.flowchart-page .flowchart-actions-group,.structure-container.sequence-page .sequence-actions-group,.structure-container.sql2er-page .sql2er-input-actions,.structure-container.structure-page .structure-actions-group,.structure-container.usecase-page .usecase-actions-group{flex:0 0 auto!important;order:3!important;margin-top:auto!important;margin-bottom:0!important}.structure-container.erdgram-container #error-message,.structure-container.flowchart-page #errorInfo,.structure-container.flowchart-page #statusInfo,.structure-container.sequence-page #sequenceErrorInfo,.structure-container.sequence-page #sequenceStatusInfo,.structure-container.sql2er-page #error-message,.structure-container.structure-page #errorInfo,.structure-container.structure-page #statusInfo,.structure-container.usecase-page #errorInfo,.structure-container.usecase-page #statusInfo{order:2!important;flex:0 0 auto!important;margin-top:0!important;margin-bottom:0!important}.structure-container.erdgram-container #graph-container,.structure-container.erdgram-container .canvas-container,.structure-container.erdgram-container .graph-container,.structure-container.erdgram-container .modern-canvas-body,.structure-container.flowchart-page #graphContainer,.structure-container.flowchart-page .canvas-container,.structure-container.flowchart-page .graph-container,.structure-container.flowchart-page .modern-canvas-body,.structure-container.sequence-page #sequencePreviewContainer,.structure-container.sequence-page .canvas-container,.structure-container.sequence-page .graph-container,.structure-container.sequence-page .modern-canvas-body,.structure-container.sql2er-page #graph-container,.structure-container.sql2er-page .canvas-container,.structure-container.sql2er-page .graph-container,.structure-container.sql2er-page .modern-canvas-body,.structure-container.structure-page #graphContainer,.structure-container.structure-page .canvas-container,.structure-container.structure-page .graph-container,.structure-container.structure-page .modern-canvas-body,.structure-container.usecase-page #graphContainer,.structure-container.usecase-page .canvas-container,.structure-container.usecase-page .graph-container,.structure-container.usecase-page .modern-canvas-body{height:100%!important;min-height:0!important;max-height:none!important;overflow:hidden!important}.structure-container.erdgram-container #graph-container .empty-state,.structure-container.flowchart-page .modern-empty,.structure-container.sequence-page .modern-empty,.structure-container.sql2er-page #graph-container .empty-state,.structure-container.structure-page .modern-empty,.structure-container.usecase-page .modern-empty{top:calc(50% - 16px)!important;left:50%!important;width:calc(100% - 40px)!important;min-height:280px!important;padding:20px!important;margin:0!important;transform:translate(-50%,-50%)!important}.structure-container.erdgram-container #graph-container .empty-state,.structure-container.flowchart-page .flowchart-empty-state,.structure-container.sequence-page .sequence-empty-state,.structure-container.sql2er-page .sql2er-empty-state,.structure-container.structure-page .structure-empty-state,.structure-container.usecase-page .usecase-empty-state{max-width:420px!important}.structure-container.erdgram-container .erd-params-panel,.structure-container.flowchart-page .flowchart-help-panel,.structure-container.sequence-page .sequence-help-panel,.structure-container.sql2er-page .sql2er-params-panel,.structure-container.structure-page .modern-params-panel,.structure-container.usecase-page .usecase-params-panel{position:relative!important;top:auto!important;overflow:hidden!important}.structure-container.erdgram-container .modern-params-body,.structure-container.flowchart-page .modern-params-body,.structure-container.sequence-page .modern-params-body,.structure-container.sql2er-page .modern-params-body,.structure-container.structure-page .modern-params-body,.structure-container.usecase-page .modern-params-body{flex:1 1 auto!important;min-height:0!important;overflow-x:hidden!important;overflow-y:auto!important}.structure-container.erdgram-container .erd-input-actions,.structure-container.flowchart-page .flowchart-input-actions,.structure-container.sequence-page .sequence-input-actions,.structure-container.sql2er-page .sql2er-input-actions,.structure-container.structure-page .structure-input-actions,.structure-container.usecase-page .usecase-input-actions{position:sticky;bottom:0;z-index:4;padding-top:10px;background:linear-gradient(180deg,rgba(255,255,255,0) 0,#fff 18px,#fff 100%)}.structure-container.flowchart-page .flowchart-input-actions .btn-group,.structure-container.sequence-page .sequence-input-actions .btn-group,.structure-container.structure-page .structure-input-actions .btn-group,.structure-container.usecase-page .usecase-input-actions .btn-group{flex:1 1 calc(50% - 3px)!important;min-width:0!important}.structure-container.flowchart-page .flowchart-input-mode-panel[data-flowchart-mode-panel=text] .flowchart-source-group .flowchart-input,.structure-container.flowchart-page .flowchart-input-mode-panel[data-flowchart-mode-panel=text] .flowchart-source-group .modern-textarea{flex:0 0 auto!important;height:clamp(240px,calc(100vh - 360px),520px)!important;min-height:clamp(240px,calc(100vh - 360px),520px)!important;max-height:clamp(240px,calc(100vh - 360px),520px)!important}@media (max-width:1200px){.structure-container.flowchart-page .flowchart-input-panel .panel-body{overflow-y:auto!important}.structure-container.flowchart-page .flowchart-input-mode-panel[data-flowchart-mode-panel=text] .flowchart-source-group .flowchart-input,.structure-container.flowchart-page .flowchart-input-mode-panel[data-flowchart-mode-panel=text] .flowchart-source-group .modern-textarea{height:clamp(220px,calc(100vh - 460px),380px)!important;min-height:clamp(220px,calc(100vh - 460px),380px)!important;max-height:clamp(220px,calc(100vh - 460px),380px)!important}}@media (max-width:900px){.structure-container.flowchart-page .flowchart-input-mode-panel[data-flowchart-mode-panel=text] .flowchart-source-group .flowchart-input,.structure-container.flowchart-page .flowchart-input-mode-panel[data-flowchart-mode-panel=text] .flowchart-source-group .modern-textarea{height:clamp(180px,calc(100vh - 490px),300px)!important;min-height:clamp(180px,calc(100vh - 490px),300px)!important;max-height:clamp(180px,calc(100vh - 490px),300px)!important}}@media (max-width:680px){.structure-container.flowchart-page .flowchart-input-mode-panel[data-flowchart-mode-panel=text] .flowchart-source-group .flowchart-input,.structure-container.flowchart-page .flowchart-input-mode-panel[data-flowchart-mode-panel=text] .flowchart-source-group .modern-textarea{height:clamp(150px,calc(100vh - 540px),240px)!important;min-height:clamp(150px,calc(100vh - 540px),240px)!important;max-height:clamp(150px,calc(100vh - 540px),240px)!important}}