/* version 0.0.1 */
/* Modern page chrome: same purple/teal color model, new shapes */
nav.address{background:linear-gradient(180deg,#502542,#6b3357);height:auto;min-height:52px;border-radius:0 0 14px 14px;box-shadow:0 2px 10px rgba(80,37,66,.35);padding:4px 0;}
nav.address a{margin:8px 6px;font-size:17px;padding:4px 10px;border:0;border-radius:20px;transition:background .2s;}
nav.address a:hover{background:rgba(49,179,147,.25);}
.mathdict-search{box-sizing:border-box;width:100%;padding:1rem 1.3rem;font-size:1.35rem;border:2px solid #d5cfd3;border-radius:14px;margin:1.2rem 0;box-shadow:0 2px 8px rgba(80,37,66,.08);}
.mathdict-search:focus{outline:none;border-color:#31b393;box-shadow:0 0 0 3px rgba(49,179,147,.25);}
.mathdict-letters{position:sticky;top:0;z-index:5;background:#f0f0f0;padding:0.6rem 0;display:flex;flex-wrap:wrap;gap:0.4rem;}
.mathdict-letters a.mathdict-chip{text-decoration:none;color:inherit;}
.mathdict-br{flex-basis:100%;height:0;}
.mathdict-form{margin:0;}
.mathdict-search-label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;}
.mathdict-loading{display:flex;align-items:center;gap:.6rem;background:#fff;border-radius:12px;box-shadow:0 1px 5px rgba(80,37,66,.08);padding:.9rem 1.1rem;margin:.7rem 0;border-left:4px solid #31b393;color:#502542;}
.mathdict-loading::before{content:"";flex:none;width:1rem;height:1rem;border-radius:50%;border:3px solid #d5cfd3;border-top-color:#31b393;animation:mathdict-spin .9s linear infinite;}
@keyframes mathdict-spin{to{transform:rotate(360deg);}}
@media (prefers-reduced-motion: reduce){.mathdict-loading::before{animation:none;}}
.mathdict-chip{padding:0.4rem 0.8rem;border:1px solid #d5cfd3;border-radius:20px;background:#fff;cursor:pointer;font-size:1rem;transition:all .15s;}
.mathdict-chip:hover{border-color:#31b393;}
.mathdict-chip.active{background:#31b393;color:#502542;border-color:#31b393;}
.mathdict-chip.lat{border-color:#31b393;color:#1f7a64;background:#eafaf5;}
.mathdict-chip.lat.active{background:#31b393;color:#502542;}
.mathdict-count{color:#666;font-size:0.95rem;margin:0.5rem 0;}
.mathdict-letter h2{border-bottom:3px solid #31b393;display:inline-block;padding-bottom:0.2rem;}
.mathdict-term{background:#fff;border-radius:12px;box-shadow:0 1px 5px rgba(80,37,66,.08);padding:0.9rem 1.1rem;margin:0.7rem 0;border-left:4px solid #502542;}
.mathdict-term strong{font-size:1.1rem;color:#502542;}
.mathdict-term p{margin:0.35rem 0 0;}
.mathdict-term mark{background:rgba(49,179,147,.4);border-radius:3px;padding:0 2px;}
.mathdict-term.mathdict-exact{background:#eafaf5;}
.mathdict-empty{padding:2rem 0;color:#666;}
.mathdict-levels{display:flex;gap:0.6rem;margin:1rem 0 0.2rem;}
.mathdict-level-btn{flex:1;padding:0.8rem 0.5rem;font-size:1.15rem;border:2px solid #502542;border-radius:12px;background:#fff;color:#502542;cursor:pointer;}
.mathdict-level-btn.active{background:#502542;color:#fff;}
.mathdict-note{background:#fff;border-left:4px solid #31b393;border-radius:0 12px 12px 0;box-shadow:0 1px 5px rgba(80,37,66,.08);padding:0.8rem 1rem;margin:0.8rem 0;}
.mathdict-note a{color:#502542;}
