/* Answers from syamx AI, drawn by chat-core.js inside .md: headings, lists, quotes, tables, inline code and code
   blocks with a Copy button. Sizes are in em, so the full page (16px) and the syamx.com panel (15px) share it.
   White and translucent white; the orb's lilac only on list bullets, quote rules and link underlines. */

.md { overflow-wrap: anywhere; }
.md > :first-child { margin-top: 0; }
.md > :last-child { margin-bottom: 0; }
.md p { margin: 0 0 .9em; }
.md strong { color: #fff; font-weight: 600; }
.md del { opacity: .6; }
.md a { color: #fff; text-decoration: underline; text-decoration-color: rgb(196 181 255 / .7); text-underline-offset: 3px; transition: text-decoration-color .2s; }
.md a:hover { text-decoration-color: #fff; }

.md-h { margin: 1.5em 0 .55em; color: #fff; font-weight: 650; line-height: 1.3; letter-spacing: -.012em; }
.md-h1 { font-size: 1.35em; }
.md-h2 { font-size: 1.2em; }
.md-h3 { font-size: 1.06em; }
.md-h4, .md-h5, .md-h6 { font-size: 1em; }

.md ul, .md ol { margin: .45em 0 .95em; padding-left: 1.45em; }
.md li { margin: .32em 0; padding-left: .2em; }
.md ul > li::marker { color: rgb(196 181 255 / .9); }
.md ol > li::marker { color: rgb(255 255 255 / .55); font-variant-numeric: tabular-nums; }
.md li > ul, .md li > ol { margin: .3em 0 .4em; }
.md .loose > li > p { margin: .45em 0; }

.md blockquote { margin: 1em 0; padding: .05em 0 .05em 1em; border-left: 2px solid rgb(196 181 255 / .5); color: rgb(255 255 255 / .74); }
.md hr { height: 1px; margin: 1.6em 0; border: 0; background: rgb(255 255 255 / .12); }

.md code { padding: .12em .38em; border-radius: 6px; background: rgb(255 255 255 / .08); font: .87em/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

.md-code { margin: 1em 0 1.1em; overflow: hidden; border: 1px solid rgb(255 255 255 / .09); border-radius: 14px; background: rgb(255 255 255 / .035); }
.md-code-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 38px; padding: 4px 6px 4px 14px; border-bottom: 1px solid rgb(255 255 255 / .07); background: rgb(255 255 255 / .03); font: 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace; color: rgb(255 255 255 / .5); }
.md pre { margin: 0; padding: 14px 16px 16px; overflow-x: auto; color: #e9e9ee; font: 13.5px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; tab-size: 2; scrollbar-width: thin; scrollbar-color: rgb(255 255 255 / .16) transparent; }
.md pre code { padding: 0; border-radius: 0; background: none; font: inherit; white-space: pre; overflow-wrap: normal; }
.md-copy { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 10px; border: 0; border-radius: 999px; background: transparent; color: rgb(255 255 255 / .6); font: 500 12px/1 ui-sans-serif, system-ui, -apple-system, sans-serif; cursor: pointer; transition: background-color .2s, color .2s; }
.md-copy:hover { background: rgb(255 255 255 / .08); color: #fff; }
.md-copy.done { color: #fff; }
.md-copy:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
.md-copy svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.md-table { margin: 1em 0 1.1em; overflow-x: auto; border: 1px solid rgb(255 255 255 / .1); border-radius: 12px; scrollbar-width: thin; }
.md table { width: 100%; border-collapse: collapse; font-size: .93em; line-height: 1.5; }
.md th, .md td { padding: .6em .95em; border-bottom: 1px solid rgb(255 255 255 / .08); text-align: left; vertical-align: top; }
.md th { background: rgb(255 255 255 / .04); color: #fff; font-weight: 600; white-space: nowrap; }
.md tbody tr:last-child td { border-bottom: 0; }

/* while an answer streams: each new block fades in, and a soft dot sits where the next words will appear */
.md-in { animation: md-in .4s ease both; }
@keyframes md-in { from { opacity: 0; transform: translateY(4px); } }
.md-caret { display: inline-block; width: .55em; height: .55em; margin-left: .3em; border-radius: 50%; background: #fff; vertical-align: .05em; animation: md-caret 1s ease-in-out infinite; }
@keyframes md-caret { 50% { opacity: .3; transform: scale(.8); } }

@media (prefers-reduced-motion: reduce) {
  .md-in, .md-caret { animation: none; }
}
