/* 简易记账 · 在线协作版 — 复刻单机版界面风格 */
* { margin:0; padding:0; box-sizing:border-box; -webkit-tap-highlight-color:transparent; }
:root{
  --primary:#3B82F6; --primary-dark:#2563EB; --primary2:#6366F1;
  --bg:#F3F5F9; --card:#FFFFFF; --text:#1F2937; --text2:#6B7280;
  --red:#EF4444; --green:#10B981; --border:#E5E7EB;
  --blue-light:#EFF6FF; --amber-light:#FEF3C7; --green-light:#D1FAE5;
  --pink-light:#FCE7F3; --red-light:#FEE2E2; --gray-light:#F3F4F6;
  --dash-blue:#C7D2FE; --hint:#9CA3AF;
}
html,body{ height:100%; }
body{ font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif; background:var(--bg); color:var(--text); font-size:15px; }
.page{ display:none; min-height:100vh; }
.page.active{ display:block; }

/* ===== 渐变头部（复刻 bg_header） ===== */
.header{ background:linear-gradient(135deg,#3B82F6 0%,#6366F1 100%); border-radius:0 0 24px 24px; padding:14px 16px 18px; color:#fff; }
.header .h-row{ display:flex; align-items:center; gap:8px; }
.header .h-back{ background:rgba(255,255,255,.2); border:none; color:#fff; width:30px; height:30px; border-radius:8px; font-size:15px; line-height:1; cursor:pointer; }
/* 首页左上的用户头像：固定 30x30 方形圆角，图片铺满、绝不拉伸变形（2026-09-20 对齐记账） */
.header .h-avatar{ padding:0; overflow:hidden; display:inline-flex; align-items:center; justify-content:center; }
.header .h-avatar img{ display:block; width:100%; height:100%; object-fit:cover; }
.header .h-back-label{ color:#E6FFFFFF; font-size:14px; }
.header .h-spacer{ flex:1; }
.header .h-btn{ background:rgba(255,255,255,.18); border:none; color:#fff; min-width:34px; height:30px; padding:0 10px; border-radius:8px; font-size:13px; cursor:pointer; }
.header .h-title{ color:#fff; font-size:22px; font-weight:bold; margin-top:8px; }
.header .h-sub{ color:#BFFFFFFF; font-size:12px; margin-top:2px; }
.header .h-greet{ color:#E4FFFFFF; font-size:13px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; flex-shrink:1; min-width:0; }
.header .h-logo-row{ display:flex; align-items:baseline; gap:8px; margin-top:2px; }
.header .h-logo{ color:#fff; font-size:24px; font-weight:bold; flex-shrink:0; letter-spacing:.3px; }
.header .h-tagline{ color:#CFFFFFFF; font-size:11px; margin-left:auto; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.header .h-row > .h-back, .header .h-row > .h-btn{ flex-shrink:0; }   /* 按钮永不压缩（窄屏只让文字让步） */
/* 本月支出卡片（半透明） */
/* 顶部「待我关注」看板（2026-09-16 美化版：玻璃卡片 + 描边 + 彩色圆点 chip） */
.header .h-summary{ position:relative; background:linear-gradient(135deg, rgba(255,255,255,.24) 0%, rgba(255,255,255,.10) 100%);
  border:1px solid rgba(255,255,255,.30); border-radius:16px; margin-top:10px; padding:9px 12px; display:block;
  box-shadow:0 6px 18px rgba(15,23,42,.14), inset 0 1px 0 rgba(255,255,255,.25); backdrop-filter:blur(6px); overflow:hidden; }
.header .h-summary::after{ content:''; position:absolute; right:-30px; top:-40px; width:110px; height:110px; border-radius:50%;
  background:radial-gradient(circle, rgba(255,255,255,.22) 0%, rgba(255,255,255,0) 70%); pointer-events:none; }
.header .h-summary .hs-top{ display:flex; align-items:baseline; gap:7px; }
.header .h-summary .lbl{ color:#EAFFFFFF; font-size:12.5px; letter-spacing:.3px; }
.header .h-summary .val{ color:#fff; font-size:23px; font-weight:700; line-height:1; text-shadow:0 1px 3px rgba(15,23,42,.18); }
.header .h-summary .unit{ color:#CFFFFFFF; font-size:12px; }
.header .h-summary .hs-chips{ display:flex; flex-wrap:nowrap; gap:5px; margin-top:7px; overflow-x:auto; scrollbar-width:none; -webkit-overflow-scrolling:touch; }
.header .h-summary .hs-chips::-webkit-scrollbar{ display:none; }
.header .h-summary .hs-chip{ background:rgba(255,255,255,.20); border:1px solid rgba(255,255,255,.32); border-radius:999px;
  padding:3px 8px; font-size:11.5px; color:#fff; display:inline-flex; align-items:center; gap:4px;
  box-shadow:0 1px 3px rgba(15,23,42,.10); transition:transform .12s ease, background .12s ease; }
.header .h-summary .hs-chip:active{ transform:scale(.96); background:rgba(255,255,255,.32); }
.header .h-summary .hs-chip b{ font-weight:700; font-size:12px; }
.header .h-summary .hs-chip.claim{ box-shadow:0 1px 3px rgba(15,23,42,.10), inset 3px 0 0 #F59E0B; }
.header .h-summary .hs-chip.working{ box-shadow:0 1px 3px rgba(15,23,42,.10), inset 3px 0 0 #60A5FA; }
.header .h-summary .hs-chip.created{ box-shadow:0 1px 3px rgba(15,23,42,.10), inset 3px 0 0 #C084FC; }
.header .h-summary .hs-chip.personal{ box-shadow:0 1px 3px rgba(15,23,42,.10), inset 3px 0 0 #34D399; }
.header .h-summary .hs-chip.pending{ box-shadow:0 1px 3px rgba(15,23,42,.10), inset 3px 0 0 #EF4444; }
.header .h-summary .hs-none{ font-size:12px; color:#E6FFFFFF; margin-top:6px; display:flex; align-items:center; gap:6px; }
.header .h-summary .lbl{ color:#D9FFFFFF; font-size:12px; }
.header .h-summary .val{ color:#fff; font-size:22px; font-weight:bold; }
.header .h-summary .unit{ color:#BFFFFFFF; font-size:13px; }

/* ===== 通用卡片（复刻 bg_card 16dp） ===== */
.card{ background:var(--card); border-radius:16px; margin:10px 16px; padding:14px; box-shadow:0 1px 3px rgba(0,0,0,.05); }
.card.no-margin{ margin:0; }

/* ===== 节标题 ===== */
.section-title{ padding:14px 20px 4px; font-size:15px; font-weight:bold; color:var(--text); }

/* ===== 账本列表项（复刻 item_account） ===== */
.acc-item{ background:var(--card); border-radius:16px; margin:5px 16px; padding:14px; display:flex; align-items:center; gap:12px; row-gap:8px; flex-wrap:wrap; cursor:pointer; box-shadow:0 1px 3px rgba(0,0,0,.05); }
.acc-item .acc-icon{ width:44px; height:44px; border-radius:12px; background:#fff; display:flex; align-items:center; justify-content:center; font-size:20px; flex-shrink:0; box-shadow:0 0 0 1px var(--border); }
/* 2026-09-18 老牟：上传的封面图不铺满图框 —— 26px 居中，四周留白底（44-26=18，每边 9px） */
.acc-icon-img{ width:26px; height:26px; border-radius:8px; object-fit:cover; display:block; }

/* ===== 首页分组「夹子」（2026-09-18 对齐记账 v1.2.43~46）=====
   共享项目=蓝 / 我的个人任务=紫。彩色只留在这一条浅色底带上；
   图标白底、无彩色竖条；层次只靠缩进（老牟审美：颜色分组、形状管层次） */
.gc-share{ --gc:#3B82F6; --gc-soft:#EFF6FF; --gc-tx:#2563EB; }
.gc-priv { --gc:#8B5CF6; --gc-soft:#F5F3FF; --gc-tx:#6D28D9; }
.gc-pin  { --gc:#F59E0B; --gc-soft:#FFFBEB; --gc-tx:#B45309; }
.acc-group-head{ display:flex; align-items:center; gap:8px; margin:12px 16px 6px; padding:5px 10px;
  font-size:13px; font-weight:bold; color:var(--gc-tx,var(--text2));
  background:var(--gc-soft,transparent); border-radius:9px; }
.acc-group-head .agt-icon{ display:inline-flex; align-items:center; justify-content:center;
  width:21px; height:21px; border-radius:7px; background:#fff; box-shadow:0 0 0 1px var(--border); font-size:12px; flex:none; }
.acc-group-sub{ font-size:11px; font-weight:normal; color:var(--hint); white-space:nowrap; }
.acc-group-head .sec-head-txt{ white-space:nowrap; }   /* 组名不换行（窄屏先让副标题让步） */
.acc-group-body{ margin-left:32px; }        /* 不要竖条 → 缩进是唯一的层次信号 */
.acc-group-body > .acc-item{ margin-left:0; margin-right:16px; }
.acc-group-body > .swipe-row{ margin:5px 16px 5px 0; }   /* 个人任务左滑行跟项目卡片对齐 */
.pin-card{ background:var(--card); border-radius:14px; margin:5px 16px 5px 0; padding:10px 12px; box-shadow:0 1px 3px rgba(0,0,0,.05); cursor:pointer; }
.pin-card .pin-top{ display:flex; align-items:center; gap:6px; }
.pin-card .pin-title{ font-size:15px; font-weight:bold; flex:1 1 auto; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.pin-card .pin-meta{ font-size:12px; color:var(--text2); margin-top:4px; }
.pin-card .pin-prog{ font-size:12px; color:var(--text2); margin-top:2px; line-height:1.5; word-break:break-all; }
.pin-card .pin-foot{ font-size:11px; color:var(--hint); margin-top:4px; }
/* 窄屏：分组头元素太多会挤出屏幕 → 让「副标题」让步；
   按钮/图标一律不让步（AGENTS 教训：flex 压不动按钮时才好看） */
@media (max-width:365px){
  .acc-group-head{ font-size:12.5px; padding:5px 8px; }
  .acc-group-head .acc-group-sub{ display:none; }
  .acc-group-head.sec-head-mine{ gap:6px; }        /* 覆盖 .sec-head-mine 的 gap:8px */
  .acc-group-head.sec-head-mine .btn-quick{ padding:0 10px; }  /* 提到 3 个类，压过后面的 .sec-head-mine 规则；不改字号、不压缩 */
}
.acc-item .acc-body{ flex:1 1 140px; min-width:0; }
.acc-item .acc-name{ font-size:16px; font-weight:bold; max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.acc-item .acc-desc{ font-size:12px; color:var(--text2); margin-top:2px; }
.acc-item .acc-right{ text-align:right; flex-shrink:0; margin-left:auto; }
.acc-item .acc-balance{ font-size:17px; font-weight:bold; color:var(--text); }
.acc-item .acc-tag{ font-size:11px; color:var(--text2); margin-top:2px; }

/* ===== 交易项（复刻 item_tx） ===== */
.tx-item{ background:var(--card); border-radius:16px; margin:3px 16px; padding:13px; display:flex; align-items:center; gap:12px; row-gap:6px; flex-wrap:wrap; cursor:pointer; box-shadow:0 1px 3px rgba(0,0,0,.04); }
.tx-item .tx-icon{ width:38px; height:38px; border-radius:12px; background:#fff; display:flex; align-items:center; justify-content:center; font-size:17px; flex-shrink:0; box-shadow:0 0 0 1px var(--border); }
.tx-item .tx-body{ flex:1 1 120px; min-width:0; }
.tx-item .tx-note{ font-size:15px; color:var(--text); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.tx-item .tx-meta{ display:flex; align-items:center; gap:6px; margin-top:4px; flex-wrap:wrap; }
.tx-item .tx-amount{ font-size:15px; font-weight:bold; color:var(--text); flex-shrink:0; margin-left:auto; }
.tx-item .tx-amount.out{ color:var(--red); }

/* 按天分组头（复刻 item_tx_day） */
.tx-day{ display:flex; justify-content:space-between; padding:12px 20px 2px; font-size:13px; font-weight:bold; color:var(--text); }
.tx-day .day-total{ color:var(--text); }

/* ===== chips / 标签 ===== */
.chip{ display:inline-block; padding:2px 8px; border-radius:6px; font-size:11px; }
.chip.cat{ background:var(--blue-light); color:var(--primary); }
.chip.no-inv{ background:#F1F5F9; color:#64748B; }  /* 无需开：清淡灰，不标红（2026-09-15 改） */
.chip.has-inv{ background:var(--green-light); color:#047857; }
.chip.hidden{ background:var(--pink-light); color:#BE185D; }
.chip.mine{ background:var(--gray-light); color:var(--text2); }
.chip.user{ background:var(--blue-light); color:var(--primary); }
.avatar-mini{ width:18px; height:18px; border-radius:50%; object-fit:cover; background:var(--blue-light); }

/* 筛选条（复刻 bg_filter_on/off） */
/* 2026-09-16 老牟反馈：标签一排超出屏幕 → 改为自动换行、宽屏单行/窄屏两行，全部可见 */
/* 2026-09-24 老牟：筛选条改「一条横滑轨道」——状态胶囊可横滑，人员头像圈固定在右端
   （实测 6 胶囊 + 头像圈放不进 390px，头像固定才一眼能看到人） */
.filter-bar{ display:flex; flex-wrap:nowrap; align-items:center; gap:4px; padding:11px 16px 0; }
.fb-chips{ display:flex; gap:3px; flex:1 1 auto; min-width:0; overflow-x:auto; scrollbar-width:none; -webkit-overflow-scrolling:touch; }
.fb-chips::-webkit-scrollbar{ display:none; }
.filter-bar .chip-btn{ flex:0 0 auto; padding:3px 6px; border-radius:13px; border:none; font-size:10.5px; font-weight:bold; cursor:pointer; background:var(--gray-light); color:var(--text2); white-space:nowrap; line-height:1.45; }
/* 人员头像圈（按人筛选）：只显示该项目当前有未完成任务的人 */
.fb-sep{ width:1px; background:var(--border); flex:0 0 auto; margin:5px 1px; }
.fb-people{ display:flex; gap:4px; align-items:center; flex:0 0 auto; padding:1px 2px; }
.fb-ava{ position:relative; width:24px; height:24px; border-radius:50%; flex:0 0 auto; box-sizing:border-box;
  display:flex; align-items:center; justify-content:center; font-size:11px; font-weight:bold;
  background:#E2E8F0; color:#475569; border:1px solid var(--border); cursor:pointer; }
.fb-ava img{ width:100%; height:100%; border-radius:50%; object-fit:cover; display:block; }
.fb-ava.on{ border-color:var(--primary); background:#DBEAFE; color:#1D4ED8; box-shadow:0 0 0 2px rgba(59,130,246,.22); }
.fb-ava.me{ background:#EFF6FF; color:#2563EB; border-color:#BFDBFE; }
.fb-ava.me.on{ background:#DBEAFE; color:#1D4ED8; border-color:var(--primary); }
.fb-ava .fb-badge{ position:absolute; top:-3px; right:-3px; min-width:11px; height:11px; padding:0 2px; box-sizing:border-box;
  border-radius:6px; background:#EF4444; color:#fff; font-size:8px; font-weight:bold; line-height:11px; text-align:center; }
/* 选择器分组标题（2026-09-16 个人项目/共享项目分组） */
.picker-group{ padding:12px 20px 6px; font-size:12px; font-weight:bold; color:var(--text2); }
.filter-bar .chip-btn.on{ background:var(--primary); color:#fff; }
.filter-bar .chip-btn.warn.on{ background:var(--red); color:#fff; }
.filter-bar .chip-btn.ok.on{ background:var(--green); color:#fff; }
/* 发票状态筛选：grid 等宽均分，图标+文字居中排列（2026-08-16 修复排列不齐） */
#acc-status-filter{ display:grid; grid-template-columns:repeat(5,1fr); gap:6px; overflow-x:visible; }
#acc-status-filter .chip-btn{ padding:7px 2px; text-align:center; white-space:nowrap; display:flex; align-items:center; justify-content:center; gap:3px; }

/* ===== 按钮 ===== */
.btn{ display:block; width:100%; padding:14px; border:none; border-radius:12px; font-size:16px; font-weight:bold; cursor:pointer; }
.btn.primary{ background:var(--primary); color:#fff; letter-spacing:.08em; }
.btn.primary:active{ background:var(--primary-dark); }
.btn.secondary{ background:var(--blue-light); color:var(--primary); }
.btn.outline{ background:#fff; color:var(--primary); border:1px solid var(--primary); }
.btn.danger{ background:var(--red); color:#fff; }
.btn.danger-outline{ background:#fff; color:var(--red); border:1px solid var(--red); }
.btn.small{ display:inline-block; width:auto; padding:6px 14px; font-size:13px; border-radius:8px; }
.btn.dashed{ background:#fff; border:1.5px dashed var(--dash-blue); color:var(--primary); border-radius:12px; }
.btn.disabled{ opacity:.5; pointer-events:none; }
/* 大按钮 */
.btn-lg{ height:56px; font-size:17px; }

/* ===== 表单（复刻单机版行式） ===== */
.form-card{ background:var(--card); border-radius:16px; margin:10px 16px; overflow:hidden; }
.form-card .row{ display:flex; align-items:center; padding:14px; gap:12px; }
.form-card .row + .row{ border-top:0.5px solid var(--border); }
.form-card .row .lbl{ font-size:15px; color:var(--text); white-space:nowrap; }
.form-card .row .val{ flex:1; text-align:right; font-size:15px; font-weight:bold; color:var(--text); background:none; border:none; }
.form-card .row .val.ph{ color:var(--hint); font-weight:normal; }
.form-card .row .arrow{ color:#C4C9D0; font-size:14px; }
.form-card .row input.val{ outline:none; }
.form-card .row textarea.val{ resize:none; min-height:40px; text-align:right; outline:none; }
/* 金额大输入 */
.amount-card{ background:var(--card); border-radius:16px; margin:10px 16px; padding:14px; }
.amount-card .lbl{ font-size:12px; color:var(--text2); }
.amount-card input{ width:100%; border:none; outline:none; font-size:34px; font-weight:bold; color:var(--text); margin-top:6px; }
.amount-card input::placeholder{ color:var(--hint); }
.amount-card .hint{ font-size:11px; color:var(--hint); margin-top:4px; }

/* 分类网格 */
.cat-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:8px; }
.cat-item{ padding:10px 4px; text-align:center; border-radius:12px; background:var(--gray-light); cursor:pointer; font-size:13px; border:1.5px solid transparent; }
.cat-item .ci{ font-size:20px; display:block; }
.cat-item.selected{ background:var(--blue-light); border-color:var(--primary); color:var(--primary); font-weight:bold; }

/* 图标/颜色选择网格 */
.icon-grid{ display:grid; grid-template-columns:repeat(6,1fr); gap:10px; }
.icon-tile{ width:44px; height:44px; margin:0 auto; border-radius:12px; background:var(--gray-light); display:flex; align-items:center; justify-content:center; font-size:20px; cursor:pointer; border:1.5px solid transparent; }
.icon-tile.selected{ border-color:var(--primary); background:var(--blue-light); }
.color-grid{ display:flex; gap:12px; flex-wrap:wrap; }
.color-tile{ width:36px; height:36px; border-radius:50%; cursor:pointer; border:2.5px solid transparent; }
.color-tile.selected{ border-color:var(--primary); box-shadow:0 0 0 2px #fff inset; }

/* 发票九宫格 */
.invoice-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin-top:10px; }
.invoice-grid .inv-item{ position:relative; aspect-ratio:1/1; border-radius:12px; overflow:hidden; background:var(--gray-light); }
.invoice-grid img{ width:100%; height:100%; object-fit:cover; }
.invoice-grid .del{ position:absolute; top:4px; right:4px; background:rgba(0,0,0,.6); color:#fff; border:none; border-radius:50%; width:22px; height:22px; font-size:12px; line-height:22px; }
.inv-add{ aspect-ratio:1/1; border:1.5px dashed var(--dash-blue); border-radius:12px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px; color:var(--primary); font-size:12px; cursor:pointer; background:var(--blue-light); -webkit-tap-highlight-color:transparent; }
.inv-add .plus{ font-size:26px; line-height:1; }
.inv-add span:last-child{ line-height:1; white-space:nowrap; }
/* 照片水印：上传人 + 时间（2026-09-15 老牟要求：像水印一样浮在照片上） */
.inv-wm{ position:absolute; left:0; right:0; bottom:0; display:flex; flex-direction:column;
  padding:6px 5px 3px; background:linear-gradient(to top, rgba(0,0,0,.62), rgba(0,0,0,0));
  color:#fff; font-size:9px; line-height:1.3; text-shadow:0 1px 2px rgba(0,0,0,.85); pointer-events:none; }
.inv-wm span{ max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; opacity:.95; }
/* 照片右下角拍摄者署名（2026-09-15 抽成 class，发票/记账照片共用） */
.inv-owner{ position:absolute; bottom:0; left:0; right:0; background:rgba(0,0,0,.5); color:#fff; font-size:10px; text-align:center; padding:1px; }
/* 留言头像（2026-09-15 老牟要求：名字前补头像） */
.c-avatar{ width:26px; height:26px; border-radius:50%; object-fit:cover; flex-shrink:0; }
.c-avatar-ph{ display:inline-flex; align-items:center; justify-content:center; width:26px; height:26px; border-radius:50%; background:var(--blue-light); color:var(--primary); font-size:12px; font-weight:bold; flex-shrink:0; }

/* 发票状态快捷按钮（2026-09-15 老牟要求：详情页发票区下方加「已开 / 无需开」） */
.inv-quick{ display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-top:12px; }
.inv-quick .inv-btn{ display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px;
  padding:10px 4px; border-radius:10px; border:1px solid var(--border); background:#fff; color:var(--text2);
  cursor:pointer; transition:all .15s ease; -webkit-tap-highlight-color:transparent; font-family:inherit; }
.inv-quick .inv-btn:active{ transform:scale(.97); }
.inv-quick .inv-btn .ico{ font-size:18px; line-height:1; }
.inv-quick .inv-btn .txt{ font-size:12px; font-weight:bold; line-height:1; white-space:nowrap; }
.inv-quick .inv-btn.on.has{ background:var(--green-light); color:#047857; border-color:#A7F3D0; box-shadow:0 1px 3px rgba(4,120,87,.12); }
.inv-quick .inv-btn.on.pending{ background:var(--red-light); color:var(--red); border-color:#FCA5A5; box-shadow:0 1px 3px rgba(239,68,68,.12); }
.inv-quick .inv-btn.on.no{ background:#F1F5F9; color:#475569; border-color:#CBD5E1; box-shadow:0 1px 3px rgba(71,85,105,.12); }
/* 待刘悦确认（2026-09-15 审批流）：橙色 */
.inv-quick .inv-btn.on.wait{ background:#FEF3C7; color:#B45309; border-color:#FCD34D; box-shadow:0 1px 3px rgba(180,83,9,.12); }
.inv-apply{ margin-top:10px; padding:10px 12px; background:#FFFBEB; border:1px solid #FDE68A; border-radius:10px; }
.inv-apply-txt{ font-size:12px; color:#92400E; line-height:1.5; }
.inv-acts{ display:flex; gap:8px; margin-top:10px; }
.inv-acts .btn{ margin:0; flex:1; }
.inv-quick .inv-hint{ grid-column:1 / -1; font-size:10px; color:var(--text2); text-align:center; opacity:.85; margin-top:-1px; }
.inv-tip{ font-size:11px; color:var(--text2); margin-top:8px; line-height:1.55; }

/* 留言 */
.comment-item{ padding:12px 14px; margin:10px 0; border-radius:14px; background:#fff; border:1px solid #EEF2F7; }
.comment-item.c-reply{ margin:6px 0 6px 34px; padding:8px 0 8px 12px; background:transparent; border:none; border-left:2px solid #E2E8F0; border-radius:0; }
.comment-item .c-head{ display:flex; align-items:flex-start; gap:8px; font-size:13px; }
.comment-item .c-head .c-meta{ flex:1; min-width:0; }
.comment-item .c-head .c-top{ display:flex; align-items:baseline; gap:8px; overflow:hidden; }
.comment-item .c-head .who{ font-weight:bold; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.comment-item .c-head .time{ color:var(--hint); font-size:11px; white-space:nowrap; flex-shrink:0; }
.comment-item .c-acts{ display:flex; gap:14px; row-gap:4px; margin-top:3px; flex-wrap:wrap; }
/* 留言编辑/删除按钮：原来 link-btn 无样式，显示为浏览器默认粗框按钮，排版难看（2026-09-15 补） */
.link-btn{ background:none; border:none; padding:0; margin:0; color:var(--primary);
  font-size:12px; font-family:inherit; line-height:1.4; cursor:pointer; -webkit-tap-highlight-color:transparent; }
.link-btn:active{ opacity:.55; }
.comment-item .c-text{ margin-top:4px; font-size:14px; }
/* 留言操作按钮：药丸样式，一眼可见「回复」入口（2026-09-17 老牟反馈找不到回复按钮） */
.comment-item .c-acts{ gap:8px; }
.comment-item .c-acts .link-btn{ padding:2px 10px; border-radius:12px; font-size:12.5px; font-weight:600; }
.comment-item .c-acts .reply-btn{ background:#EFF6FF; color:#2563EB; }
.comment-item .c-acts .edit-btn{ background:#F1F5F9; color:#475569; }
.comment-item .c-acts .del-btn{ background:#FEF2F2; color:#DC2626; }
.comment-input{ display:flex; gap:8px; margin-top:12px; }
.comment-input input{ flex:1; padding:10px 12px; border:1px solid var(--border); border-radius:10px; font-size:14px; outline:none; }

/* ===== 弹窗 ===== */
.modal-mask{ position:fixed; inset:0; background:rgba(0,0,0,.5); z-index:200; display:none; align-items:flex-end; }
.modal-mask.show{ display:flex; }
/* 2026-09-20 新增：二级弹窗层级（叠加在别的弹窗之上再打开的弹窗）—— 与记账 v1.2.91 同套规范 */
.modal-mask--top{ z-index:300; }
.modal{ background:#fff; width:100%; border-radius:16px 16px 0 0; padding:18px 18px calc(18px + env(safe-area-inset-bottom)); max-height:88vh; overflow-y:auto; }
/* 账单详情：内容区滚动 + 底部操作按钮固定（适配各种屏宽高比） */
.modal-detail-box{ position:relative; display:flex; flex-direction:column; max-height:90vh; padding-bottom:0; overflow-y:auto; -webkit-overflow-scrolling:touch; }
.modal-detail-box .modal-title{ padding-right:40px; }
.modal-close-fixed{ position:fixed !important; top:80px; right:16px; width:36px; height:36px; font-size:16px; color:#6B7280; background:#fff; border:1.5px solid #D1D5DB; border-radius:10px; cursor:pointer; display:flex; align-items:center; justify-content:center; z-index:10000; box-shadow:0 2px 8px rgba(0,0,0,.12); }
.modal-close-fixed:hover{ background:#F3F4F6; color:#374151; border-color:#9CA3AF; }
.modal-close-fixed:active{ background:#E5E7EB; }
/* 任务详情右上角「? 帮助」：放在关闭按钮左边，风格与关闭按钮完全一致（2026-09-18 老牟要求） */
.modal-close-fixed.modal-help-fixed{ right:60px; font-size:17px; font-weight:bold; }
.modal-detail-box #detail-body{ }
.modal-detail-box #detail-actions{ border-top:none; padding:8px 0 6px; background:transparent; }
.modal-detail-box #detail-actions .btn{ padding:7px 12px; font-size:13px; }
/* 发票按钮：金额右侧（2026-08-16 只挪按钮，其他不动） */
/* 账单详情：左=详情，右=发票整体区域（2026-08-16 老牟要求：发票区域整体放金额右手边） */
.detail-grid{ display:grid; grid-template-columns:1fr 1.2fr; gap:10px; align-items:start; }
.detail-col{ min-width:0; }
.detail-col .invoice-grid{ grid-template-columns:repeat(2,1fr); gap:6px; }
.detail-col .inv-add{ aspect-ratio:1/1; font-size:10.5px; gap:2px; }
.detail-col .inv-add .plus{ font-size:20px; }
.modal .modal-title{ font-size:17px; font-weight:bold; margin-bottom:14px; text-align:center; position:relative; }
.modal .modal-close{ position:absolute; right:8px; top:8px; width:32px; height:32px; font-size:14px; color:#6B7280; background:#F3F4F6; border:1px solid #E5E7EB; border-radius:8px; cursor:pointer; display:flex; align-items:center; justify-content:center; z-index:10; }
.modal .modal-close:hover{ background:#E5E7EB; color:#374151; }
.modal .modal-close:active{ background:#D1D5DB; }
.modal-center{ align-items:center; justify-content:center; }
.modal-center .modal{ border-radius:14px; max-width:320px; margin:0 30px; }

/* ===== 统计卡 ===== */
.stat-grid{ display:grid; grid-template-columns:1fr 1fr; gap:10px; margin:10px 16px; }
.stat-card{ background:var(--card); border-radius:16px; padding:14px; text-align:center; box-shadow:0 1px 3px rgba(0,0,0,.05); }
.stat-card .s-label{ font-size:12px; color:var(--text2); }
.stat-card .s-val{ font-size:20px; font-weight:bold; margin-top:4px; }
.stat-card .s-sub{ font-size:11px; color:var(--text2); margin-top:2px; }
.stat-card.red .s-val{ color:var(--red); }
.stat-card.green .s-val{ color:#047857; }
.stat-card.blue .s-val{ color:var(--primary); }

/* ===== 用户项 ===== */
/* 2026-09-16 修复：按钮多时把名字挤成一列一个字 —— 允许换行 + 给信息区最小宽度 */
.user-item{ background:var(--card); border-radius:16px; margin:5px 16px; padding:12px 14px; display:flex; align-items:center; gap:12px; row-gap:8px; flex-wrap:wrap; box-shadow:0 1px 3px rgba(0,0,0,.05); }
.user-item .u-avatar{ width:40px; height:40px; border-radius:50%; background:var(--blue-light); display:flex; align-items:center; justify-content:center; font-size:20px; overflow:hidden; flex-shrink:0; }
.user-item .u-avatar img{ width:100%; height:100%; object-fit:cover; }
.user-item .u-info{ flex:1 1 140px; min-width:0; }
.user-item .u-name{ font-weight:bold; font-size:15px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.user-item .u-sub{ font-size:12px; color:var(--text2); margin-top:2px; }
.user-item .u-actions{ display:flex; gap:6px; flex-wrap:wrap; justify-content:flex-end; margin-left:auto; }
.tag-role{ font-size:11px; padding:2px 8px; border-radius:6px; }
.tag-role.super_admin{ background:var(--amber-light); color:#92400E; }
.tag-role.admin{ background:var(--blue-light); color:#1E40AF; }
.tag-role.user{ background:var(--gray-light); color:#4B5563; }
.tag-status{ font-size:11px; padding:2px 8px; border-radius:6px; }
.tag-status.pending{ background:var(--amber-light); color:#92400E; }
.tag-status.active{ background:var(--green-light); color:#047857; }
.tag-status.rejected{ background:var(--red-light); color:var(--red); }
.tag-status.pin-all{ background:#FEF3C7; color:#B45309; }
.tag-status.pin-mine{ background:#F3F4F6; color:#6B7280; }

/* 日志 */
.log-item{ background:var(--card); border-radius:10px; margin:5px 16px; padding:10px 12px; font-size:13px; box-shadow:0 1px 2px rgba(0,0,0,.04); }
.log-item .l-time{ color:var(--hint); font-size:11px; margin-left:6px; }

/* 空状态 */
.empty{ text-align:center; color:var(--text2); padding:40px 20px; font-size:13px; }
.empty .e-ico{ font-size:40px; margin-bottom:8px; }

/* Toast */
.toast{ position:fixed; top:15%; left:50%; transform:translateX(-50%); background:rgba(17,24,39,.9); color:#fff; padding:10px 20px; border-radius:10px; font-size:14px; z-index:999; max-width:80%; text-align:center; opacity:0; transition:opacity .3s; pointer-events:none; }
.toast.show{ opacity:1; }

/* 加载 */
.loading{ text-align:center; padding:30px; color:var(--text2); }
.spinner{ display:inline-block; width:22px; height:22px; border:3px solid var(--border); border-top-color:var(--primary); border-radius:50%; animation:spin .8s linear infinite; vertical-align:middle; margin-right:8px; }

/* 下拉刷新指示器（2026-09-15 老牟要求） */
.ptr-ind{ position:fixed; left:50%; top:10px; transform:translate(-50%,-60px); opacity:0;
  display:flex; align-items:center; gap:6px; background:#fff; color:var(--text2);
  font-size:12px; font-weight:bold; padding:7px 14px; border-radius:20px;
  box-shadow:0 4px 14px rgba(0,0,0,.14); z-index:300; pointer-events:none;
  transition:opacity .15s ease, transform .18s ease; }
.ptr-ind.show{ opacity:1; }
.ptr-ind .spinner{ width:14px; height:14px; border-width:2px; margin-right:0; }
@keyframes spin{ to{ transform:rotate(360deg); } }

/* 内容区底部留白 */
.content{ padding-bottom:80px; }
.content-tight{ padding-bottom:20px; }

/* 底部固定按钮（只留记一笔，新建账本已挪到顶部） */
.bottom-btn{ position:fixed; bottom:0; left:0; right:0; padding:12px 16px calc(12px + env(safe-area-inset-bottom)); background:linear-gradient(transparent, var(--bg) 30%); z-index:50; box-sizing:border-box; }
.bottom-btn .btn{ box-shadow:0 2px 8px rgba(59,130,246,.35); }
#home-list{ padding-bottom:100px; }
.acc-group-head:first-child{ margin-top:8px; }   /* 旧的 .acc-group-head/.acc-group-sub 规则（灰色、baseline、margin:14px）已删除 ——
   2026-09-18：它排在文件后面，会把上面新的分组夹子样式（组色/居中/底带）整段盖掉 */

/* 设置列表项 */
.set-item{ background:var(--card); border-radius:16px; margin:5px 16px; padding:14px; display:flex; align-items:center; gap:12px; cursor:pointer; box-shadow:0 1px 3px rgba(0,0,0,.05); }
.set-item .set-icon{ width:40px; height:40px; border-radius:12px; background:var(--blue-light); display:flex; align-items:center; justify-content:center; font-size:18px; flex-shrink:0; }
.set-item .set-body{ flex:1; }
.set-item .set-name{ font-size:15px; font-weight:bold; }
.set-item .set-sub{ font-size:12px; color:var(--text2); margin-top:2px; }
.set-item .set-arrow{ color:var(--hint); }

/* 登录/注册页 */
.auth-wrap{ min-height:100vh; background:linear-gradient(135deg,#3B82F6 0%,#6366F1 100%); display:flex; flex-direction:column; align-items:center; justify-content:center; padding:30px; }
.auth-logo{ font-size:54px; margin-bottom:8px; }
.auth-title{ color:#fff; font-size:26px; font-weight:bold; }
.auth-sub{ color:rgba(255,255,255,.85); font-size:13px; margin-top:4px; margin-bottom:28px; }
.auth-card{ width:100%; max-width:380px; background:#fff; border-radius:20px; padding:24px; box-shadow:0 10px 40px rgba(0,0,0,.25); }
.auth-card .field{ margin-bottom:14px; }
.auth-card .field input{ width:100%; padding:12px 14px; border:1px solid var(--border); border-radius:12px; font-size:16px; outline:none; }
.auth-card .field input:focus{ border-color:var(--primary); }
.auth-links{ display:flex; justify-content:space-between; margin-top:14px; font-size:13px; color:var(--primary); }
.auth-links span{ cursor:pointer; }

/* 隐藏账单横幅 */
.hidden-banner{ background:var(--pink-light); color:#BE185D; font-size:12px; padding:8px 16px; text-align:center; }

/* 我的信息卡 */
.me-card{ background:var(--card); border-radius:16px; margin:16px; padding:18px; display:flex; align-items:center; gap:14px; box-shadow:0 1px 3px rgba(0,0,0,.05); }
.me-card .me-avatar{ width:56px; height:56px; border-radius:50%; background:var(--blue-light); display:flex; align-items:center; justify-content:center; font-size:26px; overflow:hidden; flex-shrink:0; }
.me-card .me-avatar img{ width:100%; height:100%; object-fit:cover; }

/* ========== 记一笔 · 工具行（复刻单机版：拍照/相册/识别/语音） ========== */
.tool-row{ display:flex; gap:8px; flex-wrap:wrap; }
.tool-btn{ flex:1; min-width:70px; padding:10px 6px; border:1px solid var(--border); border-radius:12px;
  background:var(--card); color:var(--text1); font-size:13px; display:flex; flex-direction:column; align-items:center;
  gap:3px; cursor:pointer; -webkit-tap-highlight-color:transparent; }
.tool-btn:active{ background:var(--bg); }
.tool-btn:disabled{ opacity:.5; }
.tool-btn .tb-ico{ font-size:20px; line-height:1; }
/* 照片九宫格 */
.photo-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:8px; }
.ph-item{ position:relative; aspect-ratio:1; border-radius:10px; overflow:hidden; background:var(--bg); }
.ph-item img{ width:100%; height:100%; object-fit:cover; }
.ph-del{ position:absolute; top:2px; right:2px; width:20px; height:20px; border-radius:50%;
  background:rgba(0,0,0,.55); color:#fff; font-size:11px; border:none; line-height:1; cursor:pointer; }
/* 位置行 */
.loc-row{ display:flex; align-items:center; gap:6px; }
.loc-row .loc-del{ margin-left:auto; color:var(--text2); cursor:pointer; font-size:14px; padding:4px; }

/* 发票三态标签 */
.chip.pending-inv{ background:var(--red-light); color:var(--red); }  /* 待开：红色标红提醒（2026-09-15 改） */
.stat-card.warn-card{ background:var(--amber-light); }

/* 地图选点弹窗（iframe） */
.map-picker-mask{ background:rgba(0,0,0,.5); }
.map-picker-frame{ position:fixed; top:0; left:0; right:0; bottom:0; z-index:999; background:#f5f6f8; }

/* ===== 记一笔页紧凑布局（v20260813p） =====
   整体压缩高度：一屏放下，避免浏览器上下滑动/底部导航栏遮挡 */
#view-add .header{ padding:10px 18px 12px; }
#view-add .header .h-title{ font-size:18px; margin-top:4px; }
#view-add .header .h-sub{ font-size:11px; }
#view-add .form-card{ margin:8px 16px; }
#view-add .form-card .row{ padding:9px 14px; }
#view-add .amount-card{ margin:8px 16px; padding:10px 14px; }
#view-add .amount-card input{ font-size:28px; margin-top:2px; }
#view-add .amount-card .hint{ display:none; }
#view-add .tool-btn{ padding:7px 6px; }
#view-add .tool-btn .tb-ico{ font-size:17px; }
#view-add .photo-grid{ margin-top:8px; }
#view-add .ph-item{ border-radius:8px; }
#view-add .btn-lg{ height:46px; font-size:16px; }
#view-add .loc-row{ margin-top:6px !important; padding:6px 10px !important; }

/* ===== 全屏图片预览（2026-08-16 支持缩放/拖动） ===== */
.img-preview-mask{ position:fixed; inset:0; background:rgba(0,0,0,.95); z-index:999; display:none; overflow:hidden; }
.img-preview-mask.show{ display:block; }
.img-preview-stage{ position:absolute; inset:0; display:flex; align-items:center; justify-content:center; overflow:hidden; touch-action:none; }
.img-preview-stage img{ max-width:96%; max-height:88vh; object-fit:contain; border-radius:6px;
  transform-origin:center center; will-change:transform; user-select:none; -webkit-user-select:none; -webkit-user-drag:none; }
.img-preview-stage.draggable img{ cursor:grab; }
.img-preview-close{ position:fixed; top:calc(16px + env(safe-area-inset-top)); right:16px; width:40px; height:40px; border-radius:50%; background:rgba(255,255,255,.2); color:#fff; font-size:20px; border:none; cursor:pointer; z-index:1000; }
.img-preview-counter{ position:fixed; top:calc(20px + env(safe-area-inset-top)); left:50%; transform:translateX(-50%); color:#fff; font-size:14px; background:rgba(0,0,0,.5); padding:4px 14px; border-radius:20px; z-index:1000; pointer-events:none; }
.img-preview-nav{ position:fixed; top:50%; transform:translateY(-50%); width:44px; height:44px; border-radius:50%; background:rgba(255,255,255,.15); color:#fff; font-size:28px; line-height:44px; text-align:center; border:none; cursor:pointer; z-index:1000; }
.img-preview-prev{ left:12px; }
.img-preview-next{ right:12px; }
.img-preview-hint{ position:fixed; bottom:calc(30px + env(safe-area-inset-bottom)); left:0; right:0; text-align:center; color:#fff; font-size:13px; pointer-events:none; z-index:1000; opacity:.8; }
.pv-reset{ position:fixed; bottom:calc(62px + env(safe-area-inset-bottom)); left:50%; transform:translateX(-50%); display:none;
  background:rgba(255,255,255,.22); color:#fff; border:none; border-radius:18px; padding:7px 16px; font-size:13px; z-index:1000; cursor:pointer; }
.img-preview-mask.zoomed .pv-reset{ display:block; }
.img-preview-mask.zoomed .img-preview-nav{ display:none; }
.img-preview-mask.single .img-preview-nav{ display:none; }

/* ===== 地图选点（2026-09-16 老牟：像微信发位置一样手动搜索/选点） ===== */
.loc-picker-mask{ position:fixed; inset:0; background:var(--bg); z-index:1200; display:none; flex-direction:column; }
.loc-picker-mask.show{ display:flex; }
.lp-head{ display:flex; align-items:center; gap:8px; padding:calc(10px + env(safe-area-inset-top)) 12px 10px; background:#fff; border-bottom:1px solid var(--border); }
.lp-input{ flex:1; min-width:0; background:var(--bg); border:1px solid var(--border); border-radius:10px; padding:9px 12px; font-size:14px; color:var(--text); outline:none; }
.lp-btn{ flex:0 0 auto; background:var(--primary); color:#fff; border:none; border-radius:10px; padding:9px 14px; font-size:14px; font-weight:bold; cursor:pointer; }
.lp-close{ flex:0 0 auto; background:var(--bg); color:var(--text2); border:1px solid var(--border); border-radius:10px; width:36px; height:36px; font-size:16px; cursor:pointer; }
.lp-mapwrap{ position:relative; flex:1; min-height:0; }
.lp-map{ width:100%; height:100%; background:#E8EDF3; }
.lp-pin{ position:absolute; left:50%; top:50%; transform:translate(-50%,-100%); width:26px; height:34px; pointer-events:none; z-index:5; }
.lp-pin::before{ content:''; position:absolute; left:50%; top:0; transform:translateX(-50%); width:26px; height:26px; background:var(--red); border:3px solid #fff; border-radius:50%; box-shadow:0 2px 6px rgba(0,0,0,.35); }
.lp-pin::after{ content:''; position:absolute; left:50%; bottom:0; transform:translateX(-50%); border-left:7px solid transparent; border-right:7px solid transparent; border-top:13px solid var(--red); }
.lp-results{ position:absolute; left:0; right:0; top:0; max-height:62%; overflow-y:auto; background:#fff; z-index:6; display:none; box-shadow:0 6px 16px rgba(0,0,0,.12); }
.lp-myloc{ position:absolute; right:14px; bottom:16px; width:44px; height:44px; border-radius:50%; background:#fff; border:1px solid var(--border); box-shadow:0 2px 8px rgba(0,0,0,.18); display:flex; align-items:center; justify-content:center; cursor:pointer; z-index:7; padding:0; }
.lp-myloc:active{ background:var(--blue-light); }
.lp-myloc.loading svg{ animation:lpSpin 1s linear infinite; }
@keyframes lpSpin{ from{ transform:rotate(0); } to{ transform:rotate(360deg); } }
.lp-myloc.loading svg circle:nth-of-type(2){ stroke-dasharray:12 33; }

.lp-item{ padding:12px 16px; border-bottom:1px solid var(--border); cursor:pointer; }
.lp-item:active{ background:var(--bg); }
.lp-item-name{ font-size:15px; color:var(--text); font-weight:600; }
.lp-item-addr{ font-size:12px; color:var(--hint); margin-top:2px; }
.lp-foot{ background:#fff; border-top:1px solid var(--border); padding:10px 14px calc(12px + env(safe-area-inset-bottom)); }
.lp-addr{ font-size:13px; color:var(--text2); line-height:1.4; margin-bottom:8px; min-height:18px; }

/* ===== 留言提醒：已读/未读 + 删除（2026-09-15 老牟要求） ===== */
.noti-bar{ display:flex; gap:16px; padding:0 2px 10px; border-bottom:0.5px solid var(--border); margin-bottom:10px; }
.noti-item{ border-radius:12px; padding:10px 12px; margin-bottom:8px; border:1px solid var(--border); background:#fff; }
.noti-item.unread{ background:var(--blue-light); border-color:#BFDBFE; }
.noti-item.read{ background:var(--bg); }
.noti-item.read .noti-title{ color:var(--text2); font-weight:normal; }
.noti-item.read .noti-text, .noti-item.read .noti-meta{ opacity:.75; }
.noti-main{ cursor:pointer; }
.noti-title{ font-size:13px; font-weight:bold; display:flex; align-items:center; gap:5px; }
.noti-dot{ display:inline-block; width:7px; height:7px; border-radius:50%; background:var(--red); flex-shrink:0; }
.noti-text{ font-size:12px; color:var(--text2); margin-top:3px; word-break:break-all; }
.noti-meta{ font-size:11px; color:var(--hint); margin-top:3px; }
.noti-acts{ display:flex; gap:14px; margin-top:8px; padding-top:7px; border-top:0.5px dashed var(--border); }
.link-btn.danger{ color:var(--red); }

/* 提醒标题里的日期（2026-09-15 老牟要求：同名账目靠日期区分） */
.noti-date{ font-size:11px; font-weight:normal; color:var(--text2); background:var(--gray-light); padding:1px 6px; border-radius:8px; }
.noti-item.unread .noti-date{ background:#DBEAFE; color:#2563EB; }

/* 留言回复：楼中楼（2026-09-17 改为抖音/小红书式两级扁平：所有回复平铺在一楼下方，只缩进一层） */
.c-at{ color:var(--primary); font-weight:bold; margin-right:3px; }
.reply-box{ display:none; gap:8px; margin-top:7px; align-items:center; }
.reply-box.show{ display:flex; }
.reply-box input{ flex:1; min-width:0; font-size:13px; padding:7px 10px; border:1px solid var(--border); border-radius:9px; background:#fff; }

/* ===== 底部双按钮（2026-09-16 老牟：左个人任务 / 右协作任务） ===== */
.bottom-btn.bottom-btn-2{ display:flex; gap:10px; align-items:center; }
.bottom-btn.bottom-btn-2 .btn{ flex:1; min-width:0; padding:0 8px; white-space:nowrap; font-size:16px; }
.bottom-btn .btn-personal{ background:#fff; color:#2563EB; border:1.5px solid #BFDBFE; box-shadow:0 2px 8px rgba(15,23,42,.08); }
.bottom-btn .btn-personal:active{ background:#EFF6FF; }

/* ===== 个人任务区标题：高频「＋ 新建任务」胶囊按钮（2026-09-16） ===== */
.sec-head-mine{ display:flex; align-items:center; gap:8px; }
.sec-head-mine .sec-head-txt{ flex:0 0 auto; }
.sec-head-mine .sec-head-sp{ flex:1; }
.sec-head-mine .sec-done-n{ font-size:12px; color:#94A3B8; flex:0 0 auto; }
.sec-head-mine .sec-newproj{ flex:0 0 auto; color:#94A3B8; font-size:15px; line-height:1; padding:4px 2px; }
.sec-head-mine .btn-quick{ flex:0 0 auto; height:34px; padding:0 16px; border:none; border-radius:999px;
  background:linear-gradient(135deg,#3B82F6 0%,#6366F1 100%); color:#fff; font-size:14px; font-weight:600;
  cursor:pointer; box-shadow:0 2px 8px rgba(59,130,246,.32); }
.sec-head-mine .btn-quick:active{ transform:scale(.95); }

/* ---------- 通知中心 v2（2026-09-16 重做）---------- */
.bell-badge{ position:absolute; top:-2px; right:-4px; min-width:16px; height:16px; padding:0 4px; border-radius:9px; background:#EF4444; color:#fff; font-size:10px; font-weight:bold; line-height:16px; text-align:center; border:1.5px solid #fff; box-sizing:border-box; }
.noti-tabs{ display:flex; gap:6px; overflow-x:auto; padding:0 0 10px; -webkit-overflow-scrolling:touch; }
.noti-tabs::-webkit-scrollbar{ display:none; }
.noti-tab{ flex-shrink:0; font-size:12px; padding:5px 11px; border-radius:14px; background:var(--bg); color:var(--text2); border:1px solid var(--border); cursor:pointer; white-space:nowrap; }
.noti-tab.on{ background:var(--blue-light); color:#2563EB; border-color:#BFDBFE; font-weight:bold; }
.noti-tab b{ color:#EF4444; }
.noti-head-txt{ font-size:12px; color:var(--hint); }
.noti-ico{ font-size:14px; flex-shrink:0; }
.noti-name{ flex:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.noti-go{ font-size:11px; color:#3B82F6; margin-top:5px; }
.noti-item .noti-main{ cursor:pointer; }

/* ================= 帮助弹窗（2026-09-18 对齐记账 v1.2.41） ================= */
.help-wrap{ font-size:13px; color:var(--text); line-height:1.65; }
.help-lead{ background:var(--blue-light); color:var(--primary); padding:9px 11px; border-radius:10px; margin-bottom:12px; font-size:12.5px; }
.help-h{ font-size:14px; font-weight:bold; margin:14px 0 6px; color:var(--text); }
.help-ol div{ padding:2px 0; }
.help-tbl div{ display:block; padding:4px 0; }   /* 任务版文案比记账长，flex+gap 会把括号/句子拆行 → 改自然流式 */
.help-tbl b{ margin-right:6px; }
.help-tbl b{ color:var(--text); }
.help-tip{ font-size:11.5px; color:var(--text2); background:var(--gray-light); padding:7px 10px; border-radius:9px; margin-top:6px; }

/* 任务卡片里的小头像（2026-09-18 P2-8）：比 .c-avatar 小一号；占位底色走中性灰，不刷彩色 */
.t-assignee{ display:inline-flex; align-items:center; gap:4px; }
.t-ava{ width:20px; height:20px; font-size:11px; }

/* ===== 提醒独立页（2026-09-18：仿简易记账；分组标题去掉彩色竖条，守「不要带颜色的线条」）===== */
#noti-page-body .noti-sec{ display:flex; align-items:center; gap:6px; font-size:12.5px; font-weight:600;
  color:var(--text2); margin:16px 16px 8px; line-height:1.25; }
#noti-page-body .noti-sec:first-child{ margin-top:4px; }
#noti-page-body .noti-sec .ns-cnt{ font-weight:normal; color:var(--hint); }
/* 空状态卡片：图标 + 主文案 + 提示 */
#noti-page-body .noti-empty{ text-align:center; padding:24px 18px; margin:0 16px 8px; border-radius:14px;
  background:linear-gradient(180deg,#FAFBFF 0%,#F6F8FE 100%); border:1px dashed rgba(59,130,246,.24); }
#noti-page-body .noti-empty .ne-ic{ font-size:32px; line-height:1; margin-bottom:10px; }
#noti-page-body .noti-empty .ne-ttl{ font-size:13.5px; font-weight:600; color:var(--text2); }
#noti-page-body .noti-empty .ne-sub{ font-size:11.5px; color:var(--hint); margin-top:6px; line-height:1.55; }
/* 待办卡片 */
#noti-page-body .noti-todo{ display:flex; align-items:center; gap:10px; margin:0 16px 8px; padding:11px 12px;
  border-radius:13px; background:var(--blue-light); border:1px solid rgba(59,130,246,.18); }
#noti-page-body .noti-todo-ic{ font-size:20px; flex:none; }
#noti-page-body .noti-todo-body{ flex:1; min-width:0; }
#noti-page-body .noti-todo-ttl{ font-size:13.5px; font-weight:bold; color:var(--text); display:flex; align-items:center; }
#noti-page-body .noti-todo-sub{ font-size:12px; color:var(--text2); margin-top:3px; line-height:1.45; word-break:break-all; }
#noti-page-body .noti-todo-t{ font-size:11px; color:var(--hint); margin-top:3px; }
#noti-page-body .noti-go{ flex:none; border:none; border-radius:9px; padding:7px 11px; font-size:12.5px; font-weight:bold;
  background:var(--primary); color:#fff; cursor:pointer; }
#noti-page-body .noti-go:active{ opacity:.75; }
/* 消息行 */
#noti-page-body .noti-row{ display:flex; align-items:flex-start; gap:9px; margin:0 16px 7px; padding:10px 11px;
  border-radius:12px; background:#fff; border:1px solid var(--border); }
#noti-page-body .noti-row.unread{ background:#F8FAFF; border-color:rgba(59,130,246,.2); }
#noti-page-body .noti-row .noti-ck{ width:17px; height:17px; flex:none; margin-top:2px; }
#noti-page-body .noti-row-main{ flex:1; min-width:0; cursor:pointer; }
#noti-page-body .noti-row .noti-title{ font-size:13px; font-weight:600; color:var(--text); display:flex; align-items:center; gap:5px; }
#noti-page-body .noti-row.read .noti-title{ color:var(--text2); font-weight:normal; }
#noti-page-body .noti-row .noti-text{ font-size:12.5px; color:var(--text2); margin-top:3px; line-height:1.45; word-break:break-all; }
#noti-page-body .noti-row .noti-meta{ font-size:11px; color:var(--hint); margin-top:4px; }
#noti-page-body .noti-row .noti-dot{ display:inline-block; width:7px; height:7px; border-radius:50%;
  background:#EF4444; margin-right:5px; vertical-align:middle; flex:none; }
#noti-page-body .noti-row .noti-date{ color:var(--hint); font-size:11px; background:none; padding:0; margin-left:auto; font-weight:normal; }
/* 底部小结 */
#noti-page-body .noti-foot{ text-align:center; font-size:11px; color:var(--hint); padding:16px 16px 26px; }

/* ===== 宽屏自适应：电脑/平板浏览器打开时居中，模拟手机界面 =====
   2026-09-19 老牟要求：
   ① 折叠屏（OPPO Find N6）外屏 / 内屏展开 / 分屏都要能用
   ② 电脑浏览器打开不要拉满整屏，像手机一样用（触摸→键鼠）
   做法：≥640px 时整页居中限宽 480px；手机外屏(≤480)与分屏窄窗口(<640)完全不变 */
:root{ --app-max:480px; }
@media (min-width:640px){
  html{ background:#e6e8ec; }
  body{ max-width:var(--app-max); margin:0 auto; min-height:100vh;
        box-shadow:0 0 0 1px rgba(0,0,0,.06),0 10px 40px rgba(0,0,0,.10); }
  .bottom-btn{ left:50%; right:auto; transform:translateX(-50%); width:100%; max-width:var(--app-max); }
  .modal-mask,.loc-picker-mask{ left:50%; right:auto; transform:translateX(-50%); width:100%; max-width:var(--app-max); }
  .toast{ max-width:calc(var(--app-max) - 32px); }
}

/* ===== 站内信（2026-09-20）===== */
.dm-list-item{ display:flex; align-items:center; gap:12px; padding:13px 16px; background:var(--card); border-bottom:1px solid var(--border); cursor:pointer; }
.dm-list-item:active{ background:var(--gray-light); }
.dm-list-item.dm-group-item{ background:var(--blue-light); }
.dm-avatar{ flex:0 0 42px; width:42px; height:42px; border-radius:50%; background:var(--gray-light); display:flex; align-items:center; justify-content:center; font-size:18px; color:var(--text2); overflow:hidden; }
.dm-avatar img{ width:100%; height:100%; object-fit:cover; display:block; }   /* 2026-09-20 修：真实头像填满圆形 */
.dm-main{ flex:1; min-width:0; }
.dm-top{ display:flex; align-items:center; gap:6px; }
.dm-name{ font-size:15px; font-weight:600; color:var(--text); flex:0 1 auto; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.dm-atme{ flex:0 0 auto; font-size:10px; color:#fff; background:var(--red); padding:1px 5px; border-radius:8px; }
.dm-sub{ flex:0 0 auto; font-size:11px; color:var(--hint); }
.dm-time{ margin-left:auto; flex:0 0 auto; font-size:11px; color:var(--hint); }
.dm-bottom{ display:flex; align-items:center; gap:6px; margin-top:3px; }
.dm-last{ flex:1; min-width:0; font-size:13px; color:var(--text2); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.dm-badge{ flex:0 0 auto; min-width:18px; height:18px; padding:0 5px; border-radius:9px; background:var(--red); color:#fff; font-size:11px; line-height:18px; text-align:center; box-sizing:border-box; }
#dm-pick-body .dm-list-item:last-child{ border-bottom:none; }

/* 聊天页：整页 flex 布局，输入框始终贴底 */
#page-chat.active{ display:flex; flex-direction:column; height:100vh; height:100dvh; overflow:hidden; }
.dm-chat-body{ flex:1; overflow-y:auto; padding:12px 14px 8px; }
.dm-load-more{ display:block; margin:2px auto 10px; padding:6px 14px; border:1px solid var(--border); border-radius:14px; background:var(--card); color:var(--text2); font-size:12px; cursor:pointer; }
.dm-day-sep{ text-align:center; font-size:11px; color:var(--hint); margin:10px 0; }
.dm-bubble-row{ display:flex; margin:6px 0; }
.dm-bubble-row.mine{ justify-content:flex-end; }
.dm-bubble-row.other{ justify-content:flex-start; }
.dm-bubble-wrap{ display:flex; flex-direction:column; max-width:78%; min-width:0; }
.dm-bubble-row.mine .dm-bubble-wrap{ align-items:flex-end; }
.dm-bubble-row.other .dm-bubble-wrap{ align-items:flex-start; }
.dm-sender{ display:flex; align-items:center; gap:4px; font-size:11px; color:var(--text2); margin:0 4px 3px; }
.dm-sender-avatar{ display:inline-flex; align-items:center; justify-content:center; width:16px; height:16px; border-radius:50%; background:var(--gray-light); font-size:10px; color:var(--text2); overflow:hidden; flex:0 0 auto; }
.dm-sender-avatar img{ width:100%; height:100%; object-fit:cover; display:block; }   /* 2026-09-20 修：群消息发送人头像 */
.dm-bubble{ max-width:100%; padding:9px 12px; border-radius:14px; font-size:14px; line-height:1.5; word-break:break-word; white-space:pre-wrap; }
.dm-bubble.mine{ background:var(--primary); color:#fff; border-bottom-right-radius:4px; }
.dm-bubble.other{ background:var(--card); color:var(--text); border:1px solid var(--border); border-bottom-left-radius:4px; }
.dm-bubble.recallable{ cursor:pointer; }
.dm-bubble.deleted{ opacity:.65; font-style:italic; }
.dm-bubble.mentioned{ border:2px solid #F59E0B; }
.dm-bubble.dm-card{ background:var(--blue-light); color:var(--primary-dark); border:1px solid #BFDBFE; cursor:pointer; }
.dm-bubble-row .dm-time{ margin:2px 4px 0; font-size:10px; }
.dm-chat-input{ position:relative; display:flex; gap:8px; align-items:center; padding:10px 12px calc(10px + env(safe-area-inset-bottom)); background:var(--card); border-top:1px solid var(--border); }
.dm-chat-input input{ flex:1; min-width:0; height:38px; padding:0 12px; border:1px solid var(--border); border-radius:19px; font-size:14px; outline:none; background:var(--bg); }
.dm-chat-input .btn{ margin:0; padding:0 18px; height:38px; width:auto; flex:0 0 auto; }  /* 防全局 .btn{width:100%} 把发送钮撑满 */
/* ＋ 附件面板（2026-09-20）：绝对定位浮在输入栏上方，不挤 flex 布局，窄屏不换行 */
.dm-plus-btn{ flex:0 0 auto; width:38px; height:38px; padding:0; border:1px solid var(--border); border-radius:19px; background:var(--bg); color:var(--text2); font-size:22px; line-height:1; cursor:pointer; display:flex; align-items:center; justify-content:center; }
.dm-plus-btn:active{ background:var(--gray-light); }
.dm-plus-panel{ position:absolute; left:12px; right:12px; bottom:calc(100% + 6px); display:flex; gap:8px; padding:10px; background:var(--card); border:1px solid var(--border); border-radius:12px; box-shadow:0 6px 20px rgba(0,0,0,.12); z-index:6; }
.dm-plus-item{ flex:1; min-width:0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px; padding:10px 4px; border:1px solid var(--gray-light); border-radius:10px; background:var(--bg); color:var(--text); font-size:13px; cursor:pointer; white-space:nowrap; }
.dm-plus-item:active{ background:var(--gray-light); }
.dm-plus-ico{ font-size:22px; line-height:1; }
/* 图片 / 文件 / 位置消息渲染（2026-09-20） */
.dm-bubble.dm-img{ padding:3px; background:transparent; border:none; }
.dm-bubble.dm-img img{ display:block; max-width:200px; max-height:260px; border-radius:10px; cursor:zoom-in; }
.dm-bubble .dm-attach-card{ display:flex; align-items:center; gap:8px; padding:8px 10px; border-radius:10px; background:rgba(255,255,255,.22); cursor:pointer; }
.dm-bubble.other .dm-attach-card{ background:var(--gray-light); }
.dm-attach-ico{ flex:0 0 auto; font-size:22px; line-height:1; }
.dm-attach-main{ min-width:0; display:flex; flex-direction:column; }
.dm-attach-name{ font-size:14px; font-weight:600; max-width:180px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.dm-attach-meta{ font-size:12px; opacity:.8; }
.dm-mention-pop{ position:absolute; left:12px; right:12px; bottom:calc(100% + 4px); max-height:220px; overflow-y:auto; background:var(--card); border:1px solid var(--border); border-radius:12px; box-shadow:0 6px 20px rgba(0,0,0,.12); z-index:5; }
.dm-mention-item{ padding:10px 12px; font-size:14px; cursor:pointer; border-bottom:1px solid var(--gray-light); }
.dm-mention-item:last-child{ border-bottom:none; }
.dm-mention-item:active{ background:var(--gray-light); }

/* 首页头部 5 个按钮在窄屏防换行 */
@media (max-width:400px){
  .header .h-row{ gap:5px; }
  .header .h-btn{ min-width:30px; height:30px; padding:0 6px; font-size:12px; }
  #home-greet{ max-width:64px; }
}
@media (max-width:340px){
  .header .h-row{ gap:4px; }
  .header .h-btn{ min-width:28px; height:28px; padding:0 4px; font-size:11px; }
  #home-greet{ max-width:44px; }
}

/* 2026-09-24 老牟要求：悬挂 ICP 备案号（管局硬要求：网站底部悬挂 + 链接工信部） */
.site-footer{ text-align:center; font-size:12px; line-height:1.6; color:var(--text2,#9CA3AF); padding:16px 16px calc(86px + env(safe-area-inset-bottom)); }
.site-footer a{ color:var(--text2,#9CA3AF); text-decoration:none; }
