.math-files,.math-intro{margin:0 0 28px;padding:20px 24px;background:var(--bg-raised);max-width:none}.math-files h2,.math-intro h2{margin:18px 0 8px;font-size:1.25rem}.math-files h2:first-child,.math-intro h2:first-child{margin-top:0}.math-files p,.math-intro li,.math-intro p{color:var(--text-mid);line-height:1.6;max-width:80ch}.math-intro ul{margin:0 0 14px;padding-left:20px}.math-intro li{margin-bottom:8px;overflow-wrap:anywhere}.math-count a,.math-files a,.math-intro a{color:var(--mif-300)}.math-controls{display:flex;flex-direction:column;gap:10px}.math-controls .filter-chip span{opacity:.7;font-size:.8em}.math-row{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;padding:10px 12px;background:var(--bg-raised)}.math-row .filter{flex:1 1 280px;min-width:0;margin:0}.math-row label{color:var(--text-mid);font-size:.92rem}.math-row select{background:var(--row-alt);color:var(--text-hi);border:1px solid var(--border);padding:6px 8px;font:inherit;max-width:100%}.math-check input{margin-right:6px;accent-color:var(--mif-500)}.math-count{margin:14px 0 10px;padding:8px 12px;background:var(--bg-raised);color:var(--text-mid);font-size:.92rem}.math-rows{display:flex;flex-direction:column}.math-card{padding:14px 18px;background:var(--bg-raised);scroll-margin-top:96px}.math-card:nth-child(2n){background:var(--row-alt)}.math-card header{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px;margin-bottom:8px}.math-id{font-family:var(--font-mono,monospace);color:var(--mif-300);font-size:.92rem}.math-tag{padding:1px 7px;font-size:.76rem;color:var(--text-mid);border:1px solid var(--border);overflow-wrap:anywhere}.math-tag.warn{color:#FBBF24;border-color:#B45309}.math-tag.new{color:var(--mif-200);border-color:var(--mif-600)}.math-card.old .math-fact{color:var(--text-mid)}.math-fact,.math-replaced,.math-source,.math-value{margin:0 0 7px;line-height:1.55;overflow-wrap:anywhere}.math-fact{color:var(--text-hi)}.math-value{color:var(--text-mid);font-size:.92rem}.math-source{color:var(--text-mid);font-size:.86rem;margin-bottom:0}.math-source>span{font-weight:600;color:var(--mif-300);margin-right:4px}.math-replaced{font-size:.9rem;color:var(--text-mid)}.math-replaced button{background:none;border:0;padding:0;color:var(--mif-300);cursor:pointer;text-decoration:underline;font:inherit}.math-card code{font-size:.9em;overflow-wrap:anywhere;white-space:normal}.math-more{display:block;margin:14px auto 0}.math-browser{margin-bottom:28px}.math-files ul{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));grid-gap:4px 18px;gap:4px 18px;margin:8px 0 0;padding:0;list-style:none}.math-files li{display:flex;justify-content:space-between;gap:10px;color:var(--text-mid)}@media(max-width:620px){.math-files,.math-intro{padding:16px}.math-card{padding:12px}.math-row select{width:100%}}