/* StudyBuddy shell hard override - loaded last, intentionally scoped to sb-advanced classes only */
html body .sb-advanced-shell{position:sticky!important;top:0!important;z-index:99999!important;padding:10px clamp(10px,2vw,26px)!important;pointer-events:none!important}
html body .sb-advanced-nav{pointer-events:auto!important;width:min(100%,1320px)!important;margin:0 auto!important;border:1px solid rgba(255,255,255,.16)!important;border-radius:30px!important;background:radial-gradient(circle at var(--nav-x,12%) var(--nav-y,0%),rgba(34,211,238,.2),transparent 32%),radial-gradient(circle at 90% 0%,rgba(124,60,255,.24),transparent 38%),linear-gradient(135deg,rgba(5,8,22,.98),rgba(15,24,54,.95))!important;box-shadow:0 22px 70px rgba(2,6,23,.38)!important;backdrop-filter:blur(22px)!important}
html body .sb-nav-inner{display:grid!important;grid-template-columns:minmax(210px,auto) minmax(0,1fr) minmax(170px,250px) auto auto!important;align-items:center!important;gap:clamp(8px,1.5vw,14px)!important;min-width:0!important;padding:12px!important}
html body .sb-nav-brand,html body .sb-nav-links a,html body .sb-nav-actions a,html body .sb-nav-more button,html body .sb-mobile-links a,html body .sb-mobile-actions a{text-decoration:none!important}
html body .sb-nav-brand{display:inline-flex!important;align-items:center!important;gap:12px!important;min-width:0!important;color:#fff!important;transition:transform .2s ease!important}
html body .sb-nav-brand:hover{transform:translateY(-2px)!important}
html body .sb-nav-brand img,html body .sb-nav-brand-fallback{flex:0 0 auto!important;width:48px!important;height:48px!important;border-radius:18px!important;object-fit:contain!important;background:rgba(255,255,255,.09)!important;transition:transform .22s ease,filter .22s ease!important}
html body .sb-nav-brand:hover img{transform:rotate(-4deg) scale(1.05)!important;filter:drop-shadow(0 10px 22px rgba(34,211,238,.22))!important}
html body .sb-nav-brand-fallback{display:grid!important;place-items:center!important;color:#fff!important;background:linear-gradient(135deg,#7c3cff,#246bff)!important;font-weight:950!important}
html body .sb-nav-brand strong{display:block!important;color:#fff!important;font-size:1.05rem!important;line-height:1!important}
html body .sb-nav-brand em{display:block!important;max-width:260px!important;margin-top:4px!important;color:rgba(226,232,240,.76)!important;font-size:.74rem!important;font-style:normal!important;font-weight:800!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
html body .sb-nav-links{display:flex!important;justify-content:center!important;align-items:center!important;gap:5px!important;min-width:0!important}
html body .sb-nav-links>a,html body .sb-nav-more>button{position:relative!important;display:inline-flex!important;align-items:center!important;gap:6px!important;border:0!important;border-radius:999px!important;padding:10px 11px!important;color:rgba(226,232,240,.78)!important;background:transparent!important;font:inherit!important;font-size:.9rem!important;font-weight:850!important;white-space:nowrap!important;cursor:pointer!important;transition:color .18s ease,background .18s ease,transform .18s ease!important}
html body .sb-nav-links>a:hover,html body .sb-nav-links>a.active,html body .sb-nav-more>button:hover{color:#fff!important;background:rgba(255,255,255,.11)!important;transform:translateY(-2px)!important}
html body .sb-nav-more,html body .sb-account-menu{position:relative!important}
html body .sb-nav-more-menu,html body .sb-account-dropdown{position:absolute!important;top:calc(100% + 12px)!important;right:0!important;width:min(250px,92vw)!important;display:grid!important;gap:6px!important;padding:10px!important;border:1px solid rgba(255,255,255,.14)!important;border-radius:22px!important;background:#091126!important;box-shadow:0 24px 70px rgba(2,6,23,.4)!important;opacity:0!important;visibility:hidden!important;transform:translateY(8px) scale(.96)!important;transform-origin:top right!important;transition:.18s ease!important}
html body .sb-nav-more.open .sb-nav-more-menu,html body .sb-account-menu.open .sb-account-dropdown{opacity:1!important;visibility:visible!important;transform:translateY(0) scale(1)!important}
html body .sb-nav-more-menu a,html body .sb-account-dropdown a,html body .sb-account-dropdown button{width:100%!important;border:0!important;border-radius:14px!important;padding:11px 12px!important;color:rgba(226,232,240,.84)!important;background:transparent!important;text-align:left!important;text-decoration:none!important;font:inherit!important;font-weight:850!important;cursor:pointer!important}
html body .sb-nav-more-menu a:hover,html body .sb-account-dropdown a:hover,html body .sb-account-dropdown button:hover{color:#fff!important;background:rgba(34,211,238,.13)!important}
html body .sb-nav-search{display:flex!important;align-items:center!important;min-width:0!important;border:1px solid rgba(255,255,255,.12)!important;border-radius:999px!important;padding:4px!important;background:rgba(255,255,255,.08)!important;transition:transform .18s ease,background .18s ease,border-color .18s ease!important}
html body .sb-nav-search:hover,html body .sb-nav-search:focus-within{transform:translateY(-2px)!important;background:rgba(255,255,255,.13)!important;border-color:rgba(34,211,238,.38)!important}
html body .sb-nav-search input{width:100%!important;min-width:0!important;border:0!important;outline:0!important;padding:8px 8px 8px 12px!important;background:transparent!important;color:#fff!important;font:inherit!important;font-size:.88rem!important}
html body .sb-nav-search input::placeholder{color:rgba(226,232,240,.56)!important}
html body .sb-nav-search button{flex:0 0 auto!important;width:34px!important;height:34px!important;border:0!important;border-radius:50%!important;color:#07101f!important;background:#22d3ee!important;cursor:pointer!important;font-weight:950!important}
html body .sb-nav-actions{display:flex!important;align-items:center!important;gap:8px!important;min-width:0!important}
html body .sb-nav-actions a,html body .sb-mobile-actions a,html body .sb-mobile-search button{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:40px!important;border-radius:999px!important;padding:9px 13px!important;font-weight:900!important;white-space:nowrap!important}
html body .sb-nav-actions .ghost,html body .sb-mobile-actions a{color:#fff!important;background:rgba(255,255,255,.1)!important}
html body .sb-nav-actions .solid,html body .sb-mobile-actions .solid{color:#fff!important;background:linear-gradient(135deg,#7c3cff,#246bff)!important}
html body .sb-account-trigger{display:inline-flex!important;align-items:center!important;gap:10px!important;max-width:235px!important;border:1px solid rgba(255,255,255,.14)!important;border-radius:999px!important;padding:6px 10px 6px 6px!important;color:#fff!important;background:rgba(255,255,255,.1)!important;font:inherit!important;cursor:pointer!important;transition:transform .18s ease,background .18s ease!important}
html body .sb-account-trigger:hover{transform:translateY(-2px)!important;background:rgba(255,255,255,.15)!important}
html body .sb-account-avatar{width:36px!important;height:36px!important;display:grid!important;place-items:center!important;border-radius:50%!important;color:#061022!important;background:#22d3ee!important;font-weight:950!important}
html body .sb-account-label{display:grid!important;min-width:0!important;text-align:left!important}
html body .sb-account-label strong,html body .sb-account-label em{min-width:0!important;max-width:135px!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
html body .sb-account-label strong{font-size:.86rem!important;line-height:1.05!important;color:#fff!important}
html body .sb-account-label em{color:rgba(226,232,240,.7)!important;font-size:.72rem!important;font-style:normal!important;text-transform:capitalize!important}
html body .sb-account-dropdown form,html body .sb-mobile-logout-form{margin:0!important}
html body .sb-account-dropdown form button,html body .sb-mobile-logout-form button{color:#fecaca!important}
html body .sb-nav-toggle{display:none!important;width:44px!important;height:44px!important;border:0!important;border-radius:16px!important;background:rgba(255,255,255,.1)!important;cursor:pointer!important}
html body .sb-nav-toggle span{display:block!important;width:20px!important;height:2px!important;margin:4px auto!important;border-radius:999px!important;background:#fff!important}
html body .sb-mobile-panel{display:none!important;padding:0 12px 12px!important}
html body .sb-mobile-panel.open{display:grid!important;gap:12px!important}
html body .sb-mobile-search{display:grid!important;grid-template-columns:1fr auto!important;gap:8px!important}
html body .sb-mobile-search input{min-height:44px!important;border:1px solid rgba(255,255,255,.14)!important;border-radius:16px!important;padding:0 12px!important;color:#fff!important;background:rgba(255,255,255,.08)!important;font:inherit!important;min-width:0!important}
html body .sb-mobile-links{display:grid!important;gap:6px!important}
html body .sb-mobile-links a{border-radius:16px!important;padding:12px!important;color:#fff!important;background:rgba(255,255,255,.08)!important;font-weight:850!important;overflow-wrap:anywhere!important}
html body .sb-mobile-actions{display:flex!important;gap:10px!important;flex-wrap:wrap!important}
html body .sb-mobile-logout-form button{min-height:40px!important;border:0!important;border-radius:999px!important;padding:9px 13px!important;background:rgba(255,255,255,.1)!important;font:inherit!important;font-weight:900!important;cursor:pointer!important}
@media(max-width:1180px){html body .sb-nav-inner{grid-template-columns:minmax(210px,auto) minmax(0,1fr) auto!important}html body .sb-nav-links,html body .sb-nav-search,html body .sb-nav-actions{display:none!important}html body .sb-nav-toggle{display:block!important;justify-self:end!important}}
@media(max-width:520px){html body .sb-nav-brand em{max-width:145px!important}html body .sb-nav-brand img,html body .sb-nav-brand-fallback{width:42px!important;height:42px!important;border-radius:15px!important}}
