.chat-markdown{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;line-height:1.4;color:inherit;font-size:inherit;overflow-wrap:anywhere;word-break:break-word}.chat-markdown,.chat-markdown *{white-space:normal!important}.chat-markdown *{margin:0;padding:0}.chat-markdown h1{font-size:1.1rem;font-weight:600;margin:.75rem 0 .5rem;color:inherit}.chat-markdown h2{font-size:1rem;font-weight:600;margin:.6rem 0 .4rem;color:inherit}.chat-markdown h3{font-size:.95rem;font-weight:600;margin:.5rem 0 .3rem;color:inherit}.chat-markdown h4{font-size:.9rem}.chat-markdown h4,.chat-markdown h5{font-weight:600;margin:.4rem 0 .25rem;color:inherit}.chat-markdown h5{font-size:.85rem}.chat-markdown h6{font-size:.8rem;font-weight:600;margin:.4rem 0 .25rem;opacity:.8}.chat-markdown p{margin:.5rem 0!important;line-height:1.4}.chat-markdown ol,.chat-markdown ul{margin:.5rem 0!important;padding-left:1.2rem!important;list-style-position:outside!important}.chat-markdown ul{list-style-type:disc!important}.chat-markdown ol{list-style-type:decimal!important}.chat-markdown li{margin:.25rem 0!important;line-height:1.3;display:list-item!important}.chat-markdown ol ol,.chat-markdown ol ul,.chat-markdown ul ol,.chat-markdown ul ul{margin:.15rem 0!important;list-style-type:circle!important}.chat-markdown ul ul ul{list-style-type:square!important}.chat-markdown strong{font-weight:600;color:inherit}.chat-markdown em{font-style:italic}.chat-markdown code{background-color:rgba(0,0,0,.1);padding:.1rem .3rem;border-radius:.25rem;font-size:.85rem;font-family:Monaco,Menlo,Ubuntu Mono,monospace}.chat-markdown.user-message code{background-color:rgba(255,255,255,.2);color:inherit}.chat-markdown.assistant-message code{background-color:rgba(0,0,0,.1);color:#dc2626}.chat-markdown pre{background-color:rgba(0,0,0,.1);border-radius:.375rem;padding:.75rem;overflow-x:auto;margin:.75rem 0;font-size:.8rem;line-height:1.3}.chat-markdown.user-message pre{background-color:rgba(255,255,255,.15)}.chat-markdown.assistant-message pre{background-color:#1f2937;color:#f9fafb}.chat-markdown pre code{background-color:transparent;padding:0;color:inherit;font-size:inherit}.chat-markdown blockquote{border-left:3px solid;padding:.5rem .75rem;margin:.5rem 0;font-style:italic;opacity:.85;border-radius:0 .25rem .25rem 0;background-color:rgba(0,0,0,.03)}.chat-markdown.user-message blockquote{background-color:rgba(255,255,255,.1)}.chat-markdown a{color:#2563eb!important;text-decoration:underline!important;cursor:pointer!important;pointer-events:auto!important;display:inline!important;position:relative!important;z-index:1!important}.chat-markdown a:hover{color:#1d4ed8!important}.chat-markdown hr{border:none;border-top:1px solid;margin:.75rem 0;opacity:.3}.chat-markdown table{border-collapse:collapse;width:100%;margin:.75rem 0;font-size:.85rem}.chat-markdown td,.chat-markdown th{border:1px solid;padding:.4rem .6rem;text-align:left;opacity:.8}.chat-markdown th{font-weight:600;opacity:1;background-color:rgba(0,0,0,.05)}.chat-markdown.user-message th{background-color:rgba(255,255,255,.1)}.chat-markdown>:first-child{margin-top:0!important}.chat-markdown>:last-child{margin-bottom:0!important}.chat-markdown ol+h1,.chat-markdown p+h1,.chat-markdown ul+h1{margin-top:1rem}.chat-markdown ol+h2,.chat-markdown p+h2,.chat-markdown ul+h2{margin-top:.8rem}.chat-markdown ol+h3,.chat-markdown p+h3,.chat-markdown ul+h3{margin-top:.7rem}