/* ============ 复利成长助手 · app.css：布局/组件/图表/页面 ============ */

/* ---------- 布局 ---------- */
.shell { 
  display: flex; 
  min-height: 100vh;
  width: 100%;
}
.main { 
  flex: 1; 
  min-width: 0; 
  display: flex; 
  flex-direction: column;
  min-height: 100vh;
}
.sidebar {
  width: 208px; flex: 0 0 208px;
  background: var(--bg-soft);
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
  padding: 14px 10px;
}
.brand { display: flex; align-items: center; gap: 8px; padding: 6px 10px 16px; cursor: pointer; }
.brand-logo { font-size: 22px; }
.brand-name { font-weight: 800; font-size: 15px; letter-spacing: .5px; }
.nav { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.nav-group { font-size: 11px; color: var(--text-3); padding: 10px 10px 4px; letter-spacing: 1px; }
.nav-item {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 10px; border-radius: 9px; cursor: pointer;
  color: var(--text-2); font-size: 13.5px;
  transition: background var(--speed), color var(--speed);
  user-select: none;
}
.nav-item:hover { background: var(--panel); color: var(--text); }
.nav-item.active { background: var(--accent-dim); color: var(--accent-2); font-weight: 600; }
.nav-ico { width: 20px; text-align: center; }
.side-footer {
  border-top: 1px solid var(--line); padding-top: 10px;
  display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--text-3);
}
.version-line { padding: 0 6px; }
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 22px;
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar-title { font-size: 17px; font-weight: 800; }
.topbar-stats { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.top-stat {
  display: flex; align-items: center; gap: 5px;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 20px; padding: 3px 10px; font-size: 12.5px; color: var(--text-2);
}
.top-stat b { color: var(--text); font-weight: 700; }
.page { padding: 20px 22px 60px; max-width: 1080px; width: 100%; margin: 0 auto; }
.page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.page-title { font-size: 21px; font-weight: 800; margin: 0; }
.page-sub { color: var(--text-3); font-size: 13px; margin-top: 2px; }
.page-actions { display: flex; gap: 8px; }

/* ---------- 通用组件 ---------- */
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}
.card + .card { margin-top: 14px; }
.card-title { font-size: 14.5px; font-weight: 700; display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.card-title .spacer { flex: 1; }
.grid { display: grid; gap: 14px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.row { display: flex; align-items: center; gap: 10px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.col { display: flex; flex-direction: column; gap: 8px; }
.wrap { flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--bg-soft); color: var(--text);
  border: 1px solid var(--line); border-radius: 10px;
  padding: 8px 14px; font-size: 13.5px; font-weight: 600;
  transition: transform var(--speed), background var(--speed), border-color var(--speed);
  user-select: none;
}
.btn:hover { border-color: var(--accent); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #04170e; }
.btn-primary:hover { background: var(--accent-2); }
.btn-ghost { background: transparent; }
.btn-danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, transparent); }
.btn-sm { padding: 4px 10px; font-size: 12.5px; border-radius: 8px; }
.btn-lg { padding: 11px 20px; font-size: 15px; border-radius: 12px; }
.btn-icon { padding: 6px 8px; border-radius: 9px; }
.btn-block { width: 100%; }

.chip {
  display: inline-flex; align-items: center; gap: 5px;
  border: 1px solid var(--line); background: var(--bg-soft);
  border-radius: 20px; padding: 3px 11px; font-size: 12.5px;
  color: var(--text-2); cursor: pointer; transition: all var(--speed);
  user-select: none;
}
.chip:hover { border-color: var(--accent); }
.chip.active { background: var(--accent-dim); border-color: var(--accent); color: var(--accent-2); font-weight: 600; }
.chip.on { background: var(--accent); border-color: var(--accent); color: #04170e; }
.chip.dim { opacity: .55; }
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--accent-dim); color: var(--accent-2);
  border-radius: 20px; padding: 2px 9px; font-size: 11.5px; font-weight: 600;
}
.badge.gray { background: var(--bg-soft); color: var(--text-3); }
.badge.gold { background: color-mix(in srgb, var(--gold) 16%, transparent); color: var(--gold); }
.badge.red { background: color-mix(in srgb, var(--danger) 16%, transparent); color: var(--danger); }

.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.stat-label { font-size: 12px; color: var(--text-3); margin-bottom: 4px; }
.stat-num { font-size: 24px; font-weight: 800; line-height: 1.1; }
.stat-num small { font-size: 13px; color: var(--text-3); font-weight: 600; }
.stat-sub { font-size: 12px; color: var(--text-3); margin-top: 4px; }

.progress { height: 8px; background: var(--bg-soft); border-radius: 6px; overflow: hidden; position: relative; }
.progress > i {
  display: block; height: 100%; border-radius: 6px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width .4s ease; width: 0;
}
.progress.thin { height: 5px; }
.progress.gold > i { background: linear-gradient(90deg, #d99a2b, var(--gold)); }
.progress.multi { display: flex; gap: 1px; background: transparent; }
.progress.multi > i { border-radius: 0; }

.xp-bar { display: flex; flex-direction: column; gap: 5px; }
.xp-bar .labels { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-3); }

.input { width: 100%; }
.input-group { display: flex; gap: 8px; align-items: center; }
.input-group .grow { flex: 1; }

.kv { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px; }
.kv:last-child { border-bottom: 0; }
.kv .k { color: var(--text-3); }
.kv .v { font-weight: 600; text-align: right; }

.empty { text-align: center; color: var(--text-3); padding: 26px 10px; font-size: 13.5px; }
.empty .big { font-size: 34px; display: block; margin-bottom: 6px; }

/* 表格 */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th, .table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table th { color: var(--text-3); font-weight: 600; font-size: 12px; }
.table tr:last-child td { border-bottom: 0; }
.table td.num, .table th.num { text-align: right; }

/* 模态 */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.55);
  display: flex; align-items: center; justify-content: center;
  padding: 20px; backdrop-filter: blur(3px);
  animation: fadeIn var(--speed) ease;
}
.modal {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px; max-width: 420px; width: 100%;
  box-shadow: var(--shadow); max-height: 82vh; overflow-y: auto;
  animation: popIn var(--speed) ease;
}
.modal h3 { margin-top: 0; }
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; }

/* toast */
#toast-root { position: fixed; top: 16px; right: 16px; z-index: 300; display: flex; flex-direction: column; gap: 8px; }
.toast {
  background: var(--panel-2); border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 10px; padding: 10px 14px; font-size: 13px;
  box-shadow: var(--shadow); display: flex; gap: 8px; align-items: center;
  max-width: 320px; animation: slideInRight var(--speed) ease;
}
.toast.err { border-left-color: var(--danger); }
.toast.gold { border-left-color: var(--gold); }

/* switch */
.switch { position: relative; width: 40px; height: 22px; flex: 0 0 40px; cursor: pointer; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch i {
  position: absolute; inset: 0; background: var(--bg-soft);
  border: 1px solid var(--line); border-radius: 22px; transition: all var(--speed);
}
.switch i::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--text-3); transition: all var(--speed);
}
.switch input:checked + i { background: var(--accent); border-color: var(--accent); }
.switch input:checked + i::after { left: 20px; background: #04170e; }

/* 分段选择 */
.seg { display: inline-flex; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 10px; padding: 3px; gap: 2px; }
.seg button {
  border: 0; background: transparent; color: var(--text-2);
  padding: 5px 12px; border-radius: 8px; font-size: 13px; font-weight: 600;
}
.seg button.active { background: var(--accent-dim); color: var(--accent-2); }

/* ---------- 页面专用 ---------- */

/* 首页 */
.hero { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-card { flex: 1; min-width: 260px; }
.hero-main { display: flex; gap: 14px; align-items: center; }
.avatar-big {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--accent-dim); display: flex; align-items: center; justify-content: center;
  font-size: 32px; flex: 0 0 64px;
}
.avatar-big.bordered { box-shadow: 0 0 0 3px var(--panel), 0 0 0 5px var(--accent); }
.dim-dots { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.dim-dot {
  width: 26px; height: 26px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg-soft); border: 1px solid var(--line); font-size: 14px;
}
.dim-dot.lv { cursor: default; flex-direction: column; gap: 0; font-size: 8px; padding: 0; width: 30px; height: 34px; }
.section-row { display: flex; gap: 14px; flex-wrap: wrap; }
.section-row > .card { flex: 1; min-width: 260px; }

/* 时间分布 mini */
.mini-dist { display: flex; flex-direction: column; gap: 6px; }
.mini-bar { display: flex; height: 12px; border-radius: 6px; overflow: hidden; background: var(--bg-soft); }
.mini-bar i { height: 100%; }
.mini-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 11.5px; color: var(--text-2); }
.mini-legend span { display: inline-flex; align-items: center; gap: 4px; }
.mini-legend i { width: 8px; height: 8px; border-radius: 3px; display: inline-block; }

/* 任务页 */
.task-dim { margin-bottom: 8px; }
.task-dim-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.task-dim-head .dim-name { font-weight: 700; font-size: 14.5px; }
.task-progress-line { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.task-progress-line .progress { flex: 1; }
.task-options { display: flex; gap: 8px; flex-wrap: wrap; }
.task-opt {
  flex: 1; min-width: 180px;
  border: 1px solid var(--line); background: var(--bg-soft);
  border-radius: 11px; padding: 10px 12px; cursor: pointer;
  transition: all var(--speed); position: relative;
}
.task-opt:hover { border-color: var(--accent); }
.task-opt.main { border-color: var(--accent); background: var(--accent-dim); }
.task-opt.done { opacity: .5; pointer-events: none; }
.task-opt .t { font-weight: 700; font-size: 13.5px; display: block; }
.task-opt .t::before { content: attr(data-ico) " "; }
.task-opt .tip { font-size: 11.5px; color: var(--text-3); margin-top: 3px; display: block; }
.task-opt .time-tag {
  position: absolute; top: 8px; right: 8px; font-size: 10.5px;
  background: var(--bg); color: var(--text-3); border-radius: 10px; padding: 1px 7px;
}
.task-opt button.swap {
  position: absolute; bottom: 8px; right: 8px; font-size: 11px;
  border: 1px solid var(--line); background: var(--panel); color: var(--text-2);
  border-radius: 8px; padding: 2px 8px;
}
.task-opt button.swap:hover { color: var(--accent); border-color: var(--accent); }
.day-switch { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.day-switch .btn { padding: 4px 10px; font-size: 12px; }

/* 角色卡 */
.tier-banner {
  text-align: center; padding: 18px 10px; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--accent-dim), transparent 60%);
  border: 1px solid var(--line); margin-bottom: 14px;
}
.tier-banner .tier-name { font-size: 18px; font-weight: 800; }
.tier-banner .tier-sub { color: var(--text-3); font-size: 12.5px; }
.dim-level-row { display: flex; align-items: center; gap: 10px; padding: 9px 4px; }
.dim-level-row .d-ico { font-size: 20px; width: 30px; text-align: center; }
.dim-level-row .d-info { flex: 1; min-width: 0; }
.dim-level-row .d-name { font-size: 13.5px; font-weight: 700; }
.dim-level-row .d-xp { font-size: 11.5px; color: var(--text-3); }
.dim-level-row .d-lv { font-weight: 800; font-size: 16px; color: var(--accent-2); width: 52px; text-align: right; }

/* 天赋树 */
.tree-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.tree-tab {
  border: 1px solid var(--line); background: var(--bg-soft); color: var(--text-2);
  border-radius: 9px; padding: 5px 11px; font-size: 12.5px; cursor: pointer;
}
.tree-tab.active { background: var(--accent-dim); border-color: var(--accent); color: var(--accent-2); font-weight: 600; }
.tree-branch {
  border: 1px dashed var(--line); border-radius: 12px; padding: 10px; margin-bottom: 10px;
}
.tree-branch .branch-name { font-size: 11.5px; color: var(--text-3); margin-bottom: 8px; letter-spacing: 1px; }
.node {
  border: 1px solid var(--line); background: var(--bg-soft); border-radius: 11px;
  padding: 9px 11px; margin-bottom: 8px; position: relative;
}
.node.locked { opacity: .45; }
.node .n-head { display: flex; align-items: center; gap: 8px; }
.node .n-name { font-weight: 700; font-size: 13px; flex: 1; }
.node .n-desc { font-size: 12px; color: var(--text-3); margin-top: 5px; }
.node .n-levels { display: flex; gap: 3px; margin-top: 7px; }
.node .n-levels i { width: 14px; height: 6px; border-radius: 3px; background: var(--bg); }
.node .n-levels i.on { background: var(--accent); }
.node .n-buy {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
}
.points-pill { font-weight: 800; color: var(--accent-2); background: var(--accent-dim); border-radius: 20px; padding: 4px 12px; font-size: 13px; }

/* 成就 */
.ach-row { display: flex; gap: 12px; align-items: center; padding: 10px 2px; border-bottom: 1px dashed var(--line); }
.ach-row:last-child { border-bottom: 0; }
.ach-ico {
  width: 44px; height: 44px; flex: 0 0 44px; border-radius: 12px;
  background: var(--bg-soft); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; font-size: 22px;
  filter: grayscale(1); opacity: .55;
}
.ach-row.unlocked .ach-ico { filter: none; opacity: 1; background: var(--accent-dim); border-color: var(--accent); }
.ach-info { flex: 1; min-width: 0; }
.ach-name { font-weight: 700; font-size: 13.5px; }
.ach-desc { font-size: 12px; color: var(--text-3); }
.ach-status { text-align: right; font-size: 12px; color: var(--text-3); min-width: 76px; }
.ach-status .locked-num { color: var(--accent-2); font-weight: 700; }

/* 商店 */
.shop-cat { font-size: 12px; color: var(--text-3); letter-spacing: 1px; margin: 14px 0 8px; }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.shop-item { border: 1px solid var(--line); background: var(--bg-soft); border-radius: 13px; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.shop-item.owned { border-color: var(--accent); }
.shop-item .s-ico { font-size: 30px; }
.shop-item .s-name { font-weight: 800; font-size: 14px; }
.shop-item .s-desc { font-size: 12px; color: var(--text-2); flex: 1; }
.price { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; color: var(--gold); }
.limit-tag { font-size: 11px; color: var(--text-3); }

/* 热力图 */
.heatmap { display: grid; grid-auto-flow: column; grid-template-rows: repeat(7, 13px); gap: 3px; overflow-x: auto; padding-bottom: 4px; }
.hm-cell { width: 13px; height: 13px; border-radius: 3px; background: var(--bg-soft); border: 1px solid transparent; }
.hm-cell.l1 { background: color-mix(in srgb, var(--accent) 25%, var(--bg-soft)); }
.hm-cell.l2 { background: color-mix(in srgb, var(--accent) 50%, var(--bg)); }
.hm-cell.l3 { background: color-mix(in srgb, var(--accent) 75%, var(--bg)); }
.hm-cell.l4 { background: var(--accent); }
.hm-legend { display: flex; gap: 4px; align-items: center; font-size: 11px; color: var(--text-3); margin-top: 6px; }

/* 时间轴（成长页阶段） */
.stage-timeline { display: flex; gap: 0; align-items: stretch; margin: 6px 0 14px; }
.stage-node { flex: 1; text-align: center; position: relative; padding: 0 4px; }
.stage-node::before {
  content: ""; position: absolute; top: 9px; left: -50%; right: 50%; height: 3px; background: var(--bg-soft);
}
.stage-node:first-child::before { display: none; }
.stage-node.reached::before { background: var(--accent); }
.stage-dot {
  width: 20px; height: 20px; border-radius: 50%; margin: 0 auto 6px;
  background: var(--bg-soft); border: 2px solid var(--line); position: relative; z-index: 1;
}
.stage-node.reached .stage-dot { background: var(--accent); border-color: var(--accent); }
.stage-node.current .stage-dot { box-shadow: 0 0 0 4px var(--accent-dim); }
.stage-label { font-size: 11.5px; color: var(--text-3); }
.stage-node.reached .stage-label { color: var(--accent-2); font-weight: 700; }

/* 番茄钟 */
.pomo-wrap { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 10px 0 20px; }
.pomo-ring { position: relative; width: 240px; height: 240px; }
.pomo-ring svg { transform: rotate(-90deg); }
.pomo-time {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.pomo-time .big { font-size: 52px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: 1px; }
.pomo-time .label { color: var(--text-3); font-size: 13px; }
.pomo-controls { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.pomo-goal-ring { width: 74px; height: 74px; position: relative; flex: 0 0 74px; }
.pomo-goal-num {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 17px;
}
.goal-strip { display: flex; align-items: center; gap: 12px; }
.goal-strip .txt { font-size: 13px; color: var(--text-2); }
.pomo-task-pick { max-width: 460px; width: 100%; }

/* 时间追踪 */
.track-form { display: flex; flex-direction: column; gap: 8px; }
.timeline-block { position: relative; background: var(--bg-soft); border-radius: 10px; padding: 4px 0 26px; margin-top: 8px; }
.timeline { position: relative; height: 40px; display: flex; }
.tl-seg { position: absolute; top: 12px; height: 16px; border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 10px; overflow: hidden; cursor: pointer; }
.tl-tick { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line); }
.tl-tick::after { content: attr(data-h); position: absolute; top: 30px; font-size: 9px; color: var(--text-3); left: 2px; }
.tl-gap { position: absolute; height: 16px; top: 12px; }
.tl-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 8px 10px 0; font-size: 11.5px; color: var(--text-2); }
.tl-legend i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; margin-right: 4px; }

/* 统计 */
.chart-card .card-title small { color: var(--text-3); font-weight: 400; font-size: 12px; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--text-2); margin-top: 8px; }
.chart-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-right: 5px; vertical-align: -1px; }
.chart-tip { font-size: 11.5px; color: var(--text-3); margin-top: 6px; }
.swing-up { color: var(--accent); font-weight: 700; }
.swing-down { color: var(--danger); font-weight: 700; }

/* 复盘/报告 */
.review-quest { border-left: 3px solid var(--accent); background: var(--bg-soft); border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; }
.review-quest .q { font-size: 11.5px; color: var(--text-3); margin-bottom: 4px; letter-spacing: 1px; }
.report-stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.milestone { display: flex; gap: 8px; align-items: flex-start; background: var(--accent-dim); border-radius: 10px; padding: 10px 12px; font-size: 13px; }

/* 数据页 */
.code-box {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 10px;
  padding: 12px; font-family: ui-monospace, Consolas, monospace; font-size: 12px;
  word-break: break-all; max-height: 160px; overflow: auto; color: var(--text-2);
}

/* 设置 */
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 2px; border-bottom: 1px dashed var(--line); }
.setting-row:last-child { border-bottom: 0; }
.setting-row .s-label { font-size: 13.5px; font-weight: 600; }
.setting-row .s-desc { font-size: 11.5px; color: var(--text-3); margin-top: 2px; }
.number-stepper { display: flex; align-items: center; gap: 8px; }
.number-stepper .val { font-weight: 800; min-width: 26px; text-align: center; }

/* 周挑战 */
.challenge { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--bg-soft); }
.challenge.done { border-color: var(--accent); }
.challenge.claimed { opacity: .6; }
.pk-row { display: flex; align-items: center; gap: 10px; font-size: 12.5px; margin-bottom: 8px; }
.pk-bars { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.pk-bar { height: 8px; border-radius: 4px; background: var(--bg-soft); position: relative; }
.pk-bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; background: var(--accent); }
.pk-bar.b i { background: color-mix(in srgb, var(--accent) 45%, transparent); }

/* 移动端 */
@media (max-width: 780px) {
  .shell { flex-direction: column; }
  .sidebar {
    width: 100%; flex: none; height: auto; position: fixed; bottom: 0; top: auto;
    flex-direction: row; align-items: center; padding: 6px 8px;
    border-right: 0; border-top: 1px solid var(--line); z-index: 100;
    background: color-mix(in srgb, var(--bg-soft) 95%, transparent);
    backdrop-filter: blur(8px);
  }
  .brand { display: none; }
  .nav { flex-direction: row; overflow-x: auto; gap: 2px; align-items: center; }
  .nav-group { display: none; }
  .nav-item { flex-direction: column; gap: 1px; padding: 4px 8px; font-size: 10.5px; border-radius: 8px; white-space: nowrap; }
  .nav-ico { font-size: 17px; }
  .side-footer { display: none; }
  .main { padding-bottom: 64px; }
  .topbar { padding: 10px 14px; }
  .page { padding: 14px 14px 30px; }
  .pomo-ring { width: 200px; height: 200px; }
  .pomo-time .big { font-size: 44px; }
}