/* Student Commons 5.14.4 — terminal signed-in shell contrast authority.
 *
 * 5.14.2 intentionally adopted the Student Workspace dark-green identity/
 * navigation shell. The older 5.11.1 global theme boundary has higher selector
 * specificity and could therefore repaint that shell with the light canvas and
 * dark foregrounds even though 5.14.2 is loaded later. This file is the final
 * scoped authority for the signed-in desktop shell only.
 */

@media (min-width:901px){
  /* Brand column: same dark family as Student Workspace in both themes. */
  html[data-theme] body.nsc5-document.nsc590-member-document .nsc590-member-app .nsc5-topbar .nsc5-brand,
  html body.nsc5-document.nsc590-member-document .nsc590-member-app .nsc5-topbar .nsc5-brand{
    background:#0b3027!important;
    border-color:#0b3027!important;
    color:#f7fffb!important;
    -webkit-text-fill-color:#f7fffb!important;
    opacity:1!important;
  }
  html[data-theme] body.nsc5-document.nsc590-member-document .nsc590-member-app .nsc5-topbar .nsc5-brand :is(strong,.nsc514-author-name),
  html body.nsc5-document.nsc590-member-document .nsc590-member-app .nsc5-topbar .nsc5-brand :is(strong,.nsc514-author-name){
    color:#ffffff!important;
    -webkit-text-fill-color:#ffffff!important;
    opacity:1!important;
  }
  html[data-theme] body.nsc5-document.nsc590-member-document .nsc590-member-app .nsc5-topbar .nsc5-brand small,
  html body.nsc5-document.nsc590-member-document .nsc590-member-app .nsc5-topbar .nsc5-brand small{
    color:#c5d8d0!important;
    -webkit-text-fill-color:#c5d8d0!important;
    opacity:1!important;
  }
  html[data-theme] body.nsc5-document.nsc590-member-document .nsc590-member-app .nsc5-topbar .nsc5-brand .nsc5-brand-mark,
  html body.nsc5-document.nsc590-member-document .nsc590-member-app .nsc5-topbar .nsc5-brand .nsc5-brand-mark{
    background:#214c41!important;
    border-color:rgba(255,255,255,.10)!important;
    color:#ffffff!important;
    -webkit-text-fill-color:#ffffff!important;
  }

  /* The whole desktop navigation rail, not only the identity card, is dark. */
  html[data-theme] body.nsc5-document.nsc590-member-document .nsc590-member-app .nsc5-sidebar.nsc5142-workspace-sidebar,
  html body.nsc5-document.nsc590-member-document .nsc590-member-app .nsc5-sidebar.nsc5142-workspace-sidebar{
    background:#0b3027!important;
    border-color:#0b3027!important;
    color:#f3fbf7!important;
    -webkit-text-fill-color:#f3fbf7!important;
    opacity:1!important;
  }

  /* Unified student identity in the rail. */
  html[data-theme] body.nsc5-document.nsc590-member-document .nsc590-member-app .nsc5142-workspace-sidebar .nsc5142-sidebar-identity,
  html body.nsc5-document.nsc590-member-document .nsc590-member-app .nsc5142-workspace-sidebar .nsc5142-sidebar-identity{
    background:#133d33!important;
    border-color:transparent!important;
    color:#ffffff!important;
    -webkit-text-fill-color:#ffffff!important;
  }
  html[data-theme] body.nsc5-document.nsc590-member-document .nsc590-member-app .nsc5142-workspace-sidebar .nsc5142-sidebar-identity :is(strong,.nsc514-author-identity,.nsc514-author-name),
  html body.nsc5-document.nsc590-member-document .nsc590-member-app .nsc5142-workspace-sidebar .nsc5142-sidebar-identity :is(strong,.nsc514-author-identity,.nsc514-author-name){
    color:#ffffff!important;
    -webkit-text-fill-color:#ffffff!important;
    opacity:1!important;
  }
  html[data-theme] body.nsc5-document.nsc590-member-document .nsc590-member-app .nsc5142-workspace-sidebar .nsc5142-sidebar-identity small,
  html body.nsc5-document.nsc590-member-document .nsc590-member-app .nsc5142-workspace-sidebar .nsc5142-sidebar-identity small{
    color:#c5d8d0!important;
    -webkit-text-fill-color:#c5d8d0!important;
    opacity:1!important;
  }
  html[data-theme] body.nsc5-document.nsc590-member-document .nsc590-member-app .nsc5142-workspace-sidebar .nsc5142-sidebar-identity:is(:hover,:focus-visible),
  html body.nsc5-document.nsc590-member-document .nsc590-member-app .nsc5142-workspace-sidebar .nsc5142-sidebar-identity:is(:hover,:focus-visible){
    background:#19483c!important;
    color:#ffffff!important;
    -webkit-text-fill-color:#ffffff!important;
  }

  /* Preserve staff-badge foregrounds instead of inheriting the rail's white. */
  html[data-theme] body.nsc5-document.nsc590-member-document .nsc590-member-app .nsc5142-workspace-sidebar .nsc514-staff-badge.is-admin{
    background:#e8f7ef!important;border-color:#a7dbc1!important;color:#07583a!important;-webkit-text-fill-color:#07583a!important;
  }
  html[data-theme] body.nsc5-document.nsc590-member-document .nsc590-member-app .nsc5142-workspace-sidebar .nsc514-staff-badge.is-admin :is(span,svg){color:#07583a!important;-webkit-text-fill-color:#07583a!important;stroke:currentColor!important}
  html[data-theme] body.nsc5-document.nsc590-member-document .nsc590-member-app .nsc5142-workspace-sidebar .nsc514-staff-badge.is-moderator{
    background:#eef4ff!important;border-color:#bfd0ef!important;color:#244a86!important;-webkit-text-fill-color:#244a86!important;
  }
  html[data-theme] body.nsc5-document.nsc590-member-document .nsc590-member-app .nsc5142-workspace-sidebar .nsc514-staff-badge.is-moderator :is(span,svg){color:#244a86!important;-webkit-text-fill-color:#244a86!important;stroke:currentColor!important}

  /* Match/exceed the retained 5.11.1 link selector specificity as well as
   * its !important declaration. Without this, its five :not() clauses can
   * still repaint direct anchor text even when the rail background is fixed. */
  html[data-theme] body.nsc5-document.nsc590-member-document .nsc590-member-app .nsc5142-workspace-sidebar a.nsc5142-sidebar-identity:not(.nsc5-primary):not(.nsc5-login):not(.nsc5-brand):not(.nsc5-count-badge):not(.nsc5-signout-button){
    color:#ffffff!important;-webkit-text-fill-color:#ffffff!important;
  }
  html[data-theme] body.nsc5-document.nsc590-member-document .nsc590-member-app .nsc5142-workspace-sidebar a.nsc5-nav-item:not(.nsc5-primary):not(.nsc5-login):not(.nsc5-brand):not(.nsc5-count-badge):not(.nsc5-signout-button){
    color:#f3fbf7!important;-webkit-text-fill-color:#f3fbf7!important;
  }
  html[data-theme] body.nsc5-document.nsc590-member-document .nsc590-member-app .nsc5142-workspace-sidebar a.nsc5-nav-item:not(.nsc5-primary):not(.nsc5-login):not(.nsc5-brand):not(.nsc5-count-badge):not(.nsc5-signout-button):is(:hover,:focus-visible){
    color:#ffffff!important;-webkit-text-fill-color:#ffffff!important;
  }
  html[data-theme] body.nsc5-document.nsc590-member-document .nsc590-member-app .nsc5142-workspace-sidebar a.nsc5-nav-item.is-active:not(.nsc5-primary):not(.nsc5-login):not(.nsc5-brand):not(.nsc5-count-badge):not(.nsc5-signout-button){
    color:#165c40!important;-webkit-text-fill-color:#165c40!important;
  }

  /* Default navigation rows are high-contrast on the dark rail. */
  html[data-theme] body.nsc5-document.nsc590-member-document .nsc590-member-app .nsc5142-workspace-sidebar .nsc5-nav-list a.nsc5-nav-item,
  html body.nsc5-document.nsc590-member-document .nsc590-member-app .nsc5142-workspace-sidebar .nsc5-nav-list a.nsc5-nav-item{
    background:transparent!important;
    border-color:transparent!important;
    color:#f3fbf7!important;
    -webkit-text-fill-color:#f3fbf7!important;
    opacity:1!important;
  }
  html[data-theme] body.nsc5-document.nsc590-member-document .nsc590-member-app .nsc5142-workspace-sidebar .nsc5-nav-list a.nsc5-nav-item :is(span,strong,small),
  html body.nsc5-document.nsc590-member-document .nsc590-member-app .nsc5142-workspace-sidebar .nsc5-nav-list a.nsc5-nav-item :is(span,strong,small){
    color:inherit!important;
    -webkit-text-fill-color:currentColor!important;
    opacity:1!important;
  }
  html[data-theme] body.nsc5-document.nsc590-member-document .nsc590-member-app .nsc5142-workspace-sidebar .nsc5-nav-list a.nsc5-nav-item svg,
  html body.nsc5-document.nsc590-member-document .nsc590-member-app .nsc5142-workspace-sidebar .nsc5-nav-list a.nsc5-nav-item svg{
    color:currentColor!important;stroke:currentColor!important;fill:none!important;opacity:1!important;
  }
  html[data-theme] body.nsc5-document.nsc590-member-document .nsc590-member-app .nsc5142-workspace-sidebar .nsc5-nav-list a.nsc5-nav-item:is(:hover,:focus-visible),
  html body.nsc5-document.nsc590-member-document .nsc590-member-app .nsc5142-workspace-sidebar .nsc5-nav-list a.nsc5-nav-item:is(:hover,:focus-visible){
    background:#143d33!important;
    border-color:#315c50!important;
    color:#ffffff!important;
    -webkit-text-fill-color:#ffffff!important;
  }
  html[data-theme] body.nsc5-document.nsc590-member-document .nsc590-member-app .nsc5142-workspace-sidebar .nsc5-nav-list a.nsc5-nav-item.is-active,
  html body.nsc5-document.nsc590-member-document .nsc590-member-app .nsc5142-workspace-sidebar .nsc5-nav-list a.nsc5-nav-item.is-active{
    background:#dff1e8!important;
    border-color:#7ebd9d!important;
    color:#165c40!important;
    -webkit-text-fill-color:#165c40!important;
    box-shadow:inset 0 0 0 1px rgba(22,92,64,.04)!important;
  }
  html[data-theme] body.nsc5-document.nsc590-member-document .nsc590-member-app .nsc5142-workspace-sidebar .nsc5-nav-list a.nsc5-nav-item.is-active :is(span,strong,small,svg),
  html body.nsc5-document.nsc590-member-document .nsc590-member-app .nsc5142-workspace-sidebar .nsc5-nav-list a.nsc5-nav-item.is-active :is(span,strong,small,svg){
    color:#165c40!important;
    -webkit-text-fill-color:#165c40!important;
    stroke:currentColor!important;
  }
  html[data-theme] body.nsc5-document.nsc590-member-document .nsc590-member-app .nsc5142-workspace-sidebar .nsc5-count-badge,
  html body.nsc5-document.nsc590-member-document .nsc590-member-app .nsc5142-workspace-sidebar .nsc5-count-badge{
    background:#f7d167!important;border-color:#e9bd43!important;color:#3d2d05!important;-webkit-text-fill-color:#3d2d05!important;
  }

  /* Retired promo card must not reappear through a retained legacy rule. */
  html[data-theme] body.nsc5-document.nsc590-member-document .nsc590-member-app .nsc5142-workspace-sidebar .nsc5-sidebar-note,
  html body.nsc5-document.nsc590-member-document .nsc590-member-app .nsc5142-workspace-sidebar .nsc5-sidebar-note{display:none!important}
}

@media (forced-colors:active){
  html body.nsc5-document.nsc590-member-document .nsc5142-workspace-sidebar,
  html body.nsc5-document.nsc590-member-document .nsc5-topbar .nsc5-brand{forced-color-adjust:auto!important}
}
