.md-preview{color:#1f2937;word-wrap:break-word;overflow-wrap:anywhere;font-size:1rem;line-height:1.65}.dark .md-preview{color:#e5e7eb}.md-preview>:first-child{margin-top:0}.md-preview>:last-child{margin-bottom:0}.md-preview h1,.md-preview h2,.md-preview h3,.md-preview h4,.md-preview h5,.md-preview h6{color:#111827;margin:1.6em 0 .6em;font-weight:700;line-height:1.25}.dark .md-preview h1,.dark .md-preview h2,.dark .md-preview h3,.dark .md-preview h4,.dark .md-preview h5,.dark .md-preview h6{color:#f9fafb}.md-preview h1{border-bottom:1px solid #e5e7eb;padding-bottom:.3em;font-size:2em}.md-preview h2{border-bottom:1px solid #e5e7eb;padding-bottom:.3em;font-size:1.5em}.dark .md-preview h1,.dark .md-preview h2{border-color:#374151}.md-preview h3{font-size:1.25em}.md-preview h4{font-size:1.05em}.md-preview h5,.md-preview h6{font-size:1em}.md-preview p,.md-preview ul,.md-preview ol,.md-preview blockquote,.md-preview pre,.md-preview table,.md-preview details{margin:0 0 1em}.md-preview ul{padding-left:1.6em;list-style:outside}.md-preview ol{padding-left:1.6em;list-style:decimal}.md-preview li+li{margin-top:.25em}.md-preview li>p{margin-bottom:.4em}.md-preview ul ul,.md-preview ol ul{margin-bottom:0;list-style:circle}.md-preview li.task-list-item,.md-preview li:has(>input[type=checkbox]){margin-left:-1.4em;list-style:none}.md-preview input[type=checkbox]{vertical-align:middle;accent-color:#7c3aed;margin-right:.5em}.md-preview a{color:#6d28d9;text-underline-offset:2px;text-decoration:underline}.dark .md-preview a{color:#c4b5fd}.md-preview strong{font-weight:700}.md-preview blockquote{color:#4b5563;background:#faf5ff;border-left:4px solid #d8b4fe;border-radius:0 .5rem .5rem 0;padding:.25em 1em}.dark .md-preview blockquote{color:#d1d5db;background:#7c3aed1f;border-color:#7c3aed}.md-preview code{font-family:var(--font-mono,ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);background:#f3f4f6;border-radius:.3rem;padding:.15em .4em;font-size:.875em}.dark .md-preview code{background:#1f2937}.md-preview pre{background:#f6f8fa;border:1px solid #e5e7eb;border-radius:.6rem;padding:1em;font-size:.875rem;line-height:1.5;overflow-x:auto}.dark .md-preview pre{background:#0f172a;border-color:#334155}.md-preview pre code{font-size:inherit;white-space:pre;background:0 0;padding:0}.md-preview table{border-collapse:collapse;width:max-content;max-width:100%;display:block;overflow-x:auto}.md-preview th,.md-preview td{text-align:left;vertical-align:top;border:1px solid #d1d5db;padding:.45em .8em}.dark .md-preview th,.dark .md-preview td{border-color:#4b5563}.md-preview th{background:#f9fafb;font-weight:600}.dark .md-preview th{background:#1f2937}.md-preview tr:nth-child(2n) td{background:#fafafa}.dark .md-preview tr:nth-child(2n) td{background:#ffffff05}.md-preview img{border-radius:.5rem;max-width:100%;height:auto}.md-preview hr{border:0;border-top:2px solid #e5e7eb;margin:2em 0}.dark .md-preview hr{border-color:#374151}.md-preview del{color:#6b7280}.md-preview kbd{font-family:var(--font-mono);border:1px solid #d1d5db;border-bottom-width:2px;border-radius:.3rem;padding:.1em .4em;font-size:.8em}.md-preview sup a{text-decoration:none}.md-preview .mermaid{justify-content:center;margin:1em 0;display:flex;overflow-x:auto}.md-preview .mermaid svg{max-width:100%;height:auto}.md-preview .math-block{text-align:center;margin:1em 0;display:block;overflow-x:auto}.md-preview .katex-display{margin:0}.md-preview .tool-render-error{color:#b91c1c;font-size:.875rem}.tool-card{background:#fff;border:1px solid #e5e7eb;border-radius:1.25rem;box-shadow:0 10px 40px -20px #4c1d9540}.dark .tool-card{background:#0b1120;border-color:#1f2937}.tool-drop{text-align:center;cursor:pointer;background:#faf5ff;border:2px dashed #c4b5fd;border-radius:1rem;flex-direction:column;justify-content:center;align-items:center;gap:.5rem;min-height:11rem;padding:1.5rem;transition:border-color .15s,background-color .15s,box-shadow .15s;display:flex}.dark .tool-drop{background:#7c3aed14;border-color:#5b21b6}.tool-drop:hover,.tool-drop.is-dragover{background:#f3e8ff;border-color:#7c3aed}.dark .tool-drop:hover,.dark .tool-drop.is-dragover{background:#7c3aed2e}.tool-drop:focus-within{border-color:#7c3aed;outline:none;box-shadow:0 0 0 3px #7c3aed73}.tool-drop.is-busy{pointer-events:none;opacity:.7}.tool-textarea{resize:vertical;width:100%;min-height:18rem;font-family:var(--font-mono,ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);color:#111827;tab-size:2;background:#fff;border:1px solid #e5e7eb;border-radius:.9rem;padding:.9rem 1rem;font-size:16px;line-height:1.55}.dark .tool-textarea{color:#f3f4f6;background:#030712;border-color:#374151}.tool-textarea:focus{border-color:#7c3aed;outline:none;box-shadow:0 0 0 3px #7c3aed40}.tool-input{color:#111827;background:#fff;border:1px solid #e5e7eb;border-radius:.75rem;width:100%;min-height:44px;padding:.65rem .9rem;font-size:16px}.dark .tool-input{color:#f3f4f6;background:#030712;border-color:#374151}.tool-input:focus{border-color:#7c3aed;outline:none;box-shadow:0 0 0 3px #7c3aed40}.tool-preview-pane{background:#fff;border:1px solid #e5e7eb;border-radius:.9rem;min-height:18rem;max-height:70vh;padding:1.25rem 1.5rem;overflow:auto}.dark .tool-preview-pane{background:#030712;border-color:#374151}.tool-preview-pane.is-empty{color:#9ca3af;justify-content:center;align-items:center;font-size:.95rem;display:flex}.tool-btn{cursor:pointer;white-space:nowrap;border:1px solid #0000;border-radius:9999px;justify-content:center;align-items:center;gap:.5rem;min-height:44px;padding:.6rem 1.15rem;font-size:.95rem;font-weight:600;transition:background-color .15s,color .15s,border-color .15s,transform .15s;display:inline-flex}.tool-btn:disabled,.tool-btn[aria-disabled=true]{opacity:.5;cursor:not-allowed}.tool-btn:focus-visible{outline-offset:2px;outline:3px solid #7c3aed80}.tool-btn-primary{color:#fff;background:#7c3aed}.tool-btn-primary:hover:not(:disabled){background:#6d28d9}.tool-btn-secondary{color:#374151;background:#fff;border-color:#d1d5db}.tool-btn-secondary:hover:not(:disabled){color:#6d28d9;border-color:#7c3aed}.dark .tool-btn-secondary{color:#e5e7eb;background:#111827;border-color:#374151}.dark .tool-btn-secondary:hover:not(:disabled){color:#c4b5fd;border-color:#a78bfa}.tool-btn-ghost{color:#6d28d9;background:0 0;min-height:40px;padding:.4rem .75rem}.tool-btn-ghost:hover:not(:disabled){background:#f3e8ff}.dark .tool-btn-ghost{color:#c4b5fd}.dark .tool-btn-ghost:hover:not(:disabled){background:#7c3aed33}.tool-btn.is-busy{position:relative;color:#0000!important}.tool-btn.is-busy:after{content:"";border:2px solid #ffffffe6;border-color:#ffffffe6 #0000;border-radius:9999px;width:1.1rem;height:1.1rem;animation:.8s linear infinite tool-spin;position:absolute}.tool-btn-secondary.is-busy:after,.tool-btn-ghost.is-busy:after{border-color:#7c3aed #0000}@keyframes tool-spin{to{transform:rotate(360deg)}}.tool-status{color:#6b7280;min-height:1.5rem;font-size:.875rem}.tool-status[data-kind=error]{color:#b91c1c}.dark .tool-status[data-kind=error]{color:#fca5a5}.tool-status[data-kind=success]{color:#047857}.dark .tool-status[data-kind=success]{color:#6ee7b7}.tool-progress{appearance:none;accent-color:#7c3aed;border-radius:9999px;width:100%;height:.4rem;overflow:hidden}.tool-progress::-webkit-progress-bar{background:#ede9fe;border-radius:9999px}.tool-progress::-webkit-progress-value{background:#7c3aed;border-radius:9999px;transition:width .2s}.tool-toggle{cursor:pointer;align-items:center;gap:.6rem;min-height:44px;font-size:.95rem;display:inline-flex}.tool-toggle input{accent-color:#7c3aed;width:1.1rem;height:1.1rem}.tool-split{gap:1rem;display:grid}@media (width>=768px){.tool-split{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.tool-split .tool-textarea{height:60vh;min-height:60vh}.tool-split .tool-preview-pane{min-height:60vh;max-height:60vh}.tool-tabs{display:none}}@media (width<=767.98px){.tool-split .tool-pane[data-pane][hidden]{display:none}.tool-tabs{background:#f3f4f6;border-radius:9999px;gap:.25rem;padding:.25rem;display:flex}.dark .tool-tabs{background:#1f2937}.tool-tab{color:#4b5563;border-radius:9999px;flex:1;min-height:44px;font-size:.95rem;font-weight:600}.dark .tool-tab{color:#d1d5db}.tool-tab[aria-selected=true]{color:#6d28d9;background:#fff;box-shadow:0 1px 2px #00000014}.dark .tool-tab[aria-selected=true]{color:#c4b5fd;background:#111827}}@media (width>=768px){.tool-split .tool-pane[data-pane][hidden]{display:block}}.tool-toc{font-size:.875rem}.tool-toc ul{margin:0;padding:0;list-style:none}.tool-toc li[data-level="2"]{padding-left:.9rem}.tool-toc li[data-level="3"]{padding-left:1.8rem}.tool-toc a{color:#4b5563;align-items:center;min-height:44px;padding:.25rem 0;display:flex}.tool-toc a:hover{color:#6d28d9}.dark .tool-toc a{color:#d1d5db}.tool-docs-result{background:#ecfdf5;border:1px solid #a7f3d0;border-radius:.9rem;padding:1rem 1.25rem}.dark .tool-docs-result{background:#10b9811a;border-color:#065f46}#tool-print-root{display:none}@media print{@page{margin:18mm 16mm}html.tool-printing body>:not(#tool-print-root){display:none!important}html.tool-printing #tool-print-root{display:block!important}html.tool-printing,html.tool-printing body{color:#111!important;background:#fff!important;height:auto!important;overflow:visible!important}#tool-print-root{color:#111;font-size:11pt;line-height:1.5}#tool-print-root h1,#tool-print-root h2,#tool-print-root h3,#tool-print-root h4{break-after:avoid;page-break-after:avoid;color:#000}#tool-print-root pre,#tool-print-root table,#tool-print-root blockquote,#tool-print-root img,#tool-print-root .mermaid,#tool-print-root .math-block{break-inside:avoid;page-break-inside:avoid}#tool-print-root pre{white-space:pre-wrap;word-break:break-word;border:1px solid #ddd;background:#f6f8fa!important}#tool-print-root code{background:#f3f4f6!important}#tool-print-root table{width:100%;display:table}#tool-print-root th,#tool-print-root td{border-color:#999}#tool-print-root tr{break-inside:avoid;page-break-inside:avoid}#tool-print-root a{color:#1d4ed8;text-decoration:none}#tool-print-root a[href^=http]:after{content:" (" attr(href) ")";color:#555;word-break:break-all;font-size:.8em}#tool-print-root img{max-width:100%}}.tool-drop-compact .tool-drop{flex-flow:wrap;gap:.35rem .75rem;min-height:5.5rem;padding:.9rem 1rem}.tool-drop-compact .tool-drop svg{width:1.5rem;height:1.5rem}.tool-drop-compact .tool-drop .tool-btn{min-height:36px;margin-top:0;padding:.35rem .9rem;font-size:.875rem}
