:root{--mm-ink:#59328b;--mm-accent:#7446ac;--mm-soft:#f5f1fb;--mm-line:#d9c9ec;--mm-text:#302b38}
.mm-legend,.mm-context{color:var(--mm-text);border-left:2px solid var(--mm-line);background:white;padding:7px 12px;margin:14px 0;font-size:.85rem;line-height:1.7}
.mm-context[open]{background:var(--mm-soft);padding:12px 16px;border-left-color:var(--mm-accent)}.mm-context>summary{font-size:.83rem;font-weight:500;color:var(--mm-ink);cursor:pointer}.mm-legend{font-size:.8rem}.mm-legend p{display:inline}.mm-legend>a{margin-left:10px}
.mm-legend p,.mm-context p{margin:.25rem 0}.mm-legend strong,.mm-kind{color:var(--mm-ink)}
.mm-legend a,.mm-context a,.mm-index a{color:var(--mm-ink);text-underline-offset:3px}
.mm-kind{font-size:.77rem;letter-spacing:.04em;font-weight:700;display:block;margin-bottom:4px}
.mm-context .mm-why{font-size:.92rem}.mm-context details{margin-top:9px;border-top:1px solid var(--mm-line);padding-top:8px}
.mm-context summary{cursor:pointer;color:var(--mm-ink);font-weight:600;padding:3px 0}.mm-context summary:focus-visible,.mm-index :focus-visible{outline:3px solid var(--mm-accent);outline-offset:3px}
.mm-recall-item{margin:12px 0;padding-left:12px;border-left:1px solid var(--mm-line)}.mm-recall-item h5{font-size:.96rem;margin:0 0 5px;color:var(--mm-ink)}
body.mm-chapter .math.display.mm-key-formula{color:var(--mm-ink);border-left:2px solid var(--mm-line);padding-left:8px;max-width:100%;box-sizing:border-box}
body.mm-chapter .math.display.mm-key-formula mjx-container{color:var(--mm-ink)}
.mm-frame{display:block;width:100%;height:650px;border:0;background:white;margin:12px 0}.mm-data-demo{border:1px solid var(--mm-line);border-radius:4px;padding:10px 14px;margin:20px 0}.mm-data-demo>summary{cursor:pointer;color:var(--mm-ink)}
.mm-index-intro{font-size:1.05rem;max-width:55em}.mm-index-toolbar{background:var(--mm-soft);border-top:3px solid var(--mm-accent);padding:18px;margin:24px 0;display:flex;flex-wrap:wrap;gap:14px;align-items:end}
.mm-index-toolbar label{display:grid;gap:5px;font-size:.87rem;color:var(--mm-ink)}.mm-index-toolbar input,.mm-index-toolbar select{font:inherit;border:1px solid var(--mm-line);background:white;padding:8px 10px;border-radius:4px;color:var(--mm-text);min-height:42px;max-width:100%}.mm-index-toolbar input{min-width:240px}
.mm-index-toolbar button{font:inherit;border:1px solid var(--mm-line);border-radius:4px;background:white;padding:8px 14px;min-height:42px;color:var(--mm-ink);cursor:pointer}
.mm-filter-status{font-size:.88rem;color:#61546e;margin:12px 0}section.mm-index-concept{border-top:1px solid var(--mm-line);padding:8px 0 22px;margin-top:28px}section.mm-index-concept>h2{color:var(--mm-ink);font-size:1.45rem}section.mm-index-concept .mm-kind{margin-top:15px}
section.mm-index-concept table{font-size:.9rem}section.mm-index-concept td:first-child{min-width:10em}section.mm-index-concept .mm-definition{background:var(--mm-soft);padding:14px 18px;border-left:3px solid var(--mm-accent)}
section.mm-index-concept[hidden],section.mm-index-concept tr[hidden]{display:none!important}.mm-no-match{color:var(--mm-ink);padding:20px;background:var(--mm-soft)}
@media(max-width:600px){.mm-context,.mm-legend{padding:8px}.mm-index-toolbar{display:grid;grid-template-columns:1fr}.mm-index-toolbar input{min-width:0;width:100%}section.mm-index-concept td:first-child{min-width:7em}.mm-index-toolbar select{width:100%}.mm-frame{height:720px}}
@media print{.mm-index-toolbar,.mm-filter-status{display:none}.mm-context details>*,.mm-context details:not([open])>*{display:block!important}section.mm-index-concept[hidden],section.mm-index-concept tr[hidden]{display:revert!important}.mm-context{break-inside:avoid}body.mm-chapter .math.display{overflow:visible}}

/* Application reminders link to the full concept once, without repeating definitions. */
aside.mm-context{background:var(--mm-soft);border-left-color:var(--mm-accent);padding:10px 14px}
.mm-context .mm-context-title{color:var(--mm-ink);font-weight:600;font-size:.9rem}
.mm-context .mm-concept-links{font-size:.82rem}
