/* Isolated additions: no selectors or variables outside this module. */
#visualMemorySection{
 --vm-ink:var(--ink,#20293c);--vm-muted:var(--muted,#758198);--vm-line:var(--line,#e4e9f2);
 --vm-blue:#2b60bd;--vm-orange:#b86b13;--vm-green:#197c59;--vm-red:#b54b4b;--vm-purple:#7351a1;
 --vm-blueSoft:#eaf1ff;--vm-orangeSoft:#fff2df;--vm-greenSoft:#e7f5ed;--vm-redSoft:#fff0ee;--vm-white:#fff;--vm-canvas:#fafbff;
 margin-top:20px;color:var(--vm-ink);font-size:14px;line-height:1.6;min-width:0;
}
#visualMemorySection *{box-sizing:border-box}
#visualMemorySection .vmDetails{border:1px solid var(--vm-line);border-radius:14px;background:var(--vm-white);overflow:hidden}
#visualMemorySection .vmDetails>summary{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:48px;padding:12px 14px;cursor:pointer;font-weight:750;list-style:none}
#visualMemorySection .vmDetails>summary::-webkit-details-marker{display:none}
#visualMemorySection .vmDetails>summary:before{content:'▸';font-size:15px;color:var(--vm-blue)}
#visualMemorySection .vmDetails[open]>summary:before{content:'▾'}
#visualMemorySection .vmDetails>summary>span{flex:1}
#visualMemorySection .vmDetails>summary small{font-size:12px;font-weight:400;color:var(--vm-muted)}
#visualMemorySection .vmBody{padding:0 14px 14px;border-top:1px solid var(--vm-line)}
#visualMemorySection .vmModes{display:flex;gap:6px;overflow-x:auto;padding:10px 0;scrollbar-width:thin}
#visualMemorySection .vmModes button{min-height:44px;min-width:44px;flex-shrink:0;border:1px solid var(--vm-line);border-radius:9px;background:var(--vm-white);color:var(--vm-muted);font-size:13px;padding:7px 10px}
#visualMemorySection .vmModes button.active{border-color:var(--vm-blue);color:var(--vm-blue);background:var(--vm-blueSoft)}
#visualMemorySection .vmCanvas{min-width:0}
#visualMemorySection .vmDiagramHeading{display:flex;align-items:flex-start;gap:8px;flex-wrap:wrap;margin:5px 0 12px}
#visualMemorySection h4{font-size:15px;margin:0;flex:1;min-width:120px;font-weight:750}
#visualMemorySection .vmBadge{font-size:12px;color:var(--vm-muted);border:1px solid var(--vm-line);border-radius:6px;padding:2px 6px;white-space:nowrap}
#visualMemorySection .vmSvg{width:100%;height:auto;max-width:400px;max-height:240px;display:block;margin:0 auto;overflow:visible;font-family:inherit}
#visualMemorySection .vmLogic{display:flex;flex-direction:column;align-items:center;gap:0;text-align:center;margin:8px 0 2px}
#visualMemorySection .vmLogic p{margin:0;padding:3px 8px;font-size:14px;max-width:100%;overflow-wrap:anywhere}
#visualMemorySection .vmDown{font-size:21px;color:var(--vm-green);line-height:1.3}
#visualMemorySection .vmFocus{margin:10px 0 4px;font-size:13px;color:var(--vm-muted);overflow-wrap:anywhere}
#visualMemorySection .vmParts{display:flex;align-items:stretch;gap:6px;overflow-x:auto;padding:8px 0}
#visualMemorySection .vmPart{flex:1;min-width:78px;padding:10px 8px;border:1px solid currentColor;border-radius:10px;text-align:center;display:flex;flex-direction:column;gap:3px;color:var(--vm-orange);background:var(--vm-orangeSoft)}
#visualMemorySection .vmPart-prefix{color:var(--vm-blue);background:var(--vm-blueSoft)}
#visualMemorySection .vmPart-suffix{color:var(--vm-green);background:var(--vm-greenSoft)}
#visualMemorySection .vmPart strong{font-size:21px;white-space:nowrap;font-weight:750}
#visualMemorySection .vmPart small{font-size:12px;opacity:.88}
#visualMemorySection .vmPart>span{font-size:14px;color:var(--vm-ink)}
#visualMemorySection .vmPart .vmPartIPA{font-family:'CET6 IPA',sans-serif;font-size:13px;font-weight:400;color:var(--vm-muted)}
#visualMemorySection .vmPlus{align-self:center;font-size:21px;color:var(--vm-ink);flex-shrink:0}
#visualMemorySection .vmJoin{text-align:center}
#visualMemorySection .vmJoin .vmSvg{max-height:40px}
#visualMemorySection .vmWhole{font-size:22px;overflow-wrap:anywhere}
#visualMemorySection .vmTerm{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;column-gap:7px;row-gap:2px;text-align:center}
#visualMemorySection .vmTerm>.wordToken{font-weight:750;font-size:16px}
#visualMemorySection .vmIPA{font-family:'CET6 IPA',sans-serif;font-size:14px;font-weight:400;font-synthesis:none;overflow-wrap:anywhere}
#visualMemorySection .vmTermMeaning{display:block;flex-basis:100%;font-size:13px}
#visualMemorySection .vmFamilyRoot{padding:10px;border:1px solid var(--vm-green);border-radius:10px;background:var(--vm-greenSoft);text-align:center;max-width:390px;margin:auto}
#visualMemorySection .vmFamilyLeaves,#visualMemorySection .vmSenseBranches{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
#visualMemorySection .vmFamilyLeaves>div{padding:10px 7px;background:var(--vm-canvas);border:1px solid var(--vm-line);border-radius:9px;min-width:0}
#visualMemorySection .vmParallelRule{height:12px;border-bottom:2px solid var(--vm-line);margin:0 18px 12px}
#visualMemorySection .vmPolyCore{text-align:center;font-weight:700;background:var(--vm-blueSoft);border-radius:8px;padding:8px;margin-bottom:12px}
#visualMemorySection .vmSense{position:relative;padding:12px;background:var(--vm-canvas);border:1px solid var(--vm-line);border-radius:10px;min-width:0;border-top:3px solid var(--vm-blue)}
#visualMemorySection .vmSense:nth-child(2n){border-top-color:var(--vm-orange)}
#visualMemorySection .vmSenseNumber{display:block;font-size:12px;color:var(--vm-muted)}
#visualMemorySection .vmSense strong{font-size:14px;display:block}
#visualMemorySection .vmExistingPhrase{margin-top:8px;overflow-wrap:anywhere}
#visualMemorySection .vmExistingPhrase>span,#visualMemorySection .vmExistingPhrase small{display:block;font-size:13px}
#visualMemorySection .vmLetterGroups{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:4px;margin:16px 0}
#visualMemorySection .vmLetterGroup{padding:7px 5px;border:1px solid var(--vm-line);border-radius:7px;font-size:20px;background:var(--vm-canvas);letter-spacing:1px}
#visualMemorySection .vmLetterFocus{background:var(--vm-orangeSoft);border-color:var(--vm-orange);color:var(--vm-orange);font-weight:750}
#visualMemorySection .vmGroupDivider{font-size:18px;color:var(--vm-muted)}
#visualMemorySection .vmRiskNotes{display:flex;gap:8px;flex-wrap:wrap;justify-content:center}
#visualMemorySection .vmRiskNotes>span{font-size:13px;padding:5px 9px;border:1px solid var(--vm-line);border-radius:7px}
#visualMemorySection .vmAligned{display:flex;overflow-x:auto;gap:2px;padding:8px 0}
#visualMemorySection .vmAlignedCell{min-width:24px;display:grid;grid-template-rows:30px 18px 30px 20px;text-align:center;border-radius:5px;padding:2px}
#visualMemorySection .vmAlignedCell>span,#visualMemorySection .vmAlignedCell>strong{font-size:19px;letter-spacing:1px}
#visualMemorySection .vmAlignedCell>b{font-size:13px;font-weight:400}
#visualMemorySection .vmAlignedCell>small{font-size:10px;color:var(--vm-muted)}
#visualMemorySection .vmEdit-replace,#visualMemorySection .vmEdit-extra{background:var(--vm-redSoft);color:var(--vm-red)}
#visualMemorySection .vmEdit-missing{background:var(--vm-greenSoft);color:var(--vm-green)}
#visualMemorySection .vmEdit-transpose{background:var(--vm-orangeSoft);color:var(--vm-orange);min-width:38px}
#visualMemorySection .vmSpellLegend{font-size:12px;color:var(--vm-muted)}
#visualMemorySection .vmCompareHeads{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
#visualMemorySection .vmCompareHeads>article{padding:10px;border:1px solid var(--vm-line);border-radius:10px;min-width:0;text-align:center}
#visualMemorySection .vmCompareHeads>article:first-child{background:var(--vm-blueSoft)}
#visualMemorySection .vmCompareHeads>article:nth-child(2){background:var(--vm-greenSoft)}
#visualMemorySection .vmCompareHeads>article>p{font-size:13px;margin:5px 0}
#visualMemorySection .vmCompareHeads>article>strong{font-size:14px}
#visualMemorySection .vmCompareIcon .vmSvg{max-height:145px}
#visualMemorySection .vmContrastLine{margin:10px 0;padding:9px 12px;border-left:3px solid var(--vm-orange);background:var(--vm-canvas);font-size:14px}
#visualMemorySection .vmProof{margin-top:10px;border-top:1px solid var(--vm-line);padding-top:3px;color:var(--vm-muted);font-size:12px}
#visualMemorySection .vmProof>summary{min-height:44px;padding:10px 0;cursor:pointer}
#visualMemorySection .vmProof p{margin:3px 0 8px}
#visualMemorySection .vmProof a{display:inline-block;padding:5px 7px;min-height:32px;color:var(--vm-blue)}
#visualMemorySection .vmProof>small{display:block;font-size:12px}
@media(max-width:540px){
 #visualMemorySection .vmBody{padding:0 10px 12px}
 #visualMemorySection .vmDetails>summary{padding:10px}
 #visualMemorySection .vmDetails>summary small{display:none}
 #visualMemorySection .vmFamilyLeaves,#visualMemorySection .vmCompareHeads{grid-template-columns:1fr}
 #visualMemorySection .vmPart{min-width:76px;padding:9px 6px}
 #visualMemorySection .vmParts{gap:4px}
 #visualMemorySection .vmPlus{font-size:18px}
 #visualMemorySection .vmSvg{max-width:360px}
 #visualMemorySection .vmCompareIcon .vmSvg{max-width:240px;max-height:125px}
}
[data-theme="dark"] #visualMemorySection{--vm-ink:#e5eaf2;--vm-muted:#b4bed0;--vm-line:#46516a;--vm-white:#20283a;--vm-canvas:#252f43;--vm-blue:#94b9ff;--vm-orange:#f4b960;--vm-green:#7dd7ad;--vm-red:#f39e9e;--vm-purple:#c8acf0;--vm-blueSoft:#253c60;--vm-orangeSoft:#463820;--vm-greenSoft:#203f36;--vm-redSoft:#492e34}

#visualMemorySection .vmRootedLeaves{position:relative;display:grid;grid-template-columns:1fr;border-left:2px solid var(--vm-green);padding-left:14px;margin-left:16px}
#visualMemorySection .vmRootedLeaves>div{position:relative}
#visualMemorySection .vmRootedLeaves>div:before{content:"";position:absolute;width:14px;left:-16px;top:28px;border-top:2px solid var(--vm-green)}

#visualMemorySection .vmSenseIcon .vmSvg{max-width:180px;max-height:95px;margin:4px auto}
#visualMemorySection .vmSenseIcon .vmLogic{display:none}
@media(max-width:360px){#visualMemorySection .vmSenseBranches{grid-template-columns:1fr}}

#visualMemorySection .vmCurrentTerm{outline:2px solid var(--vm-blue);outline-offset:4px;border-radius:5px}
