#library-sources{display:flex;align-items:center;gap:5px;max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain;scrollbar-width:thin;scrollbar-color:var(--gust-border) transparent;padding:7px;margin:0 0 18px;isolation:isolate;border:1px solid var(--gust-border);border-radius:18px;background:linear-gradient(180deg,color-mix(in srgb,var(--gust-raised) 60%,transparent),color-mix(in srgb,var(--gust-base) 85%,transparent));box-shadow:inset 0 1px 0 color-mix(in srgb,var(--gust-foreground) 4%,transparent)}
#library-sources button{position:relative;flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:11px 14px 12px;border:1px solid transparent;border-radius:11px!important;background:transparent;color:var(--gust-secondary);font-family:inherit;font-size:13px;line-height:1.25;font-weight:550;white-space:nowrap;cursor:pointer;box-shadow:none;transition:background 180ms,color 180ms,border-color 180ms,transform 180ms}
#library-sources button:hover{background:color-mix(in srgb,var(--gust-raised) 85%,transparent);color:var(--gust-foreground);border-color:color-mix(in srgb,var(--gust-accent) 25%,var(--gust-border));transform:translateY(-1px)}
#library-sources button[aria-selected=true]{background:linear-gradient(180deg,color-mix(in srgb,var(--gust-accent) 15%,var(--gust-surface)),color-mix(in srgb,var(--gust-accent) 7%,var(--gust-surface)));color:var(--gust-foreground);border-color:color-mix(in srgb,var(--gust-accent) 55%,var(--gust-border));box-shadow:inset 0 1px 0 color-mix(in srgb,var(--gust-accent) 18%,transparent),0 2px 6px #00000014;font-weight:650}
#library-sources button:after{content:'';position:absolute;bottom:3px;left:calc(50% - 12px);width:24px;height:2px;border-radius:2px;background:var(--gust-accent);opacity:0;transform:scaleX(.4);transition:opacity 180ms,transform 180ms}
#library-sources button[aria-selected=true]:after{opacity:1;transform:scaleX(1)}
#library-sources button:active{transform:translateY(0)}
#library-sources button:focus-visible{outline:2px solid var(--gust-accent);outline-offset:2px}
#library-sources .library-source-icon{width:16px;height:16px;flex:none;color:var(--gust-secondary);transition:color 180ms,transform 180ms}
#library-sources button:hover .library-source-icon,#library-sources button[aria-selected=true] .library-source-icon{color:var(--gust-accent)}
#library-sources .library-source-count{display:inline-flex;align-items:center;justify-content:center;min-width:26px;min-height:20px;padding:2px 6px;border-radius:6px;background:color-mix(in srgb,var(--gust-accent) 14%,transparent);color:var(--gust-foreground);font-size:10px;font-weight:600;font-variant-numeric:tabular-nums;letter-spacing:.2px}
#library-sources .library-source-count:empty{display:none}
#library-source-note{font-size:13px;line-height:1.6;color:var(--gust-secondary);margin:-6px 0 22px;max-width:72ch}
@media(max-width:600px){#library-sources{gap:4px;padding:6px;margin-bottom:16px;scroll-padding-inline:6px;border-radius:15px}#library-sources button{min-height:44px;padding:11px 12px 12px;font-size:12px}#library-source-note{font-size:12px}}
@media(prefers-reduced-motion:reduce){#library-sources button,#library-sources button:after,#library-sources .library-source-icon{transition:none;transform:none}}

#library-sources .library-source-logo{width:20px;height:20px;flex:none;object-fit:contain;filter:none;border-radius:3px}
#library-source-gn-math .library-source-logo{width:28px;height:19px}
