/* 工作台共享侧边栏导航（配色走 theme.css 变量，随主题切换） */
:root { --wb-side-w: 232px; }
.wb-side {
  position: fixed; top: 0; left: 0; bottom: 0; width: var(--wb-side-w);
  background: var(--side-bg); border-right: 1px solid var(--border);
  padding: 16px 12px 64px; overflow-y: auto; z-index: 1000;
  transform: translateX(-100%); transition: transform .22s ease;
}
.wb-side.open { transform: none; }
.wb-brand {
  display: flex; align-items: center; gap: 9px;
  font-size: 16px; font-weight: 700; color: var(--side-brand); padding: 6px 10px 18px;
}
.wb-brand::before { content: ''; width: 12px; height: 12px; border-radius: 4px; background: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.wb-group-title {
  font-size: 11px; color: var(--side-group); padding: 14px 12px 6px; letter-spacing: .6px;
  text-transform: none; border-top: 1px solid var(--border); margin-top: 8px;
}
.wb-item {
  position: relative; display: flex; align-items: center; gap: 10px; padding: 11px 12px 11px 16px; border-radius: 10px;
  color: var(--side-text); text-decoration: none; font-size: 14px; font-weight: 600; cursor: pointer; margin: 4px 0;
  transition: background .15s, color .15s;
}
.wb-ic { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; flex: 0 0 18px; opacity: .85; }
.wb-ic svg { width: 17px; height: 17px; }
.wb-item:hover { background: var(--side-hover); }
.wb-item.active { background: var(--side-active-bg); color: var(--side-active-text); }
.wb-item.active .wb-ic { opacity: 1; }
.wb-item.active::before {
  content: ''; position: absolute; left: 4px; top: 50%; transform: translateY(-50%);
  width: 3px; height: 18px; border-radius: 2px; background: currentColor; opacity: .9;
}
.wb-sub .wb-item { padding-left: 26px; font-size: 13px; font-weight: 500; }
.wb-glabel { display: flex; align-items: center; gap: 10px; }
.wb-group { justify-content: space-between; }
.wb-group.on { color: var(--side-brand); font-weight: 700; }
.wb-caret { font-size: 10px; color: var(--side-group); transition: transform .15s; }
.wb-sub { display: none; overflow: hidden; }
.wb-sub.open { display: block; }
.wb-foot { position: absolute; left: 12px; right: 12px; bottom: 14px; }
.wb-theme {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  background: var(--card2); border: 1px solid var(--border); color: var(--text);
  border-radius: 10px; padding: 10px; font-size: 13px; cursor: pointer; transition: background .15s;
}
.wb-theme:hover { background: var(--side-hover); }
.wb-theme::before { content: ''; width: 12px; height: 12px; border-radius: 50%; background: linear-gradient(135deg, #f6c453 0 50%, #2b3550 50% 100%); }
.wb-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 999; display: none; opacity: 0; transition: opacity .2s; }
.wb-backdrop.show { display: block; opacity: 1; }
.wb-menu-btn {
  position: fixed; top: 12px; left: 12px; z-index: 1001;
  background: var(--side-btn-bg); border: 1px solid var(--side-btn-border); color: var(--side-brand);
  border-radius: 10px; width: 42px; height: 42px; font-size: 20px; line-height: 1; cursor: pointer; display: none;
  box-shadow: 0 2px 10px rgba(0,0,0,.15);
}
@media (min-width: 900px) {
  .wb-side { transform: none; }
  body.wb-body { padding-left: var(--wb-side-w); }
}
@media (max-width: 899px) {
  .wb-menu-btn { display: block; }
  body.wb-body { padding-top: 0; }
}
