.money-chat-panel { position: fixed; inset: 0 0 0 auto; width: 380px; z-index: 40; display: flex; flex-direction: column; }
.money-chat-frame { display: flex; flex: 1; flex-direction: column; min-height: 0; }
.money-chat-scroll { flex: 1; overflow-y: auto; min-height: 0; scrollbar-width: thin; }
.money-chat-bubble { overflow-wrap: anywhere; }
.money-chat-markdown { max-width: 100%; overflow-x: auto; line-height: 1.65; }
.money-chat-markdown p + p { margin-top: .4rem; }
.money-chat-markdown :is(h1, h2, h3, h4, h5, h6) { font-weight: 700; margin: .8rem 0 .35rem; font-size: 1em; }
.money-chat-markdown > :first-child { margin-top: 0; }
.money-chat-markdown :is(ul, ol) { padding-left: 1.4rem; margin: .4rem 0; }
.money-chat-markdown ul { list-style: disc; }
.money-chat-markdown ol { list-style: decimal; }
.money-chat-markdown strong { font-weight: 700; }
.money-chat-markdown a { text-decoration: underline; }
.money-chat-markdown table { border-collapse: collapse; margin: .5rem 0; font-size: .9em; }
.money-chat-markdown :is(th, td) { border: 1px solid var(--color-base-300); padding: .3rem .45rem; text-align: left; }
.money-chat-launcher { position: fixed; right: 1rem; bottom: 1rem; z-index: 40; }
.money-chat-shell:not(.money-chat-open) .money-chat-panel { display: none; }
.money-chat-open .money-chat-launcher { display: none; }
@media (min-width: 1024px) {
  .money-chat-open .money-chat-content { padding-right: 380px; }
  .money-chat-open .money-chat-content main { padding-inline: 1.5rem; }
}
@media (max-width: 1023px) {
  .money-chat-panel { inset: auto 0 0; width: 100%; height: 88dvh; border-top: 1px solid var(--color-base-300); border-radius: .75rem .75rem 0 0; box-shadow: 0 -8px 32px color-mix(in srgb, var(--color-base-content) 10%, transparent); }
  .money-chat-frame { padding-bottom: env(safe-area-inset-bottom); }
}

@media (min-width: 1024px) and (max-width: 1399px) {
  .money-chat-open .money-today-numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
