/* 顶栏的深色 / 浅色开关（需求 102，js/shade-toggle.js）：和旁边的「?」按钮同一个圆形尺寸。颜色只用已有的基础变量，深浅两种下都跟着变 */
.shade-btn { width: 24px; height: 24px; padding: 0; border-radius: 50%; flex: none; display: inline-flex; align-items: center; justify-content: center; line-height: 0; color: var(--text); }
.shade-btn svg { display: block; }

/* 窄一点的电脑窗口（900–1000 宽、高度够）顶栏是两行 grid（style.css 末尾）：给按钮多留一格。按钮没显示时（手机、平板、后台）没有这个类，grid 一点不变 */
@media (max-width: 1000px) and (min-height: 520px) {
  body #topbar.has-shade-btn { grid-template-columns: auto minmax(0, 1fr) auto auto auto auto;
                               grid-template-areas: "brand nav help shade lang user" "status status status status status status"; }
  #topbar #btn-shade { grid-area: shade; width: 30px; height: 30px; }
}
