.mermaid-chart{display:flex;justify-content:center;margin:1em 0;padding:1em;background:#fafbfc;border:1px solid #e5e7eb;border-radius:8px;overflow-x:auto;cursor:zoom-in;transition:box-shadow .2s}.mermaid-chart:hover{box-shadow:0 2px 12px #00000014}.mermaid-chart svg{height:auto;min-width:600px}.mermaid-overlay{position:fixed;inset:0;z-index:9999;background:#0009;display:flex;align-items:center;justify-content:center;cursor:zoom-out;padding:2rem;overflow:auto}.mermaid-overlay-content{background:#fff;border-radius:12px;padding:2rem;margin:auto;max-width:90vw;max-height:90vh;overflow:auto}.mermaid-overlay-content svg{display:block;margin:0 auto;max-width:100%;height:auto}.mermaid-error{margin:.5em 0;padding:6px 12px;background:#e8ab3014;border:1px solid hsla(40,80%,55%,.2);border-radius:6px}.mermaid-error-hint{font-size:12px;color:#b88a2e}.mermaid-error-details{margin-top:8px}.mermaid-error-details summary{font-size:11px;color:var(--muted-foreground);cursor:pointer;-webkit-user-select:none;user-select:none}.mermaid-error-source{margin-top:6px;padding:10px 12px;background:var(--secondary);border-radius:4px;font-size:11px;line-height:1.5;overflow-x:auto}.mermaid-error-source code{white-space:pre;color:var(--foreground)}.mermaid-error-msg{margin-top:4px;font-size:11px;color:var(--destructive)}
