:root{}
/* sidebar.css - 左侧边栏（V1 改版第 1 批：240px、三分组、线性 SVG 图标、
   额度胶囊、套餐卡；数值对齐 V1 效果图 formatly-workbench-redesign） */
.dash-user { display: flex; align-items: center; gap: 11px; margin-bottom: 18px; padding: 12px 14px; background: var(--soft); border-radius: 16px; border: 1px solid var(--line); }
.dash-user .avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-weight: 700; font-size: 16px; flex-shrink: 0; }
.dash-user .user-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dash-user .user-meta b { font-size: 14.5px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-user .user-meta i { font-style: normal; font-size: 12px; color: var(--ink55); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.nav-grp { font-size: 11.5px; color: var(--ink40); font-weight: 700; letter-spacing: 1.2px; padding: 10px 12px 5px; }
.dash-nav a { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 12px; font-size: 14px; font-weight: 600; color: var(--ink70); transition: background .2s, color .2s; min-height: 44px; white-space: nowrap; }
.dash-nav a:hover { background: var(--soft2); color: var(--ink); }
.dash-nav a.active { background: var(--brand-soft); color: var(--brand); font-weight: 700; }
.nav-ic { display: inline-flex; flex: none; }
.nav-ic svg { width: 19px; height: 19px; display: block; }
.nav-label { overflow: hidden; text-overflow: ellipsis; }
.nav-pill { margin-left: auto; font-size: 11.5px; font-weight: 700; border-radius: 999px; padding: 2px 8px; white-space: nowrap; }
.nav-pill.cnt { background: var(--soft2); color: var(--ink55); }
.nav-pill.q-green { background: var(--green-bg); color: var(--green); }
.nav-pill.q-amber { background: var(--amber-bg); color: var(--amber); }
.nav-pill.q-red { background: var(--red-bg); color: var(--red); }
.nav-divider { height: 1px; background: var(--line); margin: 8px 12px; }
.plan-card { margin-top: 28px; background: var(--soft); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.plan-card.clickable { cursor: pointer; }
.plan-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.plan-name { font-size: 13px; font-weight: 700; }
.plan-status { color: var(--brand); }
.plan-status.pill { background: var(--lav); border-radius: 999px; padding: 1px 8px; font-size: 11.5px; white-space: nowrap; }
.plan-num { font-size: 26px; font-weight: 800; white-space: nowrap; }
.plan-num small { font-size: 12px; color: var(--ink55); font-weight: 600; }
.plan-bar { height: 6px; background: #e9e5f6; border-radius: 99px; margin: 9px 0 7px; overflow: hidden; }
.plan-bar i { display: block; height: 100%; background: var(--brand); border-radius: 99px; }
.plan-line { font-size: 12px; color: var(--ink55); line-height: 1.55; }
.plan-cta { display: block; text-align: center; font-size: 12.5px; color: var(--brand); font-weight: 700; margin-top: 10px; background: var(--lav); border: 1px solid var(--lav2); border-radius: 12px; padding: 8px 0; }
.plan-card.clickable:hover .plan-cta { border-color: var(--brand); }
.dash-brandfoot { display: flex; align-items: center; justify-content: center; gap: 7px; padding: 16px 2px 2px; }
.brandfoot-mark { width: 30px; height: 30px; flex: none; display: block; }
.brandfoot-word { height: 32px; width: auto; display: block; }

/* 手机端：侧边栏变顶部栏 + 横向可滚导航，不再整块消失 */
@media (max-width: 900px) {
  .dash-side { width: 100%; height: auto; position: static; padding: 12px 16px 10px; border-right: none; border-bottom: 1px solid var(--line); }
  .dash-user { margin-bottom: 10px; padding: 10px 12px; }
  .dash-nav { flex-direction: row; overflow-x: auto; gap: 4px; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
  .dash-nav a { padding: 10px 14px; font-size: 14px; min-height: 44px; }
  .nav-grp { display: none; }
  .nav-pill { margin-left: 6px; }
  .nav-divider { width: 1px; height: auto; margin: 6px 4px; }
  .plan-card, .dash-brandfoot { display: none; }
}
