/* Creators Toolbox - shared mobile/app bottom navigation. Desktop intentionally untouched. */
#ctb-bottom-navigation{display:none!important}
@media screen and (max-width:768px){
 html{scroll-padding-bottom:100px}
 body.ctb-has-bottom-nav{padding-bottom:calc(86px + env(safe-area-inset-bottom, 0px))!important}
 #ctb-bottom-navigation.ctb-bottom-nav{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr));position:fixed!important;left:0!important;right:0!important;bottom:0!important;width:100%!important;max-width:none!important;min-height:69px;z-index:2147483000!important;padding:6px 7px calc(7px + env(safe-area-inset-bottom, 0px))!important;gap:0!important;margin:0!important;box-sizing:border-box!important;background:#fff!important;border-top:1px solid #e1d8f1!important;box-shadow:0 -5px 18px rgba(48,23,89,.12)!important;font-family:Arial,Helvetica,sans-serif!important;transform:none!important}
 #ctb-bottom-navigation *{box-sizing:border-box!important}
 #ctb-bottom-navigation .ctb-bottom-link{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:2px!important;min-width:0!important;min-height:56px!important;text-decoration:none!important;color:#35205e!important;border:0!important;background:transparent!important;padding:1px!important;font-size:11px!important;font-weight:700!important;line-height:1.2!important;text-align:center!important}
 #ctb-bottom-navigation .ctb-bottom-icon{width:35px!important;height:34px!important;display:flex!important;align-items:center!important;justify-content:center!important;border-radius:999px!important;color:inherit!important}
 #ctb-bottom-navigation .ctb-bottom-label{display:block!important;max-width:100%!important;white-space:nowrap!important;color:inherit!important}
 #ctb-bottom-navigation .ctb-bottom-link.is-active{color:#7816c6!important}
 #ctb-bottom-navigation .ctb-bottom-create .ctb-bottom-icon{width:51px!important;height:51px!important;margin-top:-17px!important;border-radius:50%!important;background:linear-gradient(135deg,#6422ca,#9d1cda)!important;color:#fff!important;box-shadow:0 4px 12px rgba(98,34,179,.26)!important}
 #ctb-bottom-navigation .ctb-bottom-create .ctb-bottom-icon svg{width:32px!important;height:32px!important}
 #ctb-bottom-navigation .ctb-bottom-link:focus-visible{outline:2px solid #9b35eb!important;outline-offset:-2px!important}
}

/* 2026-10-09 desktop navigation correction. Tablet/mobile remain unchanged. */
@media screen and (min-width:900px){
 body.ctb-has-desktop-nav{padding-left:216px!important}
 body.ctb-has-desktop-nav .ctb-desktop-side{
   display:flex!important;position:fixed!important;left:0!important;top:0!important;
   bottom:0!important;width:206px!important;min-width:206px!important;
   flex-direction:column!important;gap:7px!important;padding:28px 10px 16px!important;
   background:linear-gradient(170deg,#110d2d,#121337)!important;
   border-right:1px solid #6432bd!important;z-index:900!important;
   overflow-y:auto!important;box-sizing:border-box!important;
 }
 body.ctb-has-desktop-nav .ctb-desktop-side a{
   display:flex!important;align-items:center!important;gap:14px!important;
   padding:11px 14px!important;border-radius:18px!important;
   text-decoration:none!important;color:#fff!important;font-size:16px!important;
   font-weight:750!important;min-height:49px!important;
 }
 body.ctb-has-desktop-nav .ctb-desktop-side a:hover,
 body.ctb-has-desktop-nav .ctb-desktop-side a.ctb-side-selected,
 body.ctb-has-desktop-nav .ctb-desktop-side a[aria-current="page"]{
   background:linear-gradient(90deg,#9a0dec,#391083)!important;
   box-shadow:0 0 8px #9321ff!important;
 }
 body.ctb-has-desktop-nav .ctb-desktop-side .ctb-side-icon{
   display:inline-block!important;width:26px!important;flex:0 0 26px!important;
   text-align:center!important;font-size:25px!important;line-height:1!important;
 }
 body.ctb-has-desktop-nav .ct-nf-tabs{display:none!important}
}
@media screen and (min-width:900px) and (max-width:1099px){
 body.ctb-has-desktop-nav .ctb-desktop-side{display:flex!important}
}
@media screen and (max-width:899px){
 body.ctb-has-desktop-nav{padding-left:0!important}
 body .ctb-desktop-side{display:none!important}
}

/* OCT 09 desktop alignment: sidebar is a direct child of body. */
@media screen and (min-width:900px){
 html body.ctb-has-desktop-nav{box-sizing:border-box!important;}
 html body.ctb-has-desktop-nav>.ctb-desktop-side{
   position:fixed!important;left:0!important;right:auto!important;top:0!important;
   bottom:0!important;margin:0!important;transform:none!important;
   width:206px!important;max-width:206px!important;z-index:900!important;
 }
 html body.ctb-has-desktop-nav>.ct-wrap{max-width:none!important;width:100%!important;margin-left:0!important;margin-right:0!important;}
}

/* Fix #8: shared desktop quick-access navigation and overlap containment. */
@media screen and (min-width:900px){
 html body.ctb-has-desktop-nav{padding-left:216px!important;width:auto!important;min-width:0!important;overflow-x:clip!important}
 html body.ctb-has-desktop-nav>.ct-wrap{box-sizing:border-box!important;width:100%!important;max-width:100%!important;min-width:0!important;margin:0!important}
 html body.ctb-has-desktop-nav .ct-nf-shell{box-sizing:border-box!important;max-width:100%!important;min-width:0!important}
 html body.ctb-has-desktop-nav .ctb-desktop-side{gap:3px!important;padding-top:22px!important;overscroll-behavior:contain!important}
 html body.ctb-has-desktop-nav .ctb-desktop-side a{font-size:14px!important;min-height:42px!important;padding:9px 12px!important;border-radius:13px!important;gap:11px!important}
 html body.ctb-has-desktop-nav .ctb-desktop-side .ctb-side-icon{width:25px!important;flex-basis:25px!important;font-size:22px!important}
 html body.ctb-has-desktop-nav .ctb-desktop-side a.ctb-side-create{background:#7425ce!important;color:#fff!important;margin:6px 0!important;box-shadow:0 4px 14px rgba(116,37,206,.25)!important}
 html body.ctb-has-desktop-nav .ctb-desktop-side a.ctb-side-create:hover{background:#8c33f0!important}
 html body.ctb-has-desktop-nav .ctb-desktop-side a:focus-visible{outline:2px solid #d8a4ff!important;outline-offset:-2px!important}
}

/* Fix #12: desktop sidebar space reserved exactly once. Keep mobile untouched. */
@media screen and (min-width:900px){
 html body.ctb-has-desktop-nav{
   box-sizing:border-box!important;
   padding-left:216px!important;
   width:100%!important;
   max-width:100%!important;
   overflow-x:clip!important;
 }
 html body.ctb-has-desktop-nav > .ct-wrap{
   box-sizing:border-box!important;
   position:relative!important;
   margin-left:0!important;
   margin-right:0!important;
   width:100%!important;
   max-width:100%!important;
   min-width:0!important;
 }
 html body.ctb-has-desktop-nav > .ct-wrap .ct-nf-shell{
   box-sizing:border-box!important;
   width:100%!important;
   max-width:100%!important;
   min-width:0!important;
 }
}
