/* V168 FINAL LOCK — preserve planner internals; lock desktop shell/flyouts/coach only. */
@media (min-width:901px){
  html.nirvana-desktop body.planner-focus .sidebar,
  html.nirvana-desktop body:not(.planner-focus) .sidebar{
    display:flex!important;position:fixed!important;left:0!important;top:0!important;bottom:0!important;
    width:230px!important;min-width:230px!important;max-width:230px!important;height:100vh!important;
    padding:20px 14px 14px!important;align-items:stretch!important;overflow:visible!important;background:#fff!important;z-index:300!important;
  }
  html.nirvana-desktop body.planner-focus .main-shell,
  html.nirvana-desktop body:not(.planner-focus) .main-shell{
    margin-left:230px!important;width:calc(100% - 230px)!important;min-width:0!important;
  }
  html.nirvana-desktop body.planner-focus .side-brand,
  html.nirvana-desktop body:not(.planner-focus) .side-brand{
    display:flex!important;justify-content:flex-start!important;align-items:center!important;gap:9px!important;width:100%!important;margin:0 0 14px!important;padding:0 4px 10px!important;
  }
  html.nirvana-desktop body.planner-focus .side-brand>div:last-child,
  html.nirvana-desktop body:not(.planner-focus) .side-brand>div:last-child{
    display:block!important;font-size:initial!important;min-width:0!important;
  }
  html.nirvana-desktop body.planner-focus .side-brand strong,
  html.nirvana-desktop body:not(.planner-focus) .side-brand strong{display:block!important;font-size:17px!important;line-height:1!important}
  html.nirvana-desktop body.planner-focus .side-brand span,
  html.nirvana-desktop body:not(.planner-focus) .side-brand span{display:block!important;font-size:9px!important;line-height:1.2!important}
  html.nirvana-desktop body.planner-focus .sidebar-logo,
  html.nirvana-desktop body:not(.planner-focus) .sidebar-logo{width:46px!important;height:46px!important;flex:0 0 46px!important}
  html.nirvana-desktop body.planner-focus .season-label,
  html.nirvana-desktop body.planner-focus .season,
  html.nirvana-desktop body.planner-focus .sidebar-footer,
  html.nirvana-desktop body:not(.planner-focus) .season-label,
  html.nirvana-desktop body:not(.planner-focus) .season,
  html.nirvana-desktop body:not(.planner-focus) .sidebar-footer{display:block!important;font-size:initial!important}
  html.nirvana-desktop body.planner-focus .side-nav,
  html.nirvana-desktop body:not(.planner-focus) .side-nav{display:grid!important;gap:4px!important;width:100%!important;margin-top:14px!important;overflow:visible!important}
  html.nirvana-desktop body.planner-focus .side-nav>button,
  html.nirvana-desktop body.planner-focus .nav-group>.nav-group-trigger,
  html.nirvana-desktop body:not(.planner-focus) .side-nav>button,
  html.nirvana-desktop body:not(.planner-focus) .nav-group>.nav-group-trigger{
    width:100%!important;min-height:42px!important;height:auto!important;padding:9px 10px!important;display:flex!important;flex-direction:row!important;
    align-items:center!important;justify-content:flex-start!important;gap:9px!important;font-size:13px!important;line-height:1.2!important;
  }
  html.nirvana-desktop body.planner-focus .side-nav .nav-text,
  html.nirvana-desktop body:not(.planner-focus) .side-nav .nav-text{
    display:inline!important;opacity:1!important;visibility:visible!important;white-space:nowrap!important;font-size:13px!important;line-height:1.2!important;
    width:auto!important;height:auto!important;overflow:visible!important;text-overflow:clip!important;
  }
  html.nirvana-desktop body.planner-focus .side-nav .nav-icon,
  html.nirvana-desktop body:not(.planner-focus) .side-nav .nav-icon{
    display:grid!important;place-items:center!important;width:24px!important;min-width:24px!important;height:24px!important;margin:0!important;font-size:17px!important;
  }
  html.nirvana-desktop body.planner-focus .nav-caret,
  html.nirvana-desktop body:not(.planner-focus) .nav-caret{display:inline!important;margin-left:auto!important;font-size:17px!important}
  html.nirvana-desktop body.planner-focus .side-nav button::before,
  html.nirvana-desktop body.planner-focus .side-nav button::after{display:none!important;content:none!important}

  html.nirvana-desktop .nav-group{position:relative!important;overflow:visible!important}
  html.nirvana-desktop .nav-flyout{
    position:absolute!important;left:calc(100% + 10px)!important;right:auto!important;top:0!important;bottom:auto!important;
    width:360px!important;min-width:360px!important;max-width:360px!important;max-height:72vh!important;padding:10px!important;
    overflow-y:auto!important;overflow-x:hidden!important;z-index:50000!important;background:#fff!important;border:1px solid #e5ebf2!important;
    border-radius:16px!important;box-shadow:0 18px 55px rgba(28,45,72,.24)!important;
  }
  html.nirvana-desktop .nav-flyout button{width:100%!important;display:grid!important;grid-template-columns:34px minmax(0,1fr)!important;gap:10px!important;align-items:center!important;padding:11px!important;overflow:visible!important}
  html.nirvana-desktop .nav-flyout .flyout-copy,html.nirvana-desktop .nav-flyout button>b{display:flex!important;flex-direction:column!important;align-items:flex-start!important;width:100%!important;min-width:0!important;white-space:normal!important}
  html.nirvana-desktop .nav-flyout strong,html.nirvana-desktop .nav-flyout button>b{font-size:13px!important;line-height:1.25!important;white-space:normal!important;word-break:normal!important;overflow-wrap:normal!important;color:#18324d!important}
  html.nirvana-desktop .nav-flyout small{display:block!important;width:100%!important;margin-top:3px!important;font-size:10.5px!important;line-height:1.28!important;white-space:normal!important;word-break:normal!important;overflow-wrap:normal!important;color:#6e7d92!important}

  /* Planner internals intentionally untouched. Only give its viewport the room left after the fixed sidebar. */
  html.nirvana-desktop #plannerPage{min-width:0!important;overflow-x:auto!important}
  html.nirvana-desktop .content{min-width:0!important}
}

/* Tablet classification applies only to real iPad/Android tablet via JS, never Windows touch PCs. */
html.nirvana-tablet .sidebar{width:88px!important}
html.nirvana-tablet .main-shell{margin-left:88px!important;width:calc(100% - 88px)!important}


/* V169 — dashboard live date/time + scrollable today plan */
#refDashboard .ref-date{align-items:center!important}
#refDashboard .ref-date-copy{display:flex!important;flex-direction:column!important;gap:2px!important;min-width:0!important}
#refDashboard .ref-clock{font-size:11px!important;font-weight:800!important;color:#6a7c92!important;letter-spacing:.04em!important;font-variant-numeric:tabular-nums!important}
#refDashboard #refDayIcon{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-width:38px!important}
#refDashboard .ref-plan{min-height:360px!important}
#refDashboard .ref-plan #refToday{max-height:360px!important;overflow-y:auto!important;overflow-x:hidden!important;padding-right:4px!important;scrollbar-width:thin!important;overscroll-behavior:contain!important}
#refDashboard .ref-plan #refToday::-webkit-scrollbar{width:8px!important}
#refDashboard .ref-plan #refToday::-webkit-scrollbar-thumb{background:#cfd8e3!important;border-radius:999px!important}
#refDashboard .ref-plan #refToday::-webkit-scrollbar-track{background:transparent!important}
#refDashboard .ref-plan #refToday .ref-task-row{min-height:48px!important}
@media (max-width:1050px){
  #refDashboard .ref-plan{min-height:320px!important}
  #refDashboard .ref-plan #refToday{max-height:300px!important}
  #refDashboard .ref-clock{font-size:10px!important}
}
