/* Scoped redesign: no canvas dimensions or calculator layout reordering. */
body.ns-library,body.ns-tool{--bg:#f6f8f5;--navy:#092e3e;--text:#142e3c;--muted:#526a73;--border:#d9e3df;--accent:#087c76;background:var(--bg)}
.ns-library header,.ns-tool header{background:var(--navy)}
.ns-library .header-inner,.ns-tool .header-inner{min-height:64px}
.ns-library .logo,.ns-tool .logo{font-size:18px;color:#fff}
.ns-library .hero,.ns-tool .hero{background:var(--navy);padding:36px 24px 30px}
.ns-library .hero h1,.ns-tool .hero h1{font-size:clamp(24px,2.7vw,34px);line-height:1.5;letter-spacing:-.03em}
.ns-library .hero-sub,.ns-tool .hero-sub{font-size:15px;line-height:1.9;color:#c8dada;max-width:850px}
.ns-library .badge,.ns-tool .badge{font-size:10px;color:#b6eddb;background:#ffffff09;border-color:#ffffff25;letter-spacing:.13em}
.ns-library .hero-stats{max-width:620px;gap:32px}
.ns-library .hstat{flex:none;text-align:left}
.ns-library .hstat-n{font-size:23px}
.ns-library .hstat-l{font-size:12px;color:#c8dada;margin-top:6px}
.ns-discover{max-width:1200px;margin:26px auto 8px;padding:0 24px}
.ns-discover p{font-size:14px;color:var(--muted);margin:0 0 12px;line-height:1.9}
.ns-shortcuts{display:flex;gap:10px;flex-wrap:wrap}
.ns-shortcuts a{font-size:13px;line-height:1.5;text-decoration:none;color:#09675f;background:#edf4ef;border:1px solid #c8ded2;border-radius:7px;padding:10px 14px}
.ns-shortcuts a:hover{background:#dcece2}
.ns-library .search-wrap{padding-top:18px}
.ns-library .search-box{max-width:760px}
.ns-library .search-box input{font-size:16px;padding:15px 18px 15px 44px;border-color:#aac4b9}
.ns-library .filters{gap:8px;margin-top:22px}
.ns-library .filter-btn{font-size:13px;padding:9px 15px;border-radius:7px}
.ns-library .tag-pill{font-size:12px;padding:6px 12px}
.ns-topic-details{max-width:1152px;margin:18px auto;border:1px solid var(--border);border-radius:8px;background:#fff;padding:14px 18px}
.ns-topic-details summary{font-size:13px;cursor:pointer;font-weight:650;color:var(--muted)}
.ns-topic-details .cat-links{padding:0;margin-top:15px}
.ns-library .cat-link{font-size:12px;padding:6px 10px}
.ns-library .grid-wrap{margin-top:30px}
.ns-library .section-header{margin-top:30px;margin-bottom:15px}
.ns-library .section-header h2{font-size:17px;letter-spacing:0;color:var(--text)}
.ns-library .grid{grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:14px}
.ns-library .tool-card{padding:18px;display:flex;flex-wrap:wrap;align-content:start;gap:12px;border-radius:9px;content-visibility:auto;contain-intrinsic-size:auto 170px}
.ns-library .card-top{flex-basis:100%;gap:12px}
.ns-library .card-icon{width:38px;height:38px}
.ns-library .card-title{font-size:15px;line-height:1.6;white-space:normal;overflow:visible}
.ns-library .card-en{font-size:11px;line-height:1.5;margin-top:4px}
.ns-library .card-desc{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;width:100%;font-size:13px;color:var(--muted);line-height:1.8}
.ns-library .card-views{font-size:11px;margin-top:auto}
.ns-library .card-arrow{margin-left:auto;color:var(--accent)}
.ns-library #seo-static-links{max-width:1152px!important;margin:24px auto!important;padding:18px!important;background:#fff;border:1px solid var(--border);border-radius:8px}
.ns-library #seo-static-links summary{font-size:14px!important}
.ns-library a:focus-visible,.ns-library button:focus-visible,.ns-library summary:focus-visible,.ns-tool a:focus-visible,.ns-tool input:focus-visible,.ns-tool select:focus-visible{outline:3px solid #d58d29;outline-offset:3px}
.ns-tool .panel,.ns-tool .chart-card{border-color:var(--border);border-radius:10px;box-shadow:0 2px 8px #092e3e05}
.ns-tool .panel-title,.ns-tool .chart-title{font-size:13px;line-height:1.7}
.ns-tool .param-name{font-size:13px}
.ns-tool .param-desc{font-size:12px;line-height:1.7}
.ns-tool .num-input{font-size:14px;min-height:32px}
.ns-tool .ns-qa{background:#eff6f2!important;border-color:#3d927d!important;font-size:14px!important}
.ns-tool .theory-box,.ns-tool .fblock{line-height:1.9}
@media(max-width:1250px){.ns-topic-details{margin-inline:24px}}
@media(max-width:640px){.ns-library .hero,.ns-tool .hero{padding:25px 18px}.ns-library .hero h1,.ns-tool .hero h1{font-size:24px}.ns-library .hero-sub,.ns-tool .hero-sub{font-size:13px}.ns-library .hero-stats{gap:23px}.ns-library .hstat-n{font-size:20px}.ns-library .hstat-l{font-size:10px}.ns-discover{padding:0 18px;margin-top:20px}.ns-discover p{font-size:13px}.ns-shortcuts{gap:7px}.ns-shortcuts a{font-size:12px;padding:9px 11px}.ns-library .search-wrap,.ns-library .filters,.ns-library .grid-wrap,.ns-library .tag-bar{padding-inline:18px}.ns-topic-details{margin-inline:18px}.ns-library .grid{grid-template-columns:1fr}.ns-library .tool-card{padding:16px}.ns-library .card-title{font-size:15px}.ns-tool .panel{padding:12px}.ns-tool .param-group{margin-bottom:12px}.ns-tool .param-name,.ns-tool .param-label{font-size:12px}.ns-tool .num-input{font-size:13px;min-height:32px;min-width:64px}.ns-tool select{font-size:13px;min-height:38px}.ns-tool .param-desc{font-size:11px}.ns-tool .stat-value{font-size:14px!important}.ns-tool .stat-label,.ns-tool .stat-unit{font-size:10px!important}}
@media(prefers-reduced-motion:reduce){.ns-library .tool-card{transition:none;transform:none}}

