/* Only staging navigation and Planner V2. Other page/window sizing is untouched. */
/* The existing Home button keeps its data-view and icon; the right half collapses sidebar. */
body.gtt-shell-v1 #sidebar .h162-home-nav .gtt-shell-home-split{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
  gap:5px!important;width:100%;min-width:0;align-items:stretch;
}
body.gtt-shell-v1 #sidebar .h162-home-nav .gtt-shell-home-split>.h162-nav-item{
  display:flex!important;min-width:0!important;width:100%!important;max-width:none!important;
  justify-content:center!important;align-items:center!important;
  gap:5px!important;margin:0!important;padding:8px 4px!important;
  font-size:11px!important;text-align:center!important;
  overflow:hidden;white-space:nowrap;
}
body.gtt-shell-v1 #sidebar .h162-home-nav .gtt-shell-home-split>.h162-nav-item .nav-icon{
  width:24px!important;min-width:24px!important;flex:0 0 24px!important;
}
body.gtt-shell-v1 #sidebar .h162-home-nav .gtt-shell-home-split>.h162-nav-item .nav-icon img{
  width:25px!important;height:25px!important;
}
body.gtt-shell-v1 #sidebar .h162-home-nav .gtt-shell-home-split>#gtt-shell-nav-toggle{
  display:flex!important;justify-content:center!important;align-items:center!important;gap:5px!important;
  width:100%!important;min-width:0!important;max-width:none!important;
  min-height:44px!important;height:auto!important;
  border-radius:12px!important;padding:7px 5px!important;
  font-size:11px!important;font-weight:700!important;
}
body.gtt-shell-v1 #sidebar .h162-home-nav .gtt-shell-home-split>#gtt-shell-nav-toggle::after{
  content:"Hide";font-size:11px;color:#e2f2ff;
}
body.gtt-shell-v1 #sidebar .h162-home-nav .gtt-shell-home-split>#gtt-shell-nav-toggle svg{
  width:17px!important;height:17px!important;flex:0 0 17px;
}
/* When collapsed, the top-left icon is the only sidebar restore control. */
body.gtt-shell-v1 .gtt-shell-dock #gtt-shell-sidebar-restore{
  width:38px!important;min-width:38px!important;padding:0!important;
}
body.gtt-shell-v1 .gtt-shell-dock #gtt-shell-sidebar-restore[hidden]{display:none!important}
body.gtt-shell-v1 .gtt-shell-dock .gtt-shell-left:empty{display:none!important}

/* Test expansion only on Planner V2; never force global content grids full-screen. */
@media(min-width:801px){
 body.gtt-shell-v1.gtt-sidebar-collapsed:has(#content .gt-planner-v18-stage[data-planner-v2]) .app-shell{
  width:100%!important;max-width:none!important;min-width:0!important;
 }
 body.gtt-shell-v1.gtt-sidebar-collapsed:has(#content .gt-planner-v18-stage[data-planner-v2]) #sidebar.side.sidebar{
  width:0!important;min-width:0!important;max-width:0!important;flex:0 0 0!important;
  padding:0!important;border-width:0!important;
 }
 body.gtt-shell-v1.gtt-sidebar-collapsed:has(#content .gt-planner-v18-stage[data-planner-v2]) .main-area{
  flex:1 1 0!important;width:100%!important;min-width:0!important;max-width:none!important;margin:0!important;
 }
 body.gtt-shell-v1.gtt-sidebar-collapsed:has(#content .gt-planner-v18-stage[data-planner-v2]) .main-area>#content{
  width:100%!important;min-width:0!important;max-width:none!important;
  margin:0!important;padding-left:8px!important;padding-right:8px!important;
 }
 body.gtt-shell-v1.gtt-sidebar-collapsed:has(#content .gt-planner-v18-stage[data-planner-v2]) #content .gt-planner-v18-stage[data-planner-v2]{
  display:block!important;width:100%!important;max-width:none!important;min-width:0!important;margin:0!important;
 }
 body.gtt-shell-v1.gtt-sidebar-collapsed:has(#content .gt-planner-v18-stage[data-planner-v2]) #content .gt-planner-v18-stage[data-planner-v2]>iframe{
  width:100%!important;max-width:none!important;
 }
}
@media(max-width:800px){
 body.gtt-shell-v1 .gtt-shell-dock #gtt-shell-sidebar-restore{width:38px!important;min-width:38px!important}
 body.gtt-shell-v1 #sidebar .h162-home-nav .gtt-shell-home-split{gap:5px!important}
}

/* V231 pinned fixed Home/UI row */
body.gtt-shell-v1 #sidebar .h162-home-nav.gtt-shell-home-pinned{
 display:block!important;flex:0 0 auto!important;
 width:calc(100% - 6px)!important;min-width:0!important;
 margin:0 3px 6px!important;padding:0 2px 14px!important;
 border-bottom:1px solid rgba(147,191,236,.12)!important;
 position:relative;z-index:2
}
body.gtt-shell-v1 #sidebar .h162-home-nav.gtt-shell-home-pinned .gtt-shell-home-split{
 display:grid!important;grid-template-columns:minmax(0,1fr) 44px!important;
 gap:9px!important;width:100%!important;align-items:stretch
}
body.gtt-shell-v1 #sidebar .h162-home-nav.gtt-shell-home-pinned .gtt-shell-home-split>.h162-nav-item{
 display:flex!important;justify-content:flex-start!important;align-items:center!important;
 flex:1 1 auto!important;min-width:0!important;width:100%!important;min-height:56px!important;
 padding:9px 12px!important;gap:11px!important;
 font-size:14px!important;font-weight:750!important;text-align:left!important;
 border-radius:13px!important;white-space:nowrap!important;
 background:linear-gradient(130deg,rgba(99,160,229,.26),rgba(14,48,99,.35))!important;
 border:1px solid rgba(172,220,255,.29)!important;
 box-shadow:inset 0 1px rgba(255,255,255,.16),0 5px 16px rgba(4,20,48,.13)!important
}
body.gtt-shell-v1 #sidebar .h162-home-nav.gtt-shell-home-pinned .gtt-shell-home-split>.h162-nav-item.active,
body.gtt-shell-v1 #sidebar .h162-home-nav.gtt-shell-home-pinned .gtt-shell-home-split>.h162-nav-item:hover{
 background:linear-gradient(125deg,rgba(120,187,255,.34),rgba(24,64,121,.46))!important;
 border-color:rgba(189,226,255,.50)!important
}
body.gtt-shell-v1 #sidebar .h162-home-nav.gtt-shell-home-pinned .gtt-shell-home-split>.h162-nav-item .nav-icon{
 width:34px!important;min-width:34px!important;flex:0 0 34px!important;height:34px!important
}
body.gtt-shell-v1 #sidebar .h162-home-nav.gtt-shell-home-pinned .gtt-shell-home-split>.h162-nav-item .nav-icon img{
 width:33px!important;height:33px!important
}
body.gtt-shell-v1 #sidebar .h162-home-nav.gtt-shell-home-pinned .gtt-shell-home-split>#gtt-shell-nav-toggle{
 display:grid!important;place-items:center!important;justify-content:center!important;
 width:44px!important;min-width:44px!important;max-width:44px!important;
 min-height:56px!important;height:56px!important;padding:5px!important;
 border:1px solid rgba(174,221,255,.47)!important;border-radius:13px!important;
 background:linear-gradient(145deg,rgba(156,211,255,.27),rgba(36,87,164,.38) 60%,rgba(15,42,90,.64))!important;
 box-shadow:inset 0 1px 1px rgba(255,255,255,.33),0 6px 20px rgba(6,24,58,.22)!important;
 backdrop-filter:blur(18px) saturate(165%);-webkit-backdrop-filter:blur(18px) saturate(165%)
}
body.gtt-shell-v1 #sidebar .h162-home-nav.gtt-shell-home-pinned #gtt-shell-nav-toggle:hover{
 background:linear-gradient(120deg,rgba(167,222,255,.38),rgba(54,121,194,.52))!important;
 border-color:rgba(224,243,255,.75)!important
}
body.gtt-shell-v1 #sidebar .h162-home-nav.gtt-shell-home-pinned #gtt-shell-nav-toggle::after{content:none!important;display:none!important}
body.gtt-shell-v1 #sidebar .h162-home-nav.gtt-shell-home-pinned #gtt-shell-nav-toggle svg{display:none!important}
body.gtt-shell-v1 #sidebar .h162-home-nav.gtt-shell-home-pinned #gtt-shell-nav-toggle img,
body.gtt-shell-v1 #gtt-shell-sidebar-restore img{display:block!important;width:34px!important;height:28px!important;object-fit:contain!important;pointer-events:none!important}
body.gtt-shell-v1 #sidebar .v44-nav-stack{flex:1 1 auto!important;min-height:0!important;overflow-x:hidden!important;overflow-y:auto!important;scrollbar-gutter:stable}


/* The restored navigation eye is now BODY-level, outside any hidden sidebar,
   floating dock, full-width planner, iframe, or scrolling clip. */
body.gtt-shell-v1 #gtt-shell-sidebar-restore{
 position:fixed!important;top:9px!important;left:12px!important;
 z-index:20000!important;
 display:inline-flex!important;align-items:center!important;justify-content:center!important;
 width:42px!important;height:40px!important;min-width:42px!important;
 margin:0!important;padding:0!important;
 border:1px solid rgba(182,229,255,.42)!important;border-radius:13px!important;
 background:linear-gradient(140deg,rgba(54,111,158,.96),rgba(17,43,76,.97))!important;
 box-shadow:0 7px 24px rgba(0,9,29,.38),inset 0 1px rgba(255,255,255,.18)!important;
 pointer-events:auto!important;cursor:pointer!important;
}
body.gtt-shell-v1 #gtt-shell-sidebar-restore[hidden]{display:none!important}
body.gtt-shell-v1 #gtt-shell-sidebar-restore img{
 width:34px!important;height:28px!important;object-fit:contain!important;
}
@media(max-width:800px){
 body.gtt-shell-v1 #gtt-shell-sidebar-restore{
  top:8px!important;left:10px!important;
 }
}


/* Sidebar header: original branding sizes, with the existing hide-eye in upper right. */
body.gtt-shell-v1 #sidebar.side.sidebar>.brand{
 display:grid!important;
 grid-template-columns:48px minmax(0,1fr) 30px!important;
 align-items:center!important;
 gap:4px!important;
 width:100%!important;
 min-width:0!important;
 padding:9px 3px 16px!important;
 margin:0!important;
}
body.gtt-shell-v1 #sidebar.side.sidebar>.brand>.brand-mark{
 width:48px!important;height:48px!important;min-width:48px!important;
 flex:0 0 48px!important;box-sizing:border-box!important;
}
body.gtt-shell-v1 #sidebar.side.sidebar>.brand>.brand-mark img{
 width:34px!important;height:34px!important;
 object-fit:contain!important;image-rendering:pixelated!important;
}
body.gtt-shell-v1 #sidebar.side.sidebar>.brand>.v44-brand-copy{
 min-width:0!important;max-width:100%!important;
 display:flex!important;align-items:center!important;
}
body.gtt-shell-v1 #sidebar.side.sidebar>.brand #gtt-shell-nav-toggle{
 display:flex!important;align-items:center!important;justify-content:center!important;
 width:30px!important;min-width:30px!important;max-width:30px!important;
 height:34px!important;min-height:34px!important;
 padding:2px!important;margin:0!important;flex:0 0 30px!important;
 border:1px solid rgba(172,217,252,.42)!important;border-radius:11px!important;
 background:linear-gradient(135deg,rgba(97,158,213,.27),rgba(21,57,108,.55))!important;
 box-shadow:inset 0 1px rgba(242,251,255,.16)!important;
}
body.gtt-shell-v1 #sidebar.side.sidebar>.brand #gtt-shell-nav-toggle:hover{
 border-color:rgba(199,237,255,.80)!important;
 background:linear-gradient(135deg,rgba(123,195,251,.39),rgba(34,82,148,.67))!important;
}
body.gtt-shell-v1 #sidebar.side.sidebar>.brand #gtt-shell-nav-toggle:focus-visible{
 outline:2px solid #b7e8ff!important;outline-offset:2px!important;
}
body.gtt-shell-v1 #sidebar.side.sidebar>.brand #gtt-shell-nav-toggle img{
 display:block!important;width:27px!important;height:23px!important;
 object-fit:contain!important;pointer-events:none!important;
}
/* With the eye moved into the header, Home takes its own full-width row. */
body.gtt-shell-v1 #sidebar .h162-home-nav.gtt-shell-home-pinned>.h162-nav-item{
 width:100%!important;min-width:0!important;
 display:flex!important;justify-content:flex-start!important;align-items:center!important;
 gap:11px!important;min-height:50px!important;
 margin:0!important;padding:8px 12px!important;
 font-size:14px!important;font-weight:750!important;text-align:left!important;
 border:1px solid rgba(172,220,255,.29)!important;border-radius:13px!important;
 background:linear-gradient(130deg,rgba(99,160,229,.26),rgba(14,48,99,.35))!important;
 box-shadow:inset 0 1px rgba(255,255,255,.16),0 5px 16px rgba(4,20,48,.13)!important;
}
body.gtt-shell-v1 #sidebar .h162-home-nav.gtt-shell-home-pinned>.h162-nav-item:hover,
body.gtt-shell-v1 #sidebar .h162-home-nav.gtt-shell-home-pinned>.h162-nav-item.active{
 background:linear-gradient(125deg,rgba(120,187,255,.34),rgba(24,64,121,.46))!important;
 border-color:rgba(189,226,255,.50)!important;
}
body.gtt-shell-v1 #sidebar .h162-home-nav.gtt-shell-home-pinned>.h162-nav-item .nav-icon{
 width:34px!important;min-width:34px!important;height:34px!important;
 display:grid!important;place-items:center!important;
}
body.gtt-shell-v1 #sidebar .h162-home-nav.gtt-shell-home-pinned>.h162-nav-item .nav-icon img{
 width:33px!important;height:33px!important;
}
@media(max-width:800px){
 body.gtt-shell-v1 #sidebar.side.sidebar>.brand{
  grid-template-columns:48px minmax(0,1fr)!important;
  padding-top:0!important;
 }
 /* Mobile already has its own accessible close button above the header. */
 body.gtt-shell-v1 #sidebar.side.sidebar>.brand #gtt-shell-nav-toggle{
  display:none!important;
 }
}

/* On intermediate desktop widths, keep the original narrow-sidebar geometry
   rather than allowing the name and eye to overlap. */
@media (min-width:801px) and (max-width:1100px){
 body.gtt-shell-v1 #sidebar.side.sidebar>.brand{
  grid-template-columns:40px minmax(0,1fr) 30px!important;
 }
 body.gtt-shell-v1 #sidebar.side.sidebar>.brand>.brand-mark{
  width:40px!important;height:40px!important;min-width:40px!important;
  flex:0 0 40px!important;
 }
}
