.worked-solution { width: min(100%, 720px); margin: 20px auto; font-family: Georgia, 'Times New Roman', serif; color: var(--text, #222); }
.worked-step { text-align: center; }
.worked-line { display: flex; justify-content: center; align-items: baseline; flex-wrap: wrap; gap: .35em; font-size: 17px; line-height: 1.6; }
.worked-label { font: 500 15px/1.6 Inter, system-ui, -apple-system, 'Segoe UI', sans-serif; font-variant-numeric: lining-nums tabular-nums; }
.worked-equation { max-width: 100%; overflow-x: auto; overflow-y: hidden; }
.worked-equation mjx-container { margin: 0 !important; }
.worked-highlight-blue, .worked-blue { color: #18aaf0; }
.worked-highlight-orange, .worked-orange { color: #f5a000; }
.worked-highlight-green, .worked-green { color: #24c962; }
.worked-highlight-purple, .worked-purple { color: #b06df3; }
/* One hue per term group: the same quantity keeps its colour on every line. */
.worked-c0 { color: #1a9be6; }
.worked-c1 { color: #ec8a00; }
.worked-c2 { color: #1fb85a; }
.worked-c3 { color: #a65ee8; }
.worked-c4 { color: #e2457a; }
.worked-c5 { color: #0fa8a0; }
.worked-c6 { color: #d1543a; }
.worked-c7 { color: #5b6ee8; }
.worked-c8 { color: #a88a00; }
.worked-c9 { color: #c04fc4; }
:root[data-theme="dark"] .worked-c6, .reader-dark .worked-c6 { color: #f07a5f; }
:root[data-theme="dark"] .worked-c7, .reader-dark .worked-c7 { color: #8592ff; }
:root[data-theme="dark"] .worked-c8, .reader-dark .worked-c8 { color: #d8b628; }
.worked-transition { position: relative; width: 92px; height: 42px; margin: 0 auto; color: var(--muted, #6b7280); }
.worked-transition svg { display: block; width: 100%; height: 100%; }
.worked-transition span { position: absolute; left: 0; right: 0; bottom: 8px; font: 600 12px/1.2 Inter, system-ui, sans-serif; background: var(--surface, #fff); width: max-content; margin: auto; padding: 0 4px; }
.worked-step + .worked-step { margin-top: 7px; }
@media (max-width: 600px) { .worked-line { font-size: 15px; } .worked-solution { margin: 16px auto; } }
