*{box-sizing:border-box}html,body{min-height:100%;margin:0;padding:0;font-family:Nunito Sans,Noto Sans SC,Segoe UI,sans-serif}.math-root{--math-bg:#f4f8fc;--math-paper:#fff;--math-panel:#f8fbff;--math-line:#d6e4f5;--math-line-strong:#b9cee8;--math-text:#1a2b41;--math-muted:#57738f;--math-blue:#2b6de0;--math-green:#0b9a7a;--math-shadow:0 16px 42px #183e721f;min-height:100vh;color:var(--math-text);background:radial-gradient(800px 360px at -10% -18%,#2b6de02e,#0000 68%),radial-gradient(760px 340px at 100% -12%,#0b9a7a1f,#0000 72%),linear-gradient(#f5f9ff 0%,#ecf3fb 100%)}.math-shell{width:min(1200px,100% - 28px);margin:0 auto;padding:26px 0 48px}.math-nav{flex-wrap:wrap;gap:8px;margin-bottom:14px;display:flex}.math-nav a{color:var(--math-muted);border:1px solid var(--math-line);background:#ffffffe6;border-radius:999px;padding:7px 12px;font-size:12px;font-weight:600;text-decoration:none}.math-nav a:hover{color:var(--math-text);border-color:var(--math-blue)}.math-hero{background:var(--math-paper);border:1px solid var(--math-line);box-shadow:var(--math-shadow);border-radius:22px;padding:24px}.math-kicker{text-transform:uppercase;letter-spacing:.1em;color:var(--math-blue);font-size:12px;font-weight:700;display:inline-flex}.math-hero h1{color:#0f2640;margin:10px 0 8px;font-size:clamp(28px,4.5vw,48px);line-height:1.08}.math-hero p{color:var(--math-muted);margin:0;line-height:1.72}.math-tip{border:1px dashed var(--math-line-strong);color:#285072;background:#f4fbff;border-radius:14px;margin-top:14px;padding:10px 12px;font-size:13px}.math-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:16px;display:grid}.math-card{border:1px solid var(--math-line);background:var(--math-paper);border-radius:18px;padding:14px;text-decoration:none;transition:transform .2s,border-color .2s;display:block;box-shadow:0 10px 30px #26498217}.math-card:hover{border-color:#8eb6ee;transform:translateY(-2px)}.math-card-head{justify-content:space-between;align-items:center;gap:10px;display:flex}.math-card-head strong{font-size:18px;line-height:1.2}.math-badge{color:#0d3f85;background:#e8f1ff;border:1px solid #cadfff;border-radius:999px;padding:5px 10px;font-size:11px}.math-card p{color:var(--math-muted);margin:10px 0 0;line-height:1.6}.math-layout{grid-template-columns:1.15fr 1fr;gap:12px;margin-top:16px;display:grid}.math-column{gap:12px;display:grid}.math-panel{background:var(--math-paper);border:1px solid var(--math-line);border-radius:18px;overflow:hidden;box-shadow:0 10px 28px #24447817}.math-panel summary{cursor:pointer;border-bottom:1px solid var(--math-line);color:#16385d;justify-content:space-between;align-items:center;padding:13px 14px;font-weight:700;list-style:none;display:flex}.math-panel summary::-webkit-details-marker{display:none}.math-panel summary span{color:var(--math-muted);font-size:12px;font-weight:600}.math-panel-body{padding:12px}.topic-card{border:1px solid var(--math-line);background:var(--math-panel);border-radius:14px;margin-bottom:9px;padding:10px}.topic-card:last-child{margin-bottom:0}.topic-card h3{margin:0;font-size:17px}.topic-card p{color:#2f5276;margin:8px 0;line-height:1.62}.latex-list{color:#1d456d;margin:8px 0;padding-left:18px}.latex-list li{margin-bottom:8px;line-height:1.58}.example-box{border:1px solid var(--math-line);background:#f6faff;border-radius:12px;margin-bottom:8px;padding:10px}.example-box:last-child{margin-bottom:0}.example-box strong,.example-box b{color:#163f75}.tool-wrap{gap:10px;display:grid}.tool-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;display:grid}.math-root input,.math-root textarea,.math-root select,.math-root button{font:inherit}.math-root input,.math-root textarea,.math-root select{border:1px solid var(--math-line-strong);width:100%;color:var(--math-text);background:#fff;border-radius:10px;padding:8px 10px}.math-root textarea{resize:vertical;min-height:102px}.math-root button{color:#114a90;cursor:pointer;background:#eaf2ff;border:1px solid #b7cff0;border-radius:10px;padding:7px 11px;font-weight:600}.math-root button:hover{background:#dfeeff;border-color:#85afe8}.tool-actions{flex-wrap:wrap;gap:7px;display:flex}.result-box{border:1px solid var(--math-line);color:#1f4a77;background:#f8fbff;border-radius:12px;padding:10px;line-height:1.6;overflow-x:auto}.small-note{color:var(--math-muted);font-size:12px;line-height:1.5}.plot{border:1px solid var(--math-line);background:#fff;border-radius:12px;width:100%;overflow:hidden}.plot svg{width:100%;height:300px;display:block}.formula-preview{border:1px solid var(--math-line);background:#fff;border-radius:12px;place-items:center;min-height:120px;padding:12px;display:grid}.symbols{flex-wrap:wrap;gap:6px;display:flex}.symbols button{color:#14508f;background:#f4f9ff;border-color:#c2daf7}.table-scroller{border:1px solid var(--math-line);background:#fff;border-radius:12px;overflow:auto}.table-scroller table{border-collapse:collapse;width:100%;min-width:430px}.table-scroller th,.table-scroller td{border-bottom:1px solid var(--math-line);text-align:left;padding:7px 9px;font-size:13px}.table-scroller tr:last-child td{border-bottom:0}.curriculum-toolbar{grid-template-columns:minmax(0,1.2fr) auto;align-items:end;gap:12px;display:grid}.search-field{color:#234464;gap:6px;font-weight:600;display:grid}.search-field span{font-size:13px}.chip-row{flex-wrap:wrap;gap:8px;margin-top:12px;display:flex}.chip{background:#edf5ff!important;border-radius:999px!important;padding:7px 12px!important}.chip.active{color:#fff!important;background:#2b6de0!important;border-color:#2b6de0!important}.curriculum-stats{grid-template-columns:repeat(3,minmax(84px,1fr));gap:8px;display:grid}.curriculum-stats div{border:1px solid var(--math-line);text-align:center;background:#f7fbff;border-radius:12px;padding:10px 12px}.curriculum-stats strong{color:#114a90;font-size:20px;display:block}.curriculum-stats span{color:var(--math-muted);font-size:12px}.module-stack{gap:10px;display:grid}.module-card{border:1px solid var(--math-line);background:#fbfdff;border-radius:14px;overflow:hidden}.module-head{cursor:pointer;background:#f3f8ff;justify-content:space-between;align-items:center;gap:10px;padding:12px 14px;list-style:none;display:flex}.module-head::-webkit-details-marker{display:none}.module-head strong{color:#17385c;display:block}.module-head span{color:var(--math-muted);margin-top:2px;font-size:12px;display:block}.module-head b{text-align:center;color:#114a90;min-width:28px}.module-body{padding:12px}.topic-meta{gap:8px;margin-bottom:6px;display:grid}.topic-meta h3{margin:0}.topic-tags{flex-wrap:wrap;gap:6px;display:flex}.tag{color:#174b88;background:#eef5ff;border:1px solid #bfd6f4;border-radius:999px;align-items:center;padding:4px 9px;font-size:11px;font-weight:700;display:inline-flex}.tag.subtle{color:#446684;border-color:var(--math-line);background:#f7fbff}.example-toggle{border-top:1px dashed var(--math-line);padding-top:8px}.example-toggle summary{cursor:pointer;color:#16467c;font-weight:700}.example-toggle .example-box{margin-top:8px}.empty-state{border:1px dashed var(--math-line-strong);color:var(--math-muted);text-align:center;background:#f7fbff;border-radius:12px;padding:18px}@media (max-width:980px){.math-grid,.math-layout,.curriculum-toolbar{grid-template-columns:1fr}}@media (max-width:680px){.math-shell{width:min(1200px,100% - 16px);padding-top:14px;padding-bottom:28px}.math-hero{border-radius:16px;padding:16px}.math-panel{border-radius:14px}.math-panel summary{padding:11px 12px}.math-panel-body{padding:10px}.tool-grid,.curriculum-stats{grid-template-columns:1fr}.plot svg{height:240px}}
