/* A compact, semantic navigation rail. All artwork is original SVG in shell().
   Scope intentionally excludes the slider, player and shared icon library. */
.portal-shell > .sidebar {
  background: #030405;
  border-right-color: #20262d;
  color: #f5f7fa;
  scrollbar-color: #424a55 transparent;
}
.portal-shell .sidebar .workspace-label {
  padding: 0 12px 11px;
  color: #abb3be;
  font-size: 9px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: .13em;
}
.portal-shell .sidebar nav { gap: 3px; }
.portal-shell .sidebar .nav-item {
  position: relative;
  min-height: 44px;
  padding: 10px 11px;
  gap: 11px;
  color: #f5f7fa;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -.01em;
  box-shadow: none;
  transition: color .16s ease, border-color .16s ease, background-color .16s ease;
}
.portal-shell .sidebar .nav-item > span { min-width: 0; }
.portal-shell .sidebar .nav-item .sidebar-glyph {
  display: block;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  color: #f5f7fa;
  opacity: 1;
}
.portal-shell .sidebar .nav-item .glyph-detail { opacity: .8; }
.portal-shell .sidebar .nav-item:hover {
  color: #fff;
  background: #0f1319;
  border-color: #222b35;
}
.portal-shell .sidebar .nav-item.active {
  color: #fff5ef;
  background: linear-gradient(90deg, #ff702a18, #ff702a07);
  border-color: #ff702a25;
  box-shadow: inset 2px 0 #ff702a;
  font-weight: 600;
}
.portal-shell .sidebar .nav-item.active .sidebar-glyph { color: #ff985f; }
.portal-shell .sidebar .nav-item.active:hover { background: linear-gradient(90deg, #ff702a23, #ff702a0a); border-color: #ff702a38; }
.portal-shell .sidebar .nav-item b {
  min-width: 21px;
  border-radius: 5px;
  color: #e8edf4;
  background: #202630;
  font-size: 10px;
  font-weight: 550;
  font-variant-numeric: tabular-nums;
}
.portal-shell .sidebar-sections {
  margin: 23px 0 22px;
  padding-top: 19px;
  border-top-color: #252c34;
}
.portal-shell .sidebar .section-link {
  grid-template-columns: 26px minmax(0,1fr) 12px;
  gap: 10px;
  min-height: 52px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: #f5f7fa;
  background: transparent;
  box-shadow: none;
  transition: border-color .16s ease, background-color .16s ease;
}
.portal-shell .sidebar .subject-graphic {
  display: grid;
  place-items: center;
  width: 26px;
  height: 30px;
  color: #f1f5fa;
  --subject-accent: #ff9559;
}
.portal-shell .sidebar .subject-varc { --subject-accent: #4cd4ba; }
.portal-shell .sidebar .subject-dilr { --subject-accent: #80adff; }
.portal-shell .sidebar .subject-graphic .sidebar-glyph {
  display: block;
  width: 24px;
  height: 24px;
  color: inherit;
  opacity: 1;
}
.portal-shell .sidebar .subject-graphic .glyph-accent { stroke: var(--subject-accent); }
.portal-shell .sidebar .section-link-copy { display: block; min-width: 0; }
.portal-shell .sidebar .section-link-copy strong {
  display: block;
  color: #f5f7fa;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: .035em;
}
.portal-shell .sidebar .section-link-copy small {
  display: block;
  margin-top: 2px;
  color: #c8cdd5;
  font-size: 11px;
  line-height: 1.45;
  font-weight: 400;
  letter-spacing: -.01em;
}
.portal-shell .sidebar .section-link > svg {
  width: 12px;
  height: 12px;
  color: #abb3be;
  opacity: .8;
}
.portal-shell .sidebar .section-link:hover { color: #fff; background: #0f1319; border-color: #222b35; }
.portal-shell .sidebar .section-link[aria-current="page"] {
  color: #fff5ef;
  background: #ff702a0b;
  border-color: #ff702a25;
  box-shadow: inset 2px 0 #ff702a;
}
.portal-shell .sidebar .section-link[aria-current="page"] .section-link-copy strong { color: #ffad7e; }
.portal-shell .sidebar .section-link[aria-current="page"] > svg { color: #ff985f; opacity: 1; }
.portal-shell .sidebar-bottom { padding-top: 15px; border-top-color: #252c34; }
.portal-shell .sidebar .sidebar-bottom .nav-item { color: #e2e8ef; }
.portal-shell .sidebar-account { gap: 10px; padding: 17px 12px 3px; }
.portal-shell .sidebar-account strong { color: #f0f4f8; font-size: 11px; font-weight: 500; }
.portal-shell .sidebar .local-status { margin-top: 3px; color: #abb3be; font-size: 10px; }
.portal-shell .sidebar .account-status-dot { background: #aab4c0; box-shadow: none; }
.portal-shell .sidebar .is-signed-in > .account-status-dot { background: #4cd4ba; box-shadow: 0 0 0 3px #4cd4ba12; }
.portal-shell .sidebar .sidebar-close { color: #f5f7fa; }
.portal-shell .sidebar .sidebar-close:hover { color: #fff; background: #151b23; }
.portal-shell .sidebar a:focus-visible,
.portal-shell .sidebar button:focus-visible { outline: 2px solid #ffad7e; outline-offset: 3px; }
@media (max-width: 950px) {
  .portal-shell .sidebar .nav-item { min-height: 46px; font-size: 13px; }
  .portal-shell .sidebar .section-link { min-height: 54px; }
  .portal-shell .sidebar .section-link-copy strong { font-size: 12px; }
  .portal-shell .sidebar .section-link-copy small { font-size: 11px; }
}
@media (max-height: 760px) and (min-width: 951px) {
  .portal-shell .sidebar-sections { margin-top: 17px; margin-bottom: 18px; padding-top: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .portal-shell .sidebar .nav-item,
  .portal-shell .sidebar .section-link { transition: none; }
}
@media (forced-colors: active) {
  .portal-shell .sidebar .nav-item,
  .portal-shell .sidebar .section-link { color: CanvasText; background: Canvas; box-shadow: none; }
  .portal-shell .sidebar .nav-item.active,
  .portal-shell .sidebar .section-link[aria-current="page"] { border-color: Highlight; }
  .portal-shell .sidebar .sidebar-glyph,
  .portal-shell .sidebar .subject-graphic .glyph-accent { color: CanvasText; stroke: CanvasText; }
}
