/* 记账页样式 —— 复用 styles.css 的设计令牌（颜色、卡片、按钮、标签）。
   布局：旅途信息流（Trip Feed）
     · 顶部常驻「余额带」：总支出 + 每人净额，随滚动吸顶
     · composer 记账入口：一行点开引导式记账
     · 账目按天聚合成信息流，与首页行程时间线视觉统一
     · 头像化「结算建议」收尾
   「我的资料」收进底部抽屉（与记账 wizard 共用 .wiz 抽屉外壳）。 */

.acc-main {
  max-width: 720px;          /* 信息流更聚焦、移动优先 */
  margin: 0 auto;
  padding: 28px 20px 96px;
}

/* ---------- 登录 ---------- */
.acc-login__head { text-align: center; margin: 24px 0 36px; }
.acc-login__head .section__lead { margin-top: 10px; color: var(--ink-soft); }

.acc-members {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 480px;
  margin: 0 auto;
}
.acc-member {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 26px 20px;
  text-align: center;
}
.acc-member__avatar {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-size: 1.7rem;
  color: #fff;
  background: linear-gradient(135deg, var(--teal), var(--teal-deep));
  box-shadow: 0 14px 28px -14px rgba(16, 154, 140, 0.9);
}
.acc-member__name { font-weight: 700; font-size: 1.08rem; }
.acc-member__pw,
.acc-field input,
.acc-field select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  font-family: inherit;
  font-size: 0.96rem;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.acc-member__pw:focus,
.acc-field input:focus,
.acc-field select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-soft);
}

/* ---------- 通用表单（用于「我的资料」抽屉） ---------- */
.acc-form { display: flex; flex-direction: column; gap: 14px; }
.acc-field { display: flex; flex-direction: column; gap: 6px; }
.acc-field > span { font-size: 0.84rem; font-weight: 600; color: var(--ink-soft); }
.acc-pwbox {
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}
.acc-pwbox summary { cursor: pointer; font-size: 0.88rem; color: var(--teal-deep); font-weight: 600; }
.acc-pwbox[open] { padding-bottom: 14px; }
.acc-pwbox .acc-field { margin-top: 12px; }

/* ================================================================
   旅途信息流 —— 已登录主界面
   ================================================================ */

/* ---------- 顶部：总支出 + 我 + 余额带（吸顶） ---------- */
.feed-head {
  position: sticky;
  top: 52px;                 /* 贴在 nav 之下 */
  z-index: 20;
  margin: 0 0 18px;
  padding: 14px 16px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  box-shadow: var(--shadow-sm);
}
.feed-head__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.feed-total { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.feed-total__label {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 700;
}
.feed-total__line { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.feed-total__num {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 900;
  line-height: 1;
  color: var(--teal-deep);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}
.feed-total__count { font-size: 0.84rem; color: var(--ink-faint); font-variant-numeric: tabular-nums; }

/* 头像按钮（打开「我的资料」）：圆形头像 + 角标齿轮 */
.feed-me {
  position: relative;
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: none;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.14s var(--ease);
}
.feed-me:hover { transform: translateY(-2px); }
.feed-me:active { transform: scale(0.96); }
.feed-me__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  font-family: var(--font-serif);
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  box-shadow: 0 10px 22px -12px rgba(154, 124, 59, 0.9);
}
.feed-me__cog {
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  font-size: 0.62rem;
  line-height: 1;
  color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
  transition: color 0.18s, border-color 0.18s;
}
.feed-me:hover .feed-me__cog { color: var(--teal-deep); border-color: var(--teal); }

/* 余额带：横向可滚动，我在最前并高亮 */
.feed-ribbon {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.feed-ribbon::-webkit-scrollbar { display: none; }
.feed-pill {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 15px 7px 7px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface-2);
}
/* 宽屏：药丸排成 2×2 网格，名称居左、金额居右，铺满整行且长金额不被裁切 */
@media (min-width: 560px) {
  .feed-ribbon {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    overflow: visible;
  }
  .feed-pill { width: 100%; padding: 9px 16px 9px 9px; }
  .feed-pill__body {
    flex: 1;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
  .feed-pill__name { font-size: 0.86rem; }
  .feed-pill__net { font-size: 1rem; }
}
.feed-pill__avatar {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.86rem;
  font-family: var(--font-serif);
  background: linear-gradient(135deg, var(--teal), var(--teal-deep));
}
.feed-pill__body { display: flex; flex-direction: column; line-height: 1.18; min-width: 0; }
.feed-pill__name { font-size: 0.74rem; font-weight: 600; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-pill__net { font-size: 0.94rem; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.feed-pill.is-credit .feed-pill__net { color: var(--teal-deep); }
.feed-pill.is-debit .feed-pill__net { color: var(--gold-deep); }
.feed-pill.is-even .feed-pill__net { color: var(--ink-faint); }
.feed-pill.is-me {
  border-color: var(--teal);
  background: var(--teal-soft);
  box-shadow: 0 0 0 3px rgba(16, 154, 140, 0.12);
}
.feed-pill.is-me .feed-pill__avatar { background: linear-gradient(135deg, var(--gold), var(--gold-deep)); }

/* ---------- composer 记账入口 ---------- */
.feed-composer {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 13px 14px;
  margin-bottom: 24px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background:
    radial-gradient(120% 160% at 100% 0%, var(--teal-soft), transparent 55%),
    var(--surface);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  font: inherit;
  color: var(--ink);
  transition: transform 0.18s var(--ease), box-shadow 0.18s, border-color 0.18s;
}
.feed-composer:hover { transform: translateY(-2px); border-color: var(--teal); box-shadow: var(--shadow); }
.feed-composer:active { transform: translateY(0); }
.feed-composer__avatar {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-family: var(--font-serif);
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
}
.feed-composer__text { flex: 1; text-align: left; color: var(--ink-faint); font-size: 0.98rem; }
.feed-composer__plus {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.4rem;
  font-weight: 300;
  line-height: 1;
  background: linear-gradient(135deg, var(--teal), var(--teal-deep));
  box-shadow: 0 12px 24px -12px rgba(16, 154, 140, 0.9);
  transition: transform 0.25s var(--ease);
}
.feed-composer:hover .feed-composer__plus { transform: rotate(90deg); }

/* ---------- 账目流（按天聚合） ---------- */
.feed { display: flex; flex-direction: column; gap: 26px; }
.feed-day__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 0 2px 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.feed-day__date { font-family: var(--font-serif); font-weight: 700; font-size: 1.04rem; color: var(--teal-deep); }
.feed-day__weekday { color: var(--ink-faint); font-size: 0.84rem; margin-left: 8px; font-weight: 400; }
.feed-day__sum { font-size: 0.84rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; white-space: nowrap; }
.feed-day__sum b { color: var(--gold-deep); font-weight: 800; }
.feed-day__items { display: flex; flex-direction: column; gap: 10px; }

.feed-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas:
    "avatar main amount"
    "avatar foot foot";
  column-gap: 14px;
  row-gap: 2px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s var(--ease), border-color 0.18s, box-shadow 0.18s;
}
.feed-item:hover { transform: translateY(-2px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.feed-item__avatar {
  grid-area: avatar;
  align-self: start;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  background: linear-gradient(135deg, var(--teal), var(--teal-deep));
}
.feed-item--mine .feed-item__avatar { background: linear-gradient(135deg, var(--gold), var(--gold-deep)); }
.feed-item__main { grid-area: main; min-width: 0; }
.feed-item__title {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.feed-item__meta { font-size: 0.82rem; color: var(--ink-soft); margin-top: 1px; }
.feed-item__amount {
  grid-area: amount;
  align-self: start;
  text-align: right;
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--teal-deep);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.feed-item__foot {
  grid-area: foot;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.feed-stack { display: flex; flex: none; }
.feed-stack__a {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  font-family: var(--font-serif);
  background: linear-gradient(135deg, var(--teal), var(--teal-deep));
  border: 2px solid var(--surface);
}
.feed-stack__a + .feed-stack__a { margin-left: -9px; }
.feed-item__aa { font-size: 0.8rem; color: var(--ink-faint); }
.feed-del {
  margin-left: auto;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink-faint);
  border-radius: 999px;
  padding: 3px 12px;
  font-size: 0.78rem;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.feed-del:hover { color: #c0392b; border-color: #e0a8a0; }

.feed-empty {
  text-align: center;
  color: var(--ink-faint);
  padding: 48px 20px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface-2);
}

/* ---------- 结算建议 ---------- */
.feed-settle {
  margin-top: 30px;
  padding: 20px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  box-shadow: var(--shadow-sm);
}
.feed-settle__title { font-family: var(--font-serif); font-size: 1.12rem; font-weight: 700; margin: 0 0 3px; }
.feed-settle__sub { font-size: 0.84rem; color: var(--ink-soft); margin: 0 0 16px; }
.feed-settle__row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 13px;
  border-radius: var(--radius-sm);
  background: var(--teal-soft);
}
.feed-settle__row + .feed-settle__row { margin-top: 10px; }
.feed-settle__av {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.84rem;
  font-family: var(--font-serif);
}
.feed-settle__av--from { background: linear-gradient(135deg, var(--gold), var(--gold-deep)); }
.feed-settle__av--to { background: linear-gradient(135deg, var(--teal), var(--teal-deep)); }
.feed-settle__name { font-weight: 700; font-size: 0.9rem; color: var(--ink); }
.feed-settle__arrow { color: var(--ink-faint); }
.feed-settle__amt {
  margin-left: auto;
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: 1.06rem;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.feed-settle__done { text-align: center; color: var(--ink-soft); padding: 6px 0 2px; }

/* ================================================================
   抽屉外壳：引导式记账 wizard + 我的资料 共用
   ================================================================ */
body.wiz-open { overflow: hidden; }
.wiz {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
/* 隐藏时必须真正移除，否则覆盖层会拦截整页点击。
   类选择器会盖过 [hidden] 的 UA 样式，故显式声明。 */
.wiz[hidden] { display: none; }
@media (min-width: 640px) { .wiz { align-items: center; } }
.wiz__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 32, 28, 0.5);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.26s var(--ease);
}
.wiz.is-open .wiz__backdrop { opacity: 1; }
.wiz__sheet {
  position: relative;
  width: 100%;
  max-width: 460px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 24px 24px 0 0;
  box-shadow: var(--shadow-lg);
  transform: translateY(100%);
  transition: transform 0.32s var(--ease);
  overflow: hidden;
}
@media (min-width: 640px) {
  .wiz__sheet { border-radius: 24px; transform: translateY(24px) scale(0.97); opacity: 0; transition: transform 0.32s var(--ease), opacity 0.26s var(--ease); }
}
.wiz.is-open .wiz__sheet { transform: translateY(0) scale(1); opacity: 1; }

.wiz__head { position: relative; padding: 22px 24px 16px; border-bottom: 1px solid var(--line); }
.wiz__close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  color: var(--ink-soft);
  font-size: 1rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s, border-color 0.2s;
}
.wiz__close:hover { color: var(--ink); border-color: var(--teal); }
.wiz__bar { height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; margin-right: 44px; }
.wiz__bar-fill {
  display: block;
  height: 100%;
  width: 20%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--teal), var(--teal-deep));
  transition: width 0.34s var(--ease);
}
.wiz__step-label { margin-top: 10px; font-size: 0.82rem; font-weight: 600; color: var(--teal-deep); letter-spacing: 0.02em; }
.sheet__title { font-family: var(--font-serif); font-size: 1.2rem; font-weight: 700; padding-right: 40px; }

.wiz__body { padding: 26px 24px; overflow-y: auto; flex: 1; }
.wiz__step { display: none; animation: wizIn 0.3s var(--ease); }
.wiz__step.is-active { display: block; }
@keyframes wizIn {
  from { opacity: 0; transform: translateX(16px); }
  to { opacity: 1; transform: translateX(0); }
}
.wiz__q { font-family: var(--font-serif); font-size: 1.42rem; margin: 0 0 6px; color: var(--ink); }
.wiz__hint { font-size: 0.88rem; color: var(--ink-soft); margin: 0 0 20px; }

.wiz__amount {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 14px 4px 16px;
  border-bottom: 2px solid var(--teal);
}
.wiz__amount-cur { font-family: var(--font-serif); font-size: 2rem; color: var(--teal-deep); }
.wiz__amount input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: var(--font-serif);
  font-size: 2.6rem;
  font-weight: 900;
  color: var(--ink);
  padding: 0;
  width: 100%;
  -moz-appearance: textfield;
}
.wiz__amount input:focus { outline: none; }
.wiz__amount input::-webkit-outer-spin-button,
.wiz__amount input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.wiz__text {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.wiz__text:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft); }

.wiz__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
/* 日期步骤里 chips 在输入框之上：补足两者间距，避免贴在一起 */
.wiz__chips + .wiz__text { margin-top: 14px; }
.wiz__chip {
  padding: 7px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink-soft);
  font: inherit;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.18s var(--ease);
}
.wiz__chip:hover { border-color: var(--teal); color: var(--teal-deep); background: var(--teal-soft); }

.wiz__people { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.wiz__person {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 16px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s;
}
.wiz__person.is-on { border-color: var(--teal); background: var(--teal-soft); }
.wiz__person-avatar {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-family: var(--font-serif);
  background: linear-gradient(135deg, var(--teal), var(--teal-deep));
}
.wiz__person-name { flex: 1; font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.wiz__person-tag {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--gold-deep);
  background: var(--gold-soft);
  border-radius: 999px;
  padding: 2px 8px;
}
.wiz__person-check {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 0.8rem;
  background: var(--teal);
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.18s, transform 0.18s;
}
.wiz__person.is-on .wiz__person-check { opacity: 1; transform: scale(1); }
.wiz__selectall {
  border: none;
  background: none;
  color: var(--teal-deep);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 0;
}
.wiz__selectall:hover { text-decoration: underline; }

.wiz__review { text-align: center; }
.wiz__review-amount {
  font-family: var(--font-serif);
  font-size: 2.6rem;
  font-weight: 900;
  color: var(--teal-deep);
  line-height: 1.1;
}
.wiz__review-title { font-size: 1.05rem; font-weight: 600; color: var(--ink); margin: 4px 0 20px; }
.wiz__review-list {
  margin: 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.wiz__review-list > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 16px;
  background: var(--surface-2);
}
.wiz__review-list > div + div { border-top: 1px solid var(--line); }
.wiz__review-list dt { margin: 0; font-size: 0.86rem; color: var(--ink-soft); }
.wiz__review-list dd { margin: 0; font-size: 0.92rem; font-weight: 600; color: var(--ink); text-align: right; }

.wiz__foot {
  display: flex;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.wiz__foot .btn { flex: 1; justify-content: center; }
.wiz__foot #wiz-back { flex: 0 0 auto; }

/* 我的资料抽屉内的退出按钮 */
.feed-logout { width: 100%; justify-content: center; margin-top: 16px; }

@media (max-width: 480px) {
  .acc-main { padding: 20px 14px 96px; }
  .feed-item__title { font-size: 1rem; }
}

/* ================================================================
   新增功能样式：刷新 / 分类统计 / 筛选 / 编辑·票据 / 分摊 / 还款 / 动态 / 灯箱
   ================================================================ */

/* ---------- 头部操作区 + 刷新 ---------- */
.feed-head__actions { display: flex; align-items: center; gap: 10px; flex: none; }
.feed-refresh {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  color: var(--teal-deep);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.2s var(--ease), border-color 0.2s;
}
.feed-refresh:hover { border-color: var(--teal); }
.feed-refresh.is-spinning { animation: spin 0.8s linear; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 分类统计 ---------- */
.feed-stats { margin: 0 0 18px; }
.feed-stats:empty { display: none; }
.feed-stats__head {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 700;
  margin-bottom: 10px;
}
.feed-stats__bars { display: flex; flex-direction: column; gap: 8px; }
.feed-stat { display: grid; grid-template-columns: 88px 1fr auto; align-items: center; gap: 10px; }
.feed-stat__label { font-size: 0.84rem; color: var(--ink-soft); white-space: nowrap; }
.feed-stat__bar { height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.feed-stat__fill { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--teal), var(--teal-deep)); }
.feed-stat__val { font-size: 0.8rem; color: var(--ink-faint); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- 筛选工具栏 ---------- */
.feed-tools { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.feed-tools__search {
  flex: 1 1 160px;
  min-width: 0;
  padding: 9px 13px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  font: inherit;
  font-size: 0.9rem;
  color: var(--ink);
}
.feed-tools__search:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft); }
.feed-tools__select {
  flex: 0 0 auto;
  padding: 9px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  font: inherit;
  font-size: 0.86rem;
  color: var(--ink);
  cursor: pointer;
}
.feed-tools__select:focus { outline: none; border-color: var(--teal); }
.feed-filter-tip { font-size: 0.82rem; color: var(--ink-soft); margin: 0 0 14px; }

/* ---------- 账目卡：分类 / 备注 / 编辑·票据按钮 ---------- */
.feed-item__cat {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--teal-deep);
  background: var(--teal-soft);
  border-radius: 999px;
  padding: 1px 8px;
  margin-left: 6px;
  white-space: nowrap;
}
.feed-item__note {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-top: 4px;
  padding-left: 10px;
  border-left: 2px solid var(--line-strong);
}
.feed-item__edited { font-size: 0.72rem; color: var(--ink-faint); margin-left: 8px; }
.feed-item__aa { margin-right: auto; }
.feed-edit {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 3px 12px;
  font-size: 0.78rem;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.feed-edit:hover { color: var(--teal-deep); border-color: var(--teal); }
.feed-del { margin-left: 0; }

/* ---------- wizard：子标签 / 文本域 ---------- */
.wiz__sublabel {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin: 18px 0 8px;
}
.wiz__textarea { resize: vertical; min-height: 56px; line-height: 1.5; }

/* ---------- wizard：付款人 ---------- */
.wiz__payers { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.wiz__payers::-webkit-scrollbar { display: none; }
.wiz__payer {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px 7px 7px;
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface-2);
  font: inherit;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s;
}
.wiz__payer.is-on { border-color: var(--gold-deep); background: var(--gold-soft); }
.wiz__payer-avatar {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.82rem;
  font-family: var(--font-serif);
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
}
.wiz__payer-name { font-size: 0.86rem; font-weight: 600; color: var(--ink); white-space: nowrap; }

/* ---------- wizard：分摊方式 tab ---------- */
.wiz__modetabs {
  display: flex;
  gap: 4px;
  margin: 18px 0 14px;
  padding: 4px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.wiz__modetab {
  flex: 1;
  padding: 8px 12px;
  border: none;
  background: none;
  border-radius: 999px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}
.wiz__modetab.is-on { background: var(--surface); color: var(--teal-deep); box-shadow: var(--shadow-sm); }

/* ---------- wizard：自定义金额行 ---------- */
.wiz__person--amt { cursor: default; }
.wiz__person--amt .wiz__person-name { flex: 1; }
.wiz__share-cur { color: var(--ink-faint); font-family: var(--font-serif); }
.wiz__share {
  flex: 0 0 96px;
  width: 96px;
  padding: 8px 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font: inherit;
  font-size: 0.96rem;
  text-align: right;
  color: var(--ink);
  -moz-appearance: textfield;
}
.wiz__share:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft); }
.wiz__share::-webkit-outer-spin-button,
.wiz__share::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.wiz__splitfoot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wiz__customsum { font-size: 0.86rem; color: var(--gold-deep); font-weight: 600; font-variant-numeric: tabular-nums; }
.wiz__customsum.is-ok { color: var(--teal-deep); }
.wiz__customsum b { font-weight: 800; }

/* ---------- 结算：标记已转 + 已记录还款 ---------- */
.feed-settle__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.feed-settle__top .feed-settle__title { margin: 0 0 3px; }
.feed-settle__top .feed-settle__sub { margin: 0; }
.feed-settle__top .btn { flex: none; white-space: nowrap; }
.feed-settle__mark {
  margin-left: auto;
  border: 1px solid var(--teal);
  background: var(--surface);
  color: var(--teal-deep);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.18s, color 0.18s;
}
.feed-settle__mark:hover { background: var(--teal); color: #fff; }
.feed-settle__row .feed-settle__amt { margin-left: 0; }

.feed-paid { margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--line-strong); }
.feed-paid__title { font-size: 0.82rem; font-weight: 700; color: var(--ink-soft); margin: 0 0 10px; }
.feed-paid__row { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 0.86rem; }
.feed-paid__txt { color: var(--ink); }
.feed-paid__txt b { color: var(--teal-deep); font-variant-numeric: tabular-nums; }
.feed-paid__meta { color: var(--ink-faint); font-size: 0.78rem; margin-left: auto; text-align: right; }
.feed-paid__del {
  flex: none;
  border: none;
  background: none;
  color: var(--ink-faint);
  cursor: pointer;
  font-size: 0.9rem;
  padding: 2px 4px;
}
.feed-paid__del:hover { color: #c0392b; }

/* ---------- 还款 sheet 表单 ---------- */
.settle-form__row { display: flex; align-items: center; gap: 10px; }
.settle-form__row select { flex: 1; }
.settle-form__arrow { color: var(--ink-faint); flex: none; }

/* ---------- 我的资料：附加区 ---------- */
.acc-extra { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.acc-extra__full { width: 100%; justify-content: center; }
