.source-quote{border-left:3px solid var(--accent,#8877bb);padding:8px 16px;margin:16px 0}
.source-quote blockquote{margin:8px 0;font-size:.9rem;white-space:pre-wrap;overflow-wrap:anywhere}
.source-history-view{white-space:pre-wrap;overflow-wrap:anywhere}
.knowledge-node{margin:8px 0 8px 16px;padding:8px;border-left:1px solid #ccc}
.knowledge-node summary{min-height:44px;cursor:pointer;line-height:1.8}
.heat{display:inline-block;padding:2px 8px;border-radius:8px;font-size:.85rem;background:#ececf1;color:#454452}
.heat.consolidate,.heat.reassess{background:#fff0d9;color:#70451e}.heat.initial{background:#e5edf9;color:#334d77}.heat.stable{background:#e1f4e8;color:#27523a}
#analysis-exam,#report-week{min-height:44px;font:inherit;max-width:100%;margin:16px 0}
@media(max-width:600px){.knowledge-node{margin-left:8px;padding:4px}.source-quote{padding:6px 10px}.tutor-form input,.tutor-form select{max-width:100%}}
.subject-switch { flex-wrap:wrap; }
#lesson-visual { overflow:hidden; }
#lesson-visual svg { max-height:480px; }
/* A full-width scrolling navigation row prevents six subjects overlapping links. */
.topbar-inner{flex-wrap:wrap;justify-content:space-between;padding-top:8px;padding-bottom:8px}
.nav{order:3;flex-basis:100%;justify-content:flex-start;overflow-x:auto;max-width:100%;padding:2px 0 4px}
.nav a{flex-shrink:0;min-height:44px;display:flex;align-items:center}
.subject-switch button{min-height:44px}
@media(max-width:600px){.subject-switch{order:2;flex-basis:100%;justify-content:center}.subject-switch button{flex:1;padding:6px}.theme-menu{margin-left:auto}}
