/* CR-2026-121：培训页 / 工具类页侧栏矢量图标（替代原数字徽章）
   图标 markup 由 assets/js/rail-icons.js 注入为 <span class="t-ic">，本文件只负责度量与隐藏旧徽章。
   与 subject.css 的 #rail .t-ic 取值保持一致（22px / svg 19px），确保跨页观感统一。 */
#rail .t-ic,
.sidebar .navbtn .t-ic {
  flex: 0 0 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}
#rail .t-ic svg,
.sidebar .navbtn .t-ic svg {
  width: 19px;
  height: 19px;
}
/* 数字徽章的使命已由矢量图标接管；节点保留在 DOM（data-ric-num）以便无障碍回退 */
.sidebar .navbtn > .no,
#rail .t-item > .no,
#rail .t-item > .t-idx {
  display: none;
}
/* 展开态：图标与文字保持 10px 间距（由 .sidebar:hover .navbtn 的 gap 提供） */
.sidebar:hover .navbtn .t-ic,
.sidebar.pinned .navbtn .t-ic {
  margin-right: 1px;
}
/* CR-2026-142：侧栏图钉按钮（培训页固定展开态）。
   .sidebar 是 position:fixed，故图钉绝对定位落在顶部预留的 44px 留白内。
   收起态 58px 宽：left 16px 与图标列（18px 起）基本对齐；展开态停靠左上角。 */
.sidebar .rail-pin {
  position: absolute;
  top: 9px;
  left: 16px;
  width: 26px;
  height: 26px;
  padding: 0;
  border-radius: 7px;
  border: 1px solid var(--line2);
  background: var(--panel);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9;
  opacity: .7;
  transition: opacity .15s ease, color .15s ease, background .15s ease;
}
.sidebar .rail-pin svg { width: 15px; height: 15px; }
.sidebar .rail-pin:hover,
.sidebar .rail-pin:focus-visible { opacity: 1; color: var(--brand-ink); border-color: var(--brand); }
.sidebar.pinned .rail-pin { opacity: 1; background: var(--brand); border-color: var(--brand); color: var(--work-panel); }
/* CR-2026-142：顶栏已统一提供语言切换，隐藏旧右下角浮动入口（#woqLangSwitch），
   避免同页出现两个语言按钮。保留节点，便于回退。 */
#woqLangSwitch { display: none !important; }
