/* Quotes from the question (chat note + matching highlight on the question) and mark-scheme points. */
:root {
    --quote-yellow: #fedb008c; --quote-blue: #90cdfa8c; --quote-green: #86efac8c;
    --quote-pink: #f9a8d48c; --quote-purple: #c4b5fd8c; --quote-orange: #fdba748c;
    --mark-point-ink: #16a34a; --mark-point-fill: #dcfce7; --mark-point-muted: #737373;
}
:root[data-theme="dark"], .reader-dark {
    --quote-yellow: #facc1559; --quote-blue: #60a5fa59; --quote-green: #4ade8059;
    --quote-pink: #f472b659; --quote-purple: #a78bfa59; --quote-orange: #fb923c59;
    --mark-point-ink: #4ade80; --mark-point-fill: #14532d66; --mark-point-muted: #a3a3a3;
}
.chat-quote-note { margin: 10px 0 0; }
.chat-quote { display: inline; max-width: 100%; margin: 0; padding: 1px 4px; border: 0; border-radius: 4px; background: var(--quote-yellow); color: inherit; font: inherit; text-align: left; cursor: pointer; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.chat-quote.is-missing { cursor: default; }
.chat-quote-note + p { margin-top: 8px; color: var(--mark-point-muted); }
[data-quote-color="blue"] { --quote: var(--quote-blue); }
[data-quote-color="green"] { --quote: var(--quote-green); }
[data-quote-color="pink"] { --quote: var(--quote-pink); }
[data-quote-color="purple"] { --quote: var(--quote-purple); }
[data-quote-color="orange"] { --quote: var(--quote-orange); }
[data-quote-color="yellow"] { --quote: var(--quote-yellow); }
.chat-quote[data-quote-color] { background: var(--quote); }
.chat-question-mark { padding: 0; border-radius: 3px; background: var(--quote, var(--quote-yellow)); color: inherit; box-decoration-break: clone; -webkit-box-decoration-break: clone; animation: chat-question-mark-in .35s ease-out; }
mjx-container.chat-question-mark { padding: 0 2px; }
.chat-question-mark.is-pulsing { animation: chat-question-mark-pulse 1.1s ease-out; }
@keyframes chat-question-mark-in { from { background: transparent; } }
@keyframes chat-question-mark-pulse { 0%, 60% { box-shadow: 0 0 0 3px var(--quote, var(--quote-yellow)); } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (prefers-reduced-motion: reduce) { .chat-question-mark, .chat-question-mark.is-pulsing { animation: none; } }

/* A message is a flex item; without this a wide display equation widens the whole reply past
   the panel (and every card with it) instead of scrolling inside its own equation box. */
.message-row > .message { min-width: 0; }
.chat-mark-points { margin: 12px 0; }
.chat-mark-points ol { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chat-mark-point { display: flex; align-items: center; gap: 12px; margin: 0; padding: 12px; border: 2px solid var(--mark-point-ink); border-radius: 12px; background: var(--mark-point-fill); color: var(--mark-point-ink); box-shadow: 0 0 0 1px var(--mark-point-ink); font-size: 14px; line-height: 1.4; }
.chat-mark-point i { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--mark-point-ink); color: var(--mark-point-fill); font-style: normal; }
.chat-mark-point i svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.chat-mark-point__text { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.chat-mark-point__text mjx-container { margin: 0 !important; color: inherit; }
.chat-mark-point__text small { display: block; margin-top: 4px; color: var(--mark-point-muted); font-size: 12px; }
.chat-mark-point__code { flex: none; padding: 2px 7px; border: 1.5px solid currentColor; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .02em; }
