/* 人通小猫 · 网页版（延续小程序设计语言：米白底、白卡片、暖色 chip） */
:root {
  --bg: #f6f3ee;
  --card: #ffffff;
  --ink: #33302a;
  --ink-2: #6f6a60;
  --ink-3: #a09a8e;
  --line: #e9e4da;
  --accent: #c2703d;
  --accent-soft: #f7e9df;
  --green: #3b7d4f;
  --green-soft: #e7f2ea;
  --blue: #3d6ea8;
  --blue-soft: #e7eef7;
  --amber: #a06a1c;
  --amber-soft: #f8efdd;
  --red: #b05248;
  --red-soft: #f9e9e7;
  --gray-soft: #efece6;
  --radius: 14px;
  /* 动态来源配色：明亮、低饱和；不影响猫咪状态的语义色。 */
  --official-color: #487b9b;
  --official-edge: #83b2ce;
  --official-soft: #edf4f7;
  --official-card: #fcfeff;
  --official-line: #d7e5eb;
  --student-color: #507c60;
  --student-edge: #9ac4a6;
  --student-soft: #eaf5ed;
  --student-card: #ffffff;
  --student-line: #d2e7d8;
  --submit-color: #704b39;
  --submit-action: #b97150;
  --submit-soft: #fdf3e7;
  --submit-line: #e8cdbb;
  /* 语义色板（2026.9.28）：米白底 + 暖橙主色不变，再补三个低饱和色承担「类型区分」。
     用法固定：--x 写字/图标，--x-soft 写底色，别混着用，也别再新增颜色。 */
  --teal: #2f8077;        /* 青：寄养中 */
  --teal-soft: #e3f0ef;
  --rose: #b8517e;        /* 玫红：点赞与互动 */
  --rose-soft: #f9e8ef;
  /* 字号阶梯（2026.9.28 定稿）：动态/帖子相关组件只准用这几档，
     手机端整体降 1px。改字号改变量，不要在组件里各写各的。 */
  --fs-section: 19px;       /* 区块标题：官方近况 / 同学投稿 */
  --fs-card-title: 16px;    /* 卡片标题 */
  --fs-detail-title: 19px;  /* 帖子详情页标题 */
  --fs-body: 14px;          /* 正文 + 底部操作条（赞 / 详情 / 也见到XX？） */
  --fs-meta: 12px;          /* 日期 / 来源 / 状态小字等辅助信息 */
}
@media (max-width: 720px) {
  :root {
    --fs-section: 17px;
    --fs-card-title: 15px;
    --fs-detail-title: 17px;
    --fs-body: 13px;
    --fs-meta: 11px;
  }
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  /* 页面底色就是纯米白，不做任何渐变——变化的颜色全部交给内容（状态色 / 来源色）去承担 */
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  /* 给固定 tabbar 留位，并避开 iPhone 底部横条 */
  padding-bottom: calc(64px + env(safe-area-inset-bottom));
  -webkit-tap-highlight-color: transparent;
}
/* 页面切换时不被 iOS 惯性滚动带跑 */
html { -webkit-overflow-scrolling: touch; }
#app { max-width: 1440px; margin: 0 auto; padding: 34px 56px 48px; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
picture.responsive-image { display: block; }
button { font-family: inherit; }
/* iOS Safari 上 body{overflow:hidden} 挡不住 touch 滚动，必须 position:fixed + top 负偏移（由 JS 锁/解锁） */
body.viewer-open { position: fixed; left: 0; right: 0; width: 100%; overflow: hidden; }

.boot-loading, .state-tip { text-align: center; color: var(--ink-3); padding: 80px 0; }

/* 渲染错误提示条（2026.11.05 Phase 0）：页面某一段没渲染出来时浮在顶部，不遮挡主内容。
   z-index 必须高于自定义 tabbar（999）与弹层（1250/1300），否则用户根本看不到这条提示。 */
.render-error-bar { position: fixed; left: 0; right: 0; top: 0; z-index: 1400; display: flex; align-items: center; gap: 10px;
  padding: calc(10px + env(safe-area-inset-top)) 14px 10px; background: #fdf1de; border-bottom: 1px solid #e6d3b3;
  color: #6b5533; font-size: 13px; line-height: 1.5; box-shadow: 0 2px 10px rgba(90, 70, 40, 0.08); }
.render-error-bar span { flex: 1 1 auto; min-width: 0; }
.render-error-bar button, .render-error-bar a { flex: none; border: 1px solid #d8c3a0; background: #fffdf8; color: #6b5533;
  border-radius: 999px; padding: 3px 10px; font-size: 12px; line-height: 1.6; text-decoration: none; cursor: pointer; }
.render-error-bar button:hover, .render-error-bar a:hover { background: #fff7ea; }

/* 顶栏 */
.topbar { display: flex; align-items: baseline; gap: 14px; padding: 10px 4px 34px; }
.topbar .brand { font-size: 42px; font-weight: 800; letter-spacing: -.06em; line-height: 1; }
.topbar .sub { font-size: 22px; color: var(--ink-3); }
/* 返回链接：字号与点击区域都比普通副标题大一圈，方便手机点 */
.back-link {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 8px 16px 8px 12px; margin: -8px 0 0 -12px;
  border-radius: 999px; background: var(--card); border: 1px solid var(--line);
  color: var(--ink); font-size: 20px; font-weight: 600; min-height: 44px;
}
.back-link:hover { border-color: var(--accent); color: var(--accent); }

/* 底部导航 */
#tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: flex; justify-content: center; gap: 34px;
  background: rgba(255,255,255,.96); border-top: 1px solid var(--line);
  padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
}
#tabbar a { display: flex; flex-direction: column; align-items: center; font-size: 11px; color: var(--ink-3); min-width: 56px; }
#tabbar a .tab-ico { font-size: 20px; line-height: 1.2; }
#tabbar a.active { color: var(--accent); }

/* 筛选 chips */
.chip-row { display: flex; gap: 14px; overflow-x: auto; padding: 4px 2px 14px; scrollbar-width: none; }
.chip-row::-webkit-scrollbar { display: none; }
.chip {
  flex: none; padding: 10px 22px; border-radius: 999px; font-size: 19px;
  background: var(--card); border: 1px solid var(--line); color: var(--ink-2); cursor: pointer;
}
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.cats-search-wrap { position: relative; }
.cats-search { width: 100%; padding: 19px 24px; border: 2px solid #ead7c8; border-radius: 26px; background: rgba(255,255,255,.94); color: var(--ink); font-family: inherit; font-size: 24px; line-height: 1.45; outline: none; margin: 8px 0 18px; }
.cats-search:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
/* 一键清空：不占位时完全隐藏，输入后才浮在右侧 */
.cats-search-clear { position: absolute; top: 50%; right: 14px; transform: translateY(-50%); width: 30px; height: 30px; border: 0; border-radius: 50%; background: rgba(54,38,27,.12); color: var(--ink-2); font-size: 18px; line-height: 1; cursor: pointer; display: grid; place-items: center; padding: 0; }
.cats-search-clear[hidden] { display: none; }
.cats-search-clear:active { background: rgba(54,38,27,.22); }
.filter-mini { display: flex; gap: 14px; overflow-x: auto; padding: 0 2px 14px; scrollbar-width: none; }
.filter-mini::-webkit-scrollbar { display: none; }
/* 三行筛选必须同字号：此前 .filter-mini .chip 单独设 18px，导致第三行看起来小一号 */
.filter-mini .chip { padding: 10px 22px; font-size: inherit; }
.result-count { color: var(--ink-3); font-size: 18px; text-align: right; margin: 4px 2px 16px; }

/* —— 猫册首屏（2026.9.29 重构）：标题+总数 / 快捷筛选 / 完整面板 / 结果说明 —— */
/* 标题与「29 只」按文字基线对齐（flex-end 底对齐会让数字显得浮高，2026.10.18 审计修正） */
.cats-hero { align-items: baseline; }
/* hero 是整句文案而非页面名，比 .brand 大标题收敛：小一号、稍轻 */
.cats-hero .brand { font-size: 21px; font-weight: 700; letter-spacing: .01em; }
/* 三级选择器压过两端 .topbar .brand（桌面42px/手机25px），棕色系贴合米白暖调 */
.topbar.cats-hero .brand { font-size: 21px; font-weight: 700; letter-spacing: .01em; color: var(--accent); }
.cats-total { margin-left: auto; font-size: 26px; font-weight: 800; color: var(--ink); white-space: nowrap; }
.cats-total span { font-size: 15px; font-weight: 600; color: var(--ink-3); margin-left: 3px; }
.cats-quick { gap: 8px; align-items: center; }
/* 快捷条单独控制比例，不影响动态页及筛选面板的标签。 */
.cats-quick .chip {
  display: inline-flex; align-items: center; justify-content: center;
  height: 40px; padding: 0 16px; font-size: 15px; font-weight: 500; line-height: 1;
  white-space: nowrap; background: transparent; border-color: var(--line);
  transition: background .16s ease, border-color .16s ease, color .16s ease;
}
.cats-quick .chip.on { color: var(--accent); background: var(--accent-soft); border-color: #dfbca4; font-weight: 600; }
.cats-quick .chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (hover: hover) {
  .cats-quick .chip:hover { color: var(--accent); border-color: var(--accent); }
}
.cats-quick .cats-filter-toggle { gap: 7px; background: var(--card); border-color: var(--line); }
.cats-filter-toggle { display: inline-flex; align-items: center; gap: 3px; }
.cats-filter-toggle.has-filters { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.cats-filter-toggle .filter-n { font-weight: 800; }
/* 用细线箭头替代实心三角，尺寸固定，展开时不改变标签宽度。 */
.cats-filter-toggle .filter-arrow { display: inline-flex; align-items: center; justify-content: center; width: 8px; height: 8px; font-size: 0; transition: transform .18s ease; }
.cats-filter-toggle .filter-arrow::after { content: ''; width: 5px; height: 5px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-1px) rotate(45deg); }
.cats-filter-toggle.open .filter-arrow { transform: rotate(180deg); }
.cats-panel { background: rgba(255,255,255,.94); border: 2px solid #ead7c8; border-radius: 22px; padding: 4px 18px 16px; margin: 0 0 16px; }
.cats-panel[hidden] { display: none; }
.filter-group-title { font-size: 15px; font-weight: 700; color: var(--ink-2); margin: 14px 2px 0; }
.panel-actions { display: flex; gap: 12px; margin-top: 18px; }
.panel-btn { flex: 1; padding: 13px 18px; border-radius: 16px; border: 2px solid #ead7c8; background: #fff; color: var(--ink); font-family: inherit; font-size: 17px; font-weight: 700; cursor: pointer; }
.panel-btn.primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.panel-btn:active { transform: scale(.98); }
.cats-result-head { margin: 2px 2px 14px; }
.rh-title { font-size: 20px; font-weight: 800; color: var(--ink); }
.rh-sub { font-size: 14px; color: var(--ink-3); margin-top: 3px; }
.cond-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 9px; }
.cond-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font-family: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.cond-x { opacity: .72; font-size: 15px; line-height: 1; }
.cond-clear-all { border: 0; background: none; padding: 4px 2px; color: var(--ink-3); font-family: inherit; font-size: 13px; text-decoration: underline; cursor: pointer; }

/* 猫卡片网格 */
.cat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (min-width: 760px) { .cat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }
.cat-card { background: var(--card); border-radius: 18px; overflow: hidden; border: 1px solid var(--line); border-top: 4px solid var(--gray-soft); display: flex; flex-direction: column; box-shadow: 0 8px 24px rgba(94,65,40,.07); transition: transform .18s ease, box-shadow .18s ease; }
/* 顶部色带 = 状态色，颜色统一在上面的「状态色表」里定义，这里不再重复写 */
.cat-card:hover { transform: translateY(-2px); box-shadow: 0 13px 30px rgba(94,65,40,.12); }
.cover-wrap { position: relative; }
.cat-card .cover { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: var(--gray-soft); }
.cat-card .responsive-image { display:block; }
.cat-card .cover-empty { width: 100%; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; font-size: 44px; background: var(--gray-soft); }
.cover-tags { position: absolute; left: 10px; bottom: 10px; display: flex; gap: 6px; }
.cover-tags span { padding: 3px 8px; border-radius: 999px; background: rgba(255,255,255,.9); color: var(--ink-2); font-size: 11px; box-shadow: 0 2px 8px rgba(30,20,10,.12); }
/* ===== 猫册卡片固定槽位（2026.11.14 用户拍板）=====
   文字区只有「名字行 + 单行描述」两段：状态胶囊缩小字号留在名字行右侧，
   名字行 nowrap（名字可省略但绝不折行），描述固定一行、超出隐去。
   卡片高度由槽位决定而不是内容行数，同一排卡片的五条基线必须齐平。
   改这里请连小程序 pages/cats/index.wxss 一起改。守卫=tests/web-cat-card-align.test.cjs */
.cat-card .body { flex: 1; padding: 18px 22px 22px; }
.cat-card .name-row { display: flex; flex-wrap: nowrap; align-items: center; gap: 6px; justify-content: space-between; }
.cat-card .name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; font-size: 23px; }
.cat-card .trait { display: block; font-size: 17px; color: var(--ink-2); margin-top: 8px; line-height: 1.5; min-height: 1.5em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ===== 状态色表（2026.9.28 定稿）=====
   在校=绿 · 寄养中=青 · 待领养=琥珀 · 医院里=红 · 已领养/失踪=浅灰
   同一个状态在猫册、动态页、详情页必须是同一个颜色，改色只改这一块，别在组件里另写一份。 */
/* 状态 chip */
.stage-chip { flex: none; font-size: 16px; padding: 6px 14px; border-radius: 999px; white-space: nowrap; }
/* 只缩小猫册卡片内的状态胶囊，详情页/管理端 hero 的大 chip 不变（2026.11.14）。
   16px→12px 后「寄养中（待领养）」与猫名可同行，配合 name-row 的 nowrap 永不折行。 */
.cat-card .stage-chip { font-size: 12px; padding: 4px 10px; line-height: 1.4; }
.stage-campus { background: var(--green-soft); color: var(--green); }
.stage-trial { background: var(--teal-soft); color: var(--teal); }
.stage-available { background: var(--amber-soft); color: var(--amber); }
.stage-handover { background: var(--gray-soft); color: var(--ink-2); }
.stage-hospital { background: var(--red-soft); color: var(--red); }
.stage-lost-contact { background: var(--gray-soft); color: var(--ink-3); }
/* 喵星（2026.10.18 芝麻离世后新增）：低饱和暮色紫，和「失踪」的灰拉开——
   失踪是还没消息，喵星是确定的告别，不该看起来一样。
   改这里请连小程序 app.wxss / pages 里的同名类一起改。 */
.stage-meow-star { background: #efeaf3; color: #6f6480; }
/* 猫册：卡片顶部色带 */
.cat-card[data-stage="campus"] { border-top-color: var(--green); }
.cat-card[data-stage="trial"] { border-top-color: var(--teal); }
.cat-card[data-stage="available"] { border-top-color: var(--amber); }
.cat-card[data-stage="hospital"] { border-top-color: var(--red); }
.cat-card[data-stage="meow-star"] { border-top-color: #a99ab8; }
/* 动态页：卡片顶部色带（同一套状态色，位置也跟猫册一致——都在顶部） */
.post-card[data-stage="campus"] { border-top-color: var(--green); }
.post-card[data-stage="trial"] { border-top-color: var(--teal); }
.post-card[data-stage="available"] { border-top-color: var(--amber); }
.post-card[data-stage="hospital"] { border-top-color: var(--red); }
.post-card[data-stage="meow-star"] { border-top-color: #a99ab8; }

/* 档案页 */
.hero { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--card); border: 1px solid var(--line); }
.hero img.hero-img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: var(--gray-soft); }
.hero picture.responsive-image { width:100%; }
.hero .hero-empty { width: 100%; aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; font-size: 72px; background: var(--gray-soft); }
.hero .hero-grad { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 14px; background: linear-gradient(transparent, rgba(20,16,10,.72)); color: #fff; }
.hero .hero-name { font-size: 22px; font-weight: 600; }
.hero .hero-aka { font-size: 12px; opacity: .85; margin-top: 2px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.hero-tags span { padding: 3px 8px; border-radius: 999px; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.35); font-size: 11px; }
.hero .hero-chip { position: absolute; top: 12px; right: 12px; }
/* 电脑端封面按视口限高，首屏为档案/日常信息留位；手机仍保持4:3。 */
@media (min-width: 721px) {
  .cat-detail > .hero { height: clamp(180px, 38vh, 360px); }
  .cat-detail > .hero picture.responsive-image { display: block; height: 100%; }
  .cat-detail > .hero img.hero-img, .cat-detail > .hero .hero-empty { height: 100%; aspect-ratio: auto; }
}
.cat-detail { max-width: 760px; margin: 0 auto; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 2px; }
.tag { font-size: 12px; color: var(--accent); background: var(--accent-soft); padding: 3px 10px; border-radius: 999px; }
.profile-tabs { display: flex; gap: 6px; padding: 12px 0 2px; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; background: rgba(246,243,238,.94); backdrop-filter: blur(8px); }
.profile-tab { flex: 1; text-align: center; padding: 10px 8px; color: var(--ink-2); font-size: 14px; border-bottom: 2px solid transparent; }
.profile-tab.active { color: var(--accent); font-weight: 700; border-bottom-color: var(--accent); }

.section { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-top: 12px; }
.section h3 { font-size: 14px; font-weight: 600; color: var(--ink-2); margin-bottom: 10px; }
.section h3 .star { color: var(--amber); margin-right: 4px; }
.section-headline, .album-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.section-headline h3, .album-heading h3 { margin-bottom: 0; }
/* 相册统计行（108 张照片 · 16 段视频）比正文小一号，弱化陪衬感 */
.album-heading .muted { font-size: 12.5px; }
@media (max-width: 720px) { .album-heading .muted { font-size: 12px; } }
.affinity { color: var(--amber); letter-spacing: 1px; }
.guide-list { list-style: none; margin: 2px 0 0; }
.guide-list li { position: relative; padding: 7px 0 7px 16px; color: var(--ink); font-size: 14px; line-height: 1.7; overflow-wrap: anywhere; white-space: pre-wrap; }
.guide-list li + li { border-top: 1px dashed var(--line); }
.guide-list li::before { content: ''; position: absolute; left: 1px; top: 17px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.kv-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 14px; }
.kv { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.kv.kv-wide { grid-column: 1 / -1; }
.kv .k { font-size: 11px; color: var(--ink-3); }
.kv .v { font-size: 14px; overflow-wrap: anywhere; white-space: pre-wrap; }
/* 饮食偏好等多行说明：pre-wrap 保留换行，多行时补足行距（第二行起不贴在一起） */
.note-line { font-size: 14px; padding: 3px 0; line-height: 1.7; color: var(--ink); overflow-wrap:anywhere; white-space:pre-wrap; }
.muted { color: var(--ink-3); }

/* 猫际关系 */
.rel-card { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px dashed var(--line); cursor: pointer; }
.rel-card:first-of-type { border-top: none; }
.rel-card img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--gray-soft); }
.rel-card .rel-emoji { width: 44px; height: 44px; border-radius: 50%; background: var(--gray-soft); display: flex; align-items: center; justify-content: center; font-size: 22px; flex: none; }
.rel-card .rel-name { font-weight: 600; font-size: 14px; }
.rel-card .rel-desc { font-size: 12px; color: var(--ink-2); overflow-wrap:anywhere; }
.rel-card .arrow { margin-left: auto; color: var(--ink-3); }
.name-chip { display: inline-block; font-size: 13px; color: var(--ink-2); background: var(--gray-soft); border-radius: 999px; padding: 3px 12px; margin: 2px 4px 2px 0; }
.rel-note { font-size: 13px; color: var(--ink-2); padding: 4px 0; }
.section .post-card { border: 1px solid var(--line); margin-top: 8px; }

/* 时间轴 */
.tl { list-style: none; }
.tl li { position: relative; padding: 0 0 14px 20px; border-left: 2px solid var(--line); margin-left: 6px; }
.tl li:last-child { padding-bottom: 2px; border-left-color: transparent; }
.tl li::before { content: ""; position: absolute; left: -5px; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.tl .tl-date { font-size: 12px; color: var(--accent); font-weight: 600; }
.tl .tl-text { font-size: 13.5px; color: var(--ink); overflow-wrap:anywhere; white-space:pre-wrap; }

/* 趣谈 */
.tale h4 { font-size: 14px; font-weight: 600; margin: 8px 0 2px; }
.tale p { font-size: 13.5px; color: var(--ink-2); white-space: pre-wrap; overflow-wrap:anywhere; }
/* 怪谈正文按 \n 切成多个 <p>（2026.11.12）：段与段之间要有呼吸感，否则只看得出折行、看不出分段 */
.tale p + p { margin-top: 7px; }
.tale + .tale { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 14px; }
.inner-tabs { display: flex; gap: 6px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.inner-tab { flex: 1; border: 0; border-radius: 10px; padding: 9px; background: var(--gray-soft); color: var(--ink-2); cursor: pointer; }
.inner-tab.active { background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.empty-inline { padding: 30px 8px 15px; text-align: center; color: var(--ink-3); }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; margin-top: 12px; }
.photo-cell { position: relative; overflow: hidden; border-radius: 10px; background: var(--gray-soft); aspect-ratio: 1; }
.photo-cell { display:block; width:100%; padding:0; border:0; cursor:zoom-in; text-align:left; }
.photo-cell picture.responsive-image { width:100%; height:100%; }
.photo-cell img { width: 100%; height: 100%; object-fit: cover; }
/* 相册里的视频格子（2026.9.29）：视频帖进相册，首帧当封面 + ▶ 角标，点击直达那条动态 */
.photo-cell.photo-cell-video video { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-cell span { position: absolute; left: 6px; bottom: 6px; padding: 2px 6px; border-radius: 6px; background: rgba(0,0,0,.48); color: #fff; font-size: 10px; opacity: 0; transition: opacity .2s; }
.photo-cell:hover span { opacity: 1; }
/* 照片右下角日期标签：投稿照片才有（档案照片无拍摄日期，不显示），常驻可见不靠 hover */
.photo-cell .photo-date { position: absolute; right: 6px; bottom: 6px; padding: 2px 6px; border-radius: 6px; background: rgba(0,0,0,.45); color: #fff; font-size: 10px; font-style: normal; letter-spacing: .02em; pointer-events: none; }

/* 相册按日分组（2026.10.4 用户定稿）：每天一组，组头=日期+周几+当日张数，组内照片网格 */
.album-day + .album-day { margin-top: 18px; }
.album-day-head { display: flex; align-items: baseline; gap: 8px; margin: 2px 2px 10px; }
.album-day-date { color: var(--ink); font-size: 16px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.album-day-dow { color: var(--ink-3); font-size: 12.5px; }
.album-day-count { margin-left: auto; flex: none; color: var(--ink-3); font-size: 12px; white-space: nowrap; }
@media (max-width: 720px) {
  .album-day + .album-day { margin-top: 14px; }
  .album-day-head { margin-bottom: 8px; }
  .album-day-date { font-size: 14px; }
  .album-day-dow { font-size: 11.5px; }
  .album-day-count { font-size: 11px; }
}
.photo-viewer { position:fixed; inset:0; z-index:100; display:flex; align-items:center; justify-content:center; padding:36px 54px; background:rgba(25,20,16,.94); }
.viewer-stage { width:min(100%, 900px); height:min(100%, 820px); display:flex; flex-direction:column; align-items:center; justify-content:center; gap:12px; touch-action:pan-y; }
.viewer-stage img { max-width:100%; max-height:calc(100% - 30px); width:auto; height:auto; object-fit:contain; border-radius:8px; box-shadow:0 12px 50px rgba(0,0,0,.35); }
.viewer-caption { color:rgba(255,255,255,.78); font-size:13px; }
.viewer-close, .viewer-prev, .viewer-next { position:absolute; border:0; color:#fff; background:rgba(255,255,255,.14); cursor:pointer; }
.viewer-close { top:16px; right:18px; width:38px; height:38px; border-radius:50%; font-size:28px; line-height:1; }
.viewer-prev, .viewer-next { top:50%; transform:translateY(-50%); width:42px; height:58px; border-radius:12px; font-size:38px; line-height:1; }
.viewer-prev { left:10px; }
.viewer-next { right:10px; }
.viewer-close:hover, .viewer-prev:hover, .viewer-next:hover { background:rgba(255,255,255,.28); }
/* 大图底部动作条：下载 / 回到所属动态。贴近底部居中，避开左右翻页按钮 */
.viewer-bar { position:absolute; left:50%; bottom:18px; transform:translateX(-50%); display:flex; gap:10px; z-index:2; }
.viewer-act { display:inline-flex; align-items:center; gap:5px; padding:9px 16px; border:0; border-radius:999px; background:rgba(255,255,255,.16); color:#fff; font-family:inherit; font-size:16px; line-height:1; text-decoration:none; cursor:pointer; white-space:nowrap; flex-shrink:0; -webkit-tap-highlight-color:transparent; }
.viewer-act:hover { background:rgba(255,255,255,.3); }
.viewer-act[hidden] { display:none; }
.viewer-act[disabled] { opacity:.6; cursor:default; }
@media (max-width: 520px) { .photo-viewer { padding:30px 42px; } .viewer-prev, .viewer-next { width:34px; height:48px; font-size:30px; } .viewer-bar { bottom:12px; gap:8px; } .viewer-act { padding:9px 13px; font-size:14px; } }

@media (max-width: 720px) {
  #app { max-width: 720px; padding: 20px 18px 32px; }
  .chip-row { gap: 8px; padding: 4px 2px 12px; }
  .chip { padding: 5px 14px; font-size: 13px; }
  .feed-chips { margin: 0 0 0 auto; padding: 0; gap: 6px; }
  .feed-chips .chip { padding: 4px 11px; font-size: 12px; }
  .chip .chip-today, .chip .chip-time { margin-left: 4px; padding: 0 5px; font-size: 9.5px; line-height: 1.9; }
  .filter-mini .chip { padding: 5px 14px; font-size: 13px; }
  .cats-search { padding: 13px 44px 13px 16px; border-width: 1px; border-radius: 14px; font-size: 16px; margin: 8px 0 10px; }
  .cats-search-clear { right: 10px; width: 26px; height: 26px; font-size: 16px; }
  .filter-mini { gap: 7px; padding: 0 2px 5px; }
  .filter-mini .chip { padding: 4px 10px; font-size: 12px; }
  .result-count { font-size: 12px; margin: 0 2px 8px; }
  .cats-hero { align-items: baseline; }
  .cats-hero .brand { font-size: 17px; }
  .topbar.cats-hero .brand { font-size: 17px; }
  .cats-total { font-size: 16px; }
  .cats-total span { font-size: 11px; margin-left: 2px; }
  /* 宽度按内容分配：给带房子标记的待领养更多空间，六项始终在一屏内。 */
  .cats-quick { display: grid; grid-template-columns: 1.15fr .9fr .9fr 1.65fr 1.2fr .9fr; gap: 6px; padding-left: 0; padding-right: 0; overflow: visible; }
  .cats-quick .chip { min-width: 0; width: 100%; height: 34px; padding: 0 4px; font-size: 13px; }
  .cats-quick .cats-filter-toggle { gap: 4px; }
  .cats-quick .cats-filter-toggle.has-filters .filter-arrow { display: none; }
  .cats-quick .filter-n { font-size: 10px; }
  .cats-panel { border-width: 1px; border-radius: 16px; padding: 2px 14px 12px; margin-bottom: 10px; }
  .filter-group-title { font-size: 13px; margin-top: 10px; }
  .panel-actions { gap: 8px; margin-top: 12px; }
  .panel-btn { padding: 10px 14px; border-radius: 12px; font-size: 15px; }
  .cats-result-head { margin: 0 2px 10px; }
  .rh-title { font-size: 17px; }
  .rh-sub { font-size: 12px; margin-top: 2px; }
  .cond-row { gap: 6px; margin-top: 6px; }
  .cond-chip { padding: 4px 10px; font-size: 12px; }
  .cond-clear-all { font-size: 12px; }
  .cat-grid { gap: 12px; }
  .cat-card { border-radius: 18px; }
  .cat-card .body { padding: 10px 12px 12px; }
  .cat-card .name { font-size: 15px; }
  .cat-card .trait { font-size: 12px; margin-top: 4px; }
  .stage-chip { font-size: 11px; padding: 2px 8px; }
  .cat-card .stage-chip { font-size: 11px; padding: 2px 6px; }
  /* 2026.11.14 窄屏：卡片名字行 nowrap，「寄养中（待领养）」的注记要 77px，
     320/375 上会把猫名挤成一个字。手机端只留主状态，注记交给桌面和详情页 hero。 */
  .cat-card .chip-note { display: none; }
  .topbar { gap: 8px; padding: 6px 4px 14px; }
  .topbar .brand { font-size: 25px; letter-spacing: -.5px; }
  .topbar .sub { font-size: 12px; }
  .back-link { font-size: 15px; padding: 7px 14px 7px 10px; margin: -6px 0 0 -10px; }
  /* 官方近况标题已移出卡片，与同学投稿标题共用 feed-section-title */
  .feed-section-title { margin: 20px 2px 2px; }
  .feed-section-title span { font-size: 12px; }
  .post-card { border-radius: var(--radius); padding: 16px 18px 14px; margin-top: 12px; }
  .post-card-main { grid-template-columns: minmax(0, 1fr) 104px; gap: 11px; margin-top: 10px; }
  .post-card h4 { margin: 8px 0 2px; }
  .post-card .preview { line-height: 1.75; }
  .post-thumb-wrap { width: 104px; height: 82px; }
  .post-actions { margin: 14px -18px -14px; }
  .post-action { min-height: 40px; font-size: var(--fs-body); }
}

/* 相册投稿 */
.album-submit { flex: none; padding: 7px 11px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 600; }
.album-submit:hover { background: #f4d9c4; }
.submit-panel { padding: 18px 18px 20px; }
.submit-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.submit-heading h2 { font-size: 22px; line-height: 1.35; margin-top: 3px; }
.eyebrow { color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .05em; }
.submit-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; color: var(--accent); background: var(--accent-soft); font-size: 25px; }
.submit-intro { margin: 12px 0 16px; color: var(--ink-2); font-size: 13.5px; }
.submit-pair {
  display: grid;
  /* 投稿类型只需容纳短选项，给关联猫咪留出更充足的姓名与状态空间。 */
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 14px;
}
.field-label { display: block; margin-top: 13px; color: var(--ink-2); font-size: 13px; font-weight: 600; }
/* font-size 必须 ≥16px：iOS Safari 聚焦小字号输入框会自动放大整页，造成页面晃动 */
.field-label input, .field-label textarea, .field-label select { display: block; width: 100%; margin-top: 6px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fffdfb; color: var(--ink); font: inherit; font-size: 16px; font-weight: 400; outline: none; }
.submit-pair select, .submit-pair .cat-picker-trigger { min-height: 46px; }
.field-label textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.field-label input[type=file] { padding: 9px; background: var(--gray-soft); }
.field-label input:focus, .field-label textarea:focus, .field-label select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field-help { display: block; margin-top: 5px; color: var(--ink-3); font-size: 12px; font-weight: 400; }
/* 选完猫后出现的一句说明：告诉同学为什么预选了这个类型，以及可以改成什么 */
.kind-auto { display: block; margin-top: 5px; color: var(--ink-3); font-size: var(--fs-meta); font-weight: 400; line-height: 1.5; }
.kind-auto:empty { display: none; }
.consent-line { display: flex; align-items: flex-start; gap: 7px; margin-top: 15px; color: var(--ink-2); font-size: 12px; font-weight: 400; }
.consent-line input { flex: none; margin-top: 4px; accent-color: var(--accent); }
.submit-actions { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.submit-button { border: 0; border-radius: 10px; padding: 10px 22px; background: var(--accent); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.submit-button:hover { background: linear-gradient(120deg, var(--accent), var(--rose)); }
.submit-button:disabled { opacity: .55; cursor: wait; }
.submit-link { color: var(--accent); font-size: 13px; }
.submit-status { min-height: 22px; margin-top: 13px; color: var(--ink-3); font-size: 13px; }
.submit-status.success { color: var(--green); }
.submit-status.error { color: var(--red); }

/* 极简加粗文本与官方近况的换行 */
.off-text strong { color: var(--ink); font-weight: 700; }

/* 官方近况（2026.9.29）：标题移出卡片，与同学投稿共用 .feed-section-title 样式完全对齐
   （色条也统一）；下面直接铺扁卡，不再有外框卡片壳。 */
.official-title { margin-top: 14px; }
.feed-section-title a { color: var(--ink-2); font-size: 13px; font-weight: 500; }
.official-page { max-width: 880px; margin: 0 auto; }
.official-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 6px 2px 0; }
.official-head .eyebrow { color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .14em; }
.official-head h2 { margin-top: 4px; color: var(--ink); font-size: 30px; line-height: 1.2; letter-spacing: -.04em; }
.official-count { flex: none; color: var(--ink-3); font-size: 13px; padding-bottom: 6px; }
.official-intro { margin: 8px 2px 0; color: var(--ink-2); font-size: 13.5px; line-height: 1.75; }
.ot-list { margin-top: 14px; }
.ot-day { display: grid; grid-template-columns: 64px 20px minmax(0, 1fr); }
.ot-day + .ot-day { margin-top: 4px; }
.ot-date { padding-top: 12px; }
.ot-date b { display: block; color: var(--ink); font-size: 17px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ot-date span { display: block; margin-top: 2px; color: var(--ink-3); font-size: 11px; }
.ot-rail { position: relative; }
.ot-rail::before { content: ''; position: absolute; left: 9px; top: 0; bottom: -4px; width: 2px; background: var(--line); }
.ot-day:first-child .ot-rail::before { top: 21px; }
.ot-day:last-child .ot-rail::before { bottom: auto; height: 21px; }
/* 只有一天时，竖线要贯穿整段，否则看起来不像时间轴 */
.ot-day:only-child .ot-rail::before { top: 21px; bottom: 30px; height: auto; }
/* 末尾一天：竖线收在圆点稍下方 */
.ot-day:last-child .ot-rail::before { bottom: auto; height: 21px; }
/* 非末尾的每一天：竖线一直向下贯穿到下一天，接缝不留空 */
.ot-day:not(:last-child) .ot-rail::before { bottom: -14px; }
.ot-node { position: absolute; left: 5px; top: 16px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid #f6f3ee; box-sizing: border-box; }
.node-medical { background: var(--green); }
.node-status { background: var(--amber); }
.node-rel { background: var(--blue); }
.node-daily { background: var(--accent); }
.ot-events { display: flex; flex-direction: column; gap: 8px; padding: 8px 0 12px 8px; min-width: 0; }
/* 事件卡左侧色条 = 时间轴圆点的颜色（医疗绿 / 状态琥珀 / 关系蓝 / 日常橙），一屏里能按颜色扫读 */
.ot-event { border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 12px; background: var(--card); padding: 9px 11px; }
.ot-event.tone-medical { border-left-color: var(--green); }
.ot-event.tone-status { border-left-color: var(--amber); }
.ot-event.tone-rel { border-left-color: var(--blue); }
.ot-top { display: flex; align-items: center; justify-content: flex-start; gap: 8px; min-width: 0; }
.ot-cats { display: flex; align-items: center; min-width: 0; gap: 6px; overflow: hidden; }
.ot-cats .cat-badge { padding: 2px 9px 2px 2px; border-radius: 999px; background: var(--gray-soft); border: 1px solid var(--line); }
.ot-cats .cat-badge-arrow { display: none; }
.ot-cats .cat-badge-img, .ot-cats .cat-badge-avatar { width: 24px; height: 24px; }
.ot-cats .cat-badge-avatar { font-size: 13px; }
.ot-cats .cat-badge-copy small { display: none; }
.ot-cats .cat-badge-copy strong { font-size: 12px; }
.ot-tag { flex: none; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.tone-medical .ot-tag { background: var(--green-soft); color: var(--green); }
.tone-status .ot-tag { background: var(--amber-soft); color: var(--amber); }
.tone-rel .ot-tag { background: var(--blue-soft); color: var(--blue); }
.tone-daily .ot-tag { background: var(--accent-soft); color: var(--accent); }
.ot-main { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: start; margin-top: 8px; }
.ot-event p { margin: 0; color: var(--ink); font-size: 14.5px; line-height: 1.8; overflow-wrap: anywhere; white-space: pre-wrap; }
.ot-event p strong { font-weight: 700; }
.ot-thumb { display: block; width: 92px; height: 69px; overflow: hidden; border-radius: 9px; background: var(--gray-soft); }
.ot-thumb picture, .ot-thumb img { width: 100%; height: 100%; }
.ot-thumb img { object-fit: cover; }
.feed-section-title { display: flex; align-items: baseline; justify-content: space-between; margin: 28px 4px 8px; }
.feed-section-title h3 { font-size: var(--fs-section); font-weight: 800; color: var(--ink); }
.feed-section-title h3::before { content: ''; display: inline-block; width: 5px; height: 1.05em; margin-right: 9px; border-radius: 3px; background: var(--blue); vertical-align: -2px; }
.feed-section-title span { color: var(--ink-3); font-size: 18px; }
/* 「今日更新 N 条」（2026.10.2）：紧贴「官方近况」标题右侧，margin-right:auto 把「更多 ›」顶到最右。
   用两级选择器，否则会被上面那条 .feed-section-title span（18px 灰字）压掉。 */
/* 同学投稿筛选 chips（2026.10.4 用户定稿）：分两行——
   第一行「同学投稿」标题 + 「全部」两端分布（.feed-chips 用 margin-left:auto 顶右）；
   第二行「置顶喵」「精选喵」换行到标题下方、靠左（.feed-chips-rest 撑满整行、内容左对齐）。
   三颗挤一行时不再靠缩字号硬塞，直接换行。第二行同选择器写在同一区块后面，确保盖过 margin-left:auto。 */
.feed-title-row { flex-wrap: wrap; row-gap: 10px; }
.feed-chips { margin: 0 0 0 auto; padding: 0; align-self: center; gap: 6px; }
/* 视觉对齐（2026.10.13 像素量测）：「全部 · 今日+10」chip 墨迹偏左 2.8px ——
   左留白比右留白少 1px，且徽章是绿色重墨、文字轻，把左右 padding 调成 15/14、间隙收 1px。 */
/* 视觉对齐 · 二次修正（2026.10.13，用户指出「16:44」与「今日+12」不在同一水平线）：
   两颗 chip 此前走了两套布局模型 —— 刷新 chip 是 flex 居中、「全部」chip 是基线对齐，
   像素墨迹实测徽章纵向差 1.13px（刷新徽章墨迹中心比 chip 中心高 1.02px，今日徽章只低 0.11px）。
   修法：row 内所有 chip 统一成 inline-flex + align-items:center（徽章一律按盒子居中），
   再把两枚徽章整体下移 1px，抵消 line-height 1.7 在 11px 字号下造成的「墨迹偏上」。 */
.feed-chips .chip { display: inline-flex; align-items: center; justify-content: center; padding: 6px 14px 6px 15px; font-size: 15px; gap: 3px; }
.feed-chips .chip .chip-today, .feed-chips .chip .chip-time { margin-left: 0; }
/* 两枚徽章分别补偿（同一次像素量测得出，勿凭感觉改）：flex 居中后墨迹中心
   比盒中心高约 0.9px，故整体下移；其中「16:44」是数字（墨迹只占 cap 高、重心偏下）、
   「今日」是汉字（墨迹占满 em 盒、重心偏上），两者再各差 0.6px，需分开补偿。 */
.feed-chips .chip .chip-today { transform: translateY(.02em); }
.feed-chips .chip .chip-time { transform: translateY(.08em); font-variant-numeric: tabular-nums; }
/* 刷新按钮（2026.10.13 用户定稿）：并入「全部」那一行、排在它左边，不再单独占一行；
   外观与「全部 · 今日 +N」同构（文字 + 小徽章），刻意不加 ↻ 图标。
   用两级类名压过上面 .feed-chips .chip 的 padding，否则会被它接管。 */
.feed-chips .chip.chip-refresh { display: inline-flex; align-items: center; justify-content: center; padding-left: 12px; padding-right: 10px; white-space: nowrap; }
.feed-chips .chip.chip-refresh:disabled { opacity: .7; cursor: wait; }
.feed-chips .chip.chip-refresh.is-error { color: var(--accent); border-color: var(--accent); }
.feed-chips.feed-chips-rest { flex: 0 0 100%; width: 100%; margin-left: 0; justify-content: flex-start; align-self: flex-start; }
.feed-filter-tools { display:flex; flex:0 0 100%; gap:10px; align-items:center; min-width:0; }
.feed-filter-tools .feed-chips.feed-chips-rest { flex:0 0 auto; width:auto; align-self:center; }
.feed-filter-tools .chip { padding:6px 12px; white-space:nowrap; }
.feed-search-wrap { position:relative; flex:1; min-width:0; margin-left:auto; max-width:340px; }
.feed-search-wrap::before { content:''; position:absolute; left:11px; top:9px; width:10px; height:10px; border:1.5px solid var(--accent); border-radius:50%; pointer-events:none; }
.feed-search-wrap::after { content:''; position:absolute; left:21px; top:20px; width:5px; height:1.5px; background:var(--accent); transform:rotate(45deg); transform-origin:left center; pointer-events:none; }
/* 搜索沿用全站字体，不继承标题粗体；输入仍为16px，避免iOS聚焦放大。 */
.feed-search-wrap input { width:100%; min-width:0; box-sizing:border-box; height:32px; padding:3px 28px 3px 31px; border:1px solid var(--accent-soft); border-radius:999px; background:var(--accent-soft); color:var(--ink); font:inherit; font-family:inherit; font-size:16px; font-weight:400; letter-spacing:normal; line-height:24px; outline:none; appearance:none; -webkit-appearance:none; }
.feed-search-wrap input::placeholder { color:var(--ink-2); font-family:inherit; font-size:13px; font-weight:400; opacity:1; }
.feed-search-wrap input:focus { border-color:var(--accent); background:var(--card); }
.feed-search-wrap input::-webkit-search-cancel-button { display:none; }
.feed-search-wrap button { position:absolute; right:4px; top:4px; width:24px; height:24px; padding:0; border:0; background:transparent; color:var(--ink-3); font-size:18px; line-height:24px; }
.feed-search-result { display:table; margin:0 25px 10px; padding:3px 14px; border-radius:999px; background:var(--accent-soft); color:var(--ink-2); font-family:inherit; font-size:12px; font-weight:400; line-height:1.6; }
[data-feed-list] { overflow-anchor:none; }
.chip .chip-today, .chip .chip-time { margin-left: 6px; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; line-height: 1.7; color: var(--accent); background: var(--accent-soft); white-space: nowrap; }
.chip.on .chip-today { color: #fff; background: rgba(255,255,255,.2); }
.community-feed { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; align-items: stretch; }
.community-feed .post-card { margin-top: 0; }
.cat-badge { display: inline-flex; align-items: center; gap: 8px; min-width: 0; color: inherit; }
.cat-badge.compact { flex: none; max-width: 180px; }
.cat-badge-img, .cat-badge-avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; background: var(--gray-soft); flex: none; }
.cat-badge-avatar { display: grid; place-items: center; font-size: 21px; }
.cat-badge-copy { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.cat-badge-copy strong { font-size: 13px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat-badge-copy small { margin-top: 3px; color: var(--ink-3); font-size: var(--fs-meta); }
.cat-badge-arrow { color: var(--ink-3); font-size: 17px; }
.cat-badge-empty { color: var(--ink-3); font-size: 13px; }
/* 顶部 4px 是状态色带，颜色由「状态色表」里的 .post-card[data-stage=...] 决定（属性选择器优先级更高，压得住这里的简写）。
   猫册、动态页、同学投稿三处卡片一律「顶部色带」，别再有一处走左侧。 */
/* 卡片等高（用户 2026.9.28）：grid 用 stretch + 卡片自身 flex 列，让底部操作条永远贴底对齐 */
.post-card { background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--gray-soft); border-radius: 26px; padding: 26px 34px 22px; margin-top: 14px; display: flex; flex-direction: column; }
.post-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.community-pin-badge { display: inline-flex; align-items: center; gap: 3px; flex: none; margin-right: auto; padding: 3px 8px; border: 1px solid #f2d4c0; border-radius: 999px; background: #fff4ec; color: var(--accent); font-size: 11px; font-weight: 700; line-height: 1.35; white-space: nowrap; }
.community-pinned { position: relative; }
.post-meta { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 6px; min-width: 0; color: var(--ink-3); font-size: var(--fs-meta); }
/* 日期在右上角，是这一行的主信息；来源标签做次要信息跟在后面 */
.post-meta .post-time { color: var(--ink-2); font-weight: 600; font-variant-numeric: tabular-nums; }
.post-card .src { font-size: 11px; padding: 1px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.post-card .src.src-student { background: var(--blue-soft); color: var(--blue); }
/* 「审核中」：我投的还没过审，只有我自己看得见。用琥珀（还在等），跟来源标签（橙=官方/蓝=同学）不同语义 */
.src-wait { background: var(--amber-soft); color: var(--amber); }
.waiting-tip { margin-top: 12px; padding: 9px 12px; border-radius: 10px; background: var(--amber-soft); color: #7a5312; font-size: var(--fs-meta); line-height: 1.6; }
/* 作者自己的操作区：删除按钮刻意做小做淡，跟点赞那条操作条分开，别让人误触 */
.post-owner-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.post-delete { border: 1px solid var(--line); background: var(--card); color: var(--ink-2); border-radius: 10px; padding: 7px 14px; font-size: var(--fs-meta); cursor: pointer; }
.post-delete:hover { border-color: var(--red); color: var(--red); }
.post-delete:disabled { opacity: .5; cursor: wait; }
.post-delete-tip { color: var(--ink-3); font-size: var(--fs-meta); }
/* 改自己的稿（2026.9.29）：跟「删除」同款按钮，只换颜色区分，别抢主操作的视觉重量 */
.post-edit { border: 1px solid var(--line); background: var(--card); color: var(--ink-2); border-radius: 10px; padding: 7px 14px; font-size: var(--fs-meta); cursor: pointer; }
.post-edit:hover { border-color: var(--blue); color: var(--blue); }
.post-edit { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.post-edit svg { flex: 0 0 16px; }
.post-edit-panel { margin-top: 16px; padding: 18px 16px 16px; border: 1px solid #eee4d8; border-radius: 14px; background: #faf5ee; }
.post-edit-panel[hidden] { display: none; }
.post-edit-heading { color: var(--ink); font-size: 16px; font-weight: 600; }
.post-edit-panel .field-label { margin-top: 14px; font-weight: 400; }
.post-edit-panel .field-label input, .post-edit-panel .field-label textarea { padding: 12px 14px; background: #fffdfb; font-weight: 400; }
.post-edit-panel .field-label textarea { min-height: 140px; }
.post-edit-panel .field-label input, .post-edit-panel .field-label textarea { font-size: 16px; } /* iOS 上 <16px 会触发自动缩放 */
.post-edit-form, .post-edit-panel .field-label { min-width: 0; }
.post-edit-panel input[type="date"], .sub-row .f-date input[type="date"] { display: block; width: 100%; min-width: 0; max-width: 100%; min-height: 46px; box-sizing: border-box; appearance: none; -webkit-appearance: none; text-align: left; }
.post-edit-panel input[type="date"]::-webkit-date-and-time-value, .sub-row .f-date input[type="date"]::-webkit-date-and-time-value { min-width: 0; text-align: left; }
.post-edit-foot { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.post-edit-tip { flex: 1 1 auto; min-width: 0; color: var(--ink-2); font-size: var(--fs-meta); }
.post-edit-tip:empty { display: none; }
.post-edit-cancel, .post-edit-save { border-radius: 10px; padding: 8px 16px; font-size: var(--fs-body); cursor: pointer; }
.post-edit-cancel { border: 1px solid var(--line); background: var(--card); color: var(--ink-2); }
.post-edit-save { border: 0; background: var(--accent); color: #fff; font-weight: 600; }
.post-edit-save:disabled { opacity: .55; cursor: wait; }
/* 「只有一次机会」的醒目提示条：放在表单最上面，保存前一定会看到（2026.10.5 一次机会机制） */
.post-edit-warning { margin: 6px 0 0; padding: 0; border: 0; background: transparent; color: var(--ink-2); font-size: var(--fs-meta); font-weight: 400; line-height: 1.65; }

/* ---------- 留言区（2026.9.29）---------- */
.comment-zone { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.comment-head { font-size: var(--fs-card-title); font-weight: 700; color: var(--ink); margin-bottom: 12px; }
.comment-count { color: var(--ink-3); font-weight: 400; font-size: var(--fs-meta); }
/* 隐私提醒固定放在输入区之后，作为轻量的小字说明 */
.comment-notice { margin-top: 8px; color: var(--ink-3); font-size: var(--fs-meta); line-height: 1.55; }
.comment-list { display: flex; flex-direction: column; gap: 12px; }
.comment-list:empty { display: none; }
.comment-row { height: 72px; box-sizing: border-box; padding: 8px 13px; display: flex; flex-direction: column; justify-content: center; overflow: hidden; border-radius: 13px; background: var(--gray-soft); }
.comment-row.mine { background: var(--accent-soft); }
.comment-top { min-width: 0; display: flex; align-items: baseline; gap: 8px; line-height: 18px; }
.comment-top b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-meta); color: var(--ink); }
.comment-top time { color: var(--ink-3); font-size: var(--fs-meta); font-variant-numeric: tabular-nums; }
.comment-del { margin-left: auto; border: 0; background: transparent; color: var(--ink-3); font-size: var(--fs-meta); cursor: pointer; padding: 0 2px; }
.comment-del:hover { color: var(--red); }
.comment-body { min-width: 0; margin-top: 2px; font-size: var(--fs-body); line-height: 17px; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.comment-form { margin-top: 14px; }
.comment-form-row { display: flex; align-items: stretch; gap: 8px; }
.comment-nick { flex: 1 1 auto; min-width: 0; height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--card); color: var(--ink); font: inherit; font-size: 16px; }
.comment-send { flex: 0 0 64px; min-height: 46px; padding: 0 12px; border: 0; border-radius: 11px; background: var(--accent); color: #fff; font: inherit; font-size: var(--fs-body); font-weight: 600; cursor: pointer; }
.comment-send:disabled { opacity: .55; cursor: wait; }
.comment-input { flex: 1 1 auto; width: 0; min-width: 0; height: 46px; margin: 0; padding: 11px 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--card); color: var(--ink); font: inherit; font-size: 16px; line-height: 1.5; resize: none; box-sizing: border-box; }
.comment-input:disabled { background: var(--gray-soft); cursor: not-allowed; }
/* 表情面板（2026.9.29）：分类 tab + 表情网格；配图功能已下线，相关样式已删 */
.comment-emoji { flex: 0 0 46px; min-height: 46px; padding: 0; border: 1px solid var(--line); border-radius: 11px; background: #fff; font-size: 20px; line-height: 1; cursor: pointer; }
.comment-emoji:hover { background: var(--gray-soft); }
.emoji-panel { margin-top: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 11px; background: #fffdfb; }
.emoji-panel[hidden] { display: none; }
.emoji-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.emoji-tab { padding: 4px 11px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink-2); font: inherit; font-size: 12px; cursor: pointer; }
.emoji-tab.active { border-color: transparent; background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.emoji-grid { display: flex; flex-wrap: wrap; gap: 2px; }
.emoji-item { width: 34px; height: 34px; border: 0; border-radius: 8px; background: none; font-size: 20px; line-height: 1; cursor: pointer; }
.emoji-item:hover { background: var(--gray-soft); }
.comment-tip { min-height: 1.4em; margin-top: 6px; color: var(--red); font-size: var(--fs-meta); }
/* 留言配图相关样式已整体删除（2026.9.29 功能下线）：comment-attach / comment-pick / comment-imgs */
.comment-body:empty { display: none; }
/* 留言身份（2026.9.29）：已通过口令的同学自动带投稿昵称；没通过的先过口令这一关 */
.comment-as { margin-left: auto; color: var(--ink-3); font-size: var(--fs-meta); font-weight: 400; }
.comment-as-note { flex: 1 1 auto; min-width: 0; color: var(--ink-3); font-size: var(--fs-meta); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.comment-pass { margin: 0 0 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: #fffdfb; }
.comment-pass-title { font-size: var(--fs-body); font-weight: 700; color: var(--ink); }
.comment-pass-sub { margin-top: 3px; color: var(--ink-3); font-size: 12px; line-height: 1.5; }
/* 管理页里「为什么这条没自动放行」的标记：琥珀=需要人看一眼，跟来源色不同语义 */
.admin-item-flag { color: var(--amber); font-weight: 600; }
/* 主体吃掉剩余高度，操作条才贴底；同一行卡片就能一样高 */
.post-card-main { display: grid; grid-template-columns: minmax(0, 1fr) 148px; gap: 16px; align-items: start; margin-top: 16px; flex: 1; }
/* 标题只留一行，超出的截断成省略号，完整内容点进详情看（用户 2026.9.28） */
.post-card h4 { font-size: var(--fs-card-title); font-weight: 700; margin: 2px 0 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* 没写标题时，投稿类型顶在标题位：跟 h4 同字号同行高（卡片不会忽高忽低），
   颜色淡一档表示这是自动补的，不是同学自己写的标题 */
.h4-kind { color: var(--ink-2); font-weight: 600; }
/* 投稿正文与官方近况统一：深色正文 + 暖色标签，不再用浅灰 */
/* 正文与底部操作条同字号（用户 2026.9.28 定稿）：赞 / 详情 / 详情页的赞 /「也见到XX？」/ 正文，全部 14px（手机 13px） */
.post-card .preview { font-size: var(--fs-body); color: var(--ink); line-height: 1.75; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
/* 来源标签分色：救助小队是暖橙，同学投稿是蓝——以前两条被一条规则统一成橙色，两块内容就混在一起了 */
.post-card.official-card .src { background: var(--accent-soft); color: var(--accent); }
/* 卡片左侧色条 = 这只猫的状态色，颜色值统一在上面的「状态色表」 */
.post-thumb-wrap { width: 148px; height: 112px; overflow: hidden; border-radius: 10px; background: var(--gray-soft); }
.post-thumb-wrap picture, .post-thumb-wrap .thumb { width: 100%; height: 100%; }
.post-card .thumb { border-radius: 0; object-fit: cover; }
.post-card .foot { display: flex; align-items: center; gap: 14px; margin-top: 11px; font-size: 12px; color: var(--ink-3); }
.post-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 22px -34px -22px; border-top: 1px solid var(--line); }
/* 底部操作条统一节奏：主页卡片、同学投稿卡、帖子详情页三处字号/高度/字重必须一致（14px / 40px / 600）
   2026.9.29：高度从 50 压到 40（用户要求），emoji 视觉居中交给 flex，不再用 2px 补偿。 */
.post-action { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 8px; border: 0; border-radius: 0; background: transparent; color: var(--ink-2); font: inherit; font-size: var(--fs-body); font-weight: 600; line-height: 1; cursor: pointer; }
.post-action + .post-action { border-left: 1px solid var(--line); }
.post-action b { margin-left: 3px; font-weight: 700; }
/* 操作条文字不许换行（一换行高度就参差不齐），超宽直接省略 */
.post-action { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.post-action:hover { border-color: var(--accent); color: var(--accent); }
/* 点赞用玫红，和主色橙拉开；点了赞就整块染上淡玫红底 */
.like-action:hover { border-color: var(--rose); color: var(--rose); }
.like-action.active { background: var(--rose-soft); color: var(--rose); }
.like-action:disabled { opacity: .55; cursor: wait; }
.post-actions .detail-link { color: var(--accent); }

/* 猫咪详情页：趣谈先展示成长足迹，再展示关系与怪谈 */
.growth-section { margin-top: 18px; }
.growth-list { list-style: none; margin: 10px 0 0; padding: 0 0 0 16px; border-left: 2px solid #f0d9bf; }
.growth-item { position: relative; display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 14px; padding: 0 0 18px 18px; }
.growth-item::before { content: ''; position: absolute; left: -7px; top: 5px; width: 11px; height: 11px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px #fff7ef; }
.growth-item:last-child { padding-bottom: 2px; }
.growth-date { color: var(--accent); font-size: 13px; font-weight: 700; line-height: 1.55; overflow-wrap: anywhere; word-break: break-word; }
.timeline-category { display: inline-block; margin-left: 6px; padding: 2px 7px; border-radius: 999px; background: var(--accent-soft); color: var(--ink-2); font-size: 11px; font-weight: 600; vertical-align: 1px; white-space: nowrap; }
.growth-copy { min-width: 0; }
.growth-copy h4 { margin: 0; color: var(--ink); font-size: 15px; line-height: 1.55; }
.growth-copy p { margin: 4px 0 0; color: var(--ink-2); font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; white-space: pre-wrap; }
.growth-copy .growth-direct { margin-top: 0; }
.growth-more { border: 0; padding: 3px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font: inherit; font-size: 12px; cursor: pointer; }
.growth-modal { position: fixed; inset: 0; z-index: 110; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(30, 24, 18, .52); }
.growth-modal-card { width: min(760px, 100%); max-height: min(86vh, 820px); overflow: auto; padding: 18px 20px 24px; border-radius: 16px; background: var(--card); box-shadow: 0 18px 60px rgba(30,20,10,.25); }
.growth-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.growth-modal-head h3 { margin: 0; color: var(--ink); font-size: 16px; }
.growth-modal-close { width: 32px; height: 32px; border: 0; border-radius: 50%; background: var(--gray-soft); color: var(--ink-2); font-size: 22px; cursor: pointer; }
.board-block + .board-block { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
@media (max-width: 359px) {
  .cats-quick .chip { font-size: 12px; }
}
@media (max-width: 560px) {
  .growth-item { grid-template-columns: 1fr; gap: 2px; }
  .growth-date { font-size: 12px; }
}

/* 帖子详情 */
.post-detail { max-width: 760px; margin-left: auto; margin-right: auto; }
/* 帖子详情：左右内边距比 .section 默认更宽（16→20），标题/正文框/图片同一条轨道，
   标题不再贴边；底部操作条的负 margin 必须同步 -20/-18，否则会溢出卡片。 */
.post-detail { padding: 16px 20px 18px; }
.post-detail h2 { font-size: var(--fs-detail-title); font-weight: 700; line-height: 1.45; margin: 14px 0 9px; }
/* 标题行：有昵称时固定为标题 2/3、昵称 1/3。
   标题过长只会在左栏换行，昵称始终留在同一行右侧；官方动态没有昵称时标题占满。 */
.post-title-row { display: block; }
.post-title-row.has-author { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); column-gap: 12px; align-items: start; }
.post-title-row h2 { min-width: 0; margin: 14px 0 9px; overflow-wrap: anywhere; }
.post-author { min-width: 0; margin-top: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: right; font-size: var(--fs-meta); font-weight: 700; color: var(--ink-3); }
.post-detail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
/* 同框多只猫时徽章竖着排：横排会把日期挤没，竖排跟投稿页的槽位也是一个方向 */
.post-detail-cats { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; }
.post-detail-meta { display: grid; justify-items: end; gap: 3px; flex: none; min-width: 0; color: var(--ink-3); font-size: var(--fs-meta); line-height: 1.25; }
/* 详情页的来源标签跟卡片同一套配色：救助小队暖橙、同学投稿蓝 */
.post-detail-meta .src { padding: 2px 9px; border-radius: 999px; font-weight: 700; background: var(--accent-soft); color: var(--accent); }
.post-detail-meta .src.src-student { background: var(--blue-soft); color: var(--blue); }
.post-detail-time { min-width: 0; color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.detail-cat-link { display: inline-flex; padding: 7px 10px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); font-size: 13px; }
.post-detail .body-text { font-size: var(--fs-body); line-height: 1.9; white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 14px; padding: 13px 15px; border-radius: 11px; border-left: 3px solid var(--gray-soft); background: #fbfaf7; color: var(--ink); }
/* 正文框的色条和底色 = 这只猫的状态色，跟猫册、动态卡片同一套（颜色值见「状态色表」） */
.post-detail[data-stage="campus"] .body-text { border-left-color: var(--green); background: #f6faf7; }
.post-detail[data-stage="trial"] .body-text { border-left-color: var(--teal); background: #f4faf9; }
.post-detail[data-stage="available"] .body-text { border-left-color: var(--amber); background: #fdfaf3; }
.post-detail[data-stage="hospital"] .body-text { border-left-color: var(--red); background: #fdf7f6; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.gallery img, .gallery .g-video { width: 100%; border-radius: 10px; aspect-ratio: 1/1; object-fit: cover; background: var(--gray-soft); }
.gallery picture.responsive-image { min-width:0; }
.gallery .single { grid-column: 1 / -1; aspect-ratio: auto; max-height: 420px; object-fit: contain; background: var(--card); }
/* 详情页图片可点开看大图：button 只做透明点击壳，不能带默认样式撑高/加边框 */
.gallery-cell { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 10px; overflow: hidden; -webkit-tap-highlight-color: transparent; }
.gallery-cell:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* 详情页多图轮播（2026.9.29）：横向滑动 + 自动定时播放 + 圆点/计数，
   让同学一眼看出这条动态有多张图；点击任意一张仍可进大图翻看。 */
.carousel { position: relative; margin-top: 12px; border-radius: 10px; overflow: hidden; background: var(--gray-soft); transition: height .18s ease; }
.carousel-track { display: flex; align-items: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-cell { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; -webkit-tap-highlight-color: transparent; }
.carousel-cell:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
/* 轮播保留每张原图比例；只有点「全部」后的缩略图网格才使用方格裁切。 */
.carousel-cell picture { display: block; width: 100%; }
.carousel-cell img { width: 100%; height: auto; aspect-ratio: auto; object-fit: contain; display: block; background: var(--gray-soft); }
.carousel-count { padding: 2px 10px; border-radius: 999px; background: rgba(0, 0, 0, .45); color: #fff; font-size: 12px; line-height: 1.6; pointer-events: none; }
.carousel-top { position: absolute; top: 10px; right: 10px; display: flex; gap: 6px; align-items: center; }
.carousel-mode-btn { padding: 2px 10px; border: 0; border-radius: 999px; background: rgba(0, 0, 0, .45); color: #fff; font: inherit; font-size: 12px; line-height: 1.6; cursor: pointer; }
/* 平铺模式的「▶️ 轮播」也悬浮在图片上（2026.10.14 定稿）：与轮播态「🖼 全部」同一颗胶囊、
   同一尺寸同一位置（图片区右上角 10px 内边距），手机/电脑端完全一致，不再单独占一行。 */
.gallery-wrap { position: relative; }
.gallery-wrap > .carousel-mode-btn { position: absolute; top: 10px; right: 10px; z-index: 2; }
.carousel-dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.carousel-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .55); transition: background .2s, transform .2s; }
.carousel-dot.on { background: #fff; transform: scale(1.3); }

/* 动态与趣谈的统一卡片节奏 */
.rel-card { align-items: flex-start; gap: 12px; padding: 14px 0; }
.rel-main { flex: 1; min-width: 0; }
.rel-card-top { display: flex; align-items: center; gap: 8px; min-width: 0; line-height: 1.4; }
.rel-tag { flex: none; padding: 2px 7px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 10px; white-space: nowrap; }
.rel-date { margin-left: auto; flex: none; color: var(--ink-3); font-size: 11px; white-space: nowrap; }
.rel-card .rel-desc { margin-top: 5px; line-height: 1.7; white-space: pre-wrap; }
.relation-section, .tale-section { margin-top: 18px; }
.submit-context { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: -4px 0 12px; color: var(--ink-2); font-size: 13px; }
.submit-context span { padding: 5px 9px; border-radius: 999px; background: var(--accent-soft); }

/* 同学投稿采用小红书式图片优先信息流 */
.community-feed { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px 14px; }
/* 「同学投稿」信息流标题也沿用首张卡片图片的左右边界，不贴页面边缘。
   卡片自身有 1px 边框，因此这里比卡片内容内边距多 1px。 */
.feed-section-title { margin-left: 25px; margin-right: 25px; }
/* 只改内边距和裁切，色带宽度留给「状态色表」——别在这里写死 border-top / border-left 简写，会把状态色压掉 */
/* 卡片内所有内容（猫卡 / 图 / 文字 / 操作条）共用同一个左右留白，谁都不贴到卡片边缘（用户 2026.9.29） */
.student-card { --card-gutter: 24px; padding: 0; overflow: hidden; border-top-width: 4px; border-top-color: var(--gray-soft); border-left-width: 1px; border-left-color: var(--line); }
.student-card .post-card-head { padding: 13px var(--card-gutter) 0; }
.student-card .post-card-main { display: flex; flex-direction: column-reverse; gap: 0; margin-top: 10px; padding-inline: 0; flex: 1; }
/* 文字与图片不再靠父级 stretch 间接对齐；两者直接使用同一条宽度公式。
   因此标题/正文的右边界必定等于图片右边界，和字体内容长短无关。 */
.student-card .post-thumb-wrap { width: calc(100% - (var(--card-gutter) * 2)); height: auto; aspect-ratio: 4 / 5; margin: 0 var(--card-gutter); border-radius: 12px; overflow: hidden; }
.student-card .post-thumb-wrap picture, .student-card .post-thumb-wrap .thumb { width: 100%; height: 100%; }
.student-card .post-card-copy { width: calc(100% - (var(--card-gutter) * 2)); margin: 0 var(--card-gutter); padding: 0 0 2px; }
.student-card h4 { margin-top: 11px; font-size: var(--fs-card-title); line-height: 1.45; }
/* 卡片窄时只保留完整字形：标题、正文预览统一单行省略，避免右侧露出半个字。 */
.student-card h4, .student-card .preview { display: block; width: 100%; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
/* 同学投稿卡片：正文只占一行（用户 2026.9.29）。
   min-height（不是 height）撑住这一行：没写正文的卡片也占位，整列才一样高；
   用 min-height 而不是锁死 height，是因为锁死会把中文字形上下裁掉半截。
   左右留白跟标题、图片、操作条完全一致（--card-gutter），字再多也不会顶到卡片边上。 */
.student-card .preview { font-size: var(--fs-body); line-height: 1.6; min-height: 1.6em; margin-top: 3px;
  color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* 没图的投稿也占一块同比例的灰底（一只猫爪），有图没图卡片一样高 */
.post-thumb-empty { display: grid; place-items: center; background: var(--gray-soft); color: var(--ink-3); font-size: 26px; }
.student-card .post-actions { margin: 12px var(--card-gutter) 8px; border-top: 1px solid var(--line); }
.student-card .post-action { min-height: 40px; }
@media (max-width: 720px) {
  .feed-section-title { margin-left: 19px; margin-right: 19px; }
  .student-card { --card-gutter: 18px; }
  .community-feed { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; }
  /* 手机上也保留右上角的日期（这是他自己点名要的），只去掉年份省宽度 */
  .student-card .cat-badge-copy small { font-size: var(--fs-meta); margin-top: 1px; }
  .student-card h4 { margin-top: 9px; }
/* 投稿类型顶在标题位（用户 2026.9.28 改回）：淡一档颜色 + 降一档字重，跟同学自己写的标题区分开，
   但字号、行高、外边距都跟 h4 一致，卡片标题位不会因为有没有标题而忽高忽低。 */
.h4-kind { color: var(--ink-2); font-weight: 600; }
.student-card .h4-kind { margin-top: 9px; }
  /* 手机端正文同样跟底部操作条一致：13px */
  /* 手机端同样统一：卡片和详情页底部都是 13px / 46px，不再一个 12 一个 14。
     选择器要带父类，否则压不住外面的 .post-card .post-action / .student-card .post-action（优先级相同则后来者胜，但要写全） */
  .post-card .post-action, .student-card .post-action, .post-detail-actions .post-action { min-height: 40px; padding: 0 4px; font-size: var(--fs-body); }
  .post-detail-actions .post-action { padding: 0 8px; }
  .rel-date { margin-left: 0; }
  .rel-card-top { flex-wrap: wrap; }
}
@media (min-width: 1280px) {
  .community-feed { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
video.g-video { width: 100%; border-radius: 10px; margin-top: 12px; background: #000; }
/* 详情页底部操作条：一半点赞、一半去投稿。
   2026.9.29 用户要求：赞/也见到了 与正文、视频左右边缘对齐，不再贴卡片边（去掉负 margin）。
   margin:0 = 正好等于内容盒宽度，任何屏宽下都跟视频两侧对齐；底部 -18px 维持原节奏。 */
.post-detail-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 16px 0 -18px; }
.post-detail-actions .detail-link { color: var(--accent); }
.guide-intro h2 { margin-bottom: 12px; font-size: 27px; }
.guide-row { display: grid; grid-template-columns: 42px 1fr; gap: 12px; padding: 15px 0; border-top: 1px solid var(--line); }
.guide-row b { color: var(--accent); font-size: 13px; }
.guide-row strong { display: block; margin-bottom: 4px; }
.guide-row p { margin: 0; color: var(--ink-2); font-size: 14px; }

/* 页脚 */
.footer { text-align: center; color: var(--ink-3); font-size: 12px; padding: 26px 0 10px; }
.footer a { color: var(--accent); }

/* 公示：统一公告卡体系——白卡容器 + 色点标题栏，板块内再用软色块分层 */
.notice-page { width: min(100%, 760px); margin: 0 auto; padding-bottom: 10px; }
.notice-head { padding: 12px 4px 16px; }
.notice-head h1 { color: var(--ink); font-size: 30px; line-height: 1.2; letter-spacing: -.04em; }
.notice-head p { margin-top: 5px; color: var(--ink-3); font-size: 15px; }
.notice-card { margin-top: 14px; padding: 15px 18px 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.notice-card-head { display: flex; align-items: center; gap: 8px; }
.notice-card-head h2 { color: var(--ink); font-size: 16px; font-weight: 700; line-height: 1.4; }
.notice-card-head a { margin-left: auto; flex: none; color: var(--ink-3); font-size: 12.5px; white-space: nowrap; }
.notice-card-head a:hover { color: var(--accent); }
.notice-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; }
.dot-orange { background: var(--accent); }
.dot-green { background: var(--green); }
.dot-amber { background: var(--amber); }
.notice-section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 14px 2px 9px; }
.notice-section-title h2 { color: var(--ink); font-size: 18px; line-height: 1.4; }
.notice-section-title a { flex: none; color: var(--ink-3); font-size: 13px; white-space: nowrap; }
/* 救助入口：整行卡片，左侧文案 + 右侧「支持一下」按钮 */
.notice-support-row { display: flex; align-items: center; gap: 14px; padding: 10px 12px; margin-top: 8px; border-radius: 12px; background: #f9efe4; }
.support-copy { min-width: 0; flex: 1; }
.support-copy b { display: block; color: var(--ink); font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.support-copy span { display: block; margin-top: 3px; color: var(--ink-2); font-size: 12.5px; line-height: 1.5; }
.support-btn {
  flex: none; padding: 10px 18px; border: 0; border-radius: 999px;
  background: var(--accent); color: #fff; font: inherit; font-size: 14px; font-weight: 700;
  white-space: nowrap; cursor: pointer; min-height: 40px;
}
.support-btn:hover { background: var(--ink); }

/* 公示页「最近要做」（2026.9.29 定稿）：整体一张 notice-card，内容优先本周安排
   （最多 2 条，本周没有退最新 1 条），条目用与官方近况同款扁卡。 */
.notice-card .plan-feed { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }

/* 救助二维码弹层：白卡居中，二维码清晰可扫 */
/* 弹层本身可滚动：小屏 / 横屏时二维码不会被截断 */
/* 🔴 2026.11.22 层级铁律：二维码放大层必须压在弹层/抽屉之上。
   它是从「底部抽屉(.sheet-modal z-index:1250)」里再点开的二级弹层，层级若低于 1250
   就会被抽屉整个盖住——用户点图片毫无反应，看着像「点不开放大」（本次线上问题）。
   取值须满足 1250 < qr-modal < 1400(渲染错误条)/1500(管理端抽屉)。守卫 tests/web-qr-modal.test.cjs。 */
.qr-modal { position: fixed; inset: 0; z-index: 1260; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(25,20,16,.72); overflow-y: auto; overscroll-behavior: contain; }
.qr-modal-card { position: relative; width: min(100%, 380px); margin: auto; padding: 22px 22px 18px; border-radius: 18px; background: #fff; box-shadow: 0 20px 60px rgba(0,0,0,.28); text-align: center; }
.qr-modal-card h3 { color: var(--ink); font-size: 17px; font-weight: 700; }
.qr-modal-img { margin: 14px auto 0; width: min(100%, 300px); padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--gray-soft); }
.qr-modal-img img { display: block; width: auto; height: auto; max-width: 100%; margin: 0 auto; object-fit: contain; border-radius: 8px; }
.qr-modal-note { margin-top: 13px; color: var(--ink-3); font-size: 12.5px; line-height: 1.7; }
.qr-modal-close { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--gray-soft); color: var(--ink-2); font-size: 20px; line-height: 1; cursor: pointer; touch-action: manipulation; }
.qr-modal-close:hover { background: var(--line); }
.notice-guide-list { margin-top: 2px; }
/* 动态页投稿入口：官方近况下方、同学投稿列表上方 */
/* 投稿入口是整页最需要被看到的东西：暖橙 → 玫粉 → 淡紫的斜向渐变，比单色块更抓眼，也顺带把色板带出来 */
.feed-submit-cta { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 12px; margin: 4px 0 20px; padding: 15px 16px; border-radius: 16px; background: linear-gradient(120deg, #fff6ec 0%, #fdeff4 52%, #f1edfa 100%); border: 1px solid #eddccd; box-shadow: 0 6px 18px rgba(150, 105, 70, .08); }
.feed-submit-cta .cta-ico { font-size: 34px; line-height: 1.1; text-align: center; }
.feed-submit-cta .cta-copy { min-width: 0; }
.feed-submit-cta .cta-copy b { display: block; color: var(--ink); font-size: 15px; font-weight: 800; letter-spacing: -.01em; }
.feed-submit-cta .cta-copy small { display: block; margin-top: 2px; color: var(--ink-2); font-size: 12.5px; }
.feed-submit-cta .cta-go { flex: none; padding: 8px 16px; border-radius: 999px; background: linear-gradient(120deg, var(--accent), #d0563f); color: #fff; font-size: 13.5px; font-weight: 700; white-space: nowrap; }
.feed-submit-cta:hover .cta-go { background: linear-gradient(120deg, #ad5f31, var(--rose)); }
/* 相处指南 01-03（2026.9.29 压短）：单行流式——编号+核心词+一句话解释，紧凑不占高 */
.notice-guide-list { margin-top: 10px; }
.notice-guide-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.notice-guide-row:last-child { padding-bottom: 0; border-bottom: 0; }
.notice-guide-row .guide-no { flex: none; min-width: 20px; color: var(--accent); font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; }
.notice-guide-row b { flex: none; color: var(--ink); font-size: 13.5px; font-weight: 800; letter-spacing: -.01em; }
.notice-guide-row small { color: var(--ink-3); font-size: 12.5px; line-height: 1.6; }
/* 相处指南 04/05（2026.9.29）：并排两个半宽按钮框，点击开弹层 */
.guide-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.guide-pair-btn { display: flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--gray-soft); padding: 11px 12px; font: inherit; cursor: pointer; transition: border-color .15s ease; }
.guide-pair-btn:active { border-color: var(--accent); }
.guide-pair-btn .guide-no { color: var(--accent); font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; }
.guide-pair-btn b { flex: 1; text-align: left; color: var(--ink); font-size: 13.5px; font-weight: 800; }
.guide-pair-btn i { color: var(--ink-3); font-size: 15px; font-style: normal; }
.notice-money-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.notice-money-grid .cell { min-width: 0; padding: 11px 13px; border-radius: 10px; }
.cell-in { background: var(--green-soft); }
.cell-out { background: var(--amber-soft); }
.cell-left { background: var(--gray-soft); }
.notice-money-grid span, .notice-money-grid b { display: block; }
.notice-money-grid span { font-size: 11.5px; }
.cell-in span { color: var(--green); }
.cell-out span { color: var(--amber); }
.cell-left span { color: var(--ink-2); }
.notice-money-grid b { margin-top: 2px; color: var(--ink); font-size: 17px; letter-spacing: -.02em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.notice-money-note { display: block; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 12px; }
.notice-money-note:hover { color: var(--accent); }
.notice-detail { max-width: 760px; }
.notice-detail .topbar { padding-bottom: 12px; }
.notice-task-list { margin-top: 10px; }
.notice-task-card { display: block; padding: 16px 18px; margin-top: 10px; border-radius: 12px; background: #f9efe4; }
.notice-task-card > span { color: var(--accent); font-size: 12px; font-weight: 700; }
.notice-task-card h3 { margin-top: 7px; color: var(--ink); font-size: 18px; }
.notice-task-card p { margin-top: 5px; color: var(--ink-2); font-size: 14px; }
.notice-task-row { display: grid; grid-template-columns: 52px 82px minmax(0, 1fr) 18px; align-items: center; gap: 10px; padding: 14px 2px; border-bottom: 1px dashed var(--line); }
.notice-task-row:last-child { border-bottom: 0; }
.notice-task-row time { color: var(--accent); font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; }
.notice-task-row > span { color: var(--ink-2); font-size: 12px; }
.notice-task-row div { min-width: 0; }
.notice-task-row b, .notice-task-row small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notice-task-row b { color: var(--ink); font-size: 14px; }
.notice-task-row small { color: var(--ink-3); font-size: 12px; }
.notice-task-row i { color: var(--ink-3); font-size: 20px; font-style: normal; text-align: right; }
.notice-guide-all { margin-top: 6px; }
.notice-guide-all article { position: relative; padding: 18px 0 18px 40px; border-bottom: 1px dashed var(--line); }
.notice-guide-all article:last-child { border-bottom: 0; }
.notice-guide-all article > span { position: absolute; left: 0; top: 19px; color: var(--accent); font-size: 12px; font-weight: 800; }
.notice-guide-all h3 { color: var(--ink); font-size: 17px; }
.notice-guide-all p { margin-top: 5px; color: var(--ink-2); font-size: 14px; line-height: 1.75; }
.notice-guide-all strong, .notice-guide-all small { display: block; margin-top: 8px; font-size: 13px; }
.notice-guide-all strong { color: var(--accent); }
.notice-guide-all small { color: var(--ink-3); }
.notice-no-ledger { margin-top: 12px; padding: 14px 2px 0; color: var(--ink-3); font-size: 14px; }

/* 动态里的官方近况（2026.9.29 用户定稿）：弃时间轴，每条一张贴左扁卡——
   左上猫徽章+标签、右上角日期、下面一行正文 */
.official-feed-timeline { margin-top: 2px; display: flex; flex-direction: column; gap: 6px; }
.of-item { border: 1px solid var(--line); border-radius: 10px; background: var(--card); padding: 7px 10px 8px; }
.of-meta { display: flex; align-items: center; gap: 8px; min-width: 0; }
.of-meta .ot-cats { gap: 4px; flex: none; }
.of-meta .ot-cats .cat-badge-copy small, .of-meta .ot-cats .cat-badge-arrow { display: none; }
/* 官方近况卡两行视觉对齐（2026.10.18 用户定稿）：日期与左侧「徽章+标签」同一行，
   「查看详情」浮在正文第一行右端——两行各归各行，不做整体竖排方块。 */
.of-date { margin-left: auto; flex: none; color: var(--ink-3); font-size: 11px; white-space: nowrap; }
.of-date b { color: var(--ink); font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.of-item p .official-detail-link { float: right; margin: 0 0 0 10px; padding: 0; color: var(--accent); font-size: 11.5px; line-height: 21px; }
.of-item p .official-detail-link:hover { color: var(--accent); text-decoration: underline; }
.official-detail-link { display: inline-flex; align-items: center; color: var(--ink-3); font-size: 11px; line-height: 1.4; white-space: nowrap; padding: 6px 0 6px 6px; }
.ot-top > .official-detail-link { margin-left: auto; }
/* 官方近况整页：查看详情浮在正文第一行右端（与动态页同一规律），正文行高 14.5×1.8≈26.1 */
.ot-event p .official-detail-link { float: right; margin: 0 0 4px 10px; padding: 0; color: var(--accent); font-size: 12px; line-height: 24px; }
.ot-event p .official-detail-link:hover { color: var(--accent); text-decoration: underline; }
.of-item p { margin: 4px 0 0; color: var(--ink); font-size: 13.5px; line-height: 1.65; overflow-wrap: anywhere; }
.of-item.tone-medical { border-left: 3px solid var(--green); }
.of-item.tone-status { border-left: 3px solid var(--amber); }
.of-item.tone-rel { border-left: 3px solid var(--blue); }

/* 猫册 / 同学投稿统一为：桌面四列、手机两列；操作文字不得挤换行 */
.community-feed { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
/* 同学投稿是小卡片（窄列），右上角那行放不下「日期 + 来源」两样：
   只保留日期并去掉年份，来源标签让位，避免被挤成竖排。 */
.student-card .post-meta .src { display: none; }
.student-card .post-meta .post-time { font-size: var(--fs-meta); }
.student-card .post-meta .post-time .ty { display: none; }
.student-card .detail-link { min-width: 0; padding-left: 3px; padding-right: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.student-card .post-action { min-width: 0; min-height: 34px; padding: 0 4px; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 721px) {
  .community-feed { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 16px; }
}
@media (max-width: 720px) {
  .notice-page { width: 100%; }
  .notice-head { padding: 6px 2px 14px; }
  .notice-head h1 { font-size: 26px; }
  .notice-card { margin-top: 12px; padding: 13px 15px 12px; border-radius: 14px; }
  .notice-support-row { flex-direction: row; align-items: center; gap: 10px; padding: 9px 11px; margin-top: 8px; }
  .support-copy b { font-size: 15px; }
  .support-copy span { font-size: 12px; }
  .support-btn { padding: 9px 14px; font-size: 13px; }
  .guide-pair { gap: 8px; }
  .notice-money-grid b { font-size: 15px; }
  .notice-task-row { grid-template-columns: 44px 68px minmax(0, 1fr) 14px; gap: 6px; }
  .official-head h2 { font-size: 25px; }
  .official-intro { font-size: 13px; }
  .ot-day { grid-template-columns: 46px 16px minmax(0, 1fr); }
  .ot-date { padding-top: 11px; }
  .ot-date b { font-size: 14px; }
  .ot-date span { font-size: 10px; }
  .ot-rail::before { left: 7px; }
  .ot-node { left: 3px; }
  .ot-events { padding-left: 9px; }
  .ot-event p { font-size: 14px; }
  .ot-thumb { width: 76px; height: 57px; }
  .student-card .detail-link span { display: inline; }
}

/* ---------- 管理员页（隐藏入口 #/admin） ---------- */
.admin-tabs { display: flex; gap: 8px; margin: 12px 0 0; flex-wrap: wrap; }
.admin-tab { border: 1px solid var(--line); background: var(--card); color: var(--ink-2); border-radius: 999px; padding: 7px 15px; font-size: 13px; cursor: pointer; }
.admin-tab.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.admin-item { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-top: 12px; background: #fffdfb; }
.admin-item-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.admin-item-head b { font-size: 15px; }
.admin-item-meta { color: var(--ink-3); font-size: 12px; }
.admin-item-body { color: var(--ink-2); font-size: 14px; line-height: 1.6; margin: 8px 0 0; white-space: pre-wrap; }
.admin-thumbs { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.admin-thumbs img { width: 76px; height: 76px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.admin-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.admin-btn { border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 10px; padding: 8px 16px; font-size: 14px; cursor: pointer; }
.admin-btn.primary { background: var(--green); border-color: var(--green); color: #fff; }
.admin-btn.danger { background: var(--card); border-color: var(--red); color: var(--red); }
.admin-btn:disabled { opacity: .5; cursor: wait; }
/* 待审核页顶部的一键工具条：按钮和说明同一行，说明只是小字提示，不抢按钮的注意力 */
.admin-tool { align-items: center; gap: 10px; }
.admin-tool .kind-auto { margin-top: 0; }
.admin-warn { border: 1px solid var(--amber, #d99a2b); background: #fff8ec; color: #7a5312; border-radius: 10px; padding: 10px 12px; font-size: 12.5px; line-height: 1.6; margin-top: 12px; }
.admin-pick { width: 100%; margin-top: 6px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fffdfb; font: inherit; font-size: 16px; outline: none; }
.admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
@media (max-width: 560px) { .admin-grid { grid-template-columns: 1fr; } }

/* ---------- 投稿选猫器（猫咪缩略头像 + 状态色） ---------- */
.cat-picker { position: relative; margin-top: 6px; }
.cat-picker-trigger { display: flex; align-items: center; gap: 8px; width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fffdfb; color: var(--ink); font: inherit; font-size: 16px; text-align: left; cursor: pointer; }
/* 多猫同框：槽位上下排列，之间是加号 */
.cat-slot { position: relative; display: flex; align-items: center; gap: 6px; }
.cat-slot .cat-picker-trigger { flex: 1; min-width: 0; }
.cat-slot-remove { flex: none; width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink-3); font-size: 16px; line-height: 1; cursor: pointer; }
.cat-plus-line { display: block; margin: 5px 0; padding-left: 2px; color: var(--ink-3); font-size: 13px; font-weight: 700; }
.cat-plus-line.is-add { border: 0; background: none; font: inherit; font-size: 13px; font-weight: 700; color: var(--ink-3); cursor: pointer; text-align: left; }
.cat-plus-line.is-add:active { color: var(--accent); }
.cat-picker-trigger > picture.responsive-image, .cp-option > picture.responsive-image {
  flex: none; display: block; width: 30px; height: 30px; overflow: hidden; border-radius: 50%; background: var(--gray-soft);
}
.cp-avatar { display: block; width: 100%; height: 100%; object-fit: cover; }
.cp-avatar-empty { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--gray-soft); }
/* 猫选择器只显示本名（2026.11.14 起别名不对外展示，后台仍可用别名搜索匹配） */
.cp-name { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 5px; }
.cp-name b { flex: none; font-weight: 600; }
.cp-placeholder { color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.cp-caret { color: var(--ink-3); font-size: 12px; flex: none; }
.cp-status { flex: none; border-radius: 999px; padding: 2px 9px; font-size: 11.5px; font-weight: 600; }
/* 投稿页选猫器的状态小标，颜色同样取自上面的「状态色表」，不另写一份 */
.cp-status.s-campus { background: var(--green-soft); color: var(--green); }
.cp-status.s-trial { background: var(--teal-soft); color: var(--teal); }
.cp-status.s-available { background: var(--amber-soft); color: var(--amber); }
.cp-status.s-hospital { background: var(--red-soft); color: var(--red); }
.cp-status.s-gone { background: var(--gray-soft); color: var(--ink-3); }
.cp-status.s-meow-star { background: #efeaf3; color: #6f6480; }
/* 一行式选猫（2026.9.30）：空槽位 = 左输入 + 右「查找」，候选列表占文档流展开，不再弹浮层 */
.cat-slot-search { flex: 1; min-width: 0; }
.cat-search-row { flex: 1; min-width: 0; display: flex; gap: 10px; }
/* 🔴 必须两级选择器：小猫字段是 .field-label，其通用规则 .field-label input（0,1,1）会打到搜索框，
   强加 margin-top:6px 让输入框比「查找」按钮低 6px——看起来像上下两行没对齐（2026.9.30 用户两连报）。 */
.cat-search-row .cat-search-input { flex: 1; min-width: 0; display: block; margin-top: 0; height: 46px; min-height: 46px; box-sizing: border-box; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fffdfb; color: var(--ink); font: inherit; font-size: 16px; outline: none; -webkit-appearance: none; appearance: none; }
.cat-search-row .cat-search-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.cat-find-btn { flex: 0 0 30%; height: 46px; min-height: 46px; padding: 0 8px; border: 0; border-radius: 10px; background: var(--accent); color: #fff; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; white-space: nowrap; -webkit-tap-highlight-color: transparent; }
.cat-find-btn:active { opacity: .85; }
.cat-inline-list { margin-top: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 28px rgba(51, 48, 42, .13); overflow: hidden; max-height: 312px; -webkit-overflow-scrolling: touch; }
.cp-list .cp-empty { flex: 1; }
.cp-list { max-height: 320px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.cp-option { display: flex; align-items: center; gap: 8px; width: 100%; padding: 10px 12px; border: 0; border-bottom: 1px solid var(--line); background: transparent; font: inherit; font-size: 15px; color: var(--ink); text-align: left; cursor: pointer; }
.cp-option:last-child { border-bottom: 0; }
.cp-option.active { background: var(--accent-soft); }
.cp-option:active { background: var(--gray-soft); }

/* ---------- 投稿页：可爱上传区 + 说点什么 ---------- */
.upload-drop { position: relative; margin-top: 13px; border: 1.5px dashed var(--line); border-radius: 12px; background: #fffdfb; padding: 22px 16px; text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.upload-drop:hover, .upload-drop:focus-within, .upload-drop.dragging { border-color: var(--accent); background: var(--accent-soft); }
.upload-drop input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.ud-paw { display: block; font-size: 26px; line-height: 1; }
.ud-title { display: block; margin-top: 7px; font-size: 14px; font-weight: 600; color: var(--ink); }
.ud-hint { display: block; margin-top: 4px; font-size: 11.5px; color: var(--ink-3); }
.ud-preview { display: flex; flex-wrap: wrap; gap: 7px; justify-content: center; }
.ud-preview img { width: 74px; height: 74px; object-fit: cover; border-radius: 9px; border: 1px solid var(--line); }
.ud-thumb { position: relative; display: inline-block; line-height: 0; }
.ud-del { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; padding: 0; border: none; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff; font-size: 13px; line-height: 20px; cursor: pointer; }
.ud-add { width: 74px; height: 74px; padding: 0; border: 1.5px dashed var(--line); border-radius: 9px; background: #fffdfb; color: var(--ink-3); font-size: 22px; cursor: pointer; }
.ud-more { display: block; width: 100%; margin-top: 8px; font-size: 11.5px; color: var(--ink-3); }
.upload-drop.has-files { padding: 14px; text-align: left; }
.upload-drop.has-files .ud-empty { display: none; }
.say-label { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; margin-top: 16px; }
.say-hint { color: var(--ink-3); font-size: 11.5px; font-weight: 400; }
.say-title, .say-body { display: block; width: 100%; margin-top: 6px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fffdfb; color: var(--ink); font: inherit; font-size: 16px; outline: none; }
.say-body { resize: vertical; min-height: 96px; line-height: 1.6; }
.say-title:focus, .say-body:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field-invalid { border-color: var(--red); }
.submit-note { color: var(--ink-3); font-size: 12px; }

/* ---- 投稿身份卡片（邮箱验证码登录，2026.9.28）---- */
.acct-card { margin: 0 0 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: #fffdfb; }
.acct-title { color: var(--ink); font-size: var(--fs-card-title); font-weight: 600; }
.acct-sub { display: block; margin-top: 4px; color: var(--ink-3); font-size: 12px; line-height: 1.5; }
.acct-row { display: flex; gap: 8px; margin-top: 10px; }
.acct-row[hidden] { display: none; }
.acct-input { flex: 1; min-width: 0; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font: inherit; font-size: 16px; outline: none; }
.acct-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.acct-send { flex: 0 0 auto; min-height: 44px; padding: 0 14px; border: 0; border-radius: 10px; background: var(--accent); color: #fff; font: inherit; font-size: 14px; cursor: pointer; }
.acct-send:disabled { background: var(--ink-3); cursor: default; }
.acct-tip { margin-top: 8px; color: var(--ink-2); font-size: 12px; line-height: 1.5; }
/* 已验证：压缩成一行，别占地方 */
.acct-card.is-ok { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; background: var(--green-soft); border-color: transparent; }
.acct-badge { padding: 2px 8px; border-radius: 999px; background: var(--green); color: #fff; font-size: 12px; }
.acct-mail { color: var(--ink); font-size: 14px; }
.acct-link { padding: 0; border: 0; background: none; color: var(--blue); font: inherit; font-size: 13px; cursor: pointer; }
.acct-card.is-ok .acct-sub { flex: 1 0 100%; margin-top: 0; }
/* 管理页：投稿人（邮箱仅管理员可见） */
.admin-item-who { margin-top: 4px; color: var(--ink-2); font-size: 12px; }

/* ---- 管理页：封面 / 头像选择（2026.9.28）----
   从云端 cats/ 目录实时列图，点一张即选中；选完随表单一起保存。
   缩略图固定 4:3 裁切，避免不同比例的照片把网格撑得高低不齐。 */
.admin-cover { margin: 14px 0 4px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: #fffdfb; }
.admin-cover-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 10px; }
.admin-cover-head b { color: var(--ink); font-size: var(--fs-card-title); }
.admin-cover-empty { padding: 14px 0; color: var(--ink-3); font-size: 13px; }
.admin-cover-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; margin: 12px 0; }
.cover-pick { position: relative; padding: 0; border: 2px solid var(--line); border-radius: 10px; background: var(--card); cursor: pointer; overflow: hidden; text-align: left; }
.cover-pick img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--bg); }
.cover-pick-name { display: block; padding: 4px 6px; color: var(--ink-3); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cover-pick-badge { position: absolute; top: 6px; right: 6px; padding: 1px 7px; border-radius: 999px; background: rgba(51, 48, 42, .62); color: #fff; font-size: 11px; }
.cover-pick.on { border-color: var(--green); }
.cover-pick.on .cover-pick-badge { background: var(--green); }
.cover-pick:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.admin-cover-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; color: var(--ink-2); font-size: 13px; }
.admin-cover-foot b { color: var(--ink); }
@media (max-width: 560px) { .admin-cover-grid { grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; } }

/* ---------- 2026.9.29：保存到相册 / 视频投稿 / 一起完善 / 财务更新时间 ---------- */
/* 轻量 Toast：底部浮出，不挡操作 */
.web-toast { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); max-width: min(86vw, 360px); padding: 10px 18px; border-radius: 999px; background: rgba(51, 48, 42, .92); color: #fff; font-size: 14px; line-height: 1.5; text-align: center; z-index: 1300; box-shadow: 0 6px 20px rgba(0,0,0,.18); animation: toast-in .22s ease; pointer-events: none; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* 视频帖：卡片缩略 + 详情播放器 */
.post-thumb-video { position: relative; overflow: hidden; }
/* 视频缩略图显示原始画面（2026.9.29 用户反馈竖屏视频被裁很难受）：contain 不裁切，黑底补边 */
.post-thumb-video video { width: 100%; height: 100%; object-fit: contain; background: #000; display: block; }
/* 有真封面图时走 <img>（2026.10.1 提速）：和 video 首帧同一套「不裁切、黑底补边」口径，
   但只需下 ~30KB 的图片，不再为了一张封面去拉十几 MB 的视频本体。 */
.post-thumb-video img.video-poster { width: 100%; height: 100%; object-fit: contain; background: #000; display: block; }
.photo-cell-video img.video-poster { width: 100%; height: 100%; object-fit: contain; background: #000; display: block; }
.video-play-badge { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 34px; height: 34px; border-radius: 999px; background: rgba(51,48,42,.72); color: #fff; font-size: 14px; font-style: normal; display: grid; place-items: center; }
/* 视频时长角标（2026.9.30 信息流优化）：缩略图右下角小胶囊，扫一眼知道这段多长 */
.video-dur { position: absolute; right: 6px; bottom: 6px; padding: 2px 7px; border-radius: 999px; background: rgba(51,48,42,.72); color: #fff; font-size: 11px; font-style: normal; line-height: 1.3; }
/* 详情页视频：按视频原始宽高比完整展示，不再套 420px 高度限制 */
.gallery .single.detail-video { max-height: none; aspect-ratio: auto; }
.detail-video { border: 0; padding: 0; }
.detail-video video { width: 100%; height: auto; max-height: none; border-radius: var(--radius); background: #000; display: block; }

/* 投稿：视频入口 + 视频预览条目 */
.ud-video-entry { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 4px; color: var(--ink-2); font-size: 13px; }
.ud-video-pick { display: inline-flex; align-items: center; border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 6px 14px; font: inherit; font-size: 13px; color: var(--accent); cursor: pointer; user-select: none; }
.ud-video-input { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; opacity: 0; }
.ud-video-entry small { color: var(--ink-3); }
.ud-video { position: relative; }
.ud-video video { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; display: block; }
.ud-video-badge { position: absolute; left: 6px; bottom: 6px; padding: 2px 8px; border-radius: 999px; background: rgba(51,48,42,.72); color: #fff; font-size: 11px; font-style: normal; }
/* 投稿页视频预览：iOS/微信解不了 .mov，用静态占位替代真实 <video> */
.ud-video-static { width: 100%; max-width: 280px; aspect-ratio: 16 / 9; background: var(--gray-soft); border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; }
.ud-video-poster { font-size: 38px; line-height: 1; }
.ud-video-duration { position: absolute; right: 6px; bottom: 6px; padding: 2px 8px; border-radius: 999px; background: rgba(51,48,42,.72); color: #fff; font-size: 11px; font-style: normal; }
.ud-video-name { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 8px 6px; background: linear-gradient(transparent, rgba(0,0,0,.55)); color: #fff; font-size: 12px; line-height: 1.4; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 视频轻提示 / 超长提示弹层 */
.video-modal { position: fixed; inset: 0; z-index: 1250; background: rgba(0,0,0,.42); display: grid; place-items: center; padding: 24px; }
.video-modal-card { width: min(86vw, 340px); background: var(--card); border-radius: 18px; padding: 22px 20px 18px; text-align: center; box-shadow: 0 12px 32px rgba(0,0,0,.2); }
.vm-title { display: block; font-size: 17px; color: var(--ink); margin-bottom: 8px; }
.vm-body { margin: 0 0 16px; font-size: 14px; line-height: 1.7; color: var(--ink-2); }
.vm-btn { width: 100%; height: 42px; border: 0; border-radius: 12px; background: var(--accent); color: #fff; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }

/* 财务更新时间：灰弱辅助，不抢金额的视觉 */
.finance-updated { color: var(--ink-3); font-size: var(--fs-meta); font-weight: 400; }

/* 一起完善：建议卡 + 列表页（列表行复用 comment-row 基础样式） */
.dot-blue { background: var(--blue); }
.suggest-card { padding: 12px 14px 12px; }
.suggest-sub { color: var(--ink-2); font-size: var(--fs-body); line-height: 1.7; margin-bottom: 12px; }
.suggest-latest { background: var(--gray-soft); border-radius: 12px; padding: 8px 12px; margin: 10px 0 8px; }
.suggest-label { display: block; font-size: var(--fs-meta); color: var(--ink-3); margin-bottom: 6px; }
.suggest-quote { margin: 0; font-size: var(--fs-body); color: var(--ink); line-height: 1.6; overflow-wrap: anywhere; }
.suggest-meta { margin-top: 3px; font-size: var(--fs-meta); color: var(--ink-3); }
.suggest-empty { color: var(--ink-3); font-size: var(--fs-body); }
.suggest-btn { display: block; text-align: center; height: 36px; line-height: 36px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); font-size: var(--fs-body); font-weight: 600; }
.suggest-form { margin-top: 4px; }

/* ---------- 公示页 2026.9.29 终版：小猫日程 / 相处指南 / 爱心支持 / 爱心账本 ---------- */
/* 日程条目：行1=头像+猫名+时间线同款标签+最右日期；行2=事项（与猫名对齐、次级文字） */
.sched-item { padding: 10px 0; cursor: pointer; }
.notice-card .sched-item:last-child { padding-bottom: 0; }
.notice-card .empty-inline:last-child { padding-bottom: 0; }
.sched-item:active { opacity: .75; }
.sched-day + .sched-day { margin-top: 14px; }
.sched-day-date { color: var(--ink); font-size: 14px; font-weight: 800; margin-bottom: 2px; }
.sched-head { display: flex; align-items: center; gap: 8px; min-width: 0; }
.sched-avatar { flex: none; width: 30px; height: 30px; border-radius: 999px; overflow: hidden; display: grid; place-items: center; background: var(--gray-soft); font-size: 15px; }
.sched-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sched-name { color: var(--ink); font-size: var(--fs-body); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sched-head .timeline-category { flex: none; }
.sched-date { margin-left: auto; flex: none; color: var(--ink-3); font-size: var(--fs-meta); font-variant-numeric: tabular-nums; }
.sched-body { margin: 4px 0 0; padding-left: 38px; color: var(--ink-2); font-size: var(--fs-body); line-height: 1.65; overflow-wrap: anywhere; }

/* 相处指南：01-03 纯展示（button 版复用同一行样式） */

/* 爱心支持横幅（2026.11.20 四次改版）：标题行与「爱心账本」同构（emoji + 标题 + 两枚 ledger-btn 胶囊，
   emoji 直接写在 h2 文本里，字号与 🐾/🧾/🐱 完全一致）；内容行左=小猫日程同款 sched-item
   （头像+猫名+「近期安排」标签位换成当事人昵称+内容，不放日期），右=收款码缩略图，点开走原放大弹层。 */
.support-card { padding-bottom: 6px; } /* 底部不留大空：二维码下的「扫码捐款」贴住卡底只留 6px */
.support-body { display: flex; align-items: flex-start; gap: 12px; margin-top: 8px; } /* 顶部对齐：二维码上缘与内容行上缘同高（2026.11.20 用户定稿） */
.support-live-text { flex: 1; min-width: 0; }
.support-item { cursor: pointer; }
/* 顶部对齐（2026.11.20 用户定稿）：.sched-item 自带 10px 上内边距，会让头像比二维码顶低 10px，
   这里清零，让左侧内容最顶部与右侧二维码上缘同一水平线。 */
.support-card .support-item { padding-top: 0; }
.support-item:active { opacity: .75; }
.support-item .sched-head { gap: 8px; }
.support-item .sched-name { flex: none; }
.support-nick { flex: none; }
.support-cat-more { color: var(--ink-3); font-size: 11px; white-space: nowrap; }
/* 说明文字紧贴二维码；整块（含「扫码捐款」文字）可点开。
   2026.11.22 手感修复：① 四周留 8px 内边距把命中区域撑到 ≈68×60，不再是 48px 小图难点中；
   ② touch-action:manipulation 去掉移动端 300ms 点击判定延迟（WebView 里表现为「点一下没反应」）。 */
.support-qr { display: flex; flex: none; flex-direction: column; align-items: center; gap: 0; padding: 4px 6px 0; border-radius: 12px; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
/* 二维码素材 PNG 自带约 26/160 底部留白（52px 渲染≈8px），用负 margin 收掉，避免图与「扫码捐款」看起来空一截。 */
.support-qr-thumb { width: 52px; height: 52px; margin-bottom: -6px; border-radius: 10px; background: #fff; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.support-qr-cap { color: var(--ink-3); font-size: 11px; line-height: 1.2; white-space: nowrap; }
@media (max-width:560px){
  .support-body { gap: 10px; }
  .support-qr-thumb { width: 48px; height: 48px; }
}

/* Bottom Sheet 轻弹层：底部滑出，遮罩/×/Esc 关闭，关闭不动页面 */
.sheet-modal { position: fixed; inset: 0; z-index: 1250; background: rgba(0,0,0,.42); display: flex; align-items: flex-end; justify-content: center; }
.sheet-card { position: relative; width: 100%; max-width: 520px; background: var(--card); border-radius: 18px 18px 0 0; padding: 18px 18px calc(22px + env(safe-area-inset-bottom)); max-height: 82vh; overflow-y: auto; animation: sheet-up .24s ease; }
@keyframes sheet-up { from { transform: translateY(48px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet-close { position: absolute; right: 12px; top: 12px; width: 30px; height: 30px; border: 0; border-radius: 999px; background: var(--gray-soft); color: var(--ink-2); font-size: 16px; line-height: 1; cursor: pointer; }
.sheet-card h3 { margin: 0 0 8px; font-size: 17px; color: var(--ink); }
.sheet-body { margin: 0 0 14px; color: var(--ink-2); font-size: var(--fs-body); line-height: 1.7; }
/* 「感谢大家的支持！」在「照护。」后另起一行 */
.sheet-thanks { display: block; }
/* 2026.11.22 捐款公示节奏：并进「感谢大家的支持！」同一段正文，只独立成行、不单独居中放大小字
   （22:05 用户定稿：与正文同格式；21:21 那版 13px 居中被否，别再改回去）。 */
.sheet-days { display: block; }
.sheet-qr { width: min(56vw, 230px); margin: 0 auto 10px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; cursor: zoom-in; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.sheet-qr img { width: 100%; display: block; cursor: zoom-in; }
.sheet-small { margin: 0 0 4px; text-align: center; color: var(--ink-2); font-size: 13px; }
.sheet-faint { margin: 0; text-align: center; color: var(--ink-3); font-size: var(--fs-meta); }
.sheet-left { text-align: left; }
.sheet-link { display: block; margin-top: 12px; text-align: center; color: var(--accent); font-size: var(--fs-body); font-weight: 600; }
/* 领养弹层：五条要求 + 联系方式 */
.adopt-list { list-style: none; margin: 0 0 12px; padding: 0; }
.adopt-list li { padding: 8px 0; border-bottom: 1px dashed var(--line); }
.adopt-list li:last-child { border-bottom: 0; }
.adopt-list b { display: block; color: var(--ink); font-size: 14px; margin-bottom: 2px; }
.adopt-list p { margin: 0; color: var(--ink-2); font-size: 13px; line-height: 1.65; }
.adopt-sub { margin: 0 0 4px; font-size: 15px; color: var(--ink); }
.wechat-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; margin: 8px 0; border-radius: 12px; background: var(--gray-soft); }
.wechat-row span { color: var(--ink); font-size: 14px; }
.wechat-row b { font-weight: 800; }
.wechat-row button { flex: none; border: 0; border-radius: 999px; padding: 6px 14px; background: var(--accent); color: #fff; font-size: 13px; font-weight: 700; cursor: pointer; }

/* ---------- 悄悄话反馈（2026.9.29）---------- */
/* 公示页顶部入口：约 54px 轻量条，奶油底+轻描边，小猫扒在上沿探头（图小小的，凸出 6px） */
.whisper-entry { position: relative; display: flex; align-items: center; gap: 8px; width: 100%; min-height: 54px; margin: 2px 0 12px; padding: 0 14px 0 82px; border: 1px solid var(--line); border-radius: 16px; background: var(--accent-soft); font: inherit; text-align: left; cursor: pointer; }
.whisper-cat { position: absolute; left: 12px; bottom: 4px; width: auto; height: 50px; pointer-events: none; }
.whisper-text { color: var(--accent); font-size: 14px; font-weight: 800; }
.whisper-go { margin-left: auto; color: #92908b; font-size: 13px; font-weight: 400; white-space: nowrap; }
.whisper-entry:active { border-color: var(--accent); }
/* 反馈弹层表单 */
.fb-types { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 4px; }
.fb-type { border: 1px solid var(--line); border-radius: 999px; padding: 7px 13px; background: var(--gray-soft); color: var(--ink); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.fb-type.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
/* 2026.11.12：字号不得低于 16px——iOS 聚焦小字号输入框会自动放大整页且不缩回。 */
.fb-input { display: block; width: 100%; box-sizing: border-box; margin-top: 10px; border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; background: var(--card); color: var(--ink); font: inherit; font-size: 16px; line-height: 1.6; resize: none; }
.fb-input:focus { outline: none; border-color: var(--accent); }
.fb-pics { display: flex; gap: 8px; margin-top: 10px; }
.fb-add { border: 1px dashed var(--line); border-radius: 12px; padding: 10px 12px; background: var(--gray-soft); color: var(--ink-3); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.fb-add small { margin-left: 4px; font-size: 11px; font-weight: 400; color: var(--ink-3); }
.fb-thumb { position: relative; flex: none; width: 64px; height: 64px; }
.fb-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; display: block; }
.fb-thumb-del { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; border: 0; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; font-size: 13px; line-height: 1; cursor: pointer; }
.fb-error { margin: 10px 0 0; color: #b4552e; font-size: 13px; }
.fb-submit { display: block; width: 100%; margin-top: 14px; border: 0; border-radius: 999px; padding: 12px 0; background: var(--accent); color: #fff; font: inherit; font-size: 15px; font-weight: 800; cursor: pointer; }
.fb-submit:disabled { opacity: .6; cursor: default; }
/* 成功态 */
.fb-done { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 26px 0 10px; }
.fb-done-cat { font-size: 44px; line-height: 1; }
.fb-done b { color: var(--ink); font-size: 16px; }
.fb-ok { min-width: 140px; margin-top: 8px; border: 0; border-radius: 999px; padding: 11px 0; background: var(--accent); color: #fff; font: inherit; font-size: 14px; font-weight: 800; cursor: pointer; }

/* ---------- 投稿页重构（2026.9.30）：媒体 ＞ 小猫 ＞ 标题/正文 ＞ 类型 ＞ 隐私 ---------- */
/* ① 媒体大卡：实线轻边框，内嵌左右双入口 */
.submit-panel .upload-drop { margin-top: 14px; border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.upload-drop.has-files { padding: 12px; text-align: left; }
.media-entries { display: flex; gap: 10px; }
.media-entry { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 18px 8px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--gray-soft); font: inherit; cursor: pointer; }
.media-entry:active { border-color: var(--accent); background: var(--accent-soft); }
.media-entry b { color: var(--ink); font-size: 14px; }
.media-entry .me-hint { color: var(--ink-2); font-size: 12px; }
.media-entry .me-limit { color: var(--ink-3); font-size: 11px; }
/* 照片宫格：三列方格，未满 9 张保留 ＋ */
.media-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.media-grid .ud-thumb { display: block; width: 100%; aspect-ratio: 1; }
.media-grid .ud-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.media-grid .ud-add { width: 100%; height: auto; aspect-ratio: 1; border: 1.5px dashed var(--line); border-radius: 10px; background: var(--gray-soft); color: var(--ink-3); font-size: 24px; }
/* 视频预览卡：封面占位 + 名称时长 + 重新选择 */
.media-video { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--gray-soft); text-align: left; }
.mv-poster { flex: none; font-size: 26px; line-height: 1; }
.mv-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mv-meta b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; color: var(--ink); }
.mv-meta small { color: var(--ink-3); font-size: 11.5px; }
.mv-repick { flex: none; border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px; background: #fff; color: var(--ink-2); font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; }
/* ③ 类型 30% + 标题 70% 同一行 */
.sub-row { display: flex; gap: 10px; margin-top: 13px; }
.sub-row .field-label { margin-top: 0; }
.sub-row .f-kind { flex: 0 0 30%; min-width: 0; }
.sub-row .f-date { flex:0 0 42%; min-width:0; }
.sub-row .f-date input { min-width:0; width:100%; appearance:none; -webkit-appearance:none; }
.sub-row .f-title { flex: 1; min-width: 0; }
/* 类型下拉和标题输入严格等高（2026.9.30）：min-height 在 iOS 原生 select 上不可靠，用固定 height */
.sub-row select, .sub-row input { height: 46px; min-height: 46px; box-sizing: border-box; }
/* 选猫器：面板标题 + 花色筛选 + 空态 */
.cp-title { padding: 9px 12px 0; color: var(--ink-2); font-size: 12px; font-weight: 700; }
.cp-coats { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.cp-chip { border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; background: var(--gray-soft); color: var(--ink-2); font: inherit; font-size: 12px; cursor: pointer; }
.cp-chip.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.cp-empty { padding: 26px 12px; text-align: center; color: var(--ink-3); font-size: 12px; }
.cp-empty b { display: block; margin-bottom: 4px; color: var(--ink-2); font-size: 14px; }
/* 发布状态：成功块（标题+辅助+好）与失败原因小字 */
/* 成功提示一行式（2026.9.30 用户定稿）：「收到这份小猫日记啦 🐾 已经出现在动态里」同一行，按钮留下一行 */
.submit-status b { display: inline; color: var(--green); font-size: 14.5px; }
.submit-status .ss-sub { display: inline; margin: 0 0 0 8px; color: var(--ink-2); font-size: 12.5px; }
.submit-status .ss-why { display: block; margin-top: 2px; color: var(--ink-3); font-size: 12px; }
/* 「可能已经发出去了」时的去向入口（2026.10.3）：投稿超时 ≠ 失败，给一个直接看动态的口子 */
.submit-status .ss-link { display: inline-block; margin-top: 4px; color: var(--accent); font-size: 12.5px; font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; }

/* 候选列表左右分栏（2026.9.30）：左列状态类型、右侧该状态下的猫咪网格 */
.cp-list { display: flex; align-items: stretch; padding: 0; }
.cp-tabs { flex: 0 0 92px; display: flex; flex-direction: column; border-right: 1px solid var(--line); background: var(--gray-soft); overflow-y: auto; }
.cp-tab { display: flex; align-items: baseline; justify-content: space-between; gap: 4px; padding: 11px 10px; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--ink-2); font: inherit; font-size: 13px; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.cp-tab small { color: var(--ink-3); font-size: 11px; }
.cp-tab.on { background: var(--card); color: var(--accent); font-weight: 700; box-shadow: inset 3px 0 0 var(--accent); }
.cp-grid { flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 10px; overflow-y: auto; max-height: 300px; align-content: start; align-items: start; }
.cp-option { flex-direction: column; gap: 5px; padding: 10px 4px 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--gray-soft); text-align: center; justify-content: center; }
.cp-option:last-child { border: 1px solid var(--line); }
.cp-option.active { border-color: var(--accent); background: var(--accent-soft); }
.cp-list .cp-option > picture.responsive-image { width: 44px; height: 44px; }
.cp-list .cp-avatar-empty { width: 44px; height: 44px; }
.cp-list .cp-name { flex-direction: column; align-items: center; gap: 1px; }
.cp-list .cp-name b { font-size: 13px; white-space: nowrap; }
.cp-list .cp-status { display: none; }

/* 缩略图未生成时的占位（2026.10.2）：宫格先出块，缩略图好了再补图，绝不直接加载原图 */
.media-grid .ud-thumb-wait { background: var(--gray-soft); border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.media-grid .ud-thumb-ph { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; font-size: 20px; opacity: .45; font-style: normal; }

/* ---------- 管理后台（2026.10.4 新增）----------
   入口 #/manage（口令门）。动态页顶栏的齿轮只在「本机存过管理口令」时出现。
   弹层 z-index 必须 > 999（底部 tabbar 是 999），否则会被压住；弹层开着时锁 body 滚动。 */
.topbar-gear { margin-left: auto; font-size: 19px; line-height: 1; text-decoration: none; opacity: .75; }
.mg-input { width: 100%; box-sizing: border-box; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); font-family: inherit; font-size: 16px; }
textarea.mg-input { line-height: 1.6; resize: vertical; }
.mg-label { display: block; margin: 14px 0 6px; font-size: 13px; font-weight: 800; color: var(--ink-3); }
.mg-btn { padding: 9px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); font-family: inherit; font-size: 14px; line-height: 1.2; text-align: center; cursor: pointer; }
.mg-btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 800; }
.mg-btn.danger { color: #c0392b; border-color: #f2c9c3; }
.mg-btn[disabled] { opacity: .6; cursor: default; }
.mg-exit { margin-left: auto; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink-3); font-family: inherit; font-size: 13px; cursor: pointer; }
.mg-toast { margin: 10px 2px; padding: 10px 12px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 700; }
.mg-gate { max-width: 420px; margin: 36px auto; padding: 20px; display: flex; flex-direction: column; gap: 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.mg-gate-hint { margin: 0; font-size: 14px; color: var(--ink-3); }
.mg-gate-err { margin: 0; font-size: 13px; font-weight: 700; color: #c0392b; }
.mg-toolbar { margin: 10px 2px 8px; }
.mg-filters { padding: 0 2px 6px; gap: 6px; }
.mg-count { margin: 4px 4px 10px; font-size: 12px; color: var(--ink-3); }
.mg-post { display: flex; gap: 10px; align-items: center; padding: 12px 14px; margin-bottom: 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.mg-post-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.mg-post-title { font-size: 15px; line-height: 1.4; word-break: break-word; }
.mg-post-meta { font-size: 12px; color: var(--ink-3); word-break: break-word; }
.mg-post-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.mg-tag { font-style: normal; font-size: 11px; padding: 1px 7px; border-radius: 999px; background: var(--gray-soft); color: var(--ink-3); }
.mg-tag.pin { background: #fdeee6; color: #b4552a; }
.mg-tag.feat { background: #eaf5ea; color: #2f7b39; }
.mg-tag.official { background: #e8f1fb; color: #2b5f96; }
.mg-tag.warn { background: #fdeaea; color: #b3372c; }
.mg-post-ops { flex: none; display: flex; flex-direction: column; gap: 6px; }
.mg-form { max-width: 560px; margin: 0 2px; }
.mg-hint { margin: 10px 0 18px; font-size: 12px; line-height: 1.6; color: var(--ink-3); }
/* 「勾上就立刻生效」的说明（2026.10.4）：跟普通提示区分开，用户勾完精选才不会以为整套都存了 */
.mg-hint-flags { margin: 8px 0 4px; padding: 8px 10px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); font-weight: 600; }
/* 封面头像照片墙（2026.10.13）：点云相册的图直接当封面，替代「下载再上传」 */
.cover-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; margin: 12px 0 6px; }
.cover-pick { position: relative; display: block; padding: 0; border: 2px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--card); cursor: pointer; line-height: 0; }
.cover-pick img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.cover-pick.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.cover-pick-tag { position: absolute; top: 6px; left: 6px; padding: 2px 7px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 800; line-height: 1.5; }
.cover-pick-name { position: absolute; left: 0; right: 0; bottom: 0; padding: 3px 6px; background: linear-gradient(transparent, rgba(0,0,0,.6)); color: #fff; font-size: 11px; line-height: 1.4; text-align: left; word-break: break-all; }
.mg-cover-actions { display: flex; gap: 10px; margin: 14px 0 4px; }
.mg-cover-actions .mg-btn { flex: 1; }
/* 内容编辑：管理端 = 用户端样式 + 每处可点着改（2026.10.13） */
.mg-content { max-width: 560px; margin: 0 2px; }
.ce-editable { cursor: pointer; border-bottom: 1px dashed rgba(0,0,0,.3); }
.ce-editable:hover { background: var(--accent-soft); }
.ce-pen { margin-left: 5px; font-size: 11px; font-style: normal; opacity: .5; }
/* hero 压在深色渐变上，可编辑项要用白虚线才看得见 */
.ce-hero .ce-editable { border-bottom-color: rgba(255,255,255,.55); }
.ce-hero .ce-editable:hover { background: rgba(255,255,255,.24); }
.ce-hero .ce-cover-btn { position: absolute; right: 12px; top: 46px; z-index: 2; padding: 5px 12px; border: 1px solid rgba(255,255,255,.6); border-radius: 999px; background: rgba(0,0,0,.42); color: #fff; font-family: inherit; font-size: 12px; cursor: pointer; }
.ce-hero .ce-cover-btn:hover { background: rgba(0,0,0,.65); }
.mg-content .guide-list li { display: flex; align-items: flex-start; gap: 10px; }
.mg-content .guide-list li.ce-empty { display: block; color: var(--ink-3); font-size: 13px; }
.mg-content .guide-list li.ce-empty::before { display: none; }
.ce-line { flex: 1; min-width: 0; }
.ce-del { flex: none; width: 26px; height: 26px; border: 1px solid var(--line); border-radius: 50%; background: var(--card); color: #c0392b; font-family: inherit; font-size: 15px; line-height: 1; cursor: pointer; }
.ce-del:hover { border-color: #f2c9c3; background: #fdf3f2; }
.ce-add { width: 100%; margin-top: 10px; }
.ce-legend { display: block; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.ce-legend:last-child { border-bottom: 0; }
.ce-legend-head { display: flex; align-items: center; gap: 8px; }
.ce-legend-title { flex: 1; min-width: 0; font-weight: 600; }
.ce-legend-body { display: block; margin-top: 6px; color: var(--muted); font-size: 13px; line-height: 1.7; white-space: pre-wrap; }
/* 压过 .mg-content .guide-list li 的 flex（趣谈 li 内部自带两行结构，不走横排） */
.mg-content .guide-list li.ce-legend { display: block; }
.cover-pick-tag.ce-set { background: rgba(0,0,0,.55); }
.mg-h { margin: 18px 4px 10px; font-size: 14px; }
.mg-tl { padding: 10px 12px; margin-bottom: 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.mg-tl-head { display: flex; align-items: center; gap: 8px; }
.mg-tl-head b { font-size: 14px; }
.mg-tl-head span { flex: 1; min-width: 0; font-size: 12px; color: var(--ink-3); }
.mg-tl p { margin: 6px 0 0; font-size: 14px; line-height: 1.65; }
/* 编辑弹层 */
body.sheet-open { overflow: hidden; }
.mg-sheet-mask { position: fixed; inset: 0; z-index: 1200; display: flex; align-items: flex-end; justify-content: center; background: rgba(0,0,0,.45); }
.mg-sheet { width: min(100%, 640px); max-height: 88vh; display: flex; flex-direction: column; background: var(--card); border-radius: 16px 16px 0 0; }
.mg-sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.mg-sheet-x { border: 0; background: transparent; color: var(--ink-3); font-size: 24px; line-height: 1; cursor: pointer; }
.mg-sheet-body { flex: 1; min-height: 0; overflow-y: auto; padding: 2px 16px 16px; }
.mg-switches { display: flex; gap: 18px; margin: 14px 0 2px; }
.mg-sw { display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 700; }
.mg-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 6px; }
.mg-cat { display: flex; align-items: center; gap: 5px; padding: 7px 8px; border: 1px solid var(--line); border-radius: 10px; font-size: 13px; }
.mg-sheet-foot { display: flex; gap: 10px; justify-content: flex-end; padding: 12px 16px; border-top: 1px solid var(--line); }
@media (min-width: 760px) { .mg-sheet-mask { align-items: center; } .mg-sheet { border-radius: 16px; max-height: 84vh; } }
@media (max-width: 720px) {
  .mg-post { flex-direction: column; align-items: stretch; }
  .mg-post-ops { flex-direction: row; }
  .mg-post-ops .mg-btn { flex: 1; }
  .mg-cats { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); }
}

/* 动态页筛选 chips 窄屏（2026.10.4 用户定稿）：布局两行——第一行「同学投稿 +全部」，第二行「置顶喵 精选喵」靠左。
   窄屏不用缩字号硬塞一行，只把尺寸收一档贴合标题行。
   写在文件末尾是为了盖过前面 @media(max-width:720px) 里的 chip 尺寸与中间的 .feed-chips 规则。 */
@media (max-width: 720px) {
  .feed-title-row { flex-wrap: wrap; row-gap: 8px; }
  .feed-search-result { margin-left:19px; margin-right:19px; }
  .feed-chips { gap: 6px; }
  .feed-chips .chip { padding: 4px 11px; font-size: 12px; }
  /* 桌面端的徽章光学补偿是按 11px/1.7 的字号组合量出来的；
     窄屏是 9.5px/1.9，墨迹本身更贴中心，只需把数字徽章再提 0.4px 与「今日」对齐。 */
  .feed-chips .chip .chip-today { transform: translateY(.02em); }
  .feed-chips .chip .chip-time { transform: translateY(.08em); }
  .feed-chips.feed-chips-rest { flex: 0 0 100%; width: 100%; margin-left: 0; }
  .feed-chips .chip .chip-today, .feed-chips .chip .chip-time { margin-left: 4px; padding: 0 5px; font-size: 9.5px; line-height: 1.9; }
  /* 窄屏把刷新 chip 再收一档，保证「刷新 + 全部」跟标题仍排得下一行 */
  .feed-chips .chip.chip-refresh { padding-left: 10px; padding-right: 8px; }
}

/* ---------- 管理员在用户端的就地管理入口（2026.10.4）----------
   原则：访客看到的页面逐像素不变；只有本机存过管理口令的浏览器才多出这些控件。 */
/* 信息流卡片日期行末尾的管理小按钮（2026.10.4 用户要求：不用点进详情页，在 feed 流里直接点置顶/精选）
   🌸 置顶 / ⭐ 精选 —— 亮着 = 已是该状态，点一下切换；✏️ 打开编辑弹层。未激活时压低透明度，不抢信息。 */
/* 卡片头下方的管理按钮行（2026.10.4）：手机端信息流是两栏网格、卡片只有 ~171px 宽，
   日期行放不下三颗带字的按钮，所以单独占一行、靠右对齐；访客不渲染这一段。 */
.post-admin-tools { display: flex; flex: none; align-items: center; justify-content: flex-end; gap: 4px; margin: 6px 0 0; }
/* 按钮带文字标签（2026.10.4 二改）：光有 🌸/⭐ 用户没看出这是「置顶/精选」，加上两个小字一眼就懂 */
.pa-mini { position: relative; flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 2px; min-width: 25px; height: 25px; padding: 0 5px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--ink-2); font-family: inherit; font-size: 12px; line-height: 1; text-align: center; cursor: pointer; opacity: .62; transition: opacity .15s ease, border-color .15s ease, background .15s ease; }
.pa-mini i { font-style: normal; font-size: 11px; font-weight: 700; }
.pa-mini-edit { padding: 0; width: 25px; }
.pa-mini:hover { opacity: 1; border-color: var(--accent); }
.pa-mini.on { opacity: 1; background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.pa-mini:disabled { opacity: .3; cursor: default; }
/* 「待保存」小橙点：这条点了还没点右上角保存，一眼能看出哪几条等着上传 */
.pa-mini.pending { opacity: 1; border-color: #e08b3a; }
.pa-mini.pending::after { content: ''; position: absolute; top: -3px; right: -3px; width: 8px; height: 8px; border-radius: 50%; background: #e08b3a; border: 1.5px solid var(--card); }
@media (max-width: 720px) {
  .post-admin-tools { gap: 3px; margin: 5px 0 0; }
  .pa-mini { min-width: 23px; height: 23px; padding: 0 4px; border-radius: 7px; font-size: 11px; }
  .pa-mini i { font-size: 10px; }
  .pa-mini-edit { padding: 0; width: 23px; }
}
/* 动态页顶栏右上角：管理员的置顶/精选总开关（访客没有这一段） */
.topbar-admin { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; }
.topbar-admin .topbar-gear { margin-left: 0; }
.feed-save { display: inline-flex; align-items: center; gap: 4px; padding: 8px 15px; border: 1px solid var(--accent); border-radius: 999px; background: var(--accent); color: #fff; font-family: inherit; font-size: 15px; font-weight: 800; line-height: 1.1; text-align: center; white-space: nowrap; cursor: pointer; box-shadow: 0 6px 16px rgba(0,0,0,.16); }
.feed-save b { font-variant-numeric: tabular-nums; }
.feed-save.busy { opacity: .75; cursor: default; }
.feed-saved { font-size: 13px; font-weight: 700; color: var(--ink-3); white-space: nowrap; }
/* 详情页底部的「管理这条」区 */
.post-admin-zone { margin: 18px 0 6px; padding: 12px 14px; border: 1px dashed var(--line); border-radius: 14px; background: var(--accent-soft); }
.pa-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; font-size: 13px; font-weight: 800; color: var(--accent); }
.pa-tip { font-size: 11px; font-weight: 600; color: var(--ink-3); }
.pa-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.pa-btn { flex: 1 1 auto; min-width: 130px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); font-family: inherit; font-size: 13px; font-weight: 700; line-height: 1.25; text-align: center; cursor: pointer; }
.pa-btn:hover { border-color: var(--accent); }
.pa-btn.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.pa-btn.danger { color: #c0392b; border-color: #f2c9c3; }
/* 浮动提示：置顶 / 精选切换后的即时反馈（z-index 压过 tabbar 999 与弹层 1200） */
#mg-flash { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); z-index: 1300; max-width: 82vw; padding: 10px 16px; border-radius: 999px; background: rgba(30,26,24,.92); color: #fff; font-size: 13px; font-weight: 700; line-height: 1.4; text-align: center; opacity: 0; transform: translate(-50%, 8px); pointer-events: none; transition: opacity .18s ease, transform .18s ease; }
#mg-flash.on { opacity: 1; transform: translate(-50%, 0); }

/* 猫详情专属日常，不改变全局动态卡片。 */
.cat-daily { --muted: var(--ink-3); }
.cat-daily-toolbar { display: flex; align-items: center; gap: 10px; margin: 18px 0; min-width: 0; }
.cat-daily-toolbar .cat-daily-switch { margin: 0; flex: 0 0 auto; }
.cat-daily-stats { font-size: 12px; line-height: 18px; color: var(--ink-3); min-width: 0; }
.cat-daily-submit { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; margin-left: auto; height: 32px; padding: 0 10px; border-radius: 16px; color: var(--accent); font-size: 14px; font-weight: 500; white-space: nowrap; text-decoration: none; }
.cat-daily-switch { display: flex; gap: 6px; margin: 18px 0; }
.cat-daily-switch a { display: inline-flex; align-items: center; justify-content: center; height: 32px; padding: 0 14px; border-radius: 16px; font-size: 14px; font-weight: 500; color: var(--muted); text-decoration: none; }
.cat-daily-switch a.active { background: var(--accent-soft, #f5e7dd); color: var(--accent); }
.cat-daily-heading { font-size: 18px; font-weight: 600; line-height: 26px; margin: 0 0 22px; }
.cat-daily-day { margin-bottom: 26px; }
.cat-daily-day > h3 { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; font-size: 17px; font-weight: 600; line-height: 24px; margin: 0 0 12px; }
.cat-daily-day > h3 span { font-size: 13px; font-weight: 400; line-height: 20px; color: var(--muted); }
.cat-daily-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cat-daily-card { display: block; min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--card, #fff); color: var(--ink); text-decoration: none; }
.cat-daily-meta { display: flex; align-items: center; gap: 12px; height: 20px; line-height: 20px; white-space: nowrap; color: var(--ink-2); font-size: 12px; }
.cat-daily-meta span:first-child { font-weight: 500; }
.cat-daily-author { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat-daily-meta span:first-child { flex: 0 0 auto; }
.cat-daily-title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; height: 48px; margin: 10px 0 12px; font-size: 15px; font-weight: 500; line-height: 24px; overflow-wrap: anywhere; }
.cat-daily-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 12px; background: #eeeae4; }
.cat-daily-media img, .cat-daily-media video { display: block; width: 100%; height: 100%; object-fit: cover; }
.cat-daily-media picture { display: block; width: 100%; height: 100%; }
.cat-daily-count, .cat-daily-duration { position: absolute; right: 9px; padding: 3px 8px; border-radius: 999px; background: rgba(0,0,0,.55); color: white; font-size: 12px; line-height: 18px; }
.cat-daily-count { top: 9px; }
.cat-daily-duration { bottom: 9px; }
.cat-daily-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: rgba(0,0,0,.45); color: white; font-style: normal; font-size: 20px; }
.cat-daily-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; height: 100%; font-size: 30px; color: var(--muted); }
.cat-daily-placeholder span { font-size: 13px; }
.cat-daily-empty { padding: 40px 16px; text-align: center; font-size: 16px; color: var(--ink); }
.cat-daily-empty span { display: block; margin-top: 10px; font-size: 13px; color: var(--muted); }
/* 猫详情页相册（2026.10.13 用户要求：电脑端一行 4 张）：
   手机仍旧 2 列；≥760px 起 4 列。猫详情容器 .cat-detail 上限 760px，
   4 列时每格约 180px，比原来 2 列（约 370px）密一档，一屏能看到更多照片。 */
.cat-daily .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .cat-daily .photo-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.cat-daily .album-heading h3 { font-size: 18px; font-weight: 600; line-height: 26px; }
.cat-daily .album-heading { margin-bottom: 22px; }
.cat-daily .album-day { margin-bottom: 26px; }
.cat-daily .album-day-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin: 0 0 12px; line-height: 24px; }
.cat-daily .album-day-date { font-size: 17px; font-weight: 600; letter-spacing: normal; }
.cat-daily .album-day-dow { font-size: 13px; font-weight: 400; line-height: 20px; color: var(--ink-3); }
.cat-daily .album-day .photo-grid { margin-top: 0; }
.cat-daily-day > h3, .cat-daily .album-day-head { position: sticky; top: 0; z-index: 10; padding: 8px 0; background: var(--bg); }
/* 只有带返回入口的二级页吸顶，三个主页的标题不受影响。 */
.topbar:has(> .back-link) { position: sticky; top: 0; z-index: 30; height: 60px; padding: 8px 4px; align-items: center; background: var(--bg); }
.topbar:has(> .back-link) .back-link { margin: 0; }
.topbar:has(> .back-link) .sub { font-size: 13px; }
.cat-daily-day > h3, .cat-daily .album-day-head { top: 60px; }
.cat-daily-switch a:focus-visible, .cat-daily-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (max-width: 720px) {
  .cat-daily-toolbar { gap: 6px; }
  .cat-daily-toolbar .cat-daily-switch { gap: 4px; }
  .cat-daily-toolbar .cat-daily-switch a { padding: 0 10px; }
  .cat-daily-submit { padding: 0 6px; }
  .cat-daily-grid { grid-template-columns: minmax(0, 1fr); }
  .cat-daily-card { display: grid; grid-template-columns: minmax(0, 1fr) 112px; grid-template-rows: 20px 48px; align-content: center; column-gap: 12px; row-gap: 8px; min-height: 110px; padding: 12px; }
  .cat-daily-meta { grid-column: 1; grid-row: 1; gap: 8px; font-size: 12px; }
  .cat-daily-title { grid-column: 1; grid-row: 2; margin: 0; font-size: 15px; }
  .cat-daily-media { grid-column: 2; grid-row: 1 / 3; align-self: center; width: 112px; aspect-ratio: 4 / 3; border-radius: 10px; }
  .cat-daily-play { width: 32px; height: 32px; font-size: 15px; }
  .cat-daily-count, .cat-daily-duration { right: 5px; padding: 1px 5px; font-size: 11px; line-height: 16px; }
  .cat-daily-count { top: 5px; }
  .cat-daily-duration { bottom: 5px; }
  .cat-daily-placeholder { gap: 4px; font-size: 22px; }
  .cat-daily-placeholder span { font-size: 11px; }
}

/* 来源主题仅用于卡片之外的模块标题、搜索与筛选。 */
.official-title h3 { color: var(--accent); }
.official-title a { color: var(--ink-2); }
.official-page .eyebrow { color: var(--accent); }
.official-title h3::before { background: var(--accent); }
.feed-title-row h3 { color: var(--student-color); }
.feed-title-row h3::before { background: var(--student-edge); }
.feed-search-wrap input { background: var(--card); border-color: var(--line); }
.feed-search-wrap input:focus, .feed-search-wrap input:not(:placeholder-shown) { background: var(--student-soft); border-color: var(--student-edge); }
.feed-search-wrap::before { border-color: var(--ink-3); }
.feed-search-wrap::after { background: var(--ink-3); }
.feed-search-wrap:focus-within::before { border-color: var(--student-color); }
.feed-search-wrap:focus-within::after { background: var(--student-color); }
.feed-chips .chip, .feed-chips .chip .chip-today, .feed-chips .chip .chip-time {
  background: var(--card); border-color: var(--line); color: var(--ink-2);
}
.feed-search-result, .feed-chips .chip.on, .feed-chips .chip.on .chip-today { background: var(--student-soft); border-color: var(--student-edge); color: var(--student-color); }
.feed-submit-cta { background: linear-gradient(120deg, #fff6ec 0%, #fdeff4 52%, #f1edfa 100%); border-color: #eddccd; box-shadow: 0 6px 18px rgba(150, 105, 70, .08); }
.feed-submit-cta .cta-copy b { color: var(--ink); font-family: "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-weight: 800; font-synthesis: weight; letter-spacing: .01em; }
.feed-page { --feed-control-width: 128px; --feed-control-inset: 16px; }
.feed-page .feed-submit-cta { grid-template-columns: 40px minmax(0, 1fr) var(--feed-control-width); padding-right: var(--feed-control-inset); }
.feed-page .feed-title-row { margin-right: calc(var(--feed-control-inset) + 1px); }
/* 刷新 chip 不进这条定宽：它不是筛选项，宽度按内容走（与「全部」同排，靠右紧挨着它）。 */
.feed-page [data-feed-chips] .chip:not(.chip-refresh) { width: var(--feed-control-width); min-width: 0; padding-left: 8px; padding-right: 8px; justify-content: center; white-space: nowrap; }
.feed-submit-cta .cta-go, .feed-submit-cta:hover .cta-go { display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(120deg, var(--accent), #d0563f); color: #fff; width: 100%; min-width: 0; max-width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid rgba(255,255,255,.24); border-radius: 999px; font-size: 16px; font-weight: 700; line-height: 1.2; text-align: center; box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 3px 8px rgba(175,92,55,.12); transition: transform .15s ease, box-shadow .15s ease; }
.feed-submit-cta:active .cta-go { transform: scale(.97); box-shadow: inset 0 1px 0 rgba(255,255,255,.14); }
.feed-submit-cta:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .feed-submit-cta .cta-go { transition: none; } .feed-submit-cta:active .cta-go { transform: none; } }
.feed-admin-bar { display: flex; justify-content: flex-end; margin-bottom: 6px; }
.official-feed-timeline .ot-tag, .official-page .ot-tag { background: var(--accent-soft); color: var(--accent); }
.official-feed-timeline .of-item, .official-page .ot-event { border-left-color: var(--accent); }
.official-feed-timeline .ot-tag::before, .official-page .ot-tag::before { content: '·'; display: inline-block; width: 14px; margin-right: 5px; font-family: Arial, sans-serif; font-size: 13px; font-weight: 600; line-height: 1; text-align: center; }
.official-feed-timeline .tone-medical .ot-tag::before, .official-page .tone-medical .ot-tag::before { content: '+'; }
.official-feed-timeline .tone-status .ot-tag::before, .official-page .tone-status .ot-tag::before { content: '↗'; }
.official-feed-timeline .tone-rel .ot-tag::before, .official-page .tone-rel .ot-tag::before { content: '∞'; }
.official-feed-timeline .tone-daily .ot-tag::before, .official-page .tone-daily .ot-tag::before { content: '·'; }
.official-feed-timeline .tone-first .ot-tag::before, .official-page .tone-first .ot-tag::before { content: '◎'; }
.official-feed-timeline .tone-plan .ot-tag::before, .official-page .tone-plan .ot-tag::before { content: '◷'; }
/* 更多时间线：频繁事件浅淡，特殊节点有辨识度；色值用于边线，正文保持深色。 */
.official-page .ot-event { --event-color: #91b8a0; --event-soft: #eff5f1; --event-ink: #526f5d; border-left-color: var(--event-color); }
.official-page .tone-medical { --event-color: #78a9bd; --event-soft: #edf4f8; --event-ink: #466b7c; }
.official-page .tone-status { --event-color: #a497c2; --event-soft: #f2eff7; --event-ink: #6b5b85; }
.official-page .tone-rel { --event-color: #d68f9b; --event-soft: #fbeef1; --event-ink: #995867; }
.official-page .tone-first { --event-color: #e3b45f; --event-soft: #fcf4e5; --event-ink: #8a671f; }
.official-page .tone-plan { --event-color: #afa99e; --event-soft: #f3f1ed; --event-ink: #706a5f; }
.official-page .ot-event .ot-tag { background: var(--event-soft); color: var(--event-ink); }
.official-page .tone-daily .ot-tag::before { content: '☼'; }
.official-page .tone-medical .ot-tag::before { content: '✚'; }
.official-page .tone-status .ot-tag::before { content: '◐'; }
.official-page .tone-rel .ot-tag::before { content: '♡'; }
.official-page .tone-first .ot-tag::before { content: '✦'; }
.official-page .node-daily { background: #91b8a0; }
.official-page .node-medical { background: #78a9bd; }
.official-page .node-status { background: #a497c2; }
.official-page .node-rel { background: #d68f9b; }
.official-page .node-first { background: #e3b45f; }
.official-page .node-plan { background: #afa99e; }
.post-card[data-stage], .post-detail { background: var(--card); border-color: var(--line); }

/* 卡片不再用顶边色条表达状态，状态仍通过文字标签呈现。 */
.cat-card[data-stage], .post-card[data-stage] { border-top-width: 0; }
.student-card .post-actions { gap: 8px; border-top-width: 0; }
.student-card .post-action, .post-detail-actions .post-action {
  border-radius: 999px; border-width: 0;
  min-height: 34px; padding: 0 8px; font-size: 12px; font-weight: 600; line-height: 1;
  background: var(--gray-soft); color: var(--ink-2);
  transition: background .18s ease, box-shadow .18s ease;
}
.post-detail-actions { gap: 8px; }
.post-detail .post-detail-actions { border-top-width: 0; margin: 14px 0 0; }
.post-detail .post-owner-actions:empty { display: none; }
.post-detail .comment-zone { border-top-width: 0; margin-top: 20px; padding-top: 0; }
.post-detail .carousel { background: transparent; aspect-ratio: 3 / 4; transition: none; }
.post-detail .carousel-track { height: 100%; align-items: center; }
.post-detail .carousel-cell, .post-detail .carousel-cell picture, .post-detail .carousel-cell img { height: 100%; }
.post-detail .carousel-cell img { object-fit: contain; }
.post-detail .gallery-cell.single:not(.detail-video) { aspect-ratio: 3 / 4; background: transparent; }
.post-detail .gallery-cell.single:not(.detail-video) picture, .post-detail .gallery-cell.single:not(.detail-video) img { width: 100%; height: 100%; object-fit: contain; max-height: none; }
/* 桌面端一屏容纳（2026.10.14）：3:4 定比在宽屏会把图片区撑到 900px+，标题正文被顶出一屏。
   桌面端改为按视口高度给图片区封顶（随窗口伸缩），标题/正文/图片同屏可见，不用上下滑动找图；手机端保持 3:4 不变。 */
@media (min-width: 721px) {
  .post-detail .carousel,
  .post-detail .gallery-cell.single:not(.detail-video) { aspect-ratio: auto; height: clamp(300px, calc(100dvh - 400px), 560px); }
  .post-detail .gallery-cell.single:not(.detail-video) picture { height: 100%; }
}
.official-summary { display: grid; justify-items: end; gap: 4px; }
.official-head .official-summary .eyebrow { color: var(--amber); font-size: 13px; font-weight: 400; letter-spacing: normal; }
.official-summary .official-count { padding-bottom: 0; }
.community-feed .student-card .preview { display: none; }
@media (max-width: 720px) { .community-feed .student-card.row-mobile-copy .preview { display: block; } }
@media (min-width: 721px) { .community-feed .student-card.row-desktop-copy .preview { display: block; } }
.student-card .post-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.student-card .post-actions .post-action { height: 34px; gap: 6px; }
.post-action-icon { display: inline-flex; align-items: center; justify-content: center; width: 18px; flex: 0 0 18px; font: normal 18px/1 Arial, sans-serif; }
.student-card .post-action b { margin-left: 0; }
.post-detail .carousel-track, .post-detail .carousel-cell, .post-detail .carousel-cell img { background: transparent; }
.student-card .post-action + .post-action, .post-detail-actions .post-action + .post-action { border-left-width: 0; }
.student-card .post-action:hover, .post-detail-actions .post-action:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.student-card .like-action.active, .post-detail-actions .like-action.active { background: var(--rose-soft); color: var(--rose); }
/* 仅同学投稿信息流：一体轻量操作栏，详情页按钮不变。 */
.student-card .post-actions.light-action-bar { gap: 0; height: 38px; border-width: 0; border-radius: 10px; overflow: hidden; background: transparent; }
/* 视觉对齐（2026.10.13 像素量测）：动作栏两个入口的墨迹重心微调 —
   「详情 ›」细箭头墨迹轻导致整体偏左 3.3px（右留白 15 > 左 14），把箭头右移、右留白收窄；
   「赞」心形 svg 上重下轻（重心偏上 1.46px），整体下移 0.4px 配平。 */
.student-card .post-actions.light-action-bar .post-action { position: relative; height: 38px; min-height: 38px; padding: 0 8px; gap: 4px; border: 0; border-radius: 0; background: transparent; color: var(--ink-2); box-shadow: none; text-decoration: none; }
.student-card .light-action-bar .detail-link { padding-left: 10px; padding-right: 5px; }
.student-card .light-action-bar .detail-link .action-chevron { transform: translateX(1px); }
.student-card .light-action-bar .like-action { padding-left: 10px; padding-right: 12px; }
.student-card .light-action-bar .like-action .post-action-icon { transform: translateY(0.8px); }
.student-card .light-action-bar .detail-link::before { content: ''; position: absolute; left: 0; top: 8px; bottom: 8px; width: 1px; background: rgba(160,154,142,.16); }
.student-card .light-action-bar .post-action-icon { width: 18px; flex-basis: 18px; font-size: 15px; }
.student-card .light-action-bar .heart-filled { display: none; }
.student-card .light-action-bar .like-action.active .heart-outline { display: none; }
.student-card .light-action-bar .like-action.active .heart-filled { display: inline; }
.student-card .post-actions.light-action-bar .like-action.active { color: var(--rose); background: transparent; }
.student-card .post-actions.light-action-bar .like-action.active,
.post-detail-actions .post-action.like-action.active { color: #c64e53; background: #fceced; }
.like-action:not(.active) .post-action-icon { filter: none; opacity: 1; }
.like-action.active .post-action-icon { filter: none; opacity: 1; }
.like-heart { display: block; width: 100%; height: 100%; fill: none; transition: fill .15s ease, color .15s ease; }
.like-action.active .like-heart { fill: #ed5262; stroke: #ed5262; animation: like-heart-pop .28s ease-out; }
.post-detail-actions .like-action .post-action-icon { width: 23px; height: 23px; flex-basis: 23px; }
.student-card .light-action-bar .like-action .post-action-icon { height: 18px; }
@keyframes like-heart-pop { 0% { transform: scale(.85); } 55% { transform: scale(1.15); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .like-action.active .like-heart { animation: none; } .like-heart { transition: none; } }
.tab-ico, .post-action-icon, .feed-submit-cta .cta-ico, .comment-emoji {
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-variant-emoji: emoji;
}
.post-detail-actions .detail-link .post-action-icon { filter: none; opacity: 1; }
.post-detail-actions .like-action { gap: 6px; }
.post-detail-actions .detail-link { gap: 8px; }
.post-detail-actions .detail-link .post-action-icon { width: 24px; height: 24px; flex: 0 0 24px; font-size: 20px; line-height: 24px; overflow: hidden; font-style: normal; }
.post-detail-actions .detail-link > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 统一联系入口：保留原二维码，仅用两个可视窗口去掉多余留白。
   2026.10.7 起「领养小猫」也走这组居中弹窗（用户定稿：和 04 找到我们形式一致）。 */
.sheet-modal.contact-modal { align-items: center; }
.contact-modal .sheet-card { width: 89vw; max-width: 390px; padding: 24px 20px 22px; border-radius: 20px; background: #fffdf8; max-height: 88dvh; }
.contact-purposes { display: grid; gap: 7px; margin-bottom: 18px; padding-right: 24px; color: var(--ink); font-size: 15px; font-weight: 600; line-height: 1.6; }
.contact-identity { position: relative; width: 280px; max-width: 100%; height: 55px; margin: 0 auto 8px; overflow: hidden; background: #fff; border-radius: 10px; }
.contact-identity img { position: absolute; width: 300px; max-width: none; left: 0; top: -24px; }
.contact-code { position: relative; width: 210px; height: 210px; margin: 0 auto 14px; overflow: hidden; background: #fff; border-radius: 8px; cursor: zoom-in; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.contact-code img { position: absolute; width: 300px; max-width: none; left: -45px; top: -133px; cursor: zoom-in; }
.contact-caption { text-align: center; color: var(--ink-2); font-size: 15px; font-weight: 600; line-height: 1.5; }
.contact-note { margin-top: 5px; text-align: center; color: var(--ink-3); font-size: 12.5px; font-weight: 400; line-height: 1.6; }
.student-card .light-action-bar .action-chevron { font-size: 18px; line-height: 1; }
.student-card .post-actions.light-action-bar .post-action:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
@media (min-width: 721px) {
  .feed-page, .cats-page, .notice-page { width: 100%; max-width: 1080px; margin-inline: auto; }
  .cats-page .cat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 16px; }
  .cats-page .cat-card .body { padding: 14px 18px 18px; }
  .cats-page .cat-card .name { font-size: 20px; }
  .cats-page .cat-card .trait { font-size: 15px; }
  .post-detail .gallery .single.detail-video { height: clamp(240px, calc(100dvh - 340px), 480px); max-height: 65dvh; background: #171717; }
  .post-detail .detail-video video { height: 100%; max-height: 100%; object-fit: contain; }
  .post-detail .carousel, .post-detail .gallery-cell.single:not(.detail-video) { background: var(--gray-soft); }
  /* 投稿按钮宽度=「全部」chip（--feed-control-width），右缘同 chip 行对齐（2026.10.7 用户定稿） */
  .feed-page .feed-submit-cta { grid-template-columns: 40px minmax(0, 1fr) var(--feed-control-width); padding: 14px var(--feed-control-inset) 14px 20px; }
  /* 搜索框字号与「置顶/精选」chip 一致（15px）；手机仍 16px 防 iOS 聚焦放大 */
  .feed-page .feed-search-wrap input { font-size: 15px; }
  .feed-page .feed-search-wrap input::placeholder { font-size: 15px; }
  .feed-page .feed-search-wrap { max-width: 320px; }
  .feed-page .community-feed { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 16px; }
}
@media (max-width: 720px) {
  .feed-page { --feed-control-width: 96px; }
  .feed-page .feed-submit-cta { grid-template-columns: 28px minmax(0, 1fr) var(--feed-control-width); gap: 8px; padding: 12px var(--feed-control-inset) 12px 12px; }
  .feed-submit-cta .cta-ico { font-size: 26px; }
  .feed-submit-cta .cta-copy b { font-size: 15px; font-weight: 800; line-height: 1.45; }
  .feed-submit-cta .cta-go, .feed-submit-cta:hover .cta-go { padding: 10px 12px; font-size: 15px; }
}
:root { --video-preview-width: 680px; }
.video-choices { display:flex; flex-wrap:wrap; gap:10px; margin-top:12px; }
.video-preview-dialog { position:fixed; inset:0; margin:auto; box-sizing:border-box; width:calc(100% - 32px); max-width:var(--video-preview-width); height:fit-content; max-height:calc(100vh - 48px); max-height:calc(100dvh - 48px); overflow:auto; padding:16px; border:0; border-radius:20px; background:#fffaf4; }
.video-preview-dialog::backdrop { background:rgba(0,0,0,.55); }
.video-preview-dialog video { display:block; width:100%; height:auto; max-height:calc(100vh - 150px); max-height:calc(100dvh - 150px); margin:0 auto; object-fit:contain; border-radius:12px; }
.video-preview-dialog button { display:block; margin:12px auto 0; border-radius:999px; padding:10px 24px; font-size:16px; }
/* 「刷新动态」原来是单独一行（.feed-refresh-row）；2026.10.13 已并入「全部」所在 chips 行，
   相关样式一并移除，别留死代码。视觉上的状态改由 .chip-refresh 里的小徽章表达。 */

/* ===== 视觉对齐收尾（2026.10.13 像素墨迹量测；放文件末尾压过前面的同权重规则） ===== */
/* 「详情 ›」：箭头细、墨迹轻，整组偏左 3.2px → 左右留白 10/4 + 箭头右移 1.5px；
   「赞」：心形上重下轻（重心偏上 1.1px）→ 图标下移 0.4px。 */
.student-card .post-actions.light-action-bar .detail-link { padding-left: 10px; padding-right: 4px; }
.student-card .post-actions.light-action-bar .detail-link .action-chevron { display: inline-block; transform: translateX(1.5px); }
.student-card .post-actions.light-action-bar .like-action .post-action-icon { transform: translateY(0.8px); }
/* 「全部 · 今日+10」chip：墨迹偏左 2.8px（手机断点 4px 11px 的旧规则覆盖了 482 行的新值）→ 手机端也用 15/12。 */

/* 徽章的胶囊底在 feed chips 里是透明的（card 底叠 card 底，.on 态也是同色底），
   但它右侧的内边距仍参与 flex 居中，把可见文字整体推离中心（像素量测 -3.3 ~ -4.1px）。
   剔掉右侧内边距后，内容盒与可见墨迹完全重合，「全部 · 今日+N」「刷新 · 时刻」两颗同时回到光学居中。
   放在文件末尾压过上面两处 @media(max-width:720px) 的 padding: 0 5px。 */
.feed-chips:not(.feed-chips-rest) .chip { box-sizing: border-box; height: 34px; padding: 0 12px; gap: 7px; line-height: 1; }
.feed-chips .chip .chip-label { display: block; color: inherit; font: inherit; line-height: 1; }
.feed-chips .chip .chip-today, .feed-chips .chip .chip-time { display: block; margin: 0; padding: 0; line-height: 1; background: transparent; }
@media (max-width: 720px) {
  .feed-chips:not(.feed-chips-rest) .chip { height: 26px; padding: 0 9px; gap: 6px; }
}

/* 只给读屏的文本：刷新状态完整文案走这里（视觉上由刷新 chip 的时间徽章承担），
   刷新条并入 chips 行后不能再把整句摆出来。 */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* 管理模式专用：不改变普通访客布局。 */
.admin-workspace .aw-toolbar { position: sticky; top: 0; z-index: 900; display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 14px 18px; margin-bottom: 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff8e9; box-shadow: 0 4px 20px #0000000d; }
.aw-toolbar nav { display: flex; gap: 14px; flex: 1; }
.aw-toolbar a { color: var(--accent); font-weight: 600; }
.aw-toolbar > span { width: 100%; color: var(--muted); font-size: 13px; }
.aw-toolbar button, .aw-cat-actions button, .aw-photo-cell > button { padding: 8px 12px; border: 1px solid var(--line); border-radius: 9px; background: white; color: var(--ink); cursor: pointer; }
.admin-workspace .aw-field, .admin-workspace .aw-page-text { cursor: pointer; outline: 1px dashed #ba8e50; outline-offset: 3px; border-radius: 3px; }
.admin-workspace .aw-field:hover, .admin-workspace .aw-page-text:hover { background-color: #eacb7d38; }
.aw-cat-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 18px; }
.aw-photo-cell { min-width: 0; }
.aw-photo-cell .photo-cell { width: 100%; }
.aw-photo-cell > button { width: 100%; margin-top: 6px; font-size: 13px; }
/* 2026.11.12 铁律：照片预览按原图尺寸显示，不拉满容器（原来 width:100% 会把小图放大）。 */
.aw-photo-preview { display: block; width: auto; height: auto; max-width: 100%; max-height: 48vh; margin: 12px auto; object-fit: contain; border-radius: 12px; }
@media (min-width: 1000px) { body.admin-workspace .mg-sheet-mask { justify-content: flex-end; align-items: stretch; padding: 18px; } body.admin-workspace .mg-sheet { width: 460px; max-height: 100%; border-radius: 16px; } }
@media (max-width: 720px) { .admin-workspace .aw-toolbar { position: static; padding: 12px; } .aw-toolbar nav { flex-basis: 100%; } }
.aw-daily-tools { display: flex; justify-content: flex-end; margin: -4px 0 14px; } .aw-daily-tools .post-admin-tools { position: static; }
.admin-workspace .aw-page-text:empty::before { content: "空文字 · 点击编辑"; color: var(--muted); font-size: 12px; }

/* 管理保存状态常驻显示，只有管理员控件使用这些类。 */
.admin-save-status { width: 100%; box-sizing: border-box; padding: 10px 12px; margin: 8px 0; border: 1px solid var(--line); border-radius: 10px; background: #f5f4ef; color: #555a51; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.admin-save-status[data-phase="saving"] { background: #fff4d8; color: #815c17; border-color: #e7c979; }
.admin-save-status[data-phase="saved"] { background: #edf6eb; color: #35633a; border-color: #b7d3b1; }
.admin-save-status[data-phase="dirty"], .mg-draft-status[data-phase="dirty"] { background: #fff4d8; color: #815c17; }
.admin-save-status[data-phase="error"] { background: #fff0ed; color: #a13b30; border-color: #e5b0a8; }
.mg-draft-status { margin: 0; padding: 10px 16px; flex-shrink: 0; font-size: 14px; color: var(--muted); line-height: 1.5; }
.admin-workspace .post-admin-tools { flex-wrap: wrap; }
.pa-save-state { flex-basis: 100%; font-size: 12px; line-height: 1.5; text-align: right; white-space: normal; overflow-wrap: anywhere; }
.pa-save-state:empty { display: none; }
.pa-save-state[data-phase="saved"] { color: #35633a; }
.pa-save-state[data-phase="saving"] { color: #815c17; }
.pa-save-state[data-phase="error"] { color: #a13b30; }

/* 公告日期与卡片内容保持一致的内侧留白。 */
.official-feed-timeline .of-item { padding: 12px 18px; }

.aw-album-controls { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.aw-album-controls p { flex-basis: 100%; margin: 2px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.aw-photo-actions { flex-wrap: wrap; gap: 8px; }
.aw-photo-actions .mg-btn { flex: 1 1 42%; }

/* 日期右边缘对齐分区标题的“更多”，含卡片1px边框。 */
.official-feed-timeline .of-item { padding-right:24px; }
@media (max-width:720px) { .official-feed-timeline .of-item { padding-right:18px; } }
.fin-app{max-width:1040px;margin:0 auto;padding:24px 18px 100px;color:var(--ink,#34342f)}
.fin-app header,.fin-row{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap}
.fin-app h1{font-size:26px;margin:12px 0}.fin-app h2{font-size:21px}.fin-app h3{font-size:18px;margin:8px 0;overflow-wrap:anywhere}
.fin-app nav,.fin-actions,.fin-files,.fin-guide-links{display:flex;gap:12px;flex-wrap:wrap;margin:12px 0}
.fin-app nav a,.fin-guide-links a{padding:9px 14px;border:1px solid #d8dccb;border-radius:999px;text-decoration:none;background:#fff}
.fin-panel{background:#fff;border:1px solid #e0e1d7;border-radius:18px;padding:22px;margin:16px 0;overflow-wrap:anywhere}
.fin-app form{display:grid;gap:16px;max-width:700px;margin:0 auto}.fin-app label{display:grid;gap:7px;font-size:15px}.fin-app label:has(input[type=checkbox]){display:flex;align-items:center}
.fin-app input,.fin-app textarea,.fin-app select{font-size:16px;padding:12px;border:1px solid #c8cebd;border-radius:10px;width:100%;box-sizing:border-box}.fin-app input[type=checkbox]{width:auto}
.fin-app input[type=file]{background:#f8f9f4}.fin-app small{display:block;color:#68715e;font-size:13px}.fin-app textarea{min-height:80px}
.fin-app button{font:inherit;cursor:pointer;border:1px solid #aab89b;background:#edf3e6;color:#31482b;border-radius:10px;padding:11px 17px;margin:5px 7px 5px 0}.fin-app button:hover{background:#e0ebd5}.fin-app button:disabled{opacity:.55;cursor:wait}.fin-app button[aria-pressed=true]{background:#395a35;color:white}
.fin-status{min-height:24px;position:sticky;top:0;background:#f2f6e9;padding:12px;border-radius:10px;z-index:5;white-space:pre-line;overflow-wrap:anywhere}.fin-status.error,.fin-reason{color:#a33b2a;background:#fff3ef}.fin-badge{background:#eff3e7;padding:6px 12px;border-radius:999px}
.fin-review{padding:16px;margin:14px 0;border:1px solid #dce1d0;border-radius:12px;display:grid;gap:10px}.fin-payment-bar{background:#f4f7ee;padding:16px;border:1px solid #cad5bd;border-radius:14px}.fin-app details{margin-top:16px}.fin-app details p{font-size:13px;color:#69705f}
/* 2026.11.12 用户定稿：凭证弹层居中、宽度随图收放，不再固定 94vw 铺满整屏；
   图片按原始上传尺寸显示（width/height auto 不放大），只有超出视口才等比缩小。 */
.fin-image-dialog{margin:auto;width:auto;max-width:1280px;max-height:90vh;overflow:auto;border:0;border-radius:16px;padding:16px;box-sizing:border-box}
/* 表格凭证给宽表更多列宽；不支持 :has 的旧内核退回 1080px，不影响滚动。 */
.fin-image-dialog:has(.fin-csv){max-width:96vw;max-width:min(96vw,1240px)}
.fin-image-dialog::backdrop{background:#0009}.fin-image-dialog img{display:block;width:auto;height:auto;max-width:100%;object-fit:contain}.fin-image-dialog a{display:block;margin:12px}.fin-image-dialog button{font-size:16px;padding:8px 16px}
/* 2026.11.03 弹层统一头部：左标题、右圆形 ✕。凭证查看 / 原因输入 / 选凭证 / 打码编辑器共用同一套。 */
.fin-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 10px}
.fin-dialog-head h3,.fin-dialog-head h2{margin:0;font-size:15px;color:#5a564c;line-height:1.3}
.fin-dialog-close,.fin-image-dialog .fin-dialog-close,.fin-redactor .fin-dialog-close{display:grid;place-items:center;flex:none;width:34px;height:34px;min-width:34px;padding:0;margin:0;border:1px solid #e0dbcc;border-radius:50%;background:#f6f4ec;color:#5a564c;font-size:15px;line-height:1;cursor:pointer}
.fin-dialog-close:hover,.fin-image-dialog .fin-dialog-close:hover,.fin-redactor .fin-dialog-close:hover{background:#eae6d8;color:#33302a}
.fin-vouchers{display:grid;gap:16px;justify-items:stretch}
.fin-voucher{margin:0;display:grid;gap:8px;justify-items:center;min-width:0;max-width:100%;overflow:hidden}
/* 2026.11.12 用户定稿：图按原始上传尺寸显示（width/height auto 不放大不缩小），
   只有超出弹层宽度才等比缩到容器内；高度不设上限，长图在弹层里滚动看。 */
.fin-voucher img{border-radius:10px;background:#f4f2ec;justify-self:center}
.fin-voucher figcaption{font-size:12px;color:#6f6a60;max-width:100%;overflow-wrap:anywhere;text-align:center}
.fin-voucher>a{font-size:13px;margin:0;color:var(--green,#3b7d4f)}
body:has(.fin-image-dialog[open]){overflow:hidden}
@media(max-width:720px){.fin-app{padding:12px 10px 100px}.fin-panel{padding:16px}.fin-app h1{font-size:23px}.fin-app nav{gap:7px}.fin-app nav a{font-size:14px;padding:8px 11px}}
/* 双工作台：仅管理路由使用，共享层级和组件，绿色内容 / 琥珀色财务。 */
body.workbench-page{background:#f4f5f0;padding-bottom:0}body.workbench-page #tabbar{display:none}
body.workbench-page #app,#app:has(.wb-shell){max-width:1680px;padding:18px 24px 32px}
.wb-shell{--wb-accent:#43634c;--wb-soft:#e9f0e8;--wb-sidebar:#253c30;display:grid;grid-template-columns:228px minmax(0,1fr);min-height:calc(100vh - 50px);gap:0;background:#f7f8f4;border:1px solid #dde3d8;border-radius:22px;box-shadow:0 12px 48px #20352608;text-align:left}
.wb-finance{--wb-accent:#856129;--wb-soft:#f5eddb;--wb-sidebar:#34382d}
.wb-sidebar{background:var(--wb-sidebar);color:#eef2e9;border-radius:21px 0 0 21px;padding:28px 17px 20px;display:flex;flex-direction:column;align-self:start;position:sticky;top:18px;min-height:calc(100vh - 50px);box-sizing:border-box}
.wb-brand{display:flex;align-items:center;gap:11px;color:#fff!important;text-decoration:none;font-size:19px;font-weight:750;padding:0 9px 24px}.wb-brand small{display:block;font-size:11px;font-weight:400;color:#bccabc;letter-spacing:2px;margin-top:4px}.wb-brand-mark{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:#ffffff14;color:#f2f5ee;font-size:23px}.wb-brand-mark svg{width:.85em;height:.85em;display:block}
/* 2026.11.23 用户拍板：工作台品牌行副标题（管理工作台 / 我的工作台）前两个字用金色，
   两个工作台共用同一份壳（workbench.cjs shell），改一次两端生效。 */
.wb-brand .wb-brand-gold{color:#e3c05f}
.wb-switch{display:grid;grid-template-columns:1fr 1fr;background:#ffffff0c;border:1px solid #ffffff16;border-radius:12px;padding:4px;gap:4px}.wb-switch a{color:#d1dbcc;font-size:12px;text-decoration:none;padding:10px 4px;text-align:center;border-radius:8px;white-space:nowrap}.wb-switch a[aria-current]{background:#f5f6ed;color:#354638;font-weight:700}
.wb-access{display:flex;align-items:center;gap:7px;color:#b8c8b4;font-size:11px;padding:17px 7px 9px}.wb-access i{height:5px;width:5px;border-radius:50%;background:#b4c9a4;flex-shrink:0}
.wb-sidebar nav{display:block;margin:0}.wb-nav-group{margin:20px 0}.wb-nav-group>p{font-size:10px;letter-spacing:1.6px;color:#9bad9f;margin:0 12px 10px}
.wb-shell .wb-nav-item{box-sizing:border-box;display:flex;align-items:center;width:100%;gap:10px;border:0;border-radius:10px;background:transparent;color:#dce5d7;font:inherit;font-size:13px;padding:12px;margin:3px 0;cursor:pointer;text-decoration:none;text-align:left;transition:background .15s,color .15s}
.wb-shell .wb-nav-item:hover{background:#ffffff12;color:white}.wb-shell .wb-nav-item[aria-current]{background:#e8eedf;color:#304633;font-weight:750}.wb-finance .wb-nav-item[aria-current]{background:#f3e6c0;color:#5a4a1e}.wb-shell .wb-nav-item:focus-visible{outline:2px solid #e7cf98;outline-offset:2px}.wb-nav-symbol{font-size:16px;width:19px;text-align:center;font-style:normal;opacity:.85}.wb-nav-item b{margin-left:auto;font-size:10px;padding:2px 7px;border-radius:7px;background:#ffffff15}.wb-nav-item[aria-current] b{background:#385e3512}.wb-shell .wb-nav-child{padding-left:25px;font-size:12px;color:#bbccb8}
.wb-sidebar-foot{margin-top:auto;padding:25px 10px 0;border-top:1px solid #ffffff15}.wb-sidebar-foot a{font-size:12px;color:#edf2e7;text-decoration:none}.wb-sidebar-foot p{font-size:10px;color:#9bae9d;line-height:1.9;margin:12px 0 0}
.wb-main{min-width:0;padding:30px 34px 12px}.wb-header{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:23px}.wb-breadcrumb{font-size:11px;color:#8c9588;line-height:1.6}.wb-breadcrumb span{color:#bdc4b7;margin:0 8px}.wb-shell .wb-header h1{font-size:27px;color:#273b2d;letter-spacing:-.7px;margin:12px 0 8px;line-height:1.25}.wb-finance .wb-header h1{color:#403d2c}.wb-header p{font-size:12px;line-height:1.8;color:#7c8778;margin:0;max-width:520px}.wb-header-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap;justify-content:flex-end;padding-top:10px;flex-shrink:0}
.wb-shell .wb-header-actions button{font:inherit;font-size:12px;padding:9px 12px;border:1px solid #d6decf;border-radius:9px;background:#fff;color:#59664f;margin:0;cursor:pointer}.wb-link{font-size:12px;font-weight:600;color:var(--wb-accent);text-decoration:none}.wb-header-actions a{white-space:nowrap}
.wb-welcome{border:1px solid #d8e2d2;background:linear-gradient(110deg,#edf2e7,#f5f7ef);border-radius:17px;padding:24px 27px;margin:12px 0 22px;position:relative;overflow:hidden}.wb-finance .wb-welcome{background:linear-gradient(110deg,#f5edda,#faf8ee);border-color:#e9ddc4}.wb-eyebrow{font-size:9px;letter-spacing:2px;color:var(--wb-accent);font-weight:700}.wb-welcome h2{font-size:23px;letter-spacing:-.4px;margin:12px 0;color:#34472f;line-height:1.5}.wb-finance .wb-welcome h2{color:#584c32}.wb-welcome p{font-size:12px;color:#79846d;line-height:1.8;margin:0 0 15px}.wb-welcome a,.wb-welcome button{display:inline-block;border:0;background:var(--wb-accent);color:#fff!important;border-radius:9px;padding:10px 15px;font-size:12px;font-weight:600;cursor:pointer;text-decoration:none}
.wb-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:18px 0 24px}.wb-metric{display:flex;flex-direction:column;background:#fff;border:1px solid #e0e5da;border-radius:14px;padding:20px;gap:9px;min-width:0;text-decoration:none;color:inherit}.wb-metric>span{font-size:12px;color:#7a8774}.wb-metric strong{font-size:27px;font-weight:750;line-height:1.25;color:#344933;letter-spacing:-.5px;overflow-wrap:anywhere}.wb-finance .wb-metric strong{color:#6b5632}.wb-metric small{font-size:10px;color:#98a08e;line-height:1.7}.wb-metric[href]:hover{border-color:var(--wb-accent);box-shadow:0 5px 16px #3948310a}
.wb-panel{background:#fff;border:1px solid #e0e5da;border-radius:15px;padding:22px;margin:0 0 20px;min-width:0}.wb-panel h2{font-size:16px;margin:0 0 14px;color:#394b36}.wb-panel>p{font-size:12px;line-height:1.9}.wb-section-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 16px}.wb-section-title h2{margin:0}.wb-section-title>span,.wb-section-title>a{font-size:11px;color:#8c967e;text-decoration:none}.wb-muted{font-size:12px;color:#8b9581;line-height:1.9}
.wb-shortcuts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.wb-shortcuts button{position:relative;display:grid;grid-template-columns:38px 1fr;column-gap:12px;row-gap:6px;align-items:center;border:1px solid #e2e7da;border-radius:12px;background:#fcfdf9;text-align:left;padding:18px 16px;cursor:pointer;font:inherit}.wb-shortcuts button:hover{border-color:#a8bb98;background:#f7faef}.wb-shortcuts i{grid-row:1/3;display:grid;place-items:center;font-style:normal;background:var(--wb-soft);color:var(--wb-accent);width:36px;height:36px;border-radius:11px;font-size:19px}.wb-shortcuts strong{font-size:13px;color:#405039}.wb-shortcuts span{font-size:11px;color:#929c86;line-height:1.6}.wb-shortcuts b{position:absolute;right:12px;top:12px;color:#a4af96;font-size:12px}
.wb-columns{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:20px}.wb-activity{display:block;border-bottom:1px solid #edf0e7;padding:12px 0;color:#53604a;text-decoration:none;font-size:12px}.wb-activity span{display:block;line-height:1.7}.wb-activity small{display:block;font-size:10px;color:#a2aa96;margin-top:5px}.wb-activity:last-child{border:0}.wb-steps{padding:0;list-style:none;counter-reset:step;margin:18px 0}.wb-steps li{position:relative;padding:0 0 20px 31px;counter-increment:step}.wb-steps li:before{content:counter(step);position:absolute;left:0;top:0;display:grid;place-items:center;width:21px;height:21px;border-radius:50%;background:var(--wb-soft);color:var(--wb-accent);font-size:10px;font-weight:700}.wb-steps b{display:block;font-size:12px;color:#657158;margin-bottom:6px}.wb-steps span{display:block;font-size:11px;color:#98a08d;line-height:1.8}
.wb-note,.wb-warning{border:1px solid #e7dfc8;border-radius:11px;background:#faf7ee;color:#927d50;font-size:12px;line-height:1.9;padding:13px 17px;margin:15px 0}.wb-footer{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;color:#a7b09d;font-size:10px;border-top:1px solid #e5e9df;padding:22px 0 8px;margin-top:26px}.wb-footer span{color:#b4bbaa}
.wb-login-intro{max-width:480px;margin:25px auto;text-align:center}.wb-login-intro h2{font-size:23px;line-height:1.8;color:#42553b}.wb-login-intro p{font-size:12px;color:#8a967e}.wb-shell .wb-login-card{margin:25px auto;max-width:440px;padding:27px;border-radius:16px;border-color:#dce4d2;box-shadow:0 12px 32px #324f3010}.wb-login-card h2{font-size:19px;margin:0 0 7px}.wb-login-card label{font-size:12px;color:#77876a;margin-top:10px}.wb-shell .mg-input{font-size:16px}.wb-shell .mg-gate button{padding:12px}.wb-shell .mg-content{background:#fff;border:1px solid #e0e5da;border-radius:15px;padding:22px}.wb-shell .mg-filters{margin-top:15px;margin-bottom:18px}.wb-shell .mg-post{background:white;border-color:#e0e5da;padding:17px;margin-bottom:12px}.wb-shell .mg-form{background:#fff;border:1px solid #e0e5da;border-radius:15px;padding:22px;margin-bottom:20px}.wb-shell .mg-count{font-size:12px;color:#89957b;margin:14px 0}
.fin-app.fin-workbench{max-width:none;padding:0}.fin-workbench .wb-sidebar nav{display:block;margin:0}.fin-workbench .wb-sidebar a{padding:initial;border:0;background:transparent;border-radius:0}.fin-workbench .wb-sidebar .wb-brand{padding:0 9px 24px}.fin-workbench .wb-switch a{padding:10px 4px;border-radius:8px}.fin-workbench .wb-sidebar .wb-nav-item{padding:12px;border-radius:10px}.fin-workbench .wb-sidebar .wb-nav-child{padding-left:25px}.fin-workbench .wb-switch a[aria-current]{background:#f5f6ed}.fin-workbench .wb-sidebar .wb-nav-item[aria-current]{background:#f3e6c0;color:#5a4a1e}.fin-workbench .wb-sidebar .wb-nav-item:not([aria-current]):hover{background:#ffffff12}.fin-workbench .wb-header{margin:0 0 23px}.fin-workbench .wb-header h1{font-size:27px}.fin-workbench .wb-header-actions button{font-size:12px;padding:9px 12px;margin:0;background:#fff}.fin-workbench .wb-main .fin-status{position:static;min-height:0;font-size:12px;margin:12px 0;background:var(--wb-soft);padding:11px 15px;border:1px solid #e8dfca}.fin-workbench .wb-main .fin-status:empty{display:none}.fin-workbench .fin-panel{border-radius:15px;border-color:#e0e5da;margin:0 0 20px;padding:22px}.fin-workbench .fin-panel h2{font-size:17px}.fin-workbench .fin-panel>p{font-size:12px;color:#8a8977}.fin-workbench .fin-actions{gap:6px;margin-bottom:18px}.fin-workbench .fin-actions button{font-size:11px;padding:8px 12px;margin:0;background:#f7f6ee;color:#8b7e60;border-color:#e5dfcf}.fin-workbench .fin-actions button[aria-pressed=true]{background:#856129;border-color:#856129;color:#fff}
.wb-table-tools{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:16px}.wb-search{display:flex!important;align-items:center;gap:8px;flex:1;max-width:470px;background:#fafbf6;border:1px solid #e3e7db;border-radius:10px;padding:0 12px}.fin-workbench .wb-search input{border:0;background:transparent;padding:11px 3px;font-size:16px;min-width:0}.wb-search>span{font-size:23px;color:#a1ab94}.wb-table-row{display:grid;grid-template-columns:20px minmax(0,1fr) auto auto;gap:14px;align-items:center;padding:17px 0;border-bottom:1px solid #edf0e7}.wb-table-row:last-child{border-bottom:0}.wb-row-main{display:grid;gap:7px;min-width:0}.wb-row-main strong{font-size:13px;color:#536047;overflow-wrap:anywhere}.wb-row-main>span{font-size:10px;color:#9da68f;line-height:1.7}.wb-row-amount{display:grid;gap:7px;text-align:right;min-width:84px}.wb-row-amount b{font-size:15px;color:#695738}.wb-row-amount .fin-badge{font-size:10px;padding:4px 8px;background:#f4eee0;color:#9d8757}.fin-workbench .wb-table-row button{font-size:11px;padding:8px 12px;margin:0;background:white;color:#8e7a54;border-color:#e2d9c5}.wb-row-dot{display:block;width:6px;height:6px;background:#c7d1bc;border-radius:50%}.fin-workbench .wb-row-check input{width:16px;height:16px;accent-color:#92733c;cursor:pointer}
.wb-empty{text-align:center;padding:35px 15px;color:#a0a991}.wb-empty>span{display:inline-grid;place-items:center;background:var(--wb-soft);border-radius:50%;height:40px;width:40px;color:var(--wb-accent);font-size:20px;margin:0 0 8px}.wb-empty h3{font-size:15px;color:#7a876e}.wb-empty p{font-size:12px;line-height:1.8}.fin-workbench .fin-payment-bar{display:flex;justify-content:space-between;gap:15px;align-items:center;position:sticky;bottom:16px;background:#fffdf5;box-shadow:0 -5px 24px #6157350a;border-color:#dfd3b5;border-radius:13px;z-index:5}.fin-payment-bar>div{display:grid;gap:8px}.fin-payment-bar strong{font-size:13px}.fin-payment-bar span{font-size:11px;color:#9a865b}.fin-workbench .fin-payment-bar button{background:#856129;color:white;border:0;font-size:12px;padding:12px 18px;margin:0}.wb-log{display:grid;grid-template-columns:116px 1fr auto;align-items:center;gap:15px;border-bottom:1px solid #ecefe5;padding:16px 0}.wb-log time{font-size:10px;color:#9ca68e}.wb-log b{display:block;font-size:12px;color:#6a755b}.wb-log small{font-size:10px;color:#9fa58e;margin-top:6px}.wb-log button{font-size:11px!important}
body.wb-drawer-open{overflow:hidden}.wb-drawer-backdrop{position:fixed;inset:0;z-index:1500}.wb-drawer-scrim{position:absolute;inset:0;width:100%;height:100%;background:#26332566!important;border:0!important;margin:0!important;border-radius:0!important;font-size:0!important;color:transparent!important;cursor:default!important}.wb-drawer{position:absolute;right:0;top:0;bottom:0;width:min(640px,94vw);padding:25px;box-sizing:border-box;background:#f8f8f2;overflow:auto;box-shadow:-12px 0 60px #19271625;overscroll-behavior:contain}.wb-drawer-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;position:sticky;top:-25px;padding:12px 0;background:#f8f8f2;z-index:2}.wb-drawer-head small{font-size:10px;color:#9b9f8a}.wb-drawer-head h2{font-size:19px;line-height:1.6;margin:6px 0 12px;overflow-wrap:anywhere}.wb-drawer-head button{font-size:12px;border:1px solid #d5dccd;border-radius:8px;background:white;padding:8px 12px;cursor:pointer;flex-shrink:0}.wb-drawer .fin-panel{margin:0;border:1px solid #e1e4d9;padding:20px;border-radius:13px;background:white}.wb-drawer .fin-files{display:flex;gap:7px;flex-wrap:wrap}.wb-drawer button{font:inherit;font-size:12px;border-radius:9px;padding:10px 13px;border:1px solid #ddcfaf;background:#f8f3e8;color:#8b6b32;cursor:pointer}.wb-drawer input,.wb-drawer textarea{font-size:16px;padding:10px;border:1px solid #d8dccc;border-radius:9px;max-width:100%;box-sizing:border-box}.wb-drawer label{display:grid;gap:9px;font-size:12px;color:#8a8e78}.wb-drawer small{display:block;font-size:10px;color:#969e86}.wb-drawer details{font-size:11px;line-height:1.9;margin-top:15px}.wb-drawer details p{font-size:11px;color:#8d967f}
@media(min-width:1450px){.wb-main{padding:35px 44px 15px}.wb-sidebar{padding-top:32px}}
@media(max-width:1100px){.wb-shell{grid-template-columns:202px minmax(0,1fr)}.wb-main{padding:24px}.wb-header{flex-direction:column}.wb-header-actions{padding-top:0}.wb-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.wb-columns{grid-template-columns:1fr}.wb-shortcuts{grid-template-columns:1fr 1fr}}
@media(max-width:760px){body.workbench-page #app,#app:has(.wb-shell){padding:0;max-width:none}.wb-shell{display:block;border:0;border-radius:0;min-height:100vh}.wb-sidebar{position:static;min-height:0;border-radius:0;padding:18px 16px 8px}.wb-brand{padding:0 2px 15px;font-size:17px}.wb-brand-mark{width:32px;height:32px;font-size:19px;border-radius:50%}.wb-brand small{font-size:9px}.wb-switch{max-width:330px}.wb-access{padding:12px 4px 3px;font-size:10px}.wb-sidebar nav,.fin-workbench .wb-sidebar nav{display:flex;flex-wrap:nowrap;align-items:center;overflow-x:auto;overflow-y:hidden;gap:6px;scrollbar-width:none;max-width:100%;padding-bottom:5px}.wb-nav-group{display:flex;gap:6px;margin:8px 0;flex-shrink:0}.wb-nav-group>p{display:none}.wb-shell .wb-nav-item,.fin-workbench .wb-sidebar .wb-nav-item{position:relative;padding:10px!important;font-size:13px;line-height:1.2;white-space:nowrap;margin:0}.fin-workbench .wb-sidebar .wb-nav-item{flex:0 0 auto;width:106px;min-width:106px;justify-content:center;text-align:center}.wb-nav-symbol{width:16px;font-size:13px}.wb-shell .wb-nav-item b,.fin-workbench .wb-sidebar .wb-nav-item b{position:absolute;top:4px;right:6px;margin:0;font-size:11px;padding:1px 5px}.wb-sidebar-foot{display:none}.wb-main{padding:20px 15px 30px}.wb-header{gap:8px;margin-bottom:18px}.wb-shell .wb-header h1,.fin-workbench .wb-header h1{font-size:24px;margin-top:10px}.wb-breadcrumb{font-size:9px}.wb-header p{font-size:11px}.wb-header-actions{gap:12px}.wb-welcome{padding:19px;margin-top:17px}.wb-welcome h2{font-size:20px}.wb-welcome p{font-size:11px}.wb-metrics{gap:10px;margin:15px 0}.wb-metric{padding:15px;gap:9px}.wb-metric strong{font-size:23px}.wb-metric small{font-size:9px}.wb-panel{padding:17px}.wb-shortcuts{grid-template-columns:1fr}.wb-shell .mg-content,.wb-shell .mg-form{padding:15px}.wb-shell .mg-post{padding:13px}.wb-table-row{grid-template-columns:16px minmax(0,1fr) auto;gap:9px}.wb-table-row>button{grid-column:2/4;justify-self:end}.wb-row-amount b{font-size:14px}.wb-row-main strong{font-size:12px}.wb-table-tools{flex-wrap:wrap}.wb-search{width:100%;flex-basis:100%;max-width:none}.wb-log{grid-template-columns:1fr auto;gap:8px}.wb-log time{grid-column:1/3}.fin-workbench .fin-payment-bar{bottom:8px;padding:14px}.wb-footer span{display:none}.wb-drawer{padding:17px}.wb-drawer-head{top:-17px}.fin-workbench .wb-sidebar .wb-brand{padding:0 2px 15px}.wb-login-intro h2{font-size:20px}.wb-shell .wb-login-card{padding:21px;margin:22px 0}}
.wb-content .mg-toast{background:#edf5e5;color:#577248;border:1px solid #dbe9d0;font-weight:500}

/* 工作台按角色与任务展示，字号独立于用户端。 */
.wb-shell{font-size:16px;color:#35412f}.wb-shell .wb-header h1,.fin-workbench .wb-header h1{font-size:32px}.wb-shell .wb-header p{font-size:16px;color:#58644f}.wb-shell .wb-breadcrumb{font-size:13px}.wb-shell .wb-access{font-size:14px;line-height:1.7}.wb-shell .wb-nav-item,.fin-workbench .wb-sidebar .wb-nav-item{font-size:16px}.wb-nav-group>p{font-size:13px}.wb-shell .wb-header-actions button,.wb-shell .wb-link{font-size:14px}.wb-shell .wb-welcome h2{font-size:28px;margin:0 0 18px}.wb-shell .wb-welcome p{font-size:16px}.wb-shell .wb-welcome a{font-size:16px;padding:13px 22px}.wb-role-picker{margin:0 0 26px}.wb-role-picker h2{font-size:23px}.wb-role-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.wb-role-grid a{display:grid;gap:12px;border:1px solid #d8dfcf!important;border-radius:14px!important;background:white!important;padding:20px!important;text-decoration:none;color:#384833}.wb-role-grid a[aria-current]{border:2px solid var(--wb-accent)!important;background:var(--wb-soft)!important}.wb-role-grid strong{font-size:20px}.wb-role-grid span{font-size:15px;line-height:1.7;color:#5e6954}.wb-task-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-bottom:24px}.wb-task-card{display:block;background:#fff;border:1px solid #dcd6c5;border-radius:16px;padding:26px;text-decoration:none;color:#57482d}.wb-task-card:hover{border-color:var(--wb-accent)}.wb-task-card>span{font-size:14px;color:#766748}.wb-task-card h2{font-size:24px;margin:14px 0}.wb-task-card strong{display:block;font-size:28px}.wb-task-card p{font-size:16px;line-height:1.7;color:#635d4d}.wb-task-card b{display:inline-block;background:var(--wb-accent);color:white;padding:12px 18px;border-radius:9px;font-size:16px}.wb-shell .wb-panel h2,.fin-workbench .fin-panel h2{font-size:21px}.wb-shell .wb-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.wb-shell .wb-metric>span{font-size:16px}.wb-shell .wb-metric small{font-size:14px;color:#647057}.wb-shell .wb-shortcuts strong{font-size:20px}.wb-shell .wb-shortcuts span{font-size:15px;color:#65715b}.wb-shell .wb-shortcuts button{padding:24px}.wb-shell .wb-columns{grid-template-columns:1fr}.wb-shell .wb-activity{font-size:16px}.wb-shell .wb-activity small{font-size:14px}.wb-shell .wb-section-title>a,.wb-shell .wb-muted{font-size:15px;color:#667357}.wb-shell .wb-row-main strong{font-size:18px}.wb-shell .wb-row-main>span{font-size:14px;color:#657157}.wb-shell .wb-row-amount b{font-size:20px}.wb-shell .wb-row-amount .fin-badge{font-size:14px}.fin-workbench .wb-table-row button,.fin-workbench .fin-actions button,.fin-workbench .fin-payment-bar button{font-size:16px;padding:11px 16px}.fin-workbench .fin-panel>p,.wb-shell .wb-panel>p,.wb-shell .wb-note{font-size:16px;color:#655c43}.fin-workbench .fin-panel label,.wb-drawer label,.wb-shell .wb-login-card label{font-size:16px;color:#59624d}.fin-workbench .fin-panel small,.wb-drawer small,.wb-drawer details{font-size:14px;color:#68725a}.wb-drawer button{font-size:16px}.wb-shell .fin-payment-bar strong,.wb-shell .fin-payment-bar span{font-size:16px}.wb-shell .wb-footer{font-size:13px}.wb-shell .wb-eyebrow{display:none}
@media(max-width:760px){.wb-role-grid,.wb-task-grid{grid-template-columns:1fr}.wb-role-grid a{padding:16px!important}.wb-shell .wb-header h1,.fin-workbench .wb-header h1{font-size:27px}.wb-shell .wb-welcome h2{font-size:24px}.wb-shell .wb-nav-item,.fin-workbench .wb-sidebar .wb-nav-item{font-size:15px}.wb-shell .wb-shortcuts strong{font-size:18px}.wb-task-card{padding:21px}.wb-task-card strong{font-size:25px}.wb-shell .wb-row-main strong{font-size:17px}.wb-shell .wb-row-amount b{font-size:18px}.fin-workbench .fin-payment-bar{flex-wrap:wrap}.wb-shell .wb-metric{padding:15px}}

/* 财务单一登录与统一查账：表单不与跨角色入口并列，移动端保持16px。 */
/* 财务登录（2026.11.03 按用户示意稿）：左侧深色品牌栏+右侧整块浅色面板，表单直接铺在面板上；Tab为纯文字式，输入框胶囊圆角；提示只在出错时出现。 */
/* 2026.11.23 UI 升级（用户「整个 UI 有点丑」）：登录区改白卡容器+胶囊分段 tab，
   卡片浮在鼠尾草灰面板上；文案与表单结构不动，输入框仍 ≥16px。
   2026.11.23 中午用户看实机后拍板：品牌头（徽标+标题+副标题）整块删除，
   .fin-login-head/.fin-login-badge 样式随之移除，勿恢复。 */
.wb-shell:has(.fin-login) .wb-main { background: #eef0e9; border-radius: 0 21px 21px 0; }
.wb-shell:has(.fin-login) .wb-header { margin-bottom: 6px; }
.fin-login { max-width: 440px; margin: 18px auto 34px; padding: 26px 26px 22px; box-sizing: border-box; background: #fff; border: 1px solid #e3e5db; border-radius: 20px; box-shadow: 0 14px 34px rgba(44,53,42,.07); }
@media (max-width:560px) { .fin-login { margin: 10px 4px 26px; padding: 20px 16px 16px; border-radius: 16px; } }
.fin-login-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: #eef0e6; border-radius: 999px; padding: 4px; margin: 18px 0; }
.fin-login-tabs button { font: inherit; font-size: 15px; border: 0; border-radius: 999px; background: transparent; color: #8a9083; padding: 11px 6px; cursor: pointer; text-align: center; transition: color .15s, background .15s, box-shadow .15s; }
.fin-login-tabs button:hover { color: #5c6455; }
.fin-login-tabs button[aria-selected="true"] { background: #fff; color: #856129; font-weight: 700; box-shadow: 0 2px 10px rgba(44,53,42,.08); }
.fin-login form { display: grid; gap: 16px; max-width: none; }
.fin-login form[hidden] { display: none; }
.fin-login label { display: grid; gap: 9px; font-size: 14px; color: #4c5548; }
.fin-login input { font-size: 16px; padding: 11px 18px; border: 1px solid #dde1d2; border-radius: 24px; background: #fdfdfb; box-sizing: border-box; width: 100%; min-height: 46px; }
.fin-login input::placeholder { color: #b3b8ab; }
.fin-login input:focus { outline: none; border-color: #856129; box-shadow: 0 0 0 3px #85612914; background: #fff; }
.fin-login form button[type="submit"] { font: inherit; font-size: 16px; font-weight: 650; border: 0; border-radius: 24px; background: #856129; color: #fff!important; padding: 12px; cursor: pointer; min-height: 48px; margin-top: 4px; box-shadow: 0 8px 18px rgba(133,97,41,.2); letter-spacing: 6px; text-indent: 6px; }
.fin-login form button[type="submit"]:hover { background: #6f5122; }
.fin-login form button[type="submit"]:disabled { opacity: .6; cursor: not-allowed; }
.fin-login .fin-login-hint { font-size: 13px; color: #8f967f; line-height: 1.8; text-align: center; margin: 4px 0 0; }
/* 2026.11.23 冷启动重点撞色：两卡提示里的关键词（长期有效/记录在账号名下/不对外显示）用金色加粗，与灰绿底文撞色。 */
.fin-login .fin-login-hint b { color: #856129; font-weight: 650; }
/* 2026.11.05 登录卡提示：放在「账号登录 / 首次开通」下一行，一行居中说明，不占新层级。 */
.fin-login .fin-login-tip { margin: -6px 0 12px; font-size: 13px; line-height: 1.6; color: #7a6a49; text-align: center; }
/* 🔴 2026.11.13 微信内置浏览器铁律：登录/开通失败必须写在按钮上方这一条里。
   iOS 微信对原生 required/minlength 校验失败既不提示也不提交，页头状态条又常被滚出视野，
   结果就是「点开通并登录没反应」。这条提示由 loginNotice() 直写，别删、别改成 toast。 */
.fin-login-error { margin: 0 0 10px; padding: 10px 13px; border-radius: 10px; border: 1px solid #e6d4c6; background: #fffaf4; color: #8a6a3c; font-size: 13.5px; line-height: 1.6; }
.fin-login-error.is-error { border-color: #e3b6a4; background: #fff3ee; color: #a33b2a; }
.fin-login input.is-invalid { border-color: #c2705a; background: #fff8f5; }
/* 报销表单：字段名 + 一行说明（2026.11.03 用户文案）。 */
.fin-app label > .fin-field-hint, .fin-panel form label > .fin-field-hint { font-size: 12px; color: #8f967f; line-height: 1.7; margin-top: 4px; }
.fin-login-alt { text-align: center; font-size: 13px; margin: 18px 0 10px; }
/* 统一登录·首次开通身份卡（2026.11.03）：报销同学 / 财务同学 二选一。 */
.fin-login-roles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fin-login-roles button { font: inherit; display: grid; gap: 3px; justify-items: center; padding: 12px 8px; border-radius: 12px; border: 1.5px solid #ddd6c2; background: #fffdf8; color: #7c7259; cursor: pointer; transition: border-color .15s, background .15s; }
.fin-login-roles button b { font-size: 14.5px; color: inherit; }
.fin-login-roles button span { font-size: 12px; opacity: .85; }
.fin-login-roles button[aria-pressed="true"] { border-color: #856129; background: #faf5e9; color: #6b5632; }
/* 公示页爱心账本卡：对外仅两个入口（2026.11.03）。 */
.ledger-entry-links { margin-left: auto; display: inline-flex; gap: 10px; flex: none; }
/* 2026.11.20 用户反馈：四颗入口胶囊（登记支持/查看明细/报销与财务/查看明细）太高太墩，
   上下内边距 8px→5px 压矮一截（高度约 36→30px），字号与左右内边距不动。 */
.ledger-btn { font-size: 13.5px; font-weight: 700; padding: 5px 14px; border-radius: 999px; text-decoration: none; white-space: nowrap; }
.ledger-btn-primary { background: #856129; color: #fff !important; }
.ledger-btn-primary:hover { background: #6f5122; }
.ledger-btn-ghost { border: 1.5px solid #cfc4a2; background: #fffdf8; color: #6b5632 !important; }
.ledger-btn-ghost:hover { border-color: #856129; }
@media (max-width:560px) { .ledger-entry-links { flex-wrap: wrap; justify-content: flex-end; } }
/* 财务工作台三入口（2026.11.03）：页面顶部状态 Tab，胶囊分段式。 */
.fin-status-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 2px 0 18px; }
.fin-status-tabs button { font: inherit; font-size: 14px; padding: 9px 18px; border-radius: 999px; border: 1px solid #e0e4d6; background: #fff; color: #7c8778; cursor: pointer; transition: background .15s, color .15s; }
.fin-status-tabs button:hover { border-color: #b8c2a8; color: #55604b; }
.fin-status-tabs button[aria-pressed="true"] { background: #f0ede0; border-color: #c6bfa6; color: #4c4530; font-weight: 650; }
.wb-sidebar-foot button { font: inherit; font-size: 12px; color: #edf2e7; background: none; border: 0; padding: 0; cursor: pointer; }
.wb-sidebar-foot button:hover { text-decoration: underline; }
.fin-workbench .wb-table-tools > label { min-width: 0; }
.fin-workbench table { width: 100%; border-collapse: collapse; }
.fin-workbench th, .fin-workbench td { padding: 10px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line, #dedfd4); overflow-wrap: anywhere; }
.fin-workbench dl { display: grid; grid-template-columns: minmax(90px, 1fr) minmax(0, 3fr); gap: 10px 16px; }
.fin-workbench dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width:720px) { .wb-shell:has(.fin-login) .wb-main { border-radius: 0; } .fin-login { max-width: none; } .fin-login form { max-width: none; } .fin-workbench .wb-table-tools { flex-wrap: wrap; } .fin-workbench .wb-table-tools .wb-search { flex-basis: 100%; } }
.fin-workbench .wb-search-label { flex: none; white-space: nowrap; }
.fin-workbench .wb-search input { min-width: 0; }

/* ── 公开账本·表格版（2026.11.03 按用户截图风格）：米白底/墨绿主色/琥珀点缀 ── */
.fin-public-app header{align-items:flex-start}
.fpl-back{font-size:14px;color:var(--ink-2);text-decoration:none}
.fin-public-app h1{font-size:34px;margin:6px 0 0}
.fpl-entry-link{font-size:14px;color:var(--amber);text-decoration:none;border:1px solid #eadfbc;background:var(--amber-soft);padding:9px 14px;border-radius:999px;white-space:nowrap}
.fpl-hero{display:flex;gap:22px;align-items:stretch;background:#fbfaf5;border:1px solid var(--line);border-radius:20px;padding:18px 22px;margin:18px 0;flex-wrap:wrap}
.fpl-hero-note{display:flex;gap:14px;align-items:center;min-width:240px;flex:1}
.fpl-cat{width:120px;height:88px;flex-shrink:0}
.fpl-hero-note p{font-size:13px;color:var(--ink-2);margin:0}
.fpl-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;flex:2;min-width:320px}
.fpl-stat{background:var(--amber-soft);border-radius:14px;padding:14px 18px;display:grid;gap:4px;min-width:0}
.fpl-stat span{font-size:13px;color:var(--ink-2)}
.fpl-stat b{font-size:22px;overflow-wrap:anywhere}
.fpl-stat-in{background:var(--green-soft)}
.fpl-stat-in b{color:var(--green)}
.fpl-stat-out b{color:var(--amber)}
.fpl-toolbar{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;align-items:center;margin:6px 0 12px}
.fpl-types{display:flex;gap:8px}
.fpl-types button{margin:0;border-radius:999px;padding:10px 24px;border:1px solid #d5d9c8;background:#fff;font-size:15px;color:var(--ink)}
.fpl-types button[aria-pressed="true"]{background:#3f5b41;border-color:#3f5b41;color:#fff}
.fpl-tools{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.fpl-select,.fpl-search{display:flex;align-items:center;gap:6px;background:#fff;border:1px solid #d5d9c8;border-radius:10px;padding:0 10px;margin:0}
.fpl-select select{border:0;padding:10px 2px;font-size:14px;width:auto;max-width:180px;background:transparent}
.fpl-search input{border:0;padding:10px 2px;font-size:14px;width:150px;background:transparent}
.fpl-kindrows{display:grid;gap:8px;margin:0 0 14px}
.fpl-kindrow{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.fpl-kindrow>b{font-size:13px;color:var(--ink-2);margin-right:2px;font-weight:600}
.fpl-kindrow button{margin:0;border-radius:999px;padding:7px 14px;border:1px solid #d5d9c8;background:#fff;font-size:13px;color:var(--ink-2)}
.fpl-kindrow button[aria-pressed="true"]{background:#e7efe2;border-color:#8fa58c;color:#2f4a33}
.fpl-table{background:#fff;border:1px solid var(--line);border-radius:18px;overflow-x:auto;overflow-y:hidden}
.fpl-head,.fpl-row{display:grid;grid-template-columns:64px 56px 112px 110px minmax(0,1fr) 150px 110px 76px;gap:10px;align-items:center;padding:12px 18px}
.fpl-head{font-size:12.5px;color:var(--ink-3);border-bottom:1px solid var(--line);background:#fbfaf6}
.fpl-row{border-bottom:1px solid #f0ede4;font-size:14px}
.fpl-row:last-child{border-bottom:0}
.fpl-row:hover{background:#fafaf4}
.fpl-date{color:var(--ink-2);white-space:nowrap}
.fpl-badge{justify-self:start;font-size:12px;padding:3px 10px;border-radius:999px;background:#f1f1ea;color:var(--ink-2)}
.fpl-in .fpl-badge{background:var(--green-soft);color:var(--green)}
.fpl-kind{color:var(--ink-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fpl-amount{font-weight:700;white-space:nowrap}
.fpl-in .fpl-amount{color:var(--green)}
.fpl-note{min-width:0;overflow-wrap:anywhere;font-size:13.5px;line-height:1.6}
.fpl-cats{display:flex;gap:6px;flex-wrap:wrap}
.fpl-cat-chip{font-size:12px;background:var(--green-soft);color:#2f5a3c;padding:3px 10px;border-radius:999px;white-space:nowrap}
.fpl-nocat{color:var(--ink-3)}
.fpl-balance{color:var(--ink-2);white-space:nowrap}
.fpl-files button{margin:0;font-size:13px;padding:6px 8px;border:0;background:none;color:var(--green);text-decoration:underline;cursor:pointer;white-space:nowrap}
.fpl-empty{padding:34px 20px;text-align:center;color:var(--ink-3);font-size:14px}
.fpl-footnote{text-align:right;font-size:13px;margin:10px 4px}
.fpl-footnote a{color:var(--ink-2)}
/* 凭证弹层：CSV 内联表格 + 多份凭证翻页 */
/* 表格凭证（CSV）：容器负责横向滚动，表格按内容撑开，列不再被压成一条缝。 */
.fin-csv-name{margin:0 0 6px;font-size:12px;color:#7a7668;overflow-wrap:anywhere}
.fin-csv{width:100%;max-width:100%;max-height:56vh;overflow:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;border:1px solid var(--line);border-radius:10px;margin:0 0 8px;background:#fff}
.fin-csv table{border-collapse:collapse;width:max-content;min-width:100%;font-size:13px}
.fin-csv th,.fin-csv td{border-bottom:1px solid #eeeadd;padding:8px 10px;text-align:left;white-space:nowrap}
.fin-csv th{background:#f6f4ea;position:sticky;top:0;z-index:1}
.fin-csv-hint{margin:0 0 6px;font-size:12px;color:#8a8474}
.fin-csv-empty{margin:0;font-size:13px;color:#7a7668}
/* Excel 等无法在线预览的凭证：说明卡片 + 下方下载入口。 */
.fin-file-card{display:flex;align-items:center;gap:12px;width:100%;box-sizing:border-box;padding:14px;border:1px dashed #d3cfbf;border-radius:12px;background:#fbfaf4}
.fin-file-badge{flex:none;display:grid;place-items:center;min-width:44px;height:44px;padding:0 8px;border-radius:10px;background:#eef2e4;color:#3f5a33;font-size:12px;font-weight:700}
.fin-file-meta{min-width:0;display:grid;gap:4px}
.fin-file-meta b{font-size:13px;font-weight:600;color:#3f3b31;overflow-wrap:anywhere}
.fin-file-meta small{font-size:12px;color:#7a7668;line-height:1.5}
/* 捐款类 CSV 的回执式明细：统计头 + 日期/捐款人/留言/金额，替代裸表格。 */
.fin-donation{width:100%}
.fd-sum{margin:0 0 8px;display:flex;justify-content:space-between;align-items:center;padding:9px 14px;border-radius:10px;background:#eef2e4;color:#2f4a33;font-size:13px;font-weight:600}
.fd-list{list-style:none;margin:0;padding:0;max-height:62vh;overflow:auto;border:1px solid var(--line);border-radius:12px;background:#fff}
.fd-list li{display:grid;grid-template-columns:64px minmax(0,1.1fr) 88px minmax(0,1.6fr);gap:2px 12px;align-items:baseline;justify-items:center;text-align:center;padding:8px 14px;border-bottom:1px dashed #eeeadd}
.fd-list li:last-child{border-bottom:0}
.fd-head{position:sticky;top:0;background:#f6f4ea;font-size:12px;font-weight:600;color:#6f6a5c;border-bottom:1px solid #eeeadd;padding:7px 14px}
.fd-head span{text-align:center}
.fd-date{font-size:12px;color:#8a8574;white-space:nowrap;font-variant-numeric:tabular-nums}
.fd-name{font-size:14px;color:#3f3b31;min-width:0;overflow-wrap:anywhere}
.fd-msg{font-style:normal;font-size:12px;color:#8a8474;line-height:1.5;min-width:0;overflow-wrap:anywhere}
.fd-amt{font-size:14px;font-weight:600;color:#2f7a46;white-space:nowrap;font-variant-numeric:tabular-nums}
@media(max-width:600px){.fd-list li{grid-template-columns:52px minmax(0,1fr) 74px minmax(0,1.3fr);gap:2px 8px;padding:8px 10px}}
.fin-file-nav{display:flex;gap:12px;align-items:center;justify-content:center;margin:10px 0}
.fin-file-nav button{font-size:14px;padding:8px 14px;margin:0}
.fin-file-nav span{font-size:13px;color:var(--ink-2)}
/* 移动端：表格卡片化（同 DOM 变布局，不做两套渲染） */
@media(max-width:720px){
  .fin-public-app h1{font-size:26px}
  .fpl-hero{padding:14px;gap:12px}
  .fpl-hero-note{min-width:0}
  .fpl-cat{width:86px;height:62px}
  .fpl-stats{min-width:0;width:100%;gap:8px}
  .fpl-stat{padding:10px 12px}
  .fpl-stat b{font-size:17px}
  .fpl-toolbar{flex-direction:column;align-items:stretch}
  .fpl-types button{flex:1;padding:10px 0}
  .fpl-tools{width:100%}
  .fpl-search{flex:1;min-width:140px}
  .fpl-search input{width:100%}
  .fpl-head{display:none}
  .fpl-date{grid-area:date}
  .fpl-badge{grid-area:badge}
  .fpl-note{grid-area:note}
  .fpl-balance{grid-area:bal;justify-self:end;font-size:12.5px;margin-right:4px}
  .fpl-files{grid-area:files;justify-self:end}
}

/* 财务明细参考图布局 */
.fin-public-app header{align-items:center}
.fpl-entry-link{border:0;background:none;padding:8px 0}
.fpl-hero{flex-wrap:nowrap;gap:18px;padding:14px 16px;border-radius:16px;background:#fcfaf7}
.fpl-hero-note{flex:0 0 114px;min-width:0;border-right:1px solid var(--line);padding-right:12px;justify-content:center}
.fpl-hero-content{flex:1;min-width:0}
.fpl-hero-content>p{font-size:14px;margin:0 0 10px;color:var(--ink);font-weight:600}
.fpl-stats{min-width:0;gap:8px}
.fpl-stat{position:relative;padding:10px 14px;border-radius:12px;background:#eeebe6;gap:2px}
.fpl-stat:before{content:none}
.fpl-stat-in{background:#edf1e5}.fpl-stat-out{background:#f8eed9}
.fpl-stat-in:before,.fpl-stat-out:before{content:none}
.fpl-stat b,.fpl-stat-in b,.fpl-stat-out b{color:var(--ink);font-size:22px}
.fpl-toolbar{align-items:flex-start;margin:24px 0 10px}
.fpl-types button{padding:7px 26px;border-color:#e6dfd4}
.fpl-types button[aria-pressed="true"]{background:#4c5d32;border-color:#4c5d32}
.fpl-tools{display:flex;gap:8px;align-items:center;flex-wrap:wrap;justify-content:flex-end}
.fpl-select,.fpl-search{border-color:#e6dfd4;background:#fffdfb}
.fpl-select select{padding:7px 2px}.fpl-search input{padding:5px 2px}
.fpl-select,.fpl-search{border-radius:999px}
.fpl-kindrows{display:flex;flex-wrap:wrap;gap:12px;background:#fcfaf7;border:1px solid var(--line);border-radius:12px;padding:14px 12px}
.fpl-kindrow{gap:5px}.fpl-kindrow button{font-size:12px;padding:4px 10px;border-color:#e6dfd4}
.fpl-kindrow+ .fpl-kindrow{border-left:1px solid var(--line);padding-left:12px}
.fpl-head,.fpl-row{grid-template-columns:46px 52px minmax(96px,1.1fr) 100px minmax(150px,2.4fr) 100px 100px 50px;gap:10px;padding:10px 14px}
/* 2026.11.15 视觉对齐：721–1000px 平板/小窗档。桌面那套固定列宽合计 792px，超出卡片后被
   overflow 硬切——「凭证」整列消失、「结余」被截半。这一档换成可收缩列（最小合计 566px），
   配合 .fpl-table 的 overflow-x:auto 兜底：宽屏不留缝、窄屏不裁字。 */
@media(min-width:721px) and (max-width:1000px){
 .fpl-head,.fpl-row{grid-template-columns:40px 44px minmax(50px,1.1fr) 84px minmax(78px,2.4fr) 84px 84px 40px;gap:6px;padding:10px 10px}
}
.fpl-table{border-radius:14px}.fpl-badge{border-radius:6px}.fpl-files button{color:#4777b7;text-decoration:none}
@media(max-width:720px){
 .fpl-hero{gap:10px;padding:12px}.fpl-hero-note{flex-basis:64px;padding-right:8px}.fpl-cat{width:64px;height:60px}
 .fpl-hero-content>p{font-size:12px;line-height:1.6}.fpl-stats{gap:5px}.fpl-stat{padding:8px}.fpl-stat:before{display:none}.fpl-stat span{font-size:11px}.fpl-stat b,.fpl-stat-in b,.fpl-stat-out b{font-size:16px}
 .fpl-types{display:flex}.fpl-tools{justify-content:flex-start}
 .fpl-select select,.fpl-search input{font-size:16px}.fpl-kindrows{display:grid}.fpl-kindrow+ .fpl-kindrow{border-left:0;border-top:1px solid var(--line);padding:10px 0 0}
 .fpl-row{grid-template-columns:46px auto minmax(0,1fr) auto auto;grid-template-areas:"date badge mid amount amount" "note note note note note" "kind kind cats bal files";row-gap:7px;padding:13px 14px}
 .fpl-row .fpl-cats{grid-area:cats;justify-self:start}
 .fpl-head{display:none}.fpl-cats{min-width:0}.fpl-cat-chip{white-space:nowrap;max-width:100%;overflow:hidden}
}
/* 2026.11.15 视觉对齐：320–360px（iPhone SE 一代等）第三行放不下「类目 + 猫名 + 结余 + 凭证」，
   猫名胶囊会压到结余数字上（"奶糕3,993.62"）。这一档把结余/凭证挪到第四行，左结余右凭证。 */
@media(max-width:360px){
 /* 用 .fin-public-app 双类提高特异性，压过后面 2554 那段 max-width:720px 里的 .fpl-row；
    只管公开账本，不碰管理端（.fin-ledger-management）的移动版式。 */
 .fin-public-app .fpl-row{grid-template-areas:"date badge mid amount amount" "note note note note note" "kind kind cats cats cats" "bal bal bal files files";row-gap:6px}
 .fin-public-app .fpl-balance{justify-self:start;margin-right:0}
 .fin-public-app .fpl-files{justify-self:end}
}

/* ── 公开账本微调（2026.11.03 晚·用户反馈）：收支徽章/彩色分类图标 ── */
.fpl-badge{background:#f3ecd9;color:#7a6738;font-weight:600}
.fpl-in .fpl-badge{background:#e7efe2;color:#4c7a52}
.fpl-kind{display:flex;align-items:center;gap:5px;color:var(--ink);font-weight:500}
.fpl-ic{width:15px;height:15px;flex-shrink:0}
.fpl-hero-content>p:empty{display:none}

/* 关联小猫：头像 + 姓名（2026.11.03 晚，头像取自猫档案封面，与猫册/动态同一张） */
.fpl-cats{gap:5px}
.fpl-cat-chip{display:inline-flex;align-items:center;gap:5px;padding:2px 9px 2px 2px;background:#eef2e4;border-radius:999px;font-size:12px;line-height:1.5;color:#2f5a3c;max-width:100%}
.fpl-cat-av{width:18px;height:18px;border-radius:50%;object-fit:cover;object-position:center 30%;flex-shrink:0;background:#dfe7cd;display:inline-flex;align-items:center;justify-content:center;font-size:11px;line-height:1}
.fpl-cat-av-empty{color:#6b7d5a}
@media(max-width:720px){.fpl-cat-av{width:17px;height:17px}}

/* 财务工作台统一排版：仅作用于财务，正文16 / 辅助14 / 标题28。 */
.fin-workbench .wb-shell{--wb-accent:#665334;--wb-soft:#f4efe5;--wb-sidebar:#303b32;background:#f7f8f5;color:#30382f;font-size:16px;grid-template-columns:216px minmax(0,1fr);box-shadow:none;border-radius:16px}
.fin-workbench .wb-main{padding:28px 32px;min-width:0}
.fin-workbench .wb-header{align-items:center;flex-direction:row;flex-wrap:nowrap;margin:0 0 24px;gap:16px}
.fin-workbench .wb-header h1{font-size:28px;line-height:1.3;letter-spacing:0;margin:0}
.fin-workbench .wb-header-actions{padding:0}
.fin-workbench .wb-header-actions button{font-size:14px;padding:9px 14px;min-height:40px}
.fin-workbench .wb-sidebar{padding:28px 16px 20px;border-radius:15px 0 0 15px}
.fin-workbench .wb-brand small{font-size:14px;letter-spacing:0;color:#c3cec1}
.fin-workbench .wb-nav-group>p{display:none}
.fin-workbench .wb-nav-group{margin:16px 0}
.fin-workbench .wb-sidebar .wb-nav-item{font-size:16px;min-height:46px;padding:12px}
.fin-workbench .wb-nav-item b{font-size:14px;background:#ffffff18}
.fin-workbench .wb-sidebar-foot{display:grid;gap:16px;padding:20px 8px 0}
.fin-workbench .wb-sidebar-foot a,.fin-workbench .wb-sidebar-foot button{font-size:14px;text-align:left;margin:0;padding:0;color:#eef2e9;background:none;border:0}
.fin-workbench .wb-metrics{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:0 0 24px}
.fin-workbench .wb-metric{padding:20px;gap:8px;border-radius:12px;border-color:#e0e3da}
.fin-workbench .wb-metric>span{font-size:14px;color:#646e60}
.fin-workbench .wb-metric strong{font-size:28px;line-height:1.3;letter-spacing:0;color:#3c4335;font-variant-numeric:tabular-nums}
.fin-workbench .wb-panel,.fin-workbench .fin-panel{border-radius:12px;border-color:#e0e3da;padding:24px;margin:0 0 24px}
.fin-workbench .wb-section-title{margin:0 0 20px;min-height:32px}
.fin-workbench .wb-panel h2,.fin-workbench .fin-panel h2{font-size:20px;line-height:1.4;margin:0}
.fin-workbench .wb-section-title>a{font-size:16px;color:var(--wb-accent);font-weight:600}
.fin-workbench .wb-table-tools{display:flex;align-items:end;flex-wrap:wrap;gap:12px;margin:0 0 16px}
.fin-workbench .wb-table-tools>label{flex:0 1 140px;font-size:14px;gap:8px;color:#646e60}
.fin-workbench .wb-table-tools>.wb-search{display:flex!important;align-items:center;flex:1 1 240px;min-width:180px;max-width:none;background:none;border:0;padding:0;gap:8px}
/* 搜索图标/文字标签与输入框同行（2026.11.03 用户反馈：图标不许独占一行）；输入框占满剩余宽度。 */
.fin-workbench .wb-search>span{font-size:14px;color:#646e60;line-height:1;white-space:nowrap}
.fin-workbench .wb-table-tools>.wb-search input{flex:1;min-width:0}
.fin-workbench .wb-search>span{font-size:14px;line-height:21px;color:#646e60}
.fin-workbench .wb-search input,.fin-workbench .wb-table-tools select{height:44px;padding:10px 12px;border:1px solid #d5dbce;border-radius:8px;background:#fff;font-size:16px}
.fin-workbench .wb-muted,.fin-workbench .wb-row-main>span,.fin-workbench .wb-row-amount>span{font-size:14px;line-height:1.5;color:#646e60}
.fin-workbench .wb-table-row{grid-template-columns:16px minmax(0,1fr) 148px 112px;gap:16px;padding:18px 0;align-items:center}
.fin-workbench .wb-row-main{gap:6px}
.fin-workbench .wb-row-main strong{font-size:16px;font-weight:600;line-height:1.5;color:#343d30}
.fin-workbench .wb-row-amount{gap:6px;min-width:0;text-align:right;font-variant-numeric:tabular-nums}
.fin-workbench .wb-row-amount b{font-size:18px;line-height:1.5;color:#514631;white-space:nowrap}
.fin-workbench .wb-table-row>button{font-size:14px;padding:9px 12px;min-height:40px;width:112px;border-color:#d5dbce;border-radius:8px}
.fin-workbench .fin-status-tabs{gap:8px;margin:0 0 20px}
.fin-workbench .fin-status-tabs button{font-size:16px;padding:9px 16px;margin:0;line-height:1.5;border-radius:8px}
.fin-workbench .wb-main .fin-status{font-size:14px;padding:10px 14px;margin:0 0 16px;position:static}
.fin-workbench .wb-note{font-size:14px;line-height:1.6;padding:12px 16px;margin:0 0 16px}
.fin-workbench .wb-empty h3{font-size:18px}.fin-workbench .wb-empty p{font-size:14px}
.fin-workbench .wb-drawer-head h2{font-size:22px}.fin-workbench .wb-drawer-head small,.fin-workbench .wb-drawer small,.fin-workbench .wb-drawer details,.fin-workbench .wb-drawer details p{font-size:14px;line-height:1.7;color:#646e60}
.fin-workbench .wb-drawer label,.fin-workbench .wb-drawer p{font-size:16px;line-height:1.6}
.fin-workbench .wb-drawer .fin-panel{padding:20px}
@media(max-width:1000px) and (min-width:761px){.fin-workbench .wb-shell{grid-template-columns:184px minmax(0,1fr)}.fin-workbench .wb-main{padding:24px}.fin-workbench .wb-table-row{grid-template-columns:12px minmax(0,1fr) 120px 96px;gap:12px}.fin-workbench .wb-table-row>button{width:96px}.fin-workbench .wb-metric{padding:16px}.fin-workbench .wb-metric strong{font-size:24px}}
@media(max-width:760px){
 .fin-workbench .wb-shell{display:block;border-radius:0}.fin-workbench .wb-sidebar{position:static;min-height:0;padding:12px 16px 6px;border-radius:0}.fin-workbench .wb-sidebar .wb-brand{padding:0 0 6px}.fin-workbench .wb-brand small{display:inline;font-size:13px;letter-spacing:1px;margin:0 0 0 8px}
 .fin-workbench .wb-sidebar-foot{display:none}
 .fin-workbench .wb-main{padding:24px 16px}.fin-workbench .wb-header{margin-bottom:20px}.fin-workbench .wb-header h1{font-size:24px}.fin-workbench .wb-header-actions button{font-size:14px}
 .fin-workbench .wb-metrics{gap:8px;margin-bottom:20px}.fin-workbench .wb-metric{padding:12px 10px;gap:8px}.fin-workbench .wb-metric strong{font-size:18px;overflow-wrap:anywhere}.fin-workbench .wb-metric>span{font-size:14px}
 .fin-workbench .wb-panel,.fin-workbench .fin-panel{padding:16px;margin-bottom:20px}.fin-workbench .wb-table-tools{gap:12px}.fin-workbench .wb-table-tools>.wb-search{flex-basis:100%}.fin-workbench .wb-table-tools>label{flex:1 1 80px}
 .fin-workbench .wb-table-row{grid-template-columns:16px minmax(0,1fr) 100px;gap:10px;padding:16px 0}.fin-workbench .wb-table-row>button{grid-column:2/4;justify-self:end;width:auto;min-width:96px}.fin-workbench .wb-row-main strong{font-size:16px}.fin-workbench .wb-row-amount b{font-size:16px}.fin-workbench .wb-row-amount>span{font-size:14px}
}

/* ── 关联小猫两级竖列筛选（2026.11.03 晚·用户反馈）─────────────────── */
.fpl-cat-filter{position:relative}
.fpl-cat-toggle{display:flex;align-items:center;gap:6px;background:#fffdfb;border:1px solid #e6dfd4;border-radius:999px;padding:7px 13px;font-size:14px;line-height:1.6;color:var(--ink);margin:0}
.fpl-cat-toggle[aria-expanded="true"]{border-color:#c9cdb4;background:#f7f5ee}
.fpl-caret{font-style:normal;font-size:12px;color:#8d8878;line-height:1}
.fpl-cat-panel{position:absolute;top:calc(100% + 8px);right:0;z-index:40;width:236px;max-height:min(62vh,400px);overflow:auto;padding:6px;background:#fffdfb;border:1px solid #e6dfd4;border-radius:14px;box-shadow:0 16px 36px rgba(60,54,40,.16)}
.fpl-cat-panel[hidden]{display:none}
.fpl-cat-all{display:block;width:100%;margin:0;padding:9px 10px;border:0;border-radius:9px;background:none;font-size:13.5px;line-height:1.6;text-align:left;color:var(--ink)}
.fpl-cat-all[aria-current="true"]{background:#eef2e4;color:#2f5a3c;font-weight:600}
.fpl-cat-group+.fpl-cat-group{border-top:1px solid #f1ece1}
.fpl-cat-stage{display:flex;align-items:center;gap:8px;width:100%;margin:0;padding:9px 10px;border:0;border-radius:9px;background:none;font-size:13.5px;line-height:1.6;color:var(--ink)}
.fpl-cat-stage>span{flex:1;text-align:left}
.fpl-cat-count{font-style:normal;font-size:11.5px;color:#8a8574;background:#f2efe6;border-radius:999px;padding:1px 7px}
.fpl-cat-stage .fpl-caret{transform:rotate(90deg);transition:transform .15s}
.fpl-cat-stage[aria-expanded="true"]{background:#f7f5ee}
.fpl-cat-stage[aria-expanded="true"] .fpl-caret{transform:rotate(-90deg)}
.fpl-cat-list{padding:2px 0 6px}
.fpl-cat-list[hidden]{display:none}
.fpl-cat-item{display:block;width:100%;margin:0;padding:4px 10px;border:0;border-radius:9px;background:none;text-align:left}
.fpl-cat-item.is-on{background:#eef2e4}
.fpl-cat-item .fpl-cat-chip{background:#f4f1e8}
.fpl-cat-empty{margin:0;padding:10px;font-size:13px;color:#8a8574}

/* 凭证加载骨架（弹层立刻出现，逐份加载） */
.fin-voucher-loading{display:flex;align-items:center;justify-content:center;gap:8px;min-width:200px;min-height:190px;padding:22px 16px;border-radius:10px;background:#f6f4ec;color:#7a7668;font-size:13px;text-align:center}
.fin-spin{width:15px;height:15px;flex-shrink:0;border:2px solid #d9d3c2;border-top-color:#7c9d5c;border-radius:50%;animation:fin-spin .7s linear infinite}
@keyframes fin-spin{to{transform:rotate(360deg)}}
.fin-voucher-fail{min-height:0;background:#fdf3f1;color:#a4544a}
.fin-voucher-retry{font-size:13px;padding:6px 14px;margin:0;justify-self:center}

@media(max-width:720px){
  .fpl-cat-toggle{padding:7px 12px}
  .fpl-cat-panel{left:0;right:auto;width:min(268px,88vw)}
  .fin-voucher-loading{min-height:150px;min-width:0;width:100%}
}

/* 后台账本直接复用公开明细，仅增加状态与管理列。 */
.fin-ledger-management .fpl-admin-tools{display:flex;justify-content:space-between;align-items:end;gap:16px;margin:16px 0}
.fin-ledger-management .fpl-admin-tools label{font-size:14px;gap:8px}
.fin-ledger-management .fpl-admin-tools select{font-size:16px;min-height:44px;max-width:320px;background:#fff}
.fin-ledger-management .fpl-admin-tools>a{font-size:16px;font-weight:600;color:var(--wb-accent);padding:12px 0;text-decoration:none;white-space:nowrap}
.fin-ledger-management .fpl-table{overflow-x:auto}
.fin-ledger-management .fpl-head,.fin-ledger-management .fpl-row{grid-template-columns:46px 48px minmax(96px,1.1fr) 96px minmax(140px,2fr) 84px 96px 48px 96px;min-width:980px;box-sizing:border-box}
/* 2026.11.19 备注改为每条明细底部整行（与网页手机端一致）：跨满整行、带「备注：」前缀、空值整行隐藏。 */
.fin-ledger-management .fpl-remark{grid-column:1/-1;grid-row:2;min-width:0;white-space:pre-wrap;overflow-wrap:anywhere;color:var(--ink-3)}
.fin-ledger-management .fpl-remark:before{content:"备注："}
.fin-ledger-management .fpl-remark-empty{display:none}
.fpl-manage-actions{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.fpl-entry-status{flex-basis:100%;font-size:14px;color:#67705e}
.fin-workbench .fpl-manage-actions button{font-size:14px;padding:5px 8px;margin:0;background:#fff;color:var(--wb-accent);border:1px solid #ded8ca;border-radius:6px;white-space:nowrap}
@media(max-width:760px){
 .fin-ledger-management .fpl-head{display:none}
 .fin-ledger-management .fpl-row{min-width:0;grid-template-columns:46px auto 1fr auto auto;grid-template-areas:"date badge cats amount amount" "note note note note note" "kind kind kind bal files" "remark remark remark remark remark" "manage manage manage manage manage"}
 .fin-ledger-management .fpl-remark{grid-area:remark}
 .fin-ledger-management .fpl-remark:before{content:"备注："}
 .fin-ledger-management .fpl-remark-empty{display:none}
 .fpl-manage-actions{grid-area:manage;justify-content:flex-end;border-top:1px solid var(--line);padding-top:10px}
 .fpl-entry-status{flex-basis:auto;margin-right:auto}
}

/* 明细筛选栏：统一控件高度、字级、圆角与下拉箭头。 */
.fin-app .fpl-toolbar{align-items:center}
.fin-app .fpl-toolbar .fpl-types,.fin-app .fpl-toolbar .fpl-tools{align-items:center;gap:8px}
.fin-app .fpl-toolbar .fpl-types button,
.fin-app .fpl-toolbar .fpl-cat-toggle,
.fin-app .fpl-toolbar .fpl-select,
.fin-app .fpl-toolbar .fpl-search{box-sizing:border-box;height:44px;min-height:44px;max-height:44px;border-radius:999px;border-width:1px;border-style:solid;margin:0;font-size:16px;line-height:24px;box-shadow:none}
.fin-app .fpl-toolbar .fpl-types button{min-width:88px;padding:9px 24px;display:inline-flex;align-items:center;justify-content:center}
.fin-app .fpl-toolbar .fpl-select,.fin-app .fpl-toolbar .fpl-search{display:flex;align-items:center;padding:0 16px;gap:0}
.fin-app .fpl-toolbar .fpl-select{position:relative}
.fin-app .fpl-toolbar .fpl-select select,
.fin-app .fpl-toolbar .fpl-search input{box-sizing:border-box;height:42px;min-height:0;max-height:42px;margin:0;padding:9px 0;border:0;border-radius:0;font-family:inherit;font-size:16px;line-height:24px;background:transparent;box-shadow:none}
.fin-app .fpl-toolbar .fpl-select select{appearance:none;-webkit-appearance:none;padding-right:24px;min-width:108px;max-width:200px;cursor:pointer}
.fin-app .fpl-toolbar .fpl-select:after{content:'';position:absolute;right:17px;top:17px;width:6px;height:6px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);pointer-events:none}
.fin-app .fpl-toolbar .fpl-cat-filter{height:44px}
.fin-app .fpl-toolbar .fpl-cat-toggle{display:flex;align-items:center;justify-content:space-between;gap:16px;min-width:140px;padding:9px 16px;font-family:inherit;font-weight:400}
.fin-app .fpl-toolbar .fpl-cat-toggle>.fpl-caret{box-sizing:content-box;width:6px;height:6px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:translateY(-2px) rotate(45deg);font-size:0;line-height:0;flex-shrink:0;color:inherit}
.fin-app .fpl-toolbar .fpl-search{min-width:160px}
.fin-app .fpl-toolbar .fpl-search input{width:160px;min-width:0}
@media(max-width:720px){
 .fin-app .fpl-toolbar .fpl-types button{min-width:0;flex:1;padding:9px 20px}
 .fin-app .fpl-toolbar .fpl-search{flex:1;min-width:140px}
 .fin-app .fpl-toolbar .fpl-search input{width:100%}
}

/* 小猫筛选：左侧状态，右侧每行三只，直接展示全部分组。 */
.fin-app .fpl-cat-panel{width:540px;max-width:calc(100vw - 48px);max-height:min(70vh,520px);padding:12px;box-sizing:border-box}
.fin-app .fpl-cat-group{display:grid;grid-template-columns:72px minmax(0,1fr);gap:10px;padding:10px 0;align-items:start}
.fin-app .fpl-cat-stage{margin:0;padding:8px 4px;width:auto;min-height:40px;box-sizing:border-box;border:0;border-radius:0;background:none;font-size:14px;line-height:24px;font-weight:600;color:var(--ink-2)}
.fin-app .fpl-cat-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;padding:0}
.fin-app .fpl-cat-item{display:flex;align-items:center;width:100%;min-width:0;min-height:40px;margin:0;padding:4px;border:0;border-radius:8px;background:transparent;font-size:14px;line-height:20px;text-align:left}
.fin-app .fpl-cat-item.is-on{background:#eef2e4}
.fin-app .fpl-cat-item .fpl-cat-chip{box-sizing:border-box;max-width:100%;white-space:normal;overflow-wrap:anywhere;font-size:14px;line-height:20px;padding:4px 6px}
.fin-app .fpl-cat-all{margin:0;padding:8px 10px;border:0;font-size:14px;min-height:40px;box-sizing:border-box}
@media(max-width:720px){
 .fin-app .fpl-cat-panel{position:fixed;top:auto;left:16px;right:16px;width:auto;max-width:none;margin-top:8px;max-height:60vh;padding:10px}
 .fin-app .fpl-cat-group{grid-template-columns:60px minmax(0,1fr);gap:6px}
 .fin-app .fpl-cat-list{gap:4px}
 .fin-app .fpl-cat-item .fpl-cat-chip{padding:4px;gap:4px}
}
@media(max-width:720px){.fin-app .fpl-cat-panel{bottom:16px;margin-top:0}}

/* 完整猫册筛选：状态列纯文字，缩小右侧头像与猫名胶囊。 */
.fin-app .fpl-cat-stage{display:block;align-self:start;padding:8px 0;background:none;border:0;box-shadow:none;white-space:nowrap}
.fin-app .fpl-cat-item .fpl-cat-av{width:14px;height:14px;min-width:14px;font-size:10px;line-height:14px}
.fin-app .fpl-cat-item .fpl-cat-chip{font-size:13px;line-height:18px;padding:3px 5px;gap:4px}
.fin-app .fpl-cat-item{min-height:34px;padding:3px}
.fin-app .fpl-cat-group{grid-template-columns:60px minmax(0,1fr);gap:8px;padding:8px 0}
.fin-app .fpl-cat-list{grid-template-columns:repeat(3,minmax(0,1fr))}

/* ── 管理端账目详情/编辑凭证（2026.11.03 按用户样张重排）───────────── */
.fbd-head{background:#eef2e4;border-radius:14px;padding:14px 16px;margin-bottom:14px}
.fbd-head h3{margin:0;font-size:19px}
.fbd-sub{margin:2px 0 10px;font-size:13px;color:var(--ink-2)}
.fbd-amount{margin:0;display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.fbd-amount b{font-size:22px}
.fbd-status{font-size:12px;background:#fff;color:#4c7a52;border:1px solid #cfdcc4;border-radius:999px;padding:2px 10px}
.fbd-files{border:1px solid var(--line);border-radius:14px;padding:12px 14px;margin-bottom:12px}
.fbd-files h4{margin:0 0 4px;font-size:14px}
.fbd-file{display:flex;align-items:center;gap:10px;padding:9px 0;border-top:1px solid #f0ece1}
.fbd-file:first-of-type{border-top:0}
.fbd-file-ic{width:30px;height:30px;border-radius:8px;background:#f4f1e8;display:inline-flex;align-items:center;justify-content:center;font-size:15px;flex-shrink:0}
.fbd-file-meta{flex:1;min-width:0;display:grid}
.fbd-file-meta b{font-size:14px}
.fbd-file-meta small{color:var(--ink-2);font-size:12px}
.fbd-none{font-size:13px;color:var(--ink-3)}
.fbd-note,.fbd-cats{font-size:13.5px;margin:8px 2px;color:var(--ink)}
.fbd-actions{display:flex;gap:10px;flex-wrap:wrap;margin:12px 0 8px}
.fbd-actions button{margin:0}
.fbd-void summary{font-size:13px;color:var(--ink-2);cursor:pointer}
.fbd-void textarea{width:100%;min-height:64px;margin-top:8px}
.fbd-keep{display:flex;align-items:center;gap:8px;margin:6px 0}
.fbd-files-hint{font-size:13px;background:#f6f4ec;border-radius:10px;padding:10px 12px;margin:0 0 12px}

/* 财务页：空状态提示条隐藏；无侧栏时单列；侧栏底部无链接不占位（2026.11.03） */
.fin-status:empty{display:none}
.wb-sidebar-foot:empty{display:none}
.wb-shell.wb-single{grid-template-columns:minmax(0,1fr)}
.wb-shell.wb-single .wb-main{border-radius:21px}

/* 账目详情精简：凭证纯文字；作废原因与确认同区；记录统一收纳。 */
.fin-workbench .fbd-file{gap:12px;padding:12px 0}
.fin-workbench .fbd-file-meta b{font-size:16px;line-height:24px}
.fin-workbench .fbd-file-meta small{font-size:14px;line-height:22px}
.fin-workbench .fbd-void,.fin-workbench .fbd-records{padding:14px 0;border-top:1px solid var(--line);margin:12px 0 0}
.fin-workbench .fbd-void>summary,.fin-workbench .fbd-records>summary{font-size:16px;color:var(--ink);cursor:pointer}
.fin-workbench .fbd-void>label{margin:16px 0 10px}
.fin-workbench .fbd-records h4,.fin-workbench .fbd-edit-files h4{font-size:16px;margin:18px 0 10px}
.fin-workbench .fbd-edit-files{border-top:1px solid var(--line);padding-top:16px}
.fin-workbench .fbd-edit-files>p{font-size:14px;line-height:1.6;color:var(--ink-2);margin:8px 0 16px}

/* 凭证打码：原尺寸画布，鼠标/触屏框选；只导出单独副本。 */
.fin-redactor{box-sizing:border-box;width:min(960px,96vw);max-height:94vh;padding:20px;border:1px solid #d8ddcf;border-radius:16px;background:#fffdf9;color:#343b30;overflow:auto}
.fin-redactor::backdrop{background:#19221bb3}
body:has(.fin-redactor[open]){overflow:hidden}
.fin-redactor header,.fin-redactor footer,.fin-redactor-tools{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.fin-redactor h2{font-size:22px;margin:0}.fin-redactor p,.fin-redactor footer span{font-size:14px;line-height:1.6}
.fin-redactor button{font:inherit;font-size:16px;padding:9px 14px;border:1px solid #cbd3c2;border-radius:8px;background:#fff;cursor:pointer}
.fin-redactor button[aria-pressed=true],.fin-redactor [data-save]{color:#fff;background:#4c5d32;border-color:#4c5d32}
.fin-redactor button:disabled{opacity:.5;cursor:default}.fin-redactor-tools{justify-content:flex-start;margin:12px 0}
.fin-redactor-brush{display:flex;align-items:center;gap:8px;font-size:14px;color:#5a564c;margin:0 0 10px}
.fin-redactor-stage{max-height:56vh;overflow:auto;background:#e8e8e4;border:1px solid #d8ddcf;padding:12px}
/* 2026.11.12 用户定稿：编辑（打码）画布也按图片原始尺寸显示，不拉伸铺满；
   超出画布区才横向滚动，坐标换算本就按 getBoundingClientRect 比例，与显示尺寸无关。 */
.fin-redactor canvas{display:block;width:auto;max-width:100%;height:auto;margin:0 auto;touch-action:none;cursor:crosshair}
.fin-redactor [data-status]{color:#9a452e;min-height:20px}
.fin-redaction-files{display:grid;gap:8px}.fin-redaction-files>div{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.fin-redaction-files span{font-size:14px;overflow-wrap:anywhere}.fin-app .fin-redaction-files button{font-size:14px;padding:6px 10px;margin:0}
@media(max-width:600px){.fin-redactor{padding:14px}.fin-redactor-stage{max-height:52vh}.fin-redactor footer [data-save]{width:100%}}

/* ── 记账表单精简（2026.11.03 晚·用户反馈）────────────────────────── */
/* ① iOS 原生日期控件有固有最小宽度，会顶破容器右缘：与 584 行 post-edit 的修法一致。 */
.fin-app input[type="date"]{display:block;min-width:0;max-width:100%;appearance:none;-webkit-appearance:none;text-align:left}
.fin-app input[type="date"]::-webkit-date-and-time-value{min-width:0;text-align:left}
/* ② 原始凭证 / 公示凭证 左右并列各占一半；添加按钮为虚线整块，原生 file 控件视觉隐藏（选择结果在下方列出）。 */
.fbd-file-cols{display:grid;grid-template-columns:1fr 1fr;gap:10px 14px;align-items:stretch}
.fbd-file-col{min-width:0;display:flex;flex-direction:column}
.fbd-file-col>.fin-file-btn{flex:1;align-content:start}
.fin-workbench .fbd-edit-files .fbd-file-col>h4{margin:0 0 4px;font-size:14px}
.fbd-file-col .fbd-none{margin:0 0 6px}
.fin-workbench .fbd-edit-files>p{margin:6px 0 10px}
.fin-file-btn{position:relative;display:grid;gap:4px;justify-items:center;cursor:pointer;border:1.5px dashed #c2c6ae;border-radius:12px;background:#fbfaf3;padding:12px 10px;font-size:14px;line-height:1.6;text-align:center;color:#5c6455;overflow-wrap:anywhere}
.fin-file-btn:hover{border-color:#8fa58c;background:#f6f8ef}
.fin-file-btn input[type="file"]{position:absolute;width:1px;height:1px;min-width:0;max-width:100%;opacity:0;pointer-events:none}
.fin-file-btn .fin-redaction-files{text-align:left;width:100%}
.fin-file-btn .fin-file-title{font-weight:600;color:#414a3d;font-size:14px}
.fin-file-btn .fin-field-hint{margin-top:0;font-size:12px;color:#8f967f}
/* 我的报销：状态 Tab + 可展开轻量卡片（2026.11.04 用户示意稿）。 */
/* 2026.11.12 用户反馈：窄容器里页签文字（如「已通过」）被挤到换行——
   文字不许折行，放不下时整条页签栏横向滚动。 */
.my-tabs{display:flex;gap:4px;background:#eceee0;border-radius:12px;padding:4px;margin:14px 0 10px;overflow-x:auto;scrollbar-width:none}
.my-tabs::-webkit-scrollbar{display:none}
/* 2026-11-05 用户（红圈截图）：审核报销/处理付款进来直接就是绿胶囊，页签上方不再留白——
   列表头是壳 body 第一个元素时，页签的外边距归零（两页同款，距离一致）。 */
.fin-app.fin-workbench .wb-body .fin-list-head .my-tabs:first-child{margin-top:0}
.my-tabs button{flex:1 0 auto;display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:11px 4px;font:inherit;font-size:14px;border:0;border-radius:9px;background:transparent;color:#5c6455;cursor:pointer;min-height:46px;white-space:nowrap}
.my-tabs button:hover{background:#ffffff55}
/* 2026-11-05 三稿（用户）：选中的页签必须一眼看出来——由奶白改成实心黄底 + 深棕字，
   手机端点完「审核报销 / 待审核」不会再看起来像一片深色。 */
.my-tabs button[aria-pressed="true"]{background:#f3e6c0;color:#5a4a1e;font-weight:700;box-shadow:0 1px 2px #7a5c0f33}
.my-tab-count{min-width:20px;height:20px;padding:0 6px;border-radius:10px;background:#dde0cd;font-size:12px;line-height:20px;font-weight:400}
.my-tabs button[aria-pressed="true"] .my-tab-count{background:#e8d8a8;color:#5a4a1e}
.my-tabs button[aria-pressed="true"]:hover{background:#eddfb4}
.my-card-count{margin:0 2px 10px;font-size:13px;color:#8f967f}
/* 2026.11.05 报销台新建页的「支出 · 报销 / 收入 · 记账」二选一：沿用页签胶囊，两块等宽同高。 */
.fin-mode-tabs{display:flex;gap:4px;background:#eceee0;border-radius:12px;padding:4px;margin:0 0 14px}
.fin-mode-tabs button{flex:1;padding:11px 6px;min-height:46px;font:inherit;font-size:14px;border:0;border-radius:9px;background:transparent;color:#5c6455;cursor:pointer}
.fin-mode-tabs button:hover{background:#ffffff55}
.fin-mode-tabs button[aria-pressed="true"]{background:#f3e6c0;color:#5a4a1e;font-weight:700;box-shadow:0 1px 2px #7a5c0f33}
.fin-income-head{margin-top:20px;font-weight:600;color:#5c6455}
.my-card{display:flex;flex-direction:column;padding:8px 18px;margin:0 0 12px}
.my-card-head{display:flex;align-items:flex-start;gap:14px;width:100%;border:0;background:transparent;font:inherit;text-align:left;padding:10px 0;cursor:pointer}
.my-card-head:hover h3{color:#42552f}
.my-card-amount{font-size:22px;line-height:1.3;min-width:92px;flex-shrink:0}
.my-card-info{flex:1;min-width:0}
.my-card-info h3{margin:0;font-size:15.5px;color:#34342f}
.my-card-info p{margin:4px 0 0;color:#68715e;font-size:13.5px}
.my-card-chevron{flex-shrink:0;color:#8f967f;font-size:18px;line-height:1.4}
.my-card-body{display:grid;gap:14px;border-top:1px solid #f0ece1;padding:14px 0 6px}
.my-card-reason{margin:0;padding:8px 12px;border-radius:9px;font-size:13px}
.my-materials h4{margin:0 0 8px;font-size:14px;display:flex;justify-content:space-between;align-items:baseline}
.my-materials h4 span{font-size:12px;color:#8f967f;font-weight:400}
/* 2026.11.04 用户拍板：材料三个分组框（原始/公示/收款）电脑端一行横向并列、手机端纵向堆叠；组内多图同样桌面横排、手机纵排。 */
.my-mat-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;align-items:start}
.my-mat-group{border:1px solid #e3e5d8;border-radius:12px;background:#fbfbf6;padding:12px 14px;min-width:0}
.my-mat-group h5{margin:0 0 10px;font-size:13.5px;color:#3d4438;display:flex;justify-content:space-between;align-items:baseline;gap:6px}
.my-mat-group h5 span{font-size:12px;color:#8f967f;font-weight:400;flex-shrink:0}
.my-mat-items{display:flex;flex-wrap:wrap;gap:8px}
.my-mat-items .my-file-card{flex:1 1 118px;min-width:0}
.my-file-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.my-file-card{display:grid;justify-items:center;gap:5px;padding:14px 8px;border:1px solid #e3e5d8;border-radius:12px;background:#fbfbf6;font:inherit;cursor:pointer}
.my-file-card:hover{border-color:#a8bb98;background:#f7faf0}
.my-file-ic{width:26px;height:26px;color:#7c8571}
.my-file-ic svg{width:100%;height:100%}
.my-file-card b{font-size:13px;color:#3d4438}
.my-file-view{display:inline-flex;align-items:center;gap:4px;font-size:12px;color:#8f967f}
.my-file-view svg{width:14px;height:14px}
.my-history summary{cursor:pointer;font-size:13.5px;color:#5c6455}
.my-history p{font-size:12.5px;color:#8a8e78}
.my-card-actions{display:flex;justify-content:flex-end;align-items:center;gap:10px;padding:2px 0 8px}
.fin-app .my-card-actions button{margin:0;font-size:13.5px;padding:9px 16px}
.fin-app .my-card-primary,.fin-app .my-new-btn{background:#42552f;border-color:#42552f;color:#fff}
.fin-app .my-card-primary:hover,.fin-app .my-new-btn:hover{background:#384827}
.fin-workbench .wb-header-actions .my-new-btn{background:#42552f;border-color:#42552f;color:#fff;font-size:14px;padding:10px 16px}
.fin-workbench .wb-header-actions .my-new-btn:hover{background:#384827}
/* 凭证大方框（用户示意稿）：框外小标题 + 框内图标/粗体/引导/浅色补充居中分层。 */
.fin-drop{position:relative;display:grid;justify-items:center;gap:6px;padding:24px 16px;border:1px solid #e3e5d8;border-radius:14px;background:#fbfbf6;cursor:pointer;text-align:center;overflow-wrap:anywhere}
.fin-drop:hover{border-color:#a8bb98;background:#f7faf0}
.fin-drop-ic{width:30px;height:30px;color:#8a937d}
.fin-drop-ic svg{width:100%;height:100%}
.fin-drop b{font-size:15px;color:#3d4438}
.fin-drop-hint{font-size:13px;color:#68715e;line-height:1.9}
.fin-drop-note{font-size:12px;color:#a3aa97}
.fin-drop input[type=file]{position:absolute;width:1px;height:1px;min-width:0;max-width:100%;opacity:0;pointer-events:none}
.fbd-drop-item h4,.fbd-file-col>h4{margin:0 0 6px;font-size:14px}
@media(max-width:760px){.my-mat-row{grid-template-columns:1fr}}
@media(max-width:560px){.my-tabs button{font-size:13px;padding:10px 2px}.my-card-head{flex-wrap:wrap}.my-card-amount{font-size:20px;min-width:0;width:100%}.my-file-grid{grid-template-columns:1fr 1fr}.my-mat-items{flex-direction:column;flex-wrap:nowrap}.my-mat-items .my-file-card{width:100%;flex:none}}
/* 审核报销与我的报销同款列表头（2026.11.04）：Tab 与搜索并排，卡片直接排在下面。 */
.fin-list-head{margin:0 0 6px}
.fin-list-head .wb-table-tools{margin:0 0 12px}
/* 已有凭证：可勾选保留 / 点 ✕ 移除（申请人编辑与管理端增减共用一套样式） */
.fin-keep-grid{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 10px}
.fin-keep{display:inline-flex;align-items:center;gap:8px;padding:7px 10px;border:1px solid #e3e5d8;border-radius:999px;background:#fbfbf6;font-size:13px;color:#3d4438}
.fin-keep input{width:16px;height:16px;margin:0;accent-color:#42552f}
.fin-keep button{margin:0!important;padding:3px 8px!important;font-size:12px!important;border-color:#e0e3d5!important;background:#fff!important;color:#5c6455!important}
.fin-keep-chip{display:inline-flex;align-items:center;gap:4px;padding:5px 6px 5px 12px;border:1px solid #dfe3d4;border-radius:999px;background:#fbfbf6}
.fin-keep-chip.is-off{opacity:.45;border-style:dashed;background:#f5f5ef}
.fin-keep-chip.is-off .fin-keep-name{text-decoration:line-through;color:#9aa38c}
.fin-keep-name{padding:2px 4px!important;margin:0!important;border:0!important;background:transparent!important;font-size:13px!important;color:#3d4438!important;cursor:pointer}
.fin-keep-x{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;padding:0!important;margin:0!important;border:0!important;border-radius:50%!important;background:#ecefe2!important;color:#5c6455!important;font-size:12px!important;line-height:1;cursor:pointer}
.fin-keep-x:hover{background:#e2e8d4!important;color:#324a28!important}
.fin-attach{margin:14px 0 4px;padding:12px 14px;border:1px dashed #dcd6c5;border-radius:12px;background:#fcfbf4}
.fin-attach>summary{cursor:pointer;font-size:14px;font-weight:600;color:#3d4438}
.fin-attach-hint{margin:8px 0 10px!important;font-size:12.5px!important;color:#8a8e78!important}
/* 付款台表格：待付款可「查看 + 退回」两枚按钮竖排 */
.fin-workbench .wb-row-act{display:flex;flex-direction:column;gap:6px;justify-self:end;width:112px}
.fin-workbench .wb-row-act>button{width:100%;margin:0;font-size:13px;padding:8px 10px;min-height:36px;border-color:#d5dbce;border-radius:8px}
.fin-workbench .wb-row-act .wb-row-link{order:2;background:#fff;color:#8a7b5c;border-color:#e5ddcd}
.fin-pay-line{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
/* 核对页：一键退回（误触兜底，2026.11.04 用户要求）——白底描边次要按钮，不抢「已完成报销」的主次 */
.fin-panel .fin-release-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:18px;padding-top:14px;border-top:1px dashed #e8e1d2}
.fin-panel .fin-release-row .fin-release-btn{margin:0;padding:9px 16px;font-size:13.5px;font-weight:500;border-radius:999px;background:#fff;color:#9a5b3d;border:1px solid #e6d8c8}
.fin-panel .fin-release-row .fin-release-btn:hover{background:#fdf6ef;border-color:#dcc4ac}
.fin-panel .fin-release-row>small{flex:1 1 200px;min-width:0;font-size:12px;line-height:1.5;color:#a09c8c}
.fin-workbench .wb-row-link{margin:0!important;padding:5px 10px!important;font-size:12px!important;background:#fff!important;color:#8a7b5c!important;border-color:#e5ddcd!important;border-radius:999px!important}
.fin-workbench [data-fin-rows]>.wb-empty{background:#fffdf9;border:1px solid #efe9dc;border-radius:16px;margin:0 0 12px}
@media(max-width:760px){
  .fin-workbench .wb-row-act{grid-column:2/4;width:auto;flex-direction:row;justify-self:end;gap:8px}
  .fin-workbench .wb-row-act>button{width:auto;min-width:96px}
  .fin-workbench .wb-row-act .wb-row-link{order:0}
  .fin-keep-grid{gap:6px}
  .fin-keep{font-size:12.5px}
}
@media(max-width:760px){.fbd-file-cols{gap:8px}.fin-file-btn{padding:12px 8px;font-size:13.5px}}

/* 账目详情抽屉一体化（2026.11.03 晚）：信息卡 / 凭证双区 / 操作记录 / 两步作废 / 抽屉内编辑 */
.fbd-eyebrow{margin:0 0 4px;font-size:12px;letter-spacing:.06em;color:var(--ink-2,#8a8977)}
.fbd-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex-wrap:wrap}
/* 2026-11-14：抽屉标题左、动作右；标题可换行但不许被三个按钮挤成竖排（手机上标题独占一行）。 */
.fbd-head>div{flex:1 1 240px;min-width:0}
.fbd-head h3{margin:0 0 14px;font-size:20px;overflow-wrap:anywhere}
@media(max-width:720px){.fbd-head>div{flex:1 1 100%}.fbd-head>div>h3{margin-bottom:2px}}
.fbd-card{background:var(--wb-soft,#f0ede0);border:1px solid #e3ddc9;border-radius:14px;padding:16px 18px;margin:0 0 18px}
.fbd-card-top{display:flex;justify-content:space-between;align-items:center;font-size:13px;color:var(--ink-2,#6f6a58)}
.fbd-amount{margin:8px 0 6px}
.fbd-amount b{font-size:30px;font-weight:750;color:#3c3524}
.fbd-card-sub{margin:0;font-size:13.5px;color:var(--ink-2,#6f6a58)}
.fbd-status{background:#e4efdb;color:#3c6b3f;border-radius:999px;padding:4px 12px;font-size:12.5px;font-weight:600}
.fbd-status.is-void{background:#f7e3dd;color:#a33b2a}
.fbd-files{margin:0 0 16px;border:1px solid var(--line,#e7e2d2);border-radius:14px;overflow:hidden}
.fbd-files-head{display:flex;justify-content:space-between;align-items:center;padding:12px 16px;background:#faf8f1;border-bottom:1px solid var(--line,#e7e2d2)}
.fbd-files-head h4{margin:0;font-size:15px}
.fbd-files-head span{font-size:12.5px;color:var(--ink-2,#8a8977)}
.fbd-file-group{padding:12px 16px}
.fbd-file-group + .fbd-file-group{border-top:1px dashed var(--line,#e7e2d2)}
/* 2026-11-14 用户：审核台的审核区搬进右侧抽屉，跟「凭证」段同一套骨架（fbd-files + 段落内边距），
   不再用原来那张带外框的 .fin-review 卡片套在抽屉里（看起来像卡片里又套一张卡）。 */
.fbd-review-body{padding:12px 16px;display:grid;gap:10px}
.fbd-review-body>p{margin:0;font-size:13px;color:var(--ink-2,#6f6a58);line-height:1.6}
.fbd-review-body .fin-review-hint{color:var(--ink,#3c3524)}
.fbd-review-body label{margin:0}
/* 2026.11.04 用户拍板：凭证改成并列大图网格——点图看大图，右上角 ✕ 移除，右下角 编辑/打码，组标题右侧 ＋ 新增 */
.fbd-group-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 8px}
.fbd-group-head .fbd-group-title{margin:0}
.fbd-group-add{margin:0!important;padding:5px 12px!important;font-size:12.5px!important;border-radius:999px!important;background:#fff!important;border:1px solid #d8d2bd!important;color:#7a6f56!important;white-space:nowrap}
.fbd-group-add:hover{background:#f7faf0!important;border-color:#a8bb98!important;color:#4c5a3c!important}
.fbd-thumbs{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:10px}
.fbd-thumb{position:relative;margin:0;border:1px solid var(--line,#e7e2d2);border-radius:12px;overflow:hidden;background:#fff}
.fbd-thumb-open{display:block;width:100%;padding:0!important;margin:0!important;border:0!important;background:none!important;cursor:zoom-in;aspect-ratio:4/3}
.fbd-thumb-img{display:flex;align-items:center;justify-content:center;width:100%;height:100%;background:#f4f1e7;overflow:hidden}
/* 凭证是票据，缩略图按 contain 完整显示，不裁掉金额/日期边角 */
.fbd-thumb-img img{width:100%;height:100%;object-fit:contain;display:block;background:#fff}
.fbd-thumb-file,.fbd-thumb-fail{font-size:12px;color:#8a8977;padding:0 8px;text-align:center;line-height:1.4;word-break:break-all}
.fbd-thumb-del{position:absolute;top:6px;right:6px;width:26px;height:26px;margin:0!important;padding:0!important;border-radius:50%!important;background:rgba(28,26,20,.72)!important;color:#fff!important;border:0!important;font-size:13px!important;line-height:26px!important;text-align:center;cursor:pointer;z-index:2}
.fbd-thumb-del:hover{background:#b4472f!important}
.fbd-thumb-edit{position:absolute;right:6px;bottom:6px;margin:0!important;padding:4px 10px!important;border-radius:999px!important;background:rgba(28,26,20,.72)!important;color:#fff!important;border:0!important;font-size:12px!important;cursor:pointer;z-index:2}
.fbd-thumb-edit:hover{background:rgba(28,26,20,.9)!important}
@media(max-width:720px){.fbd-thumbs{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* 报销详情也走同一套并列大图（2026.11.04：入口不同但凭证必须一样看） */
.fin-voucher-block{margin:0 0 14px}
.fin-grid-head{display:flex;align-items:baseline;gap:8px;margin:0 0 8px}
.fin-grid-head h4{margin:0;font-size:13px;color:#3c3524;font-weight:650}
.fin-grid-head span{font-size:12px;color:#8a8977}
.fin-grid-head:not(:first-child){margin-top:14px}
.fin-actions-inline{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:0 0 12px}
.fin-actions-inline button{margin:0!important;font-size:12.5px!important;padding:6px 12px!important;border-radius:999px!important}
.fin-actions-inline small{font-size:12px;color:#8a8977}
.fbd-group-title{margin:0 0 10px;font-size:15px;font-weight:650;color:#3c3524;display:flex;align-items:center;gap:8px}
.fbd-req{font-size:12px;font-weight:600;color:#b3543f;background:#fbeae5;border:1px solid #f0cfc6;border-radius:999px;padding:1px 9px;line-height:1.6;white-space:nowrap}
.fbd-vrow{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:7px 0}
.fbd-vrow + .fbd-vrow{border-top:1px solid #f1ede0}
.fbd-vname{font-size:14px;color:var(--ink,#3c3524)}
.fbd-vbtns{display:flex;gap:8px;flex-wrap:wrap}
.fbd-vbtns button{font-size:12.5px;padding:6px 13px;margin:0;border-radius:999px}
.fbd-group-actions{margin-top:8px}
.fbd-group-actions button{font-size:12.5px;padding:6px 13px;margin:0}
.fbd-footer{display:flex;justify-content:flex-end;margin-top:6px}
.fbd-footer button{background:none;border:1px solid transparent;color:#b0492f;font-size:13px;padding:7px 10px;margin:0}
.fbd-footer button:hover{border-color:#ecc7ba;background:#fdf4f0}
.fbd-editform{max-width:560px;display:grid;gap:12px}
.fbd-direction{margin:0;font-size:13.5px;background:#f6f4ec;border-radius:10px;padding:9px 13px;color:var(--ink-2,#6f6a58)}
.fbd-form-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:4px}
.fbd-form-actions button{margin:0}
.fbd-chips{display:flex;gap:8px;flex-wrap:wrap}
.fbd-chips button{border-radius:999px;font-size:13px;padding:7px 15px;margin:0;background:#fff;border:1px solid #d8d2bd;color:#5c5443}
.fbd-chips button.is-on{background:#e3f2dd;border-color:#7fb98a;color:#2f6b3b;font-weight:650}
.fbd-void-box{width:100%;box-sizing:border-box;margin:0;padding:12px 14px;min-height:58px;max-height:150px;resize:vertical;font:inherit;font-size:15px;line-height:1.5;color:#2f2a1f;background:#fff;border:1px solid #d8d2bd;border-radius:12px}
.fbd-void-box::placeholder{color:#a9a899;font-size:13px;line-height:1.5}
.fbd-void-box:focus{outline:none;border-color:#3b7d4f;box-shadow:0 0 0 3px rgba(59,125,79,.12)}
.fin-reason-dialog{width:92vw;max-width:460px}
.fin-reason-dialog h3{margin:0 0 12px;font-size:16px}
.fin-reason-dialog textarea{width:100%;min-height:88px;box-sizing:border-box;margin:0 0 12px}
.fin-reason-actions{display:flex;gap:10px;justify-content:flex-end}
.fin-reason-actions button{margin:0}
.fbd-pick{display:grid;gap:8px;margin:0 0 12px}
.fbd-pick button{margin:0}
.fin-workbench .fbd-eyebrow{font-size:13px}
.fin-workbench .fbd-head h3{font-size:24px}
.fin-workbench .fbd-amount b{font-size:34px}
.fin-workbench .fbd-card{padding:18px 20px}
.fin-workbench .fbd-vname{font-size:15px}
.fin-workbench .fbd-vbtns button,.fin-workbench .fbd-group-actions button{font-size:13.5px;padding:8px 15px}
.fin-workbench .fbd-editform{max-width:600px}
@media(max-width:720px){.fbd-editform{max-width:none}.fbd-vrow{flex-wrap:wrap}}


/* ── 财务明细 · 移动端（2026.11.03 晚 重写：全文唯一一段，旧的多段叠加已删） ── */
@media(max-width:720px){
  /* 收支：三枚等宽一行 */
  .fin-app .fpl-toolbar{display:grid;gap:10px;align-items:stretch;margin:14px 0 12px}
  .fin-app .fpl-toolbar .fpl-types{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
  .fin-app .fpl-toolbar .fpl-types button{min-width:0;width:100%;padding:0;font-size:15px}
  /* 筛选：年份｜月份 一行，小猫｜搜索 一行 */
  .fin-app .fpl-toolbar .fpl-tools{display:grid;grid-template-columns:1fr 1fr;gap:8px;width:100%;align-items:stretch}
  .fin-app .fpl-toolbar .fpl-select,
  .fin-app .fpl-toolbar .fpl-cat-filter,
  .fin-app .fpl-toolbar .fpl-search{width:100%;min-width:0;padding:0 14px}
  .fin-app .fpl-toolbar .fpl-select select{width:100%;max-width:none;min-width:0;padding-right:18px;font-size:16px}
  .fin-app .fpl-toolbar .fpl-select:after{top:50%;right:14px;margin-top:-4px}
  .fin-app .fpl-toolbar .fpl-cat-toggle{width:100%;min-width:0;justify-content:space-between;padding:0 14px;font-size:15px}
  .fin-app .fpl-toolbar .fpl-search input{width:100%;font-size:16px}
  /* 分类面板：收支未选时收起，选中收入/支出才出现对应一行 */
  .fpl-kindrows.fpl-kind-idle{display:none}
  .fpl-kindrows{display:grid;gap:10px;padding:12px;margin:0 0 12px}
  .fpl-kindrow{gap:6px}
  .fpl-kindrow>b{width:100%;margin:0 0 2px;font-size:12px}
  .fpl-kindrow button{padding:6px 11px;font-size:13px}
  /* 统计卡：数字不折行 */
  .fpl-stat b,.fpl-stat-in b,.fpl-stat-out b{white-space:nowrap;font-size:15px}
  /* 账目卡：日期+徽章+金额 / 用途 / 分类·小猫·结余·凭证 */
  .fpl-row{grid-template-columns:46px auto minmax(0,1fr) auto auto;grid-template-areas:"date badge mid amount amount" "note note note note note" "kind kind cats bal files";gap:6px 8px;padding:13px 14px}
  .fpl-date{grid-area:date;font-size:13px}
  .fpl-badge{grid-area:badge}
  .fpl-amount{grid-area:amount;justify-self:end;font-size:16px;font-weight:700}
  .fpl-note{grid-area:note;font-size:15px;line-height:1.45}
  .fpl-kind{grid-area:kind;justify-self:start;font-size:13px;white-space:nowrap}
  .fpl-row .fpl-cats{grid-area:cats;justify-self:start;min-width:0;overflow:hidden}
  .fpl-cat-chip{white-space:nowrap;max-width:100%}
  .fpl-balance{grid-area:bal;justify-self:end;font-size:12px;white-space:nowrap}
  .fpl-files{grid-area:files;justify-self:end;font-size:13px;white-space:nowrap}
}

/* ── 财务抽屉表单控件与 .fin-app 完全同款（2026.11.03 深夜）：抽屉渲染在 .fin-app 外，需单独对齐 ── */
.fin-drawer form{display:grid;gap:16px;max-width:700px;margin:0}
.fin-drawer label{display:grid;gap:7px;font-size:15px}
.fin-drawer input,.fin-drawer textarea,.fin-drawer select{font:inherit;font-size:16px;padding:12px;border:1px solid #c8cebd;border-radius:10px;width:100%;box-sizing:border-box;background:#fffdfb;color:var(--ink,#3c3524)}
.fin-drawer input[type=checkbox]{width:auto}
.fin-drawer input[type=file]{background:#f8f9f4}
.fin-drawer textarea{min-height:80px}
.fin-drawer input:focus,.fin-drawer textarea:focus,.fin-drawer select:focus{border-color:var(--accent,#7a9a6d);outline:none;box-shadow:0 0 0 3px var(--accent-soft,#e4efdb)}
.fin-drawer small{display:block;color:#68715e;font-size:13px}
/* iOS 日期控件对齐修法，与 .fin-app 同 */
.fin-drawer input[type="date"]{display:block;min-width:0;max-width:100%;appearance:none;-webkit-appearance:none;text-align:left}
.fin-drawer input[type="date"]::-webkit-date-and-time-value{min-width:0;text-align:left}
/* 抽屉内表单按钮：与 .fin-app 同款绿底胶囊；移动端整行等宽上下堆叠（与「记一笔」一致） */
.fin-drawer .fbd-form-actions{display:flex;gap:10px;justify-content:flex-end}
.fin-drawer .fbd-form-actions button{font:inherit;cursor:pointer;border:1px solid #aab89b;background:#edf3e6;color:#31482b;border-radius:10px;padding:11px 17px;margin:0}
.fin-drawer .fbd-form-actions button:hover{background:#e0ebd5}
@media(max-width:720px){
  .fin-drawer .fbd-form-actions{flex-direction:column-reverse}
  .fin-drawer .fbd-form-actions button{width:100%;padding:13px 17px}
  .fin-drawer form{gap:14px}
}

/* ── 财务明细顶部三段式（2026.11.03 深夜·按用户样图）：米色卡 + 时间/筛选/搜索 + 展开面板 ── */
.fin-app .fpl-toolbar{display:block;margin:0 0 14px;padding:14px;background:#f5f3e7;border-radius:20px;border:0}
.fin-app .fpl-toolbar .fpl-types{display:flex;gap:4px;margin:0 0 12px}
.fin-app .fpl-toolbar .fpl-types button{flex:1;margin:0;border:0;background:transparent;color:#8d8b7d;font-size:16px;font-weight:500;padding:0 6px;height:46px;display:inline-flex;align-items:center;justify-content:center;border-radius:999px}
.fin-app .fpl-toolbar .fpl-types button[aria-pressed="true"]{background:#ececdf;color:#2c3324;font-weight:650}
.fin-app .fpl-toolbar .fpl-tools{display:flex;gap:8px;align-items:stretch;flex-wrap:nowrap;justify-content:flex-start}
.fpl-pill{display:flex;align-items:center;gap:8px;justify-content:center;flex:1 1 0;min-width:0;margin:0;padding:0 14px;height:46px;border:1px solid #e3dfcd;border-radius:999px;background:#fffdfb;color:#3c3524;font:inherit;font-size:15px;cursor:pointer;white-space:nowrap}
.fpl-pill>span{overflow:hidden;text-overflow:ellipsis}
.fpl-pill .fpl-ic{flex:0 0 auto;width:19px;height:19px;color:#61694f}
.fpl-pill .fpl-caret{margin-left:auto;font-style:normal;font-size:13px;color:#9a9789;line-height:1}
.fpl-pill.is-open{background:#f2efe2;border-color:#d2d6c1}
.fpl-pill.has-filters{border-color:#9aad94;background:#eef4e9;color:#2f4a33}
.fpl-dot{width:7px;height:7px;border-radius:50%;background:#4f8a70;flex:0 0 auto}
.fpl-round{flex:0 0 auto;width:46px;height:46px;margin:0;padding:0;border:1px solid #e3dfcd;border-radius:50%;background:#fffdfb;color:#3c3524;display:flex;align-items:center;justify-content:center;cursor:pointer}
.fpl-round .fpl-ic{width:19px;height:19px}
.fpl-round.is-on{background:#4c5d32;border-color:#4c5d32;color:#fff}
.fin-app .fpl-toolbar .fpl-search{display:flex;align-items:center;margin:10px 0 0;padding:0 16px;height:46px;border:1px solid #e3dfcd;border-radius:999px;background:#fffdfb;width:auto;max-width:none}
.fin-app .fpl-toolbar .fpl-search input{width:100%;height:44px;padding:0;border:0;background:transparent;font-size:16px}
.fpl-filter-mobile{display:flex;align-items:center;gap:8px}
.fpl-filter-desktop{display:none}
.fpl-type-caret,.fpl-desktop-cats{display:none}
.fpl-round-label{display:none}
.fin-app .fpl-toolbar .fpl-search:not(.is-open){display:none}
/* 展开面板：白卡 + 大标题 + 圆角下拉 + 黑色主按钮 */
.fpl-panel{margin:12px 0 0;padding:18px;background:#fff;border-radius:20px;box-shadow:0 6px 20px rgba(60,53,36,.07)}
.fpl-panel h4{margin:0 0 14px;font-size:19px;font-weight:750;color:#1f2419}
.fpl-panel-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:0 0 14px}
.fin-app .fpl-toolbar .fpl-panel .fpl-select{display:block;margin:0;padding:0;border:0;background:none;min-width:0}
/* 面板内下拉自带头像级 SVG 箭头，关掉全局 .fpl-select:after 伪元素箭头，避免一框两箭头（2026.11.04） */
.fin-app .fpl-toolbar .fpl-panel .fpl-select:after{display:none}
.fpl-panel-field{display:grid;gap:8px;margin:0 0 14px;font-size:15px;color:#6f6a58}
.fin-app .fpl-toolbar .fpl-panel select{width:100%;max-width:none;box-sizing:border-box;height:52px;padding:0 42px 0 18px;border:1px solid #e6e2d3;border-radius:999px;background-color:#fffdfb;color:#3c3524;font-family:inherit;font-size:16px;-webkit-appearance:none;appearance:none;background-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' fill='none' stroke='%239a9789' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 17px center;background-size:12px 8px}
.fpl-panel-primary{display:block;width:100%;height:52px;margin:0;border:0;border-radius:999px;background:#14170f;color:#fff;font-family:inherit;font-size:17px;font-weight:600;cursor:pointer}
.fpl-panel-primary:active{background:#2a2e21}
.fpl-panel-actions{display:grid;grid-template-columns:1fr 2fr;gap:10px}
/* 筛选类面板（选择小猫 / 选择类目）：重置对齐左列（状态列宽 80px）、保存对齐右列（2026.11.12 用户拍板；
   2026.11.14 左列从 76/90 统一成 80px，与「关联小猫」选择器的状态列同宽，重置按钮正好压在列上） */
.fpl-filter-panel .fpl-panel-actions{grid-template-columns:80px minmax(0,1fr);gap:12px}
.fpl-panel-ghost{height:52px;margin:0;border:1px solid #e6e2d3;border-radius:999px;background:#fff;color:#6f6a58;font-family:inherit;font-size:17px;cursor:pointer}
/* 小猫筛选面板的两个按钮：保存深绿实底、重置白底。原来只在桌面媒体查询里给，手机上就退回
   `.fin-app button` 的浅绿底（同一个面板一深一浅）——2026.11.14 全站一致性检查时提出媒体查询。 */
.fin-app .fpl-toolbar .fpl-filter-panel .fpl-panel-primary{background:#425d36;color:#fff}
.fin-app .fpl-toolbar .fpl-filter-panel .fpl-panel-ghost{background:#fff;color:#5c6455}
/* 2026.11.14：手机左列只有 64px，重置按钮若沿用默认内边距，「重置」会被挤成竖排两字（线上实测）。
   清掉横向内边距并禁止换行，64px 足够放 16px 的两个字。 */
.fpl-panel-ghost,.fpl-panel-primary{white-space:nowrap}
@media(max-width:480px){.fpl-panel-ghost{padding:0 2px;font-size:16px}}
/* 「选择类目」面板仍用 .fpl-cat-picker 两列骨架（左收入/支出、右小类文字胶囊）。
   小猫面板 2026.11.14 起改走 .fin-cat-select，不再用这套骨架，但类目面板还在用，别当死代码删。 */
.fpl-cat-picker{display:grid;grid-template-columns:80px minmax(0,1fr);gap:12px;align-items:start;min-height:0}
.fpl-cat-stages{display:flex;flex-direction:column;gap:4px;border-right:1px solid var(--line);padding-right:10px;max-height:340px;overflow:auto}
.fin-app .fpl-cat-stages button{box-sizing:border-box;width:100%;min-height:44px;margin:0;padding:10px 8px;background:transparent;border:0;border-radius:10px;font-size:14px;line-height:22px;color:#686f5e;text-align:left;cursor:pointer}
.fin-app .fpl-cat-stages button[aria-pressed="true"]{background:#edf2e5;color:#36512f;font-weight:650}
.fpl-cat-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.fpl-cat-choices{min-width:0;max-height:340px;overflow:auto;padding:3px}
/* 「选择类目」面板：右列是文字胶囊（无头像），与猫格按钮同宽同选中态（2026.11.12） */
/* 类目小类只有 4–6 个，手机上排两列（3 列会把「猫粮/用品」「其他支出」挤成两行）；桌面保持三列。 */
.fpl-kind-picker .fpl-cat-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
@media(min-width:721px){.fpl-kind-picker .fpl-cat-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
.fpl-kind-picker .fpl-cat-grid button{display:flex;align-items:center;justify-content:center;padding:4px}
/* 2026.11.21 用户反馈：「❤️ 爱心捐赠」这类胶囊在手机上折成两行——字号 14→13、
   padding 收窄、white-space:nowrap 强制单行（4 字类目 + 图标在 2 列格内放得下） */
.fpl-kind-picker .fpl-cat-grid .fpl-cat-chip{display:inline-flex;flex-direction:row;align-items:center;justify-content:center;width:100%;max-width:240px;box-sizing:border-box;background:#f4f1e8;color:#2f5a3c;border-radius:999px;padding:7px 12px;font-size:13px;line-height:18px;white-space:nowrap}
.fpl-kind-picker .fpl-cat-grid button[aria-pressed="true"] .fpl-cat-chip{background:#dcead2;color:#28401f;font-weight:600}
/* 🔴 小猫筛选面板（2026.11.14 用户拍板）：不再自建一套网格，**直接复用「关联小猫」选择器**
   （.fin-cat-select + .entry-cat-*，见文件下半段）：白卡细边、公共费用整行、左状态列、右三列头像卡片
   全部同一份 CSS，改表单那套这里自动跟着变。这里只补三件事——① 面板本身不再套一层白卡（否则卡中卡）；
   ② 卡片底部多一行「重置 / 保存」；③ 把候选区高度收住，保存按钮不会被 30 只猫顶到屏幕外。 */
.fpl-panel.fpl-cat-filter-panel{padding:0;background:transparent;box-shadow:none;border-radius:14px}
.fin-cat-select.fpl-cat-select{margin:0}
/* 内边距与表单那张同款（0 8px 8px），否则面板里的卡片比「记一笔」里的窄一圈（2026.11.14 全站对齐）。
   选择器带 .fpl-cat-select 是必须的：下面 2827 行 `.fin-cat-select .entry-cat-picker{padding:14px}` 同级但更靠后。 */
.fin-cat-select.fpl-cat-select .entry-cat-picker{padding:0 8px 8px;margin:0}
.fpl-cat-select .fpl-panel-actions{grid-template-columns:80px minmax(0,1fr);gap:12px;padding:0 8px 8px}
/* 🔴 两个按钮必须撑满各自那列（2026.11.14 四轮：用户「重置和保存没有视觉对齐」）。
   实测按钮是内容宽：桌面重置 73 / 状态列 80，手机 57 / 64 —— 右边空出 7px，
   上沿又贴着状态按钮，一眼就看出没对齐；保存则撑满了整列，两个按钮左宽右窄更明显。
   button 在 grid 里默认不 stretch，必须显式 width:100%。 */
.fpl-cat-select .fpl-panel-actions>button{box-sizing:border-box;width:100%;min-width:0;margin:0}
.fin-cat-select.fpl-cat-select .entry-cat-options{max-height:340px;overflow:auto}
/* 状态列在小屏能到 9 项（全部/在校/寄养中/待领养/已领养/失踪/医院里/喵星/其他），
   不限高会把整张卡片拉到 400+ px，候选区底下留一大片空白；与候选区同高各自滚动。 */
.fpl-cat-select .entry-cat-columns>nav{max-height:340px;overflow:auto}
@media(max-width:720px){
  .fin-cat-select.fpl-cat-select .entry-cat-options{max-height:248px}
  .fpl-cat-select .entry-cat-columns>nav{max-height:248px}
}
@media(max-width:480px){
  .fpl-cat-picker{grid-template-columns:64px minmax(0,1fr);gap:8px}
  .fpl-filter-panel .fpl-panel-actions{grid-template-columns:64px minmax(0,1fr);gap:8px}
  .fpl-cat-select .fpl-panel-actions{grid-template-columns:64px minmax(0,1fr);gap:8px;padding:0 8px 8px}
}
@media(max-width:720px){
  .fin-app .fpl-toolbar{padding:12px;border-radius:16px}
  .fpl-panel{padding:16px;border-radius:16px}
  .fpl-pill,.fpl-round{height:44px}
  .fpl-round{width:44px}
  .fin-app .fpl-toolbar .fpl-types button{height:44px}
  .fpl-panel-grid{grid-template-columns:1fr 1fr}
  /* 「选择类目」面板（小猫面板已改走 .fin-cat-select）：手机端左右各收一点，重置/保存贴底可见 */
  .fpl-cat-stages{max-height:236px}
  .fpl-cat-choices{max-height:236px}
}
/* 桌面端收窄：类型与工具栏不铺满整屏，面板同宽，避免胶囊被拉成条状 */
/* 桌面端铺满卡片宽度；胶囊与面板稍高一点，符合电脑端比例 */
@media(min-width:721px){
  .fin-app .fpl-toolbar .fpl-types{position:relative;overflow:visible}
  .fpl-type-caret{display:inline;margin-left:10px;font-size:14px}
  .fpl-kind-count{margin-left:6px;font-size:12px}
  .fpl-mobile-filters{display:none}
  .fpl-desktop-cats{display:block}
  .fin-app .fpl-toolbar>.fpl-panel.fpl-filter-panel{grid-column:3/-1}
  /* 2026.11.14 二轮（用户：面板应出现在「全部小猫」下面，不是「全部」下面）：
     触发它的胶囊就在工具栏第 3 列，所以面板必须从第 3 列起（grid-column:3/-1），
     列起点天然等于那颗胶囊的左边缘——不用 JS 量坐标就精确对齐，任意宽度都不会错位。
     🔴 不能加 justify-self:start：那会让 grid item 停止拉伸、宽度塌成内容宽（实测 333px，
     三列卡片被挤成 61px），保持默认 stretch 才能撑满「第 3 列 → 右边缘」。 */
  .fin-app .fpl-toolbar>.fpl-panel.fpl-cat-filter-panel{grid-column:3/-1;max-width:640px}
  /* 时间面板只占左半区、不铺满整屏（2026.11.04 用户反馈：展开不要这么大） */
  .fin-app .fpl-toolbar>.fpl-panel.fpl-date-panel{grid-column:1/3;max-width:560px}
  /* 小猫筛选面板与表单选择器同一套样式（2026.11.14），桌面不再另写一套，
     避免与手机端各长一样。按钮配色已提到公共块（上面 .fpl-filter-panel），这里不再复写。 */
  .fpl-pill,.fpl-round{height:50px}
  .fin-app .fpl-toolbar .fpl-types button{height:50px}
  .fpl-panel h4{font-size:20px}
  .fin-app .fpl-toolbar{display:grid;grid-template-columns:minmax(240px,1.3fr) minmax(150px,.8fr) minmax(150px,.8fr) minmax(180px,1.2fr);gap:12px;align-items:center;background:transparent;border-radius:0;padding:0 0 20px;border-bottom:1px solid var(--line)}
  .fin-app .fpl-toolbar .fpl-types{min-width:0;margin:0;padding:0;gap:4px;background:#f0f1e9;border-radius:16px}
  .fin-app .fpl-toolbar .fpl-tools{display:contents}
  .fin-app .fpl-toolbar .fpl-types button,
  .fin-app .fpl-toolbar .fpl-tools>.fpl-pill,
  .fin-app .fpl-toolbar .fpl-admin-tools .fpl-pill,
  .fin-app .fpl-toolbar>.fpl-search{box-sizing:border-box;height:50px;min-height:50px;max-height:50px;margin:0;border-radius:14px;font-size:16px;line-height:24px}
  .fin-app .fpl-toolbar .fpl-types button{min-width:0;padding:0 12px;color:#62695e}
  .fin-app .fpl-toolbar .fpl-types button[aria-pressed="true"]{background:#425d36;color:#fff}
  .fin-app .fpl-toolbar .fpl-tools>.fpl-pill,
  .fin-app .fpl-toolbar .fpl-admin-tools .fpl-pill{width:100%;padding:0 14px;background:#fff;color:#424b3d;border-color:#dedfd4}
  .fin-app .fpl-toolbar .fpl-tools>.fpl-round{display:none}
  .fin-app .fpl-toolbar>.fpl-search{display:flex;width:100%;min-width:0;padding:0 14px;background:#fff;border-color:#d8d8d8}
  .fin-app .fpl-toolbar>.fpl-search:not(.is-open){display:flex}
  .fin-app .fpl-toolbar>.fpl-search input{width:100%;height:48px;min-height:0;max-height:48px;padding:0}
  .fin-app .fpl-toolbar .fpl-types{grid-column:1;grid-row:1}
  .fin-app .fpl-toolbar .fpl-tools>[data-pub-panel="date"]{grid-column:2;grid-row:1}
  .fin-app .fpl-toolbar .fpl-tools>[data-pub-panel="filter"]{grid-column:3;grid-row:1}
  .fin-app .fpl-toolbar>.fpl-search{grid-column:4;grid-row:1}
  .fpl-filter-mobile{display:none}
  .fpl-filter-desktop{display:flex;align-items:center;gap:8px;min-width:0}
  .fpl-filter-desktop>span{overflow:hidden;text-overflow:ellipsis}
  /* 2026.11.21 三轮：admin-tools 挪进了 .fpl-tools（display:contents 穿透后它仍是 .fpl-toolbar
     网格成员），直接子选择器 > 匹配不到了——放宽成后代选择器，桌面继续铺满整行。 */
  .fin-app .fpl-toolbar>.fpl-panel,.fin-app .fpl-toolbar .fpl-admin-tools{grid-column:1/-1;min-width:0}
}
@media(min-width:721px) and (max-width:1100px){
  .fin-app .fpl-toolbar>.fpl-panel.fpl-filter-panel{grid-column:1/-1}
  .fin-app .fpl-toolbar>.fpl-panel.fpl-date-panel{grid-column:1/3;max-width:520px}
  .fin-app .fpl-toolbar{grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1.3fr)}
  .fin-app .fpl-toolbar .fpl-types{grid-column:1/-1}
  .fin-app .fpl-toolbar .fpl-tools>[data-pub-panel="date"]{grid-column:1;grid-row:2}
  .fin-app .fpl-toolbar .fpl-tools>[data-pub-panel="filter"]{grid-column:2;grid-row:2}
  .fin-app .fpl-toolbar>.fpl-search{grid-column:3;grid-row:2}
}

/* 管理端「账目状态 / ＋记一笔」并入米色卡，与胶囊风格对齐（2026.11.03 深夜）
   🔴 2026.11.19 用户拍板：全部类目 2/3、记一笔 1/3，同一行、等高、同款组件。
   旧版是 flex-wrap + 内容宽度，手机窄屏会各占一行；改 grid 后两格强制同行。 */
.fin-app .fpl-admin-tools{display:grid;grid-template-columns:2fr 1fr;align-items:stretch;gap:12px;margin:12px 0 0}
/* 2026.11.20 公示页（用户端）没有「＋记一笔」，类目胶囊单独铺满整行（桌面端）。 */
.fin-app .fpl-admin-tools:not(.has-add){grid-template-columns:minmax(0,1fr)}
.fin-app .fpl-admin-tools label{display:flex;align-items:center;gap:8px;margin:0;font-size:14px;color:#6f6a58;white-space:nowrap;flex:0 0 auto}
.fin-app .fpl-admin-tools select{height:44px;margin:0;padding:0 38px 0 16px;border:1px solid #e3dfcd;border-radius:999px;background-color:#fffdfb;font-family:inherit;font-size:16px;color:#3c3524;max-width:none;min-height:0;cursor:pointer;-webkit-appearance:none;appearance:none;background-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' fill='none' stroke='%239a9789' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 15px center;background-size:12px 8px}
/* 两格都撑满、等高、同款胶囊；「＋记一笔」由纯文字链改成与类目胶囊同边框同底色。 */
/* 2026.11.20 用户：全部类目的文案要和「＋记一笔」一样居中——去掉 space-between，
   箭头不再钉死右侧（覆盖 2648 行 .fpl-pill .fpl-caret 的 margin-left:auto），跟文字成组居中。 */
.fin-app .fpl-admin-tools .fpl-pill{width:100%;min-width:0;box-sizing:border-box;flex:1 1 auto;justify-content:center}
.fin-app .fpl-admin-tools .fpl-pill .fpl-caret{margin-left:6px}
.fin-app .fpl-admin-tools>a{box-sizing:border-box;display:flex;align-items:center;justify-content:center;width:100%;min-width:0;margin:0;padding:0 12px;font-size:15px;font-weight:600;color:#2f4a33;background:#eef4e9;border:1px solid #9aad94;border-radius:999px;text-decoration:none;white-space:nowrap}
/* 类目面板的入口在下方管理条（不在筛选胶囊那一列），桌面上铺满整行——必须写在 .fpl-filter-panel 的 3/-1 之后才压得住。
   手机端 Tab 上的类目计数是桌面浮层的附属信息，类目胶囊自带文案，别在页签上留一个孤零零的数字（2026.11.12）。 */
@media(min-width:721px){.fin-app .fpl-toolbar>.fpl-panel.fpl-kind-panel{grid-column:1/-1;max-width:760px}}
@media(max-width:720px){.fpl-kind-count{display:none}}


/* 报销与审核共用展开卡片 */
.fin-app .my-card:has(.reimburse-summary){background:#fffcf8;border:1px solid #e7dccc;border-radius:24px;padding:24px}
.reimburse-top{display:flex;align-items:center;gap:10px}.reimburse-top>b{font-size:30px;color:#111}.reimburse-top>span{padding:6px 10px;border-radius:10px;background:#f5ecdf;color:#916b47}.reimburse-top>em{margin-left:auto;font-style:normal;color:#568363}
.reimburse-purpose{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:18px 0}.reimburse-purpose h3{margin:0;font-size:21px;font-weight:500;color:#171713}.reimburse-meta{color:#76786f;font-size:16px}
.reimburse-files{display:flex;gap:18px;flex-wrap:wrap;margin:20px 0}.reimburse-files>details>summary{cursor:pointer;color:#686b62;font-size:16px}.reimburse-files .my-mat-items{padding:12px 0;min-width:180px}
.reimburse-history>div{background:#f5ecdf;border-radius:16px;padding:12px 18px;margin-top:12px}.reimburse-history p{display:flex;justify-content:space-between;gap:16px;padding:8px 0;margin:0}.reimburse-history time{color:#717169;font-size:14px}.reimburse-history summary{cursor:pointer;color:#686b62;font-size:16px}
@media(max-width:720px){.fin-app .my-card:has(.reimburse-summary){padding:16px}.reimburse-top>b{font-size:25px}.reimburse-purpose h3{font-size:18px}.reimburse-history p{flex-direction:column;gap:4px}}

.reimburse-collapse{float:right;margin:0 0 8px 12px!important;padding:4px 8px!important;background:transparent!important;border:0!important;color:#77796f!important;font-size:13px!important}.fin-app form:is([data-fin-form="entry"],[data-fin-form="income"]) input:not([type="file"]):not([type="checkbox"]),.fin-app form:is([data-fin-form="entry"],[data-fin-form="income"]) select,.fin-app form[data-fin-form="book"] input:not([type="file"]):not([type="checkbox"]),.fin-app form[data-fin-form="book"] select{border-radius:999px;height:46px;min-height:46px;padding:0 14px;background:#fffdf8}.fin-app form:is([data-fin-form="entry"],[data-fin-form="income"]) input[type="date"]::-webkit-date-and-time-value,.fin-app form[data-fin-form="book"] input[type="date"]::-webkit-date-and-time-value{line-height:44px;min-height:44px;text-align:left}.fin-app form:is([data-fin-form="entry"],[data-fin-form="income"]) textarea,.fin-app form[data-fin-form="book"] textarea{border-radius:16px;background:#fffdf8}

.entry-cat-picker{border:0;margin:8px 0;padding:0;min-width:0}.entry-cat-picker>div{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;max-height:300px;overflow:auto;padding:8px 0}.entry-cat-picker label{display:flex;align-items:center;gap:6px;margin:0;padding:8px;border:1px solid #dce2d5;border-radius:14px;cursor:pointer}.entry-cat-picker label:has(:checked){background:#edf2e5;border-color:#637d51}.entry-cat-picker .fpl-cat-chip{white-space:normal}.entry-linked-cats{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}@media(max-width:720px){.entry-cat-picker>div{grid-template-columns:repeat(3,minmax(0,1fr))}}

.fin-app .reimburse-files>button{display:inline-flex;align-items:center;gap:8px;border:0;background:transparent;color:#686b62;padding:0;margin:0;font-size:17px;box-shadow:none}.reimburse-file-icon svg{width:20px;height:20px;display:block}.reimburse-history>summary{display:flex;align-items:center;justify-content:space-between;gap:16px;list-style:none}.reimburse-inline-actions{display:flex;gap:10px}.fin-app .reimburse-inline-actions button{padding:0;border:0;background:transparent;color:#916b47;box-shadow:none;font-weight:500}.entry-linked-cats{position:relative;display:block;flex-shrink:0}.entry-linked-cats>summary{display:flex;align-items:center;gap:10px;background:#f5ecdf;border-radius:999px;padding:6px 12px;cursor:pointer;list-style:none;color:#916b47}.entry-avatar-stack{display:flex}.entry-avatar-stack .fpl-cat-chip{width:30px;height:30px;padding:3px;margin-left:-4px;overflow:hidden;border-radius:50%;font-size:0;background:white;display:flex;justify-content:center}.entry-avatar-stack .fpl-cat-av{width:24px;height:24px;min-width:24px}.entry-linked-cats>div{position:absolute;right:0;top:100%;padding:12px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;background:#fffdf8;border:1px solid #e7dccc;border-radius:12px;z-index:5;min-width:280px}/* 2026.11.12 走查修正：这条旧规则原来写死 width:100%，优先级压过原尺寸规则，
   会把小图强行拉满弹层宽度（正是「超级大」的元凶）。改为与 1836 行同一口径：原始尺寸、不放大。 */
.fin-image-dialog .fin-voucher img{width:auto;max-width:100%;height:auto;object-fit:contain}@media(max-width:720px){.reimburse-purpose{align-items:flex-start;flex-wrap:wrap}.reimburse-history>summary{flex-wrap:wrap}}

.entry-cat-picker>.entry-cat-columns{display:grid;grid-template-columns:90px 1fr;max-height:340px;overflow:auto;gap:12px}.entry-cat-columns>nav{display:flex;flex-direction:column;gap:4px}.entry-cat-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.entry-cat-options label[hidden]{display:none}.entry-cat-options .fpl-cat-chip{display:flex;flex-direction:column;gap:6px}.entry-cat-options .fpl-cat-av{width:40px;height:40px}.entry-voucher-editor{margin:16px 0}.entry-voucher-editor>summary{cursor:pointer;color:#8b6849}.fbd-files>h4 small{float:right;font-weight:400}.reimburse-purpose .entry-linked-cats{margin-left:auto}

.fin-app .my-card:has(.reimburse-summary){position:relative}.fin-app .reimburse-collapse{position:absolute;top:6px;right:24px;width:auto!important}.fin-app .my-card:has(.reimburse-summary) .my-card-body{padding:0;border:0;margin:0}.reimburse-meta{border:0!important}.reimburse-inline-actions{margin-left:auto}.reimburse-files{margin:20px 0 14px}.reimburse-history{margin-top:12px}.entry-voucher-editor{margin:8px 0 14px}.entry-cat-columns>nav button{background:transparent;border:0;color:#626b59;margin:0;padding:8px;font-size:14px}.entry-cat-columns>nav button[aria-pressed="true"]{background:#edf2e5;color:#425d36}.entry-cat-options label{min-width:0}.entry-cat-options .fpl-cat-chip{min-width:0;font-size:14px}.entry-cat-options input[type="checkbox"]{width:16px;min-height:16px;height:16px;min-width:16px}

.reimburse-meta{display:flex;align-items:center;gap:10px}.reimburse-meta svg{width:20px;height:20px;color:#82887d}.reimburse-meta svg:nth-of-type(2){margin-left:12px}.fin-app form:is([data-fin-form="entry"],[data-fin-form="income"]){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.fin-app form:is([data-fin-form="entry"],[data-fin-form="income"])> *{grid-column:1/-1;min-width:0}.fin-app form:is([data-fin-form="entry"],[data-fin-form="income"])>label:has([name="amount"]),.fin-app form:is([data-fin-form="entry"],[data-fin-form="income"])>label:has([name="date"]){grid-column:auto}@media(max-width:720px){.fin-app form:is([data-fin-form="entry"],[data-fin-form="income"]){grid-template-columns:minmax(0,1fr)}}
/* 2026.11.05 「记一笔」向报销表单看齐：同一套两列网格；收支类型｜具体类目、金额｜费用日期 各占一行两列。 */
.fin-app form[data-fin-form="book"]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.fin-app form[data-fin-form="book"]> *{grid-column:1/-1;min-width:0}.fin-app form[data-fin-form="book"]>label:has([name="type"]),.fin-app form[data-fin-form="book"]>label:has([name="category"]),.fin-app form[data-fin-form="book"]>label:has([name="amount"]),.fin-app form[data-fin-form="book"]>label:has([name="date"]){grid-column:auto}@media(max-width:720px){.fin-app form[data-fin-form="book"]{grid-template-columns:minmax(0,1fr)}}

.entry-voucher-editor>.fbd-files{background:#fff;border-radius:24px;border:1px solid #e7dccc;padding:20px}.entry-voucher-editor .fbd-files>h4{background:#faf7ef;padding:16px;margin:0 0 18px}.entry-voucher-editor .fbd-thumbs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;gap:14px}.entry-voucher-editor .fbd-thumb{width:100%;margin:0}.entry-voucher-editor .fbd-thumb-img{height:180px}.entry-voucher-editor .fbd-thumb-img img{width:100%;height:100%;object-fit:contain}.fin-app form:is([data-fin-form="entry"],[data-fin-form="income"])>label:has([name="category"]),.fin-app form:is([data-fin-form="entry"],[data-fin-form="income"])>label:has(input[readonly]:not([name])):first-child{grid-column:auto}@media(max-width:720px){.entry-voucher-editor .fbd-thumbs{grid-template-columns:minmax(0,1fr)}}
.entry-cat-options label{justify-content:center;border-color:transparent;background:transparent}.entry-cat-options label:has(:checked){background:#edf2e5;border-color:#9aad94}.entry-cat-options input[type=checkbox]{position:absolute;opacity:0}.entry-cat-columns>nav{border-right:1px solid var(--line);padding-right:10px}.entry-cat-options .fpl-cat-chip{background:transparent;border:0}
.entry-cat-options input[type=radio]{position:absolute;opacity:0;width:1px;height:1px;min-height:0}.entry-cat-options label:focus-within{outline:2px solid #637d51}

/* ── 2026.11.04 晚 · 报销卡片排版收口（视觉对齐 / 去重复 / 压间距） ──────────────
   一、右上不再浮一个「收起」压住状态：金额·分类·状态·收起 收进同一行，靠顶对齐；
   二、一只小猫直接显示名字，多只才折叠；
   三、删掉「支出」冗余标签与「凭证 共 N 份」重复计数，材料改成单盒子分组标题自带份数；
   四、全卡统一 10/14px 垂直节奏，材料缩略图从 180px 降到 4:3。 */
.fin-app .my-card:has(.reimburse-summary){position:relative;padding:18px 20px;border-radius:20px;border:1px solid #ece3d3;background:#fffdf9;box-shadow:none}
.reimburse-summary{display:grid;gap:10px}
.reimburse-top{display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-height:34px}
.reimburse-top>.reimburse-amount{font-size:26px;line-height:1.15;font-weight:650;color:#17170f;letter-spacing:-.01em}
.reimburse-top>.reimburse-cat{padding:3px 9px;border-radius:8px;background:#f4ecdd;color:#8d6a47;font-size:13px;line-height:1.55;font-weight:400}
.reimburse-top>.reimburse-state{margin-left:auto;padding:3px 10px;border-radius:999px;background:#f1f4ec;color:#4f6b48;font-size:12.5px;line-height:1.55;font-style:normal;white-space:nowrap}
.reimburse-state[data-state="returned"]{background:#fdefeb;color:#a8503c}
.reimburse-state[data-state="pending"],.reimburse-state[data-state="draft"]{background:#f8eedd;color:#8b6234}
.reimburse-state[data-state="paid"],.reimburse-state[data-state="posted"]{background:#f0f2ec;color:#66705f}
.fin-app .my-card .reimburse-collapse{position:static!important;float:none;top:auto;right:auto;margin:0!important;padding:2px 0 2px 4px!important;background:transparent!important;border:0!important;color:#9a9789!important;font-size:13px!important;line-height:1.6;box-shadow:none;width:auto}
.fin-app .my-card .reimburse-collapse:hover{color:#5b6b4c!important}
.reimburse-summary .reimburse-purpose{display:flex;align-items:center;justify-content:flex-start;gap:8px;flex-wrap:wrap;margin:0;font-size:19px;line-height:1.4;font-weight:500;color:#17170f}
.reimburse-target{display:inline-flex;align-items:center;gap:2px;padding:2px 9px 2px 2px;border-radius:999px;background:#f7f0e3;color:#8d6a47;font-size:13px;font-weight:400;line-height:1.6}
.reimburse-target .fpl-cat-chip{padding:0;background:transparent;border:0;font-size:13px;color:#8d6a47;gap:5px}
.reimburse-target .fpl-cat-av{width:18px;height:18px;min-width:18px}
.reimburse-target-plain{padding:2px 9px}
.reimburse-summary .entry-linked-cats{margin-left:0}
.reimburse-summary .entry-linked-cats>summary{padding:2px 10px 2px 4px;font-size:13px;line-height:1.6}
.reimburse-summary .entry-avatar-stack .fpl-cat-chip{width:24px;height:24px}
.reimburse-summary .entry-avatar-stack .fpl-cat-av{width:18px;height:18px;min-width:18px}
.reimburse-summary .reimburse-meta{display:flex;align-items:center;gap:5px;margin:0;color:#8b8c81;font-size:13.5px;line-height:1.6}
.reimburse-summary .reimburse-meta svg{width:15px;height:15px;flex:none;color:#a3a49a}
.reimburse-summary .reimburse-meta svg:nth-of-type(2){margin-left:10px}
.fin-app .my-card:has(.reimburse-summary) .my-card-body{display:grid;gap:12px;margin:14px 0 0;padding:14px 0 0;border-top:1px solid #f1ebdd}
.my-card-body .my-card-reason{margin:0;padding:0;background:none;border:0;border-radius:0;font-size:13.5px;line-height:1.6;color:#a8503c}
/* 材料盒子：一个框、组内标题带份数、缩略图收到 4:3 */
.fin-app .my-card .entry-voucher-editor{margin:0}
.entry-material{display:grid;gap:10px;padding:10px 14px;border-radius:14px;background:#faf7ef;border:1px solid #f2ecdd}
.entry-material-group{display:grid;gap:8px}
.entry-material-group + .entry-material-group{padding-top:12px;border-top:1px dashed #e9e1d0}
.entry-material-head{display:flex;align-items:center;gap:8px;min-height:22px}
.entry-material-head h4{display:flex;align-items:center;gap:6px;margin:0;font-size:13px;font-weight:600;color:#3f3a2c}
.entry-material-head h4 span{padding:0 7px;border-radius:999px;background:#fff;border:1px solid #ece2d0;color:#8d6a47;font-size:11.5px;font-weight:500;line-height:1.7}
.entry-material-head small{font-size:11.5px;color:#a9a899;line-height:1.5}
.fin-app button.entry-material-add{margin:0 0 0 auto;padding:2px 10px!important;border:1px solid #e2d8c2!important;border-radius:999px!important;background:#fff!important;color:#8d6a47!important;font-size:12px!important;line-height:1.7;box-shadow:none}
.fin-app button.entry-material-add:hover{background:#f4efe1!important;border-color:#d3c4a6!important}
.fin-app .entry-material .fbd-thumbs{display:grid;grid-template-columns:repeat(auto-fill,128px);gap:10px}
.fin-app .entry-material .fbd-thumb{border-radius:10px;border-color:#eee6d6}
.fin-app .entry-material .fbd-thumb-open{aspect-ratio:4/3}
.fin-app .entry-material .fbd-thumb-img{height:100%}
.fin-app .entry-material .fbd-thumb-img img{background:#fff}
/* 处理记录：与上方同一节奏，去掉多余外距 */
.fin-app .my-card .reimburse-history{margin:0}
.fin-app .my-card .reimburse-history>summary{padding:0;color:#8b8c81;font-size:13px;line-height:1.6}
.fin-app .my-card .reimburse-history>div{margin-top:8px;padding:6px 14px;border-radius:12px;background:#f7f2e7}
.fin-app .my-card .reimburse-history p{padding:5px 0;font-size:13px}
.fin-app .my-card .reimburse-history time{font-size:12.5px;color:#9a9b8e}
.fin-app .my-card .reimburse-inline-actions{gap:12px}
.fin-app .my-card .reimburse-inline-actions button{font-size:13px}
@media(max-width:720px){
  .fin-app .my-card:has(.reimburse-summary){padding:14px}
  .reimburse-top>.reimburse-amount{font-size:23px}
  .reimburse-summary .reimburse-purpose{font-size:17px}
  .reimburse-top>.reimburse-state{margin-left:0}
  .fin-app .entry-material .fbd-thumbs{grid-template-columns:repeat(2,minmax(0,1fr))}
}
.fin-cat-select{margin:12px 0;border:1px solid var(--line);border-radius:14px;background:#fff}.fin-cat-select>summary{padding:14px;cursor:pointer;min-height:48px;box-sizing:border-box}.fin-cat-select .entry-cat-picker{padding:14px;margin:0}.fin-cat-select .entry-cat-options{max-height:340px;overflow:auto}.fin-cat-select .entry-cat-options label:focus-within{outline:2px solid #637d51}.fin-cat-select .entry-cat-options label[hidden]{display:none}

/* ── 2026.11.04 晚 · 处理付款页收口（对齐 / 去重复 / 压间距 / 统一字号） ─────────
   一、删掉每行重复的「待付款」徽标（整页就是这个状态）与顶部常驻公告条，说明压成一行；
   二、行改为 勾选｜用途+元信息｜金额｜操作 四列，勾选框与标题首行对齐，主操作不再折行；
   三、登记面板：明细三列对齐、金额日期并排、主次按钮同行、取消领取降为一行文字。 */
.fin-app.fin-workbench .fin-list-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 8px}
.fin-app.fin-workbench .fin-list-head>.wb-table-tools{margin:0;flex:0 1 auto;justify-content:flex-end;gap:12px}
.fin-app.fin-workbench .fin-list-head .wb-search{max-width:264px;flex:1 1 200px}
.fin-app.fin-workbench .wb-table-row{grid-template-columns:18px minmax(0,1fr) auto auto;gap:18px;align-items:start;padding:14px 0;border-bottom:1px solid #f2f0e7}
.fin-app.fin-workbench .wb-table-row:last-child{border-bottom:0}
.fin-app.fin-workbench .wb-row-check{padding-top:4px}
.fin-app.fin-workbench .wb-row-main{gap:3px}
.fin-app.fin-workbench .wb-table-row .wb-row-main strong{font-size:15.5px;font-weight:600;line-height:1.5;color:#303a2c}
.fin-app.fin-workbench .wb-table-row .wb-row-main>span{font-size:12.5px;line-height:1.7;color:#949c8a}
.fin-app.fin-workbench .wb-row-amount{align-self:start;padding-top:1px;gap:2px;min-width:0;text-align:right}
.fin-app.fin-workbench .wb-table-row .wb-row-amount b{font-size:16.5px;font-weight:600;line-height:1.5;color:#3d3322}
.fin-app.fin-workbench .wb-row-amount small{font-size:11.5px;color:#a79c84;line-height:1.5}
.fin-app.fin-workbench .wb-row-act{flex-direction:row;align-items:center;gap:12px;width:auto;justify-self:end;padding-top:0}
.fin-app.fin-workbench .wb-table-row .wb-row-act>button{width:auto;min-width:0;font-size:13px;padding:7px 14px;min-height:34px;line-height:1.4;border-radius:999px;white-space:nowrap;background:#fffdf7;color:#6f6146;border:1px solid #e2d9c5}
.fin-app.fin-workbench .wb-table-row .wb-row-act>button:hover{background:#f7f3e7;border-color:#cbbd9f;color:#4d4330}
.fin-app.fin-workbench .wb-row-act .wb-row-link{padding:0!important;min-height:0!important;border:0!important;background:none!important;color:#8a7a5c!important;font-size:12.5px!important;line-height:1.5;text-decoration:underline;text-underline-offset:3px}
/* 底部合并付款条 */
.fin-app.fin-workbench .fin-payment-bar{padding:12px 16px;border-radius:14px;background:#fffdf5;border-color:#e6dcc4;box-shadow:0 -4px 18px #61573508}
.fin-app.fin-workbench .fin-payment-bar>div{display:flex;align-items:baseline;gap:10px}
.fin-app.fin-workbench .fin-payment-bar strong{font-size:13px;font-weight:500;color:#8b7c5f}
.fin-app.fin-workbench .fin-payment-bar span{font-size:14.5px;font-weight:600;color:#3d3322}
.fin-app.fin-workbench .fin-payment-bar button{font-size:13.5px;padding:10px 16px;min-height:0;border-radius:999px;background:#6f5a2e;color:#fff;border:0;margin:0}
/* 登记合并付款面板 */
.fin-app.fin-workbench .pay-panel{padding:20px 22px;border-radius:18px;margin:0 0 18px}
.pay-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.pay-head h2{margin:0;font-size:19px;line-height:1.4;color:#2f382b}
.pay-head-meta{font-size:12.5px;color:#96927f;white-space:nowrap}
.pay-head-meta b{font-size:15px;color:#3d3322}
.pay-lines{margin:12px 0 0;border-top:1px solid #f2eee2}
.pay-line{display:grid;grid-template-columns:minmax(0,1fr) auto 92px;align-items:center;gap:14px;margin:0;padding:9px 0;border-bottom:1px solid #f6f3ea}
.pay-line-name{font-size:13.5px;color:#4a4a3e;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pay-line>b{font-size:14px;color:#3d3322;font-variant-numeric:tabular-nums}
.pay-line .wb-row-link{justify-self:end;margin:0!important;padding:0!important;border:0!important;background:none!important;color:#8a7a5c!important;font-size:12px!important;text-decoration:underline;text-underline-offset:3px}
.fin-app.fin-workbench button.pay-code{margin:12px 0 0;padding:7px 14px;font-size:12.5px;border-radius:999px;background:#fff;border:1px solid #e2d9c5;color:#6f6146;box-shadow:none}
.fin-app.fin-workbench .pay-form{display:grid;gap:10px;max-width:none;margin:16px 0 0}
.pay-fields{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}
.pay-form label{display:grid;gap:6px;font-size:12.5px;color:#8b8574}
.pay-form input{height:44px;padding:0 14px;border-radius:12px;border:1px solid #e0dac9;background:#fffdf8;font-size:16px}
.pay-form-hint{margin:0;font-size:12px;color:#a5a08e;line-height:1.6}
.pay-actions{display:flex;align-items:center;gap:10px;margin:2px 0 0}
.fin-app.fin-workbench .pay-submit{margin:0;padding:11px 22px;font-size:14px;border-radius:999px;background:#4f6b39;border:0;color:#fff}
.fin-app.fin-workbench .pay-later{margin:0;padding:10px 18px;font-size:13.5px;border-radius:999px;background:#fff;border:1px solid #e2d9c5;color:#7a6d52;box-shadow:none}
.pay-release{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap;margin:4px 0 0;font-size:12px;color:#a5a08e;line-height:1.7}
.fin-app.fin-workbench .pay-release-link{margin:0;padding:0;border:0;background:none;color:#a2937a;font-size:12px;text-decoration:underline;text-underline-offset:3px;box-shadow:none}
@media(max-width:760px){
  .fin-app.fin-workbench .fin-list-head{display:block}
  .fin-app.fin-workbench .fin-list-head>.wb-table-tools{margin:10px 0 0;flex-wrap:wrap}
  .fin-app.fin-workbench .fin-list-head .wb-search{max-width:none;flex-basis:100%}
  .fin-app.fin-workbench .wb-table-row{grid-template-columns:16px minmax(0,1fr) auto;gap:10px;padding:13px 0}
  .fin-app.fin-workbench .wb-row-act{grid-column:2/-1;justify-self:end;gap:14px;padding-top:0}
  .fin-app.fin-workbench .wb-table-row .wb-row-act>button{font-size:12.5px;padding:6px 12px;min-height:32px}
  .pay-fields{grid-template-columns:minmax(0,1fr)}
  .pay-line{grid-template-columns:minmax(0,1fr) auto;gap:8px}
  .pay-line .wb-row-link{grid-column:2;justify-self:end}
  .fin-app.fin-workbench .pay-panel{padding:16px}
  .pay-actions{flex-wrap:wrap}
}

/* 关联小猫：统一选项尺寸，公共费用独占一行，长名称自然换行。 */
.fin-cat-select{min-width:0;width:100%;box-sizing:border-box}
.fin-cat-select>summary{display:flex;align-items:flex-start;gap:8px;line-height:1.5;white-space:normal;overflow-wrap:anywhere;font-size:16px}
.fin-cat-select>summary [data-cat-selection-label]{min-width:0;flex:1;white-space:normal;overflow-wrap:anywhere}
:is(.fin-cat-select,.fin-fund-dialog) .entry-cat-columns{grid-template-columns:80px minmax(0,1fr);gap:12px;align-items:start;max-height:none;overflow:visible}
:is(.fin-cat-select,.fin-fund-dialog) .entry-cat-columns>nav button{box-sizing:border-box;width:100%;min-height:44px;margin:0;padding:10px 8px;border-radius:10px;font-size:14px;line-height:22px;white-space:normal;overflow-wrap:anywhere;text-align:left}
:is(.fin-cat-select,.fin-fund-dialog) .entry-cat-options{grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:auto;align-content:start;gap:10px;min-width:0;padding:3px;max-height:360px;overflow:auto}
:is(.fin-cat-select,.fin-fund-dialog) .entry-cat-options>label{box-sizing:border-box;position:relative;display:flex;align-items:center;justify-content:center;min-width:0;width:100%;height:112px;margin:0;padding:10px 6px;border:1px solid #dce2d5;border-radius:12px;font-size:14px;line-height:20px;text-align:center;white-space:normal;overflow-wrap:anywhere}
:is(.fin-cat-select,.fin-fund-dialog) .entry-cat-options>label:has(:checked){background:#edf2e5;border-color:#637d51}
:is(.fin-cat-select,.fin-fund-dialog) .entry-cat-options>label.entry-cat-public{grid-column:1/-1;height:auto;min-height:48px;padding:12px;font-size:16px;line-height:24px;text-align:left;justify-content:flex-start}
:is(.fin-cat-select,.fin-fund-dialog) .entry-cat-options .fpl-cat-chip{box-sizing:border-box;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;width:100%;max-width:100%;margin:0;padding:0;border:0;background:transparent;white-space:normal;overflow-wrap:anywhere;font-size:14px;line-height:20px}
:is(.fin-cat-select,.fin-fund-dialog) .entry-cat-options .fpl-cat-av{flex:0 0 40px;width:40px;height:40px;min-width:40px;max-width:40px;object-fit:cover;border-radius:50%}
@media(max-width:480px){.fin-cat-select .entry-cat-columns{grid-template-columns:64px minmax(0,1fr);gap:8px}.fin-cat-select .entry-cat-picker{padding:10px}.fin-cat-select .entry-cat-options{gap:6px}.fin-cat-select .entry-cat-options>label{height:112px;padding:8px 3px}.fin-cat-select .entry-cat-columns>nav{padding-right:6px}.fin-cat-select .entry-cat-columns>nav button{padding:10px 4px}}
:is(.fin-cat-select,.fin-fund-dialog) .entry-cat-options>label[hidden]{display:none}

/* ── 2026.11.04 二轮 · 处理付款「已付款」收口（批次卡片 / 统一字号与猫标签） ──────
   一、已付款不再是独立页面：待付款、已付款两个 Tab 常驻，随时能切回去；
   二、一次转账 = 一个批次卡片，卡片头只说「哪天 · 谁付的 · 几笔」，多笔才补合计，单笔不重复金额；
   三、删掉 payment_xxx 付款编号与「实际付款批次」说明面板；
   四、行内日期 / 小猫 / 申请人 / 凭证统一到一条元信息，小猫沿用全站小头像胶囊。 */
.pay-batch{border:1px solid #ece3d3;border-radius:16px;background:#fffdf9;padding:12px 16px 4px;margin:0 0 12px}
.fin-app .pay-batch-head{display:flex;justify-content:flex-start;align-items:center;flex-wrap:nowrap;gap:12px;padding:2px 0 10px;border-bottom:1px solid #f2ecdd}
.pay-batch-summary{margin:0 auto 0 0;font-size:12.5px;line-height:1.6;color:#8b8c81}
.pay-batch-total{font-size:13px;font-weight:600;line-height:1.6;color:#6f6a56;font-variant-numeric:tabular-nums}
.fin-app.fin-workbench button.pay-batch-receipt{margin:0 0 0 10px;padding:3px 11px;border-radius:999px;border:1px solid #e6ddca;background:#fff;color:#8a7a5c;font-size:12px;line-height:1.7;min-height:0;box-shadow:none;font-weight:400}
.fin-app.fin-workbench button.pay-batch-receipt:hover{background:#f7f2e6;border-color:#d4c5a6;color:#5f5238}
/* 已付款批次里的行：不再有勾选框，三列（用途+元信息 / 金额 / 操作），行间用细线分隔 */
.fin-app.fin-workbench .pay-batch .wb-table-row{grid-template-columns:minmax(0,1fr) auto auto;gap:16px;padding:12px 0;border-bottom:0}
.fin-app.fin-workbench .pay-batch .wb-table-row + .wb-table-row{border-top:1px solid #f6f2e8}
.fin-app.fin-workbench .pay-batch .wb-table-row:last-child{padding-bottom:10px}
.pay-batch .wb-row-check{display:none}
.pay-batch .wb-row-main strong{font-size:15.5px;font-weight:600;line-height:1.5;color:#33301f}
.pay-row-meta{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-top:3px;font-size:12.5px;line-height:1.7;color:#949c8a}
.pay-row-meta time{color:#8b8c81;font-variant-numeric:tabular-nums}
.pay-row-meta .pay-row-by{color:#949c8a}
.pay-row-meta .pay-row-ev{color:#a8a99b}
.pay-row-meta .pay-row-cat{padding:0 8px;border-radius:999px;background:#f5f0e5;color:#8d8a77}
/* 小猫胶囊与报销卡片一致：小头像 + 名字，12.5px */
.pay-row-meta .fpl-cat-chip{padding:1px 9px 1px 2px;border-radius:999px;background:#f6efe1;color:#8d6a47;font-size:12.5px;line-height:1.6;gap:5px}
.pay-row-meta .fpl-cat-av{width:17px;height:17px;min-width:17px}
.pay-batch .wb-row-amount{align-self:start;padding-top:0;display:flex;align-items:center;min-height:30px}
.pay-batch .wb-row-amount b{font-size:16.5px;font-weight:600;color:#3d3322}
.pay-batch .wb-row-act{padding-top:0;align-self:start}
@media(max-width:760px){
  .pay-batch{padding:10px 12px 2px}
  /* 手机端批次头压成一行：日期·付款人（可省略）+ 合计 + 支付截图 */
  .fin-app .pay-batch-head{gap:8px}
  /* 手机端一行放不下「日期+猫+申请人+凭证」：凭证份数收进详情，元信息保持单行 */
  .pay-row-meta .pay-row-ev{display:none}
  .fin-app .pay-batch-head .pay-batch-summary{flex:1 1 auto;min-width:0;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .pay-batch .pay-batch-total{flex:none;white-space:nowrap}
  .fin-app.fin-workbench button.pay-batch-receipt{flex:none;margin-left:2px}
  /* 行两行排：标题 / 金额 首行，元信息 / 查看详情 次行 */
  .fin-app.fin-workbench .pay-batch .wb-table-row{grid-template-columns:minmax(0,1fr) auto;gap:4px 10px;padding:11px 0}
  .pay-batch .wb-row-main{grid-column:1;grid-row:1}
  .pay-batch .wb-row-amount{grid-column:2;grid-row:1;min-height:0;align-self:start}
  .fin-app.fin-workbench .pay-batch .wb-row-act{grid-column:2;grid-row:1;align-self:end;justify-self:end;padding-top:0;margin-left:4px}
}
.fin-redaction-files{width:100%;text-align:left;display:flex;flex-direction:column;gap:10px}.fin-selected-file{display:flex!important;flex-wrap:wrap;align-items:center;gap:8px;padding:10px;border:1px solid #ddd;border-radius:12px;background:white;min-width:0}.fin-selected-file>span{flex:1 1 100%;overflow-wrap:anywhere;white-space:normal;font-size:14px}.fin-selected-preview{display:block;order:-1;width:100%;height:140px;object-fit:contain;background:#f7f6f1;border-radius:8px}.fin-selected-count{font-size:14px;font-weight:600;color:#425d36;margin:4px 0;line-height:1.6}.fin-app .fin-selected-file button{width:auto;margin:0;padding:8px 10px;min-height:40px}

/* ── 2026.11.04 三轮 · 财务明细筛选（类目面板改流内 / 手机两行等宽） ─────────────
   一、类目多选不再是绝对定位浮层：与「选择时间」「选择小猫」同款整宽面板，展开时把表格顶下去，
       永远不会盖住时间胶囊和账目行。旧版 [data-direction="expense"] 那条漏了 .fin-app 前缀，
       被前面的 left:0 压掉，两个方向都贴到最左——用户问的「为什么跑这里来」就是它。
   二、手机端两行三列：第一行 全部/收入/支出，第二行 全部时间/全部小猫/搜索；两行同为 gap:4px 的
       三等分栅格，纵向严格对齐，搜索圆钮在这一行变成同宽胶囊。 */
.fin-app .fpl-toolbar .fpl-kind-panel{margin:10px 0 0;padding:14px 16px 16px;box-shadow:0 6px 20px rgba(60,53,36,.06)}
.fin-app .fpl-kind-panel h4{margin:0 0 10px;font-size:15px;font-weight:700;color:#2f382b}
.fpl-kind-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(116px,1fr));gap:8px;margin:0 0 12px}
.fpl-kind-grid label{display:flex;align-items:center;gap:8px;margin:0;padding:9px 12px;border:1px solid #e6e2d3;border-radius:999px;background:#fffdfb;color:#5a5646;font-size:14px;line-height:1.4;cursor:pointer}
.fpl-kind-grid label:hover{background:#f7f5ea}
.fpl-kind-grid label:has(:checked){background:#edf2e5;border-color:#a9bb9f;color:#2f4a33}
.fpl-kind-grid label>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fpl-kind-grid input[type="checkbox"]{appearance:none;-webkit-appearance:none;position:relative;flex:none;width:17px;height:17px;min-width:17px;min-height:0;margin:0;border:1.5px solid #cbcfc0;border-radius:5px;background:#fff}
.fpl-kind-grid input[type="checkbox"]:checked{background:#425d36;border-color:#425d36}
.fpl-kind-grid input[type="checkbox"]:checked::after{content:"";position:absolute;left:50%;top:47%;width:4px;height:8px;border:solid #fff;border-width:0 2px 2px 0;transform:translate(-50%,-55%) rotate(45deg)}
.fin-app .fpl-kind-panel .fpl-panel-primary{display:block;width:auto;min-width:132px;height:44px;margin:0 0 0 auto;padding:0 30px;background:#425d36;color:#fff;font-size:15px;font-weight:500}
.fin-app .fpl-kind-panel .fpl-panel-primary:hover{background:#3a5430}
/* 2026.11.21 用户反馈：重置/保存一排里一高一矮（通用 ghost 52px、kind 面板 primary 44px），
   改成两颗都 44px、字号一致，整行垂直居中对齐 */
.fin-app .fpl-kind-panel .fpl-panel-ghost{height:44px;font-size:15px}
.fin-app .fpl-kind-panel .fpl-panel-actions{align-items:center}
@media(max-width:720px){
  .fin-app .fpl-toolbar .fpl-tools{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;width:100%}
  .fin-app .fpl-toolbar .fpl-tools>.fpl-pill{width:100%;min-width:0;padding:0 7px;font-size:14px;gap:5px}
  .fin-app .fpl-toolbar .fpl-tools>.fpl-pill .fpl-ic{width:16px;height:16px}
  /* 手机端三等分只有 ~106px：藏掉下拉小箭头，免得「全部时间 / 全部小猫」被截成「全部…」 */
  .fin-app .fpl-toolbar .fpl-tools>.fpl-pill .fpl-caret{display:none}
  .fin-app .fpl-toolbar .fpl-tools>.fpl-pill{padding:0 6px;font-size:13.5px;gap:4px}
  .fin-app .fpl-toolbar .fpl-tools>.fpl-round{width:100%;height:44px;flex:none;border-radius:999px;gap:6px}
  .fin-app .fpl-toolbar .fpl-tools>.fpl-round .fpl-ic{width:16px;height:16px}
  .fpl-round-label{display:inline;font-size:14px;line-height:1}
  .fpl-filter-mobile{display:none}
  .fpl-filter-desktop{display:flex;align-items:center;gap:5px;min-width:0}
  .fpl-filter-desktop>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .fin-app .fpl-toolbar .fpl-types{gap:4px}
  .fpl-kind-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .fin-app .fpl-toolbar .fpl-kind-panel{padding:12px 14px 14px}
}
/* ── 空行 ── */

/* ── 2026.11.04 三轮 · 已付款记录改「点卡片展开 / 再点收回」 ───────────────────
   一、整条记录就是按钮：点标题、点金额、点元信息都能展开/收回，不再依赖右上角小胶囊；
   二、展开区只放凭证盒子 + 处理记录（只读），支付截图留在批次头，避免同一张图逐笔重复；
   三、折叠态与展开态同一条基线：标题 15.5、元信息 12.5、金额 16.5，与小票卡片一致。 */
.reimburse-summary.is-toggle{cursor:pointer;border-radius:12px;margin:-6px -8px 0;padding:6px 8px;transition:background .15s}
.reimburse-summary.is-toggle:hover{background:#faf5ea}
.reimburse-summary.is-toggle:focus-visible{outline:2px solid #9aad94;outline-offset:2px}
.pay-record{border-top:1px solid #f6f2e8}
.pay-batch-head + .pay-record{border-top:0}
.fin-app .pay-record-head{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:12px;width:100%;margin:0;padding:11px 0;border:0;border-radius:12px;background:transparent;font:inherit;text-align:left;cursor:pointer;transition:background .15s}
.fin-app .pay-record-head:hover{background:#fbf8f0}
.pay-record-main{display:grid;gap:3px;min-width:0;justify-items:start}
.pay-record-main strong{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:15.5px;font-weight:600;line-height:1.5;color:#33301f}
.pay-record-side{display:flex;align-items:center;gap:9px;justify-self:end;min-height:23px}
.pay-record-amount{font-size:16.5px;font-weight:600;line-height:1.4;color:#3d3322;font-variant-numeric:tabular-nums;white-space:nowrap}
.pay-record-chevron{font-size:12px;line-height:1;color:#b3aea0;text-align:center}
.pay-record-body{display:grid;gap:12px;padding:2px 0 14px}
.pay-record-history{display:grid;gap:2px;padding:8px 14px;border-radius:12px;background:#f7f2e7}
.pay-record-history p{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:0;padding:5px 0;font-size:13px;line-height:1.6;color:#4a4a3e}
.pay-record-history time{font-size:12.5px;color:#9a9b8e;white-space:nowrap}
@media(max-width:760px){
  .reimburse-summary.is-toggle{margin:-4px -4px 0;padding:4px 4px}
  .fin-app .pay-record-head{gap:10px;padding:11px 0}
  .pay-record-side{gap:6px;min-height:22px}
  .pay-record-amount{font-size:16px}
  .pay-record-body{padding:2px 0 14px}
  .pay-record-history p{flex-direction:column;gap:1px}
}

/* 2026.11.04 夜 · 「记一笔」待审核卡（审核台）：放行/驳回一行一条，金额与操作右对齐 */
/* 2026.11.04 夜 · 审核台里的「账本记账」卡：外框与报销卡同款，只加一条来源色条区分 */
.fin-app .my-card.fin-book-card{position:relative}
.fin-app .my-card.fin-book-card .my-card-body{display:grid;gap:12px;margin:14px 0 0;padding:14px 0 0;border-top:1px solid #f1ebdd}
.fin-app .fin-book-card .my-card-head{cursor:pointer}
.fin-app .fin-book-card-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.fin-app .fin-book-card-actions>button:first-of-type{margin-left:auto}
.fin-app .fin-book-card-note{margin-right:auto;color:#a8503c;font-size:13px}

/* ── 2026.11.05 · 审核台账本卡展开就能看到凭证 ─────────────────────────
   报销卡点开就有图，账本卡点开只有三个按钮、图藏在「详情」里，同一个列表两套行为。
   卡片内的凭证区去掉外框与标题底色（那是抽屉里的版式），缩略图收小一号，免得压过上面的摘要。 */
.fin-app .fin-book-files{margin:0;border:0;border-radius:0;overflow:visible}
.fin-app .fin-book-files .fbd-files-head{padding:0 0 8px;background:transparent;border-bottom:0}
.fin-app .fin-book-files .fbd-files-head h4{font-size:14px}
.fin-app .fin-book-files .fbd-file-group{padding:0 0 10px}
.fin-app .fin-book-files .fbd-file-group + .fbd-file-group{border-top:1px dashed #eee7d6;padding-top:10px}
.fin-app .fin-book-files .fbd-thumbs{grid-template-columns:repeat(auto-fill,minmax(132px,1fr));gap:10px}
.fin-app .fin-book-files .fbd-thumb{border-radius:10px}
.fin-app .fin-book-files .fbd-group-add{padding:4px 10px!important}
.fin-app .fin-book-files .fbd-none{margin:0;font-size:12.5px;color:#9a9b8e}
@media(max-width:720px){.fin-app .fin-book-files .fbd-thumbs{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* 凭证删除：删除 → 确认删除 → 保存 */
.fbd-thumb-del{width:auto;min-width:44px;padding:0 8px!important;border-radius:8px!important}
.fbd-thumb:has([data-delete-status]){outline:2px solid #b4472f;overflow:visible;padding-bottom:66px}
.fbd-thumb [data-delete-status]{position:absolute;bottom:26px;left:5px;right:5px;margin:0;font-size:12px;line-height:16px;color:#a33b2a;background:#fff3ef;z-index:3}
.fbd-delete-cancel{position:absolute;bottom:2px;right:6px;font-size:13px;padding:2px 8px;z-index:3}
.fin-voucher-savebar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;padding:14px;margin-top:14px;background:#fff3df;border-radius:12px;position:sticky;bottom:0;z-index:4}

/* ── 2026.11.05 · 审核操作按钮统一尺寸（不再是一排小字）────────────────────
   问题：处理记录行右侧的「审核通过 / 驳回 / 编辑」被 .reimburse-inline-actions 的
   「透明底、无内边距、13px 棕字」规则吃掉，看起来像三个不起眼的小链接，
   比上面凭证组的「＋新增」还小，主操作「审核通过」也失去实底重量。
   这里给它们统一成 30px 高、13px 字、999px 圆角的胶囊，主按钮保留深绿实底，
   与「＋新增」同高同圆角，形成「一组操作」的整齐感。 */
.fin-app .my-card .reimburse-inline-actions{gap:8px;flex-wrap:wrap;justify-content:flex-end;margin-left:auto}
.fin-app .my-card .reimburse-inline-actions>button{
  min-height:30px;padding:0 14px;border-radius:999px;font-size:13px;line-height:1;
  background:#fffdf8;border:1px solid #d8d2bd;color:#6b6353;box-shadow:none;font-weight:500;
  display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;
}
.fin-app .my-card .reimburse-inline-actions>button:hover{background:#f7faf0;border-color:#a8bb98;color:#42552f}
.fin-app .my-card .reimburse-inline-actions>button.my-card-primary{background:#42552f;border-color:#42552f;color:#fff}
.fin-app .my-card .reimburse-inline-actions>button.my-card-primary:hover{background:#384827;border-color:#384827}
.fin-app .my-card .reimburse-inline-actions>button:disabled{opacity:.55}
/* 「＋新增」与操作按钮同高，否则同一张卡里两种胶囊高度不一致。 */
.fin-app .fin-book-files .fbd-group-add,
.fin-app .my-card .fbd-group-add{min-height:30px;padding:0 14px!important;font-size:13px!important;border-radius:999px!important;display:inline-flex;align-items:center}
@media(max-width:720px){
  .fin-app .my-card .reimburse-inline-actions{width:100%;justify-content:flex-end}
  .fin-app .my-card .reimburse-inline-actions>button{min-height:32px;padding:0 12px;font-size:12.5px}
}

/* 卡片内缩略图与「＋新增」的统一尺寸：报销卡原来是固定 128px 列，账本卡是 minmax(132px,1fr)，
   同宽卡片上两边的图大小差一圈。现在两边都走 minmax(132px,1fr) + 10px 间距。 */
.fin-app .my-card .entry-material .fbd-thumbs,
.fin-app .fin-book-files .fbd-thumbs{grid-template-columns:repeat(auto-fill,minmax(132px,1fr));gap:10px}
.fin-app .my-card .entry-material{padding:12px 14px}
@media(max-width:720px){
  .fin-app .my-card .entry-material .fbd-thumbs,
  .fin-app .fin-book-files .fbd-thumbs{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* ── 2026.11.05 · 修改前后对照重排（时间改北京时间、字段不再被挤成竖排）──────
   旧版是「修改项 / 修改前 / 修改后」三列表格：抽屉只有 640px，「私密凭证」被挤成
   「私密凭 证」两行，每份凭证又是一个大按钮，0 份与按钮叠在一起，整块看着像乱码。
   改成「字段名独占一行 + 前/后两栏」，凭证按钮收成小胶囊，窄屏自动上下排。 */
.wb-drawer .fin-diff-det>summary,.fin-app .fin-diff-det>summary{font-size:13px;color:#8a8e78;cursor:pointer;margin:14px 0 0}
.fin-diff{margin:10px 0 0;padding-top:10px;border-top:1px solid #f0ece1}
.fin-diff>header{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px;margin:0 0 8px;font-size:12.5px;line-height:1.7;color:#8a8e78}
.fin-diff>header time{font-variant-numeric:tabular-nums;color:#6f7561}
.fin-diff-row{padding:9px 0}
.fin-diff-row+.fin-diff-row{border-top:1px dashed #f0ece1}
.fin-diff-row h5{margin:0 0 6px;font-size:13px;font-weight:600;line-height:1.6;color:#6b6353;text-align:left;letter-spacing:.02em}
.fin-diff-pair{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.fin-diff-side{min-width:0;background:#faf8f2;border-radius:10px;padding:8px 10px}
.fin-diff-side.is-after{background:#f4f7ec}
.fin-diff-side em{display:block;font-style:normal;font-size:11.5px;line-height:1.6;color:#9a9c8c;margin-bottom:3px}
.wb-drawer .fin-diff-text,.fin-app .fin-diff-text{display:block;font-size:13.5px;line-height:1.55;color:#3c4436;overflow-wrap:anywhere;white-space:pre-wrap}
.wb-drawer .fin-diff-none,.fin-app .fin-diff-none{display:inline;font-size:12.5px;line-height:1.6;color:#9a9b8e;margin:0}
.wb-drawer p.fin-diff-none{display:block;margin:6px 0 0}
.fin-diff-files{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.fin-diff-count{font-size:12px;line-height:1.6;color:#7d8472;white-space:nowrap}
.wb-drawer .fin-diff-files button,.fin-app .fin-diff-files button{
  min-width:0;min-height:0;width:auto;padding:4px 10px;border-radius:999px;
  font-size:12px;line-height:1.5;background:#fffdf8;border:1px solid #ded7c3;color:#6b6353;
  display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;box-shadow:none;
}
.wb-drawer .fin-diff-files button:hover,.fin-app .fin-diff-files button:hover{background:#f7faf0;border-color:#a8bb98;color:#42552f}
@media(max-width:640px){
  .fin-diff-pair{grid-template-columns:1fr}
  .fin-diff-side{padding:7px 9px}
}

/* ── 2026.11.05 · 审核/付款三层卡定稿（收起卡 · 展开卡 · 编辑卡）────────────────
   用户拍板：① 收起卡不放图，最精简：金额 + 类型 + 状态（右），下两行「用途 / 日期·经办人·小猫」；
   ② 展开卡同理，多了凭证网格与操作；③ 编辑卡要全面且紧凑：两列网格 + 同页凭证区。
   三张卡高度一致靠两件事：摘要固定三段、缩略图固定方格。 */
.my-card-head.fin-sum{display:grid;gap:3px;align-items:stretch;padding:12px 0}
.fin-sum-top{display:flex;align-items:center;gap:8px;min-width:0}
.fin-sum-amount{font-size:20px;line-height:1.35;font-weight:600;color:#2f3a28;flex-shrink:0;letter-spacing:-.01em}
.fin-sum-kind{font-size:11.5px;line-height:1.7;padding:0 8px;border-radius:999px;background:#f1f2e8;color:#5d6650;white-space:nowrap}
.fin-sum-state{margin-left:auto;font-size:12px;line-height:1.7;padding:0 10px;border-radius:999px;background:#f1f2e8;color:#5b6350;white-space:nowrap}
.fin-sum-state[data-state="pending"]{background:#fdf1dc;color:#8a5a12}
.fin-sum-state[data-state="approved"]{background:#eaf3de;color:#3b5310}
.fin-sum-state[data-state="paid"],.fin-sum-state[data-state="posted"]{background:#e6f1e2;color:#2f5a2a}
.fin-sum-state[data-state="rejected"],.fin-sum-state[data-state="returned"],.fin-sum-state[data-state="void"]{background:#fbeae4;color:#a8503c}
.fin-sum-purpose{font-size:15px;font-weight:500;line-height:1.5;color:#34342f;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fin-sum-meta{font-size:12.5px;line-height:1.6;color:#7b8472;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.my-card-head.fin-sum .my-card-chevron{font-size:15px;line-height:1.2;margin-left:6px;color:#9aa08c}

/* 编辑卡：两列网格 + 紧凑间距（原来每段各占一行、间距 60px，整张卡非常长）。 */
.fbd-editform{max-width:none;gap:10px}
.fbd-editform label{gap:5px;font-size:12.5px;color:#6f7561}
.fbd-editform input,.fbd-editform select{padding:9px 11px;border-radius:9px;font-size:14px}
.fbd-editform .fin-cat-select summary{padding:9px 11px}
.fbd-grid2{display:grid;grid-template-columns:1fr 1fr;gap:10px;min-width:0}
.fbd-grid2>label{min-width:0}
.fbd-edit-files-sec{border-top:1px dashed #e8e2d0;padding-top:12px;margin-top:4px}
.fbd-edit-files-head{display:flex;align-items:baseline;gap:8px;margin-bottom:8px}
.fbd-edit-files-head h4{margin:0;font-size:13.5px;color:#3c3524}
.fbd-edit-files-head small{font-size:11.5px;color:#9a9b8e}
.fbd-edit-meta{margin:0;font-size:11.5px;line-height:1.7;color:#9a9b8e;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* 凭证统一 88px 小方格（手机 76px），点图进大图；角度统一直角 10px 圆角。 */
.fin-app .my-card .entry-material .fbd-thumbs,
.fin-app .fin-book-files .fbd-thumbs,
.fin-app .fbd-edit-files-sec .fbd-thumbs{grid-template-columns:repeat(auto-fill,minmax(88px,1fr));gap:10px}
.fin-app .my-card .entry-material .fbd-thumb-open,
.fin-app .fin-book-files .fbd-thumb-open,
.fin-app .fbd-edit-files-sec .fbd-thumb-open{aspect-ratio:1}
.fin-app .fbd-edit-files-sec .fbd-thumbs{grid-template-columns:repeat(auto-fill,minmax(88px,1fr))}

/* 手机：卡内边距与块间距加大（用户反馈「间距太窄」），缩略图缩小到 76px 一排放 4 张。 */
@media(max-width:720px){
  .fin-app .my-card{padding:10px 16px;margin-bottom:14px}
  .my-card-head.fin-sum{padding:12px 0;gap:4px}
  .fin-sum-amount{font-size:19px}
  .fin-sum-purpose{font-size:14.5px}
  .fin-app .my-card .my-card-body{gap:16px;margin-top:14px;padding-top:14px}
  .fin-app .my-card .entry-material{padding:14px 16px}
  .fin-app .my-card .entry-material .fbd-thumbs,
  .fin-app .fin-book-files .fbd-thumbs,
  .fin-app .fbd-edit-files-sec .fbd-thumbs{grid-template-columns:repeat(auto-fill,minmax(76px,1fr));gap:10px}
  .fbd-grid2{gap:8px}
  .fbd-editform input,.fbd-editform select{font-size:16px;padding:10px 11px}
}

/* 凭证角标收小（2026.11.05）：88px 方格上原来的「删除」胶囊有 44px 宽，把图盖掉一半。
   现在删除缩成右上角 20px 圆形 ✕、打码缩成右下角小胶囊，靠伪元素把可点区域撑到 40px，
   视觉小、手点得住。 */
.fin-app .fbd-thumb-del{width:20px!important;height:20px!important;min-width:0!important;padding:0!important;
  top:4px;right:4px;border-radius:50%!important;font-size:11px!important;line-height:20px!important;
  background:rgba(28,26,20,.66)!important;color:#fff!important;border:0!important;z-index:3}
.fin-app .fbd-thumb-del::after{content:"";position:absolute;inset:-10px;border-radius:50%}
.fin-app .fbd-thumb-del:hover{background:#b4472f!important}
.fin-app .fbd-thumb-edit{right:4px;bottom:4px;padding:1px 7px!important;border-radius:999px!important;
  font-size:10.5px!important;line-height:1.6!important;background:rgba(28,26,20,.66)!important;color:#fff!important;border:0!important;z-index:3}
.fin-app .fbd-thumb-edit::after{content:"";position:absolute;inset:-8px}
.fin-app .fbd-thumb-edit:hover{background:rgba(28,26,20,.88)!important}

/* ── 2026.11.05 · 三层卡头部定稿：三档字号 18/14/12，三行等距，逐行对称 ─────────
   用户拍板：全卡只允许 18（金额）/ 14（用途、按钮）/ 12（其余全部）三个字号；
   第1行 金额+类目标签 ↔ 状态徽章+箭头；第2行 用途 ↔ 小猫胶囊；第3行 📅日期 👤提交人。
   徽章/胶囊与所在行文字光学居中（align-items:center + 行高补偿），三行基线等距。 */
.fin-app{
  --fin-fs-lg:18px;
  --fin-fs-md:14px;
  --fin-fs-sm:12px;
}
.fin-app .my-card-head.fin-sum{display:grid;row-gap:13px;padding:15px 0;text-align:left}
.fin-app .reimburse-summary.fin-sum-open{display:grid;row-gap:13px;cursor:pointer}
.fin-sum-top,.fin-sum-mid{display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0}
.fin-sum-lead,.fin-sum-side,.fin-sum-cats{display:flex;align-items:center;gap:8px;min-width:0}
.fin-sum-side,.fin-sum-cats{flex-shrink:0}
.fin-app .fin-sum-amount{font-size:var(--fin-fs-lg);line-height:1.3;font-weight:600;color:#2f3a28;letter-spacing:-.01em;font-variant-numeric:tabular-nums}
.fin-app .fin-sum-kind,.fin-app .fin-sum-state{font-size:var(--fin-fs-sm);line-height:1;font-weight:400;padding:5px 10px;border-radius:999px;white-space:nowrap}
.fin-app .fin-sum-kind{background:#f5efdf;color:#8d6a47}
.fin-app .fin-sum-state{background:#f1f2e8;color:#5b6350}
.fin-app .fin-sum-purpose{font-size:var(--fin-fs-md);line-height:1.5;font-weight:500;color:#34342f;flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0}
.fin-app .fin-sum-cats{max-width:52%;overflow:hidden}
.fin-app .fin-sum-cats .fpl-cat-chip{background:#fbf3e4;color:#b0722f;gap:5px;padding:2px 10px 2px 2px;font-size:var(--fin-fs-sm);max-width:100%}
.fin-app .fin-sum-cats .fpl-cat-av{width:20px;height:20px;min-width:20px;border-radius:50%;object-fit:cover}
.fin-sum-catcount{font-size:var(--fin-fs-sm);line-height:1.5;color:#b0722f;white-space:nowrap}
.fin-app .fin-sum-nocat{font-size:var(--fin-fs-sm);line-height:1.5;color:#9a9b8e;white-space:nowrap}
.fin-sum-foot{min-width:0}
.fin-app .fin-sum-meta{display:inline-flex;align-items:center;gap:6px;font-size:var(--fin-fs-sm);line-height:1.5;color:#888780;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0}
.fin-app .fin-sum-meta svg{width:13px;height:13px;flex-shrink:0}
.fin-app .my-card-chevron{font-size:var(--fin-fs-sm);line-height:1.2;color:#9aa08c;white-space:nowrap}

/* 处理记录时间线：每条记录前一个圆点（提交浅绿、付款深绿统一浅绿即可，不区分色阶以守住两栏色板）。 */
.fin-app .my-history>div p,.fin-app .fbd-timeline p{position:relative;padding-left:14px;font-size:var(--fin-fs-sm);line-height:1.7;margin:6px 0}
.fin-app .my-history>div p::before,.fin-app .fbd-timeline p::before{content:"";position:absolute;left:0;top:.6em;width:6px;height:6px;border-radius:50%;background:#97c459}

/* 手机：三行结构不变，行距略收紧、标签字号仍守 12px；金额 17px 防溢出。 */
@media(max-width:720px){
  .fin-app .my-card-head.fin-sum{row-gap:11px;padding:14px 0}
  .fin-app .reimburse-summary.fin-sum-open{row-gap:11px}
  .fin-app .fin-sum-amount{font-size:17px}
  .fin-app .fin-sum-kind,.fin-app .fin-sum-state{padding:4px 9px}
  .fin-app .fin-sum-cats{max-width:46%}
}

/* 2026.11.05 修补：① 徽章底色不许被基础规则洗掉（卡片本身是浅绿底，米白胶囊会看不见）；
   ② 箭头统一 12px 且去掉旧的 margin-left:6px（原来贴到卡片右边缘像被切掉）；
   ③ 类目/状态胶囊加一层极淡描边，保证在浅绿卡面上仍有边界。 */
.fin-app .fin-sum-kind,.fin-app .fin-sum-state{border:1px solid rgba(60,53,36,.05)}
.fin-app .fin-sum-state[data-state="pending"]{background:#fcebc8;color:#8a5a12}
.fin-app .fin-sum-state[data-state="approved"]{background:#eaf3de;color:#3b5310}
.fin-app .fin-sum-state[data-state="paid"],.fin-app .fin-sum-state[data-state="posted"]{background:#e6f1e2;color:#2f5a2a}
.fin-app .fin-sum-state[data-state="rejected"],.fin-app .fin-sum-state[data-state="returned"],.fin-app .fin-sum-state[data-state="void"]{background:#fbeae4;color:#a8503c}
.fin-app .my-card-head .my-card-chevron,.fin-app .reimburse-summary .my-card-chevron{margin-left:0;font-size:var(--fin-fs-sm);line-height:1.2;width:auto;color:#8f967f;text-align:center}

/* 2026.11.05 修补二：三行固定高度保证节奏一致；箭头改 SVG（12px 字符箭头太细）。 */
.fin-app .fin-sum-top{min-height:24px}
.fin-app .fin-sum-mid{min-height:22px}
.fin-app .fin-sum-foot{min-height:18px}
.fin-app .my-card-chevron{display:inline-flex;align-items:center;gap:3px;flex-shrink:0}
.fin-app .my-card-chevron svg{width:12px;height:12px;display:block}
.fin-app .my-card-chevron svg.is-up{transform:rotate(180deg)}

/* 2026.11.05 修补三：编辑卡「关联小猫」收起态显示头像胶囊；保存修改改成主按钮实底（原来两个按钮一样淡）。 */
.fin-cat-select>summary{display:flex;align-items:center;gap:8px;font-size:var(--fin-fs-sm);color:#7b8472}
.fin-cat-select>summary [data-cat-selection-label]{display:inline-flex;align-items:center;min-width:0}
.fin-cat-select .fpl-cat-chip{background:#fbf3e4;color:#b0722f;font-size:var(--fin-fs-sm);padding:2px 10px 2px 2px}
.fin-cat-select .fpl-cat-av{width:20px;height:20px;min-width:20px;border-radius:50%;object-fit:cover}
.fin-app .fin-cat-none{font-size:var(--fin-fs-sm);color:#9a9b8e}
.fin-drawer .fbd-form-actions button[type="submit"]{background:#3b6d11;border-color:#3b6d11;color:#fff}
.fin-drawer .fbd-form-actions button[type="submit"]:hover{background:#335c0e;border-color:#335c0e}
.fin-app .fbd-form-actions button[type="submit"]{background:#3b6d11;border-color:#3b6d11;color:#fff}
.fin-app .fbd-form-actions button[type="submit"]:hover{background:#335c0e;border-color:#335c0e}

/* 2026.11.05 修补四：猫胶囊与类目/状态徽章统一 22px 高（头像 16px），并补一层极淡描边——
   否则奶油底贴在浅绿卡面上几乎看不出胶囊形状。 */
.fin-app .fin-sum-cats .fpl-cat-chip{border:1px solid rgba(60,53,36,.05);padding:3px 9px 3px 3px;min-height:22px;box-sizing:border-box}
.fin-app .fin-sum-cats .fpl-cat-av{width:16px;height:16px;min-width:16px}
.fin-cat-select .fpl-cat-av{width:16px;height:16px;min-width:16px}

/* 2026.11.05 修补五：猫胶囊奶油底提到 #f6ecd9（原 #fbf3e4 在白卡上几乎看不出边界），描边同步加深。 */
.fin-app .fin-sum-cats .fpl-cat-chip,.fin-cat-select .fpl-cat-chip{background:#f6ecd9;border:1px solid rgba(96,78,44,.14);color:#a86a26}

/* 2026.11.05 修补六：收起态与展开态外壳统一（原来展开是米白 20px 圆角、收起是白卡 18px，点开瞬间跳色）。 */
.fin-app .my-card:not(:has(.reimburse-summary)){background:#fffdf9;border:1px solid #ece3d3;border-radius:20px;padding:18px 20px}

/* 2026.11.05 修补七（关键）：收起卡的头部是 <button>，被全局 `.fin-app button{background:#edf3e6}` 刷成了绿底，
   整块卡面因此发绿、奶油胶囊也读不出边界。摘要按钮必须完全透明、无边框、无内距，只做点击区。 */
.fin-app .my-card-head.fin-sum,
.fin-app .my-card-head.fin-sum:hover,
.fin-app .my-card-head.fin-sum:active{background:transparent!important;border:0!important;box-shadow:none!important;border-radius:0;margin:0;padding:15px 0;color:inherit}
.fin-app .my-card-head.fin-sum:focus-visible{outline:2px solid #9aad94;outline-offset:4px}
/* 2026.11.05 修补八：审核台「已通过/已退回」栏的卡片没有展开内容，头改成静态 div（is-static）——
   不许再出现手型光标和假箭头，否则用户会以为点开有东西（实际展开收起一模一样）。 */
.fin-app .my-card-head.fin-sum.is-static{cursor:default}

/* ── 2026.11.05 · 处理记录重排（用户反馈「编辑记录那里有点乱」）────────────────
   旧版每条占两行（动作一行、时间·人在下一行），一屏堆七八条，读起来像系统日志。
   现在一条一行：时间 → 动作 · 原因 → 操作人；最新在上；超过 5 条折进「更早的 N 条」。 */
.fin-app .my-history>div p,
.fin-app .fbd-timeline p{
  position:static;display:grid;grid-template-columns:auto minmax(0,1fr) auto;
  align-items:baseline;column-gap:10px;padding:7px 0;margin:0;
  font-size:var(--fin-fs-sm);line-height:1.6;
}
.fin-app .my-history>div p::before,.fin-app .fbd-timeline p::before{content:none;display:none}
.fin-app .my-history>div p+p,.fin-app .fbd-timeline p+p{border-top:1px solid rgba(60,53,36,.07)}
.fin-app .my-history>div p>time,.fin-app .fbd-timeline p>time{font-variant-numeric:tabular-nums;color:#9a9b8e;white-space:nowrap}
.fin-app .fin-hist-act{display:flex;align-items:baseline;gap:6px;min-width:0}
.fin-app .fin-hist-act>b{font-weight:500;color:#4e5a40;white-space:nowrap}
.fin-app .fin-hist-act>i{font-style:normal;color:#7b8472;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fin-app .my-history>div p>em,.fin-app .fbd-timeline p>em{font-style:normal;color:#a3a495;white-space:nowrap;text-align:right}
.fin-app .fin-hist-more>summary{cursor:pointer;list-style:none;padding:8px 0 2px;font-size:var(--fin-fs-sm);color:#8a8e78}
.fin-app .fin-hist-more>summary::-webkit-details-marker{display:none}
.fin-app .fin-hist-more>summary::after{content:"⌄";margin-left:5px;display:inline-block}
.fin-app .fin-hist-more[open]>summary::after{transform:rotate(180deg)}
.fin-app .entry-paid-hint{margin:10px 0 0;font-size:var(--fin-fs-sm);line-height:1.65;color:#9a9b8e}
@media(max-width:720px){
  .fin-app .my-history>div p,.fin-app .fbd-timeline p{column-gap:8px;padding:8px 0}
}

/* 处理记录里「动作 · 原因」之间补一个分隔点，两个词直接挨着读不出层级（2026.11.05）。 */
.fin-app .fin-hist-act>i::before{content:"·";margin-right:6px;color:#b3b4a6}

/* ── 2026.11.14 · 处理记录同类合并（A+C 方案）────────────────────────────
   相邻「同人+同动作+同原因」的连续保存合并成一条，×N 徽标点开看每次的具体时间。
   徽标塞在 .fin-hist-act 内、第三列里，不破坏 fin-history-row 的三列网格。
   2026.11.12 孪生条款适用：summary 是交互控件，字号 ≥16px 防iOS聚焦放大不适用（details/summary 不触发放大），
   但仍按可点热区 ≥24px 做内边距。 */
.fin-app .fin-hist-times,.wb-drawer .fin-hist-times,.fin-history-row .fin-hist-times{display:inline-block;margin-left:6px;vertical-align:baseline}
.fin-app .fin-hist-times>summary,.wb-drawer .fin-hist-times>summary,.fin-history-row .fin-hist-times>summary{display:inline-block;cursor:pointer;list-style:none;font-size:12px;line-height:20px;color:#7b8472;background:#f1efe8;border-radius:999px;padding:1px 9px}
.fin-app .fin-hist-times>summary::-webkit-details-marker,.wb-drawer .fin-hist-times>summary::-webkit-details-marker,.fin-history-row .fin-hist-times>summary::-webkit-details-marker{display:none}
.fin-app .fin-hist-times[open]>summary,.wb-drawer .fin-hist-times[open]>summary,.fin-history-row .fin-hist-times[open]>summary{color:#fff;background:#8a8e78}
.fin-app .fin-hist-times>span,.wb-drawer .fin-hist-times>span,.fin-history-row .fin-hist-times>span{display:block;font-size:12px;line-height:1.6;color:#9a9b8e;padding:2px 0 0 2px;font-variant-numeric:tabular-nums}

/* ── 2026.11.05 · 「关联小猫」收起态（唯一权威定义；别再在别处复写这一套值）──────
   三段式：左字段名 ｜ 值（猫胶囊 / 公共费用）｜ 右 chevron，原生 ▸ 由自绘 SVG 取代。
   2026.11.05 二轮（用户截图「这一行比其他行矮一截」）：它原来是一枚浅米色小卡片
   （#e7dfd0 / 12px 圆角 / 42px / 12px 标签），比相邻的 input（#c8cebd / 10px / 46px / 15px 字段名）
   整整小一号。现在长得跟输入框一模一样：同描边、同圆角、同高度、同字段名字号。 */
.fin-cat-select{border:1px solid #c8cebd;border-radius:10px;background:#fff;margin:0}
.fin-cat-select>summary{
  display:flex;align-items:center;gap:8px;min-height:46px;box-sizing:border-box;
  padding:0 12px;margin:0;cursor:pointer;list-style:none;
  font-size:15px;line-height:1.5;color:#59624d;
}
.fin-cat-select>summary::-webkit-details-marker{display:none}
.fin-cat-select>summary::marker{content:""}
.fin-cat-select>summary::after{content:none;display:none}
.fin-cat-select>summary:focus-visible{outline:2px solid #9aad94;outline-offset:2px}
.fin-cat-select .fin-cat-label{flex:0 0 auto;color:#59624d;font-size:15px;letter-spacing:0}
.fin-cat-select>summary [data-cat-selection-label]{display:inline-flex;align-items:center;min-width:0;flex:1 1 auto;overflow:hidden}
.fin-cat-select>summary .fin-cat-none{color:#8a8f82;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fin-cat-select .fin-cat-chev{flex:0 0 auto;display:inline-flex;align-items:center;margin-left:auto;color:#a8ac9c;transition:transform .15s ease}
.fin-cat-select .fin-cat-chev svg{width:12px;height:12px;display:block}
.fin-cat-select[open] .fin-cat-chev{transform:rotate(180deg)}
/* 胶囊在收起态要够「实」：米黄底 + 轻描边 + 16px 头像，与卡片里的猫胶囊同一套观感。 */
.fin-cat-select>summary .fpl-cat-chip{
  background:#f6ecd9;border:1px solid rgba(96,78,44,.14);color:#a86a26;
  font-size:var(--fin-fs-sm);padding:2px 9px 2px 2px;gap:5px;max-width:100%;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.fin-cat-select>summary .fpl-cat-av{width:16px;height:16px;min-width:16px;border-radius:50%;object-fit:cover}
/* 「新增一笔报销」那套表单的输入框是胶囊形（999px），这一行也得跟着胶囊，否则只有它一个方角。 */
/* 2026.11.05 行高统一：单行控件一律 50px 定高（text/number/date/select/关联小猫），不再各自撑高。 */
/* 类目下拉的前置图标（2026.11.14）：明细表格和审核卡用的是 PUB_KINDS 里的那几枚 SVG，
   原生 <select> 的 option 放不进 SVG，所以把同一枚图标叠在 select 左侧，值变即换（JS 见 paintKindIcons）。
   图标高度取所在容器的输入框高度，因此胶囊表单、方角编辑卡都能和同列 input 逐像素对齐。 */
.fin-app label:has(>select[name="category"]){position:relative}
.fin-app label:has(>select[name="category"])>select{padding-left:44px}
.fin-app .fin-kind-ic{position:absolute;left:16px;bottom:0;display:flex;align-items:center;justify-content:center;width:18px;height:46px;pointer-events:none}
.fin-app .fin-kind-ic svg{display:block;width:18px;height:18px}
@media(max-width:720px){
  .fin-app .fin-kind-ic{left:14px;height:44px}
  .fin-app label:has(>select[name="category"])>select{padding-left:40px}
}
/* 编辑卡 / 抽屉里的输入框是 36px 方角，图标跟着收一号 */
.fin-app .fbd-editform label:has(>select[name="category"])>select{padding-left:36px}
.fin-app .fbd-editform .fin-kind-ic{left:12px;width:16px;height:36px}
.fin-app .fbd-editform .fin-kind-ic svg{width:16px;height:16px}
.fin-app form:is([data-fin-form="entry"],[data-fin-form="income"]) .fin-cat-select,
.fin-app form:is([data-fin-form="entry"],[data-fin-form="income"]) .fin-cat-select>summary{border-radius:999px}
.fin-app form:is([data-fin-form="entry"],[data-fin-form="income"]) .fin-cat-select>summary{min-height:50px;align-items:center;padding:0 14px}
/* 编辑卡：输入框是 9px 圆角 / 14px / padding 9px 11px（见 .fbd-editform input），
   关联小猫这一行必须同款——原来给它单独设 46px 定高，结果比同列输入框高出 12px（2026.11.14 用户查全站一致性时发现）。
   🔴 2026.11.14 五轮：改成「input 与 summary 共用一个高度变量」。之前 input 靠 padding 自然撑出 36/40，
   summary 靠 padding+行高撑出 37/38 —— 差 1~2px 且方向相反（编辑卡桌面高 1、抽屉手机矮 2），
   三个数值各写各的，改哪个都会再错位。现在只有 --fbd-h 一个数，改高度只动它。 */
.fbd-editform,.wb-drawer{--fbd-h:36px}
@media(max-width:720px){.fbd-editform,.wb-drawer{--fbd-h:40px}}
.fbd-editform input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.fbd-editform select{height:var(--fbd-h);box-sizing:border-box}
.fin-app .fbd-editform .fin-cat-select{border-radius:9px}
.fin-app .fbd-editform .fin-field .fin-cat-select>summary{height:var(--fbd-h);box-sizing:border-box;padding:0 11px;min-height:0;font-size:14px;line-height:1.2;align-items:center}
/* 编辑卡里「公共费用（不关联小猫）」这行字也跟 input 同字号；16px 会把这一行撑到 39px，比输入框高 3px。 */
.fin-app .fbd-editform .fin-field .fin-cat-none{font-size:14px}
@media(max-width:720px){
  .fin-cat-select>summary{gap:8px;padding:0 10px}
  .fin-app .fbd-editform .fin-field .fin-cat-select>summary{height:var(--fbd-h);padding:0 11px;font-size:16px}
  .fin-app .fbd-editform .fin-field .fin-cat-none{font-size:16px}
}

/* ── 2026.11.05 · 抽屉里的「关联小猫」必须与「记一笔」一致（用户截图：大 V 箭头 + 原生三角 + 高度失控）
   根因：draw() 里写成 `shell(body) + drawerView()`，抽屉是 .fin-app 的**兄弟节点**，
   所有 `.fin-app .xxx` 规则都够不着它。上面已把 .fin-cat-select / .entry-cat-* 全部改成无前缀，
   这里再压掉 .wb-drawer 自带的通用规则（details 11px / margin-top:15px / label 竖排 grid）。 */
.wb-drawer .fin-cat-select{margin:0;border-color:#d8dccc;border-radius:9px}
/* 抽屉里的输入框同样走 .fbd-editform input（14px 字 / 9px 11px 内边距），小猫这一行跟齐（2026.11.14）。
   高度读 --fbd-h（与 input 同一个变量），不再靠 padding 凑——凑出来桌面矮 1px、手机矮 2px。 */
.wb-drawer .fin-cat-select>summary{display:flex;align-items:center;gap:8px;height:var(--fbd-h);box-sizing:border-box;min-height:0;padding:0 11px;font-size:14px;line-height:1.2;color:#59624d;list-style:none}
@media(max-width:720px){.wb-drawer .fin-cat-select>summary{height:var(--fbd-h);padding:0 11px;font-size:16px;line-height:1.2}}
.wb-drawer .fin-cat-select>summary .fin-cat-label{flex:0 0 auto;font-size:16px;color:#59624d}
.wb-drawer .fin-cat-select>summary .fin-cat-chev b,
.wb-drawer .fin-cat-select>summary .fin-cat-chev svg{width:12px;height:12px}
/* 展开区不再另写一套：.entry-cat-* 的通用规则（无前缀）已经作用到抽屉，两处因此长得完全一样。
   这里只压掉 .wb-drawer 的 details/legend 继承值，避免 11px 小字；内边距与表单同款 0 8px 8px。 */
.wb-drawer .fin-cat-select .entry-cat-picker{padding:0 8px 8px;margin:0;border:0;min-width:0}
.wb-drawer .fin-cat-select .entry-cat-picker>legend{padding:0;margin:0 0 4px;font-size:12px;color:#8a8f82}

/* ── 2026.11.05 手机端收口（凭证区字号四档 / 凭证缩略图要往右拉）
   「关联小猫」那一条已在上面的权威定义里改完，这里不再复写。 */

/* ② 凭证区只留两档字号（14 / 13），层级改用颜色：标题深、分组中性、操作橙、说明灰。
   原来是 18 / 15 / 14 / 13 四档，同一块里字数越少字号越大，看着就散。 */
.fin-app .fbd-edit-files>h3,.fin-workbench .fbd-edit-files>h3{font-size:13px;font-weight:600;color:#34342f;margin:0 0 8px}
.fin-app .fbd-edit-files .fbd-file-col>h4,.fin-workbench .fbd-edit-files .fbd-file-col>h4,
.fin-app .fbd-edit-files-sec .fbd-edit-files-head h4{font-size:13px;font-weight:600;color:#6b6455;margin:0 0 6px}
.fin-app .fin-drop b,.fin-workbench .fin-drop b{font-size:14px;font-weight:500;color:#a86a26;line-height:1.5}
.fin-app .fin-drop-hint,.fin-workbench .fin-drop-hint{font-size:13px;line-height:1.7;color:#8a927f}
.fin-app .fin-drop-note,.fin-app .fin-panel small.fin-drop-note,.fin-workbench .fin-panel small.fin-drop-note{font-size:13px;line-height:1.6;color:#a9ae9e;margin-top:2px}
.fin-app .fin-drop{padding:18px 12px;gap:5px}
/* 左右两列上传框必须等高：右侧说明多一行时，左边的框不会矮一截。 */
.fbd-file-col>.fin-drop,.fbd-file-col>.fin-file-btn{flex:1 1 auto}

/* ③ 凭证缩略图把页面撑宽（截图里第三张要往右拉）。
   根因：摘要第三行「日期 + 人」是 nowrap 的 flex 子项，默认 min-width:auto 不收缩，
   这一行把整张卡撑到 500+，里面的缩略图栅格就跟着变宽、溢出视口。先让这一行能收，再给链路上每一层 min-width:0。 */
.fin-app .fin-sum-foot,.fin-app .fin-sum-meta{min-width:0}
.fin-app .fin-sum-meta{flex:1 1 auto;overflow:hidden;text-overflow:ellipsis}
.fin-app .my-card,.fin-app .my-card-body,.fin-app .entry-voucher-editor,.fin-app .entry-material,
.fin-app .entry-material-group,.fin-app .entry-material .fbd-thumbs{min-width:0;max-width:100%}
@media(max-width:720px){
  /* 手机端凭证固定两列（第 3 张换行），不再按容器宽度 auto-fill 出三列。 */
  .fin-app .entry-material .fbd-thumbs,.fin-app .my-card .entry-material .fbd-thumbs{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px}
  /* 方形缩略图比例沿用既有设计（3055 行那段），这里只保证宽度不溢出。 */
  .fin-app .entry-material .fbd-thumb{width:100%;min-width:0}
  .fin-app .fin-sum-meta{font-size:12px}
}

/* ═══════════════════════════════════════════════════════════════════════════
   2026.11.05 · 「处理付款」按用户理想态重做（列表 + 单笔详情）
   规则：全页只有四档字号 —— 20（页标题/金额/输入值）、16（正文/页签/按钮）、
   13（辅助说明）、12（状态徽章）。层级靠「深/中/浅」三档灰与绿、橙两个语义色，
   不再靠字号大小堆叠，所以整页看下去不会忽大忽小。
   ═══════════════════════════════════════════════════════════════════════════ */
.fin-app .fp-board,.fin-app .fp-detail,.fin-app .fp-editcard{
  --fp-xl:20px;--fp-md:16px;--fp-sm:13px;--fp-xs:12px;
  --fp-ink:#23231f;--fp-ink-2:#4a4a44;--fp-mute:#8a8a82;--fp-faint:#b3b3ab;
  --fp-line:#e6e5dd;--fp-line-2:#edede6;--fp-green:#526c4c;
  background:#fff;border:1px solid var(--fp-line);border-radius:20px;padding:24px;
}
/* ── 列表页：标题 + 页签 + 逐笔卡片 + 底部合计 ── */
/* 2026.11.05 二轮（用户）：页签与搜索升到页面层，与「审核报销」同一个绿胶囊列表头，
   所以 fp-board 只承担字号/颜色变量，不再画一张白卡；每笔自己是一张卡。 */
.fin-app .fp-board{padding:0;background:none;border:0;border-radius:0}
.fin-app .fp-head{display:block}
.fin-app .fp-head-row{display:flex;align-items:center;justify-content:space-between;gap:16px}
.fin-app .fp-title{font-size:var(--fp-xl);font-weight:700;color:var(--fp-ink);letter-spacing:.2px;margin:0;line-height:1.3}
.fin-app .fp-head-row+.fp-head-row{margin-top:18px}
.fin-app .fp-icon{
  display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;
  width:36px;height:36px;padding:0!important;margin:0!important;
  border:0!important;background:transparent!important;color:#55554e!important;border-radius:50%!important;
}
.fin-app .fp-icon svg{width:18px;height:18px;display:block}
.fin-app .fp-icon:hover{background:#f4f4ee!important}
.fin-app .fp-icon[aria-pressed="true"]{background:#efefe7!important;color:var(--fp-ink)!important}
.fin-app .fp-tabs{display:flex;align-items:center;gap:28px}
.fin-app .fp-tabs button{
  padding:0!important;margin:0!important;border:0!important;background:none!important;
  font-size:var(--fp-md)!important;line-height:1.6;color:var(--fp-mute)!important;font-weight:400;
}
.fin-app .fp-tabs button[aria-pressed="true"]{color:var(--fp-ink)!important;font-weight:600}
.fin-app .fp-tabs em{font-style:normal;font-size:var(--fp-md);color:inherit;opacity:.85}
.fin-app .fp-searchbar{display:flex;align-items:center;gap:10px;margin-top:14px}
.fin-app .fp-searchbar input{
  flex:1;height:44px;padding:0 14px;font-size:var(--fp-md);border:1px solid var(--fp-line);
  border-radius:12px;background:#fbfbf7;color:var(--fp-ink);
}
.fin-app .fp-search-close{
  padding:0 4px!important;margin:0!important;border:0!important;background:none!important;
  font-size:var(--fp-sm)!important;color:var(--fp-mute)!important;
}
.fin-app .fp-rows{display:grid;gap:12px;margin:20px 0 8px}
/* 逐笔卡片：三行两列。左列（勾选 + 用途/来源），右列（金额/徽章/动作）逐行同基线，
   所以第 2 行永远是「谁·哪天·哪只猫」对「收款码齐全」，第 3 行只留动作贴右边。 */
.fin-app .fp-row{
  display:grid;grid-template-columns:auto minmax(0,1fr) auto;grid-template-rows:auto auto auto;
  column-gap:12px;row-gap:11px;align-items:center;
  padding:18px 20px;border:1px solid var(--fp-line-2);border-radius:14px;background:#fff;
  transition:border-color .15s ease,box-shadow .15s ease;
}
.fin-app .fp-row:hover{border-color:#dcdcd2;box-shadow:0 2px 10px rgba(60,58,44,.05)}
.fin-app .fp-check{grid-column:1;grid-row:1;display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;margin:0}
.fin-app .fp-check input{
  width:20px;height:20px;margin:0;padding:0;border-radius:50%;accent-color:var(--fp-green);
  border:1.5px solid #c9c9bf;cursor:pointer;
}
.fin-app .fp-check.is-blank{visibility:hidden}
.fin-app .fp-subject{grid-column:2;grid-row:1;margin:0;font-size:var(--fp-md);font-weight:600;color:var(--fp-ink);line-height:1.5;overflow-wrap:anywhere}
.fin-app .fp-amount{grid-column:3;grid-row:1;justify-self:end;font-size:var(--fp-md);font-weight:700;color:var(--fp-ink);font-variant-numeric:tabular-nums;line-height:1.5;white-space:nowrap}
.fin-app .fp-meta{grid-column:2;grid-row:2;margin:0;font-size:var(--fp-sm);color:var(--fp-mute);line-height:1.5;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fin-app .fp-pill{
  grid-column:3;grid-row:2;justify-self:end;display:inline-flex;align-items:center;
  font-size:var(--fp-xs);line-height:1.6;padding:3px 11px;border-radius:999px;white-space:nowrap;
}
.fin-app .fp-pill.is-ok{background:#ddf0d3;color:#3d7127}
.fin-app .fp-pill.is-warn{background:#fce3cd;color:#ad5a12}
.fin-app .fp-pill.is-done{background:#eceee6;color:#6c6c63}
.fin-app .fp-pill.is-take{background:#e6edf7;color:#3d5b86}
.fin-app .fp-go{
  grid-column:3;grid-row:3;justify-self:end;display:inline-flex;align-items:center;gap:3px;
  padding:0!important;margin:0!important;border:0!important;background:none!important;
  font-size:var(--fp-sm)!important;color:#3c3c36!important;font-weight:400;
}
.fin-app .fp-go:hover{color:var(--fp-green)!important}
.fin-app .fp-chev{width:14px;height:14px;flex:0 0 14px;opacity:.75}
.fin-app .fp-row.is-paid{background:#fdfdfa}
.fin-app .fp-batch{display:grid;gap:10px}
.fin-app .fp-batch+.fp-batch{margin-top:8px}
.fin-app .fp-batch-line{margin:0 0 2px;font-size:var(--fp-sm);color:var(--fp-mute);line-height:1.6}
.fin-app .fp-none{padding:34px 12px;text-align:center;border:1px dashed var(--fp-line);border-radius:14px}
.fin-app .fp-none p{margin:0;font-size:var(--fp-md);color:#7d7d74}
.fin-app .fp-none small{margin-top:6px;font-size:var(--fp-sm);color:var(--fp-faint)}
.fin-app .fp-foot{
  display:flex;align-items:center;justify-content:space-between;gap:16px;
  padding:16px 2px 18px;margin-top:6px;border-top:1px solid var(--fp-line-2);
}
.fin-app .fp-foot>span{font-size:var(--fp-sm);color:var(--fp-mute)}
.fin-app .fp-batch-btn{
  display:inline-flex;align-items:center;gap:4px;padding:0!important;margin:0!important;
  border:0!important;background:none!important;font-size:var(--fp-md)!important;color:var(--fp-ink)!important;font-weight:500;
}
.fin-app .fp-batch-btn:hover{color:var(--fp-green)!important}

/* ── 单笔详情：返回 + 编辑 → 标题 → 左收款码 / 右付款登记 → 两个折叠 → 两个按钮 ── */
.fin-app .fp-detail{padding:20px 24px 24px}
.fin-app .fp-dbar{display:flex;align-items:center;justify-content:space-between;gap:16px}
.fin-app .fp-back{
  display:inline-flex;align-items:center;gap:10px;padding:0!important;margin:0!important;
  border:0!important;background:none!important;font-size:var(--fp-xl)!important;font-weight:700;color:var(--fp-ink)!important;
}
.fin-app .fp-back svg{width:18px;height:18px;flex:0 0 18px}
.fin-app .fp-edit{
  display:inline-flex;align-items:center;gap:6px;padding:0!important;margin:0!important;
  border:0!important;background:none!important;font-size:var(--fp-md)!important;color:var(--fp-ink)!important;font-weight:400;
}
.fin-app .fp-edit svg{width:16px;height:16px;flex:0 0 16px}
.fin-app .fp-edit:hover,.fin-app .fp-back:hover{color:var(--fp-green)!important}
.fin-app .fp-dtitle{margin:22px 0 0;font-size:var(--fp-xl);font-weight:600;color:var(--fp-ink);line-height:1.45;overflow-wrap:anywhere}
.fin-app .fp-dmeta{margin:8px 0 0;font-size:var(--fp-md);color:var(--fp-mute);line-height:1.6}
/* 两栏：左收款码（占 46%），右付款登记；两侧顶部标签同基线，所以两列都是「标签 + 内容」两行结构。 */
.fin-app .fp-dgrid{display:grid;grid-template-columns:minmax(0,46fr) minmax(0,54fr);gap:22px 32px;margin-top:26px;align-items:start}
.fin-app .fp-lab{margin:0;font-size:var(--fp-sm);color:var(--fp-mute);line-height:1.6;font-weight:400}
.fin-app .fp-qrcol{display:grid;grid-template-rows:auto 1fr;gap:10px;min-width:0}
.fin-app .fp-qr{display:flex;align-items:center;justify-content:center;min-height:196px;min-width:0}
.fin-app .fp-qr-img{display:block;width:100%;max-width:200px;aspect-ratio:1/1;border-radius:12px;overflow:hidden;background:#f4f4ec}
.fin-app .fp-qr-img img{width:100%;height:100%;object-fit:contain}
.fin-app .fp-qr-empty{display:grid;justify-items:center;gap:6px;color:var(--fp-faint);text-align:center}
.fin-app .fp-qr-empty svg{width:54px;height:54px;opacity:.75}
.fin-app .fp-qr-empty p{margin:0;font-size:var(--fp-sm);color:#a7a79e}
.fin-app .fp-qr-empty small{font-size:var(--fp-xs);color:#b9b9b0;line-height:1.6;max-width:220px}
.fin-app .fp-dfields{display:grid;gap:14px;min-width:0}
.fin-app .fp-field{display:grid;gap:8px;margin:0}
.fin-app .fp-field+.fp-field{margin-top:14px}
.fin-app .fp-input{
  height:58px;padding:0 18px;font-size:var(--fp-md);color:var(--fp-ink);
  border:1px solid var(--fp-line);border-radius:12px;background:#fff;width:100%;box-sizing:border-box;
}
.fin-app .fp-input[name="amount"]{font-size:var(--fp-xl);font-weight:600;font-variant-numeric:tabular-nums}
.fin-app .fp-input[readonly]{background:#fff;color:var(--fp-ink)}
.fin-app .fp-input:focus{outline:none;border-color:#b9c9ae;box-shadow:0 0 0 3px rgba(82,108,76,.08)}
/* 「查看凭证 / 处理记录」同一行平排（理想态就是这个排法），点开在下面接一块内容：
   两个入口共用一块面板，谁开谁填，另一个自动收起——不会出现上下两块折叠把按钮顶走。 */
.fin-app .fp-folds{display:flex;align-items:center;gap:34px;margin-top:20px;border-top:1px solid var(--fp-line-2);padding:8px 0 2px}
.fin-app .fp-fold-btn{
  display:inline-flex;align-items:center;gap:8px;padding:8px 0!important;margin:0!important;
  border:0!important;background:none!important;font-size:var(--fp-md)!important;color:var(--fp-ink-2)!important;font-weight:400;
}
.fin-app .fp-fold-btn svg{width:16px;height:16px;flex:0 0 16px;color:#7d7d74}
.fin-app .fp-fold-btn .fp-chev{transition:transform .15s ease;color:#9a9a91}
.fin-app .fp-fold-btn[aria-expanded="true"]{color:var(--fp-green)!important}
.fin-app .fp-fold-btn[aria-expanded="true"] .fp-chev{transform:rotate(90deg)}
.fin-app .fp-fold-panel{padding:6px 0 4px}
.fin-app .fp-fold-none{margin:0;font-size:var(--fp-sm);color:var(--fp-faint)}
/* 勾选圈：原生 checkbox 是方块，理想态是空心圆；用 appearance:none 自绘，选中填绿加白勾。 */
.fin-app .fp-check input{
  -webkit-appearance:none;appearance:none;width:20px;height:20px;margin:0;padding:0;
  border:1.5px solid #c9c9bf;border-radius:50%;background:#fff;cursor:pointer;
  transition:background .12s ease,border-color .12s ease;
}
.fin-app .fp-check input:checked{
  background:var(--fp-green) url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.6 8.4 6.6 11.4 12.4 5'/%3E%3C/svg%3E") center/13px no-repeat;
  border-color:var(--fp-green);
}
.fin-app .fp-check input:focus-visible{outline:2px solid #9aad94;outline-offset:2px}
/* 说明行别被 `.fin-workbench .fin-panel>p`（棕、16px）抢走颜色 */
.fin-app .fp-detail .fp-dmeta{font-size:var(--fp-md);color:var(--fp-mute)}
.fin-app .fp-detail .fp-fold-panel p,.fin-app .fp-detail .fp-fold-panel small{color:var(--fp-ink-2);font-size:var(--fp-sm)}
/* 按钮 1:2 分宽，同高同圆角：驳回是描边次要操作，确认已付款是实底主操作。 */
.fin-app .fp-dactions{display:grid;grid-template-columns:1fr 2fr;gap:18px;margin-top:18px}
.fin-app .fp-btn{
  height:50px;padding:0 16px;margin:0!important;border-radius:14px!important;
  font-size:var(--fp-md)!important;font-weight:500;cursor:pointer;
}
.fin-app .fp-btn.is-ghost{background:#fff!important;border:1px solid #dddcd3!important;color:var(--fp-ink)!important}
.fin-app .fp-btn.is-ghost:hover{background:#f7f7f1!important;border-color:#cfcec4!important}
.fin-app .fp-btn.is-solid{background:var(--fp-green)!important;border:1px solid var(--fp-green)!important;color:#fff!important}
.fin-app .fp-btn.is-solid:hover{background:#47603f!important;border-color:#47603f!important}
.fin-app .fp-btn.is-solid:disabled{opacity:.6;cursor:wait}
@media (max-width:760px){
  .fin-app .fp-board,.fin-app .fp-detail{padding:18px 16px}
  .fin-app .fp-board{padding-bottom:4px}
  .fin-app .fp-row{padding:16px 14px;column-gap:10px;row-gap:9px}
  .fin-app .fp-dgrid{grid-template-columns:1fr;gap:18px}
  .fin-app .fp-qr{min-height:150px}
  .fin-app .fp-qr-img{max-width:168px}
  .fin-app .fp-dactions{gap:12px;grid-template-columns:1fr 1.6fr}
  .fin-app .fp-btn{height:46px;font-size:var(--fp-md)!important}
  .fin-app .fp-input{height:52px;padding:0 14px}
}
/* 详情里的表单不再吃全局 `form{margin:0 81px}`（那是给登录/记账页留的居中窄栏），
   否则整块内容会缩到 700px 并右移 81px，跟顶栏、标题对不齐。 */
.fin-app .fp-detail form{margin:0;display:block}
.fin-app .fp-dmeta{color:var(--fp-mute)}
.fin-app .fp-detail .fp-fold-body p,.fin-app .fp-detail .fp-fold-body small{color:var(--fp-ink-2)}
/* 编辑卡在整页里应该是「填满卡片」的表单，不该被抽屉用的 600px 上限掐成窄条；
   顶栏与详情页同一套返回按钮，但字号降到 16（它不是页面标题，只是一条返回）。 */
.fin-app .fp-editcard{padding:20px 24px 24px}
.fin-app .fp-editcard .fbd-editform{max-width:none;margin:0;gap:16px}
.fin-app .fp-editcard .fp-back-sm{font-size:var(--fp-md)!important;font-weight:500;color:var(--fp-ink-2)!important;margin-bottom:6px}
.fin-app .fp-editcard .fp-back-sm svg{width:16px;height:16px;flex:0 0 16px}
.fin-app .fp-editcard .fbd-edit-meta{font-size:var(--fp-sm);color:var(--fp-mute);margin:2px 0 0}
.fin-app .fp-editcard .fbd-form-actions{margin-top:4px}
@media (max-width:760px){.fin-app .fp-editcard{padding:18px 16px}}
/* 自己领了还没付的那笔：一行浅色提示 + 一个文字链，不占按钮位（理想态里没有这条，属于兜底出口）。 */
.fin-app .fp-claim{margin:12px 0 0;font-size:var(--fp-sm);color:var(--fp-mute);line-height:1.7}
.fin-app .fp-claim button{
  padding:0!important;margin:0 0 0 4px!important;border:0!important;background:none!important;
  font-size:var(--fp-sm)!important;color:#8a5a2b!important;text-decoration:underline;text-underline-offset:3px;
}

/* ── 审核台「已通过」编辑抽屉里的收款码（2026.11.05 用户要求：仿照报销工作台那块） ──
   凭证是「一组图，可增可删」，收款码是「只这一张，要么没有要么替换」，所以不跟凭证组同一套样式，
   直接用报销工作台那张虚线上传框（fin-drop 的图标/标题/引导三级）承载体，点它选图。 */
.fin-app .fin-drop-btn{
  display:grid;justify-items:center;gap:6px;width:100%;margin:0!important;padding:18px 12px!important;
  border:1.5px dashed #d5d9c6!important;border-radius:14px!important;background:#fbfbf6!important;
  cursor:pointer;text-align:center;font:inherit;color:inherit;
}
.fin-app .fin-drop-btn:hover{border-color:#a8bb98!important;background:#f7faf0!important}
.fin-app .fin-drop-btn .fin-drop-ic{width:28px;height:28px;color:#8a937d}
.fin-app .fin-drop-btn b{font-size:15px;font-weight:600;color:#3d4438;line-height:1.5}
.fin-app .fin-drop-btn .fin-drop-hint{display:block;font-size:12.5px;line-height:1.7;color:#8a927f}
.fin-app .fin-drop-btn .fin-drop-note{display:block;font-size:11.5px;line-height:1.6;color:#a3a897}
/* 抽屉里已有收款码时，缩略图与上传框之间留一口气，不要贴着。 */
.fin-app .fbd-edit-files-sec .fbd-thumbs + .fin-drop-btn{margin-top:10px!important}

/* 原因行与摘要共用边线，保持紧凑间距。 */
.fin-app .my-card:has(>.fin-result-row)>.my-card-head.fin-sum{padding-bottom:6px}
.fin-result-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 0 8px;margin:0;color:#426957;font-size:13px;line-height:1.5;min-width:0}
.fin-result-row.is-returned{color:#b44848}
.fin-result-row>span{min-width:0;overflow-wrap:anywhere}
.fin-app .fin-result-row button,.fin-result-row button{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;min-height:30px;margin:0;padding:4px 14px;border:1px solid #d5ddd5;border-radius:999px;background:#fff;font-size:13px;line-height:20px;color:#426957}
.fbd-readonly .fbd-editform input[readonly]{background:#fff;opacity:1;color:#34342f;cursor:default}
.fbd-readonly .fin-result-row{padding:0;margin:0}

/* 记一笔 / 明细里的收款码区（2026.11.05）：与凭证区共用同一条分隔线，
   标题右侧带一行「已保存，不可修改」——收款码只由申请人/记账人提供，管理员不能改。 */
.fin-app .fbd-paycode-sec>h3 small{margin-left:8px;font-size:12px;font-weight:400;color:#9a9b8e}
.fin-app .fbd-paycode-sec .fbd-thumbs{margin-bottom:10px}
.fin-app .fbd-paycode-sec .fbd-none{margin:0;font-size:12.5px;color:#9a9b8e}

/* 审核与付款列表从绿色页签起排，不保留页头空位。 */
.fin-app.fin-workbench .wb-main:has(.fin-list-head){padding-top:8px}
.fin-app.fin-workbench .wb-main:has(.fin-list-head) .wb-live-status:empty{display:none;margin:0;padding:0}
.fin-app.fin-workbench .wb-main:has(.fin-list-head) .fin-list-head,.fin-app.fin-workbench .wb-main:has(.fin-list-head) .my-tabs{margin-top:0}

.fin-app.fin-workbench .fp-board{padding:0}
/* 审核原因弹窗：固定输入字号，打开时不唤起键盘。 */
/* 2026.11.05 修复：老内核（微信 X5 / 旧 WKWebView）不支持 min()，此前三条宽度声明全部作废，弹窗退回默认撑满宽度。
   一律改用「width 兜底 + max-width 封顶」写法，所有内核都生效。 */
.fin-reason-dialog{box-sizing:border-box;width:calc(100vw - 32px);max-width:460px;padding:22px;border:1px solid #e3e5d9;border-radius:20px;max-height:85vh;max-height:85dvh;overflow:auto;color:#303d32;box-shadow:0 20px 70px #17241b30}
.fin-reason-dialog::backdrop{background:#17241b66}
.fin-reason-dialog .fin-dialog-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px;gap:12px}
.fin-reason-dialog h3{margin:0;font-size:19px}
.fin-reason-dialog textarea{display:block;font:400 16px/1.6 inherit;font-size:16px;line-height:1.6;padding:12px;min-height:120px;border:1px solid #cfd7ca;border-radius:12px;resize:vertical;outline:none}
.fin-reason-dialog textarea:focus{border-color:#638570;box-shadow:0 0 0 3px #63857018}
.fin-reason-actions button{min-height:44px;padding:10px 22px;border:1px solid #d7ded2;border-radius:12px;background:#f4f5ef;color:#405647;font-size:16px}
.fin-reason-actions [data-ok]{background:#355c47;color:white;border-color:#355c47}
.fin-app .fin-result-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;padding-top:8px;min-height:44px}
.fin-reason-dialog [role=status]:empty{display:none}
/* 常用理由快捷胶囊（2026.11.06）：点一下填入输入框，不直接提交；驳回用红色款。
   🔴 2026.11.21 作用域修正（用户「第二张图行间距太短、上下贴边」的根因）：
   原选择器是 `.fin-app .fin-reason-quick`，但这个弹层挂在 s.host 上
   （`s.host.innerHTML = shell(body) + drawer`，见 finance-ui.cjs），是 `.fin-app` 的**兄弟节点**，
   于是绿底/999px 圆角/✓ 前缀/margin-bottom 一条都没命中，胶囊底边直接压在输入框上边框上。
   作用域改成弹层自身，任何宿主（记一笔页/审核抽屉）都生效。 */
.fin-reason-dialog .fin-reason-quick{display:block;margin:0;padding:8px 14px;border:1px solid #cfe0d4;border-radius:999px;background:#eef5ef;color:#355c47;font-size:14px;line-height:1.5;cursor:pointer;text-align:left;overflow-wrap:anywhere}
.fin-reason-dialog .fin-reason-quick:active{background:#dfeee3}
.fin-reason-dialog .fin-reason-quick::before{content:'✓ ';}
.fin-reason-dialog .fin-reason-quick-reject{border-color:#f0cfcb;background:#fdf1ef;color:#a5483d}
.fin-reason-dialog .fin-reason-quick-reject:active{background:#f8e2df}
.fin-reason-dialog .fin-reason-quick-reject::before{content:'↩ ';}
/* 弹窗正文竖排节奏（2026.11.21 用户：行间距太短）：胶囊 → 输入框 → 取消/确定 统一 12px。
   原来靠各元素自己的 margin 拼（胶囊 10px、textarea 12px），胶囊一旦没命中就归零，节奏直接塌掉；
   现在由 form 一处 gap 管住，胶囊与输入框各自 margin 归零。 */
.fin-reason-dialog form{display:grid;gap:12px;margin:0}
.fin-reason-dialog .fin-reason-quick,.fin-reason-dialog textarea{margin:0}
/* 提交成功提醒（2026.11.05 用户定稿：放底部，不放正中）——✓ + 一句话，4 秒自动消失，点任意处关闭。
   贴底要过 iPhone 安全区；宽度用「兜底 + max-width」写法（老内核不支持 min()）。 */
.fin-success-dialog{box-sizing:border-box;margin:auto auto calc(20px + env(safe-area-inset-bottom));width:calc(100vw - 32px);max-width:360px;padding:13px 16px;border:1px solid #e3e5d9;border-radius:16px;display:flex;align-items:center;gap:12px;text-align:left;color:#303d32;box-shadow:0 12px 40px #17241b40;cursor:pointer}
.fin-success-dialog::backdrop{background:transparent}
.fin-success-dialog .fin-success-icon{display:grid;place-items:center;flex:none;width:38px;height:38px;border-radius:50%;background:#355c47;color:#fff;font-size:19px;line-height:1}
.fin-success-dialog p{margin:0;font-size:15px;line-height:1.5;overflow-wrap:anywhere}
/* 手机上把驳回/原因弹窗收得更紧凑（2026.11.05 用户反馈「太大」）。
   🔴 必须带 .fin-app 前缀：基础规则是 .fin-app .fin-reason-dialog（0,2,0），不带前缀会被压掉、媒体查询不加权。 */
@media(max-width:720px){
  .fin-app .fin-reason-dialog{padding:18px;border-radius:16px}
  .fin-app .fin-reason-dialog h3{font-size:17px}
  .fin-app .fin-reason-dialog textarea{min-height:96px}
}
/* 右滑删除（2026.11.06 用户定稿）：报销端自己的待审核卡右滑，露出左侧红色垃圾桶；确认后整笔删除。
   垃圾桶常驻卡片左缘、被卡体（.my-swipe-body，白底、z-index:1）盖住，右滑位移 64px 露出；
   手势进行中关掉过渡（.is-swiping），松手靠 .is-swiped 类吸附回弹。 */
.my-card[data-withdraw]{position:relative;overflow:hidden}
.my-swipe-del{position:absolute;top:0;bottom:0;left:0;width:64px;border:0;border-radius:0;background:#c04b3a;color:#fff;display:grid;place-items:center;cursor:pointer}
.my-swipe-del svg{width:22px;height:22px}
.my-swipe-body{position:relative;z-index:1;display:block;background:#fff;transition:transform .18s ease}
.my-swipe-body.is-swiping{transition:none}
.my-card.is-swiped .my-swipe-body{transform:translateX(64px)}

.fin-paid-detail{position:relative}
.fin-paid-detail .fin-sum-foot{padding-right:100px}
.fin-paid-detail-action{position:absolute;right:18px;bottom:27px}
.fin-paid-detail-action button{margin:0;padding:4px 12px;min-height:30px;border:1px solid #d5ddd5;border-radius:999px;background:#fff;color:#426957;font-size:13px;line-height:20px}
.fin-history-row,.fin-app .fin-history-row,.wb-drawer .fin-history-row{display:grid!important;grid-template-columns:88px 90px minmax(0,1fr);align-items:start;column-gap:12px;row-gap:0;margin:8px 0!important;line-height:1.65;font-size:13px!important}
.fin-history-row>time{white-space:nowrap;font-variant-numeric:tabular-nums}
.fin-history-row>em{font-style:normal;overflow-wrap:anywhere;color:#68715e}
.fin-history-row .fin-hist-act,.fin-app .fin-history-row .fin-hist-act{display:block;min-width:0;overflow-wrap:anywhere}
.fin-history-row .fin-hist-act>b{white-space:normal;font-weight:500}
.fin-history-row .fin-hist-act>i,.fin-app .fin-history-row .fin-hist-act>i{font-style:normal;white-space:normal;overflow:visible;text-overflow:clip}
.fin-history-row .fin-hist-act>i::before{content:' ';margin:0}
@media(max-width:560px){.fin-history-row,.fin-app .fin-history-row,.wb-drawer .fin-history-row{grid-template-columns:82px 76px minmax(0,1fr);column-gap:8px;font-size:12px!important}}

/* ═══════════════════════════════════════════════════════════════════════════
   2026.11.05 晚 · 「新建报销 / 记一笔」字段排版一次性统一（用户终版截图）
   三条规矩，以后改表单照这个来：
   ① 一行就是「框外标签 + 同高胶囊框」，标签绝不塞进框里；
   ② 金额 / 费用日期固定并排两列（手机也并排，两格等宽）；
   ③ 字段下面不挂小字说明 —— 一行小字会把整行撑高，把上下行距切得忽大忽小。
   ═══════════════════════════════════════════════════════════════════════════ */
.fin-app .fin-f-2{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;min-width:0}
.fin-app .fin-f-2>label{min-width:0}
@media(max-width:720px){.fin-app .fin-f-2{gap:10px}}

/* 关联小猫：字段名移到框外，和其它字段共用同一条标签基线；框内只剩猫胶囊 + 箭头。
   字号 / 行高必须「跟着 label 走」：面板里的 label 是 16px，这里也 16px，否则同样一行字
   一边 16 一边 15，看着就是没对齐。margin:0 是给 `.fin-app details{margin-top:16px}` 压惊——
   那 16px 会把这一行硬生生顶下去，整列行距就散了。 */
.fin-app .fin-field{display:grid;gap:7px;min-width:0;font-size:15px;line-height:inherit}
.fin-workbench .fin-panel .fin-field{font-size:16px}
.fin-app .fin-field-lab{display:block;line-height:inherit}
.fin-app .fin-field .fin-cat-select{margin:0;width:100%;box-sizing:border-box}
/* 「记一笔」这套表单的输入框是 999px 胶囊 / 50px 定高，关联小猫必须同款，否则又矮一截、又方一角。 */
.fin-app form[data-fin-form="book"] .fin-cat-select,
.fin-app form[data-fin-form="book"] .fin-cat-select>summary{border-radius:999px}
.fin-app form[data-fin-form="book"] .fin-cat-select>summary{min-height:50px;padding:0 14px}
/* 外框定高 46px（含 1px 描边）= 与同列 input 的实测 46px 逐像素对齐（原来写 50，比输入框高 4px，
   2026.11.14 全站一致性检查时按实测值改回）；只给 summary 设 min-height 会多出上下两条边框。 */
.fin-app form:is([data-fin-form="entry"],[data-fin-form="income"]) .fin-field .fin-cat-select,
.fin-app form[data-fin-form="book"] .fin-field .fin-cat-select{height:46px;box-sizing:border-box}
.fin-app form:is([data-fin-form="entry"],[data-fin-form="income"]) .fin-field .fin-cat-select>summary,
.fin-app form[data-fin-form="book"] .fin-field .fin-cat-select>summary{height:100%;min-height:0;box-sizing:border-box}
/* 展开后的选择面板保持直角大框，别跟着胶囊变成一坨。 */
.fin-app form[data-fin-form="book"] .fin-field .fin-cat-select[open],
.fin-app form:is([data-fin-form="entry"],[data-fin-form="income"]) .fin-field .fin-cat-select[open]{border-radius:16px}
.fin-app .fin-field .entry-cat-picker,.fin-app .fin-field .entry-cat-picker>legend{margin:0}
.fin-app .fin-field .entry-cat-picker{padding:0 8px 8px}
/* 框内那行字要和 input 里的占位/取值同字号（原来 fin-cat-none 是 13px，比旁边字段小一号）。 */
.fin-app .fin-field .fin-cat-select>summary{font-size:16px}
.fin-app .fin-field .fin-cat-none{font-size:16px}

/* 下拉箭头统一：原来只有「关联小猫」是自绘 12px 浅灰箭头，收支类型 / 具体类目用的是系统大三角，
   同一列里两种箭头大小差一倍。这里把原生三角关掉、换成同一枚箭头，三处控件看着才是一套。 */
.fin-app form:is([data-fin-form="entry"],[data-fin-form="income"]) select,
.fin-app form[data-fin-form="book"] select,
.wb-drawer .fbd-editform select{
  appearance:none;-webkit-appearance:none;-moz-appearance:none;
  background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none' stroke='%23a8ac9c' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.8 4.7 6 7.9 9.2 4.7'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 14px center;background-size:12px 12px;
  padding-right:38px;
}

/* 抽屉里的同一枚字段：抽屉标签是 12px 灰色，这里跟上，不另起一套观感。 */
.wb-drawer .fin-field{display:grid;gap:9px;min-width:0}
.wb-drawer .fin-field-lab{font-size:12px;line-height:1.4;color:#8a8e78}
.wb-drawer .fin-field .fin-cat-select{margin:0;width:100%;box-sizing:border-box}

/* 关联猫选项收紧：头像40 + 间距6 + 名字20 + 上下各10。 */
.fin-cat-select .entry-cat-options>label:not(.entry-cat-public){height:86px;padding:9px 3px}
.fin-cat-select .entry-cat-options .fpl-cat-chip{gap:6px}
.fin-cat-select .entry-cat-columns{padding-top:0}

/* 🔴 窄屏兜底：三列在小屏会把卡片压到比头像还窄（2026.11.14 五轮实测）
   320 宽：卡片 42（抽屉 39），而头像固定 40 —— 名字根本没地方放；360 宽也只剩 55。
   374 及以下降到两列、状态列收窄到 62，卡片回到 65~96，名字与头像都有余量。
   状态列不能更窄：56 时「寄养中」「已领养」会被挤成两行（320 真实页面复验）。
   必须写在这里（3795 那条 :not(.entry-cat-public) 之后），否则被它的 86px 覆盖。 */
@media(max-width:374px){
  .fin-cat-select .entry-cat-columns{grid-template-columns:62px minmax(0,1fr);gap:8px}
  .fin-cat-select .entry-cat-options{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
  .fin-cat-select .entry-cat-options>label:not(.entry-cat-public){height:96px;padding:10px 8px}
  .fin-cat-select .entry-cat-options>label.entry-cat-public{padding:10px;font-size:15px;line-height:22px}
  .fin-cat-select .entry-cat-columns>nav{padding-right:4px}
}


/* 展开时释放胶囊定高，选项参与文档流，避免与后续字段重叠。 */
.fin-app form[data-fin-form] .fin-field .fin-cat-select[open]{height:auto;background:#fff}
.fin-app form[data-fin-form] .fin-field .fin-cat-select[open]>summary{height:46px;min-height:46px}
/* 手机上外框是 44，展开后那一行也要 44，否则点开的瞬间行高会跳 2px。 */
@media(max-width:720px){.fin-app form[data-fin-form] .fin-field .fin-cat-select[open]>summary{height:44px;min-height:44px}}
.fin-cat-select .entry-cat-picker{background:#fff}


/* 手机凭证保存栏：提示独占一行，两个操作并排，保留内外边距。 */
@media(max-width:720px){
.fin-voucher-savebar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:14px;margin:14px 0 0}
.fin-voucher-savebar>[data-voucher-status]{grid-column:1/-1;font-size:14px;line-height:1.5}
.fin-voucher-savebar>button,.wb-drawer .fin-voucher-savebar>button{box-sizing:border-box;min-width:0;width:100%;margin:0;padding:8px 10px;font-size:14px;line-height:20px;min-height:38px;white-space:nowrap}
}


/* ── 财务台手机端顶部入口（2026.11.05 四稿·用户：不要数字徽章、别太挤、允许滑动）
   之前三处旧规则互相覆盖（760px 块 / 1881 / 2100 的 font-size:16px），且把四项压成
   1/4 屏宽，文字被挤在一起。这里在文件最后统一收口：
   · 计数徽章不再渲染（finance-ui 侧已去掉）；
   · 每项按内容取自然宽度 + 统一的 10/14 内边距与 8px 间距，不再等分屏宽；
   · 放不下就横向滑动（隐藏滚动条、带惯性吸附），不再压缩文字。 */
@media(max-width:760px){
 .fin-workbench .wb-sidebar nav{overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;scrollbar-width:none;scroll-snap-type:x proximity}
 .fin-workbench .wb-sidebar nav::-webkit-scrollbar{display:none}
 .fin-workbench .wb-sidebar nav,.fin-workbench .wb-nav-group{gap:8px}
 .fin-workbench .wb-sidebar .wb-nav-item{flex:0 0 auto;width:auto;min-width:0;min-height:38px;scroll-snap-align:start;justify-content:center;text-align:center;font-size:15px;line-height:1.2;padding:7px 14px!important;white-space:nowrap;margin:0}
 .fin-workbench .wb-sidebar .wb-nav-symbol{width:auto;font-size:15px}
 .fin-workbench .wb-nav-item b,.fin-workbench .wb-sidebar .wb-nav-item b{display:none}
 /* 页签（待审核/已退回/已通过）同步收窄高度：46px → 38px，与顶部入口同一档，两行不抢高度。 */
 .fin-app.fin-workbench .my-tabs{padding:3px;margin:10px 0 8px}
 .fin-app.fin-workbench .my-tabs button{min-height:38px;padding:7px 4px;font-size:13px}
}

/* 财务台四页（记一笔/审核报销/处理付款/财务明细）正文到顶部导航的间隔统一：
   都按审核报销那套 8px 窄边，页内首元素的外边距一并清零，避免明细页 fpl-hero 多出 18px。 */
.fin-app.fin-workbench .wb-main:has(.fin-admin-body){padding-top:8px}
.fin-app.fin-workbench .fin-admin-body>:first-child{margin-top:0}

/* ── 2026.11.05 用户（截图）：管理端「财务明细」顶部间距与「审核报销」页对齐（正文直接贴顶）；
   「全部/收入/支出」绿栏到「账目状态」条的字号收小，对齐「待付款/已付款」页签口径（14px）。
   2026.11.12：搜索输入框字号必须 ≥16px——14px 会触发 iOS 聚焦时整页自动放大（用户报的「搜索莫名放大」）；
   原「账目状态」下拉已删除，换成「选择类目」胶囊面板，相关 select 样式一并移除。 ── */
.fin-app .fin-ledger-management .fpl-hero{margin-top:0}
.fin-app .fin-ledger-management .fpl-toolbar .fpl-types button{font-size:14px;height:42px}
.fin-app .fin-ledger-management .fpl-pill{font-size:14px;height:42px}
.fin-app .fin-ledger-management .fpl-pill .fpl-ic{width:17px;height:17px}
.fin-app .fin-ledger-management .fpl-round{width:42px;height:42px}
.fin-app .fin-ledger-management .fpl-round .fpl-ic{width:17px;height:17px}
.fin-app .fin-ledger-management .fpl-toolbar .fpl-search{height:42px;margin-top:8px}
.fin-app .fin-ledger-management .fpl-toolbar .fpl-search input{font-size:16px;height:40px}
.fin-app .fpl-toolbar .fpl-search input:focus{outline:none}
.fin-app .fpl-toolbar .fpl-search:focus-within{border-color:#9aad94;box-shadow:0 0 0 2px rgba(154,173,148,.22)}
.fin-app .fin-ledger-management .fpl-admin-tools{margin:12px 0;display:grid;grid-template-columns:2fr 1fr;align-items:stretch;gap:12px}
/* 2026.11.19 与类目胶囊严格等高（42px）：旧版 padding:8px 16px 会把「＋记一笔」顶得比胶囊高出一截。 */
.fin-app .fin-ledger-management .fpl-admin-tools>a{font-size:14px;padding:0 12px;height:42px}
/* 🔴 2026.11.20 手机端修复（用户截图：全部类目/记一笔被挤扁、高度不齐、文案不居中）：
   11.15「工具与收支逐列对应」把 ≤720px 的 .fpl-tools 改成了 3 列网格，而管理条
   .fpl-admin-tools 恰好是 .fpl-tools 的子元素，被自动布局塞进 1/3 宽的格子——
   「全部类目 2/3 + 记一笔 1/3」是在三分之一屏幕里再切，两个控件全部挤压变形。
   修复：管理条、展开的类目/时间/筛选面板、打开的搜索框一律跨满整行（grid-column:1/-1）；
   三颗工具胶囊（时间/筛选/搜索）保持 3 列不动。高度 42px 等高由上方 3910/3920 保证。 */
/* 2026.11.20 二轮：四件套布局已统一挪到 4548 行的手机端块（管理端与公示页同款），此处不再另写管理端专用规则。 */

/* 财务弹层统一视口边界：不依赖挂载祖先，手机四周至少16px。 */
.fin-image-dialog,.fin-redactor{box-sizing:border-box;max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);overflow:auto;overscroll-behavior:contain;background:#fffdf9;color:#343b30}
.fin-reason-dialog{min-width:0;overflow-x:hidden}
.fin-reason-dialog form,.fin-dialog-head>*{min-width:0}
.fin-reason-dialog textarea{max-width:100%;font-family:inherit;font-size:16px}
.fin-reason-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.fin-reason-actions button{width:100%;min-width:0;box-sizing:border-box}
.fin-dialog-head h3,.fin-redactor h2{overflow-wrap:anywhere}
@media(max-width:720px){.fin-image-dialog,.fin-redactor{width:calc(100vw - 32px);padding:16px}.fin-redactor header,.fin-redactor footer{gap:10px}.fin-redactor button{font-size:14px;padding:9px 12px}}

/* 报销台沿用财务管理台手机尺寸与正文边线。 */
@media(max-width:760px){
.fin-app.fin-workbench .wb-main:has(.fin-applicant-body){padding-top:8px}
.fin-app.fin-workbench .fin-applicant-body>:first-child{margin-top:0}
.fin-app.fin-workbench .fin-applicant-body .fin-mode-tabs{display:flex;padding:3px;gap:4px;margin:0 0 16px;border-radius:12px}
.fin-app.fin-workbench .fin-applicant-body .fin-mode-tabs button{flex:1;min-height:38px;height:auto;padding:7px 4px;font-size:13px;line-height:20px;margin:0}
.fin-app.fin-workbench .fin-applicant-body .my-tabs{margin-top:0}
.fin-app.fin-workbench .wb-main:has(.fin-applicant-body) .wb-live-status:empty{display:none;margin:0;padding:0}
}
/* 2026.11.12 用户定稿：手机端同样按原始尺寸显示，去掉旧的「按视口高度压一屏」上限。 */
@media(max-width:720px){
.fin-image-dialog:has(.fin-csv){width:calc(100vw - 32px);max-width:calc(100vw - 32px)}
.fin-redactor h2{font-size:18px}
}
body:has(.video-preview-dialog[open]),body:has(.fin-success-dialog[open]){overflow:hidden}

/* 所有收款码上传入口共用截图款卡片，包含抽屉外挂场景。 */
.fin-drop.fin-paycode-upload{display:grid;justify-items:center;gap:6px;padding:24px 16px;border:1px solid #a8bb98;border-radius:14px;background:#f7faf0;text-align:center;box-sizing:border-box;width:100%}
.fin-drop.fin-paycode-upload .fin-drop-ic{width:30px;height:30px;color:#8a937d}
.fin-drop.fin-paycode-upload b{font-size:14px;line-height:1.5;font-weight:500;color:#a86a26}
.fin-drop.fin-paycode-upload .fin-drop-hint{font-size:13px;line-height:1.7;color:#8a927f}
.fin-drop.fin-paycode-upload .fin-drop-note{font-size:13px;line-height:1.6;color:#a9ae9e;margin-top:2px}
.fin-drop.fin-paycode-upload{width:33.333333%;height:180px;min-height:180px;margin-left:0;margin-right:auto;align-content:center}
@media(max-width:720px){.fin-drop.fin-paycode-upload{width:100%;height:170px;min-height:170px}}

/* ── 2026.11.06 用户示意稿 1:1 复原：凭证/收款码上传区（新建报销 · 收入记账 · 记一笔共用） ──
   「凭证」大标题 + 原始/公示左右两列；组头 = 标题 + 份数，下一行归属提示；
   图块统一 104px 方形圆角：米色实底放已选凭证图，虚线空块是「添加 / 上传」。
   缩略图右上角 ✕ 移除、点图进图片编辑器（打码）；收款码区与凭证区用分隔线隔开。 */
/* .fin-voucher 类名与「凭证查看弹层」的 figure 共用（1840 行那套 grid 样式），
   表单区这块必须压回 block，否则整区被居中/裁切。 */
.fin-app section.fin-voucher{display:block;overflow:visible;max-width:none}
.fin-voucher.fbd-edit-files{padding-left:0;padding-right:0;margin-left:0;margin-right:0;width:100%;box-sizing:border-box}
.fin-app .fbd-edit-files>h3.fin-vsec-title{margin:0 0 10px;font-size:16px;font-weight:700;color:#2f2c25;text-align:left}
/* 2026.11.06 用户：表单整体空白收紧（不影响美观的前提下），手机/电脑一致生效。 */
.fin-app form{display:grid;gap:12px;max-width:700px;margin:0 auto}.fin-app label{display:grid;gap:5px;font-size:15px}.fin-app label:has(input[type=checkbox]){display:flex;align-items:center}
.fin-vcols{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 40px;align-items:start}
.fin-vgroup{min-width:0}
.fin-app .fin-vgroup-head{display:flex;align-items:baseline;gap:10px}
.fin-app .fin-vgroup-head h4{margin:0;font-size:15px;font-weight:600;color:#33302a;text-align:left}
.fin-app .fin-vcount{margin-left:6px;font-size:14px;font-weight:400;color:#8f8b7f}
.fin-vcount[hidden]{display:none}
/* 2026.11.06 用户：灰色说明小字与标题同一行，不再换行；过长时省略。 */
.fin-app .fin-vhint{margin:0;font-size:13px;line-height:1.6;color:#8f8b7f;text-align:left;flex:1 1 auto;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fin-app .fin-paycode-head .fin-vsec-title{margin:0}
.fin-vsaved,.fin-vstrip,.fin-vthumbs{display:flex;flex-wrap:wrap;gap:12px;min-width:0}
.fin-vsaved:empty,.fin-vthumbs:empty{display:none}
/* 已选凭证图块：正方形米色底、圆角 16px，图片铺满；CSV/Excel 显示扩展名角标。 */
.fin-vtile{margin:0;width:104px;position:relative}
.fin-app .fin-vtile-box{display:flex;align-items:center;justify-content:center;position:relative;width:104px;height:104px;border-radius:16px;overflow:hidden;background:#f0efe9}
.fin-app .fin-vtile-img{display:flex;align-items:center;justify-content:center;width:100%;height:100%;padding:0;border:0;background:transparent;cursor:pointer}
/* 凭证是信息载体（小票/回单），缩略也不许裁切，一律整张可见。 */
.fin-vtile-img img{width:100%;height:100%;object-fit:contain;display:block}
.fin-vtile-file{font-size:12px;font-weight:600;color:#8f8b7f;letter-spacing:.04em;text-align:center;padding:0 6px;word-break:break-all}
.fin-vtile-name{overflow-wrap:anywhere;font-size:12px;color:#8f8b7f}
.fin-app .fin-vtile-x,.fin-app .fin-vthumb-x{position:absolute;top:6px;right:6px;width:24px;height:24px;padding:0;margin:0;border:0;border-radius:50%;background:rgba(28,26,20,.72);color:#fff;font-size:12px;line-height:24px;text-align:center;cursor:pointer;z-index:2}
.fin-app .fin-vtile-x:hover,.fin-app .fin-vthumb-x:hover{background:#b4472f}
/* 打码角标（已选原图上出现；可点切换回原图）。 */
/* 2026.11.20 用户拍板：「已打码」角标与「打码」按钮大小、行位必须一致——
   统一 bottom:6px、padding:2px 6px、font-size:11px、line-height:15px（同高 19px）。
   已打码锚左下，打码锚右下，同一行不重叠；改一处必须三处（.fin-app 作用域 / 无前缀抽屉作用域 / mask 按钮）同步。 */
.fin-app .fin-vbadge{position:absolute;left:6px;bottom:6px;padding:2px 6px;border:0;border-radius:999px;background:rgba(28,26,20,.72);color:#fff;font-size:11px;line-height:15px;cursor:default;z-index:2}
.fin-app button.fin-vbadge.is-toggle{cursor:pointer}
/* 已存凭证图块（记一笔编辑 / 收款码只读）：与已选图块同外观；✕ 切换移除/恢复。 */
.fin-vthumb{margin:0;width:104px;position:relative}
.fin-app .fin-vthumb-img{display:flex;align-items:center;justify-content:center;width:104px;height:104px;padding:0;border:0;border-radius:16px;background:#f0efe9;overflow:hidden;cursor:zoom-in}
.fin-vthumb-img img{width:100%;height:100%;object-fit:contain;display:block}
.fin-app .fin-vthumb-img .fbd-thumb-file{font-size:12px;color:#8f8b7f;padding:0 6px;text-align:center;word-break:break-all;line-height:1.4}
.fin-vthumb.is-removed .fin-vthumb-img{opacity:.35;cursor:not-allowed}
.fin-vthumb.is-removed .fin-vthumb-img[disabled]{pointer-events:none}
/* 虚线「添加 / 上传」块：与图块同尺寸同圆角。 */
.fin-app .fin-vadd{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;width:104px;height:104px;box-sizing:border-box;border:1.5px dashed #d9d5c7;border-radius:16px;background:transparent;cursor:pointer;color:#55524a;position:relative}
.fin-app .fin-vadd:hover{border-color:#b3afa0;background:#faf9f5}
.fin-vadd input[type=file]{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.fin-app .fin-vadd:focus-within{outline:2px solid #638570;outline-offset:2px}
.fin-app .fin-vadd-plus{font-size:18px;line-height:1;color:#55524a}
.fin-app .fin-vadd-ic{display:block;width:24px;height:24px;color:#7d7a6e}
.fin-vadd-ic svg{width:100%;height:100%}
.fin-app .fin-vadd-txt{font-size:13px;line-height:1;color:#55524a}
/* 收款码区：与凭证区之间一条分隔线，说明合并成一行；2026.11.06 用户要求间距收紧。 */
.fin-paycode-sec{margin-top:14px;border-top:1px solid #eceade;padding-top:14px}
.fin-app .fin-paycode-reuse{display:flex;align-items:center;gap:6px;margin:10px 0 0;font-size:13px;color:#55524a}
.fin-paycode-reuse input{width:15px;height:15px;margin:0;accent-color:#42552f}
/* 2026.11.14：这几块本身写了 display:flex，会盖掉浏览器默认的 [hidden]{display:none}，
   所以「选了新图就藏起来」必须在这里显式声明一次，否则旧码、勾选框、上传块会同时摆在眼前。 */
.fin-app .fin-vstrip[hidden],.fin-app .fin-paycode-reuse[hidden],.fin-app .fin-vadd[hidden]{display:none}
@media(max-width:720px){
.fin-vcols{grid-template-columns:minmax(0,1fr);gap:14px}
.fin-vtile,.fin-vthumb,.fin-vadd{width:88px}
/* 手机 88px 缩略图：两枚角标再收一档（已打码≈40px+打码≈30px+左右边距12px≤88px），同行不相撞。
   .fin-app 前缀必须保留，否则上面高特异性的 .fin-app .fin-vbadge 会把这档覆盖掉。 */
.fin-app .fin-vbadge,.fin-vbadge,.fin-vtile-mask{font-size:10px;padding:2px 5px;line-height:14px}
.fin-app .fin-vtile-box,.fin-app .fin-vthumb-img,.fin-app .fin-vadd{width:88px;height:88px}
/* 2026.11.06 用户：手机端表单空白同步收紧（胶囊输入框 50→44，分组间距 22→14）。 */
.fin-app form:is([data-fin-form="entry"],[data-fin-form="income"]) input:not([type="file"]):not([type="checkbox"]),.fin-app form:is([data-fin-form="entry"],[data-fin-form="income"]) select,.fin-app form[data-fin-form="book"] input:not([type="file"]):not([type="checkbox"]),.fin-app form[data-fin-form="book"] select{height:44px;min-height:44px}
/* 关联小猫跟着一起收到 44，否则手机上它又比旁边输入框高 2-6px（2026.11.14 全站一致性）。 */
.fin-app form:is([data-fin-form="entry"],[data-fin-form="income"]) .fin-field .fin-cat-select,
.fin-app form[data-fin-form="book"] .fin-field .fin-cat-select{height:44px}
}


/* 凭证分组与收款码共用标题字号及上传图标 */
.fin-app .fin-vgroup-head .fin-vsec-title{margin:0;font-size:16px;font-weight:700;color:#2f2c25;text-align:left}
/* 三组凭证：标题、数量、说明同列，空态保留缩略图行高度。 */
.entry-material-head h4{display:grid;grid-template-columns:4em 26px;gap:8px;flex:0 0 auto}
.entry-material-head h4 span{text-align:center;padding:0;box-sizing:border-box}
.entry-material-group{grid-template-rows:auto minmax(96px,auto);align-content:start}
.entry-material-group>.fbd-none{margin:0;align-self:start}
/* 表单也可能挂在侧栏中，不能依赖.fin-app祖先解除媒体查看器的居中网格。 */
section.fin-voucher.fbd-edit-files{display:block;justify-items:stretch;width:100%;max-width:none;margin-left:0;margin-right:0;padding-left:0;padding-right:0;box-sizing:border-box}
section.fin-voucher.fbd-edit-files>.fin-vcols{width:100%;margin:0;justify-self:stretch}
section.fin-voucher.fbd-edit-files .fin-vgroup{margin-left:0;padding-left:0;text-align:left}
.fin-vtile-mask{position:absolute;right:6px;bottom:6px;z-index:3;border:0;border-radius:999px;padding:2px 6px;background:rgba(28,26,20,.72);color:#fff;font-size:11px;line-height:15px;cursor:pointer}
.fin-edit-vouchers{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 40px}
.fin-edit-vouchers .fin-edit-file-group{padding:0;border:0;min-width:0}
.fin-edit-file-group .fbd-thumbs{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0}
.fin-edit-file-group .fbd-thumb{width:104px;margin:0}
.fin-edit-file-group .fbd-thumb-img{height:104px}
.fin-edit-file-group .fin-vsec-title{font-size:16px;font-weight:700;margin:0}
.fin-edit-vouchers+.fbd-edit-files-sec .fbd-edit-files-head{display:flex;align-items:center;gap:8px}
.fin-edit-vouchers+.fbd-edit-files-sec .fbd-edit-files-head h4{font-size:16px;margin:0}
@media(max-width:720px){.fin-edit-vouchers{grid-template-columns:minmax(0,1fr)}}
.wb-drawer .fin-vadd{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;width:104px;height:104px;box-sizing:border-box;border:1.5px dashed #d9d5c7;border-radius:16px;background:transparent;color:#55524a;position:relative;padding:0;margin:8px 0;cursor:pointer}
.wb-drawer .fin-vadd-ic{display:block;width:24px;height:24px;color:#7d7a6e}
.wb-drawer .fin-vadd-txt{font-size:13px;line-height:1;color:#55524a}
.fin-vtile-box,.fin-vthumb{position:relative}
.fin-vtile-mask,.fin-vtile-x,.fin-vthumb-x{min-height:0!important;width:auto!important;margin:0!important}
.fin-edit-file-group .fin-vgroup-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.fin-edit-file-group .fin-vhint{font-size:12px;margin:0;color:#8d897f}
/* 报销与管理的侧栏、桌面及手机共用角落操作，不依赖.fin-app祖先。 */
.fin-vtile-x,.fin-vthumb-x{position:absolute;top:6px;right:6px;width:24px!important;height:24px;padding:0!important;margin:0;border:0;border-radius:50%;background:rgba(28,26,20,.72);color:#fff;font-size:12px;line-height:24px;text-align:center;cursor:pointer;z-index:4}
.fin-vbadge{position:absolute;left:6px;bottom:6px;padding:2px 6px;border:0;border-radius:999px;background:rgba(28,26,20,.72);color:#fff;font-size:11px;line-height:15px;z-index:2}
.wb-drawer .fbd-thumb-del{width:24px!important;min-width:24px!important;height:24px;line-height:24px;padding:0!important;border-radius:50%!important}
/* 编辑与新建同一标题规格；已存缩略图与上传块同排。 */
.fbd-editing .fin-vsec-title,.fbd-editing .fbd-edit-files-head h4,.fbd-editing .fbd-group-title{font-size:16px!important;font-weight:700!important;line-height:24px!important;margin:0!important;color:#2f2c25}
.fin-edit-strip{display:flex;align-items:flex-start;gap:8px;flex-wrap:wrap;margin-top:8px}
.fin-edit-strip>.fbd-thumbs{display:contents!important}
.fin-edit-strip>.fin-vadd{flex:0 0 104px;margin:0!important}
.fin-edit-strip .fbd-thumb{flex:0 0 104px;width:104px!important;height:104px;margin:0!important}
.fin-edit-strip .fbd-thumb-img{height:104px!important}
.fin-edit-strip>.fbd-none{display:none}
.fbd-editing .fbd-edit-files-sec{padding-left:0;padding-right:0;margin-left:0;margin-right:0}
.fin-withdraw-application{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:16px 0;margin-top:16px;border-top:1px solid #e7e2d2}
.fin-withdraw-application>[data-fin="entry-withdraw"]{display:inline-flex!important;visibility:visible!important;color:#a13d30!important;border:1px solid #d8a79e!important;background:#fff5f2!important;font-size:16px!important;padding:10px 18px!important;border-radius:10px}
.fin-withdraw-application small{font-size:12px;color:#8d897f}
/* 角标优先于工作台通用按钮；编辑器四工具统一扁平尺寸。 */
.fin-app button.fin-vtile-mask,.wb-drawer button.fin-vtile-mask,button.fin-vtile-mask,.fin-app button.fbd-thumb-edit,.wb-drawer button.fbd-thumb-edit{display:inline-flex!important;align-items:center;justify-content:center;position:absolute!important;right:6px!important;bottom:6px!important;width:auto!important;min-width:0!important;height:24px!important;min-height:24px!important;margin:0!important;padding:0 7px!important;border:0!important;border-radius:999px!important;background:rgba(28,26,20,.72)!important;color:#fff!important;font-size:12px!important;font-weight:400!important;line-height:24px!important;box-shadow:none!important;z-index:4}
.fin-redactor .fin-redactor-tools{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;align-items:stretch}
.fin-redactor .fin-redactor-tools>button{display:flex;flex-direction:row;align-items:center;justify-content:center;gap:5px;box-sizing:border-box;width:100%;min-width:0;height:38px;min-height:38px;margin:0;padding:6px;font-size:13px;line-height:20px}
.fin-redactor .fin-redactor-tools>button>svg{display:block;flex:0 0 18px;width:18px;height:18px}
.fin-redactor .fin-redactor-tools>button>span{font-size:13px;line-height:20px;white-space:nowrap}

/* ==========================================================================
   🔴 2026.11.12 用户铁律（当轮明确要求，不得回退）：
   「看图 / 预览 / 编辑图片」的任何一个入口，图片一律按原始上传尺寸显示
   —— 不放大、不贴边、不裁切；超出容器才等比缩小，且四周边距 ≥12px。
   适用：凭证查看弹层(.fin-image-dialog img)、打码编辑器画布(.fin-redactor canvas)、
        相册查看器(.viewer-stage img)、管理端照片预览(.aw-photo-preview)、
        二维码弹层(.qr-modal-img img)。
   不属于本条：列表缩略图 / 卡片封面 / 版式主图（它们按版式 contain 或 cover 裁切）。
   孪生条款：输入框 / 下拉 / 多行文本字号一律 ≥16px（触屏上 iOS 聚焦会自动放大整页
        且不缩回，观感同样是「莫名被放大」）。守卫测试 tests/web-image-display.test.cjs 覆盖两条。
   违反即视为回归。
   ========================================================================== */
.fin-image-dialog img,
.viewer-stage img,
.aw-photo-preview,
.qr-modal-img img{
  display:block;
  width:auto;
  height:auto;
  max-width:100%;
  object-fit:contain;
  margin-left:auto;
  margin-right:auto;
}
.fin-redactor canvas{
  display:block;
  width:auto;
  height:auto;
  max-width:100%;
  object-fit:contain;
  margin-left:auto;
  margin-right:auto;
}
/* 触屏兜底：任何输入控件在触屏设备上一律 ≥16px，杜绝 iOS 聚焦缩放整页。
   特异性低于带类名的具体规则，不会干扰桌面端 14/15px 的紧凑排版。 */
@media (pointer:coarse){
  input:not([type="checkbox"]):not([type="radio"]),
  textarea,
  select{font-size:16px}
}
.fin-redactor canvas{
  display:block;
  width:auto;
  height:auto;
  max-width:100%;
  object-fit:contain;
  margin-left:auto;
  margin-right:auto;
}

/* 2026.11.14 关联小猫改多选（用户拍板）：收起态要能并排放 2–3 枚胶囊，窄屏换行，不许被裁掉。
   只加换行、不改 `overflow`，`.fin-cat-none`（公共费用的省略号）仍按原样工作。 */
.fin-cat-select>summary [data-cat-selection-label]{flex-wrap:wrap;row-gap:6px}

/* ── 2026.11.14 · 超窄屏（≤350：iPhone SE 一代 320、小屏安卓 344）─────────────
   一、工具栏三等分到 320 屏只剩 80px：两枚胶囊装不下「图标 16 + 文字 54 + 内边距 12」，
       「全部时间 / 全部小猫」被截成「全部时…」；搜索钮 80px 里塞图标加两字，字被挤成竖排。
       改法：搜索钮退回桌面那枚圆形图标钮（44×44，无文字），腾出的 32px 还给前两枚，
       两枚各得 95px。阈值 350 的来历：三枚各需 88px，实测 341 屏只剩 87px、360 屏才有 93px，
       临界落在 344 附近，取 350 留余量；351 以上三等分富余，不动。
   二、「公共费用（不关联小猫）」在 320 屏收起行里差 7px，末字被省略号吃掉。
       那行字刻意与 input 同为 16px（见上方 .fin-field .fin-cat-none），不能缩字号，
       改为收紧 summary 左右内边距与图标间距，把 11 字完整收下。
   本块必须留在文件最末：前面编辑卡有 `.fbd-editform .fin-cat-select summary` 等更高特异性规则。 */
@media(max-width:350px){
  .fin-app .fpl-toolbar .fpl-tools{grid-template-columns:repeat(2,minmax(0,1fr)) auto}
  .fin-app .fpl-toolbar .fpl-tools>.fpl-round{width:44px;min-width:44px;padding:0;flex:0 0 auto}
  .fin-app .fpl-toolbar .fpl-tools>.fpl-round .fpl-round-label{display:none}
  /* 报销/记账/记一笔三种表单把收起行钉成 padding:0 14px（特异性压过手机端统一的 10px），
     这里按同一特异性后写覆盖，把左右各 4px 还给文字。 */
  .fin-app form:is([data-fin-form="entry"],[data-fin-form="income"]) .fin-cat-select>summary,
  .fin-app form[data-fin-form="book"] .fin-cat-select>summary{padding:0 10px;gap:6px}
}

/* 财务抽屉独立于主体，类目图标必须定位于控件内。 */
.fin-drawer .fbd-editform label:has(>select[name="category"]){position:relative}
.fin-drawer .fbd-editform label:has(>select[name="category"])>select{padding-left:40px}
.fin-drawer .fin-kind-ic{position:absolute;left:12px;bottom:0;width:18px;height:46px;display:flex;align-items:center;justify-content:center;pointer-events:none}
.fin-drawer .fin-kind-ic svg{width:18px;height:18px;display:block}
.fin-drawer .fbd-grid2{align-items:start}
.fin-drawer .fbd-editform label{align-content:start;line-height:1.5}
.fin-drawer .fbd-editform input:not([type="checkbox"]):not([type="file"]),.fin-drawer .fbd-editform select{height:46px;min-width:0;font-size:16px;box-sizing:border-box}

/* 保留原审核抽屉表单，仅在标题下增加操作栏。 */
.fin-drawer-review-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 20px}
.fin-drawer-review-actions button{color:#3b6d11;border:1px solid #c8d5be;background:#f0f5eb;border-radius:10px;padding:9px 16px;font:inherit;cursor:pointer}
.fin-app .fp-detail .fp-dbar{margin-top:-6px;margin-bottom:26px}
.fin-app .fp-detail .fp-back,.fin-app .fp-detail .fp-edit{color:var(--fp-green)!important;font-size:16px!important;font-weight:500}
.fin-app .fp-detail .fp-dtitle{margin-top:0}
.fin-app .fp-detail .fp-lab{font-size:16px;font-weight:400;line-height:1.5}
.fin-app .fp-detail .fp-input,.fin-app .fp-detail .fp-input[name="amount"]{height:52px;padding:0 14px;font-size:18px;font-weight:500;line-height:normal;text-align:left}
.fin-app .fp-detail .fp-input[type="date"]{appearance:none;-webkit-appearance:none;display:flex;align-items:center;min-width:0}
.fin-app .fp-detail .fp-input[type="date"]::-webkit-date-and-time-value{margin:0;text-align:left;line-height:50px}

.fin-drawer-review-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.fin-drawer-review-actions button{width:100%;min-width:0;min-height:44px;box-sizing:border-box;display:flex;align-items:center;justify-content:center;padding:9px 4px}

/* 2026-11-14 记一笔：取值靠左、单行控件上下居中（兼容 iOS 原生选择与日期）。 */
.fin-app form[data-fin-form="book"] input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.fin-app form[data-fin-form="book"] select{box-sizing:border-box;padding-top:0;padding-bottom:0;line-height:normal;text-align:left;text-align-last:left;font-size:16px}
.fin-app form[data-fin-form="book"] select{color:var(--ink,#343b30)}
.fin-app form[data-fin-form="book"] input[type="date"]{appearance:none;-webkit-appearance:none;display:flex;align-items:center;min-width:0}
.fin-app form[data-fin-form="book"] input[type="date"]::-webkit-date-and-time-value{margin:0;text-align:left;line-height:42px}
.fin-app form[data-fin-form="book"] input[type="date"]::-webkit-datetime-edit{padding:0}

/* 手机打码弹框居中，完整图片放在可用高度内。 */
@media(max-width:720px){
 .fin-redactor[open]{position:fixed;inset:0;margin:auto;box-sizing:border-box;width:min(600px,calc(100vw - 32px));height:min(720px,calc(100dvh - 48px));max-height:calc(100dvh - 48px);padding:16px;display:grid;grid-template-rows:auto auto auto auto minmax(0,1fr) auto;gap:8px;overflow:hidden}
 .fin-redactor .fin-redactor-hint{margin:0;font-size:13px;line-height:1.4}
 .fin-redactor .fin-redactor-tools{margin:0;gap:4px}
 .fin-redactor .fin-redactor-tools>button{gap:2px;padding:4px 1px;font-size:12px}
 .fin-redactor .fin-redactor-tools>button>svg{width:15px;height:15px;flex-basis:15px}
 .fin-redactor .fin-redactor-tools>button>span{font-size:12px}
 .fin-redactor .fin-redactor-brush{margin:0}
 .fin-redactor .fin-redactor-stage{box-sizing:border-box;min-height:0;max-height:none;overflow:hidden;display:flex;align-items:center;justify-content:center}
 .fin-redactor [data-status]{margin:0;min-height:0}
}

.fin-drawer-review-actions button:disabled{opacity:.45;cursor:default}

/* 2026-11-14 类目未选择时没有图标，不保留图标占位；与收支类型左边起点一致。 */
.fin-app form[data-fin-form="book"] label:has(>select[name="category"] option[value=""]:checked)>select{padding-left:14px;text-indent:0}
.fin-app form[data-fin-form="book"] label:has(>select[name="category"] option[value=""]:checked)>.fin-kind-ic{display:none}

/* 2026-11-14 全财务入口：图标为空时按普通字段左边距排版，不保留图标槽。 */
.fin-app label.fin-kind-empty>select[name="category"],
.fin-app form:is([data-fin-form="entry"],[data-fin-form="income"],[data-fin-form="book"]) label:has(>select[name="category"] option[value=""]:checked)>select{padding-left:14px;text-indent:0}
.fin-app label.fin-kind-empty>.fin-kind-ic{display:none}
.fin-app .fbd-editform label.fin-kind-empty>select[name="category"],
.fin-drawer .fbd-editform label.fin-kind-empty>select[name="category"],
.fin-drawer .fbd-editform label:has(>select[name="category"] option[value=""]:checked)>select{padding-left:11px;text-indent:0}
.fin-drawer label.fin-kind-empty>.fin-kind-ic{display:none}

/* 新建收支：收款码与替换操作合为一组 */
.fin-paycode-sec{position:relative}.fin-paycode-sec:has([data-paycode-last]) [data-paycode-strip]{position:absolute;right:12px;bottom:12px}.fin-paycode-sec:has([data-paycode-last]) [data-paycode-strip] .fin-vadd{min-height:44px;width:auto;padding:10px 18px}.fin-paycode-sec:has([data-paycode-last]) [data-paycode-strip] .fin-vadd-ic{display:none}

/* 2026-11-14 P0 数据防呆：单行渲染兜底 + 页面级兜底。
   一条坏账目只允许坏它自己那一行；整页渲染失败时也要给出可读、可重试的页面。 */
.fin-row-broken{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px;margin:8px 0;padding:12px 14px;border:1px solid #e6cfae;border-radius:12px;background:#fdf6ec;color:#7a5320;font-size:14px;line-height:1.5}
.fin-row-broken>b{font-weight:600;white-space:nowrap}
.fin-row-broken>span{color:#8a6a42;min-width:0}
.fin-crash .fin-crash-detail{margin:10px 0 16px;padding:10px 12px;border-radius:10px;background:rgba(0,0,0,.045);font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:13px;line-height:1.5;word-break:break-all;color:#5b5147}
@media(max-width:720px){.fin-row-broken{padding:10px 12px;font-size:13px}}
/* 收支与类目固定同排等宽；专项面板跨整行。 */
.fin-app form:is([data-fin-form="entry"],[data-fin-form="income"],[data-fin-form="book"]){grid-template-columns:repeat(2,minmax(0,1fr))}
.fin-app form:is([data-fin-form="entry"],[data-fin-form="income"],[data-fin-form="book"])>label:has([data-apply-type]),.fin-app form:is([data-fin-form="entry"],[data-fin-form="income"],[data-fin-form="book"])>label:has([name="category"]),.fin-app form[data-fin-form="book"]>label:has([name="type"]){grid-column:auto;min-width:0}
/* ── 2026.11.15 二轮走查定稿：专项行与「收支类型/具体类目」「金额/费用日期」严格同宽同距 ──
   旧版是浅绿大卡片（padding16 + 独立标题行 + 满宽下拉 + 小字），比上下字段缩进一圈、字号忽大忽小、
   三处两列间距各不相同（表单 12px / 金额行 16px·10px），看着「没居中、不紧凑」。
   现在：去掉卡片与内边距，三处统一 --fin-col-gap 且列宽都是 (100%-gap)/2，分割线上下对齐。 */
/* 🔴 变量必须同时挂 .fin-drawer：抽屉是 .fin-app 的兄弟节点（finance-ui.cjs 直接 innerHTML 挂 host），
   变量穿不进去 → column-gap:var() 失效回退 0，抽屉里左下拉和「＋新增专项」会直接顶在一起
   （2026.11.21 用户实测指出「应该和左边的控件有距离」）。 */
.fin-app,.fin-drawer{--fin-col-gap:12px}
@media(max-width:720px){.fin-app,.fin-drawer{--fin-col-gap:10px}}
.fin-app form:is([data-fin-form="entry"],[data-fin-form="income"],[data-fin-form="book"]){column-gap:var(--fin-col-gap)}
.fin-app .fin-f-2{column-gap:var(--fin-col-gap)}
:is(.fin-app,.fin-drawer) .fin-special-panel{
  /* 与「记一笔」同一套：字段名一行 + 控件一行两列（左=下拉占满余宽，右=「＋新增专项」按内容自适应，
   2026.11.21 用户：按钮太宽，缩窄，但与左下拉保持列距）+ 余额一行小字。
   高度跟邻居走——普通表单/抽屉里的输入框实际都是 46px（`.fin-app form[data-fin-form=entry|income|book] select`
   与 `.fin-drawer .fbd-editform select` 都是 height:46px；--fbd-h 只有 36/40），
   所以回落值取 46，别再写 44（那会让专项下拉比左右字段矮 2px，看着还是没对齐）。
   --fin-ctl-h 由下层表单按断点注入（手机 44），不在这里写死。 */
  --fin-special-h:var(--fin-ctl-h,var(--fbd-h,46px));
  grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) auto;
  column-gap:var(--fin-col-gap);row-gap:7px;align-items:end;
  padding:0;margin:0;background:transparent;border-radius:0;min-width:0;
}
/* 🔴 2026.11.21 用户实测（第一张截图）：「煤灰这一行和其他行对齐」。
   这里原来写 `padding-inline:8px`（当天早些时候为「不贴边」加的），结果整行——字段名、下拉、
   ＋新增专项、余额小字——比「收支类型/具体类目」「金额/费用日期」左右各缩进一圈，看着就是没对齐。
   3x 截图实测：收支类型左边框 x=193、专向下拉左边框 x=218（差 25 设备像素≈8.3css）；右边同理。
   表单控件本就该和同列字段齐平（卡片 .fbd-card 自带 20px 内边距，不存在真的顶到抽屉边），
   所以这里必须 0，不得再加横向内缩。注意：图片「不贴边」铁律针对看图/预览，不适用于表单控件。 */
.fin-drawer .fin-special-panel{padding:0;--fin-special-h:46px}
/* 高度跟邻居走（2026.11.21 补）：`.fin-app form[data-fin-form=entry|income|book]` 的输入框
   桌面 46px、手机（≤720px，见下方 44px 那条）44px；抽屉里的 .fbd-editform 固定 46px。
   专项下拉若还按 --fbd-h(36/40) 走就会比左右字段矮一截，看着仍是「没对齐」。
   变量挂**表单**上、由专项面板继承：一律不许写「只绑 .fin-app 的 .fin-special-panel 规则」，
   否则抽屉守卫（tests/finance-drawer-scope.test.cjs）会红——抽屉是 .fin-app 的兄弟节点。 */
@media(max-width:720px){
  .fin-app form:is([data-fin-form="entry"],[data-fin-form="income"],[data-fin-form="book"]){--fin-ctl-h:44px}
}
.fin-special-panel .fin-special-lab{grid-column:1/-1;font-size:15px;line-height:1.3;margin:0}
/* 抽屉里的字段名是 12.5px 灰：专项这一行跟着走，不另立一套字号。 */
:is(.fin-app,.fin-drawer) .fbd-editform .fin-special-panel .fin-special-lab{font-size:12.5px;color:#6f7561}
/* 左列：自定义下拉。原生 select 只做取值载体（fields() 走 FormData），视觉与交互由 trigger+menu 承担。 */
.fin-special-panel .fin-special-pick{position:relative;display:block;min-width:0;margin:0}
:is(.fin-app,.fin-drawer) .fin-special-panel .fin-special-pick>.fin-special-native{display:none}
:is(.fin-app,.fin-drawer) button.fin-special-trigger{
  display:flex;align-items:center;gap:7px;width:100%;height:var(--fin-special-h);min-height:0;
  margin:0;padding:0 10px;border:1px solid var(--line);border-radius:10px;background:#fff;
  color:#343b30;font-size:15px;line-height:1;text-align:left;white-space:nowrap;box-shadow:none;overflow:hidden;
}
:is(.fin-app,.fin-drawer) button.fin-special-trigger:hover{background:#fff;border-color:#cfd8c6}
.fin-special-trigger .fin-special-current{display:flex;align-items:center;gap:7px;min-width:0;overflow:hidden;text-overflow:ellipsis}
.fin-special-trigger .fin-special-name{overflow:hidden;text-overflow:ellipsis}
.fin-special-trigger .fin-special-placeholder{color:#9a9f93}
.fin-special-trigger .fin-special-caret{
  flex:none;width:7px;height:7px;margin-left:auto;
  border-right:1.5px solid #8a8f82;border-bottom:1.5px solid #8a8f82;
  transform:translateY(-2px) rotate(45deg);
}
:is(.fin-app,.fin-drawer) button.fin-special-trigger[aria-expanded="true"] .fin-special-caret{transform:translateY(2px) rotate(-135deg)}
/* 选项列表：每项「小猫头像 + 姓名」，头像与「关联小猫」选择器同一枚（catFaceHtml 的 240x 缩略图）。 */
.fin-special-menu{
  position:absolute;z-index:30;left:0;right:0;top:calc(100% + 5px);
  max-height:min(248px,42vh);max-height:min(248px,42dvh);overflow:auto;overscroll-behavior:contain;
  padding:6px;background:#fffdf9;border:1px solid var(--line);border-radius:12px;
  box-shadow:0 10px 28px rgba(52,59,48,.16);
}
.fin-special-menu[hidden]{display:none}
:is(.fin-app,.fin-drawer) button.fin-special-opt{
  display:flex;align-items:center;gap:8px;width:100%;height:42px;margin:0;padding:0 10px;
  border:0;border-radius:8px;background:transparent;color:#343b30;font-size:15px;line-height:1;
  text-align:left;white-space:nowrap;box-shadow:none;
}
:is(.fin-app,.fin-drawer) button.fin-special-opt:hover{background:#f4f1e8}
:is(.fin-app,.fin-drawer) button.fin-special-opt[aria-selected="true"]{background:var(--green-soft);color:#2f5a3c;font-weight:600}
.fin-special-menu .fin-special-empty{margin:6px 8px;font-size:13px;color:#8a8f82}
.fin-special-panel .fpl-cat-av{width:22px;height:22px;min-width:22px;font-size:11px;line-height:22px}
.fin-special-panel .fpl-cat-av-empty{background:#dfe7cd}
/* 右列「＋新增专项」按内容自适应宽度（2026.11.21 用户：不再是半列宽的对称布局，缩窄），
   高度仍与左下拉等高、同一基线。特异性必须压过 .fin-app button 的绿底实心大按钮。 */
:is(.fin-app,.fin-drawer) button.fin-special-new{
  grid-column:auto;margin:0;padding:0 16px;width:auto;height:var(--fin-special-h);min-height:0;
  border:1px dashed #b9ceb0;border-radius:999px;background:#f7faf3;
  color:#526d55;font-size:13px;line-height:1;white-space:nowrap;box-shadow:none;
}
:is(.fin-app,.fin-drawer) button.fin-special-new:hover{background:#eef5e8;border-color:#9ab78e;text-decoration:none}
.fin-special-panel .fin-special-balance{grid-column:1/-1;margin:0;font-size:12px;line-height:1.4;color:#8a8f82}
/* 报销端没有右侧新建：左下拉占满整行，仍与其它整行字段同宽。 */
.fin-special-panel.fin-special-solo .fin-special-pick{grid-column:1/-1}
@media(max-width:374px){:is(.fin-app,.fin-drawer) button.fin-special-new{font-size:12px;padding:0 6px;letter-spacing:-.2px}}
/* 新增专项弹窗：桌面居中卡片（最大 640px，保证三列头像不挤）；选猫区沿用 entry-cat-picker
   的 340px 内部滚动，弹窗本身不超过视口。 */
.fin-fund-dialog{margin:auto;width:min(640px,calc(100vw - 32px));max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);border:0;border-radius:16px;padding:16px;box-sizing:border-box;overflow:auto;overscroll-behavior:contain;background:#fffdf9;color:#343b30}
.fin-fund-dialog::backdrop{background:#0009}
body:has(.fin-fund-dialog[open]){overflow:hidden}
.fin-fund-search{margin:0 0 10px}
.fin-fund-search input{box-sizing:border-box;width:100%;height:44px;padding:0 16px;border:1px solid var(--line);border-radius:999px;background:#fff;font-size:16px;color:#343b30}
.fin-fund-dialog .entry-cat-picker{margin:0}
/* 弹窗不在 .fin-cat-select 作用域内，基础规则是「透明无边框」——这里按抽屉选猫器同款补齐卡片描边与选中态。 */
.fin-fund-dialog .entry-cat-options>label{position:relative;height:92px;padding:10px 6px;border:1px solid #dce2d5;border-radius:12px;background:#fffdf9}
.fin-fund-dialog .entry-cat-options>label:has(:checked){background:#edf2e5;border-color:#637d51}
.fin-fund-dialog .entry-cat-options label:has(input:disabled){cursor:not-allowed}
.fin-fund-badge{position:absolute;top:6px;right:6px;font-style:normal;font-size:11px;line-height:16px;padding:1px 7px;border-radius:999px;background:#e3ecd9;color:#425d36;white-space:nowrap}
.fin-fund-name{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px;padding:12px 14px;background:#f3f3e9;border-radius:12px;font-size:14px}
.fin-fund-name span{color:#686b62;flex:none}
.fin-fund-name b{font-size:15px;color:#343b30;text-align:right;overflow-wrap:anywhere}
.fin-fund-status{margin:10px 0 0;font-size:13px;color:#a4452f}
.fin-fund-empty{grid-column:1/-1;margin:0;padding:16px 8px;text-align:center;font-size:14px;color:#8a8f82}
.fin-fund-foot{display:flex;justify-content:flex-end;gap:10px;margin-top:16px}
.fin-fund-foot button{min-height:44px;padding:10px 22px;border-radius:999px;border:1px solid #dce2d5;background:#f6f4ec;color:#343b30;font-size:15px;cursor:pointer}
.fin-fund-foot [data-fund-ok]{border-color:#526d55;background:#526d55;color:#fff}
.fin-fund-foot [data-fund-ok]:disabled{opacity:.45;cursor:not-allowed}
/* 手机端底部弹层（≤720px）：贴底圆角顶边、最大高度 85dvh；标题与底部按钮常驻，
   中间搜索+选猫+名称区独立滚动；适配安全区。 */
@media(max-width:720px){
  .fin-fund-dialog{margin:auto 0 0;width:100vw;max-width:100vw;border-radius:18px 18px 0 0;padding:14px 16px calc(14px + env(safe-area-inset-bottom));max-height:85dvh;display:flex;flex-direction:column;overflow:hidden}
  .fin-fund-body{flex:1 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain}
  .fin-fund-foot{flex:none;margin-top:12px}
  .fin-fund-foot button{flex:1 1 auto;min-height:48px;padding:12px 16px}
}
/* 窄屏兜底（≤374px，与 .fin-cat-select 同口径）：两列卡片 + 62px 分类列，避免卡片比头像还窄。 */
@media(max-width:374px){
  .fin-fund-dialog .entry-cat-columns{grid-template-columns:62px minmax(0,1fr);gap:8px}
  .fin-fund-dialog .entry-cat-options{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
  .fin-fund-dialog .entry-cat-options>label{height:96px}
  .fin-fund-dialog .entry-cat-columns>nav{padding-right:4px}
}
.fin-funds{padding:18px 0 22px}.fin-funds-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.fin-funds-head button{background:transparent;border:0;color:#526d55;font-size:14px}.fin-funds-bar{height:12px;border-radius:999px;overflow:hidden;display:flex;background:#eeeee7}.fin-app .fin-funds-bar button{display:block;min-height:0;height:12px;margin:0;padding:0;border:0;border-radius:0;background:var(--fund-color);flex-grow:0;flex-shrink:0}.fin-funds-legend{display:flex;gap:12px 28px;flex-wrap:wrap;margin-top:12px}.fin-funds-legend button{display:flex;gap:8px;align-items:center;background:transparent;border:1px solid transparent;border-radius:12px;padding:6px;color:inherit;font-size:14px}.fin-funds-legend i{width:9px;height:9px;border-radius:50%;background:var(--fund-color)}.fin-funds-legend b{font-weight:500}.fin-funds-legend button[aria-pressed="true"]{border-color:#526d55;background:#eef2e9}.fin-funds-bar button[aria-pressed="true"]{outline:2px solid #263b28;outline-offset:-2px}

/* 专项图例选中后仍保持深色文字，避免继承工作台按钮白字。 */
.fin-app .fin-funds-legend button,.fin-app .fin-funds-legend button[aria-pressed=true]{color:#343b30}.fin-app .fin-funds-legend button span,.fin-app .fin-funds-legend button b{color:inherit}.fin-app .fin-funds-bar button{min-width:0}
/* 资金构成并入汇总：同一外框，紧凑横向图例。 */
.fin-app .fpl-hero{display:grid;grid-template-columns:114px minmax(0,1fr);gap:0 18px;margin-bottom:14px;min-width:0}
.fin-app .fpl-hero>.fpl-hero-note{grid-column:1;min-width:0}
.fin-app .fpl-hero>.fpl-hero-content{grid-column:2;min-width:0}
.fin-app .fpl-hero>.fin-funds{grid-column:1/-1;min-width:0;margin-top:12px;padding:10px 0 0;border-top:1px solid var(--line,#e5e4d9);border-radius:0;background:transparent}
.fin-app .fin-funds-head{margin:0 0 8px;line-height:1.4;font-size:14px}
.fin-app .fin-funds-head strong{font-size:inherit;font-weight:600}
.fin-app .fin-funds-bar,.fin-app .fin-funds-bar button{height:8px;min-height:0}
.fin-app .fin-funds-bar{width:100%}
.fin-app .fin-funds-legend{display:flex;flex-wrap:wrap;gap:8px 20px;margin-top:8px;min-width:0}
.fin-app .fin-funds-legend button,.fin-app .fin-funds-legend button[aria-pressed=true]{display:inline-flex;flex:0 0 auto;align-items:center;gap:6px;min-width:0;min-height:24px;margin:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;color:#343b30;font-size:14px;line-height:1.5;white-space:nowrap}
.fin-app .fin-funds-legend button i{flex:none;width:8px;height:8px}
.fin-app .fin-funds-legend button b{font-weight:500;font-variant-numeric:tabular-nums}
.fin-app .fin-funds-legend button[aria-pressed=true] span,.fin-app .fin-funds-legend button[aria-pressed=true] b{text-decoration:underline;text-decoration-color:#526d55;text-underline-offset:4px}
.fin-app .fin-funds-legend button:focus-visible{outline:2px solid #526d55;outline-offset:3px}
@media(max-width:720px){
 .fin-app .fpl-hero{grid-template-columns:64px minmax(0,1fr);gap:0 10px;padding:12px}
 .fin-app .fpl-stats{display:flex;flex-wrap:wrap;gap:5px;min-width:0}
 .fin-app .fpl-stat{flex:1 1 0;min-width:max-content;padding:8px clamp(5px,1.5vw,8px)}
 .fin-app .fpl-stat b,.fin-app .fpl-stat-in b,.fin-app .fpl-stat-out b{font-size:clamp(14px,3.8vw,16px);white-space:nowrap;overflow:visible;text-overflow:clip;overflow-wrap:normal;font-variant-numeric:tabular-nums}
 .fin-app .fin-funds-legend{gap:6px 16px}
}
@media(max-width:480px){
 .fin-app .fpl-hero{grid-template-columns:minmax(0,1fr)}
 .fin-app .fpl-hero>.fpl-hero-note{display:none}
 .fin-app .fpl-hero>.fpl-hero-content{grid-column:1}
}

/* ── 2026.11.15 用户截图 · 财务明细页头三处收敛（禁删本注释块） ──
   ① 两个跳转颜色必须不一样：返回公示＝主题绿（公示模块），报销与财务＝琥珀（财务模块）；
      2026.11.15 二轮：返回公示 13px 纯文字偏小、又带胶囊感，用户说「更匹配整体」，故做实成
      浅绿细边小胶囊——复用 .fpl-cat-chip 的配色口径（--green-soft 底 / #2f5a3c 字，对比度 > 4.5:1），
      与系统里「绿胶囊页签」同语言；字号 14px，与手机 .fin-app nav a 一致。
   ② 「财务明细」与「报销与财务」同一行且垂直居中对齐（旧版 header 整块 align-items:center，
      左侧「返回+标题」两块叠起来，右侧链接落在整块中线上＝比标题偏上）；
   ③ 字体不用这么大：h1 34/26px → 22/20px、字重 600；右侧跳转 14 → 13px。
   用 .fin-app.fin-public-app 双类提高特异性，压过 1959/2039 的旧字号与 2060 的 align-items:center。 */
.fin-app.fin-public-app .fpl-header{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:8px;flex-wrap:nowrap}
.fin-app.fin-public-app .fpl-title-row{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0}
.fin-app.fin-public-app h1{margin:0;font-size:22px;font-weight:600;line-height:1.3}
/* 2026.11.20 六稿（用户：「财务明细的返回要和爱心支持保持统一」）：返回公示全站统一为
   一行纯绿字（无边框、无底色、无胶囊）——原胶囊样式只留在 git 历史。fpl-back 全站仅
   财务明细与爱心支持两处使用，改这一条两边同时生效。 */
.fin-app.fin-public-app .fpl-back{align-self:flex-start;display:inline-flex;align-items:center;font-size:14px;color:#2f5a3c;text-decoration:none;border:0;background:none;padding:2px 0;line-height:1.2;white-space:nowrap}
.fin-app.fin-public-app .fpl-back:hover{color:#24472f}
.fin-app.fin-public-app .fpl-entry-link{flex:none;font-size:13px;color:var(--amber);text-decoration:none;border:0;background:none;padding:0;white-space:nowrap}
@media(max-width:720px){
 .fin-app.fin-public-app .fpl-header{gap:6px}
 .fin-app.fin-public-app h1{font-size:20px}
}

/* 新增专项复用关联小猫完整卡片；胶囊只用于收起态，不得套住头像和名字。 */
.fin-fund-dialog .entry-cat-options>label{display:flex;flex-direction:column;height:auto;min-height:86px;padding:9px 3px;overflow:visible;border-radius:12px}
.fin-fund-dialog .entry-cat-options .fpl-cat-chip{border-radius:0;overflow:visible;box-shadow:none;background:transparent}
.fin-fund-dialog .fin-fund-badge{position:static;display:block;align-self:center;margin-top:4px;max-width:100%;border-radius:4px}
@media(max-width:374px){.fin-fund-dialog .entry-cat-options>label{height:auto;min-height:96px;padding:10px 8px}}

.fin-app .fin-edit-save-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:end}.fin-app .fin-edit-save-row label{min-width:0;margin:0}.fin-app .fin-edit-save-row button{font-size:14px;white-space:nowrap}.fin-app .fbd-editform textarea[name="note"]{min-height:150px;field-sizing:content;white-space:pre-wrap;overflow-wrap:anywhere;font-size:16px}

/* 使用专项已经唯一指定小猫，不重复显示关联小猫字段（包括字段标题）。 */
.fin-field-cat[hidden]{display:none!important}

/* ── 2026.11.15 用户截图 · 账目明细上半部分 ──
   左＝关联小猫头像＋账目标题，右＝日期/收支/费用/状态四行；竖线分隔，手机改上下堆叠。
   头像复用 .fpl-cat-av（catFaceHtml 与关联小猫选择器、列表卡片同一真源），这里只放大，
   不换图片、不另造猫图；无关联小猫（公共费用）时整块头像不渲染。
   凭证区「原始 / 公示」与底部编辑、作废操作保持原样式，本段只作用于 .fbd-hero。
   文字对比度按 WCAG AA：#2f2a1f / #6f6a58 于 #fdfaf3 均 ≥4.5:1。 */
/* 四行只允许一个字号来源：--fbd-hero-fs。日期/类目/金额/状态的标签、值、胶囊全部引用它，
   层级只靠字重与颜色区分，不再各写 14/16/22/13px（2026.11.15 用户「四行字体字号不一致」）。
   数字统一 tabular-nums，避免日期与金额的数字字形宽窄不一。 */
.fbd-card.fbd-hero{--fbd-hero-fs:16px;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);gap:0;align-items:center;background:#fdfaf3;border:1px solid #ece2d0;border-radius:18px;padding:20px 22px;box-shadow:none;font-variant-numeric:tabular-nums}
.fbd-card.fbd-hero .fbd-hero-main{display:flex;align-items:center;gap:12px;min-width:0;padding-right:16px}
.fbd-card.fbd-hero .fbd-hero-avatar{display:block;width:92px;height:92px;flex:0 0 92px;border-radius:50%;overflow:hidden;background:#f1ead9;border:2px solid #fff;box-shadow:0 2px 10px rgba(60,45,25,.08)}
.fbd-card.fbd-hero .fbd-hero-avatar .fpl-cat-av{width:100%;height:100%;min-width:0;border-radius:0;object-fit:cover;object-position:center 30%;font-size:34px;background:#f1ead9;color:#6b7d5a}
.fbd-card.fbd-hero .fbd-hero-avatar-stack{display:flex;align-items:center;overflow:visible;background:transparent;border:0;box-shadow:none}
.fbd-card.fbd-hero .fbd-hero-avatar-stack .fpl-cat-av{width:52px;height:52px;flex:0 0 52px;min-width:52px;border-radius:50%;border:2px solid #fff;margin-left:-14px;box-shadow:0 2px 8px rgba(60,45,25,.12)}
.fbd-card.fbd-hero .fbd-hero-avatar-stack .fpl-cat-av:first-child{margin-left:0}
.fbd-card.fbd-hero .fbd-hero-text{min-width:0}
.fbd-card.fbd-hero .fbd-hero-title{margin:0;font-size:22px;line-height:1.32;font-weight:750;color:#2f2a1f;overflow-wrap:anywhere}
.fbd-card.fbd-hero .fbd-hero-sub{margin:7px 0 0;font-size:14px;line-height:1.5;color:#6f6a58;overflow-wrap:anywhere}
/* 抽屉里有给 dl 用的「90px + 1fr」两列 grid 规则；这里必须显式回成 block，
   否则四行会被塞进 90px 窄列，日期/金额逐字竖排（2026.11.15 真浏览器截图发现）。 */
.fbd-card.fbd-hero .fbd-hero-rows{display:block;margin:0;padding-left:22px;border-left:1px solid #ece3d3;min-width:0;font-family:inherit}
.fbd-card.fbd-hero .fbd-hero-row{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:50px;padding:8px 0;border-bottom:1px solid #efe7d7}
.fbd-card.fbd-hero .fbd-hero-row:last-child{border-bottom:0}
.fbd-card.fbd-hero .fbd-hero-key{display:flex;align-items:center;gap:10px;margin:0;font-family:inherit;font-size:var(--fbd-hero-fs);line-height:1.45;font-weight:500;color:#6f6a58;white-space:nowrap}
.fbd-card.fbd-hero .fbd-hero-ic{width:19px;height:19px;flex:0 0 19px;color:#8a8271}
.fbd-card.fbd-hero .fbd-hero-val{margin:0;min-width:0;text-align:right;font-family:inherit;font-size:var(--fbd-hero-fs);line-height:1.45;font-weight:650;color:#2f2a1f;overflow-wrap:anywhere}
.fbd-card.fbd-hero .fbd-hero-money{font-size:var(--fbd-hero-fs);font-weight:750;letter-spacing:-.01em}
.fbd-card.fbd-hero .fbd-hero-pill{display:inline-block;padding:5px 14px;border-radius:999px;background:#e3f2dd;color:#2f6b3b;font-family:inherit;font-size:var(--fbd-hero-fs);font-weight:650;line-height:1.45;white-space:nowrap}
.fbd-card.fbd-hero .fbd-hero-pill.is-wait{background:#fbf0d8;color:#7a5a12}
.fbd-card.fbd-hero .fbd-hero-pill.is-void{background:#fbe6e0;color:#9d3f2b}
.fbd-card.fbd-hero .fbd-hero-pill.is-neutral{background:#eee9dd;color:#5c5648}
/* 标题搬进信息卡后，头部只剩动作按钮：去掉原来那条浅绿标题条，按钮直接靠右。 */
.fbd-head-actions{background:transparent;border-radius:0;padding:0;margin-bottom:14px;justify-content:flex-end;gap:8px}
.fbd-head>.fbd-eyebrow{flex:1 1 auto;min-width:0;margin:0}
@media(max-width:720px){
 .fbd-card.fbd-hero{grid-template-columns:1fr;gap:14px;padding:16px}
 .fbd-card.fbd-hero .fbd-hero-main{padding-right:0;gap:13px}
 .fbd-card.fbd-hero .fbd-hero-avatar{width:68px;height:68px;flex:0 0 68px}
 .fbd-card.fbd-hero .fbd-hero-avatar-stack .fpl-cat-av{width:40px;height:40px;flex:0 0 40px;min-width:40px;margin-left:-12px}
 .fbd-card.fbd-hero .fbd-hero-title{font-size:19px}
 .fbd-card.fbd-hero .fbd-hero-rows{padding-left:0;padding-top:14px;border-left:0;border-top:1px solid #ece3d3}
 .fbd-card.fbd-hero .fbd-hero-row{min-height:44px;padding:7px 0}
 /* 手机端不另设字号：金额与其它三行共用同一个 token。 */
 .fbd-card.fbd-hero .fbd-hero-money{font-size:var(--fbd-hero-fs)}
}

/* ── 2026.11.15 用户反馈 · 凭证查看器：多张左右切换 + 比例收敛（禁删本注释块） ──
   ① 财务明细「N 张 ›」旧版只把 publicFiles[0] 传进 showFile → 点开只能看第一张；
      现整组 id 进查看器，左右按钮 / 键盘 ←→ / 触屏左右滑切换，标题旁显示「1 / 3」。
   ② 旧版 .fin-voucher img 只限宽不限高，长截图撑满弹层、头部 ✕ 随内容滚出视野 →
      图片限高到视口内 + 头部 sticky 常驻；图片仍 width/height auto + object-fit:contain，
      只在超出容器时等比缩小，不放大、不裁切（遵守 2026.11.12 图片铁律）。
   ③ 弹层桌面收敛到 min(88vw,720px)、手机 85dvh，四周边距 ≥12px，✕ 与箭头 ≥44px 触控区。
      用双类选择器压过 .fin-app button 的绿底大胶囊与 3879/3886/3899 的通用弹层规则。 */
.fin-image-dialog.fin-voucher-viewer{width:min(88vw,720px);max-width:min(88vw,720px);max-height:88vh;max-height:88dvh;overflow:auto;padding:16px}
.fin-image-dialog.fin-voucher-viewer:has(.fin-csv){width:min(94vw,960px);max-width:min(94vw,960px)}
.fin-image-dialog.fin-voucher-viewer .fin-dialog-head{position:sticky;top:0;z-index:3;display:flex;align-items:center;justify-content:space-between;gap:12px;background:#fffdf9;margin:-16px -16px 12px;padding:10px 16px;border-bottom:1px solid #eee9dc}
.fin-image-dialog.fin-voucher-viewer .fin-voucher-heading{display:flex;align-items:baseline;gap:10px;min-width:0}
.fin-image-dialog.fin-voucher-viewer .fin-voucher-count{font-size:12px;color:#8f8b7f;white-space:nowrap}
.fin-image-dialog.fin-voucher-viewer .fin-dialog-close{width:36px;height:36px;min-width:36px;font-size:16px}
.fin-image-dialog.fin-voucher-viewer .fin-voucher-stage{position:relative;display:flex;align-items:center;justify-content:center;min-width:0;min-height:120px}
.fin-image-dialog.fin-voucher-viewer .fin-voucher{margin:0;display:grid;gap:8px;justify-items:center;min-width:0;max-width:100%;overflow:visible}
.fin-image-dialog.fin-voucher-viewer .fin-voucher img{display:block;width:auto;height:auto;max-width:100%;max-height:calc(88dvh - 170px);object-fit:contain;margin-left:auto;margin-right:auto;border-radius:10px;background:#f4f2ec}
.fin-image-dialog.fin-voucher-viewer .fin-voucher>a{display:block;margin:10px 0 0;font-size:13px;color:var(--green,#3b7d4f)}
.fin-image-dialog.fin-voucher-viewer .fin-voucher-nav{position:absolute;top:50%;transform:translateY(-50%);z-index:2;display:grid;place-items:center;flex:none;width:44px;height:44px;min-width:44px;padding:0;margin:0;border:1px solid #e0dbcc;border-radius:50%;background:#fffdf9ee;color:#4b5c47;font-size:26px;line-height:1;box-shadow:0 2px 10px #20352618;cursor:pointer}
.fin-image-dialog.fin-voucher-viewer .fin-voucher-nav.prev{left:0}
.fin-image-dialog.fin-voucher-viewer .fin-voucher-nav.next{right:0}
.fin-image-dialog.fin-voucher-viewer .fin-voucher-nav:hover{background:#e9f0e8;color:#2f5a3c}
.fin-image-dialog.fin-voucher-viewer .fin-voucher-nav:focus-visible{outline:2px solid #3b7d4f;outline-offset:2px}
@media(max-width:720px){
 .fin-image-dialog.fin-voucher-viewer{width:calc(100vw - 24px);max-width:calc(100vw - 24px);max-height:85vh;max-height:85dvh;padding:12px}
 .fin-image-dialog.fin-voucher-viewer .fin-dialog-head{margin:-12px -12px 10px;padding:9px 12px}
 .fin-image-dialog.fin-voucher-viewer .fin-dialog-close{width:44px;height:44px;min-width:44px;font-size:18px}
 .fin-image-dialog.fin-voucher-viewer .fin-voucher img{max-height:calc(85dvh - 170px)}
 .fin-image-dialog.fin-voucher-viewer .fin-voucher-nav{width:44px;height:44px;min-width:44px;font-size:24px}
 .fin-image-dialog.fin-voucher-viewer .fin-voucher-nav.prev{left:-2px}
 .fin-image-dialog.fin-voucher-viewer .fin-voucher-nav.next{right:-2px}
}

/* ── 2026.11.15 用户二轮反馈 · 账目明细「头部层级 + 底部双主按钮」（禁删本注释块） ──
   ① 头部：kicker 10px→12px、标题 22px→20px、关闭按钮由米棕小方块改成中性紧凑胶囊，
      整块加底部分隔线并收紧留白；个人工作台详情也复用这套抽屉标题栏。
   ② 底部：作废按钮原来 13px / 7px padding「又很小」，与编辑一起收成两枚等宽大按钮
      （min-height 48px、16px 字、≥44px 触控区），对齐参考图「编辑信息 / 作废记录」。
   ③ 对比度 WCAG AA：#5f7053 / #2f2a1f 于 #f8f8f2、#fff 于 #2f6b3b、#9d3f2b 于 #fff 均 ≥4.5:1。 */
.wb-drawer.wb-drawer-book .wb-drawer-head{align-items:center;gap:12px;padding:14px 0 13px;margin-bottom:16px;border-bottom:1px solid #e6e3d6;background:#f8f8f2}
.wb-drawer.wb-drawer-book .wb-drawer-head>div{min-width:0}
.wb-drawer.wb-drawer-book .wb-drawer-head small{display:block;font-size:12px;line-height:1.3;font-weight:600;letter-spacing:.06em;color:#5f7053}
.wb-drawer.wb-drawer-book .wb-drawer-head h2{margin:5px 0 0;font-size:20px;line-height:1.35;font-weight:650;color:#2f2a1f;overflow-wrap:anywhere}
.wb-drawer.wb-drawer-book .wb-drawer-head>button{flex:0 0 auto;min-height:40px;padding:8px 14px;margin:0;font-size:14px;font-weight:600;line-height:1.4;border:1px solid #d9dfd0;border-radius:10px;background:#fff;color:#4a5a42;box-shadow:none}
.wb-drawer.wb-drawer-book .wb-drawer-head>button:hover{background:#eef3e8;border-color:#b9cdb0;color:#2f5a3c}
.wb-drawer.wb-drawer-book .wb-drawer-head>button:focus-visible{outline:2px solid #3b7d4f;outline-offset:2px}
/* 卡片顶部只在「待审核」时留审核动作，非审核态不再挂孤零零一个「编辑」。 */
.fbd-head-actions button{min-height:40px;padding:9px 16px;font-size:14px;font-weight:600}
/* 底部两枚等宽大按钮：主操作＝绿底白字，危险操作＝白底细边暗红字。 */
.wb-drawer .fbd-footer.fbd-footer-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;justify-content:stretch;margin-top:20px;padding-top:18px;border-top:1px solid #efe9dc}
.wb-drawer .fbd-footer.fbd-footer-actions.fbd-footer-single{grid-template-columns:1fr}
.wb-drawer .fbd-footer.fbd-footer-actions button{min-height:48px;padding:12px 18px;margin:0;font-size:16px;font-weight:650;line-height:1.4;border-radius:12px;white-space:nowrap;cursor:pointer;transition:background .15s ease,border-color .15s ease}
.wb-drawer .fbd-footer.fbd-footer-actions .fbd-action-edit{background:#2f6b3b;border:1px solid #2f6b3b;color:#fff}
.wb-drawer .fbd-footer.fbd-footer-actions .fbd-action-edit:hover{background:#255731;border-color:#255731}
.wb-drawer .fbd-footer.fbd-footer-actions .fbd-action-void{background:#fff;border:1px solid #e6c4b8;color:#9d3f2b}
.wb-drawer .fbd-footer.fbd-footer-actions .fbd-action-void:hover{background:#fdf3ef;border-color:#d9a897}
.wb-drawer .fbd-footer.fbd-footer-actions button:focus-visible{outline:2px solid #3b7d4f;outline-offset:2px}
@media(max-width:480px){
 .wb-drawer.wb-drawer-book .wb-drawer-head{padding:12px 0 11px;margin-bottom:14px}
 .wb-drawer.wb-drawer-book .wb-drawer-head h2{font-size:19px}
 .wb-drawer .fbd-footer.fbd-footer-actions{gap:10px}
 .wb-drawer .fbd-footer.fbd-footer-actions button{padding:12px 8px;font-size:16px}
}
@media(prefers-reduced-motion:reduce){.wb-drawer .fbd-footer.fbd-footer-actions button{transition:none}}

/* ── 2026.11.15 用户拍板 · 所有右侧抽屉编辑态统一页脚（禁删本注释块） ──
   顺序固定：修改原因（独立整行、必填）→ 底部左「保存修改」/ 右「取消修改」两枚等宽大按钮。
   刻意不复用 .fbd-form-actions / .fin-edit-save-row：旧规则里有手机 column-reverse、
   1fr auto 两列，会把原因和保存挤在一行、还把两个按钮顺序颠倒。
   三处共用：财务明细→编辑账目、审核台／我的报销→编辑报销、处理付款→编辑这笔报销。
   对比度 WCAG AA：#2f2a1f / #5f7053 于 #fff、#fff 于 #2f6b3b、#4a5a42 于 #fff 均 ≥4.5:1。 */
.fbd-edit-reason{margin:14px 0 0;padding-top:14px;border-top:1px solid #efe9dc}
.fbd-edit-reason label{display:grid;gap:8px;font-size:14px;font-weight:600;color:#5f7053}
.fbd-edit-reason input{width:100%;box-sizing:border-box;font-size:16px;line-height:1.5;padding:11px 13px;border:1px solid #d8dccc;border-radius:10px;background:#fff;color:#2f2a1f}
.fbd-edit-reason input:focus{outline:none;border-color:#3b7d4f;box-shadow:0 0 0 3px rgba(59,125,79,.12)}
/* 输入框继承了标签的 600 字重，占位符跟着变粗像正文，这里单独压回常规字重（2026.11.15）。 */
.fbd-edit-reason input::placeholder{font-weight:400;color:#a5a08b;opacity:1}
.fbd-edit-reason input:focus-visible{outline:2px solid #3b7d4f;outline-offset:2px}
.fbd-edit-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:14px}
.fbd-edit-actions button{min-height:48px;padding:12px 16px;margin:0;font:inherit;font-size:16px;font-weight:650;line-height:1.4;border-radius:12px;cursor:pointer;transition:background .15s ease,border-color .15s ease}
.fbd-edit-actions .fbd-action-save{background:#2f6b3b;border:1px solid #2f6b3b;color:#fff}
.fbd-edit-actions .fbd-action-save:hover{background:#255731;border-color:#255731}
.fbd-edit-actions .fbd-action-cancel{background:#fff;border:1px solid #d9dfd0;color:#4a5a42}
.fbd-edit-actions .fbd-action-cancel:hover{background:#f2f6ee;border-color:#b9cdb0}
/* 作废第 2 步的主按钮是破坏性操作，不能沿用绿色「保存修改」的语义。 */
.fbd-edit-actions .fbd-action-danger{background:#a13d30;border:1px solid #a13d30;color:#fff}
.fbd-edit-actions .fbd-action-danger:hover{background:#8a3125;border-color:#8a3125}
.fbd-edit-actions button:focus-visible{outline:2px solid #3b7d4f;outline-offset:2px}
@media(max-width:480px){.fbd-edit-actions{gap:10px}.fbd-edit-actions button{padding:12px 8px;font-size:16px}}
@media(prefers-reduced-motion:reduce){.fbd-edit-actions button{transition:none}}

/* 作废抽屉头部只剩「第 N 步 · 共 2 步」一行，不再需要整块浅绿底（重复的取消按钮已移进页脚）。 */
.fbd-voiding .fbd-head{background:transparent;border-radius:0;padding:0;margin-bottom:10px}
.fbd-voiding .fbd-head .fbd-eyebrow{margin:0;font-size:13px;font-weight:650;letter-spacing:.02em;color:#7d8570}

/* 2026-11-15 公开账本：删除插画，工具与收支逐列对应，选猫只用卡片选中态 */
.fin-app .fpl-hero{grid-template-columns:minmax(0,1fr)}.fin-app .fpl-hero>.fpl-hero-content{grid-column:1}.fin-app .fpl-kind,.fin-app .fpl-cat-chip{display:inline-flex;align-items:center;min-height:24px;box-sizing:border-box}.fin-app .fpl-cat-select .entry-cat-options input[type=checkbox]{position:absolute;opacity:0;width:1px;height:1px;pointer-events:none}.fin-app .fpl-cat-select .entry-cat-options label:has(input:checked){background:#eef2e4;border-radius:8px;outline:1px solid #a9b79a}
@media(max-width:720px){.fin-app .fpl-toolbar .fpl-types{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
/* 🔴 2026.11.21 用户拍板（二轮改口）：顶部「全部/收入/支出」保持不动；第二行统一为
   [类目][时间][小猫][搜索图标] 四件套，管理端与公示页（用户端）同款。
   类目胶囊默认文案就叫「类目」（默认即全部），可变文案「已选 N 类」靠 1.4fr 加宽格；
   管理条 .fpl-admin-tools 在手机端 display:contents 拆进网格（记一笔整行、面板/搜索栏跨满）；
   公示页没有记一笔，四件套天然对齐。 */
/* 🔴 2026.11.21 三轮（用户截图拍板）：四件套改成 [时间][类目][小猫][搜索] 的顺序，
   四格等宽各占 1/4（不再 1.4fr 偏袒类目）；小猫胶囊默认文案去掉「全部」两字（见 finance-ui.cjs catLabel）。 */
.fin-app .fpl-toolbar .fpl-tools{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.fin-app .fpl-toolbar .fpl-tools>.fpl-round{order:4;width:auto;min-width:0;padding:0;justify-content:center;border-radius:999px;font-size:14px}
.fin-app .fpl-toolbar .fpl-tools>.fpl-round .fpl-round-label{display:none}
.fin-app .fpl-toolbar .fpl-tools>.fpl-round .fpl-ic{display:block}
.fin-app .fpl-toolbar .fpl-tools>[data-pub-panel="date"]{order:1}
.fin-app .fpl-toolbar .fpl-tools>[data-pub-panel="filter"]{order:3}
/* display:contents 必须连 3918 行的 .fin-ledger-management 高特异性规则一起压掉，否则管理条拆不开 */
.fin-app .fpl-admin-tools,.fin-app .fin-ledger-management .fpl-admin-tools{display:contents}
.fin-app .fpl-admin-tools .fpl-pill{order:2}
.fin-app .fpl-admin-tools .fpl-pill .fpl-caret{display:none}
.fin-app .fpl-admin-tools>a{order:5;grid-column:1/-1}
/* 2026.11.21 用户拍板：手机端管理条——类目与记一笔同行、各占 1/2（二轮改口，替代早上的 2/3+1/3）；
   时间/小猫/搜索挪到第二行三等分。公示页没有记一笔（无 has-add），保持原四件套不动。 */
/* 2026.11.21 二轮（用户：「类目和记一笔在一行，各自 1/2」）：手机端管理条改成六等分网格——
   第一行 类目 1/2 + 记一笔 1/2；第二行 时间/小猫/搜索 各 1/3。公示页没有记一笔（无 has-add），
   保持原四件套不动。门控改用 .fpl-tools 上直接挂的 has-add 类（微信老内核不支持 :has()）。 */
.fin-app .fpl-toolbar .fpl-tools.has-add{grid-template-columns:repeat(6,minmax(0,1fr))}
.fin-app .fpl-toolbar .fpl-tools.has-add .fpl-admin-tools .fpl-pill{grid-column:1/4;grid-row:1}
.fin-app .fpl-toolbar .fpl-tools.has-add .fpl-admin-tools>a{grid-column:4/7;grid-row:1}
/* 记一笔链接与类目胶囊严格等高等位：胶囊吃全局 .fin-app button 的 margin(5/7/5/0)，
   链接是 <a> 没有这层 margin，会差 5px 且把行顶高——补成同口径（2026.11.21 三轮探针） */
.fin-app .fpl-toolbar .fpl-admin-tools>a{height:44px;margin:5px 7px 5px 0}
.fin-app .fpl-toolbar .fpl-tools.has-add>[data-pub-panel="date"]{grid-column:1/3;grid-row:2}
.fin-app .fpl-toolbar .fpl-tools.has-add>[data-pub-panel="filter"]{grid-column:3/5;grid-row:2}
.fin-app .fpl-toolbar .fpl-tools.has-add>.fpl-round{grid-column:5/7;grid-row:2}
.fin-app .fpl-toolbar .fpl-tools>.fpl-panel{order:6;grid-column:1/-1}
.fin-app .fpl-toolbar .fpl-tools>.fpl-search{order:7;grid-column:1/-1}
.fin-app .fpl-toolbar .fpl-pill{width:100%;box-sizing:border-box;padding:0 8px;font-size:14px}
.fin-app .fpl-toolbar .fpl-pill .fpl-ic{display:none}
.fin-app .fpl-filter-mobile{font-size:14px;min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fin-app .fin-funds-head strong{font-size:14px}}
/* 2026.11.19 公开明细备注：桌面端与网页手机端一致，改为每条底部整行（跨满 + 「备注：」前缀 + 空值隐藏）。 */
.fin-public-app .fpl-head,.fin-public-app .fpl-row{grid-template-columns:46px 52px minmax(76px,1fr) 100px minmax(120px,2fr) 100px 100px 50px;min-width:800px}
.fin-public-app .fpl-remark{grid-column:1/-1;grid-row:2;min-width:0;white-space:pre-wrap;overflow-wrap:anywhere;color:var(--ink-3)}
.fin-public-app .fpl-remark:before{content:"备注："}
.fin-public-app .fpl-remark-empty{display:none}
/* 2026.11.19 手机端「支出」与猫标签同行对齐（用户要求）：cats 从第三行挪到第一行紧跟 badge，
   与管理端 .fin-ledger-management 的 "date badge cats amount amount" 保持一致；mid 原是空位。 */
@media(max-width:720px){.fin-public-app .fpl-row{min-width:0;grid-template-columns:46px auto minmax(0,1fr) auto auto;grid-template-areas:"date badge cats amount amount" "note note note note note" "kind kind kind bal files" "remark remark remark remark remark"}.fin-public-app .fpl-remark{grid-area:remark}.fin-public-app .fpl-remark:before{content:"备注："}.fin-public-app .fpl-remark-empty{display:none}}
/* 2026.11.19 空备注整行不显示（用户要求）：手机端连同「备注：」前缀一起隐藏；
   桌面端保留空占位格（9 列网格错位防护，只留白不出字）。 */
@media(max-width:360px){.fin-public-app .fpl-row{grid-template-areas:"date badge cats amount amount" "note note note note note" "kind kind kind kind kind" "bal bal bal files files" "remark remark remark remark remark"}}

/* ============================================================
   2026-11-20 我的工作台（全部记录 / 爱心支持 / 费用报销）
   个人工作台、同学详情抽屉与支持登记共用配色。
   ============================================================ */
:is(.wb-mine,.fin-applicant-drawer,.fin-support-dialog,.fin-support-success){
  --mine-page:#f6f7f1;--mine-surface:#fffefa;--mine-line:#e1e6dc;--mine-control:#cbd4c7;
  --mine-ink:#344438;--mine-muted:#5d6b5e;--mine-accent:#496250;--mine-soft:#eaf0e6;
}
/* 🔴 2026-11-23 用户拍板：用户端工作台外壳与审核台完全对齐（以审核台为参考）。
   历史：这里曾有一整套 wb-mine 专属壳主题（侧栏 #42584b、选中米色 #f1ebdc、品牌行 88px 带底边线、
   无大壳圆角、wb-main 窄内边距）。用户要求两端看起来是同一个系统，因此壳级覆盖全部删除，
   改用上方的 .wb-shell/.wb-finance 默认壳（深橄榄侧栏 #34382d、金棕选中 #f3e6c0、大圆角+阴影、
   wb-main 30/34 间距、米黄状态条）。仅保留：250px 侧栏宽（右上角要放退出登录，228px 会挤）、
   右上角按钮容器、以及下方 ws-* 列表内容样式。
   若日后要改回独立配色，改的是这一段的注释依据，不是随手加回覆盖。 */
/* 2026.11.22 用户：品牌行右上角统一放「退出登录」（桌面、手机同一处，底部不再重复）。
   侧栏 216→250px：品牌文字 + 小副标题 + 按钮同处一行，216px 会把「人通小猫」挤成逐字竖排。 */
.wb-mine .wb-shell{grid-template-columns:250px minmax(0,1fr)}
.wb-mine .wb-side-head{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}
/* 2026.11.23 壳对齐后品牌行变回审核台样式（40px mark + 19px 字 + 副标题），加上右上角退出按钮
   在 250px 侧栏里会被挤成竖排（实测「人通小猫」逐字换行）。这里只做「塞得下按钮」的必要收窄：
   左右 padding 改 0（省 18px）、mark 32px、字号 17px、副标题单行、按钮缩到 26px 高，
   其余（颜色/字体/选中高亮/主体间距）全部继承审核台。 */
.wb-mine .wb-side-head .wb-brand{flex:1 1 auto;min-width:0;padding:0 0 24px;gap:10px;font-size:19px}
.wb-mine .wb-side-head .wb-brand>span:last-child{min-width:0;white-space:nowrap}
.wb-mine .wb-side-head .wb-brand small{letter-spacing:0;font-size:11px;margin-top:3px}
.wb-mine .wb-side-head .wb-brand-mark{width:40px;height:40px;font-size:23px;border-radius:50%}
.wb-mine .wb-side-head-actions{display:flex;align-items:center;flex:none;gap:8px;padding-right:0;align-self:center}
.wb-mine .wb-side-head-actions button{font:inherit;font-size:11.5px;line-height:1.2;min-height:26px;padding:0 9px;border:1px solid #ffffff38;border-radius:999px;background:#ffffff14;color:#f2f5ee;margin:0;cursor:pointer;white-space:nowrap;flex:none}
.wb-mine .wb-side-head-actions button:hover{background:#ffffff26}
/* 2026-11-22 用户拍板：财务账号（同一手机号可报销也可审核）要有「切换管理端 / 切换用户端」。
   手机端品牌行右上角两枚并排（切换 + 退出登录）；桌面端个人工作台侧栏只有 250px，放两枚会把
   「人通小猫」挤成省略号，所以桌面端右上角只留退出登录，切换按钮放在侧栏底部 foot（手机端 foot 隐藏）。 */
@media (min-width:761px){.wb-mine .wb-side-head-actions [data-fin="switch-side"]{display:none}}
/* 2026.11.22 用户两轮拍板：个人工作台底部返回区整行删掉（先「← 返回公示」后「‹ 返回」胶囊），
   回公示靠微信/浏览器自带返回手势；foot 传空串，由 .wb-sidebar-foot:empty{display:none} 兜底整块隐藏。 */
/* 2026.11.23 壳对齐：wb-main 间距、页面底色、状态条、面板底全部改用审核台默认值（见上方 .wb-shell）。 */
/* 2026.11.23 用户拍板：个人工作台顶部状态页签改成与管理端审核台同一款胶囊页签（对照用户图2）——
   浅灰绿胶囊组底 + 选中米金色块 + 角标徽章，去掉旧的下划线文字页签。业务绑定不变（data-fin="ws-tab"）。 */
.wb-mine .ws-top{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:57px;margin-bottom:8px;padding-inline:12px}
.wb-mine .ws-tabs{flex:1 1 auto;display:flex;align-items:stretch;gap:4px;min-width:0;background:#eceee0;border-radius:12px;padding:4px;overflow-x:auto;scrollbar-width:none}
.wb-mine .ws-tabs::-webkit-scrollbar{display:none}
.wb-mine .ws-tabs button{flex:1 0 auto;border:0;border-radius:9px;background:transparent;padding:9px 12px;min-height:46px;display:inline-flex;align-items:center;justify-content:center;gap:6px;font:inherit;font-size:14px;color:#5c6455;cursor:pointer;white-space:nowrap}
.wb-mine .ws-tabs button:hover{background:#ffffff55}
.wb-mine .ws-tabs button[aria-pressed="true"]{background:#f3e6c0;color:#5a4a1e;font-weight:700;box-shadow:0 1px 2px #7a5c0f33}
.wb-mine .ws-tabs button[aria-pressed="true"]:hover{background:#eddfb4}
.wb-mine .ws-tab-count{min-width:20px;height:20px;padding:0 6px;border-radius:10px;background:#dde0cd;font-size:12px;line-height:20px;font-weight:400;color:inherit}
.wb-mine .ws-tabs button[aria-pressed="true"] .ws-tab-count{background:#e8d8a8;color:#5a4a1e}
.wb-mine .ws-action{display:inline-flex;align-items:center;justify-content:center;flex:none;min-height:44px;padding:0 15px;border:0;border-radius:999px;background:var(--mine-accent);color:#fff;font-size:15px;font-weight:600;text-decoration:none;cursor:pointer;white-space:nowrap}
.wb-mine .ws-action:hover{background:var(--wb-sidebar);color:#fff}
.wb-mine :is(.ws-action,.ws-row,.ws-tabs button):focus-visible{outline:2px solid var(--mine-accent);outline-offset:2px}
.wb-mine .ws-row:focus-visible{outline-offset:-2px}
/* 每条记录独立成卡，卡片内容与筛选左边缘对齐。 */
.wb-mine .ws-list{display:grid;gap:10px;margin:0}
.wb-mine .ws-row{display:grid;grid-template-columns:104px minmax(0,1fr);align-items:center;gap:10px;width:100%;min-height:62px;padding:6px 11px;margin:0;border:1px solid var(--mine-line);border-radius:14px;background:var(--mine-surface);text-align:left;font:inherit;cursor:pointer;box-sizing:border-box}
.wb-mine button.ws-row:hover{background:#f2f5ee}
.wb-mine .ws-row-broken{cursor:default}
.wb-mine .ws-cats{display:flex;align-items:center;gap:4px;min-width:0;overflow:hidden}
/* 2026-11-23 用户问「还有撑大页面的情况吗」：320px 实测超长猫名（如「超级无敌长名字的猫王…」）
   在 .ws-nocat（inline-block + nowrap，默认 min-width:auto）里不收缩，直接溢出到标题列和「猫粮」重叠。
   猫名格一律硬裁切 + 省略号：宁可截断，不许出格。 */
.wb-mine .ws-cats>*{min-width:0}
.wb-mine .ws-nocat{max-width:100%;overflow:hidden;text-overflow:ellipsis}
.wb-mine .ws-cats .fpl-cat-chip{max-width:100%;overflow:hidden;text-overflow:ellipsis}
.wb-mine .ws-cats .fpl-cat-chip,.wb-mine .entry-cat-picker .fpl-cat-chip{background:var(--mine-soft);color:var(--mine-ink);font-size:13px;padding:2px 8px 2px 2px;gap:4px;line-height:1.5;max-width:96px}
.wb-mine .ws-cats .fpl-cat-av,.wb-mine .ws-cats .fpl-cat-av-empty{width:16px;height:16px;min-width:16px;font-size:10px;line-height:16px;object-fit:contain;border-radius:50%}
.wb-mine .ws-nocat{display:inline-block;padding:2px 9px;border-radius:999px;background:#F1EEE5;color:#606c5e;font-size:13px;line-height:1.5;white-space:nowrap}
.wb-mine .ws-cat-more{font-size:11px;color:#8C9388}
.wb-mine .ws-main{display:grid;gap:3px;min-width:0}
.wb-mine .ws-l1{display:flex;align-items:baseline;justify-content:space-between;gap:10px;min-width:0}
.wb-mine .ws-title{font-size:16px;font-weight:600;color:#344033;line-height:1.45;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.wb-mine .ws-amount{flex:none;font-size:17px;font-weight:650;font-variant-numeric:tabular-nums;color:#344033;white-space:nowrap}
.wb-mine .ws-l2{display:flex;align-items:center;gap:8px;min-width:0}
.wb-mine .ws-biz{flex:none;font-size:13px;font-weight:600}
.wb-mine .ws-biz.is-expense{color:#536c85}
.wb-mine .ws-biz.is-support{color:#8c5960}
.wb-mine .ws-kind{font-size:13px;color:#606c5e;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.wb-mine .ws-state{margin-left:auto;flex:none;font-size:13px;font-weight:600;white-space:nowrap}
.wb-mine .ws-state[data-state="pending"]{color:#795e33}
.wb-mine .ws-state[data-state="approved"],.wb-mine .ws-state[data-state="draft"]{color:#526d8a}
.wb-mine .ws-state[data-state="paid"],.wb-mine .ws-state[data-state="posted"]{color:#456c50}
.wb-mine .ws-state[data-state="returned"],.wb-mine .ws-state[data-state="rejected"]{color:#8d5a56}
.wb-mine .ws-empty{padding:34px 0;text-align:center;color:#606c5e;font-size:15px}

.wb-drawer-backdrop:has(>.fin-applicant-drawer) .wb-drawer-scrim{background:#26392e59!important}
.wb-drawer.fin-applicant-drawer{background:var(--mine-page);border-radius:20px 0 0 20px;box-shadow:-12px 0 44px #25372d2b}
.wb-drawer.fin-applicant-drawer .wb-drawer-head{background:var(--mine-page);border-color:var(--mine-line)}
.wb-drawer.fin-applicant-drawer .wb-drawer-head>button{background:var(--mine-surface);border-color:var(--mine-control);border-radius:999px;color:var(--mine-accent)}
.wb-drawer.fin-applicant-drawer .wb-drawer-head>button:hover{background:var(--mine-soft)}
.wb-drawer.fin-applicant-drawer .fin-panel{background:var(--mine-surface);border-color:var(--mine-line);border-radius:17px}
.fin-applicant-drawer .ws-support-detail .fbd-head{background:var(--mine-soft)}
.fin-applicant-drawer :is(.fbd-editform,.ws-support-detail) :is(input:not([type=checkbox]):not([type=file]),textarea,select){
  background:var(--mine-surface);border-color:var(--mine-control);border-radius:12px;color:var(--mine-ink)
}
.fin-applicant-drawer .fin-drawer-review-actions button{background:var(--mine-soft);border-color:var(--mine-control);color:var(--mine-ink)}
.fin-drawer .fin-applicant-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 10px;margin:0 0 16px}
.fin-drawer .fin-applicant-field{display:grid;grid-column:1/-1;gap:6px;min-width:0;align-content:start}
.fin-drawer .fin-applicant-field.is-paired{grid-column:auto}
.fin-drawer .fin-applicant-field dt{font-size:14px;color:#606c5e}
.fin-drawer .fin-applicant-field dd{display:block;min-width:0;min-height:44px;margin:0;padding:10px 12px;box-sizing:border-box;border:1px solid var(--mine-line);border-radius:12px;background:#f8f9f4;color:var(--mine-ink);font-size:16px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}
.fin-drawer .fin-applicant-field .fpl-cat-chip{margin-inline-end:6px}
.wb-mine .wb-warning{background:#fff6e8;border:1px solid #ecd9b5;color:#8a6b2e;padding:9px 12px;border-radius:9px;font-size:12px;margin:10px 0}
/* 登记支持弹窗：560–600px 双列，控件高 40px，间距 12px，按钮等高。
   🔴 2026.11.20 用户「内容超出弹层」：max-height 原来只写 100dvh——微信 iOS 内核不认 dvh 时
   整条声明作废、弹层撑到比视口还高且无法滚动，底部「相关照片/添加照片」直接看不见。
   先写 100vh 兜底再写 100dvh 覆盖，两个内核都拿得到高度上限。 */
dialog.fin-support-dialog{margin:auto;box-sizing:border-box;width:min(580px,calc(100vw - 32px));max-width:calc(100vw - 32px);max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);overflow:auto;overscroll-behavior:contain;border:1px solid var(--mine-line);border-radius:20px;padding:20px 22px;background:var(--mine-page);color:var(--mine-ink);box-shadow:0 16px 48px #25372d26}
dialog:is(.fin-support-dialog,.fin-support-success)::backdrop{background:#26392e59}
.fin-support-dialog .fin-dialog-head{margin:0 0 14px}
.fin-support-dialog .fin-dialog-head h3{font-size:16px;color:#344033}
/* 字段列必须可收缩：① 列用 minmax(0,1fr)，不用裸 1fr；② 控件 min-width:0。
   🔴 2026.11.21 用户「还是太宽、能左右滑动、每个格式都变宽」：iOS 原生日期控件固有宽度大，
   grid 项的自动最小尺寸（min-width:auto）会把 1fr 列撑得比弹层还宽——整列所有控件跟着变宽、
   form 内部能横向滑。控件加 min-width:0 + 列用 minmax(0,1fr) 后日期框收敛到列宽内。 */
.fin-support-dialog .ws-form-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}
.fin-support-dialog label{display:grid;gap:6px;font-size:13px;color:var(--mine-muted);min-width:0}
.fin-support-dialog input,.fin-support-dialog select,.fin-support-dialog textarea{width:100%;min-width:0;box-sizing:border-box;min-height:40px;padding:9px 10px;border:1px solid var(--mine-control);border-radius:12px;background:var(--mine-surface);font:inherit;font-size:16px;color:var(--mine-ink);line-height:1.45}
.fin-support-dialog :is(input,select,textarea):focus-visible{outline:2px solid var(--mine-accent);outline-offset:1px}
/* 字号统一（2026.11.20 用户「占位框字体大小不一致」）：① iOS 原生日期控件自带一套
   line-height/对齐，文字看着比其他框大一号且偏下——用 ::-webkit-date-and-time-value 拉回同一行高左对齐；
   ② 占位符显式继承控件字号并统一浅灰，避免各内核默认色深不一造成的「大小不一」观感。 */
.fin-support-dialog input[type="date"]::-webkit-date-and-time-value{line-height:1.45;min-height:0;text-align:left}
/* 2026.11.21 用户实测（键盘一弹整行左移、左右拖不回来）：iOS 日期输入框有原生外观带来的
   固有最小宽度，在窄列里比其他字段宽出十几个 pt，把表单撑出横向溢出——键盘弹出时系统
   自动横向滚动，整表内容左移被裁且难拖回。appearance:none 去掉原生外观后 width:100%
   才能完全生效，所有字段严格同宽适配弹窗；表单再叠加 overflow-x:hidden 兜底，
   彻底不允许横向滚动/晃动。 */
.fin-support-dialog input[type="date"]{-webkit-appearance:none;appearance:none;max-width:100%}
/* 2026-11-22 用户：占位符字号统一——与输入文字同为 16px（含金额/位置/称呼/内容），不再大小不一。 */
.fin-support-dialog :is(input,select,textarea)::placeholder{color:#A6ADA0;opacity:1;font-size:16px;line-height:1.45;font-family:inherit}
.fin-support-dialog textarea{min-height:64px;resize:vertical}
.fin-support-dialog .ws-cat-slot{margin-top:12px}
.fin-support-dialog .ws-cat-slot .fin-field{display:grid;gap:6px;min-width:0}
.fin-support-dialog .ws-cat-slot .fin-cat-select{margin:0;border-color:var(--mine-control);background:var(--mine-surface)}
.fin-support-dialog .ws-cat-slot .fin-cat-select>summary{font-size:16px}
.fin-support-dialog .ws-cat-slot .entry-cat-options label:not([hidden]){display:flex}
.fin-support-dialog .ws-cat-slot .fin-field-lab{color:var(--mine-muted);font-size:13px}
.fin-support-dialog form>label{margin-top:12px}
.fin-support-dialog .ws-photos{margin-top:12px}
.fin-support-dialog .ws-photos-head{display:flex;align-items:baseline;justify-content:space-between;font-size:13px;color:var(--mine-muted);margin-bottom:6px}
.fin-support-dialog .ws-photos-head small{font-size:12px;color:var(--mine-muted)}
/* 添加照片区（2026.11.20 用户「要报销/审核端添加凭证那种框」）：弹层挂在 .fin-app 兄弟节点上，
   `.fin-app .fin-drop` 那套压缩样式够不着它（抽屉红线同款问题），这里按报销端同参数补齐——
   图标 + 标题 + 引导 + 说明四级结构，不许再压成 40px 矮条。 */
.fin-support-dialog .fin-drop{padding:16px 12px;gap:5px;border-color:#dfe3d6;background:#fbfcf7}
.fin-support-dialog .fin-drop-ic{width:28px;height:28px}
.fin-support-dialog .fin-drop b{font-size:15px;font-weight:600;color:#3d4438;line-height:1.5}
.fin-support-dialog .fin-drop-hint{font-size:12.5px;line-height:1.7;color:#8a927f}
.fin-support-dialog .fin-drop-note{font-size:12.5px;line-height:1.6;color:#8a927f}
.fin-support-dialog .ws-form-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:16px}
.fin-support-status{margin:12px 0 0;color:#715039;font-size:14px}
.fin-support-status:empty{display:none}
.fin-support-dialog .ws-form-actions button{min-height:44px;padding:0 20px;border-radius:999px;font-size:14px;cursor:pointer;border:1px solid var(--mine-control);background:var(--mine-surface);color:var(--mine-ink);font-family:inherit}
.fin-support-dialog .ws-form-actions button[type="submit"]{background:var(--mine-accent);border-color:var(--mine-accent);color:#fff;font-weight:600}
/* 支持详情 + 审核操作 */
.ws-support-detail .fbd-grid2{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.ws-support-detail label{display:grid;gap:6px;font-size:14px;color:#606c5e;margin:0 0 10px}
.ws-support-detail input{width:100%;box-sizing:border-box;min-height:44px;padding:9px 10px;border:1px solid #E4E6DC;border-radius:9px;background:#f9faf6;font-size:16px;color:#344033}
.fin-support-review{margin-top:14px;padding:12px;background:#f7f8f3;border:1px solid #E4E6DC;border-radius:10px}
.fin-support-review-actions{display:flex;gap:8px;margin-top:10px}
.fin-support-review button{min-height:38px;padding:0 14px;border-radius:8px;border:1px solid #E4E6DC;background:#fff;color:#344033;font:inherit;font-size:13px;cursor:pointer}
.fin-support-review button.my-card-primary{background:#3B4C37;border-color:#3B4C37;color:#fff}
/* 登记成功弹窗（感谢 + 点击跳转） */
dialog.fin-support-success{margin:auto;box-sizing:border-box;width:min(400px,calc(100vw - 32px));max-width:calc(100vw - 32px);padding:26px 24px;border:1px solid var(--mine-line);border-radius:20px;background:var(--mine-surface);color:var(--mine-ink);text-align:center;box-shadow:0 16px 48px #25372d26}
.fin-support-success .fss-mark{font-size:34px;line-height:1;margin-bottom:8px}
.fin-support-success h3{margin:0 0 12px;font-size:18px;color:#3B4C37}
.fin-support-success p{margin:0 0 8px;font-size:13px;line-height:1.65;color:#6f6a60;overflow-wrap:anywhere}
.fin-support-success .fss-actions{display:flex;gap:10px;margin-top:18px}
.fin-support-success .fss-jump,.fin-support-success .fss-close{flex:1;display:inline-flex;align-items:center;justify-content:center;min-height:44px;border-radius:999px;font:inherit;font-size:14px;cursor:pointer;text-decoration:none}
.fin-support-success .fss-jump{background:var(--mine-accent);border:1px solid var(--mine-accent);color:#fff;font-weight:600}
.fin-support-success .fss-close{background:var(--mine-surface);border:1px solid var(--mine-control);color:var(--mine-ink)}
body:has(dialog.fin-support-dialog[open]),body:has(dialog.fin-support-success[open]){overflow:hidden}
/* 手机端（2026.11.23 壳对齐）：侧栏/品牌行/导航的壳级覆盖已删除，统一走 2199 行的审核台小屏样式
   （顶部横排胶囊导航、品牌行 12px 16px 6px）。下面只留列表内容本身的收窄规则。 */
@media(max-width:760px){
  .wb-mine .ws-list{gap:8px}
  .wb-mine .ws-row{grid-template-columns:78px minmax(0,1fr);padding-inline:7px}
  .wb-mine .ws-top{flex-wrap:wrap;gap:4px 12px;padding:4px 8px 0}
  .wb-mine .ws-tabs{gap:3px;padding:3px}
  .wb-mine .ws-tabs button{min-height:44px;padding:8px 10px;font-size:14px}
  .wb-mine .ws-action{margin:4px 0 8px auto}
  .fin-support-dialog .ws-form-grid{grid-template-columns:minmax(0,1fr)}
  /* 手机端改居中浮层（2026.11.21 用户「不要贴边，要弹出框」）：左右留边、四角圆角、居中弹出；
     保留 11.20 的内部结构——标题常驻、表单独立滚动、提交按钮 sticky 常驻底部（含安全区）。 */
  /* 2026.11.21 二次收窄（用户两次反馈「还是太宽」）：第一次 20px 边距只比旧版窄 12pt、肉眼无感
     （用户 iPhone 16 Pro Max 440pt 实测 412→400pt）。两侧边距加到 72px（36pt×2），
     440pt 屏上弹层 368pt（84%），浮起感明确；内部结构（标题/独立滚动/sticky 按钮）不动。 */
  /* 2026.11.21 三次收窄（用户再反馈「宽度还是有点宽」+「字段两边不能超出边框」）：
     两侧边距加到 104px（52pt×2，440pt 屏上弹层 336pt≈76%）；内边距 16→20px，
     字段与卡片边框的留白更明显。内部结构（标题/独立滚动/sticky 按钮/键盘顶起适配）不动。 */
  dialog.fin-support-dialog{margin:auto;width:min(480px,calc(100vw - 104px));max-width:calc(100vw - 104px);border-radius:18px;padding:14px 20px 0;max-height:calc(100vh - 28px);max-height:calc(100dvh - 28px);overflow:hidden;display:flex;flex-direction:column}
  dialog.fin-support-dialog .fin-dialog-head{flex:none;margin:0 0 10px}
  dialog.fin-support-dialog form{flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain}
  dialog.fin-support-dialog .ws-form-actions{position:sticky;bottom:0;flex:none;margin:12px 0 0;padding:10px 0 calc(12px + env(safe-area-inset-bottom));background:var(--mine-page)}
}
@media(max-width:360px){.wb-mine .ws-row{grid-template-columns:66px minmax(0,1fr)}.wb-mine .ws-amount{font-size:16px}}
/* 2026-11-23 用户问「还有撑大页面的情况吗」：导航固定 106px×3 + 间距 = 362px，
   320/360/375 三种常见窄屏都会把第三个胶囊切掉一角。窄屏改为按文字自适应、单行不出屏；
   更多项时仍由 nav 的 overflow-x:auto 兜底横向滚动。 */
@media(max-width:400px){.fin-workbench .wb-sidebar .wb-nav-item{width:auto!important;min-width:0!important;flex:0 0 auto;padding:10px 9px!important;font-size:12.5px!important;gap:4px!important}}

/* ============================================================
   2026-11-20 爱心支持公示页（匿名可读）+ 待审核编辑
   作用域 .sp-public-app / .sp-edit-bar / .fin-vtile-row，低饱和暖色，复用工作台配色。
   ============================================================ */
/* 整体视觉居中：页头与正文同处一个容器，桌面 820 封顶居中（原来只有正文收窄、页头拉满整屏，
   左边缘对不齐，居中就不成立）；手机 / 窄屏自动铺满。 */
.sp-public-app .sp-wrap{max-width:820px;margin:0 auto;padding:4px 0 40px}
/* 2026.11.20 五稿（用户）：页头只留一行「‹ 返回公示」——纯绿字样式已上提到 .fin-app.fin-public-app
   基础规则（财务明细同款），这里不再重复覆盖。
   「♡ 爱心支持」大标题与「＋ 登记支持」整行删除；登记入口移到筛选行最左（.sp-register）。 */
.sp-public-app .sp-head{gap:16px}
/* 2026.11.20 用户定稿改版：页签（全部支持 / 我的记录）+ 一行三项筛选（类目 / 全部小猫 / 搜索）+ 表格列表。
   用户口径：类目用本页登记表单那 6 类；「全部小猫」与关联小猫选择器同一套两列多选；
   类目那一行字号比正文略小（桌面 14px；手机仍 16px，输入控件 <16px 会被 iOS 聚焦放大整页）。 */
/* 2026.11.20 二稿（用户：「顶部爱心支持、全部/我的切换那块好乱」）：
   ① 页签原来是「白底 + 描边 + 999 圆角」，和下面三个筛选胶囊长得一模一样，四个白胶囊串成一列，
      第一眼分不清哪个是切换、哪个是筛选。改成「浅槽 + 白填充」的分段控件（iOS 口径）：容器降成
      #F1EFE8 淡槽，选中项白底 + 微阴影，靠明度分层而不是描边，切换与筛选一眼分开。
   ② 高度 38→34；选中态从米褐 #EFE6DE 换回中性白，页签不再是整页最重的那块色。
   ③ 间距分层：标题↔页签 16px（原 2px，标题像被页签顶住）、页签↔筛选 12px、
      筛选↔「已公示」16px、「已公示」↔表格 8px。 */
/* 2026.11.20 六稿（用户：「页签没居中、视觉中心没对齐」）：
   ① 页签收成居中的紧凑分段控件（width:max-content + margin:auto），不再拉满整行；
   ② 总高与下方筛选控件严格同高（桌面 32+6=38、手机 38+6=44），两行视觉中心一条线。 */
.sp-public-app .sp-tabs{display:flex;width:100%;margin:12px 0 8px;padding:3px;background:#EDEAE0;border:1px solid #E4E1D4;border-radius:999px}
/* margin:0 必须写：`.fin-app button` 带 margin:5px 7px 5px 0，flex 容器会把上下各 5px 算进高度，
   页签槽从 42px 被顶到 52px——这正是「页签看着比旁边粗一圈」的原因。
   padding:0 同理必须写：全局 .fin-app button 带 padding:11px 17px，定高按钮里这 22px 垂直内边距
   会把文字压进下半截（2026.11.20 用户：文字在胶囊里「偏低」）——清零后靠 height 垂直居中。 */
.sp-public-app .sp-tabs button{flex:1 1 0;min-width:0;display:flex;align-items:center;justify-content:center;height:32px;margin:0;padding:0;border:0;border-radius:999px;background:transparent;color:#8A8273;font:inherit;font-size:14px;cursor:pointer;transition:background .15s,color .15s}
.sp-public-app .sp-tabs button:hover{color:#5B5347}
.sp-public-app .sp-tabs button[aria-pressed="true"]{background:#fff;color:#3B4C37;font-weight:600;box-shadow:0 1px 3px rgba(70,60,40,.14)}
/* 「正在读取…」这类状态原来是整条浅绿底色块（padding 12 + min-height 24），一出现就把页签推下去、
   还抢走全部注意力。本页把它压成一行小灰字；只有出错（.error）才恢复底色块。 */
.sp-public-app .fin-status{position:static;min-height:0;margin:12px 0 0;padding:0;background:none;border:0;color:#8C9388;font-size:12px;white-space:pre-line}
.sp-public-app .fin-status.error{margin:12px 0 0;padding:9px 12px;border-radius:10px;background:#fff3ef;color:#a33b2a}
.sp-public-app .sp-filters{display:flex;flex-wrap:nowrap;align-items:flex-start;gap:8px;position:relative;margin:0 0 20px}
.sp-public-app .sp-filters>*{flex:1 1 0;min-width:0}
/* 2026.11.20 五稿（用户）：「＋ 登记」固定在筛选行最左，是本页唯一行动入口；
   它和搜索图标都是定宽，不参与三个筛选控件的均分（flex 覆盖 .sp-filters>* 的 1 1 0）。 */
.sp-public-app .sp-register{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;height:38px;margin:0;padding:0 14px;border:1px solid #D6E3D0;border-radius:999px;background:#EDF2E8;color:#31482B;font:inherit;font-size:14px;font-weight:400;line-height:1;text-decoration:none;white-space:nowrap;cursor:pointer}
.sp-public-app .sp-register:hover{border-color:#9DB492;background:#F3F7F1}
/* 搜索收成一个圆形图标按钮（与筛选胶囊同高同描边），点了才展开下面的搜索栏。 */
.sp-public-app .sp-search-toggle{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;margin:0;padding:0;border:1px solid #E7E9DF;border-radius:999px;background:#fff;color:#7C7365;cursor:pointer}
.sp-public-app .sp-search-toggle:hover{border-color:#9DB492;color:#3B4C37}
.sp-public-app .sp-search-toggle[aria-pressed="true"]{border-color:#9DB492;background:#F3F7F1;color:#3B4C37}
.sp-public-app .sp-select{display:flex;min-width:0}
/* 隐藏但可读的字段名：不做视觉占位，读屏仍能念出来（否则「类目」两字会竖着挤在行首）。 */
.sp-public-app .sp-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
/* 🔴 select/input/summary 默认不吃页面字体（渲染成系统 Arial），这是「全部类目和页签字体不一致」的
   根源——全部补 font:inherit，与页签（font:inherit+14px）完全同字体同字号。 */
/* 九稿（用户）：胶囊内文字居中——select 用 text-align(-last):center（iOS Safari 对 select
   原生按钮样式生效；text-align-last 兼容 Firefox/桌面 Chrome）；「全部小猫」summary 见下条改 center。 */
.sp-public-app .sp-select select{width:100%;height:38px;border:1px solid #E7E9DF;border-radius:999px;background:#fff;color:#5B5347;font:inherit;font-size:14px;padding:0 12px;text-align:center;text-align-last:center}
/* margin:0 是给 `.fin-app details{margin-top:16px}` 压惊——不压，小猫这颗会比左右两个矮一半行、往下掉 16px。 */
.sp-public-app .sp-cat-filter{position:relative;min-width:0;margin:0}
.sp-public-app .sp-cat-filter>summary{display:flex;align-items:center;justify-content:center;gap:6px;height:38px;padding:0 12px;border:1px solid #E7E9DF;border-radius:999px;background:#fff;color:#5B5347;font:inherit;font-size:14px;cursor:pointer;list-style:none;text-align:center}
.sp-public-app .sp-cat-filter>summary::-webkit-details-marker{display:none}
.sp-public-app .sp-cat-filter>summary>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sp-public-app .sp-cat-filter[open]>summary{border-color:#9DB492;color:#3B4C37}
.sp-public-app .sp-chev{display:inline-flex;align-items:center;color:#A09484;flex:none}
.sp-public-app .sp-cat-panel{position:absolute;z-index:40;top:calc(100% + 6px);left:0;width:380px;max-width:calc(100vw - 32px);background:#fff;border:1px solid #E4E6DC;border-radius:14px;box-shadow:0 14px 34px rgba(0,0,0,.12);padding:10px 12px}
/* 搜索栏：展开态才渲染。2026-11-21 用户反馈：整行通栏太长、⌕ 和 ✕ 被挤得难看——
   改成右对齐短栏（从右上角搜索图标方向展开的观感），桌面 360、手机 300，图标和叉同步收小。 */
.sp-public-app .sp-search-form{display:flex;min-width:0;margin:-12px 0 20px;justify-content:flex-end}
.sp-public-app .sp-search{display:flex;align-items:center;gap:6px;flex:0 1 360px;min-width:0;height:38px;padding:0 10px;background:#fff;border:1px solid #E7E9DF;border-radius:999px}
.sp-public-app .sp-search>span{color:#A09484;font-size:16px;line-height:1;flex:none}
.sp-public-app .sp-search input{width:100%;min-width:0;height:100%;border:0;background:transparent;color:#443D35;font:inherit;font-size:14px;padding:0}
.sp-public-app .sp-search-close{flex:none;width:22px;height:22px;margin:0 0 0 2px;padding:0;border:0;border-radius:50%;background:#F1EFE8;color:#8C8273;font-size:11px;line-height:1;cursor:pointer}
.sp-public-app .sp-search-close:hover{background:#E7E4DA;color:#5B5347}
/* 2026.11.20 六稿（用户：「字体字号太多，没有统一」）：本页字号收敛成两档——
   正文/可点文字一律 14px（返回、页签、筛选、结果行、表格行、按钮），辅助信息一律 12px
   （日期、计数、状态胶囊、猫胶囊、空态说明）；不再出现 11/13/16 混排。 */
.sp-public-app .sp-results{display:flex;justify-content:space-between;gap:12px;margin:0 0 6px;color:#7C7365;font-size:14px}
.sp-public-app .sp-results small{color:#A09484;font-size:12px}
/* 2026.11.20 七稿（用户定稿）：每条公示记录 = 两行卡，不再是五列表格（sp-thead 已删）。
   第一行 = 左「猫标签 + 昵称」/ 右侧竖排「上日期、下类目（金色 #856129 胶囊撞色）」；
   第二行 = 内容；有备注再在最底部补浅金备注条。桌面与手机同一结构。 */
.sp-public-app .sp-table{border:1px solid #E4E6DC;border-radius:14px;background:#fff;overflow:hidden}
.sp-public-app .sp-row{padding:13px 16px;border-bottom:1px solid #F1F2EA;font-size:14px;color:#443D35}
.sp-public-app .sp-row:last-child{border-bottom:0}
.sp-public-app .sp-row.is-focus{background:#f7faf5;box-shadow:inset 3px 0 0 #9DB492}
/* 九稿（2026.11.20 用户）：日期与昵称同一行（右上、垂直居中对准昵称文字），
   类目标签与正文同一行（右下）——不再竖排两行挤在右上角。 */
.sp-public-app .sp-row-top{display:flex;align-items:center;justify-content:space-between;gap:12px}
.sp-public-app .sp-row-who{display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-width:0}
.sp-public-app .sp-row-who b{font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sp-public-app .sp-row-date{color:#A09484;font-size:12px;line-height:1.4;white-space:nowrap;flex:none}
/* 第二行 = 正文（左，占满剩余宽度）+ 类目标签（右，flex-start 让标签对准正文第一行；
   标签胶囊高约 22px 与正文首行 22.4px 基本等高，无需再补偏移）。 */
.sp-public-app .sp-row-body{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin:6px 0 0}
.sp-public-app .sp-row-text{flex:1;min-width:0;margin:0;line-height:1.6;overflow-wrap:anywhere;white-space:pre-wrap}
/* 类目标签用账本同款金色做撞色（卡片里唯一的暖金强调，配绿色猫胶囊形成对比） */
.sp-public-app .sp-row-kind{flex:none;padding:2px 9px;border-radius:999px;background:#856129;color:#fff;font-size:12px;line-height:1.5;white-space:nowrap}
.sp-public-app .sp-row-amt{flex:none;color:#8A5F3C;font-size:12px;font-weight:600;white-space:nowrap;padding-top:2px}
.sp-public-app .sp-row-note{margin:8px 0 0;padding:6px 10px;border-radius:8px;background:#FAF5E8;color:#8A5F3C;font-size:12px;line-height:1.6;overflow-wrap:anywhere;white-space:pre-wrap}
/* 2026.11.20 八稿：卡片左侧=横幅同款独立头像（30px 圆），不再是 16px 猫标签内嵌头像；
   昵称胶囊直接复用首页的 .timeline-category.support-nick。 */
.sp-public-app .sp-row-who>.fpl-cat-av{width:30px;height:30px;min-width:30px;font-size:15px;line-height:30px;object-fit:cover;border-radius:999px}
/* 2026.11.24 用户定稿：一条支持关联多只小猫时不再折叠成「首只+等N只」——
   每只一行（头像+名字）上下排列，昵称胶囊与状态徽章留在第一行；单只保持原一行式。
   多行时日期改为顶部对齐（原垂直居中会浮在两行中间）；逐行头像与首只同款 30px 圆。 */
.sp-public-app .sp-row-who.is-multi{flex-direction:column;align-items:flex-start;gap:4px}
.sp-public-app .sp-row-cat{display:inline-flex;align-items:center;gap:8px;max-width:100%;min-width:0}
.sp-public-app .sp-row-cat .fpl-cat-av{width:30px;height:30px;min-width:30px;font-size:15px;line-height:30px;object-fit:cover;border-radius:999px}
.sp-public-app .sp-row-top.is-multi{align-items:flex-start}
.sp-public-app .sp-row-top.is-multi .sp-row-date{padding-top:8px}
/* 2026.11.22 用户定稿：有公示照片的条目整行可点（弹凭证查看器、可左右翻），右侧挂「📷 N 张 ›」胶囊。
   2026.11.23 用户定稿：照片胶囊放在类目标签左侧、与其同一行对齐——金额/照片/类目包进不换行右组
   .sp-row-meta（窄屏整组一起换行，胶囊之间永不被挤散）；组内垂直居中，与标签等高对齐。 */
.sp-public-app .sp-row.has-pics{cursor:pointer}
.sp-public-app .sp-row.has-pics:hover{background:#FAFBF6}
.sp-public-app .sp-row.has-pics .sp-row-body{flex-wrap:wrap}
.sp-public-app .sp-row-meta{flex:none;display:flex;align-items:center;gap:8px;white-space:nowrap}
.sp-public-app .sp-row-meta .sp-row-amt{padding-top:0}
.sp-public-app .sp-row-pics{flex:none;border:1px solid #DCE3D3;background:#F4F8EF;color:#4E6347;border-radius:999px;padding:2px 10px;font:inherit;font-size:12px;line-height:1.6;cursor:pointer;white-space:nowrap}
.sp-public-app .sp-row-pics:hover{background:#EAF2E3}
.sp-public-app .sp-row-pics:focus-visible{outline:2px solid #9DB492;outline-offset:1px}
.sp-public-app .sp-state{font-style:normal;font-size:12px;line-height:1.6;padding:1px 7px;border-radius:999px;flex:none}
/* 详情卡撞色（2026.11.20 用户：详情卡太素）：标题下金胶囊类目 + 灰日期；备注条浅金底。
   选择器不带 .sp-public-app——详情卡在工作台抽屉里也复用同一套撞色。 */
.ws-support-detail .wsd-meta{display:flex;align-items:center;gap:8px;margin-top:6px;flex-wrap:wrap}
.ws-support-detail .wsd-kind{display:inline-flex;padding:2px 10px;border-radius:999px;background:#856129;color:#fff;font-size:12px;line-height:1.5;white-space:nowrap}
.ws-support-detail .wsd-date{color:#A09484;font-size:12px;line-height:1.6}
.ws-support-detail .wsd-note{margin:10px 0 0;padding:8px 12px;border-radius:8px;background:#FAF5E8;color:#8A5F3C;font-size:13px;line-height:1.6;overflow-wrap:anywhere;white-space:pre-wrap}
/* 2026.11.22：登记表单「存放位置」历史快选胶囊 + 详情抽屉的公示照片工具条。 */
.fin-support-dialog .sp-loc-chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}
.fin-support-dialog .sp-loc-chip{border:1px solid var(--mine-control);background:var(--mine-surface);color:#5D6656;border-radius:999px;padding:4px 10px;font:inherit;font-size:12px;line-height:1.5;cursor:pointer}
.fin-support-dialog .sp-loc-chip:hover{background:#F1F4EA}
.ws-support-detail .sp-pub-tools{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:10px}
.ws-support-detail .sp-pub-tools small{color:#A09484;font-size:12px;line-height:1.5}
.ws-support-detail .sp-pub-use{border:1px solid #DCE3D3;background:#F4F8EF;color:#3B4C37;border-radius:999px;padding:5px 12px;font:inherit;font-size:13px;line-height:1.6;cursor:pointer}
.ws-support-detail .sp-pub-use:hover{background:#EAF2E3}
.sp-public-app .sp-state[data-state="pending"]{background:#FBF3E4;color:#8A6A2F}
.sp-public-app .sp-state[data-state="posted"]{background:#E7F0E4;color:#3B4C37}
.sp-public-app .sp-state[data-state="rejected"]{background:#F7E6E3;color:#8A4A3E}
.sp-public-app .sp-more{text-align:center;margin-top:14px}
.sp-public-app .sp-more button{border:1px solid #E4E6DC;background:#fff;border-radius:999px;padding:9px 18px;color:#7C7365;font:inherit;font-size:14px;cursor:pointer}
/* 空态：① 与上方留 12px（页签下只有 8px，直接接卡片太贴）；
   ② 「去登录 / 登记支持」是 <a class="ws-action">，而 .ws-action 的胶囊样式只在 .wb-mine 作用域里，
      本页继承不到，会退化成裸文字——这里补一份同口径的小号胶囊。 */
/* display:flex 是为了消掉 <a class="ws-action"> 的 inline 基线间隙——inline-flex 的按钮在块级容器里
   会让卡片底部多出近 40px 空白，上下不对称，看着像「内容没居中」。 */
.sp-public-app .sp-empty{display:flex;flex-direction:column;align-items:center;margin-top:12px;background:#fff;border:1px solid #E4E6DC;border-radius:14px;padding:32px 20px;text-align:center}
.sp-public-app .sp-empty h2{font-size:14px;color:#443D35;margin:0 0 6px}
.sp-public-app .sp-empty p{color:#8C9388;font-size:12px;margin:0 0 14px}
.sp-public-app .sp-empty .ws-action{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:0 18px;border:1px solid #D6E3D0;border-radius:999px;background:#EDF2E8;color:#31482B;font-size:14px;font-weight:600;text-decoration:none}
/* 待审核编辑入口：纯文字按钮 + 一行说明，不加胶囊底色 */
.sp-edit-bar{display:flex;align-items:center;gap:10px;margin-top:12px;padding-top:10px;border-top:1px dashed #E4E6DC}
.sp-edit-bar button{border:0;background:none;padding:0;color:#5F80A7;font:inherit;font-size:12px;cursor:pointer;text-decoration:underline}
.sp-edit-bar small{color:#8C9388;font-size:12px}
/* 编辑弹窗内已上传照片：复用缩略图外壳，图片 contain 不裁切（图片显示铁律） */
.fin-support-dialog .fin-vtile-row{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 8px}
/* 2026-11-22 用户：登记照片也要像财务公示件那样每张带「打码」按钮，缩略图放大到能看清按钮与小票 */
.fin-support-dialog .fin-vtile{width:88px;margin:0}
/* 🔴 2026-11-23 作用域缺口修复（与 11.15 抽屉事故同类）：登记弹窗挂在 .fin-support-overlay-host
   上，不在 .fin-app 里，`.fin-app .fin-vtile-box` 的 display:flex 生效不到这里——盒子是 <span>
   （inline），width/height 对 inline 不生效，于是 88×88 全被忽略、图片按原始比例撑开、
   「已打码/打码/✕」各贴各的底边（用户手机截图复现）。这里必须自带 display:flex 与盒子外观，
   不能依赖 .fin-app 前缀的那份。守卫：tests/finance-support-dialog-scope.test.cjs */
.fin-support-dialog .fin-vtile-box{display:flex;align-items:center;justify-content:center;position:relative;width:88px;height:88px;border-radius:16px;overflow:hidden;background:#f0efe9}
/* 新选照片的缩略图条（bindRedactionInputs 渲染进这里），空着时不占位 */
.fin-support-dialog .fin-vthumbs:not(:empty){margin:0 0 8px}
.fin-support-dialog .fin-vtile-img{width:100%;height:100%;object-fit:contain;border:0;background:#fff;color:#8C9388;font-size:11px;cursor:pointer}
@media(max-width:760px){
  /* 手机：三控件仍一行三等分，字号回到 16px（输入控件 <16px 会被 iOS 聚焦放大整页） */
  .sp-public-app .sp-filters{gap:6px}
  /* 手机：页签 38+6=44，与筛选控件（44）同高，两行视觉中心一条线 */
  .sp-public-app .sp-tabs button{height:38px}
  .sp-public-app .sp-select select,.sp-public-app .sp-cat-filter>summary,.sp-public-app .sp-search input{font-size:16px}
  .sp-public-app .sp-select select,.sp-public-app .sp-cat-filter>summary,.sp-public-app .sp-search{height:44px}
  .sp-public-app .sp-select select{padding:0 10px}
  .sp-public-app .sp-cat-filter>summary{padding:0 10px}
  /* 手机：「＋ 登记」字号提到 16px——筛选行（登记/类目/小猫）与页签全部同字号，以登记为基准统一
     （下拉不能降到 14px：iOS 聚焦 <16px 输入控件会放大整页，16px 铁律不许破）。 */
  .sp-public-app .sp-register{height:44px;padding:0 12px;font-size:16px}
  .sp-public-app .sp-search-toggle{width:44px;height:44px}
  .sp-public-app .sp-search{padding:0 10px;flex-basis:300px}
  /* 🔴 2026.11.20 用户反馈：面板原来锚定在「全部小猫」那颗胶囊上（.sp-cat-filter 是
     position:relative 的定位父级），手机上那颗胶囊只有 ~110px 宽，面板跟着只有一条缝，
     右边的猫卡片列被挤到看不见。改成让 .sp-cat-filter 静态定位、面板改锚到整条筛选行
     （.sp-filters 自带 position:relative），通栏展开——状态列 + 猫卡片三列都放得下。 */
  .sp-public-app .sp-cat-filter{position:static}
  .sp-public-app .sp-cat-panel{left:0;right:0;width:auto;max-width:none}
  /* 手机端：表格容器散成卡片（行结构与桌面一致，仅换卡片外观）；页签字号升到 16px 与
     下拉/搜索一致（输入控件 16px 是 iOS 防缩放铁律，页签跟随统一，不再「下拉比页签大一号」）。 */
  .sp-public-app .sp-table{border:0;background:transparent;border-radius:0}
  .sp-public-app .sp-row{padding:14px;background:#fff;border:1px solid #E4E6DC;border-radius:14px;margin-bottom:10px}
  .sp-public-app .sp-row:last-child{margin-bottom:0}
  .sp-public-app .sp-tabs button{font-size:16px}
}

/* 2026.11.21 财务端「审核支持」改用审核报销同款卡片：搜索行与「＋ 登记支持」并排，手机宽度也只占一行。 */
.fin-workbench .fin-support-tools{display:flex;align-items:center;gap:10px;margin:0 0 14px}
.fin-workbench .fin-support-tools .wb-search{flex:1;max-width:none;min-width:0}
.fin-workbench .fin-support-tools .ws-action{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:0 14px;border:1px solid #e4ddc9;border-radius:999px;background:#fff;color:#5b6b4c;font-size:13px;font-weight:500;cursor:pointer;white-space:nowrap}
.fin-workbench .fin-support-tools .ws-action:hover{border-color:#b8c4a4;color:#42552f}

/* 2026.11.21 公示页「登记支持」弹窗直达（用户拍板：点「登记支持」只弹弹窗不切页，❌ 关闭后才进明细页）。
   弹窗 <dialog> 走 showModal() 的浏览器顶层渲染，不受宿主摆位与裁切影响；宿主本体摆到屏幕外即可。
   禁止用 display:none / visibility:hidden / opacity:0——三者会让顶层弹窗一并消失。 */
.fin-support-overlay-host{position:fixed;left:-10000px;top:0;width:0;height:0;overflow:hidden}

/* 2026.11.22 手机端「退出登录」上移到品牌行右上角（用户按手机截图指定位置）。
   背景：≤760px 时 .fin-workbench .wb-sidebar-foot 整块 display:none（见上面 2199 行那条），
   而财务审核台又刻意不渲染页头（标题/动作都不传），结果手机上没有任何退出入口。
   因此品牌行外面包一层 .wb-side-head：桌面端照旧是纯 block（右上角入口默认不显示，
   底部与页头已有），只有小屏才变成 flex 一行、把按钮摆到右侧。
   ≤760px 同时隐藏底部/页头里的旧退出入口，保证同页只有一枚「退出登录」。 */
.wb-side-head{display:block}
.wb-side-head-actions{display:none}
/* 注意：这条媒体查询刻意写成 (max-width: 760px)（冒号后带空格）——finance-support-page
   守卫会用 lastIndexOf 找「无空格写法」的最后一个 760 断点来定位「爱心支持」那一段，
   写法一致会让它误指到本段、把两条 16px 规则判红（2026.11.22 实测）。语义完全相同。 */
@media (max-width: 760px){
  .wb-side-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
  /* 有右上角按钮时：品牌行收到 44px（与导航胶囊同高）并保持垂直居中，副标题改行内、单行省略，
     否则内容工作台的「人通小猫 / 管理工作台」会被按钮挤成两行。 */
  .wb-side-head:has(.wb-side-head-actions) .wb-brand{flex:1 1 auto;min-width:0;padding-top:0;padding-bottom:0;min-height:44px}
  .wb-side-head:has(.wb-side-head-actions) .wb-brand>span:last-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .wb-side-head:has(.wb-side-head-actions) .wb-brand small{display:inline;margin:0 0 0 8px;letter-spacing:0}
  /* 2026.11.23 壳对齐：品牌行贴顶留白改由审核台同款侧栏 padding 负责（12px 16px 6px），不再单独加。 */
  .wb-side-head-actions{display:flex;align-items:center;flex:none;gap:8px}
  .wb-side-head-actions button{font:inherit;font-size:14px;line-height:1.2;min-height:36px;padding:8px 14px;border:1px solid rgba(255,255,255,.35);border-radius:999px;background:rgba(255,255,255,.12);color:#f2f5ee;margin:0;cursor:pointer;white-space:nowrap}
  .wb-side-head-actions button:hover{background:rgba(255,255,255,.2)}
  /* 小屏导航胶囊上的数字徽章会压住文字（绝对定位、宽度不够），与财务台一致直接不显示。 */
  .wb-shell .wb-nav-item b{display:none}
  .wb-sidebar-foot [data-fin="logout"],.wb-sidebar-foot [data-mg-logout],.wb-header-actions [data-mg-logout]{display:none}
}
