.docgraph-app{display:grid;grid-template-rows:auto auto 1fr;height:100vh;background:#1a1a1a;color:#e5e7eb;font-family:Segoe UI,Tahoma,Geneva,sans-serif}.docgraph-app.light-theme{background:#f8f9fa;color:#1f2937}.docgraph-header{display:flex;align-items:center;gap:16px;padding:12px 24px;border-bottom:1px solid #2d2d2d;background:#1f1f1f}.docgraph-app.light-theme .docgraph-header{background:#fff;border-bottom-color:#e5e7eb}.docgraph-header h1{font-size:16px;font-weight:600;margin:0;flex-grow:1}.docgraph-header .header-actions{display:flex;align-items:center;gap:12px}.docgraph-header .back-btn,.docgraph-header .theme-toggle{display:inline-flex;align-items:center;gap:6px;padding:6px 12px;border:1px solid #3d3d3d;background:transparent;color:inherit;border-radius:6px;cursor:pointer;font-size:13px}.docgraph-app.light-theme .back-btn,.docgraph-app.light-theme .theme-toggle{border-color:#d1d5db}.docgraph-header .back-btn:hover,.docgraph-header .theme-toggle:hover{background:#ffffff0d}.docgraph-app.light-theme .back-btn:hover,.docgraph-app.light-theme .theme-toggle:hover{background:#f3f4f6}.docgraph-controls{display:flex;align-items:center;gap:16px;padding:12px 24px;background:#1c1c1c;border-bottom:1px solid #2d2d2d;flex-wrap:wrap}.docgraph-app.light-theme .docgraph-controls{background:#f3f4f6;border-bottom-color:#e5e7eb}.docgraph-controls label{display:flex;flex-direction:column;gap:4px;font-size:11px;text-transform:uppercase;letter-spacing:.5px;color:#9ca3af}.docgraph-controls select{padding:7px 10px;border:1px solid #3d3d3d;background:#2a2a2a;color:#e5e7eb;border-radius:4px;font-size:13px;min-width:200px;max-width:300px}.docgraph-app.light-theme .docgraph-controls select{background:#fff;color:#1f2937;border-color:#d1d5db}.docgraph-controls .run-impact{display:inline-flex;align-items:center;gap:6px;margin-top:14px;padding:8px 18px;background:#0078d4;color:#fff;border:none;border-radius:6px;cursor:pointer;font-weight:600;font-size:13px}.docgraph-controls .run-impact:disabled{background:#4b5563;cursor:not-allowed;opacity:.7}.docgraph-controls .run-impact .spin{animation:docgraph-spin 1s linear infinite}@keyframes docgraph-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.docgraph-body{display:grid;grid-template-columns:1fr 420px;overflow:hidden;height:100%}.docgraph-graph{position:relative;background:#111827;border-right:1px solid #2d2d2d}.docgraph-app.light-theme .docgraph-graph{background:#fff;border-right-color:#e5e7eb}.docgraph-side{display:flex;flex-direction:column;overflow-y:auto;background:#1c1c1c}.docgraph-app.light-theme .docgraph-side{background:#f9fafb}.doc-graph{position:relative;width:100%;height:100%}.doc-graph .graph-canvas{width:100%;height:100%}.graph-controls{position:absolute;top:12px;right:12px;display:flex;flex-direction:column;gap:6px;z-index:10}.graph-controls button{width:32px;height:32px;border:1px solid #3d3d3d;background:#1f1f1fe6;color:#e5e7eb;border-radius:4px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center}.docgraph-app.light-theme .graph-controls button{background:#fffffff2;border-color:#d1d5db;color:#1f2937}.graph-controls button:hover{background:#0078d44d}.graph-loading,.graph-empty{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;z-index:5;pointer-events:none;color:#9ca3af;font-size:14px}.impact-panel,.diff-panel{padding:16px 18px;border-bottom:1px solid #2d2d2d}.docgraph-app.light-theme .impact-panel,.docgraph-app.light-theme .diff-panel{border-bottom-color:#e5e7eb}.impact-panel h3,.diff-panel h3{font-size:13px;font-weight:600;text-transform:uppercase;letter-spacing:.6px;margin:0 0 12px;color:#d1d5db}.docgraph-app.light-theme .impact-panel h3,.docgraph-app.light-theme .diff-panel h3{color:#4b5563}.impact-panel h3 .count{color:#9ca3af;font-weight:400;margin-left:4px}.impact-panel .severity-summary{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:12px}.severity-pill{display:inline-flex;align-items:center;gap:4px;padding:3px 8px;border-radius:12px;font-size:11px;font-weight:600}.finding-list,.diff-list{list-style:none;margin:0;padding:0}.finding-item{padding:10px;margin-bottom:8px;border:1px solid #2d2d2d;background:#1f1f1f;border-radius:6px;cursor:pointer;transition:background .1s,border-color .1s}.docgraph-app.light-theme .finding-item{background:#fff;border-color:#e5e7eb}.finding-item:hover{background:#252525;border-color:#4b5563}.docgraph-app.light-theme .finding-item:hover{background:#f3f4f6;border-color:#9ca3af}.finding-item.expanded{background:#252525;border-color:#0078d4}.docgraph-app.light-theme .finding-item.expanded{background:#eff6ff;border-color:#0078d4}.finding-header{display:flex;align-items:center;gap:10px}.severity-badge{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:50%;color:#fff;flex-shrink:0}.finding-title{flex-grow:1;min-width:0}.finding-title .title{font-size:13px;font-weight:600;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.finding-title .category{font-size:10px;color:#9ca3af;text-transform:uppercase;letter-spacing:.4px;margin-top:2px}.finding-body{margin-top:10px;padding-top:10px;border-top:1px solid #2d2d2d;font-size:12px;line-height:1.5}.docgraph-app.light-theme .finding-body{border-top-color:#e5e7eb}.finding-body .reason{margin:0 0 8px;color:#d1d5db}.docgraph-app.light-theme .finding-body .reason{color:#374151}.finding-body .label{font-size:10px;text-transform:uppercase;letter-spacing:.5px;color:#9ca3af;margin-bottom:4px}.finding-body .citation blockquote{margin:0 0 8px;padding:6px 10px;border-left:3px solid #0078d4;background:#0078d40f;font-style:italic;color:#d1d5db}.docgraph-app.light-theme .finding-body .citation blockquote{color:#1f2937;background:#0078d40a}.finding-body .chunk p{margin:0 0 8px;padding:6px 10px;background:#161616;border-radius:4px;color:#b5b5b5;font-size:11px;max-height:100px;overflow-y:auto}.docgraph-app.light-theme .finding-body .chunk p{background:#f3f4f6;color:#4b5563}.finding-body .evidence-path ol{margin:4px 0 8px;padding-left:20px;color:#b5b5b5}.finding-body .evidence-path .node-type{display:inline-block;padding:1px 6px;background:#2d2d2d;border-radius:3px;font-size:10px;text-transform:uppercase;margin-right:6px}.docgraph-app.light-theme .finding-body .evidence-path .node-type{background:#e5e7eb}.finding-body .meta{font-size:10px;color:#6b7280;margin-top:6px}.finding-body .meta code{background:#2d2d2d;padding:1px 4px;border-radius:3px;font-family:monospace}.docgraph-app.light-theme .finding-body .meta code{background:#e5e7eb}.diff-panel .diff-summary{margin:0 0 12px;padding:8px 10px;background:#0078d414;border-left:3px solid #0078d4;font-size:12px;border-radius:0 4px 4px 0}.diff-panel section{margin-bottom:12px}.diff-panel h4{display:flex;align-items:center;gap:6px;margin:0 0 6px;font-size:12px;font-weight:600;color:#d1d5db}.docgraph-app.light-theme .diff-panel h4{color:#4b5563}.diff-item{padding:6px 10px;margin-bottom:4px;border-radius:4px;font-size:12px;display:flex;flex-direction:column;gap:4px}.diff-item .diff-header{display:flex;align-items:center;gap:6px;cursor:pointer}.diff-item .section-num{display:inline-block;padding:1px 6px;background:#2d2d2d;border-radius:3px;font-family:monospace;font-size:10px;color:#9ca3af}.docgraph-app.light-theme .diff-item .section-num{background:#e5e7eb;color:#6b7280}.diff-item.modified{background:#ffb90014;border:1px solid rgba(255,185,0,.25)}.diff-item.added{background:#107c1014;border:1px solid rgba(16,124,16,.25)}.diff-item.removed{background:#d1343814;border:1px solid rgba(209,52,56,.25)}.diff-item .diff-body{margin-top:6px;display:grid;grid-template-columns:1fr 1fr;gap:8px}.diff-content .content-label{font-size:10px;text-transform:uppercase;color:#9ca3af;margin-bottom:4px;letter-spacing:.5px}.diff-content pre{margin:0;padding:8px;background:#161616;border-radius:4px;font-family:Consolas,monospace;font-size:10px;white-space:pre-wrap;word-break:break-word;max-height:160px;overflow-y:auto;color:#b5b5b5}.docgraph-app.light-theme .diff-content pre{background:#f3f4f6;color:#374151}.diff-content.old pre{border-left:3px solid #d13438}.diff-content.new pre{border-left:3px solid #107c10}.muted{color:#6b7280;font-size:12px;margin:0}.error{color:#d13438;font-size:12px}.docgraph-error{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;height:100vh;padding:24px;text-align:center}.docgraph-error code{display:inline-block;padding:4px 10px;background:#2d2d2d;border-radius:4px;font-family:monospace;font-size:12px}.docgraph-error button{padding:8px 18px;background:#0078d4;color:#fff;border:none;border-radius:4px;cursor:pointer}
