/* Rich chat content stays inside its message on narrow screens. */
.message .body{min-width:0;max-width:100%;overflow-wrap:anywhere;white-space:normal}
.cax-table-scroll{max-width:100%;overflow-x:auto;overflow-y:hidden;margin:7px 0;border:1px solid #373a43;border-radius:8px}
.cax-md-table{border-collapse:collapse;width:max-content;min-width:100%;font-size:12px}
.cax-md-table th,.cax-md-table td{border-right:1px solid #343741;border-bottom:1px solid #343741;padding:7px 11px;white-space:normal;min-width:65px;max-width:330px;overflow-wrap:anywhere}
.cax-md-table th{background:#292c34;font-weight:700}.cax-md-table tr:last-child td{border-bottom:0}
.cax-code-wrap{max-width:100%;margin:7px 0;background:#121419;border:1px solid #353942;border-radius:8px;overflow:hidden}
.cax-code-label{padding:5px 11px;background:#242730;color:#bfc2cf;font-size:11px;text-transform:none}
.cax-code-block{margin:0;padding:10px 12px;overflow-x:auto;white-space:pre;tab-size:4;font:12px/1.6 ui-monospace,SFMono-Regular,Consolas,monospace;color:#e9ebf4}
.cax-inline-code{background:#252832;color:#f4d5bf;border-radius:4px;padding:1px 4px;font:0.95em ui-monospace,SFMono-Regular,Consolas,monospace}
.cax-spoiler{background:#363943;color:transparent;border-radius:4px;cursor:pointer;user-select:none;padding:1px 3px;transition:background .15s;outline-offset:2px}
.cax-spoiler:not(.revealed) *{visibility:hidden}.cax-spoiler.revealed{color:inherit;background:#30333c;user-select:text}
.cax-spoiler:focus-visible{outline:2px solid #8dafff}

.cax-md-heading{font-weight:750;line-height:1.3;margin:7px 0 3px;overflow-wrap:anywhere}
.cax-md-h1{font-size:1.55em}.cax-md-h2{font-size:1.35em}.cax-md-h3{font-size:1.18em}.cax-md-h4{font-size:1.06em}
.cax-md-quote{border-left:3px solid #8993b6;margin:6px 0;padding:4px 10px;color:inherit;background:#ffffff08;overflow-wrap:anywhere}
.cax-code-copy{float:right;margin:4px 8px;padding:3px 9px;border:1px solid #596072;border-radius:5px;background:#303642;color:#fff;cursor:pointer;font:12px inherit}
.cax-code-copy:hover{background:#444c5b}
.cax-spoiler:hover,.cax-spoiler:focus-visible{color:inherit;background:#30333c;user-select:text}
