/* Aether簿语 · 样式（浅灰紫场域 / 白卡超大圆角 / 粉 + 薄荷绿 + 黑） */

/* ================= 设计变量 ================= */
:root {
  --bg: #efecf7;
  --bg-soft: #e7e2f3;
  --card: #ffffff;
  --card-2: #f7f5fc;
  --ink: #0b0b0f;
  --ink-2: #2e2e3a;
  --muted: #6f6f8a;
  --muted-2: #8e8ba6;
  --line: #f1eef9;
  --line-2: #e5e0f2;
  --card-line: rgba(255, 255, 255, .9);

  /* 收入 = 薄荷绿 */
  --green: #0ea97c;
  --green-d: #0b8c67;
  --green-soft: #e7f9f2;
  /* 深色块（主按钮 / 余额卡 / 选中导航）统一走这一支 */
  --green-grad: linear-gradient(135deg, #23232d 0%, #0b0b0f 64%, #0b0b0f 100%);
  --mint: #7ee7c7;
  --mint-2: #5fd9b4;

  /* 香芋紫 / 粉 */
  --taro: #c39aec;
  --taro-soft: #f3ecfd;
  --taro-d: #8a5fc4;
  --pink: #f0a6da;
  --pink-soft: #fceaf7;
  --pink-d: #c967a8;

  /* 语义色 */
  --coral: #e4738f;
  --coral-soft: #fdedf1;
  --amber: #cf8f2e;
  --amber-soft: #fbf1e0;
  --blue: #7c9be0;
  --blue-soft: #edf1fc;
  --teal: #4fcbb0;
  --violet: #a98ce8;
  --violet-soft: #f2ecfd;

  /* 图表双系列 */
  --chart-exp: #b98cea;
  --chart-inc: #4fd3ac;
  --bar-hi-1: #0b0b0f;
  --bar-hi-2: #3b3b48;
  --bar-rest: rgba(163, 142, 205, .26);
  --bar-flag-ink: #ffffff;
  --donut-other: #cfc8df;

  --shadow: 0 18px 38px -28px rgba(64, 48, 108, .55), 0 1px 2px rgba(64, 48, 108, .05);
  --shadow-lg: 0 36px 68px -36px rgba(64, 48, 108, .62), 0 1px 2px rgba(64, 48, 108, .06);
  --r-card: 24px;
  --r-tile: 16px;
  --tab-h: 66px;
}

[data-theme="dark"] {
  --bg: #14111c;
  --bg-soft: #1b1727;
  --card: #201b2c;
  --card-2: #272134;
  --ink: #f6f3fb;
  --ink-2: #d9d3e7;
  --muted: #aaa4c0;
  --muted-2: #8f89a6;
  --line: #272132;
  --line-2: #322b40;
  --card-line: rgba(255, 255, 255, .06);

  --green-soft: #10291f;
  --green-grad: linear-gradient(135deg, #2c2c38 0%, #121218 70%);
  --taro-soft: #241d33;
  --pink-soft: #2d1c27;
  --coral-soft: #2c1a20;
  --amber-soft: #2b2317;
  --blue-soft: #1a2033;
  --violet-soft: #241d33;

  /* 深色下把「深色语义色」换成浅色，保证文字/图标对比度（填充处已改为固定深绿） */
  --green-d: #6fe7c2;
  --taro-d: #d8bcf7;
  --pink-d: #f7bce6;
  --amber: #e8b570;
  --coral: #f09cb3;
  --blue: #b7cbf5;
  --violet: #c9aef4;

  --chart-exp: #d6aef7;
  --chart-inc: #6fe7c2;
  --bar-hi-1: #f6f3fb;
  --bar-hi-2: #c9c2e4;
  --bar-rest: rgba(195, 154, 236, .28);
  --bar-flag-ink: #14111c;
  --donut-other: #4c4560;

  --shadow: 0 18px 38px -26px rgba(0, 0, 0, .9), 0 1px 2px rgba(0, 0, 0, .5);
  --shadow-lg: 0 34px 64px -32px rgba(0, 0, 0, .95), 0 1px 2px rgba(0, 0, 0, .5);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro SC", "PingFang SC", "Helvetica Neue", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

button { font-family: inherit; border: 0; background: none; color: inherit; cursor: pointer; padding: 0; }
input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
svg { display: block; }
.ico { width: 20px; height: 20px; }

/* ================= 外壳 ================= */
.phone {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  /* 浅灰紫场域：左上奶粉、右上薄荷、底部沉紫三层柔光 */
  background:
    radial-gradient(120% 46% at 6% -4%, #fbe9f7 0%, rgba(251, 233, 247, 0) 58%),
    radial-gradient(100% 40% at 100% 2%, #e3f8f0 0%, rgba(227, 248, 240, 0) 54%),
    radial-gradient(150% 52% at 50% 108%, #e5dbf8 0%, rgba(229, 219, 248, 0) 62%),
    var(--bg);
  background-attachment: scroll;
  padding-bottom: calc(var(--tab-h) + 34px + env(safe-area-inset-bottom));
  padding-top: env(safe-area-inset-top);
  overflow-x: hidden;
}
[data-theme="dark"] .phone {
  background:
    radial-gradient(120% 46% at 6% -4%, #2a1d33 0%, rgba(42, 29, 51, 0) 58%),
    radial-gradient(100% 40% at 100% 2%, #142b2a 0%, rgba(20, 43, 42, 0) 54%),
    radial-gradient(150% 52% at 50% 108%, #221a33 0%, rgba(34, 26, 51, 0) 62%),
    var(--bg);
}

@media (min-width: 520px) {
  body { background: #e2dcf0; }
  [data-theme="dark"] body { background: #0a0810; }
  .phone { box-shadow: 0 50px 100px -60px rgba(52, 38, 92, .7); }
}

.view { padding: 4px 18px 0; }

/* ================= 通用组件 ================= */
.card {
  background: var(--card);
  border-radius: var(--r-card);
  padding: 18px;
  box-shadow: var(--shadow);
  border: 1px solid var(--card-line);
}
[data-theme="dark"] .card { border-color: rgba(255, 255, 255, .04); }

.card + .card, .card + .sec, .sec + .card { margin-top: 12px; }

.sec-title {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -.025em;
}

.row-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

.muted { color: var(--muted); }
.small { font-size: 11.5px; }
.tiny { font-size: 10.5px; }
.grow { flex: 1; }
.num { font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.inc { color: var(--green-d); }
.exp { color: var(--ink); }

/* 页头 */
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 2px 16px;
}
.page-head h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.2;
}
.page-head .sub {
  margin: 5px 0 0;
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 500;
}

.icon-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--card);
  color: var(--ink-2);
  box-shadow: var(--shadow);
  flex: none;
  border: 1px solid var(--card-line);
  transition: transform .2s;
}
.icon-btn:active { transform: scale(.94); }
.icon-btn svg { width: 18px; height: 18px; }

/* 头像 */
.avatar {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--green-grad);
  color: #fff; font-weight: 700; font-size: 16px;
  box-shadow: 0 16px 26px -16px rgba(11, 11, 15, .9);
  flex: none;
  letter-spacing: -.01em;
}

/* pill 按钮（月份选择等） */
.pill {
  display: inline-flex; align-items: center; gap: 5px;
  height: 34px; padding: 0 13px;
  border-radius: 999px;
  background: var(--card);
  color: var(--ink-2);
  font-size: 12.5px; font-weight: 700;
  box-shadow: var(--shadow);
  white-space: nowrap;
  border: 1px solid var(--card-line);
}
.pill svg { width: 13px; height: 13px; opacity: .5; }
.pill.flat { box-shadow: none; background: var(--card-2); border-color: transparent; }

/* 分段控件 */
.seg {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 3px;
  padding: 3px;
  background: rgba(255, 255, 255, .72);
  border-radius: 999px;
  box-shadow: var(--shadow);
  border: 1px solid var(--card-line);
}
[data-theme="dark"] .seg { background: var(--card-2); border-color: transparent; }
.seg button {
  height: 36px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  transition: background .2s, color .2s, box-shadow .2s;
}
.seg button.on { background: var(--ink); color: var(--bg); box-shadow: 0 12px 22px -14px rgba(11, 11, 15, .85); }
[data-theme="dark"] .seg button.on { background: var(--mint); color: #0b0b0f; }
.seg.income button.on { background: #0b8c67; color: #fff; box-shadow: 0 12px 22px -14px rgba(11, 140, 103, .9); }

/* 主按钮 */
.btn-primary {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%; height: 48px;
  border-radius: 999px;
  background: var(--green-grad);
  color: #fff; font-size: 14.5px; font-weight: 700;
  box-shadow: 0 20px 34px -20px rgba(11, 11, 15, .95);
  letter-spacing: .01em;
  transition: transform .18s;
}
.btn-primary:active { transform: translateY(1px) scale(.995); }
[data-theme="dark"] .btn-primary { background: var(--mint); color: #0b0b0f; box-shadow: 0 18px 30px -20px rgba(0, 0, 0, .9); }
.btn-line {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 40px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line-2); color: var(--ink-2); font-size: 13px; font-weight: 600;
  background: var(--card);
}
.btn-line.danger { color: var(--coral); border-color: rgba(228, 115, 143, .32); }

/* ================= 首页 ================= */
.greet { display: flex; align-items: center; gap: 12px; padding: 14px 2px 18px; }
.greet-txt { flex: 1; min-width: 0; }
.greet-txt p {
  margin: 0 0 3px;
  font-size: 11.5px; color: var(--muted); font-weight: 500;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.greet-txt h1 {
  margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -.035em; line-height: 1.2;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* 余额卡：纯黑 + 粉色竖胶囊 + 薄荷星，对应参考稿的 Balance Card */
.hero {
  position: relative;
  border-radius: 26px;
  padding: 20px 20px 18px;
  background: var(--green-grad);
  color: #fff;
  box-shadow: 0 30px 48px -30px rgba(11, 11, 15, .95), inset 0 1px 0 rgba(255, 255, 255, .1);
  overflow: hidden;
  cursor: pointer;
  transition: transform .26s cubic-bezier(.22, .9, .28, 1);
}
.hero::before {
  content: "";
  position: absolute; right: -46px; top: -86px;
  width: 240px; height: 226px;
  background: radial-gradient(50% 50% at 55% 55%, rgba(126, 231, 199, .19) 0%, rgba(126, 231, 199, .07) 45%, rgba(126, 231, 199, 0) 72%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute; right: -54px; bottom: -66px;
  width: 148px; height: 148px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 0 0 20px rgba(255, 255, 255, .045), 0 0 0 50px rgba(255, 255, 255, .028);
  pointer-events: none;
}
.hero:active { transform: scale(.988); }
.hero-star {
  position: absolute; right: 58px; top: 20px;
  width: 15px; height: 15px; color: var(--mint);
  opacity: .95;
  filter: drop-shadow(0 0 8px rgba(126, 231, 199, .55));
}
.hero-pill {
  position: absolute; right: 18px; top: 50%;
  transform: translateY(-50%);
  width: 26px; height: 58px; border-radius: 999px;
  background: linear-gradient(180deg, #f7bde9 0%, #e796ce 100%);
  color: #0b0b0f; font-size: 16px; font-weight: 700;
  display: grid; place-items: center;
  box-shadow: 0 14px 24px -14px rgba(231, 150, 206, .95);
}
.hero-pill svg { width: 13px; height: 13px; }
.hero-label { font-size: 11px; opacity: .58; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.hero-amount {
  display: flex; align-items: baseline; gap: 5px;
  margin: 7px 0 18px;
  font-size: clamp(27px, 8.8vw, 36px); font-weight: 800; letter-spacing: -.045em;
  padding-right: 44px;
  white-space: nowrap; overflow: hidden;
}
.hero-amount i { font-style: normal; font-size: 19px; font-weight: 600; opacity: .58; letter-spacing: 0; }
.hero-amount em { font-style: normal; font-size: 17px; font-weight: 700; opacity: .9; }
.hero-split { display: flex; gap: 8px; padding-right: 40px; }
.hero-split div {
  flex: 1; min-width: 0;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 15px;
  padding: 8px 11px;
  font-size: 9.8px; color: rgba(255, 255, 255, .5); font-weight: 600;
  letter-spacing: .02em;
}
.hero-split b {
  display: block; margin-top: 3px;
  font-size: 12.5px; font-weight: 700; color: #fff;
  letter-spacing: -.01em; font-variant-numeric: tabular-nums;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.hero-foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 15px; padding-right: 40px;
  font-size: 8.6px; font-weight: 600; letter-spacing: .16em;
  color: rgba(255, 255, 255, .38); text-transform: uppercase;
}
.hero-mark { display: inline-flex; align-items: center; }
.hero-mark i { width: 15px; height: 15px; border-radius: 50%; display: block; }
.hero-mark i:first-child { background: rgba(255, 255, 255, .92); }
.hero-mark i:last-child { background: linear-gradient(140deg, #f7bde9, #b98cea); margin-left: -6px; }

/* 快捷入口：4 个圆形，对应参考稿 Send / Request / E-Wallet / More */
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 16px; }
.quick-item { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.quick-ico {
  width: 50px; height: 50px; border-radius: 50%;
  display: grid; place-items: center;
  box-shadow: 0 16px 26px -20px rgba(64, 48, 108, .95);
  transition: transform .2s;
}
.quick-ico svg { width: 21px; height: 21px; }
.quick-item:active .quick-ico { transform: scale(.93); }
.quick-item b { font-size: 10.5px; font-weight: 600; color: var(--ink-2); letter-spacing: .01em; }
.q-ink { background: var(--ink); color: #fff; }
.q-pink { background: var(--pink-soft); color: var(--pink-d); }
.q-mint { background: var(--green-soft); color: var(--green-d); }
.q-lilac { background: var(--taro-soft); color: var(--taro-d); }
[data-theme="dark"] .q-ink { background: var(--mint); color: #0b0b0f; }

/* 预算卡 */
.budget-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.budget-head b { font-size: 14px; font-weight: 800; letter-spacing: -.02em; }
.budget-head span { font-size: 11px; color: var(--muted); }
.budget-meta { margin-top: 10px; display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); }

/* 列表行（今日概况 / 账单） */
.list-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0;
}
.list-row + .list-row { border-top: 1px solid var(--line); }
.tile-ico {
  width: 40px; height: 40px; border-radius: 14px;
  display: grid; place-items: center;
  flex: none;
}
.tile-ico svg { width: 19px; height: 19px; }
.list-main { flex: 1; min-width: 0; }
.list-main b { display: block; font-size: 13.5px; font-weight: 600; letter-spacing: -.015em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-main span { display: block; margin-top: 3px; font-size: 10.8px; color: var(--muted-2); }
.list-amt { font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.list-amt small { font-size: 10.5px; font-weight: 600; opacity: .7; margin-right: 1px; }

.link-more { display: inline-flex; align-items: center; gap: 2px; font-size: 11.5px; color: var(--muted); font-weight: 700; }
.link-more svg { width: 12px; height: 12px; }

/* ================= 记一笔 ================= */
.add-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 2px 18px; }
.add-head .cap { font-size: 13px; color: var(--muted); font-weight: 600; }
.add-head h1 { margin: 0; font-size: 17px; font-weight: 800; letter-spacing: -.03em; }

.amount-display {
  display: flex; align-items: baseline; gap: 4px;
  padding: 10px 2px 20px;
  font-size: 44px; font-weight: 800; letter-spacing: -.055em;
}
.amount-display i { font-style: normal; font-size: 22px; font-weight: 600; opacity: .35; }
.amount-display .ph { color: var(--muted-2); }

.note-field {
  width: 100%; height: 46px;
  border-radius: 16px; border: 1px solid var(--card-line);
  background: var(--card);
  padding: 0 15px;
  font-size: 13px;
  box-shadow: var(--shadow);
  outline: none;
}
.note-field::placeholder { color: var(--muted-2); }

.pick-label { margin: 20px 2px 12px; font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .04em; }

.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 8px; }
.cat-tile { display: flex; flex-direction: column; align-items: center; gap: 7px; }
.cat-tile .box {
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg-soft);
  transition: transform .18s, background .18s, box-shadow .18s;
}
.cat-tile .box svg { width: 21px; height: 21px; }
.cat-tile span { font-size: 10.5px; color: var(--muted); font-weight: 500; }
.cat-tile:active .box { transform: scale(.93); }
.cat-tile.on .box { background: var(--ink); box-shadow: 0 16px 26px -16px rgba(11, 11, 15, .9); }
.cat-tile.on .box svg { color: #fff; }
.cat-tile.on span { color: var(--ink); font-weight: 700; }
.cat-tile.income.on .box { background: #0b8c67; box-shadow: 0 16px 26px -16px rgba(11, 140, 103, .9); }
.cat-tile.income.on span { color: var(--green-d); }
[data-theme="dark"] .cat-tile.on .box { background: var(--mint); }
[data-theme="dark"] .cat-tile.on .box svg { color: #0b0b0f; }

.keypad {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px;
  margin-top: 20px;
}
.keypad button {
  height: 52px; border-radius: 18px;
  background: var(--card);
  font-size: 20px; font-weight: 600;
  box-shadow: var(--shadow);
  border: 1px solid var(--card-line);
  display: grid; place-items: center;
  transition: transform .12s, background .12s;
}
.keypad button:active { background: var(--bg-soft); transform: scale(.97); }
.keypad button svg { width: 21px; height: 21px; }
.keypad .dot { font-weight: 700; }

.add-foot { margin-top: 18px; }
.add-foot .del { margin-top: 12px; display: flex; justify-content: center; }

/* ================= 账单 ================= */
.summary-card { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.summary-card > div + div { border-left: 1px solid var(--line); padding-left: 16px; }
.summary-card span { font-size: 11px; color: var(--muted); font-weight: 600; letter-spacing: .03em; }
.summary-card b { display: block; margin-top: 6px; font-size: 21px; font-weight: 800; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.summary-card b.exp { color: var(--ink); }
.summary-card b.inc { color: var(--green-d); }

.search-wrap { padding: 0 0 12px; display: none; }
.search-wrap.on { display: block; }
.search-field {
  display: flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 15px;
  background: var(--card); border-radius: 999px;
  box-shadow: var(--shadow);
  border: 1px solid var(--card-line);
}
.search-field svg { width: 17px; height: 17px; color: var(--muted-2); flex: none; }
.search-field input { flex: 1; border: 0; outline: none; background: none; font-size: 13px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 12px 2px 0; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
/* 账单页：6 类支付渠道常驻筛选条 */
.chan-chips { padding: 0 2px 14px; }
.chip {
  height: 31px; padding: 0 14px; border-radius: 999px;
  background: var(--card); color: var(--muted);
  font-size: 12px; font-weight: 600; white-space: nowrap;
  box-shadow: var(--shadow);
  border: 1px solid var(--card-line);
}
.chip.on { background: var(--ink); color: #fff; border-color: transparent; }
[data-theme="dark"] .chip.on { background: var(--mint); color: #0b0b0f; }

.day-group + .day-group { margin-top: 14px; }
.day-head {
  display: flex; justify-content: space-between;
  padding: 4px 6px 9px;
  font-size: 11px; color: var(--muted-2); font-weight: 600;
}
.txn-list { padding: 4px 16px; }
.txn-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; cursor: pointer; }
.txn-row + .txn-row { border-top: 1px solid var(--line); }

/* ================= 统计 ================= */
.stats-share { padding: 18px 16px 16px; }
.share-head { font-size: 11px; color: var(--muted); font-weight: 600; letter-spacing: .03em; margin-bottom: 14px; }
.donut-row { display: flex; align-items: center; gap: 14px; }
.donut-row > svg { flex: none; }
.legend { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.legend .legend-row {
  display: flex; align-items: center; gap: 7px;
  width: 100%; padding: 0; background: none; border: 0;
  font-size: 11.5px; color: var(--ink-2); text-align: left; font-family: inherit;
}
.legend button.legend-row { cursor: pointer; }
.legend .legend-row:active { opacity: .55; }
.legend i { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.legend em { margin-left: auto; font-style: normal; color: var(--muted); font-variant-numeric: tabular-nums; font-weight: 600; }

.rank-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.rank-head b { font-size: 14px; font-weight: 800; letter-spacing: -.02em; }
.rank-row { padding: 11px 0; }
.rank-row + .rank-row { border-top: 1px solid var(--line); }
.rank-row.tap { cursor: pointer; border-radius: 14px; transition: background .16s, padding .16s; }
.rank-row.tap:active { background: var(--card-2); }
.rank-top { display: flex; align-items: center; gap: 11px; }
.rank-name { flex: 1; font-size: 13px; font-weight: 600; letter-spacing: -.01em; }
.rank-val { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.rank-chev { display: grid; place-items: center; flex: none; color: var(--muted-2); opacity: .6; }
.rank-chev svg { width: 13px; height: 13px; }
.rank-bar { margin-top: 9px; height: 7px; border-radius: 999px; background: rgba(163, 142, 205, .16); overflow: hidden; }
.rank-bar i { display: block; height: 100%; border-radius: 999px; }

.chart-card { padding: 18px 16px 14px; }
.chart-card svg { width: 100%; height: auto; }

.mini-kpi { display: flex; gap: 8px; margin-top: 14px; }
.mini-kpi div {
  flex: 1; min-width: 0;
  background: var(--card-2); border-radius: 14px; padding: 10px 11px;
}
.mini-kpi span { font-size: 10px; color: var(--muted); font-weight: 600; }
.mini-kpi b { display: block; margin-top: 3px; font-size: 13.5px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ================= 我的 ================= */
.me-head {
  display: flex; align-items: center; gap: 14px;
  padding: 20px 18px;
}
.me-head .avatar { width: 54px; height: 54px; font-size: 20px; }
.me-head h1 { margin: 0; font-size: 18px; font-weight: 800; letter-spacing: -.03em; }
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: 7px; height: 22px; padding: 0 10px;
  border-radius: 999px;
  background: var(--green-soft); color: var(--green-d);
  font-size: 10.5px; font-weight: 700;
}

.me-stats { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; }
.me-stats > div + div { border-left: 1px solid var(--line); }
.me-stats b { display: block; font-size: 21px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.me-stats b.g { color: var(--green-d); }
.me-stats b.a { color: var(--taro-d); }
.me-stats span { display: block; margin-top: 3px; font-size: 10.5px; color: var(--muted); }

.menu-group { padding: 10px 18px; }
.menu-cap { padding: 8px 2px 6px; font-size: 10px; color: var(--muted-2); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.menu-row {
  display: flex; align-items: center; gap: 12px;
  width: 100%; padding: 11px 0; text-align: left;
}
.menu-row + .menu-row { border-top: 1px solid var(--line); }
.menu-ico {
  width: 34px; height: 34px; border-radius: 12px;
  display: grid; place-items: center; flex: none;
  background: var(--green-soft); color: var(--green-d);
}
.menu-ico svg { width: 17px; height: 17px; }
.menu-ico.b { background: var(--taro-soft); color: var(--taro-d); }
.menu-ico.a { background: var(--pink-soft); color: var(--pink-d); }
.menu-ico.v { background: var(--blue-soft); color: var(--blue); }
.menu-ico.c { background: var(--coral-soft); color: var(--coral); }
.menu-txt { flex: 1; font-size: 13.5px; font-weight: 500; }
.menu-txt small { display: block; margin-top: 2px; font-size: 10.5px; color: var(--muted-2); font-weight: 400; }
.menu-row > svg.chev { width: 16px; height: 16px; color: var(--muted-2); }

.switch {
  width: 44px; height: 26px; border-radius: 999px;
  background: var(--line-2); position: relative; flex: none;
  transition: background .2s;
}
.switch::after {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 20px; height: 20px; border-radius: 50%;
  background: #fff; box-shadow: 0 2px 6px rgba(11, 11, 15, .24);
  transition: transform .22s;
}
.switch.on { background: var(--ink); }
.switch.on::after { transform: translateX(18px); }
[data-theme="dark"] .switch.on { background: var(--mint); }

/* ================= 底部导航 ================= */
.tabbar {
  position: fixed;
  left: 50%; transform: translateX(-50%);
  bottom: calc(12px + env(safe-area-inset-bottom));
  width: calc(100% - 32px);
  max-width: 398px;
  height: var(--tab-h);
  display: flex; align-items: center;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--card-line);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 26px 50px -30px rgba(52, 38, 92, .75), 0 1px 0 var(--card-line) inset;
  border: 1px solid var(--card-line);
  z-index: 60;
}
[data-theme="dark"] .tabbar { background: rgba(29, 25, 39, .92); border-color: rgba(255, 255, 255, .05); }

.tab {
  flex: 1;
  height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: var(--muted-2);
  font-size: 9.5px; font-weight: 600;
  border-radius: 999px;
  transition: color .2s, background .24s, margin .24s;
}
.tab svg { width: 20px; height: 20px; }
.tab.active {
  flex-direction: row; gap: 6px;
  color: #fff;
  background: var(--green-grad);
  box-shadow: 0 16px 28px -16px rgba(11, 11, 15, .9);
  font-size: 12.5px; font-weight: 700;
  margin: 9px 4px;
  height: calc(100% - 18px);
}
.tab.active svg { width: 17px; height: 17px; }
[data-theme="dark"] .tab.active { background: var(--mint); color: #0b0b0f; }

.tab-add { flex: none; width: 56px; margin: 0 2px; display: grid; place-items: center; }
.tab-add span {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 16px 26px -14px rgba(11, 11, 15, .95), 0 0 0 4px rgba(255, 255, 255, .55);
  transition: transform .2s;
}
.tab-add:active span { transform: scale(.93); }
.tab-add svg { width: 21px; height: 21px; }
[data-theme="dark"] .tab-add span { background: var(--mint); color: #0b0b0f; box-shadow: 0 16px 26px -14px rgba(0, 0, 0, .9), 0 0 0 4px rgba(255, 255, 255, .06); }

/* ================= 导入 / 规则 子页 ================= */
.sub-head { display: flex; align-items: center; gap: 12px; padding: 14px 2px 16px; }
.sub-head h1 { margin: 0; font-size: 17px; font-weight: 800; letter-spacing: -.03em; }
.sub-head .back {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--card); box-shadow: var(--shadow);
  border: 1px solid var(--card-line);
}
.sub-head .back svg { width: 17px; height: 17px; }

.seg-tabs { display: flex; gap: 18px; padding: 2px 2px 16px; }
.seg-tabs button {
  position: relative; padding: 5px 1px 9px;
  font-size: 13.5px; font-weight: 600; color: var(--muted);
}
.seg-tabs button.on { color: var(--ink); }
.seg-tabs button.on::after {
  content: ""; position: absolute; left: 50%; bottom: 0;
  width: 22px; height: 3px; margin-left: -11px;
  border-radius: 999px; background: var(--ink);
}
[data-theme="dark"] .seg-tabs button.on::after { background: var(--mint); }

.field-label { font-size: 12px; font-weight: 700; color: var(--ink-2); margin: 0 2px 8px; }

.guide-entry {
  display: flex; align-items: center; gap: 11px; width: 100%;
  padding: 12px 14px; margin-bottom: 12px; text-align: left;
  background: var(--card); border: 1px solid var(--card-line); border-radius: 18px;
  box-shadow: var(--shadow);
}
.guide-entry-ico { flex: none; width: 32px; height: 32px; border-radius: 11px; display: grid; place-items: center; background: var(--taro-soft); color: var(--taro-d); }
.guide-entry-ico svg { width: 17px; height: 17px; }
.guide-entry-txt { flex: 1; min-width: 0; }
.guide-entry-txt b { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink); }
.guide-entry-txt small { display: block; font-size: 10.5px; color: var(--muted); margin-top: 2px; }
.guide-entry > svg { width: 15px; height: 15px; color: var(--muted-2); flex: none; }

.guide-block { border: 1px solid var(--line-2); border-radius: 16px; padding: 13px 14px; margin-bottom: 10px; }
.guide-block.soft { background: var(--card-2); border-color: transparent; }
.guide-h { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; }
.guide-h b { font-size: 13px; font-weight: 700; color: var(--ink); }
.guide-tag { font-size: 10px; padding: 3px 8px; border-radius: 999px; font-weight: 700; background: var(--taro-soft); color: var(--taro-d); }
.guide-step { display: flex; align-items: flex-start; gap: 8px; font-size: 11.8px; line-height: 1.65; color: var(--ink-2); margin: 5px 0; }
.guide-num { flex: none; width: 17px; height: 17px; border-radius: 50%; background: var(--taro-soft); color: var(--taro-d); font-size: 10px; font-weight: 700; text-align: center; line-height: 17px; margin-top: 1px; }
.guide-dot { flex: none; width: 5px; height: 5px; border-radius: 50%; background: var(--taro); margin-top: 7px; }
.guide-hl { background: var(--taro-soft); color: var(--taro-d); padding: 1px 5px; border-radius: 5px; }
.guide-note { font-size: 10.8px; color: var(--muted); line-height: 1.6; margin-top: 9px; padding-top: 8px; border-top: 1px dashed var(--line-2); }

.drop-zone {
  border: 1.5px dashed var(--line-2);
  border-radius: 20px;
  background: var(--card-2);
  padding: 20px 14px;
  text-align: center;
  transition: border-color .18s, background .18s;
}
.drop-zone.over { border-color: var(--taro); background: var(--taro-soft); }
.drop-zone b { display: block; font-size: 13px; font-weight: 700; }
.drop-zone span { display: block; margin-top: 4px; font-size: 11px; color: var(--muted); }
.drop-zone .btn-line { margin-top: 12px; }

textarea.bill-input {
  width: 100%; min-height: 136px;
  border: 1px solid var(--card-line); outline: none; resize: vertical;
  background: var(--card);
  border-radius: 20px;
  padding: 15px;
  font-size: 12.5px; line-height: 1.6;
  box-shadow: var(--shadow);
}
textarea.bill-input::placeholder { color: var(--muted-2); }

.acts { display: flex; gap: 10px; margin-top: 12px; }
.acts .grow { flex: 1; }

.preview-meta { display: flex; align-items: center; justify-content: space-between; margin: 18px 2px 8px; }
.preview-meta b { font-size: 13.5px; font-weight: 800; letter-spacing: -.02em; }
.preview-meta span { font-size: 11px; color: var(--muted); }

.prow-list { margin-top: 2px; }
.prow {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.prow.dup { opacity: .45; }
.prow input[type="checkbox"] {
  margin-top: 3px; width: 17px; height: 17px; accent-color: var(--ink); flex: none;
}
.prow-body { flex: 1; min-width: 0; }
.prow-top { display: flex; align-items: baseline; gap: 8px; }
.prow-name { flex: 1; min-width: 0; font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prow-amt { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; flex: none; }
.prow-sub { display: flex; align-items: center; gap: 8px; margin-top: 5px; }
.prow-time { font-size: 10.5px; color: var(--muted-2); flex: none; }
.prow-sub select {
  flex: 1; min-width: 0; height: 28px; border-radius: 9px;
  border: 1px solid var(--line-2); background: var(--card-2);
  font-size: 11.5px; padding: 0 6px; color: var(--ink-2);
}
.conf { font-size: 10.5px; color: var(--muted-2); flex: none; }
.conf.hi { color: var(--green-d); }

.skipped { margin-top: 12px; font-size: 11px; color: var(--muted); }
.skipped li { margin-top: 3px; }

.rule-row { display: flex; align-items: center; gap: 10px; padding: 12px 0; }
.rule-row + .rule-row { border-top: 1px solid var(--line); }
.rule-kw { flex: 1; font-size: 13px; font-weight: 600; }
.rule-to { max-width: 62%; text-align: right; line-height: 1.42; font-size: 11.5px; color: var(--muted); }
.rule-to.meal { color: var(--taro-d); }
.rule-del { width: 30px; height: 30px; border-radius: 50%; background: var(--bg-soft); display: grid; place-items: center; color: var(--muted); }
.rule-del svg { width: 14px; height: 14px; }

.form-inline { display: flex; gap: 8px; margin-top: 12px; }
.form-inline input, .form-inline select {
  height: 42px; border-radius: 14px; border: 1px solid var(--line-2);
  background: var(--card); padding: 0 13px; font-size: 13px; outline: none;
}
.form-inline input { flex: 1; min-width: 0; }

/* ================= 弹层 ================= */
.sheet-mask {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(28, 18, 44, .42);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  display: flex; align-items: flex-end; justify-content: center;
  animation: fadeIn .18s ease;
}
.sheet {
  width: 100%; max-width: 430px;
  background: var(--card);
  border-radius: 30px 30px 0 0;
  padding: 8px 18px calc(20px + env(safe-area-inset-bottom));
  max-height: 84vh; overflow-y: auto;
  animation: sheetUp .26s cubic-bezier(.22, .8, .28, 1);
  box-shadow: 0 -30px 60px -30px rgba(28, 18, 44, .55);
}
.sheet-grip { width: 40px; height: 4px; border-radius: 999px; background: var(--line-2); margin: 8px auto 14px; }
.sheet h3 { margin: 0 0 4px; font-size: 17px; font-weight: 800; letter-spacing: -.03em; }
.sheet .desc { margin: 0 0 14px; font-size: 11.5px; color: var(--muted); }

@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }
@keyframes sheetUp { from { transform: translateY(24px); opacity: .6 } to { transform: none; opacity: 1 } }

.cat-picker { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 8px; }
/* ================= 分类明细弹层 ================= */
.cd-sheet { padding-bottom: 0; }
.cd-sheet .sheet-acts-sticky {
  margin: 4px -18px 0;
  padding: 10px 18px calc(12px + env(safe-area-inset-bottom));
}
.cd-head { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; }
.cd-head .tile-ico { width: 44px; height: 44px; border-radius: 15px; }
.cd-head .tile-ico svg { width: 22px; height: 22px; }
.cd-title { flex: 1; min-width: 0; }
.cd-title h3 { margin: 0; font-size: 17px; font-weight: 800; letter-spacing: -.03em; }
.cd-title .desc { margin: 3px 0 0; font-size: 11px; color: var(--muted); }
.cd-close {
  width: 34px; height: 34px; box-shadow: none;
  background: var(--card-2); border-color: transparent; color: var(--muted);
}
.cd-close svg { width: 15px; height: 15px; }

.cd-total {
  background: var(--green-grad); color: #fff;
  border-radius: 22px; padding: 16px 18px 15px;
  box-shadow: 0 20px 34px -24px rgba(11, 11, 15, .85);
}
.cd-total > span { font-size: 11px; font-weight: 600; letter-spacing: .04em; opacity: .62; }
.cd-total > b {
  display: block; margin-top: 5px;
  font-size: 27px; font-weight: 800; letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
}
.cd-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.cd-meta em {
  font-style: normal; font-size: 10.5px; font-weight: 600;
  padding: 3px 9px; border-radius: 999px;
  background: rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .94);
}
.cd-mom.up { background: rgba(240, 166, 218, .26); color: #ffd8ef; }
.cd-mom.down { background: rgba(126, 231, 199, .22); color: #c9ffee; }

.cd-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.cd-kpis > div { background: var(--card-2); border-radius: 16px; padding: 10px 12px; }
.cd-kpis span { font-size: 10px; color: var(--muted); font-weight: 600; }
.cd-kpis b {
  display: block; margin-top: 3px;
  font-size: 15px; font-weight: 800; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}

.cd-sec { display: flex; justify-content: space-between; align-items: baseline; margin: 18px 0 8px; }
.cd-sec b { font-size: 12.5px; font-weight: 800; letter-spacing: -.01em; }
.cd-sec span { font-size: 10.5px; color: var(--muted-2); }

.cd-chart { background: var(--card-2); border-radius: 16px; padding: 10px 12px 8px; }
.cd-chart svg { width: 100%; height: auto; display: block; }

.cd-mers { display: flex; flex-direction: column; gap: 11px; }
.cd-mer-top { display: flex; justify-content: space-between; gap: 10px; font-size: 11.5px; }
.cd-mer-top b {
  font-weight: 600; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cd-mer-top span { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cd-bar { margin-top: 6px; height: 6px; border-radius: 999px; background: rgba(163, 142, 205, .16); overflow: hidden; }
[data-theme="dark"] .cd-bar { background: rgba(195, 154, 236, .22); }
.cd-bar i { display: block; height: 100%; border-radius: 999px; }
.cd-sel {
  width: 100%; height: 34px; margin-top: 8px;
  border-radius: 11px; border: 1px solid var(--line-2);
  background: var(--card); color: var(--ink);
  font-size: 11.5px; padding: 0 9px; outline: none;
  font-family: inherit;
}

.cd-chans { display: flex; flex-wrap: wrap; gap: 7px; }
.cd-chans span {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 11px; border-radius: 999px;
  background: var(--card-2); font-size: 11px; color: var(--ink-2);
}
.cd-chans i { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.cd-chans em { font-style: normal; color: var(--muted); font-variant-numeric: tabular-nums; }

.cd-list { background: var(--card-2); border-radius: 16px; padding: 2px 12px; }
.cd-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; cursor: pointer; border-radius: 10px; }
.cd-row:active { background: rgba(163, 142, 205, .12); }
.cd-row + .cd-row { border-top: 1px solid var(--line); }
[data-theme="dark"] .cd-row + .cd-row { border-color: var(--line-2); }
.cd-date { width: 38px; flex: none; font-size: 10.5px; color: var(--muted-2); font-variant-numeric: tabular-nums; }
.cd-main { flex: 1; min-width: 0; }
.cd-main b {
  display: block; font-size: 12.5px; font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cd-main span {
  display: block; margin-top: 2px; font-size: 10px; color: var(--muted-2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cd-amt { font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cd-amt.inc { color: var(--green-d); }

.cd-note {
  display: flex; gap: 8px; margin-top: 12px;
  padding: 11px 12px; border-radius: 14px;
  background: var(--taro-soft); color: var(--taro-d);
  font-size: 10.8px; line-height: 1.62;
}
.cd-note svg { width: 15px; height: 15px; flex: none; margin-top: 1px; }

/* 用餐时段表 */
.meal-wins { display: flex; flex-direction: column; gap: 0; margin-top: 2px; }
.meal-win { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; font-size: 12px; }
.meal-win + .meal-win { border-top: 1px solid var(--line); }
.meal-win span { color: var(--ink-2); font-weight: 600; }
.meal-win b { color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }

/* ================= 提示 ================= */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--tab-h) + 36px + env(safe-area-inset-bottom));
  transform: translate(-50%, 12px);
  max-width: 320px;
  padding: 11px 17px;
  border-radius: 999px;
  background: rgba(11, 11, 15, .93);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #fff; font-size: 12.5px; font-weight: 500;
  opacity: 0; pointer-events: none;
  transition: opacity .22s, transform .22s;
  z-index: 100; text-align: center;
  box-shadow: 0 20px 36px -22px rgba(11, 11, 15, .9);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.warn { background: rgba(196, 74, 108, .96); }
[data-theme="dark"] .toast { background: rgba(246, 243, 251, .96); color: #0b0b0f; }

/* ================= 空状态 ================= */
.empty {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 32px 10px; text-align: center;
}
.empty .ring {
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--taro-soft); color: var(--taro-d);
  margin-bottom: 6px;
}
.empty .ring svg { width: 24px; height: 24px; }
.empty b { font-size: 13.5px; font-weight: 700; }
.empty span { font-size: 11.5px; color: var(--muted); }

.hint { font-size: 11.5px; color: var(--muted); }

.fade { animation: fadeUp .22s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px) } to { opacity: 1; transform: none } }

/* ================= 页头动作 / 首次引导 ================= */
.head-acts { display: flex; align-items: center; gap: 8px; }
.board-link { color: var(--taro-d); }
.board-link svg { width: 13px; height: 13px; opacity: 1; }

.first-run { padding: 24px 18px 20px; text-align: center; }
.first-run-ico {
  width: 58px; height: 58px; border-radius: 20px; margin: 0 auto 14px;
  display: grid; place-items: center;
  background: var(--green-grad); color: var(--mint);
  box-shadow: 0 20px 32px -20px rgba(11, 11, 15, .9);
}
.first-run-ico svg { width: 27px; height: 27px; }
.first-run h2 { margin: 0 0 7px; font-size: 17px; font-weight: 800; letter-spacing: -.03em; }
.first-run p { margin: 0 auto 16px; max-width: 300px; font-size: 12px; line-height: 1.75; color: var(--muted); }
.first-run-tips {
  display: flex; flex-direction: column; gap: 9px; text-align: left;
  background: var(--card-2); border-radius: 18px; padding: 14px 15px; margin-bottom: 16px;
}
.first-run-tips span { font-size: 11.5px; color: var(--ink-2); line-height: 1.55; }
.first-run-tips b { color: var(--taro-d); margin-right: 5px; }
.first-run .btn-primary { height: 46px; font-size: 14px; }
.first-run-link {
  display: inline-flex; align-items: center; gap: 3px;
  margin-top: 12px; font-size: 12px; color: var(--muted); font-weight: 600;
}
.first-run-link svg { width: 13px; height: 13px; }

/* ================= 可视化看板 ================= */
.pending-bar {
  display: flex; align-items: center; gap: 9px; width: 100%;
  padding: 12px 15px; margin-bottom: 12px; text-align: left;
  background: var(--amber-soft); border: 1px solid rgba(207, 143, 46, .22);
  border-radius: 16px; color: var(--ink-2); font-size: 12.5px;
}
.pending-bar > svg:first-child { width: 18px; height: 18px; color: var(--amber); flex: none; }
.pending-bar span { flex: 1; }
.pending-bar b { color: var(--amber); }
.pending-bar > svg.chev { width: 15px; height: 15px; color: var(--muted-2); }

.kpi-card { padding: 18px; }
.kpi-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding-bottom: 15px; border-bottom: 1px solid var(--line); }
.kpi-top > div:first-child span { display: block; font-size: 11px; color: var(--muted); font-weight: 600; letter-spacing: .03em; }
.kpi-top > div:first-child b { display: block; margin-top: 4px; font-size: 28px; font-weight: 800; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.kpi-mom { text-align: right; font-size: 11px; color: var(--muted); line-height: 1.9; }
.kpi-mom b { font-weight: 700; font-variant-numeric: tabular-nums; }
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 8px; padding-top: 15px; }
.kpi-grid > div { min-width: 0; }
.kpi-grid span { display: block; font-size: 10px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi-grid b { display: block; margin-top: 3px; font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.chart-legend { display: flex; gap: 16px; margin: 2px 0 10px; }
.chart-legend span { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: var(--muted); }
.chart-legend i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }

.board-preview { display: flex; flex-direction: column; gap: 13px; padding-top: 8px; }
.board-preview > div { display: flex; align-items: center; gap: 12px; }
.bp-ico {
  width: 38px; height: 38px; border-radius: 13px; flex: none;
  display: grid; place-items: center; background: var(--taro-soft); color: var(--taro-d);
}
.bp-ico svg { width: 18px; height: 18px; }
.board-preview b { display: block; font-size: 12.5px; }
.board-preview small { display: block; font-size: 10.5px; color: var(--muted); margin-top: 1px; }

.rank-num {
  width: 21px; height: 21px; border-radius: 8px; flex: none;
  display: grid; place-items: center; font-size: 10.5px; font-weight: 700;
  background: var(--bg-soft); color: var(--muted);
}
.channel-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; }
.channel-row + .channel-row { border-top: 1px solid var(--line); }
.channel-row > span { width: 60px; flex: none; font-size: 12px; color: var(--ink-2); }
.channel-bar { flex: 1; height: 7px; border-radius: 999px; background: var(--bg-soft); overflow: hidden; }
.channel-bar i { display: block; height: 100%; border-radius: 999px; }
.channel-row > b { width: 76px; text-align: right; font-size: 11.5px; font-variant-numeric: tabular-nums; flex: none; }

/* ================= 导入预览：状态 / 统计 / 分页 ================= */
.import-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 10px 0 12px; }
.istat { text-align: center; background: var(--card-2); border-radius: 14px; padding: 9px 2px; }
.istat b { display: block; font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.istat span { display: block; margin-top: 1px; font-size: 9.5px; color: var(--muted); }
.istat.success b { color: var(--green-d); }
.istat.duplicate b { color: var(--muted); }
.istat.skipped b { color: var(--muted); }
.istat.failed b { color: var(--coral); }
.istat.pending b { color: var(--amber); }
.istat.linked b { color: var(--blue); }

/* 未分类批量归类入口 */
.bulk-cat {
  display: flex; align-items: center; gap: 9px; width: 100%; text-align: left;
  padding: 11px 13px; margin-bottom: 10px; border-radius: 15px;
  background: var(--amber-soft); color: var(--ink-2);
}
.bulk-cat > svg { width: 17px; height: 17px; flex: none; color: var(--amber); }
.bulk-cat > span { flex: 1; min-width: 0; display: block; }
.bulk-cat b { display: block; font-size: 12.5px; font-weight: 700; }
.bulk-cat small { display: block; margin-top: 2px; font-size: 10.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bulk-cat em { font-style: normal; font-size: 11.5px; font-weight: 700; color: var(--amber); flex: none; }

.bulk-mers { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 14px; }
.bulk-mer {
  font-size: 11px; color: var(--ink-2); background: var(--card-2);
  border-radius: 8px; padding: 4px 9px; max-width: 100%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* 账单页：本月未分类提示 */
.uncat-bar {
  display: flex; align-items: center; gap: 9px; width: 100%; text-align: left;
  padding: 11px 14px; margin-bottom: 12px; border-radius: 15px;
  background: var(--amber-soft); color: var(--ink-2); font-size: 12px;
}
.uncat-bar > svg { width: 16px; height: 16px; flex: none; color: var(--amber); }
.uncat-bar span { flex: 1; }
.uncat-bar b { color: var(--amber); }
.uncat-bar em { font-style: normal; font-weight: 700; font-size: 11.5px; color: var(--amber); }

/* 「仍要计入」：把跳过项转成账目 */
.mini-act {
  flex: none; height: 24px; padding: 0 10px; border-radius: 999px;
  background: var(--green-soft); color: var(--green-d);
  font-size: 10.5px; font-weight: 700;
}

.last-import {
  display: flex; align-items: center; gap: 9px; width: 100%;
  padding: 11px 14px; margin-bottom: 12px; text-align: left;
  background: var(--green-soft); border-radius: 15px; color: var(--green-d); font-size: 11.5px;
}
.last-import.static { color: var(--muted); background: var(--card-2); }
.last-import > svg:first-child { width: 16px; height: 16px; flex: none; }
.last-import span { flex: 1; }
.last-import > svg.chev { width: 14px; height: 14px; }

.bank-note {
  display: flex; align-items: flex-start; gap: 9px;
  padding: 12px 14px; margin-bottom: 12px;
  background: var(--violet-soft); border-radius: 15px;
  font-size: 11.5px; line-height: 1.65; color: var(--ink-2);
}
.bank-note > svg { width: 17px; height: 17px; flex: none; color: var(--violet); margin-top: 1px; }
.bank-note b { color: var(--violet); }

.prow.p-duplicate { opacity: .6; }
.prow.p-failed { opacity: .78; }
.prow.p-linked, .prow.p-pending { opacity: .92; }
.prow-nocheck { width: 17px; height: 17px; flex: none; margin-top: 3px; border-radius: 5px; background: var(--bg-soft); }
.prow-cat { flex: 1; min-width: 0; font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stag {
  display: inline-block; margin-left: 5px; font-size: 9.5px; font-style: normal;
  border-radius: 6px; padding: 1px 5px; vertical-align: 1px; font-weight: 600;
}
.stag-success { background: var(--green-soft); color: var(--green-d); }
.stag-duplicate { background: var(--bg-soft); color: var(--muted); }
.stag-skipped { background: var(--bg-soft); color: var(--muted); }
.stag-failed { background: var(--coral-soft); color: var(--coral); }
.stag-pending { background: var(--amber-soft); color: var(--amber); }
.stag-linked { background: var(--blue-soft); color: var(--blue); }
.prow.p-skipped { opacity: .82; }
.prow-sub select.need-cat { color: var(--amber); border-color: rgba(207, 143, 46, .42); }
.conf.need {
  color: var(--amber); background: var(--amber-soft);
  border-radius: 6px; padding: 1px 6px; font-weight: 700;
}
.prow-reason {
  margin-top: 5px; font-size: 10.5px; color: var(--muted); line-height: 1.5;
  white-space: normal; word-break: break-all;
}
.prow-reason.bad { color: var(--coral); }

.pager { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 0 2px; }
.pager button {
  height: 31px; padding: 0 13px; border-radius: 999px;
  border: 1px solid var(--line-2); font-size: 11.5px; color: var(--ink-2); font-weight: 600;
}
.pager button:disabled { opacity: .35; }
.pager span { font-size: 11px; color: var(--muted); }

/* ================= 导入结果 ================= */
.res-summary { padding: 18px; }
.res-headline { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.res-headline b { font-size: 14px; font-weight: 800; letter-spacing: -.02em; }
.res-headline span { font-size: 10.5px; color: var(--muted); }
.res-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 14px; }
.res-stat { text-align: center; background: var(--card-2); border-radius: 14px; padding: 11px 2px; }
.res-stat b { display: block; font-size: 19px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.res-stat span { display: block; margin-top: 2px; font-size: 9.5px; color: var(--muted); }
.res-stat.ok b { color: var(--green-d); }
.res-stat.dup b { color: var(--muted); }
.res-stat.skip b { color: var(--muted); }
.res-stat.bad b { color: var(--coral); }
.res-stat.wait b { color: var(--amber); }
.res-stat.link b { color: var(--blue); }

.res-warn {
  display: flex; align-items: flex-start; gap: 7px; margin-top: 10px;
  padding: 9px 11px; border-radius: 12px; background: var(--amber-soft);
  font-size: 10.5px; line-height: 1.55; color: var(--amber);
}
.res-warn svg { width: 14px; height: 14px; flex: none; margin-top: 1px; }

.res-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; padding: 16px 2px 0; }
.res-tab {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px; height: 31px; padding: 0 6px;
  border-radius: 999px; background: var(--card); box-shadow: var(--shadow);
  border: 1px solid var(--card-line);
  font-size: 11.5px; font-weight: 600; color: var(--muted); white-space: nowrap;
}
.res-tab i { font-style: normal; font-size: 10px; opacity: .8; }
.res-tab.on { background: var(--ink); color: #fff; border-color: transparent; }
[data-theme="dark"] .res-tab.on { background: var(--mint); color: #0b0b0f; }

.res-row { display: flex; align-items: flex-start; gap: 10px; padding: 11px 0; }
.res-row + .res-row { border-top: 1px solid var(--line); }
.res-dir {
  width: 23px; height: 23px; border-radius: 8px; flex: none; margin-top: 1px;
  display: grid; place-items: center; font-size: 11px; font-weight: 700;
}
.res-dir.inc { background: var(--green-soft); color: var(--green-d); }
.res-dir.exp { background: var(--bg-soft); color: var(--ink-2); }
.res-main { flex: 1; min-width: 0; }
.res-main b { display: block; font-size: 12.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.res-main > span { display: block; margin-top: 2px; font-size: 10.5px; color: var(--muted-2); }
.res-reason { display: block; margin-top: 3px !important; font-size: 10.5px !important; color: var(--amber) !important; line-height: 1.4; word-break: break-all; white-space: normal; }
.res-reason.link { color: var(--blue) !important; }
.res-amt { font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; flex: none; }

/* ================= 待确认 ================= */
.pend-row { padding: 14px 0; }
.pend-row + .pend-row { border-top: 1px solid var(--line); }
.pend-top { display: flex; align-items: center; gap: 9px; }
.pend-top b { flex: 1; min-width: 0; font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pend-amt { font-size: 13.5px; font-weight: 700; font-variant-numeric: tabular-nums; flex: none; }
.pend-sub { margin-top: 4px; font-size: 10.5px; color: var(--muted-2); }
.pend-reason {
  display: flex; align-items: flex-start; gap: 5px; margin-top: 8px;
  font-size: 10.5px; color: var(--amber); line-height: 1.5;
}
.pend-reason svg { width: 13px; height: 13px; flex: none; margin-top: 1px; }
.pend-acts { display: flex; gap: 8px; margin-top: 11px; }
.pend-acts .btn-line { height: 36px; padding: 0 14px; font-size: 12px; flex: 1; }
.pend-acts .btn-primary { height: 36px; font-size: 12px; flex: 1.4; }

/* ================= 文件识别：识别卡 / 详情 / 支持清单 ================= */
.intake-card { margin-top: 12px; padding: 16px; }
.intake-head { display: flex; align-items: center; justify-content: space-between; }
.intake-title { display: inline-flex; align-items: center; gap: 6px; }
.intake-title svg { width: 16px; height: 16px; color: var(--taro-d); }
.intake-title b { font-size: 13px; font-weight: 800; letter-spacing: -.02em; }
.intake-help { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; color: var(--muted); }
.intake-help svg { width: 15px; height: 15px; }

.intake-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 11px; }
.intake-badge { font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 999px; }
.intake-badge.ok { background: var(--green-soft); color: var(--green-d); }
.intake-badge.unknown { background: var(--amber-soft); color: var(--amber); }
.intake-conf { font-size: 10.5px; font-weight: 700; padding: 4px 9px; border-radius: 999px; background: var(--card-2); }
.intake-conf.hi { color: var(--green-d); }
.intake-conf.mid { color: var(--amber); }
.intake-conf.lo { color: var(--coral); }

.intake-files { display: flex; align-items: center; gap: 6px; margin-top: 9px; font-size: 11px; color: var(--muted); min-width: 0; }
.intake-files svg { width: 13px; height: 13px; flex: none; }
.intake-files span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.intake-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; margin-top: 12px; }
.ikv { background: var(--card-2); border-radius: 12px; padding: 8px 10px; min-width: 0; }
.ikv span { display: block; font-size: 10px; color: var(--muted); }
.ikv b { display: block; margin-top: 2px; font-size: 11.8px; font-weight: 700; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.intake-miss { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-top: 10px; }
.intake-miss > span { font-size: 10.5px; color: var(--muted); margin-right: 2px; }
.intake-miss em { font-style: normal; font-size: 10.5px; padding: 3px 8px; border-radius: 7px; background: var(--amber-soft); color: var(--amber); }

.intake-diag { margin-top: 10px; display: flex; flex-direction: column; gap: 7px; }
.idiag { display: flex; align-items: flex-start; gap: 8px; padding: 10px 11px; border-radius: 12px; background: var(--card-2); }
.idiag > svg { width: 14px; height: 14px; flex: none; margin-top: 1px; color: var(--muted); }
.idiag.error { background: var(--coral-soft); }
.idiag.error > svg { color: var(--coral); }
.idiag.warn { background: var(--amber-soft); }
.idiag.warn > svg { color: var(--amber); }
.idiag.info > svg { color: var(--green-d); }
.idiag > span { flex: 1; min-width: 0; }
.idiag b { display: block; font-size: 11.8px; font-weight: 700; line-height: 1.4; }
.idiag small { display: block; margin-top: 2px; font-size: 10.5px; color: var(--muted); line-height: 1.5; }
.idiag i { display: block; margin-top: 3px; font-style: normal; font-size: 10.5px; color: var(--ink-2); line-height: 1.5; }
.intake-more { display: inline-flex; align-items: center; gap: 3px; align-self: flex-start; font-size: 11px; font-weight: 600; color: var(--taro-d); padding: 2px 0; }
.intake-more svg { width: 12px; height: 12px; }

.intake-actions { display: flex; gap: 7px; margin-top: 12px; flex-wrap: wrap; }
.intake-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  flex: 1; min-width: 84px; height: 35px; border-radius: 999px;
  border: 1px solid var(--line-2); font-size: 11.5px; font-weight: 600; color: var(--ink-2);
  background: var(--card);
}
.intake-btn svg { width: 13px; height: 13px; color: var(--taro-d); }
.intake-btn:active { background: var(--taro-soft); }

/* 识别详情弹层 */
.intake-block { border: 1px solid var(--line-2); border-radius: 16px; padding: 12px 13px; margin-bottom: 10px; }
.intake-block-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 9px; }
.intake-block-h b { font-size: 12.5px; font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.intake-block-h span { flex: none; font-size: 10.5px; font-weight: 700; color: var(--green-d); background: var(--green-soft); padding: 3px 8px; border-radius: 999px; }
.intake-block .intake-grid { margin-top: 0; }
.intake-sec-h { font-size: 11px; font-weight: 700; color: var(--muted); margin: 12px 0 6px; letter-spacing: .04em; }
.imap { display: flex; flex-direction: column; gap: 3px; }
.imap-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 9px; border-radius: 8px; background: var(--card-2); }
.imap-row span { font-size: 11px; color: var(--muted-2); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.imap-row em { font-style: normal; font-size: 10.5px; font-weight: 600; color: var(--muted-2); flex: none; }
.imap-row.hit { background: var(--green-soft); }
.imap-row.hit span { color: var(--ink-2); }
.imap-row.hit em { color: var(--green-d); }
.intake-ev { margin: 0; padding-left: 17px; }
.intake-ev li { font-size: 10.8px; color: var(--ink-2); line-height: 1.65; }

/* 弹层底部操作区吸底：识别详情内容较长时按钮始终可见 */
.sheet-acts-sticky {
  position: sticky; bottom: 0; z-index: 2;
  background: var(--card);
  padding: 10px 0 2px;
  align-items: center;
  box-shadow: 0 -12px 18px -16px rgba(52, 38, 92, .45);
}
.sheet-acts-sticky .btn-line,
.sheet-acts-sticky .btn-primary {
  height: 42px; font-size: 13px; white-space: nowrap;
}
.sheet-acts-sticky .btn-line { flex: 1 1 auto; min-width: 0; padding: 0 12px; }
.sheet-acts-sticky .btn-primary { flex: 0 0 auto; width: auto; min-width: 96px; padding: 0 22px; }

/* 支持清单 */
.isup { display: flex; flex-direction: column; gap: 5px; }
.isup-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 11px; border-radius: 10px; background: var(--card-2); }
.isup-row b { font-size: 11.5px; font-weight: 600; }
.isup-row span { font-size: 10.5px; color: var(--muted); }
.ifields { display: flex; flex-direction: column; gap: 7px; }
.ifield { border: 1px solid var(--line-2); border-radius: 12px; padding: 9px 11px; }
.ifield-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ifield-h b { font-size: 11.8px; font-weight: 700; }
.ifield-h span { font-size: 10px; font-weight: 600; padding: 2px 7px; border-radius: 999px; }
.ifield-h span.req { background: var(--green-soft); color: var(--green-d); }
.ifield-h span.opt { background: var(--card-2); color: var(--muted); }
.ifield-a { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.ifield-a em { font-style: normal; font-size: 10px; color: var(--ink-2); background: var(--card-2); border-radius: 6px; padding: 2px 6px; }

/* ================= 深色模式的局部修正 ================= */
/* 马卡龙色块在暗底会发灰：用 --tint 与底色混合，图标反相提亮 */
[data-theme="dark"] .tile-ico,
[data-theme="dark"] .cat-tile:not(.on) .box {
  background: color-mix(in srgb, var(--tint, #c3a2ee) 26%, transparent) !important;
  color: color-mix(in srgb, var(--tint, #c3a2ee) 64%, #ffffff) !important;
}
[data-theme="dark"] .hero {
  background: linear-gradient(135deg, #33333f 0%, #1b1b24 72%);
  box-shadow: 0 30px 48px -26px #000, inset 0 1px 0 rgba(255, 255, 255, .08);
}
[data-theme="dark"] .q-pink { background: rgba(240, 166, 218, .15); color: #f7bce6; }
[data-theme="dark"] .q-mint { background: rgba(126, 231, 199, .15); color: #8ff0d0; }
[data-theme="dark"] .q-lilac { background: rgba(195, 154, 236, .18); color: #d8bcf7; }
/* 中间 + 用香芋紫，避免和薄荷色的选中导航撞色 */
[data-theme="dark"] .tab-add span {
  background: linear-gradient(135deg, #d3b0f4, #b98cea);
  color: #1a1226;
}
[data-theme="dark"] .rank-bar { background: rgba(195, 154, 236, .22); }

/* ================= 桌面预览微交互 ================= */
@media (hover: hover) {
  .card { transition: transform .24s cubic-bezier(.22, .9, .28, 1), box-shadow .24s; }
  .hero:hover { transform: translateY(-2px); }
  .list-row:hover .list-main b, .txn-row:hover .list-main b { color: var(--taro-d); }
  .menu-row:hover .menu-txt, .quick-item:hover b { color: var(--taro-d); }
  .quick-item:hover .quick-ico { transform: translateY(-2px); }
  .intake-btn:hover, .chip:hover, .pill:hover { border-color: var(--taro); }
}

/* ================= v5 · 支付渠道 / 资金来源 / 真实支出 ================= */

/* 列表行内的现金流向小标签 */
.flow-tag {
  display: inline-block; margin-left: 5px; padding: 1px 6px;
  border-radius: 6px; font-style: normal; font-size: 9.5px; font-weight: 700;
  line-height: 1.5; vertical-align: 1px; white-space: nowrap;
}
.flow-tag.deferred { background: var(--amber-soft); color: var(--amber); }
.flow-tag.settle { background: var(--green-soft); color: var(--green-d); }
/* 退款对冲：与转账同属「不计收支」，但用青色区分「已核销」语义 */
.flow-tag.refund { background: var(--mint-soft, var(--blue-soft)); color: var(--mint-d, var(--blue)); }
[data-theme="dark"] .flow-tag.refund { background: rgba(126, 231, 199, .16); color: #7ee7c7; }

/* 首页「本月待还款」入口 */
.credit-mini {
  display: flex; align-items: center; gap: 11px; width: 100%;
  margin: 12px 0 4px; padding: 13px 14px; text-align: left;
  border-radius: 18px; border: 1px solid var(--card-line);
  background: var(--card); color: var(--ink);
  box-shadow: var(--shadow);
}
.credit-mini > svg:first-child { width: 20px; height: 20px; flex: none; color: var(--amber); }
.credit-mini > span { flex: 1; min-width: 0; }
.credit-mini b { display: block; font-size: 13px; font-weight: 800; letter-spacing: -.01em; }
.credit-mini small { display: block; margin-top: 3px; font-size: 10.5px; color: var(--muted); line-height: 1.5; }
.credit-mini .chev { width: 15px; height: 15px; flex: none; color: var(--muted-2); }

/* 账单页「真实支出」提示条 */
.credit-strip {
  display: flex; align-items: center; gap: 6px 9px; flex-wrap: wrap;
  width: 100%; margin: 10px 0 0; padding: 10px 13px; text-align: left;
  border-radius: 14px; border: 1px solid rgba(207, 143, 46, .28);
  background: var(--amber-soft); color: var(--amber);
  font-size: 11px; font-weight: 600;
}
.credit-strip > svg:first-child { width: 16px; height: 16px; flex: none; }
.credit-strip span { white-space: nowrap; }
.credit-strip b { font-weight: 800; font-variant-numeric: tabular-nums; }
.credit-strip .chev { width: 14px; height: 14px; flex: none; margin-left: auto; opacity: .6; }
[data-theme="dark"] .credit-strip { border-color: rgba(232, 181, 112, .3); }

/* 记一笔：渠道 / 资金来源选择 */
.pick-hint {
  margin-left: 5px; font-size: 10.5px; font-weight: 500;
  color: var(--muted-2); letter-spacing: 0;
}
.ch-picks { display: flex; flex-wrap: wrap; gap: 8px; }
.ch-pick {
  display: inline-flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 12px; border-radius: 999px;
  background: var(--card); color: var(--ink-2);
  border: 1px solid var(--line-2); font-size: 12px; font-weight: 600;
  box-shadow: var(--shadow);
}
.ch-pick i { width: 8px; height: 8px; border-radius: 50%; background: var(--ch); flex: none; }
.ch-pick.credit:not(.on) { border-color: rgba(207, 143, 46, .42); }
.ch-pick.on { background: var(--ink); color: var(--bg); border-color: transparent; }
[data-theme="dark"] .ch-pick.on { background: var(--mint); color: #0b0b0f; }
.ch-pick.on i { box-shadow: 0 0 0 2px rgba(255, 255, 255, .5); }

.fund-select {
  width: 100%; height: 44px; border-radius: 14px;
  border: 1px solid var(--line-2); background: var(--card);
  color: var(--ink); font-size: 13px; font-weight: 600;
  padding: 0 12px; outline: none; font-family: inherit;
  box-shadow: var(--shadow);
}
.fund-note {
  display: flex; align-items: flex-start; gap: 8px;
  margin-top: 10px; padding: 10px 12px; border-radius: 14px;
  background: var(--green-soft); color: var(--green-d);
  font-size: 11px; line-height: 1.62;
}
.fund-note svg { width: 15px; height: 15px; flex: none; margin-top: 1px; }
.fund-note b { font-weight: 800; }
.fund-note.warn { background: var(--amber-soft); color: var(--amber); }

/* 信用与还款：三概念说明卡 */
.credit-concept { padding-bottom: 14px; }
.cc-row {
  display: flex; align-items: baseline; gap: 10px;
  padding: 8px 0; font-size: 11.5px; line-height: 1.6;
}
.cc-row + .cc-row { border-top: 1px solid var(--line); }
.cc-row em {
  font-style: normal; flex: none; width: 88px;
  font-size: 11px; font-weight: 800; color: var(--ink);
}
.cc-row span { flex: 1; min-width: 0; color: var(--muted); }
.cc-highlight {
  display: flex; align-items: flex-start; gap: 8px;
  margin-top: 10px; padding: 11px 12px; border-radius: 14px;
  background: var(--taro-soft); color: var(--taro-d);
  font-size: 11px; line-height: 1.66;
}
.cc-highlight svg { width: 15px; height: 15px; flex: none; margin-top: 1px; }
.cc-highlight b { font-weight: 800; }
.cc-flow { display: flex; gap: 6px; margin-top: 10px; }
.ccf {
  flex: 1; min-width: 0; text-align: center; padding: 8px 4px;
  border-radius: 12px; font-size: 10px; font-weight: 700; line-height: 1.45;
  background: var(--card-2); color: var(--muted);
}
.ccf b { display: block; margin-top: 2px; font-size: 10px; font-weight: 800; }
.ccf.out { background: var(--green-soft); color: var(--green-d); }
.ccf.deferred { background: var(--amber-soft); color: var(--amber); }
.ccf.settle { background: var(--blue-soft); color: var(--blue); }

/* 信用与还款：本月汇总 */
.credit-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.credit-summary > div { background: var(--card-2); border-radius: 16px; padding: 13px 14px; }
.credit-summary span { font-size: 10.5px; color: var(--muted); font-weight: 600; }
.credit-summary b {
  display: block; margin-top: 5px; font-size: 20px; font-weight: 800;
  letter-spacing: -.03em; font-variant-numeric: tabular-nums;
}
.credit-summary b.inc { color: var(--green-d); }
.credit-summary em {
  display: block; margin-top: 4px; font-style: normal;
  font-size: 10px; color: var(--muted-2); line-height: 1.5;
}

/* 还款日设置 */
.repay-days { display: flex; flex-direction: column; margin-top: 4px; }
.repay-day {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 0;
}
.repay-day + .repay-day { border-top: 1px solid var(--line); }
.repay-day > span {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 600; color: var(--ink-2);
}
.repay-day > span i { width: 9px; height: 9px; border-radius: 50%; background: var(--ch); flex: none; }
.repay-day > div { display: flex; align-items: center; gap: 6px; flex: none; }
.repay-day input {
  width: 56px; height: 34px; border-radius: 10px;
  border: 1px solid var(--line-2); background: var(--card-2);
  color: var(--ink); font-size: 13px; font-weight: 700;
  text-align: center; outline: none; font-variant-numeric: tabular-nums;
}
.repay-day em { font-style: normal; font-size: 10.5px; color: var(--muted-2); }

/* 还款批次卡片 */
.cb-card { padding-bottom: 14px; }
.cb-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cb-tool {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 800; color: var(--ink);
}
.cb-tool i { width: 9px; height: 9px; border-radius: 50%; background: var(--ch); flex: none; }
.cb-status {
  flex: none; font-size: 10px; font-weight: 700;
  padding: 4px 9px; border-radius: 999px;
  background: var(--card-2); color: var(--muted); white-space: nowrap;
}
.cb-status.due { background: var(--amber-soft); color: var(--amber); }
.cb-status.settled { background: var(--green-soft); color: var(--green-d); }
.cb-title { display: flex; align-items: baseline; gap: 9px; margin-top: 12px; flex-wrap: wrap; }
.cb-title b { font-size: 24px; font-weight: 800; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.cb-title span { font-size: 11px; color: var(--muted); }
.cb-meta {
  display: flex; align-items: center; gap: 6px; margin-top: 6px;
  font-size: 10.5px; color: var(--muted-2);
}
.cb-meta svg { width: 13px; height: 13px; flex: none; }
.cb-detail { margin-top: 10px; border-radius: 12px; background: var(--card-2); padding: 8px 12px; }
.cb-detail summary {
  cursor: pointer; font-size: 11px; font-weight: 700; color: var(--taro-d);
  list-style: none; outline: none;
}
.cb-detail summary::-webkit-details-marker { display: none; }
.cb-detail summary::before { content: "\25B8  "; }
.cb-detail[open] summary::before { content: "\25BE  "; }
.cb-row { display: flex; align-items: center; gap: 8px; padding: 7px 0; font-size: 10.5px; }
.cb-row + .cb-row { border-top: 1px solid var(--line); }
.cb-row > span:first-child { color: var(--muted-2); flex: none; font-variant-numeric: tabular-nums; }
.cb-row b {
  flex: 1; min-width: 0; font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cb-row em {
  font-style: normal; color: var(--muted); flex: none;
  max-width: 38%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cb-amt { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* 分类明细：待还款消费清单 */
.cd-defs { background: var(--card-2); border-radius: 16px; padding: 2px 12px; }
.cd-def { display: flex; align-items: center; gap: 8px; padding: 9px 0; font-size: 10.5px; }
.cd-def + .cd-def { border-top: 1px solid var(--line); }
.cd-def > span:first-child { color: var(--muted-2); flex: none; font-variant-numeric: tabular-nums; }
.cd-def b {
  flex: 1; min-width: 0; font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cd-def em {
  font-style: normal; color: var(--amber); flex: none;
  max-width: 40%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cd-def > span:last-child { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* 导入预览：渠道 / 资金来源 / 现金流向 */
.prow-fund { display: flex; align-items: center; gap: 6px; margin-top: 7px; flex-wrap: wrap; }
.prow-fund select {
  flex: 1 1 40%; min-width: 0; height: 28px; border-radius: 9px;
  border: 1px solid var(--line-2); background: var(--card-2);
  font-size: 11px; padding: 0 6px; color: var(--ink-2); font-family: inherit;
}
.prow-fund.static { justify-content: space-between; }
.prow-fund.static > span { font-size: 10.5px; color: var(--muted-2); }
.pf-flow {
  flex: none; font-size: 10px; font-weight: 700;
  padding: 3px 8px; border-radius: 999px;
  background: var(--card-2); color: var(--muted);
}
.pf-flow.deferred { background: var(--amber-soft); color: var(--amber); }
.pf-flow.settle { background: var(--green-soft); color: var(--green-d); }
.prow-fund-note {
  margin-top: 6px; padding: 6px 9px; border-radius: 9px;
  background: var(--amber-soft); color: var(--amber);
  font-size: 10px; line-height: 1.6;
}

@media (hover: hover) {
  .credit-mini, .credit-strip, .ch-pick { transition: transform .2s, border-color .2s; }
  .credit-mini:hover, .credit-strip:hover { transform: translateY(-2px); }
  .ch-pick:hover { border-color: var(--taro); }
}

/* ==================================================================
   v6：账户 / 账本 / 预算 / 资产负债 / 周期 / 报表
   ================================================================== */

/* 首页账本切换条 */
.home-bookbar { display: flex; align-items: center; gap: 8px; margin: -6px 2px 12px; }
.book-pill, .hb-act {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px;
  border-radius: 999px; border: 1px solid var(--line-2); background: var(--card);
  color: var(--ink-2); font-size: 11.5px; font-weight: 700; box-shadow: var(--shadow);
}
.book-pill svg, .hb-act svg { width: 14px; height: 14px; flex: none; }
.book-pill .chev { width: 12px; height: 12px; color: var(--muted-2); }
.hb-act { color: var(--muted); font-weight: 600; box-shadow: none; }

/* 总资产小卡 */
.asset-mini {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  padding: 14px 15px; margin-top: 12px; border-radius: var(--r-card);
  border: 1px solid var(--card-line); background: var(--card); box-shadow: var(--shadow);
}
.am-ico {
  width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; flex: none;
  background: var(--taro-soft); color: var(--taro-d);
}
.am-ico svg { width: 19px; height: 19px; }
.am-main { flex: 1; min-width: 0; }
.am-main small { display: block; font-size: 10.5px; color: var(--muted); }
.am-main b { display: block; margin-top: 3px; font-size: 20px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.am-side { text-align: right; font-size: 10.8px; color: var(--muted); white-space: nowrap; }
.am-side small { display: block; margin-top: 3px; }
.asset-mini > svg.chev { width: 15px; height: 15px; color: var(--muted-2); flex: none; }

/* 收支趋势折线 */
.trend-card { margin-top: 12px; padding: 16px 15px 12px; }
.tc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.tc-head .hint { margin-top: 3px; }
.period-tabs { display: flex; gap: 3px; padding: 3px; border-radius: 999px; background: var(--card-2); flex: none; }
.period-tabs button { min-width: 30px; height: 27px; padding: 0 7px; border-radius: 999px; font-size: 11px; font-weight: 700; color: var(--muted); }
.period-tabs button.on { background: var(--ink); color: var(--bg); }
[data-theme="dark"] .period-tabs button.on { background: var(--mint); color: #0b0b0f; }
.trend-card > svg { display: block; width: 100%; height: auto; }
.trend-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 8px; font-size: 11px; color: var(--muted); }
.trend-legend span { display: inline-flex; align-items: center; gap: 5px; }
.trend-legend .dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.trend-legend .dot.inc { background: var(--chart-inc); }
.trend-legend .dot.exp { background: var(--chart-exp); }
.tl-bal { margin-left: auto; font-weight: 600; }
.tl-bal b { color: var(--ink); font-variant-numeric: tabular-nums; }

/* 通用进度条 / 预算提醒 */
.pb-track { margin-top: 10px; height: 8px; border-radius: 999px; background: var(--bg-soft); overflow: hidden; }
.pb-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, #b98cea, #f0a6da 55%, #7ee7c7); }
.pb-fill.near { background: linear-gradient(90deg, #e0b56a, #cf8f2e); }
.pb-fill.over { background: linear-gradient(90deg, #ee93a9, #d95d80); }
.pb-fill.done { background: linear-gradient(90deg, #2fc59b, #8ceccb); }
.pb-track.goal { margin-top: 8px; }
.goal-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--muted); }
.goal-row span { display: inline-flex; align-items: center; gap: 6px; }
.goal-row svg { width: 14px; height: 14px; }
.goal-row b { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.budget-alerts { margin-top: 12px; display: flex; flex-direction: column; gap: 7px; }
.budget-alert { display: flex; align-items: flex-start; gap: 8px; padding: 9px 11px; border-radius: 13px; font-size: 11.5px; font-weight: 600; }
.budget-alert svg { width: 14px; height: 14px; flex: none; margin-top: 1px; }
.budget-alert.over { background: var(--coral-soft); color: var(--coral); }
.budget-alert.near { background: var(--amber-soft); color: var(--amber); }
[data-theme="dark"] .budget-alert.over { color: #ff9db0; }
[data-theme="dark"] .budget-alert.near { color: #e8bd76; }

/* 转账行 / 凭证 */
.cat-av { width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; flex: none; }
.cat-av svg { width: 19px; height: 19px; }
.tr-av { background: var(--blue-soft); color: var(--blue); }
.list-amt.tr { color: var(--blue); }
.flow-tag.transfer { background: var(--blue-soft); color: var(--blue); }
.voucher-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--mint); margin-left: 6px; vertical-align: middle; }
.voucher-thumb { width: 34px; height: 34px; border-radius: 10px; object-fit: cover; flex: none; border: 1px solid var(--line-2); background: var(--card-2); }
.voucher-thumb.missing { opacity: .4; }
.voucher-thumb.loaded { animation: voucherFade .28s ease both; }
@keyframes voucherFade { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
.voucher-thumb.big { width: 56px; height: 56px; border-radius: 14px; }
.voucher-row { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.voucher-add { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px dashed var(--line-2); background: var(--card-2); color: var(--muted); font-size: 12px; font-weight: 600; }
.voucher-add svg { width: 15px; height: 15px; }
.v-name { font-size: 11px; color: var(--muted); max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btn-line.tiny { height: 30px; padding: 0 11px; font-size: 11px; }
.voucher-full { display: block; width: 100%; max-height: 56vh; object-fit: contain; border-radius: 16px; background: var(--card-2); margin: 6px 0 12px; }
.seg.tri button { font-size: 12.5px; }

/* 资产总览大卡 */
.asset-hero-card { padding: 18px 16px; border-radius: var(--r-card); background: var(--green-grad); color: #fff; box-shadow: var(--shadow-lg); }
.ahc-label { font-size: 11px; opacity: .7; letter-spacing: .04em; }
.ahc-big { margin-top: 6px; font-size: 30px; font-weight: 800; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.ahc-split { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.ahc-split div { min-width: 0; }
.ahc-split span { display: block; font-size: 10px; opacity: .65; }
.ahc-split b { display: block; margin-top: 3px; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ahc-split b.exp { color: #ffc9d4; }
.ahc-net { display: flex; align-items: baseline; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: 11.5px; opacity: .92; }
.ahc-net b { font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; }
.ahc-net span { margin-left: auto; font-size: 10px; opacity: .6; }
/* 理财 / 基金收益按中国习惯：正收益红、负收益绿 */
.ahc-net b.inc, .ast-right em.inc { color: #ff9db0; }
.ahc-net b.exp, .ast-right em.exp { color: #8ceccb; }
[data-theme="dark"] .ahc-net b.inc, [data-theme="dark"] .ast-right em.inc { color: #ff8ea1; }
[data-theme="dark"] .ahc-net b.exp, [data-theme="dark"] .ast-right em.exp { color: var(--mint); }

/* 通用实体行 */
.acc-row, .ast-row, .lia-row { display: flex; align-items: center; gap: 11px; width: 100%; text-align: left; padding: 11px 0; border-bottom: 1px solid var(--line); }
.acc-row:last-child, .ast-row:last-child, .lia-row:last-child { border-bottom: 0; }
.acc-ico, .ast-ico, .lia-ico, .br-ico, .rec-ico, .cc-ico {
  width: 38px; height: 38px; border-radius: 13px; display: grid; place-items: center; flex: none;
  background: var(--card-2); color: var(--tint, var(--taro-d));
}
.acc-ico svg, .ast-ico svg, .lia-ico svg, .br-ico svg, .rec-ico svg, .cc-ico svg { width: 17px; height: 17px; }
.ast-ico { background: var(--green-soft); color: var(--green-d); }
.lia-ico { background: var(--coral-soft); color: var(--coral); }
.lia-ico.warn { background: var(--amber-soft); color: var(--amber); }
.cc-ico { width: 34px; height: 34px; border-radius: 12px; background: var(--taro-soft); color: var(--taro-d); }
.acc-main, .ast-main, .lia-main, .rec-main, .br-main { flex: 1; min-width: 0; }
.acc-main b, .ast-main b, .lia-main b, .rec-main b, .br-main b { display: block; font-size: 13.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-main small, .ast-main small, .lia-main small, .rec-main small, .br-main small { display: block; margin-top: 3px; font-size: 10.5px; color: var(--muted-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-row > svg.chev, .ast-row > svg.chev, .lia-row > svg.chev { width: 14px; height: 14px; color: var(--muted-2); flex: none; }
.acc-bal, .lia-amt, .rec-amt { font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; flex: none; }
.acc-bal.neg { color: var(--coral); }
.ast-right { text-align: right; flex: none; }
.ast-right b { display: block; font-size: 13.5px; font-weight: 800; font-variant-numeric: tabular-nums; }
.ast-right em { display: block; margin-top: 2px; font-size: 10.5px; font-style: normal; font-weight: 700; }

/* 还款日提醒 */
.due-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.due-row:last-child { border-bottom: 0; }
.due-row > svg { width: 16px; height: 16px; color: var(--amber); flex: none; }
.due-row.soon > svg { color: var(--coral); }
.due-row span { flex: 1; min-width: 0; }
.due-row b { display: block; font-size: 12.5px; font-weight: 700; }
.due-row small { display: block; margin-top: 2px; font-size: 10.5px; color: var(--muted-2); }
.due-row em { font-style: normal; font-weight: 800; font-size: 13px; font-variant-numeric: tabular-nums; }

/* 分类预算 */
.budget-cat { padding: 12px 0; border-bottom: 1px solid var(--line); }
.budget-cat:last-child { border-bottom: 0; }
.bc-head { display: flex; align-items: center; gap: 10px; }
.bc-head .tile-ico { width: 34px; height: 34px; border-radius: 12px; }
.bc-head .tile-ico svg { width: 16px; height: 16px; }
.bc-main { flex: 1; min-width: 0; }
.bc-main b { display: block; font-size: 13px; font-weight: 700; }
.bc-main small { display: block; margin-top: 2px; font-size: 10.5px; color: var(--muted-2); }
.bc-edit, .br-edit { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--card-2); color: var(--muted); flex: none; }
.bc-edit svg, .br-edit svg { width: 14px; height: 14px; }
.bc-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; font-size: 11px; color: var(--muted); }
.bc-foot b { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.level-tag { font-style: normal; font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--card-2); color: var(--muted); }
.level-tag.over { background: var(--coral-soft); color: var(--coral); }
.level-tag.near { background: var(--amber-soft); color: var(--amber); }
.level-tag.ok { background: var(--green-soft); color: var(--green-d); }
[data-theme="dark"] .level-tag.over { color: #ff9db0; }
[data-theme="dark"] .level-tag.near { color: #e8bd76; }
[data-theme="dark"] .level-tag.ok { color: var(--mint); }

/* 周期模板 */
.concept-card { padding: 14px 15px; }
.cc-row { display: flex; gap: 11px; padding: 9px 0; }
.cc-row + .cc-row { border-top: 1px solid var(--line); }
.cc-row b { display: block; font-size: 12.5px; font-weight: 700; }
.cc-row small { display: block; margin-top: 3px; font-size: 10.8px; color: var(--muted-2); line-height: 1.5; }
.rec-card { padding: 12px 0; border-bottom: 1px solid var(--line); }
.rec-card:last-child { border-bottom: 0; }
.rec-card.off { opacity: .6; }
.rec-head { display: flex; align-items: center; gap: 10px; }
.rec-ico { width: 36px; height: 36px; border-radius: 12px; }
.rec-ico.on { background: var(--taro-soft); color: var(--taro-d); }
.rec-meta { margin-top: 8px; padding-left: 46px; font-size: 10.5px; color: var(--muted-2); }
.rec-acts { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; padding-left: 46px; }
.mini-btn { height: 28px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card-2); color: var(--muted); font-size: 10.5px; font-weight: 600; }

/* 年度总结 */
.report-year { font-size: 14px; font-weight: 800; padding: 0 6px; font-variant-numeric: tabular-nums; }
.report-kpi { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 10px; padding: 16px; }
.report-kpi span { display: block; font-size: 10.5px; color: var(--muted); }
.report-kpi b { display: block; margin-top: 4px; font-size: 18px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.report-kpi b.inc { color: var(--green-d); }
.report-kpi b.exp { color: var(--coral); }
.report-p { margin: 10px 0 0; font-size: 12px; line-height: 1.75; color: var(--ink-2); }
.rep-rank { display: flex; align-items: center; gap: 10px; padding: 9px 0; }
.rep-rank .tile-ico { width: 32px; height: 32px; border-radius: 11px; }
.rep-rank .tile-ico svg { width: 15px; height: 15px; }
.rr-main { flex: 1; min-width: 0; }
.rr-main b { display: block; font-size: 12.5px; font-weight: 700; }
.rr-main .pb-track { margin-top: 6px; height: 6px; }
.rep-rank > span { flex: none; font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; }
.rep-over { display: flex; align-items: center; gap: 9px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.rep-over:last-child { border-bottom: 0; }
.rep-over > svg { width: 15px; height: 15px; color: var(--coral); flex: none; }
.rep-over span { flex: 1; min-width: 0; }
.rep-over b { display: block; font-size: 12.5px; font-weight: 700; }
.rep-over small { display: block; margin-top: 2px; font-size: 10.5px; color: var(--muted-2); }
.rep-over em { flex: none; font-style: normal; font-size: 11.5px; font-weight: 800; color: var(--coral); }

/* 账本管理 */
.book-row { display: flex; align-items: center; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.book-row:last-child { border-bottom: 0; }
.book-row.on .br-ico { box-shadow: 0 0 0 2px var(--mint); }
.br-pick { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; text-align: left; }
.br-main { flex: 1; min-width: 0; }
.br-check { width: 18px; height: 18px; display: grid; place-items: center; color: var(--green-d); flex: none; }
.br-check svg { width: 16px; height: 16px; }
.bp-row { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 12px 2px; border-bottom: 1px solid var(--line); font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.bp-row.on { color: var(--green-d); font-weight: 800; }
.bp-row svg { width: 16px; height: 16px; }

/* 通用编辑表单 */
.form-sheet { max-height: 86vh; }
.fld-list { max-height: 56vh; overflow-y: auto; padding-right: 2px; }
.fld { display: block; margin-bottom: 12px; }
.fld > span { display: block; margin-bottom: 6px; font-size: 11.5px; font-weight: 700; color: var(--muted); }
.fld-ctrl { width: 100%; min-height: 42px; border-radius: 13px; border: 1px solid var(--line-2); background: var(--card-2); color: var(--ink); padding: 9px 12px; font-size: 13.5px; font-family: inherit; outline: none; }
.fld-ctrl:focus { border-color: var(--taro); }
.fld textarea.fld-ctrl { resize: vertical; }
.fld small { display: block; margin-top: 5px; font-size: 10.5px; color: var(--muted-2); line-height: 1.5; }

/* 窄屏适配 */
@media (max-width: 360px) {
  .home-bookbar { flex-wrap: wrap; }
  .tc-head { flex-direction: column; align-items: stretch; }
  .period-tabs { align-self: flex-start; }
  .am-side { display: none; }
  .ahc-split b { font-size: 12px; }
  .rec-meta, .rec-acts { padding-left: 0; }
  .report-kpi b { font-size: 16px; }
}

@media print {
  .tabbar, .toast, .icon-btn { display: none !important; }
  .phone { max-width: none; }
}
