.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}.invoice-ai{background:linear-gradient(135deg,#faf5ff 0%,#f5f3ff 100%);border:1px solid #ddd6fe;border-radius:1rem;padding:1rem 1.1rem 1.1rem}.dark .invoice-ai{background:#7c3aed1a;border-color:#4c1d95}.invoice-chip{color:#5b21b6;text-align:left;cursor:pointer;background:#fff;border:1px solid #ddd6fe;border-radius:9999px;align-items:center;min-height:32px;padding:.25rem .7rem;font-size:.8rem;display:inline-flex}.invoice-chip:hover{background:#f3e8ff;border-color:#7c3aed}.dark .invoice-chip{color:#c4b5fd;background:#111827;border-color:#4c1d95}.dark .invoice-chip:hover{background:#7c3aed40}.invoice-fieldset{border:0;flex-direction:column;min-width:0;margin:0;padding:0;display:flex}.invoice-legend{letter-spacing:.06em;text-transform:uppercase;color:#6b7280;margin-bottom:.6rem;font-size:.8rem;font-weight:700}.dark .invoice-legend{color:#9ca3af}.invoice-field{flex-direction:column;gap:.3rem;min-width:0;display:flex}.invoice-field>span{color:#374151;font-size:.8rem;font-weight:600}.dark .invoice-field>span{color:#d1d5db}.invoice-field textarea.tool-input{resize:vertical;line-height:1.45}.invoice-items{flex-direction:column;gap:.5rem;display:flex}.invoice-items-head,.invoice-item-row{grid-template-columns:minmax(0,1fr) 4.5rem 6.5rem 6rem 2.25rem;align-items:center;gap:.5rem;display:grid}.invoice-items-head{color:#6b7280;padding:0 .25rem;font-size:.75rem;font-weight:600}.dark .invoice-items-head{color:#9ca3af}.invoice-item-row .tool-input{padding-left:.65rem;padding-right:.65rem}.invoice-item-row input[type=number]::-webkit-outer-spin-button,.invoice-item-row input[type=number]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.invoice-item-row input[type=number]{-moz-appearance:textfield;appearance:textfield}.invoice-item-amount{text-align:right;color:#374151;white-space:nowrap;text-overflow:ellipsis;font-size:.9rem;overflow:hidden}.dark .invoice-item-amount{color:#d1d5db}.invoice-item-remove{color:#9ca3af;border-radius:9999px;justify-content:center;align-items:center;width:2.25rem;height:2.25rem;font-size:1.25rem;line-height:1;display:inline-flex}.invoice-item-remove:hover{color:#b91c1c;background:#fee2e2}@media (width<=639.98px){.invoice-items-head{display:none}.invoice-item-row{border-bottom:1px dashed #e5e7eb;grid-template-columns:minmax(0,1fr) minmax(0,1fr) 2.25rem;grid-template-areas:"desc desc remove""qty price amount";row-gap:.4rem;padding-bottom:.6rem}.dark .invoice-item-row{border-color:#374151}.invoice-item-row>:first-child{grid-area:desc}.invoice-item-row>:nth-child(2){grid-area:qty}.invoice-item-row>:nth-child(3){grid-area:price}.invoice-item-row>:nth-child(4){grid-area:amount;align-self:center}.invoice-item-row>:nth-child(5){grid-area:remove}}.invoice-preview-frame{background:#e5e7eb;border:1px solid #e5e7eb;border-radius:.9rem;max-height:80vh;padding:clamp(.5rem,3vw,1.5rem);overflow:auto}.dark .invoice-preview-frame{background:#111827;border-color:#374151}.invoice-sheet{color:#111827;font-family:var(--font-sans,"Open Sans", ui-sans-serif, system-ui, sans-serif);word-wrap:break-word;overflow-wrap:anywhere;background:#fff;min-height:24rem;padding:clamp(1rem,4vw,2.5rem);font-size:.8rem;line-height:1.5;box-shadow:0 10px 30px -15px #11182766}.invoice-sheet.is-empty{color:#9ca3af;justify-content:center;align-items:center;display:flex}.invoice-sheet .inv-empty{text-align:center;max-width:18rem}.invoice-sheet .inv-head{justify-content:space-between;align-items:flex-start;gap:1.5rem;display:flex}.invoice-sheet .inv-logo{object-fit:contain;max-width:11rem;max-height:3.5rem;margin-bottom:.5rem;display:block}.invoice-sheet .inv-title{letter-spacing:.08em;color:#7c3aed;text-align:right;font-size:1.9rem;font-weight:800;line-height:1.1}.invoice-sheet .inv-meta{border-collapse:collapse;margin-top:.5rem;margin-left:auto}.invoice-sheet .inv-meta th{text-align:left;color:#6b7280;white-space:nowrap;padding:.1rem .75rem .1rem 0;font-weight:600}.invoice-sheet .inv-meta td{text-align:right;white-space:nowrap;padding:.1rem 0}.invoice-sheet .inv-parties{grid-template-columns:1fr 1fr;gap:1.5rem;margin-top:1.75rem;display:grid}.invoice-sheet .inv-label{letter-spacing:.08em;text-transform:uppercase;color:#6b7280;margin-bottom:.25rem;font-size:.68rem;font-weight:700}.invoice-sheet .inv-party-name{font-size:.95rem;font-weight:700}.invoice-sheet .inv-items{border-collapse:collapse;width:100%;margin-top:1.75rem}.invoice-sheet .inv-items th{text-align:left;letter-spacing:.06em;text-transform:uppercase;color:#6b7280;border-bottom:2px solid #7c3aed;padding:.4rem .5rem;font-size:.7rem}.invoice-sheet .inv-items td{vertical-align:top;border-bottom:1px solid #e5e7eb;padding:.5rem}.invoice-sheet .inv-items .num{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}.invoice-sheet .inv-totals{justify-content:flex-end;margin-top:.75rem;display:flex}.invoice-sheet .inv-totals table{border-collapse:collapse;min-width:15rem}.invoice-sheet .inv-totals th{text-align:left;color:#4b5563;padding:.25rem 1.5rem .25rem .5rem;font-weight:500}.invoice-sheet .inv-totals td{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums;padding:.25rem .5rem}.invoice-sheet .inv-grand th,.invoice-sheet .inv-grand td{border-top:2px solid #111827;padding-top:.5rem;font-size:1rem;font-weight:800}.invoice-sheet .inv-notes{color:#374151;border-top:1px solid #e5e7eb;margin-top:1.75rem;padding-top:1rem}@media (width<=480px){.invoice-sheet .inv-head{flex-direction:column}.invoice-sheet .inv-title{text-align:left}.invoice-sheet .inv-meta{margin-left:0}.invoice-sheet .inv-parties{grid-template-columns:1fr}}@media print{#tool-print-root.invoice-sheet{box-shadow:none;color:#111;min-height:0;padding:0;font-size:10.5pt}#tool-print-root.invoice-sheet .inv-title{color:#7c3aed;-webkit-print-color-adjust:exact;print-color-adjust:exact}#tool-print-root.invoice-sheet .inv-items th{border-bottom-color:#7c3aed}#tool-print-root.invoice-sheet tr,#tool-print-root.invoice-sheet .inv-totals,#tool-print-root.invoice-sheet .inv-notes{break-inside:avoid;page-break-inside:avoid}#tool-print-root.invoice-sheet a[href^=http]:after{content:none}}
