/* ============================================================
 * app.css — 经纪人工作台样式（移动端优先 · 视觉升级版）
 * 保持全部类名与结构不变（JS 依赖），仅升级视觉质感与层级
 * 配色：借鉴专业房产数据行情界面 —— 冷调浅蓝灰底 + 纯白卡片 + 深蓝主色
 * ============================================================ */
:root {
  /* 主色：深蓝（专业 / 数据感），保留 --green* 变量名以兼容既有全部引用 */
  --green: #2E5BFF; --green-d: #1E3FCC; --green-dd: #12257F; --green-l: #EAF0FF; --green-ll: #F4F7FF;
  /* 底色：极浅冷调（参考图2）—— 近乎白的浅蓝，柔和不压眼 */
  --bg: #F5F7FC; --bg-2: #EDF1FA; --card: #ffffff;
  --line: #E8EDF6; --line-soft: #F0F3FA;
  --text: #1A2340; --muted: #93A0B8; --muted-d: #6B7A94;
  /* 功能色 */
  --red: #E8544A; --red-l: #FDECEA; --blue: #2E5BFF; --blue-l: #EAF0FF;
  --amber: #E8912B; --amber-l: #FEF3E2;
  /* CTA 强调（参考图胶囊按钮） */
  --cta: #3D6BFF; --cta-l: #E8EFFF;
  --nav-h: 60px; --top-h: 54px;
  --radius: 14px; --radius-sm: 10px; --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(26,40,80,.05), 0 2px 8px rgba(26,40,80,.04);
  --shadow: 0 2px 6px rgba(26,40,80,.05), 0 6px 20px rgba(26,40,80,.07);
  --shadow-lg: 0 8px 30px rgba(26,40,80,.16);
  --green-grad: linear-gradient(135deg, #3D6BFF 0%, #2E5BFF 55%, #1E3FCC 100%);
  --soft-grad: linear-gradient(180deg, #FAFBFF 0%, #F5F7FC 100%);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --font-num: "DIN Alternate", "Helvetica Neue", -apple-system, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.5;
  overscroll-behavior: none;
  -webkit-font-smoothing: antialiased;
}
#app { display: flex; flex-direction: column; height: 100dvh; background: var(--bg); }

/* ========== 页面切换过渡（由 App._playViewAnim 触发 .view-in） ========== */
@keyframes viewIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}
#view.view-in { animation: viewIn .22s cubic-bezier(.22,.61,.36,1); }
@media (prefers-reduced-motion: reduce) {
  #view.view-in { animation: none; }
}

/* ========== 顶栏 ========== */
.topbar {
  height: var(--top-h); background: var(--green-grad); color: #fff;
  display: flex; align-items: center; justify-content: space-between; padding: 0 14px;
  flex-shrink: 0; position: relative; z-index: 10;
  box-shadow: 0 2px 12px rgba(30,63,204,.22);
}
.brand { font-weight: 700; font-size: 16px; letter-spacing: .3px; display: flex; align-items: center; gap: 7px; }
.brand .brand-logo { font-size: 19px; }
.brand small { font-weight: 500; font-size: 11px; opacity: .82; margin-left: 2px; }
.top-btn {
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.22); color: #fff;
  padding: 6px 12px; border-radius: 16px; font-size: 13px; font-weight: 600;
  backdrop-filter: blur(4px); cursor: pointer; transition: background .15s;
}
.top-btn:active { background: rgba(255,255,255,.3); }

/* 主区域 */
#view { flex: 1; overflow-y: auto; padding: 12px; padding-bottom: 28px; -webkit-overflow-scrolling: touch; }

/* ========== 底部导航 ========== */
.bottom-nav {
  height: calc(var(--nav-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  background: rgba(255,255,255,.96); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line-soft); display: flex; flex-shrink: 0;
  overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
  box-shadow: 0 -2px 14px rgba(20,40,30,.05);
}
.bottom-nav::-webkit-scrollbar { display: none; }
.nav-item {
  flex: 0 0 auto; min-width: 56px; border: 0; background: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: var(--muted); font-size: 9px; padding: 6px 4px 3px; position: relative; transition: color .15s;
}
.nav-item .nav-ico { font-size: 17px; line-height: 1; filter: grayscale(.4); opacity: .75; transition: all .15s; }
.nav-item .nav-txt { font-weight: 500; }
.nav-item.active { color: var(--green); }
.nav-item.active .nav-ico { filter: none; opacity: 1; transform: translateY(-1px); }
.nav-item.active::before {
  content: ''; position: absolute; top: 3px; width: 18px; height: 3px; border-radius: 3px;
  background: var(--green-grad); opacity: 0;
}
.nav-item.active::before { opacity: 1; }
/* 导航角标（待办数量，由 JS 注入 nav-badge）；可点击 → 直达对应待办 */
.nav-badge {
  position: absolute; top: 2px; right: calc(50% - 16px); min-width: 15px; height: 15px;
  background: var(--red); color: #fff; border-radius: 8px; font-size: 9px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; padding: 0 3px; line-height: 1;
  box-shadow: 0 1px 4px rgba(232,84,74,.5);
  cursor: pointer; transition: transform .12s;
}
.nav-badge:active { transform: scale(.86); }
/* v97.35 需求五：逾期角标（红色，叠加显示；定位于左上角，避免与右上角今日数角标重叠） */
.nav-badge-over {
  position: absolute; top: 2px; left: calc(50% - 16px); min-width: 15px; height: 15px;
  background: var(--red); color: #fff; border-radius: 8px; font-size: 9px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; padding: 0 3px; line-height: 1;
  box-shadow: 0 1px 4px rgba(232,84,74,.5);
  cursor: pointer; transition: transform .12s;
}
.nav-badge-over:active { transform: scale(.86); }

/* 浮动「安装到桌面」按钮 */
.install-pill {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(var(--nav-h) + var(--safe-b) + 12px); z-index: 60;
  background: var(--green-grad); color: #fff; border: 0;
  padding: 10px 18px; border-radius: 22px; font-size: 14px; font-weight: 600;
  box-shadow: 0 6px 18px rgba(31,111,74,.4); display: none; cursor: pointer;
}
.install-pill:active { transform: translateX(-50%) scale(.98); }

/* ========== 启动闪屏 ========== */
#splash {
  position: fixed; inset: 0; z-index: 999;
  background: radial-gradient(120% 80% at 50% 0%, #4C78FF 0%, #2E5BFF 45%, #12257F 100%);
  color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; transition: opacity .45s ease; text-align: center; padding: 24px;
}
#splash.hide { opacity: 0; pointer-events: none; }
.splash-logo {
  width: 88px; height: 88px; border-radius: 24px; background: rgba(255,255,255,.14);
  backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center;
  font-size: 44px; line-height: 1; box-shadow: 0 12px 30px rgba(0,0,0,.25);
}
.splash-name { font-size: 20px; font-weight: 700; margin-top: 10px; letter-spacing: 1px; }
.splash-sub { font-size: 13px; opacity: .85; }
.splash-spin {
  margin-top: 20px; width: 28px; height: 28px; border: 3px solid rgba(255,255,255,.3);
  border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* 首次安装引导弹窗 */
.install-guide {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
  background: #fff; border-radius: var(--radius-lg) var(--radius-lg) 0 0; padding: 24px 20px calc(22px + env(safe-area-inset-bottom));
  box-shadow: 0 -8px 30px rgba(0,0,0,.18); transform: translateY(0);
  transition: transform .3s ease; max-width: 520px; margin: 0 auto;
}
.install-guide .ig-ico { font-size: 42px; text-align: center; }
.install-guide .ig-title { font-size: 17px; font-weight: 700; text-align: center; margin: 8px 0 4px; }
.install-guide .ig-desc { font-size: 13px; color: var(--muted); text-align: center; line-height: 1.6; }
.install-guide .ig-actions { display: flex; gap: 10px; margin-top: 18px; }
.install-guide .ig-actions .btn { flex: 1; }
.ig-backdrop { position: fixed; inset: 0; background: rgba(15,35,25,.45); z-index: 79; }

/* ========== 通用 ========== */
.page-title { font-size: 18px; margin: 4px 0 12px; display: flex; align-items: baseline; gap: 8px; font-weight: 700; }
.page-title small { font-size: 12px; color: var(--muted); font-weight: 400; }
.card {
  background: var(--card); border-radius: var(--radius); padding: 14px; margin-bottom: 12px;
  box-shadow: var(--shadow); border: 1px solid var(--line-soft);
}
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.kv:last-child { border-bottom: 0; }
.kv span { color: var(--muted); flex-shrink: 0; }
.kv b { text-align: right; font-weight: 600; }
.kv b.hl, .hl { color: var(--green); }
/* v41：客户详情基础信息双列排（缩短整页长度）；.kv-full 为通排行（电话等宽带内容） */
.kv-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.kv-2col .kv { border-bottom: 1px dashed var(--line); font-size: 13px; padding: 6px 0; gap: 8px; }
.kv-2col .kv:last-child { border-bottom: 0; }
.kv-2col .kv.kv-full { grid-column: 1 / -1; }
/* v62 需求2/3：嵌套的 .kv-2col 在双列表格里占满整行，使内部两项（如意向户型/意向面积）左右并排 */
.kv-2col > .kv-2col { grid-column: 1 / -1; }
.muted { color: var(--muted); }
.empty { text-align: center; color: var(--muted); padding: 44px 20px; font-size: 14px; }
.empty .empty-ico { font-size: 40px; display: block; margin-bottom: 8px; opacity: .5; }
.disclaimer { font-size: 12px; color: var(--muted-d); background: #fff8e8; border: 1px solid #f3e2b8; border-radius: 10px; padding: 11px; margin-top: 8px; line-height: 1.6; }
.note-box { background: var(--green-l); border-radius: 10px; padding: 10px 12px; margin: 8px 0; font-size: 14px; line-height: 1.6; }
/* v41：计划待办提醒弹层内容框（左侧绿条 + 浅绿底，与跟进记录视觉语言一致） */
.plan-reminder-box { background: var(--green-ll); border-left: 4px solid var(--green); border-radius: 10px; padding: 14px 12px; margin: 4px 0 12px; font-size: 15px; line-height: 1.65; word-break: break-all; }

/* ========== 按钮 ========== */
.btn {
  border: 1px solid var(--line); background: #fff; color: var(--text); padding: 10px 16px;
  border-radius: 12px; font-size: 14px; cursor: pointer; font-weight: 500; transition: all .15s;
}
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--green-grad); border-color: transparent; color: #fff; box-shadow: 0 4px 12px rgba(31,111,74,.3); }
.btn.primary:active { box-shadow: 0 2px 6px rgba(31,111,74,.3); }
.btn.ghost { background: var(--green-ll); border-color: #d4e8dd; color: var(--green); }
.btn.danger { background: #fff; border-color: #f0c4bc; color: var(--red); }
.btn.block { display: block; width: 100%; margin-top: 10px; }
.btn.sm { padding: 7px 11px; font-size: 13px; border-radius: 10px; }
.link-btn { background: none; border: 0; color: var(--muted); font-size: 13px; margin-top: 10px; text-decoration: underline; }

/* ========== 工具栏 ========== */
.toolbar { display: flex; gap: 8px; margin-bottom: 12px; align-items: center; }
.search { flex: 1; }
.input {
  width: 100%; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: 14px;
  background: #fff; font-family: inherit; transition: border-color .15s, box-shadow .15s;
}
.input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(31,111,74,.12); }
textarea.input { resize: vertical; line-height: 1.55; }

/* ========== 房源卡片 ========== */
.prop-list, .client-list, .plan-list, .rec-list, .cmp-list { display: flex; flex-direction: column; gap: 10px; }
.prop-card {
  display: flex; background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); cursor: pointer; border: 1px solid var(--line-soft); transition: transform .12s, box-shadow .15s;
}
.prop-card:active { transform: scale(.99); box-shadow: var(--shadow-sm); }
.prop-thumb { width: 104px; align-self: stretch; min-height: 104px; object-fit: cover; flex-shrink: 0; background: var(--green-l); }
.prop-thumb.noimg { display: flex; align-items: center; justify-content: center; font-size: 38px; background: linear-gradient(160deg, var(--green-l), var(--green-ll)); }
.prop-main { flex: 1; padding: 11px 12px; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.prop-title { font-weight: 700; font-size: 15.5px; display: flex; justify-content: space-between; align-items: baseline; gap: 6px; }
.prop-price { color: var(--red); font-weight: 800; white-space: nowrap; font-family: var(--font-num); font-size: 17px; }
.prop-sub { color: var(--muted-d); font-size: 12.5px; margin-top: 3px; line-height: 1.5; }
.prop-tags { margin-top: 7px; display: flex; gap: 5px; align-items: center; flex-wrap: wrap; }
.prop-unit { color: var(--muted); font-size: 11.5px; }
/* 房源卡片底部：跟进状态 + 跟进按钮 */
.prop-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; padding-top: 7px; border-top: 1px dashed var(--line-soft); }
.pf-status { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-status.overdue { color: var(--red); font-weight: 600; }
.pf-status.today { color: var(--amber); font-weight: 600; }
.pf-status.future { color: var(--green); }
.pf-status.done { color: var(--muted-d); }
.pf-btn {
  border: 1px solid var(--green-l); background: var(--green-ll); color: var(--green); border-radius: 10px;
  font-size: 12px; font-weight: 600; padding: 4px 10px; cursor: pointer; flex-shrink: 0; transition: all .12s;
}
.pf-btn:active { background: var(--green-l); transform: scale(.94); }
/* 跟进弹层里的「下次跟进时间」 */
.pf-next { display: block; font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.pf-next .input { margin-top: 5px; font-size: 13px; }
/* v38：「下次跟进时间」与「提醒时间」合并同一行 */
.pf-next-row { display: flex; gap: 10px; }
.pf-next-row .pf-next { flex: 1 1 0; min-width: 0; margin-bottom: 8px; }
/* v43：「计划待办内容」行——输入栏 + 右侧「完成/取消」操作 */
.plan-row { display: flex; gap: 8px; align-items: flex-end; margin-bottom: 8px; }
.plan-row .pf-next { margin-bottom: 0; min-width: 0; }
.plan-row .btn { flex: 0 0 auto; }
/* 表单里的自动计算提示 */
.lbl-row { display: flex; align-items: baseline; gap: 5px; }
.auto-tip { font-size: 10.5px; font-weight: 400; color: var(--muted); background: var(--green-ll); border-radius: 6px; padding: 0 5px; }
.input[readonly] { background: var(--bg-2); color: var(--muted-d); }
.tag { font-size: 11px; padding: 2px 8px; border-radius: 10px; font-weight: 600; display: inline-flex; align-items: center; }
.tag.green { background: var(--green-l); color: var(--green); }
.tag.blue { background: var(--blue-l); color: var(--blue); }
.tag.red { background: var(--red-l); color: var(--red); }
.tag.amber { background: var(--amber-l); color: var(--amber); }

/* ========== 客户卡片 ========== */
.client-card { background: #fff; border-radius: var(--radius); padding: 13px 14px; box-shadow: var(--shadow); cursor: pointer; border: 1px solid var(--line-soft); transition: transform .12s; }
.client-card:active { transform: scale(.99); }
.client-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.client-name { font-weight: 700; font-size: 15.5px; }
.client-budget { color: var(--text); font-weight: 700; font-family: var(--font-num); font-size: 14px; }
.client-sub { color: var(--text); font-size: 12.5px; margin-top: 5px; line-height: 1.55; }
.client-foot { color: var(--muted); font-size: 11.5px; margin-top: 7px; padding-top: 7px; border-top: 1px dashed var(--line-soft); }

/* ========== 计划卡片 ========== */
.plan-card { background: #fff; border-radius: var(--radius); padding: 13px 14px; box-shadow: var(--shadow); cursor: pointer; border: 1px solid var(--line-soft); }
.plan-card:active { transform: scale(.99); }
.plan-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 5px; }
.plan-time { font-weight: 700; font-size: 14px; }
.plan-time.overdue { color: var(--red); }
.plan-client { font-size: 14px; margin: 2px 0; }
.plan-props, .chip-box { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0; }
.chip { background: var(--green-l); color: var(--green-d); padding: 3px 10px; border-radius: 12px; font-size: 12px; }
.chip.sel { background: var(--green-grad); color: #fff; cursor: pointer; box-shadow: 0 2px 6px rgba(31,111,74,.3); }
.chip.sel b { margin-left: 3px; opacity: .85; }
/* v97.35 需求六：△逾期 标签 —— 有逾期时红底白字 + 数字角标（选中态亦保持红底，全局统一） */
.chip.overdue { background: var(--red); color: #fff; border-color: transparent; box-shadow: 0 2px 6px rgba(232,84,74,.32); }
.chip.overdue .chip-badge { background: rgba(255,255,255,.28); color: #fff; margin-left: 4px; padding: 0 5px; border-radius: 8px; font-size: 10px; font-weight: 700; line-height: 1.5; }
/* v97.36 需求四：全站逾期筛选标统一「⚠逾期 + 数字角标」（有数据红底、无数据白底） */
.od-num { display: inline-flex; align-items: center; justify-content: center; min-width: 14px; height: 14px; padding: 0 4px; margin-left: 4px; border-radius: 7px; font-size: 10px; font-weight: 800; line-height: 1; background: var(--red-l); color: var(--red); vertical-align: middle; }
.chip.hot .od-num, .chip.overdue .od-num, .chip.sel .od-num, .jbh-fchip.expired-alert .od-num, .jbi-state-chip.od-over .od-num { background: rgba(255,255,255,.28); color: #fff; }
.jbi-state-chip.od-over { background: var(--red); border-color: var(--red); color: #fff; font-weight: 700; }
.jbi-state-chip.od-over.sel { background: #D03438; border-color: #D03438; }
/* v97.36 需求一：详情页周期回访待办定位高亮 */
.todo-focus { animation: todoFocusPulse 1.2s ease-in-out 2; background: #FFF6D8 !important; box-shadow: 0 0 0 2px #F0B429 inset; border-radius: 8px; }
@keyframes todoFocusPulse { 0%, 100% { background: #FFF6D8; } 50% { background: #FFE9A8; } }
/* v38：「未挂牌」二级筛选项（更小一号） */
.chip-box.sub-chip { margin: 0 0 6px; }
.chip-box.sub-chip .chip { font-size: 11px; padding: 2px 8px; }
/* v44：顶部筛选 Tab 单行展示（6 项不换行，超宽可横向滑动） */
.chip-box.tabs-row { flex-wrap: nowrap; overflow-x: auto; gap: 5px; padding-bottom: 2px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.chip-box.tabs-row::-webkit-scrollbar { display: none; }
.chip-box.tabs-row .chip { flex: 0 0 auto; white-space: nowrap; font-size: 11.5px; padding: 3px 9px; }
.plan-route, .plan-remind { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* ========== 带看记录 ========== */
.tabs { display: flex; background: var(--green-ll); border-radius: 12px; padding: 4px; margin-bottom: 12px; border: 1px solid var(--line-soft); }
.tab { flex: 1; border: 0; background: none; padding: 9px; border-radius: 9px; color: var(--muted); font-size: 14px; font-weight: 500; cursor: pointer; transition: all .15s; }
.tab.active { background: #fff; color: var(--green); font-weight: 700; box-shadow: var(--shadow-sm); }
.rec-card { background: #fff; border-radius: var(--radius); padding: 13px 14px; box-shadow: var(--shadow); cursor: pointer; border: 1px solid var(--line-soft); }
.rec-card:active { transform: scale(.99); }
.rec-head { display: flex; justify-content: space-between; font-size: 13px; }
.rec-date { color: var(--muted); font-size: 12px; }
.rec-client-time { font-weight: 700; font-size: 14px; }
.rec-title { font-weight: 700; font-size: 14px; margin: 3px 0; }
.rec-sub { color: var(--muted-d); font-size: 13px; display: flex; gap: 8px; align-items: center; }
.rec-badge { background: #eef2f0; border-radius: 8px; padding: 1px 6px; font-size: 12px; }
.hint-card { background: var(--green-ll); border: 1px solid #cfe8da; border-radius: 12px; padding: 11px 13px; font-size: 13px; color: var(--green-d); margin-bottom: 10px; line-height: 1.6; }

/* ========== FAB ========== */
.fab {
  position: fixed; right: 18px; bottom: calc(var(--nav-h) + var(--safe-b) + 18px);
  width: 54px; height: 54px; border-radius: 50%; background: var(--green-grad); color: #fff; border: 0;
  font-size: 30px; line-height: 1; box-shadow: 0 8px 22px rgba(31,111,74,.42); z-index: 20; cursor: pointer;
  transition: transform .15s; display: flex; align-items: center; justify-content: center;
}
.fab:active { transform: scale(.94); }

/* ========== 底部弹窗 ========== */
.overlay { position: fixed; inset: 0; background: rgba(15,35,25,.5); display: flex; align-items: flex-end; z-index: 50; animation: fade .18s; }
@keyframes fade { from { opacity: 0 } to { opacity: 1 } }
.sheet { background: #fff; width: 100%; max-height: 90vh; border-radius: var(--radius-lg) var(--radius-lg) 0 0; display: flex; flex-direction: column; animation: slideup .22s; box-shadow: var(--shadow-lg); }
@keyframes slideup { from { transform: translateY(100%) } to { transform: translateY(0) } }
.sheet::before { content: ''; width: 36px; height: 4px; border-radius: 3px; background: var(--line); margin: 8px auto 0; flex-shrink: 0; }
.sheet-title { font-weight: 700; font-size: 16px; padding: 10px 16px 12px; border-bottom: 1px solid var(--line-soft); display: flex; justify-content: space-between; align-items: center; }
.sheet-close { border: 0; background: var(--green-ll); font-size: 18px; color: var(--muted); line-height: 1; border-radius: 50%; width: 26px; height: 26px; cursor: pointer; }
.sheet-body { padding: 14px 16px 22px; overflow-y: auto; }
.sheet-actions { display: flex; gap: 6px; margin-top: 16px; }
.sheet-actions .btn { flex: 1; padding-left: 4px; padding-right: 4px; font-size: 13px; white-space: nowrap; }
.confirm-sheet { margin: 0 auto 30vh; border-radius: 16px; padding: 20px; max-width: 320px; box-shadow: var(--shadow-lg); }
.confirm-sheet::before { display: none; }
.confirm-sheet .sheet-title { border: 0; padding: 0 0 10px; }
.sheet-text { color: var(--muted); font-size: 14px; }

/* ========== 表单 ========== */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: var(--muted-d); }
/* 跨列项：label 与 div 都要生效（跟进表容器 #f_ftwrap 是 div.full，只写 label.full 会让它掉进单列） */
.form-grid .full { grid-column: 1 / -1; }
.check-row { grid-column: 1 / -1; display: flex; gap: 18px; }
.chk { flex-direction: row !important; align-items: center; gap: 7px !important; color: var(--text) !important; font-size: 14px !important; }
.chk input[type="checkbox"], .chk input[type="radio"] { width: 17px; height: 17px; accent-color: var(--green); }
.sat-row { display: flex; gap: 14px; }
/* v67 需求一：楼层/总楼层/梯户比/朝向 横向 4 字段容器 */
.form-row4 { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.form-row4 label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: var(--muted-d); }
/* v67 需求六：小区表单 6 大模块 */
.cm-form { display: block; }
.cm-sec { margin-top: 18px; }
.cm-sec-h { font-size: 15px; font-weight: 700; color: var(--text); margin: 0 0 10px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.cm-sec:first-of-type .cm-sec-h { border-top: 0; padding-top: 0; }
.cm-tip { font-size: 12px; color: var(--muted); margin: 6px 0 0; line-height: 1.5; }
.cm-label { font-size: 13px; color: var(--muted-d); margin-bottom: 6px; }
.tagpick { display: flex; flex-wrap: wrap; gap: 8px; }
.tagpick .chip { cursor: pointer; }
.tagpick .chip.on { background: var(--blue); color: #fff; border-color: var(--blue); }
@media (max-width: 360px) { .form-row4 { grid-template-columns: repeat(2, 1fr); } }

/* ========== 图片上传 ========== */
.img-upload-row { margin-bottom: 8px; }
.img-preview { display: flex; flex-wrap: wrap; gap: 8px; }
.img-item { position: relative; width: 76px; height: 76px; }
.img-item img { width: 76px; height: 76px; object-fit: cover; border-radius: 10px; box-shadow: var(--shadow-sm); }
.img-del { position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: var(--red); color: #fff; font-size: 13px; line-height: 1; cursor: pointer; box-shadow: 0 2px 6px rgba(0,0,0,.2); }

/* ============================================================
 * v73：嘉宝学习 · 题目图片（选图按钮 / 缩略图横条 / 全屏裁剪）
 * ============================================================ */
.jb-img-btns { display: flex; align-items: center; gap: 8px; margin: 2px 0 8px; flex-wrap: wrap; }
.jb-img-btns .btn[disabled] { opacity: .45; pointer-events: none; }
.jb-img-cnt { font-size: 12px; color: var(--muted); font-family: var(--font-num); margin-left: auto; }
.jb-img-denied { font-size: 12px; color: var(--red); margin: -4px 0 8px; line-height: 1.5; }
.jb-img-strip { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 6px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.jb-img-strip::-webkit-scrollbar { display: none; }
.jb-img-strip.jb-img-ro { padding: 0 0 8px; }
.jb-img-thumb { position: relative; flex: 0 0 72px; width: 72px; height: 72px; }
.jb-img-thumb img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; box-shadow: var(--shadow-sm); cursor: pointer; }
.jb-img-del { position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: var(--red); color: #fff; font-size: 13px; line-height: 1; cursor: pointer; box-shadow: 0 2px 6px rgba(0,0,0,.2); }

/* 全屏裁剪页 */
.jbimg-crop { position: fixed; inset: 0; z-index: 200; background: #0b0f18; display: flex; flex-direction: column; animation: ivIn .18s ease; }
.jbimg-stage { flex: 1; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.jbimg-frame { position: relative; }
.jbimg-src { display: block; width: 100%; height: 100%; user-select: none; -webkit-user-drag: none; }
.jbimg-box { position: absolute; border: 1.5px solid #fff; box-shadow: 0 0 0 9999px rgba(0, 0, 0, .45); cursor: move; touch-action: none; box-sizing: border-box; }
.jbimg-grid { position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(to right, rgba(255, 255, 255, .35) 1px, transparent 1px), linear-gradient(to bottom, rgba(255, 255, 255, .35) 1px, transparent 1px); background-size: 33.33% 33.33%; }
.jbimg-h { position: absolute; width: 26px; height: 26px; touch-action: none; }
.jbimg-h::after { content: ''; position: absolute; width: 12px; height: 12px; border: 2.5px solid #fff; border-radius: 2px; }
.jbimg-h[data-h="nw"] { left: -13px; top: -13px; cursor: nwse-resize; }
.jbimg-h[data-h="nw"]::after { left: 6px; top: 6px; border-right: 0; border-bottom: 0; }
.jbimg-h[data-h="ne"] { right: -13px; top: -13px; cursor: nesw-resize; }
.jbimg-h[data-h="ne"]::after { right: 6px; top: 6px; border-left: 0; border-bottom: 0; }
.jbimg-h[data-h="sw"] { left: -13px; bottom: -13px; cursor: nesw-resize; }
.jbimg-h[data-h="sw"]::after { left: 6px; bottom: 6px; border-right: 0; border-top: 0; }
.jbimg-h[data-h="se"] { right: -13px; bottom: -13px; cursor: nwse-resize; }
.jbimg-h[data-h="se"]::after { right: 6px; bottom: 6px; border-left: 0; border-top: 0; }
.jbimg-bar { flex-shrink: 0; padding: 10px 14px calc(12px + env(safe-area-inset-bottom, 0px)); background: #131826; display: flex; flex-direction: column; gap: 10px; }
.jbimg-tip { color: rgba(255, 255, 255, .75); font-size: 13px; text-align: center; }
.jbimg-btns { display: flex; gap: 10px; }
.jbimg-btns .btn { flex: 1; }
.jbimg-btns .btn.ghost { background: rgba(255, 255, 255, .12); color: #fff; border: 0; }

/* ========== 详情图 ========== */
.detail-imgs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.detail-img { width: 100%; border-radius: 12px; max-height: 240px; object-fit: cover; }
.follow-item { border-left: 3px solid var(--green); padding: 6px 0 6px 10px; margin: 6px 0; background: linear-gradient(90deg, var(--green-ll), transparent); border-radius: 0 8px 8px 0; }
.follow-date { font-size: 12px; color: var(--muted); }
.follow-text { font-size: 14px; }
/* v42：跟进记录中「计划待办已完成」标记 */
.plan-done-tag { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: var(--green-l); color: var(--green-d); font-size: 11px; font-weight: 600; vertical-align: middle; }
/* v42：新增房源查重警告弹窗 */
.dup-warn { font-size: 14px; }
.dup-warn-t { font-weight: 600; margin-bottom: 6px; }
.dup-row { padding: 8px 10px; background: var(--red-l); border-radius: 8px; color: var(--red); font-weight: 600; }
.dup-tip { margin-top: 8px; font-size: 12px; color: var(--muted); }
.add-follow { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.q-list { padding-left: 18px; margin: 4px 0; }
.q-item { display: flex; gap: 6px; margin: 4px 0; align-items: center; }
.q-item input { flex: 1; }

/* ========== 表格 ========== */
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 6px; }
.tbl th, .tbl td { border: 1px solid var(--line); padding: 7px 9px; text-align: left; }
.tbl th { background: var(--green-l); color: var(--green-d); font-weight: 600; }
.table-scroll { overflow-x: auto; }
.cmp-tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.cmp-tbl th, .cmp-tbl td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.cmp-tbl th { background: var(--green-grad); color: #fff; }
.cmp-tbl .rowk { background: var(--green-ll); font-weight: 600; white-space: nowrap; }
.cmp-tbl td.best { background: var(--green-l); font-weight: 700; color: var(--green-d); }
.cmp-list { gap: 8px; }
.cmp-row { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 12px; padding: 11px 13px; box-shadow: var(--shadow); cursor: pointer; border: 1px solid var(--line-soft); }
.cmp-row.on { outline: 2px solid var(--green); border-color: transparent; }
.cmp-row input { width: 19px; height: 19px; accent-color: var(--green); }
.cmp-name { font-weight: 600; }
.cmp-meta { color: var(--muted); font-size: 12px; margin-left: auto; }

/* ========== 菜单 ========== */
.menu-list { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-bottom: 12px; border: 1px solid var(--line-soft); }
.menu-item { display: block; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--line-soft); background: #fff; padding: 15px 16px; font-size: 15px; cursor: pointer; transition: background .12s; }
.menu-item:last-child { border-bottom: 0; }
.menu-item:active { background: var(--green-ll); }

/* ========== 锁屏 ========== */
.lock-screen { flex: 1; display: flex; align-items: center; justify-content: center; padding: 20px; background: radial-gradient(120% 90% at 50% 0%, #4C78FF 0%, #2E5BFF 50%, #12257F 100%); }
.lock-card { background: rgba(255,255,255,.97); border-radius: 22px; padding: 30px 24px; width: 100%; max-width: 340px; box-shadow: 0 20px 60px rgba(0,0,0,.3); text-align: center; }
.lock-logo { font-size: 46px; }
.lock-card h1 { font-size: 19px; margin: 12px 0 4px; }
.lock-sub { color: var(--muted); font-size: 13px; margin-bottom: 18px; }
.lock-card .input { margin-bottom: 10px; text-align: center; font-size: 16px; letter-spacing: 2px; }
.lock-tip { font-size: 11px; color: var(--muted); margin-top: 16px; line-height: 1.6; }

/* ========== toast ========== */
.toast { position: fixed; left: 50%; top: 42%; transform: translate(-50%,-50%); background: rgba(24,38,31,.94); color: #fff; padding: 12px 22px; border-radius: 24px; font-size: 14px; z-index: 100; opacity: 0; pointer-events: none; transition: opacity .2s; max-width: 82%; text-align: center; box-shadow: 0 8px 30px rgba(0,0,0,.25); }
.toast.show { opacity: 1; }
.toast.ok { background: rgba(31,111,74,.96); }
.toast.err { background: rgba(216,80,58,.96); }

/* ========== prompt 框 ========== */
.prompt-box { white-space: pre-wrap; word-break: break-word; background: #f6f8f7; border: 1px solid var(--line); border-radius: 12px; padding: 13px; font-size: 13px; line-height: 1.6; max-height: 50vh; overflow-y: auto; }

/* ========== 全量导出卡片 ========== */
.total-card { background: var(--green-l); }

@media (min-width: 600px) {
  #app { max-width: 480px; margin: 0 auto; box-shadow: 0 0 30px rgba(20,40,30,.1); }
}

/* ============================================================
 * 学区地图（schools.js / map.js）
 * ============================================================ */
.hidden { display: none !important; }

/* 学区页需要满屏铺开（由 App.go 切换） */
#view.view-flush { padding: 0; overflow: hidden; display: flex; flex-direction: column; }

.sch { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.sch-tabs { display: flex; gap: 6px; padding: 9px 12px; background: #fff; border-bottom: 1px solid var(--line-soft); flex-shrink: 0; }
.sch-tab { flex: 1; border: 0; background: var(--green-ll); color: var(--muted); padding: 8px 0; border-radius: 10px; font-size: 13px; cursor: pointer; font-weight: 500; }
.sch-tab.active { background: var(--green-grad); color: #fff; font-weight: 600; box-shadow: 0 3px 8px rgba(31,111,74,.3); }
.sch-body { flex: 1; min-height: 0; position: relative; }
.sch-body.scroll { overflow-y: auto; padding: 12px; padding-bottom: 24px; -webkit-overflow-scrolling: touch; }

/* ---- 地图 ---- */
.sch-mapwrap { position: absolute; inset: 0; overflow: hidden; }
.sch-map { position: absolute; inset: 0; touch-action: none; }
.mv-canvas { display: block; touch-action: none; cursor: grab; }
.mv-canvas.grabbing { cursor: grabbing; }
.mv-canvas.drawing { cursor: crosshair; }

.sch-top { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; gap: 8px; z-index: 5; }
.sch-top .input { flex: 1; background: #fff; box-shadow: 0 3px 12px rgba(0,0,0,.14); }
.sch-icon-btn { width: 42px; flex-shrink: 0; border: 0; background: #fff; border-radius: 12px; font-size: 18px; box-shadow: 0 3px 12px rgba(0,0,0,.14); cursor: pointer; }

.sch-layerbar { position: absolute; top: 62px; left: 10px; display: flex; gap: 6px; z-index: 5; }
.sch-layerbar button { border: 0; background: rgba(255,255,255,.94); color: var(--muted); padding: 6px 12px; border-radius: 15px; font-size: 12px; box-shadow: 0 2px 8px rgba(0,0,0,.1); cursor: pointer; }
.sch-layerbar button.on { background: var(--green-grad); color: #fff; font-weight: 600; }

.sch-right { position: absolute; right: 10px; bottom: 150px; display: flex; flex-direction: column; gap: 8px; z-index: 5; }
.sch-round { width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; font-size: 18px; color: var(--green); box-shadow: 0 3px 12px rgba(0,0,0,.16); cursor: pointer; }

.sch-watermark { position: absolute; right: 8px; bottom: 6px; font-size: 10px; color: rgba(90,100,110,.7); background: rgba(255,255,255,.72); padding: 1px 6px; border-radius: 6px; z-index: 4; pointer-events: none; }

/* 绘制 / 拾取提示条 */
.sch-drawbar { position: absolute; left: 10px; right: 10px; bottom: 12px; z-index: 8; background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg); padding: 11px 13px; display: flex; align-items: center; gap: 8px; font-size: 12px; }
.sch-drawbar span { flex: 1; color: var(--muted); }
.sch-pickbar { position: absolute; left: 10px; right: 10px; bottom: 12px; z-index: 8; background: var(--green-grad); color: #fff; border-radius: 14px; padding: 12px 14px; font-size: 13px; text-align: center; box-shadow: 0 6px 20px rgba(31,111,74,.4); }
.sch-pickbar b { text-decoration: underline; margin-left: 8px; }

/* 底部信息卡 */
.sch-card { position: absolute; left: 0; right: 0; bottom: 0; z-index: 7; background: #fff; border-radius: var(--radius-lg) var(--radius-lg) 0 0; box-shadow: 0 -6px 24px rgba(0,0,0,.18); padding: 14px 16px calc(16px + env(safe-area-inset-bottom)); max-height: 64%; overflow-y: auto; animation: slideup .18s; }
.sc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.sc-title { font-weight: 700; font-size: 16px; line-height: 1.35; }
.sc-close { border: 0; background: none; font-size: 22px; color: var(--muted); line-height: 1; cursor: pointer; padding: 0 2px; }
.sc-meta { font-size: 12px; color: var(--muted); margin: 3px 0 6px; }
.sc-badge { display: inline-block; font-size: 11px; background: #f0f3f1; color: var(--muted); padding: 2px 9px; border-radius: 10px; margin: 0 6px 6px 0; }
.sc-badge.ok { background: var(--green-l); color: var(--green-d); }
.sc-badge-row { margin-bottom: 2px; }
.sc-block { margin-top: 8px; }
.sc-lb { font-size: 12px; color: var(--muted); margin-bottom: 3px; }
.sc-row { display: flex; align-items: center; gap: 7px; font-size: 14px; padding: 4px 0; flex-wrap: wrap; }
.sc-row.muted { color: var(--muted); font-size: 13px; }
.sc-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.sc-dot.gray { background: #c9d0cc; }
.sc-link, .sc-add { border: 0; background: none; color: var(--blue); font-size: 12px; text-decoration: underline; cursor: pointer; padding: 0 2px; }
.sc-tag { font-size: 11px; color: var(--muted); }
.sc-zone { background: var(--green-l); border-radius: 12px; padding: 10px 12px; margin: 8px 0; font-size: 13px; line-height: 1.65; }
.sc-zone.muted { background: #f4f6f5; color: var(--muted); }
.sc-src { font-size: 11px; color: var(--muted); margin: 6px 0 2px; line-height: 1.5; }
.sc-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.sc-actions .btn { flex: 1; min-width: 90px; }

/* 学校 / 小区列表 */
.sch-list { display: flex; flex-direction: column; gap: 8px; }
.sch-item { display: flex; align-items: center; gap: 9px; background: #fff; border-radius: 12px; padding: 11px 13px; box-shadow: var(--shadow); cursor: pointer; border: 1px solid var(--line-soft); }
.sch-item:active { transform: scale(.99); }
.sch-item-main { flex: 1; min-width: 0; }
.sch-item-name { font-weight: 600; font-size: 14px; }
.sch-item-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.sch-item-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.sch-line { font-size: 11px; border-left: 3px solid var(--green); padding: 1px 6px; background: #f7f9f8; border-radius: 0 6px 6px 0; }
.sch-item-draw { border: 1px solid var(--line); background: #f6f8f7; color: var(--green-d); font-size: 12px; padding: 6px 11px; border-radius: 9px; flex-shrink: 0; cursor: pointer; }
.list-tools { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.list-tools .btn { flex: 1; min-width: 96px; }
button.chip { border: 1px solid transparent; cursor: pointer; transition: all .12s; }
button.chip.on { background: var(--green-grad); color: #fff; }

.coord-row { display: flex; gap: 8px; }
.coord-row .btn { flex: 1; }
.mc-guide { background: #f7f9f8; border-radius: 12px; padding: 11px 13px; font-size: 13px; margin: 8px 0; }
.mc-guide summary { cursor: pointer; color: var(--green-d); font-weight: 600; }
.mc-guide ol { margin: 8px 0 4px; padding-left: 20px; line-height: 1.8; }

/* 地图覆盖物（高德模式由 SDK 渲染，需自定义样式） */
.mv-label { color: #fff; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 10px; white-space: nowrap; }
.mv-pin-label { background: rgba(255,255,255,.94); color: #33414d; font-size: 11px; padding: 2px 7px; border-radius: 5px; white-space: nowrap; box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.mv-pin-label.sel { font-weight: 700; }

/* 房源详情里的学区块 */
.sch-detail { background: var(--green-l); border-radius: 12px; padding: 11px 13px; margin: 8px 0; }
.sch-detail-t { font-size: 12px; color: var(--green-d); font-weight: 600; margin-bottom: 4px; }
.sch-detail .sc-row { font-size: 13px; padding: 2px 0; }

/* 底部导航（含新房库+我的维护，横向滚动） */
.bottom-nav .nav-item { font-size: 9px; gap: 2px; }
.bottom-nav .nav-ico { font-size: 16px; }

/* ============================================================
 * 新房项目库（newproject.js）
 * ============================================================ */
.np-list { display: flex; flex-direction: column; gap: 10px; }
.np-card { display: flex; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); cursor: pointer; border: 1px solid var(--line-soft); transition: transform .12s; }
.np-card:active { transform: scale(.99); }
.np-thumb { width: 98px; height: 98px; object-fit: cover; flex-shrink: 0; background: #eef3f1; }
.np-thumb.noimg { display: flex; align-items: center; justify-content: center; font-size: 34px; color: var(--green); background: linear-gradient(160deg, #eef3f1, #f6faf8); }
.np-main { flex: 1; padding: 10px 12px; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.np-title { font-weight: 700; font-size: 15px; }
.np-sub { color: var(--muted-d); font-size: 12.5px; margin-top: 3px; line-height: 1.5; }
.np-tags { margin-top: 7px; display: flex; gap: 5px; align-items: center; flex-wrap: wrap; }
.np-sec { font-size: 14px; font-weight: 700; color: var(--green-d); margin: 16px 0 8px; display: flex; align-items: center; gap: 6px; }
.np-sec::before { content: ''; width: 4px; height: 14px; border-radius: 3px; background: var(--green-grad); }
.np-price .kv b { color: var(--red); }

/* ============================================================
 * 独家维护房源（maintain.js）
 * ============================================================ */
.due-banner { background: var(--red-l); color: var(--red); border-radius: 12px; padding: 11px 13px; font-size: 13px; font-weight: 600; margin-bottom: 10px; border: 1px solid #f3c8c0; }
.price-chart { width: 100%; height: 84px; background: linear-gradient(180deg, var(--green-ll), #fff); border-radius: 10px; margin: 4px 0 8px; }

/* CRM 深化（clients.js） */
.field-label { display: block; font-size: 12px; color: var(--muted); margin: 4px 0 6px; font-weight: 500; }
.chk-group { display: flex; flex-wrap: wrap; gap: 8px 14px; padding: 4px 0; }
.chk-group .chk { font-size: 13px; }
.mini-btn { border: 1px solid var(--line); background: #fff; color: var(--green); border-radius: 10px; font-size: 11px; padding: 2px 9px; margin-left: 6px; cursor: pointer; }

/* ============================================================
 * 工作台首页（dashboard.js）
 * ============================================================ */
.dash-hero {
  background: var(--green-grad); color: #fff; border-radius: 18px; padding: 18px 20px 16px; margin-bottom: 12px;
  box-shadow: 0 10px 28px rgba(31,111,74,.28); position: relative; overflow: hidden;
}
.dash-hero::after { content: ''; position: absolute; right: -30px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: rgba(255,255,255,.08); }
.dash-hero::before { content: ''; position: absolute; right: 20px; bottom: -50px; width: 100px; height: 100px; border-radius: 50%; background: rgba(255,255,255,.05); }
.dh-greet { font-size: 20px; font-weight: 800; letter-spacing: .3px; position: relative; z-index: 1; }
.dh-date { font-size: 13px; opacity: .88; margin-top: 3px; position: relative; z-index: 1; }
.dash-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 6px; }
.dash-stat {
  background: var(--card); border-radius: var(--radius); padding: 14px 8px; box-shadow: var(--shadow);
  text-align: center; border: 1px solid var(--line-soft); position: relative; overflow: hidden;
}
.dash-num { font-size: 27px; font-weight: 800; color: var(--text); line-height: 1.1; font-family: var(--font-num); }
.dash-lbl { font-size: 13px; color: var(--text); margin-top: 3px; font-weight: 500; }
.dash-sub { font-size: 11px; color: var(--muted); }
.dash-section-title { font-size: 13px; font-weight: 700; color: var(--muted-d); margin: 16px 2px 9px; display: flex; align-items: center; gap: 6px; letter-spacing: .5px; }
.dash-section-title::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.dash-todos { padding: 2px 14px; }
.dash-todo { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px dashed var(--line-soft); cursor: pointer; transition: background .12s; }
.dash-todo:last-child { border-bottom: 0; }
.dt-ico { font-size: 22px; flex-shrink: 0; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; background: var(--green-ll); border-radius: 10px; }
.dt-main { flex: 1; min-width: 0; }
.dt-title { font-size: 14px; font-weight: 600; }
.dt-desc { font-size: 12px; color: var(--muted); margin-top: 1px; }
.dt-count { font-size: 18px; font-weight: 800; color: var(--text); flex-shrink: 0; font-family: var(--font-num); }
.dt-count.warn { color: var(--red); }
.dt-arrow { color: #c3ccc7; font-size: 20px; flex-shrink: 0; }
/* v42：「15日内待办」条目——标题 + 右侧具体待办时间 */
.dt15 .dt-title { display: flex; align-items: baseline; gap: 8px; }
.dt15-txt { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dt15-time { flex-shrink: 0; font-size: 11.5px; font-weight: 700; color: var(--muted-d); font-family: var(--font-num); }
/* v45：第二行 = 待办事宜内容（左）+ 「已过期」红色文字（右对齐，置于待办日期下方） */
.dt15 .dt-desc { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.dt15-desc-txt { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dt15-over { flex-shrink: 0; margin-left: auto; color: var(--red); font-weight: 700; font-size: 11.5px; }  /* v97.37：无副标题的「待办事宜」条也右对齐 */
/* v44→v45：待办条两行两字小图标徽标（上下两行，如「房源/跟进」），按八类来源着色 */
.dt-ico.dt-badge { width: 38px; height: 32px; padding: 0; font-size: 11px; font-weight: 700; border-radius: 7px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; line-height: 1.1; }
.dt-ico.dt-badge > span { letter-spacing: 2px; margin-right: -2px; }
/* v48（优化10）：【带看计划】徽标改为红底白字高亮，与其余七类来源形成视觉区分 */
.dt-badge.k-plan { background: var(--red); color: #fff; box-shadow: 0 2px 6px rgba(232,84,74,.30); }
.dt-badge.k-client { background: var(--amber-l); color: var(--amber); }
.dt-badge.k-prop { background: var(--green-l); color: var(--green-d); }
.dt-badge.k-maint { background: #EFE9FE; color: #6D28D9; }
.dt-badge.k-todo { background: var(--red-l); color: var(--red); }
/* v45：「逾期」标签有逾期数据时整体红色高亮（客户/房源库/自盘维护三页统一；无数据保持原样式） */
.chip.hot { background: var(--red); color: #fff; border-color: transparent; box-shadow: 0 2px 6px rgba(232,84,74,.32); }
.dash-lv-title { font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.lv-row { display: flex; align-items: center; gap: 8px; margin: 8px 0; }
.lv-name { font-size: 11px; font-weight: 700; width: 34px; text-align: center; border-radius: 7px; padding: 4px 0; color: #fff; flex-shrink: 0; }
.lv-A { background: var(--red); } .lv-B { background: var(--blue); } .lv-C { background: var(--green); } .lv-D { background: var(--muted); }
.lv-track { flex: 1; height: 8px; background: var(--bg); border-radius: 5px; overflow: hidden; }
.lv-fill { height: 100%; border-radius: 5px; transition: width .4s ease; }
.lv-fill.lv-A { background: var(--red); } .lv-fill.lv-B { background: var(--blue); } .lv-fill.lv-C { background: var(--green); } .lv-fill.lv-D { background: var(--muted); }
.lv-n { font-size: 12px; color: var(--muted); width: 18px; text-align: right; flex-shrink: 0; font-family: var(--font-num); }
/* 快捷操作：9 宫格 3×3（手机上每格更宽，图标与文字都更好点） */
.dash-quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
/* v97.35 需求一：工作台「功能快捷区」仅 2 个图标入口（最近删除 / 房源·客户事项总览），改为 2 列 */
.dash-quick.two { grid-template-columns: repeat(2, 1fr); }
.qk {
  background: var(--card); border: 1px solid var(--line-soft); border-radius: 14px; padding: 14px 4px; font-size: 22px;
  color: var(--text); display: flex; flex-direction: column; align-items: center; gap: 5px; cursor: pointer; box-shadow: var(--shadow-sm);
  transition: all .12s;
}
.qk span { font-size: 11px; color: var(--muted); font-weight: 500; }
.qk:active { background: var(--green-l); transform: scale(.96); }

/* 条形图（房源结构 / 客户来源，可点击下钻） */
.bars { display: flex; flex-direction: column; gap: 9px; padding: 4px 2px; }
.bar-row { display: flex; align-items: center; gap: 8px; }
.bars.clickable .bar-row { cursor: pointer; padding: 2px 4px; border-radius: 8px; }
.bars.clickable .bar-row:active { background: var(--green-ll); }
.bar-label { font-size: 12px; color: var(--text); width: 64px; flex-shrink: 0; text-align: right; font-weight: 500; }
.bar-track { flex: 1; height: 14px; background: var(--bg); border-radius: 7px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 7px; background: var(--green-grad); transition: width .4s ease; min-width: 2px; }
.bar-val { font-size: 12px; font-weight: 700; color: var(--text); width: 28px; text-align: right; flex-shrink: 0; font-family: var(--font-num); }

/* 本月带看转化 指标块 */
.dash-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; }
.dm { background: var(--green-ll); border-radius: 12px; padding: 14px 4px; border: 1px solid var(--line-soft); }
.dm-num { font-size: 23px; font-weight: 800; color: var(--text); line-height: 1.1; font-family: var(--font-num); }
.dm-lbl { font-size: 11px; color: var(--muted-d); margin-top: 4px; }

/* 房源库价格段筛选标记 */
.filter-flag { background: var(--green-l); color: var(--green-d); font-size: 13px; padding: 9px 13px; border-radius: 12px; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; font-weight: 500; border: 1px solid #cfe8da; }
.filter-flag b { cursor: pointer; font-weight: 800; margin-left: auto; font-size: 17px; color: var(--red); }

/* ============================================================
 * 视觉升级新增组件（不改变 JS 依赖结构，仅增强可读性）
 * ============================================================ */
/* 卡片顶部关键数据强调条 */
.metric-strip { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line-soft); margin-bottom: 6px; }
.metric-item { flex: 1; text-align: center; }
.metric-item .m-num { font-size: 20px; font-weight: 800; color: var(--text); font-family: var(--font-num); }
.metric-item .m-lbl { font-size: 11px; color: var(--muted); margin-top: 2px; }

/* 工作台 hero 今日焦点样式已随 hero 精简一并移除（只保留问候 + 日期） */

/* ============================================================
 * 房源高级筛选面板（properties.js）
 * ============================================================ */
.adv-panel { background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 12px; margin-bottom: 12px; box-shadow: var(--shadow); }
.adv-title { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 14px; margin-bottom: 10px; color: var(--green-d); }

/* ============================================================
 * 客户跟进日程（clients.js）
 * ============================================================ */
.follow-tag { font-size: 11px; padding: 2px 8px; border-radius: 10px; font-weight: 600; margin-left: 6px; display: inline-flex; align-items: center; }
.follow-tag.overdue { background: var(--red-l); color: var(--red); }
.follow-tag.today { background: var(--amber-l); color: var(--amber); }
.follow-tag.future { background: var(--green-l); color: var(--green); }

/* ============================================================
 * 报价单打印（properties.js 打印报价单）
 * ============================================================ */
@media print {
  body * { visibility: hidden !important; }
  #printQuote, #printQuote * { visibility: visible !important; }
  #printQuote { position: absolute; left: 0; top: 0; width: 100%; }
}

/* ============================================================
 * v14 改造：全屏子页面 / 图片轮播 / 工作台三卡片 / 工具页
 * ============================================================ */

/* ---------- 全屏子页面（房源详情 / 新增房源表单） ---------- */
.fullpage {
  position: fixed; inset: 0; z-index: 70; background: var(--bg);
  display: flex; flex-direction: column;
  animation: fpIn .22s cubic-bezier(.22, .61, .36, 1);
  overscroll-behavior: contain;
}
@keyframes fpIn { from { transform: translateX(100%); opacity: .75; } to { transform: none; opacity: 1; } }
@keyframes fpOut { from { transform: none; opacity: 1; } to { transform: translateX(100%); opacity: .6; } }
.fullpage.fp-out { animation: fpOut .18s ease forwards; }
@media (prefers-reduced-motion: reduce) {
  .fullpage { animation: none; }
  .fullpage.fp-out { animation: none; opacity: 0; }
}
.fp-head {
  height: calc(48px + env(safe-area-inset-top, 0px)); padding-top: env(safe-area-inset-top, 0px);
  padding-left: 2px; padding-right: 8px;
  background: var(--green-grad); color: #fff; flex-shrink: 0;
  display: flex; align-items: center; gap: 4px;
  box-shadow: 0 2px 12px rgba(30, 63, 204, .2);
}
.fp-back {
  width: 42px; height: 42px; border: 0; background: none; color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; font-size: 30px; line-height: 1;
}
.fp-back:active { opacity: .55; transform: scale(.94); }
.fp-back-ico { display: block; margin-top: -4px; font-weight: 600; }
.fp-title {
  flex: 1; min-width: 0; font-size: 16px; font-weight: 700;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.fp-right { display: flex; align-items: center; gap: 2px; flex-shrink: 0; }
.fp-btn-text {
  background: none; border: 0; color: #fff; font-size: 15px; font-weight: 600;
  padding: 7px 10px; cursor: pointer; border-radius: 10px;
}
.fp-btn-text:active { background: rgba(255, 255, 255, .22); }
/* v65：右上角「确认」未选中时置灰不可点（选择客户 / 选择房源 页共用） */
.fp-btn-text[disabled] { opacity: .45; cursor: not-allowed; }
.fp-btn-text[disabled]:active { background: none; }
.fp-body { flex: 1; overflow-y: auto; padding: 12px; padding-bottom: 28px; -webkit-overflow-scrolling: touch; }

/* ---------- 房源图片：左右滑动轮播 ---------- */
.fp-carousel { position: relative; margin: -12px -12px 12px; background: #10182b; overflow: hidden; }
.fpc-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.fpc-track::-webkit-scrollbar { display: none; }
.fpc-img { flex: 0 0 100%; width: 100%; height: 250px; object-fit: cover; scroll-snap-align: center; background: #10182b; }
.fpc-dots { position: absolute; left: 0; right: 0; bottom: 9px; display: flex; justify-content: center; gap: 5px; pointer-events: none; }
.fpc-dot { width: 6px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .5); transition: all .2s; }
.fpc-dot.on { background: #fff; width: 16px; }
.fpc-count {
  position: absolute; right: 10px; bottom: 6px; background: rgba(0, 0, 0, .42); color: #fff;
  font-size: 11px; padding: 1px 8px; border-radius: 9px; font-family: var(--font-num);
}
.fp-carousel-empty {
  height: 150px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  background: linear-gradient(160deg, var(--green-l), var(--green-ll)); color: var(--muted-d); font-size: 34px;
}
.fp-carousel-empty span { font-size: 13px; }

/* 详情页价格块 */
.fp-block { padding: 0 2px 10px; }
.fp-price { font-size: 24px; font-weight: 800; color: var(--red); font-family: var(--font-num); }
.fp-price b { font-size: 30px; }
.fp-unit { font-size: 12.5px; color: var(--muted-d); font-weight: 600; margin-left: 6px; font-family: var(--font-num); }
.fp-sub { font-size: 13px; color: var(--muted-d); margin-top: 1px; }

/* ---------- 工作台：渐变底 + 三张大卡片 ---------- */
.dash-page {
  margin: -12px -12px 0; padding: 12px 12px 0;
  background: linear-gradient(180deg, #E6EEFB 0%, #EFF5FE 30%, var(--bg) 78%);
  min-height: 100%;
}
.dash-greet { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 6px 2px 14px; }
.dg-hello { font-size: 20px; font-weight: 800; color: var(--text); letter-spacing: .3px; }
.dg-date { font-size: 13px; color: var(--muted-d); white-space: nowrap; }
.dash-cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 2px; }
.dc3 {
  background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 14px 4px 12px; text-align: center; box-shadow: var(--shadow);
  cursor: pointer; transition: transform .14s, background .14s;
}
.dc3:active { transform: scale(.96); background: var(--green-ll); }
.dc3-ico { font-size: 22px; line-height: 1; }
.dc3-num { font-size: 24px; font-weight: 800; color: var(--text); font-family: var(--font-num); line-height: 1.2; margin-top: 3px; }
.dc3-name { font-size: 13px; font-weight: 600; color: var(--text); }
.dc3-unit { font-size: 11px; color: var(--muted); }

/* v25：工作台顶部 5 个业务入口（单行均匀排布） */
.dash-cards5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; margin-bottom: 2px; }
.dc5 {
  background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius-sm);
  padding: 12px 2px 10px; text-align: center; box-shadow: var(--shadow);
  cursor: pointer; transition: transform .14s, background .14s; overflow: hidden;
}
.dc5:active { transform: scale(.95); background: var(--green-ll); }
.dc5-ico { font-size: 20px; line-height: 1; }
.dc5-num { font-size: 19px; font-weight: 800; color: var(--text); font-family: var(--font-num); line-height: 1.15; margin-top: 3px; }
.dc5-name { font-size: 10.5px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dc5-unit { font-size: 9.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 房源卡片：楼栋门牌 + 巧房编号 */
.prop-addr {
  font-size: 11.5px; color: var(--muted-d); margin-top: 3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ---------- 工具页 ---------- */
.tool-list { display: flex; flex-direction: column; gap: 10px; }
.tool-item {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 13px 14px; box-shadow: var(--shadow); cursor: pointer; transition: transform .12s, background .12s;
}
.tool-item:active { transform: scale(.985); background: var(--green-ll); }
.tool-ico {
  font-size: 25px; width: 44px; height: 44px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--green-ll); border-radius: 12px;
}
.tool-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tool-name { font-size: 15px; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 6px; }
.tool-tag {
  font-size: 10px; font-style: normal; font-weight: 600; color: var(--green);
  background: var(--green-l); border-radius: 6px; padding: 1px 6px;
}
.tool-desc { font-size: 12px; color: var(--muted); line-height: 1.45; }
.tool-arrow { color: var(--muted); font-size: 20px; flex-shrink: 0; }

/* ---------- 底部导航：横向滑动更顺滑（9 个 Tab 超出屏幕时左右滑动） ---------- */
.bottom-nav { scroll-behavior: smooth; }
.nav-item { min-width: 62px; padding: 6px 7px 3px; }

/* ============================================================
 * v15 —— 全局 UI / 手势翻页 / 下拉组合框 / 图片查看器
 * ============================================================ */

/* 一.1 顶部栏：取消独立色块，融入页面统一背景（不再上下分割） */
.topbar {
  background: transparent; color: var(--text);
  box-shadow: none; border-bottom: 0; height: 28px;
}
.topbar .brand { color: var(--text); font-size: 14px; gap: 5px; }
.topbar .brand .brand-logo { font-size: 16px; }
.topbar .brand small { color: var(--muted); font-size: 10px; }
.top-btn { background: var(--cta-l); border-color: transparent; color: var(--cta); padding: 3px 10px; font-size: 12px; border-radius: 14px; }
.top-btn:active { background: var(--blue-l); }

/* 一.2 主页面横向翻页：方向感知切换动画 */
@keyframes viewInL { from { opacity: .4; transform: translateX(-6%); } to { opacity: 1; transform: none; } }
@keyframes viewInR { from { opacity: .4; transform: translateX(6%); } to { opacity: 1; transform: none; } }
#view.view-in-l { animation: viewInL .22s cubic-bezier(.22, .61, .36, 1); }
#view.view-in-r { animation: viewInR .22s cubic-bezier(.22, .61, .36, 1); }
@media (prefers-reduced-motion: reduce) {
  #view.view-in-l, #view.view-in-r { animation: none; }
}

/* 一.4 全屏展示：页面铺满可视区 */
#view { padding-bottom: calc(16px + var(--safe-b)); }
.page { min-height: 100%; }

/* 三.1 房源卡片：楼栋门牌 / 巧房编号紧随小区名之后 */
.prop-title { flex-wrap: wrap; }
.prop-bno {
  font-weight: 600; font-size: 12px; color: var(--muted-d);
  background: var(--bg-2); border-radius: 6px; padding: 1px 6px;
  margin-left: 5px; white-space: nowrap;
}
.prop-qf { font-size: 11.5px; color: var(--muted); font-weight: 600; margin-left: 4px; white-space: nowrap; }
/* 房源库列表：第一行=小区+楼栋，第二行=巧房编号(左)+报价(右) */
.prop-line2 { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-top: 3px; }

/* 三.3 户型图：页头不再投影遮挡图片 + 点击放大提示 */
.fp-head { box-shadow: none; }
.fpc-hint {
  position: absolute; right: 10px; top: 10px; background: rgba(0, 0, 0, .42);
  color: #fff; font-size: 11px; padding: 3px 9px; border-radius: 10px;
  pointer-events: none; backdrop-filter: blur(2px);
}

/* 图片查看器：点击放大预览 + 保存到手机相册 */
.imgviewer {
  position: fixed; inset: 0; z-index: 90; background: #0b0f18;
  display: flex; flex-direction: column; animation: ivIn .18s ease;
}
@keyframes ivIn { from { opacity: 0; } to { opacity: 1; } }
.iv-head {
  height: calc(48px + env(safe-area-inset-top, 0px)); padding-top: env(safe-area-inset-top, 0px);
  display: flex; align-items: center; gap: 8px; padding-left: 2px; padding-right: 12px;
  color: #fff; flex-shrink: 0; background: rgba(0, 0, 0, .35);
}
.iv-close { width: 42px; height: 42px; border: 0; background: none; color: #fff; font-size: 30px; line-height: 1; cursor: pointer; }
.iv-count { flex: 1; text-align: center; font-size: 13px; font-family: var(--font-num); opacity: .85; }
.iv-save {
  border: 0; background: rgba(255, 255, 255, .18); color: #fff;
  font-size: 13px; font-weight: 600; padding: 6px 14px; border-radius: 16px; cursor: pointer;
}
.iv-track {
  flex: 1; display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.iv-track::-webkit-scrollbar { display: none; }
.iv-cell { flex: 0 0 100%; width: 100%; display: flex; align-items: center; justify-content: center; scroll-snap-align: center; }
.iv-cell img { max-width: 100%; max-height: 100%; object-fit: contain; }
.iv-dots { position: absolute; left: 0; right: 0; bottom: 22px; display: flex; justify-content: center; gap: 6px; }
.iv-dot { width: 6px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .45); }
.iv-dot.on { background: #fff; width: 16px; }

/* 五.2 客户等级筛选标签：选中蓝底白字，其余白底灰字 */
.chip.lv {
  background: #fff; color: var(--muted-d); border: 1px solid var(--line);
  padding: 4px 14px; border-radius: 14px; font-size: 13px; font-weight: 600;
}
.chip.lv.sel { background: var(--blue); color: #fff; border-color: var(--blue); box-shadow: 0 2px 8px rgba(46, 91, 255, .28); }

/* 六、全局下拉：可点选 + 可手输的组合框 */
.combo { position: relative; }
.combo-input { padding-right: 30px; }
.combo-arrow {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 24px; height: 24px; border: 0; background: none; color: var(--muted);
  font-size: 13px; cursor: pointer; line-height: 1;
}
.combo-list {
  display: none; position: absolute; left: 0; right: 0; top: calc(100% + 3px);
  z-index: 40; max-height: 216px; overflow-y: auto;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: var(--shadow); -webkit-overflow-scrolling: touch;
}
.combo-list.open { display: block; }
.combo-opt { padding: 9px 12px; font-size: 14px; color: var(--text); cursor: pointer; }
.combo-opt:active { background: var(--blue-l); }
.combo-opt + .combo-opt { border-top: 1px solid var(--line-soft); }

/* ============================================================
 * 四.1 带看计划 · 顶部月历（参考日历截图：农历小字 + 节日蓝 + 休班角标 + 待办数字角标）
 * ============================================================ */
.cal-wrap { background: var(--card); border-radius: var(--radius); padding: 10px 8px 8px; margin-bottom: 12px; box-shadow: var(--shadow-sm); }
.cal-head { display: flex; align-items: center; justify-content: space-between; padding: 0 6px 8px; }
.cal-title { font-size: 20px; font-weight: 800; letter-spacing: .5px; }
.cal-nav {
  width: 34px; height: 34px; border: 0; background: var(--bg-2); color: var(--muted-d);
  border-radius: 10px; font-size: 20px; line-height: 1; cursor: pointer;
}
.cal-nav:active { background: var(--blue-l); color: var(--blue); }
.cal-week { display: grid; grid-template-columns: repeat(7, 1fr); margin-bottom: 4px; }
.cal-week span { text-align: center; font-size: 12.5px; color: var(--muted); font-weight: 600; padding: 4px 0; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-cell {
  position: relative; border-radius: 12px; padding: 6px 2px 5px;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  min-height: 52px; cursor: pointer; transition: background .15s;
}
.cal-cell .cal-num { font-size: 16px; font-weight: 700; line-height: 1.15; font-family: var(--font-num); }
.cal-cell .cal-sub { font-size: 9.5px; color: var(--muted); margin-top: 2px; line-height: 1; }
.cal-cell.fest-day .cal-num { color: var(--blue); }
.cal-cell .cal-sub.fest { color: var(--blue); }
.cal-cell.out { opacity: .34; }
.cal-cell.sel { background: var(--blue); }
.cal-cell.sel .cal-num, .cal-cell.sel .cal-sub, .cal-cell.sel .cal-sub.fest { color: #fff; }
.cal-cell.today .cal-num::after {
  content: ''; position: absolute; left: 50%; transform: translateX(-50%);
  bottom: 4px; width: 4px; height: 4px; border-radius: 2px; background: var(--blue);
}
.cal-cell.sel.today .cal-num::after { background: #fff; }
/* 当日待办带看条数角标 */
.cal-badge {
  position: absolute; top: 1px; right: 3px; min-width: 15px; height: 15px; padding: 0 4px;
  background: var(--red); color: #fff; font-size: 9.5px; font-weight: 700; line-height: 15px;
  border-radius: 8px; text-align: center; font-family: var(--font-num);
}
.cal-cell.sel .cal-badge { background: #fff; color: var(--blue); }
/* 休 / 班 角标 */
.cal-off, .cal-work {
  position: absolute; top: 0; left: 3px; width: 15px; height: 15px; border-radius: 50%;
  font-size: 9px; line-height: 15px; text-align: center; color: #fff; font-weight: 700;
}
.cal-off { background: #E8912B; }
.cal-work { background: #E8544A; }

/* ============================================================
 * 四.3 看房记录跟进表（表头斜杠双字段，每列内分两行，可横向滚动）
 * ============================================================ */
.ft-title { font-size: 14px; font-weight: 700; margin: 4px 0 6px; }
.ft-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.ft-table { border-collapse: collapse; width: 100%; background: #fff; }
.ft-table th, .ft-table td { border: 1px solid var(--line); padding: 0; font-size: 12px; }
.ft-table thead th { background: var(--bg-2); padding: 5px 4px; text-align: center; vertical-align: middle; }
.ft-table .ft-a { display: block; font-weight: 700; color: var(--text); }
.ft-table .ft-b { display: block; font-size: 10px; color: var(--muted); font-weight: 500; margin-top: 1px; }
.ft-idx { width: 26px; text-align: center; color: var(--muted); background: var(--bg-2); font-size: 11px; }
.ft-in {
  width: 100%; border: 0; outline: 0; background: transparent; font-size: 12px;
  padding: 9px 6px; color: var(--text); font-family: inherit; min-height: 38px;
}
.ft-in:focus { background: var(--blue-l); }
/* v69 需求一：跟进表内「带看与否」下拉格 */
.ft-in.ft-sel {
  width: auto; min-width: 4.2em; padding: 6px 6px; border: 1px solid var(--line);
  border-radius: 6px; background: #fff; font-size: 12px; line-height: 1.2;
}
.ft-empty { padding: 16px; text-align: center; color: var(--muted); font-size: 12.5px; }
.ft-tip { font-size: 11.5px; color: var(--muted); margin-top: 5px; }
/* 只读单元格（详情页展示用） */
.ft-cell { padding: 9px 6px; min-height: 34px; font-size: 12px; color: var(--text); word-break: break-all; }
.ft-cell.muted { color: var(--muted); }

/* ============================================================
 * v16 改造：主页面全区域横滑翻页 / 带看计划卡片 / 二级页统一全屏
 * ============================================================ */

/* 1) 主页面横滑翻页：触发范围覆盖整个 #view 内容区（顶部日历、chip 行、卡片列表都能滑动）
      —— 手势逻辑在 js/app.js 的 initPageSwipe 里，用「方向锁」避免纵向滚动误触。
      注意：不要在 #view 上设 touch-action: pan-y，否则跟进表等横向滚动容器会失效。 */

/* 2) 带看计划卡片：移除房源标签行，提醒时间移到客户姓名后方 */
.plan-client { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.plan-remind {
  display: inline-block; margin: 0; font-size: 12px; font-weight: 600;
  color: var(--blue); background: var(--blue-l); border-radius: 10px;
  padding: 2px 8px; font-family: var(--font-num);
}
.plan-remind.past { color: var(--muted); background: var(--bg-2); font-weight: 400; }
/* 旧版独立成行的房源标签行已移除，保留选择器以防老缓存样式残留 */
.plan-props { display: none; }

/* 3) 全屏二级页：内容区留出底部安全距离，避免按钮贴底 */
.fullpage .fp-body { padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px)); }
.fullpage .sheet-actions { margin-top: 8px; }
.fullpage .np-sec { margin-top: 14px; }

/* ============================================================
 * v17 改造：带看记录跟进表重构（7 列 / 多行合并单元格 / 复制·下载·放大）
 * ============================================================ */

/* 表格标题 + 右上角三个功能按钮 */
.ft-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 4px 0 7px; }
.ft-head .ft-title { margin: 0; }
.ft-tools { display: flex; gap: 6px; flex-shrink: 0; }
.ft-tool {
  border: 1px solid var(--line); background: #fff; color: var(--muted-d);
  font-size: 12px; font-weight: 600; padding: 4px 11px; border-radius: 13px; cursor: pointer;
  line-height: 1.2;
}
.ft-tool:active { background: var(--blue-l); color: var(--blue); border-color: var(--blue); }

/* v62 需求8：带看记录跟进表「现场记录」筛选行（标题行下方第二行） */
.ft-filter-row { display: flex; align-items: center; gap: 8px; padding: 6px 10px; margin: 0 0 7px; background: var(--bg-2, #f7f8fa); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.ft-filter-label { font-size: 13px; font-weight: 600; color: var(--muted-d); }

/* 多行合并单元格：一列里叠多行子字段 */
.ft-table2 td { vertical-align: top; padding: 0; }
.ft-table2 thead th { white-space: nowrap; }
.ft-line { display: flex; align-items: stretch; border-bottom: 1px dashed var(--line-soft); }
.ft-line:last-child { border-bottom: 0; }
.ft-line .ft-in { min-height: 30px; padding: 6px; font-size: 12px; }
.ft-line.ro { display: block; padding: 7px 6px; font-size: 12px; color: var(--text); word-break: break-all; line-height: 1.5; }
.ft-line.ro.linkable { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
/* 跳转小按钮（编辑态：点「↗」跳到房源详情 / 现场记录） */
.ft-jump {
  flex: 0 0 26px; width: 26px; border: 0; border-right: 1px dashed var(--line-soft);
  background: var(--blue-l); color: var(--blue); font-size: 13px; cursor: pointer; padding: 0;
}
.ft-jump:active { background: var(--blue); color: #fff; }

/* 放大：全屏查看（竖屏自适应 / 横屏全览） */
.ft-full {
  position: fixed; inset: 0; z-index: 95; background: var(--bg);
  display: flex; flex-direction: column; animation: fpIn .18s ease;
}
.ft-full-head {
  height: calc(48px + env(safe-area-inset-top, 0px)); padding-top: env(safe-area-inset-top, 0px);
  display: flex; align-items: center; gap: 8px; padding-left: 2px; padding-right: 12px;
  background: var(--green-grad); color: #fff; flex-shrink: 0;
}
.ft-full-close { width: 42px; height: 42px; border: 0; background: none; color: #fff; font-size: 30px; line-height: 1; cursor: pointer; }
.ft-full-title { flex: 1; font-size: 16px; font-weight: 700; }
.ft-full-save {
  border: 0; background: rgba(255, 255, 255, .2); color: #fff;
  font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 14px; cursor: pointer;
}
.ft-full-body { flex: 1; overflow: auto; padding: 12px; -webkit-overflow-scrolling: touch; }
/* 横屏时把表格尽量铺满，方便整体核对 */
@media (orientation: landscape) {
  .ft-full-body { padding: 8px; }
  .ft-full .ft-table { width: 100%; }
}

/* ============================================================
 * v18 改造：编辑页删除左侧房源标签（改为行内 × 移除）/ 分房源带看时间与自动排序
 * ============================================================ */

/* # 列（编辑态）：行号上方，下方为「×」移除该房源按钮 */
.ft-table2 td.ft-idx { padding: 4px 2px; }
.ft-table2 td.ft-idx span { display: block; color: var(--muted); }
.ft-del {
  display: block; margin: 3px auto 0; width: 20px; height: 20px; line-height: 18px;
  border: 1px solid #ffd0d0; border-radius: 50%; background: #fff2f2; color: #e5484d;
  font-size: 14px; font-weight: 700; padding: 0; cursor: pointer; font-family: inherit;
}
.ft-del:active { background: #e5484d; color: #fff; border-color: #e5484d; }

/* ============================================================
 * v19 改造：编辑 / 新建带看页滚动规则
 *   页面其余表单区域固定全屏宽、禁止横向滚动（与详情页一致），
 *   仅「带看记录跟进表」在自身容器内左右滑动。
 * ============================================================ */

/* 1) 表单页内容区只允许纵向滚动。
      说明：.fp-body 原本只声明 overflow-y:auto，按 CSS 计算规则 overflow-x
      会被一并算成 auto（一个方向非 visible 时另一个 visible 变 auto），
      于是内容一超宽整页就能横向拖动。这里显式关掉横向，做全局兜底。
      页面内所有需要横滑的组件（.ft-scroll / .fpc-track）都是自身滚动容器，不受影响。 */
.fullpage .fp-body { overflow-x: hidden; }

/* 2) 带看表单网格：grid 轨道（1fr）的自动最小值 = min-content，会被跟进表
      的最小宽度（7 列 min-width 之和 ≈670px）撑开，连 .full 跨列项一起变宽。
      把 grid item 的最小宽度归零，轨道恒等于「屏幕宽均分」，
      表格改为在自己的滚动容器里左右滑动。
      仅作用于带看表单（.fg-fit），不影响其它表单页的列宽表现。 */
.form-grid.fg-fit > * { min-width: 0; }

/* 3) 跟进表横向滚动容器：宽度不超出父容器；横滑滚到边界不再把滚动链传给页面。 */
.ft-scroll { max-width: 100%; overscroll-behavior-x: contain; }

/* 4) 表头：标题单行（不被压成竖排），右上角三个按钮固定不收缩 */
.ft-head { flex-wrap: nowrap; }
.ft-head .ft-title { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ============================================================
 * v20 改造：
 *   1. 顶部月历整体高度压缩为原来的 6/7，给下方列表让出更多可视空间
 *   2. 客户 / 房源改为「可搜索选择器」（+ 行尾「＋」新增）
 *   3. 带看时间从顶部全局栏改为跟进表行内独立（列表页/详情页头部取最早时间）
 *   4. 跟进表列宽自适应：按单元格文字内容定宽，竖屏一屏尽量多显示列
 * ============================================================ */

/* 1) 月历压缩（原 cal-cell min-height 52px → 45px ≈ 6/7） */
.cal-wrap { padding: 8px 7px 6px; }
.cal-head { padding: 0 6px 5px; }
.cal-title { font-size: 17px; }
.cal-nav { width: 30px; height: 30px; font-size: 18px; border-radius: 9px; }
.cal-week { margin-bottom: 3px; }
.cal-week span { font-size: 12px; padding: 3px 0; }
.cal-cell { min-height: 45px; padding: 4px 2px; border-radius: 10px; }
.cal-cell .cal-num { font-size: 14.5px; }
.cal-cell .cal-sub { font-size: 8.5px; margin-top: 1px; }

/* 2) 可搜索选择器（客户 / 房源）：输入过滤 → 点选填入 */
.fld-label { display: block; font-size: 13px; color: var(--muted-d); margin-bottom: 5px; }
.picker-row { display: flex; align-items: stretch; gap: 8px; }
.picker-row > div { flex: 1 1 auto; min-width: 0; }
.picker { position: relative; }
.picker-input { width: 100%; padding-right: 30px; }
.picker-clear {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 22px; height: 22px; line-height: 20px; padding: 0; border: 0; border-radius: 50%;
  background: var(--bg-2); color: var(--muted); font-size: 14px; cursor: pointer;
}
.picker-list {
  display: none; position: absolute; left: 0; right: 0; top: calc(100% + 5px); z-index: 70;
  max-height: 232px; overflow-y: auto; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
  -webkit-overflow-scrolling: touch;
}
.picker-list.open { display: block; }
/* v64 需求二：置灰态（未选客户时「选择房源」输入框）——不可编辑、视觉置灰 */
.picker-dis .picker-input {
  background: var(--bg-2); color: var(--muted); cursor: not-allowed; opacity: .75;
}
.picker-opt {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 12px; border-bottom: 1px solid var(--line-soft); cursor: pointer; font-size: 13px;
}
.picker-opt:last-child { border-bottom: 0; }
.picker-opt b { font-weight: 600; color: var(--text); }
.picker-opt span { color: var(--muted); font-size: 11.5px; flex-shrink: 0; }
.picker-opt.on, .picker-opt:active { background: var(--blue-l); }
.picker-none { padding: 13px; text-align: center; color: var(--muted); font-size: 12.5px; }
.picker-add {
  padding: 11px 12px; text-align: center; color: var(--blue); font-weight: 700; font-size: 13px;
  border-top: 1px dashed var(--line-soft); cursor: pointer;
}
.picker-add:active { background: var(--blue-l); }
.picker-addbtn {
  flex: 0 0 46px; width: 46px; padding: 0; border: 1px dashed var(--blue); border-radius: 10px;
  background: #fff; color: var(--blue); font-size: 21px; font-weight: 700; line-height: 1; cursor: pointer;
}
.picker-addbtn:active { background: var(--blue-l); }

/* v69 需求一：「＋ 房源」按钮——蓝底白字、自适应宽度、与搜索框同行紧凑 */
.picker-addbtn.picker-addbtn-txt {
  flex: 0 0 auto; width: auto; padding: 0 12px;
  display: inline-flex; align-items: center; justify-content: center; gap: 4px; white-space: nowrap;
  border: 1px solid var(--blue); border-radius: 10px;
  background: var(--blue); color: #fff; font-size: 13px; font-weight: 600; line-height: 1;
}
.picker-addbtn.picker-addbtn-txt:active { filter: brightness(.94); }

/* v69 需求一：自动撑高多行文本域（反馈补充） */
textarea.auto-grow { resize: none; overflow: hidden; min-height: 46px; line-height: 1.5; }

/* ============================================================
 * v22 改造
 * 1) 现场记录表单（逐套反馈卡：客户反馈 / 痛点多选 / 意向等级 / 笔记 / 拍照 / 疑问）
 * 2) 带看总结卡片（基本信息 / 已带看 / 未带看 / 客户反馈 / 笔记 / 总结语）
 * 3) 跟进表业主电话全号展示（点号码选中 11 位）
 * 4) 历史回看摘要行 + 逐套反馈只读明细
 * ============================================================ */

/* —— 通用 —— */
.req { color: var(--red); margin-left: 2px; font-weight: 700; }

/* —— 1) 逐套反馈卡 —— */
.unit-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px; margin: 10px 0; box-shadow: var(--shadow-sm);
}
.unit-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.unit-title { font-size: 14px; font-weight: 700; color: var(--text); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.unit-del { flex-shrink: 0; border: 0; background: var(--red-l); color: var(--red); font-size: 12px; padding: 4px 10px; border-radius: 10px; cursor: pointer; }
.unit-del:active { filter: brightness(.96); }
.unit-lbl { display: block; font-size: 13px; color: var(--muted-d); margin: 10px 0 0; }
.unit-lbl:first-of-type { margin-top: 0; }
.unit-lbl > .input { margin-top: 5px; }
/* 痛点标签（多选） */
.pain-box { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.chip.pain { background: var(--green-ll); color: var(--muted-d); border: 1px solid var(--line); box-shadow: none; cursor: pointer; }
.chip.pain.on { background: var(--green-grad); color: #fff; border-color: transparent; box-shadow: 0 2px 6px rgba(46,91,255,.28); }
/* 意向等级 A/B/C/D（单选徽标） */
.intent-row { display: flex; gap: 6px; margin-top: 6px; }
.intent {
  flex: 1; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 7px 4px;
  display: flex; flex-direction: column; align-items: center; gap: 2px; cursor: pointer;
  color: var(--muted-d); transition: all .15s;
}
.intent b { font-size: 16px; font-weight: 800; font-family: var(--font-num); }
.intent span { font-size: 11px; }
.intent.on { color: #fff; border-color: transparent; }
.intent.int-A.on { background: var(--red); }
.intent.int-B.on { background: var(--amber); }
.intent.int-C.on { background: var(--blue); }
.intent.int-D.on { background: var(--muted); }
/* 疑问逐条 */
.qbox { margin-top: 6px; display: flex; flex-direction: column; gap: 6px; }

/* —— 2) 带看总结卡片 —— */
.sum-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; margin: 8px 0; box-shadow: var(--shadow-sm); }
.sum-sec { margin: 12px 0 0; }
.sum-sec h4 { font-size: 13px; font-weight: 700; color: var(--green-d); margin: 0 0 6px; display: flex; align-items: center; gap: 8px; }
.sum-list { margin: 0; padding-left: 18px; }
.sum-list li { font-size: 13.5px; line-height: 1.7; color: var(--text); }
.sum-notvisit { color: var(--muted); }
.sum-tag { display: inline-block; font-size: 10px; padding: 1px 6px; border-radius: 8px; background: var(--bg-2); color: var(--muted-d); margin-left: 4px; }
.sum-rec { margin-left: 2px; }
.sum-fb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted-d); margin-bottom: 4px; flex-wrap: wrap; }
.sum-fb > span:first-child { flex-shrink: 0; }
.intent-chip { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 10px; font-size: 12px; font-weight: 700; color: #fff; }
.intent-chip.int-A { background: var(--red); }
.intent-chip.int-B { background: var(--amber); }
.intent-chip.int-C { background: var(--blue); }
.intent-chip.int-D { background: var(--muted); }
.sum-notes p { margin: 3px 0; font-size: 13.5px; line-height: 1.6; }
.sum-text { font-size: 13.5px; line-height: 1.7; color: var(--text); background: var(--green-ll); border-left: 3px solid var(--green); border-radius: 8px; padding: 10px 12px; margin: 4px 0; white-space: pre-wrap; word-break: break-word; }
.sum-edit { margin-left: auto; border: 0; background: var(--green-l); color: var(--green-d); font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 10px; cursor: pointer; }
.sum-edit:active { filter: brightness(.97); }

/* —— 3) 跟进表业主电话（全号，点号码选中 11 位）—— */
.ft-table2 .ft-line.ro.ft-phone-sel { color: var(--blue); cursor: pointer; }
.ft-table2 .ft-line.ft-phone-sel .digits { font-family: var(--font-num); font-weight: 700; letter-spacing: .5px; -webkit-user-select: text; user-select: text; }
.digits { -webkit-user-select: text; user-select: text; }

/* —— 4) 历史回看摘要行 + 逐套反馈只读明细 —— */
.rec-sumbar { margin-top: 7px; }
.rec-sum { display: inline-block; font-size: 12px; padding: 3px 9px; border-radius: 10px; background: var(--green-l); color: var(--green-d); font-weight: 600; }
.unit-view { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; margin: 8px 0; box-shadow: var(--shadow-sm); }
.uv-head { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 4px; display: flex; align-items: center; gap: 6px; }
.uv-line { font-size: 13px; color: var(--muted-d); line-height: 1.6; }

/* ============================================================
 * v23 改造（需求文档 2026101002）—— 现场带看记录页面优化
 * 原则：不改动原有布局 / 配色 / 组件；仅替换选项文字、扩充标签、新增联动提示
 * ============================================================ */

/* 1) 「客户反馈」选中后展示的跟进备注模板条（可一键复制） */
.fb-tpl {
  display: flex; align-items: flex-start; gap: 8px; margin-top: 8px;
  background: var(--green-ll); border: 1px dashed var(--green); border-radius: var(--radius-sm);
  padding: 9px 11px;
}
.fb-tpl-txt { flex: 1; min-width: 0; font-size: 13px; line-height: 1.6; color: var(--green-dd); }
.fb-tpl-copy { flex: 0 0 auto; align-self: center; }

/* 2) 痛点标签分类展示（大类小标题 + chips） */
.pain-grp { margin-top: 8px; }
.pain-grp:first-of-type { margin-top: 6px; }
.pain-grp-t { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.pain-grp .pain-box { margin-top: 0; }

/* 3) 「意向等级」标题右侧：回访周期蓝色小字 + 问号帮助按钮 */
.lbl-row .intent-cycle {
  font-size: 11.5px; font-weight: 500; color: var(--blue);
  background: var(--blue-l); border-radius: 8px; padding: 2px 7px; margin-left: 6px;
  white-space: normal; line-height: 1.4;
}
.help-q {
  flex: 0 0 auto; width: 18px; height: 18px; padding: 0; margin-left: 6px;
  border-radius: 50%; border: 1px solid var(--blue); background: #fff; color: var(--blue);
  font-size: 12px; font-weight: 700; line-height: 1; cursor: pointer;
}
.help-q:active { background: var(--blue-l); }

/* 4) 现场笔记字数统计（右上角） */
.note-count { float: right; font-size: 11px; color: var(--muted); font-weight: 400; }

/* 5) 客户疑问：空白行红框提示 */
.q-item.q-empty input { border-color: var(--red); background: var(--red-l); }

/* 6) 房源标签 × 关闭按钮：扩大点击热区（≥32px），减少误触 */
.unit-del { min-width: 32px; min-height: 32px; padding: 0 10px; font-size: 16px; font-weight: 700; }
.chip.sel b { position: relative; }
.chip.sel b::after { content: ''; position: absolute; top: -12px; left: -12px; right: -12px; bottom: -12px; }

/* 7) 逐套卡片校验失败时的高亮 */
.unit-card.err { border-color: var(--red); box-shadow: 0 0 0 2px var(--red-l); animation: unitErr .5s ease 2; }
@keyframes unitErr { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }

/* 8) 帮助弹窗（? 面板）内容排版 */
.help-body { font-size: 13.5px; line-height: 1.7; color: var(--text); }
.help-body > p { margin: 0 0 10px; color: var(--muted-d); }
.help-sec { padding: 9px 0; border-top: 1px dashed var(--line); }
.help-sec:first-child { border-top: 0; }
.help-sec h4 { margin: 0 0 4px; font-size: 13.5px; color: var(--green-d); }
.help-sec p { margin: 3px 0; }
.help-sec p b { color: var(--muted-d); font-weight: 600; }
.help-sec .help-cycle { color: var(--blue); font-size: 12.5px; }

/* 3) 跟进表列宽自适应：按内容定宽（内联 em 宽度由 plans.js 的 _em 计算） */
.ft-table2 { width: max-content; min-width: 100%; table-layout: auto; }
.ft-table2 td { white-space: nowrap; }
.ft-table2 .ft-line.ro { white-space: nowrap; word-break: normal; }
.ft-table2 .ft-in { width: auto; min-width: 0; }
/* 单元格内边距收窄，把宽度让给内容，避免「20261009」「18:32」被裁掉 */
.ft-table2 .ft-line .ft-in { padding: 6px 4px; }

/* ============================================================
 * v21 改造
 * ============================================================ */
/* 1) 日历组件在 v20 基础上再压缩为 6/7（约 85.7%），下方列表获得更大可视空间 */
.cal-wrap { padding: 7px 6px 5px; }
.cal-head { padding: 0 5px 4px; }
.cal-title { font-size: 15px; }
.cal-nav { width: 26px; height: 26px; font-size: 16px; border-radius: 8px; }
.cal-week { margin-bottom: 2px; }
.cal-week span { font-size: 11px; padding: 2px 0; }
.cal-cell { min-height: 38.5px; padding: 3px 2px; border-radius: 8px; }
.cal-cell .cal-num { font-size: 12.5px; }
.cal-cell .cal-sub { font-size: 7.5px; margin-top: 1px; }

/* 2) 跟进表：硬性约束——单元格内容必须完整展示，禁止省略号截断（v20 的 ellipsis 已移除） */
.ft-table2 .ft-line.ro { overflow: visible; text-overflow: clip; }

/* 3) 脱敏业主电话行：可点开弹窗看完整号 */
.ft-table2 .ft-line.ro.ft-phone { color: var(--blue); cursor: pointer; }

/* 4) 电话弹窗 */
.phone-pop { padding: 4px 2px 2px; }
.phone-pop .phone-num {
  font-family: var(--font-num); font-size: 24px; font-weight: 800; letter-spacing: 1px;
  text-align: center; color: var(--text); margin: 6px 0 16px;
}

/* 5) 只读下拉（区域 / 现状看房 / 钥匙类型）：只能点选，禁止手工输入 */
.combo-input.combo-ro { cursor: pointer; background: var(--card); }

/* ============================================================
 * v24（需求文档 2026101002 二.6.5 / 三）：
 * 跟进终止标记 + 带看分析（单套房源维度统计 / 筛选 / 回访任务 / 导出）
 * ============================================================ */

/* 客户档案：跟进终止标记 */
.follow-tag.term { background: #fdecec; color: #c0392b; }
.term-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.term-opt { width: 100%; margin-bottom: 8px; text-align: center; }

/* 带看分析：汇总四联卡（复用 dashboard .dm） */
.stat-sum { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
/* 分布条形行 */
.stat-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.stat-row .stat-lbl { flex: 0 0 132px; font-size: 12.5px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stat-row .stat-bar { flex: 1; height: 10px; background: #eef1f4; border-radius: 5px; overflow: hidden; }
.stat-row .stat-bar i { display: block; height: 100%; background: var(--green, #1f6f4a); border-radius: 5px; }
.stat-row .stat-bar i.b-red { background: #e74c3c; }
.stat-row .stat-bar i.b-blue { background: #3498db; }
.stat-row .stat-bar i.b-green { background: #27ae60; }
.stat-row .stat-bar i.b-gray { background: #95a5a6; }
.stat-row .stat-num { flex: 0 0 28px; text-align: right; font-size: 12.5px; color: var(--muted, #8a919f); }

/* 回访任务 / 逐套明细列表 */
.task-item { padding: 9px 2px; border-bottom: 1px solid rgba(0,0,0,.05); }
.task-item:last-child { border-bottom: none; }
.task-item .task-head { font-size: 13.5px; font-weight: 600; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.task-item .task-sub { font-size: 12px; color: var(--muted, #8a919f); margin-top: 3px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

/* ============================================================
 * v25：全局触控优化（配合 js/util.js 的 _bindTap）
 * 消除 300ms 点击延迟、双击缩放；按钮最小 44px 热区与 active 反馈
 * ============================================================ */
.fast-tap {
  min-width: 44px; min-height: 44px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;            /* 关键：禁止双击缩放，去 300ms 延迟 */
  user-select: none; -webkit-user-select: none;
  cursor: pointer;
}
.fast-tap:active { filter: brightness(.94); transform: scale(.97); }
/* 确认弹窗按钮拉开间距，避免误触 */
.confirm-sheet .sheet-actions { gap: 12px; margin-top: 18px; }
.confirm-sheet .btn { padding: 13px 10px; font-size: 15px; border-radius: 12px; }

/* 删除类控件：统一加大热区 */
.img-del, .unit-del, .rec-edit, .rec-del, .chip.sel > b {
  min-width: 40px; min-height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.unit-del { min-height: 36px; }
.unit-del:active { filter: brightness(.95); transform: scale(.95); }

/* 弹层打开时锁定背景滚动，避免穿透 */
body.sheet-open { overflow: hidden; }

/* ============================================================
 * v25：客户详情页 — 已带看房源筛选 + 带看记录报告
 * ============================================================ */
.filt-row { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.seg { display: inline-flex; background: var(--green-ll); border-radius: 10px; padding: 3px; flex: 1; min-width: 0; }
.seg button {
  flex: 1; border: 0; background: none; padding: 7px 4px; border-radius: 8px;
  font-size: 12.5px; color: var(--muted); cursor: pointer; white-space: nowrap; min-height: 36px;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.seg button.on { background: #fff; color: var(--green); font-weight: 700; box-shadow: var(--shadow-sm); }
.input.sm { flex: 0 0 auto; width: auto; min-width: 96px; padding: 7px 10px; font-size: 13px; }

.vp-list { display: flex; flex-direction: column; gap: 8px; }
.vp-item {
  display: flex; align-items: center; gap: 8px; padding: 10px;
  background: var(--green-ll); border-radius: 10px; cursor: pointer;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.vp-item:active { filter: brightness(.97); }
.vp-main { flex: 1; min-width: 0; }
.vp-title { font-size: 14px; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vp-sub { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.vp-go { color: var(--muted); font-size: 18px; }
/* v65 需求二：备选房源管理页卡片（条目可点击跳详情，右侧「解除」按钮） */
.am-item { cursor: pointer; }
.am-del { flex: 0 0 auto; margin-left: 0; }

/* v65：【选择客户】/【选择房源】公共页——单选列表行 + 底部说明栏 */
.pick-list { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.pick-row {
  display: flex; align-items: center; gap: 8px; padding: 11px 12px;
  background: #fff; border: 1px solid var(--line-soft); border-radius: 12px;
  cursor: pointer; transition: all .12s;
}
.pick-row:active { filter: brightness(.97); }
.pick-row.sel { border-color: var(--green); background: var(--green-ll); box-shadow: 0 0 0 2px var(--green-l); }
.pick-row.dim { opacity: .6; }
.pick-name { font-size: 14px; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick-sub { margin-left: auto; font-size: 11.5px; color: var(--muted); font-family: var(--font-num); flex: 0 0 auto; }
.pick-foot {
  margin-top: 12px; padding: 10px 12px; background: var(--green-ll);
  border-radius: 10px; font-size: 12.5px; color: var(--green-d); line-height: 1.5;
}
/* v66 需求一：选择房源页两行多选——复用 vp-main/vp-title/vp-sub，外加多选勾选框与已备选禁用态 */
.pick-row .vp-main { flex: 1; min-width: 0; }
.pick-row.excluded { opacity: .55; pointer-events: none; }
.pick-check {
  flex: 0 0 auto; width: 20px; height: 20px; border-radius: 50%; box-sizing: border-box;
  border: 2px solid var(--line); display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 12px; line-height: 1;
}
.pick-row.sel .pick-check { background: var(--green); border-color: var(--green); }
.pick-row.sel .pick-check::after { content: '✓'; }
/* v66 需求三：选择客户页——已添加本房源的客户特殊样式区分 + 置顶（.already） */
.pick-row.already { background: var(--green-ll); opacity: .72; }
.pick-row.already .pick-name { color: var(--green-d); }
/* v67 需求二：已备选客户「取消备选」按钮间距 */
.pick-row .am-del { margin-left: 6px; }
/* v69 需求二：选择客户页「已备选」客户条目两行布局 */
.pick-row.two-line { flex-direction: column; align-items: stretch; gap: 6px; }
.pick-row.two-line .pl-top { display: flex; align-items: center; gap: 8px; }
.pick-row.two-line .pl-top .pick-name { flex: 1; min-width: 0; }
.pick-row.two-line .pl-bottom { display: flex; align-items: center; gap: 8px; }
.pick-row.two-line .pl-bottom .pick-sub { margin-left: 0; }
/* v66 需求三/四：红底白字角标（房源侧/客户侧「添加至备选房」「备选房源」标签后方） */
.alt-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 5px; margin-left: 6px;
  background: var(--red); color: #fff; border-radius: 9px;
  font-size: 11px; font-weight: 700; line-height: 1; vertical-align: middle;
}
/* v69 需求三：详情页「添加至备选房」数量角标——与按钮文字垂直居中对齐、收紧水平间距
   （房源库详情 d_addbadge 与自盘详情 mt_addbadge 同处 .np-sec-acts，共用此规则，两处同步） */
.np-sec-acts .alt-badge { margin-left: 0; align-self: center; }

.report-card { background: #fff; border: 1px solid var(--line-soft); border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; }
.report-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.report-date { font-size: 14px; font-weight: 700; color: var(--text); }
.report-acts { margin-left: auto; display: flex; gap: 6px; }
.report-acts .mini-btn { margin-left: 0; }
.rp-unit { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 13px; border-top: 1px dashed var(--line-soft); }
.rp-unit:first-of-type { border-top: 0; }
.rp-ut { flex: 1; min-width: 0; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp-fb { font-size: 11.5px; color: var(--muted-d); }
.rp-q { font-size: 12px; color: var(--muted-d); margin-top: 6px; padding-top: 6px; border-top: 1px dashed var(--line-soft); }

/* ============================================================
 * v26 经纪人自盘维护专属模块
 * 统计栏 / 定级 S·A·B·C / 待办红点 / 自盘标签 / 调价·带看行
 * ============================================================ */
/* v9712：核验码总数行整体高度降至约 2/3——数字与文字字号/行高不变，仅收紧上下留白（padding 与数字-文字间距） */
.mt-stats { display: flex; justify-content: space-between; gap: 2px; padding: 3px 6px; margin-bottom: 8px; }
.mt-stats .ms { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 1px; min-width: 0; }
.mt-stats .ms b { font-size: 16px; font-weight: 800; color: var(--green); font-family: var(--font-num); }
.mt-stats .ms span { font-size: 10.5px; color: var(--muted-d); white-space: nowrap; }

/* 定级：S 急售 / A 优质 / B 观望 / C 低效 —— 彩色标签与切换按钮 */
.grade-tag {
  display: inline-block; padding: 1px 7px; border-radius: 6px;
  font-size: 11px; font-weight: 700; color: #fff; line-height: 1.6;
}
.grade-row { display: flex; gap: 6px; flex-wrap: wrap; }
.grade-btn {
  flex: 1; min-width: 62px; min-height: 38px; border: 1px solid var(--line);
  background: #fff; border-radius: 10px; font-size: 13px; font-weight: 700;
  color: var(--muted-d); cursor: pointer; touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.grade-btn.on { color: #fff; border-color: transparent; }
.g-s { background: #E53935; }
.g-a { background: #1E88E5; }
.g-b { background: #43A047; }
.g-c { background: #8E9AAF; }

/* 待办小红点 + 提示行 */
.todo-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--red); margin-left: 6px; vertical-align: middle;
  box-shadow: 0 0 0 3px var(--red-l);
}
.todo-line {
  margin-top: 6px; font-size: 11.5px; color: var(--red);
  background: var(--red-l); border-radius: 6px; padding: 3px 7px; line-height: 1.5;
}

/* 房源库：自盘房源橙色标签 */
.tag.self-tag { background: #FFF0E0; color: #E8912B; font-weight: 700; border: 1px solid #FBDCC0; }

/* 调价 / 带看 记录行 */
.rp-row { padding: 8px 0; border-top: 1px dashed var(--line-soft); }
.rp-row:first-child { border-top: 0; }
.rp-date { font-size: 12px; color: var(--muted-d); margin-bottom: 2px; }
.rp-chg { font-size: 13.5px; color: var(--text); }
.rp-chg b { color: var(--green); }

/* v37 调价档案条目：左侧(时间+价格走势) / 右侧调价原因文本框 */
.rp-row2 { display: flex; align-items: stretch; gap: 10px; padding: 8px 0; border-top: 1px dashed var(--line-soft); }
.rp-row2:first-child { border-top: 0; }
.rp-left { flex: 0 0 auto; min-width: 104px; display: flex; flex-direction: column; justify-content: center; }
.rp-reason { flex: 1 1 auto; min-width: 0; min-height: 46px; font-size: 12px; line-height: 1.4; resize: none; align-self: center; }

/* v26.1 自盘：二级记录页操作行 / 待办条目 */
.row { display: flex; gap: 8px; flex-wrap: wrap; }
.row > * { flex: 1; min-width: 0; }
/* v61 需求4：新建待办页——开始/结束时间标签与输入框同一行左右展示 */
.td-time-row { align-items: center; }
.td-time-row .td-time-label { flex: 0 0 auto; align-self: center; color: var(--muted); font-size: 14px; }
.td-time-row input { flex: 1; min-width: 0; }
/* v63 需求二①：新建待办表单——开始/结束/提醒/闹钟 四项各独占一整行（form-grid 为两列栅格，需显式占满整行） */
.td-form .td-time-row, .td-form .td-line-row { grid-column: 1 / -1; align-items: center; }
.td-form .td-line-row { justify-content: space-between; gap: 12px; }
.td-form .td-line-row > .td-time-label { flex: 0 0 auto; color: var(--muted); font-size: 14px; }
.td-form .td-line-row > .btn, .td-form .td-line-row > .switch { flex: 0 0 auto; }
/* v61 需求4：提醒时间字段名与「不提醒」按钮同一行左右展示 */
.td-remind-block { display: flex; justify-content: space-between; align-items: center; }
.td-remind-block .block-label { display: block; margin-bottom: 0; }
.act-row { margin-top: 8px; }
.act-row .btn { min-height: 40px; }
.col-actions { flex-direction: column; }
/* v43：工具页「分模块导出 / 导入」两列布局——每行一个模块（名称 + 导出/导入） */
.mod-grid { display: flex; flex-direction: column; gap: 8px; }
.mod-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px;
}
.mod-name { font-size: 13.5px; font-weight: 600; }
.mod-btns { display: flex; gap: 8px; flex: 0 0 auto; }
.todo-row {
  display: flex; align-items: center; gap: 8px; padding: 9px 10px;
  background: var(--red-l); border-radius: 10px; margin-bottom: 7px; font-size: 13px;
}
.todo-row .tag { flex-shrink: 0; }

/* ============================================================
 * v27 UI 统一优化
 * 1) 自盘维护顶部标签：选中蓝底白字 / 未选中白底黑字（切换实时刷新）
 * 2) 房源基础档案紧凑排版（压缩留白、减少占屏）
 * 3) 自盘卡片底部补充文本
 * ============================================================ */
/* v97.40 需求一：自盘维护筛选标签对齐「房源库」配色（green-l底 / green-d字，选中 green-grad蓝白，无边框） */
#mt_tabs .chip { background: var(--green-l); color: var(--green-d); border-color: transparent; }
#mt_tabs .chip.sel {
  background: var(--green-grad); color: #fff; border-color: transparent;
  font-weight: 700; box-shadow: 0 2px 6px rgba(31, 111, 74, .3);
}
/* v45：自盘「全部」标签样式与房源库「全部房源」完全一致（green-l底、green-d字，选中渐变，无边框） */
#mt_tabs .chip.chip-all { background: var(--green-l); color: var(--green-d); border-color: transparent; font-weight: 400; }
#mt_tabs .chip.chip-all.sel {
  background: var(--green-grad); color: #fff; border-color: transparent;
  font-weight: 400; box-shadow: 0 2px 6px rgba(31, 111, 74, .3);
}
/* 逾期标签：保持现有红色未选中态；选中后「蓝底白字」，数字保持红色、小圆圈白色底（v97.40 需求一） */
#mt_tabs .chip.hot { background: var(--red); color: #fff; border-color: transparent; box-shadow: 0 2px 6px rgba(232, 84, 74, .32); }
#mt_tabs .chip.hot.sel { background: var(--blue,#2E5BFF); color: #fff; border-color: transparent; box-shadow: 0 2px 6px rgba(46,91,255,.28); }
#mt_tabs .chip.hot.sel .od-num { background: #fff; color: var(--red); }

/* 基础档案紧凑：压缩行高与内边距，减少占屏高度 */
.kv-compact .kv { padding: 5px 0; min-height: 0; line-height: 1.45; font-size: 13px; }
.kv-compact { padding: 8px 12px; }

/* v29：自盘详情「房源基础档案」——标题行内联返回按钮（与标题同行，靠右对齐） */
.base-sec { display: flex; align-items: center; gap: 10px; }
.base-sec .base-sec-t { white-space: nowrap; }
.base-sec .mt-back { margin: 0 0 0 auto; white-space: nowrap; flex: 0 0 auto; }

/* v38：模块折叠（房源库详情上部区域 / 自盘基础档案·定级管理） */
.fold-toggle { border: 1px solid var(--line); background: var(--bg-2); color: var(--muted-d); font-size: 11.5px; padding: 2px 9px; border-radius: 10px; cursor: pointer; white-space: nowrap; flex: 0 0 auto; }
.fold-toggle:active { transform: scale(.96); }
.fold-body.collapsed { display: none; }
.fold-head { cursor: pointer; user-select: none; }
.fold-head .fold-arrow { font-size: 11px; color: var(--muted); margin-left: 4px; }
.fold-head.collapsed .fold-arrow { display: inline-block; }

/* v29：基础档案 6 行紧凑无标签布局（只展示字段内容，不显示字段名） */
.base-compact { padding: 6px 12px; }
.bc-row { display: flex; gap: 10px; padding: 6px 0; font-size: 13.5px; line-height: 1.5; }
.bc-row + .bc-row { border-top: 1px dashed var(--line-soft); }
.bc-cell { flex: 1 1 0; min-width: 0; color: var(--text); word-break: break-word; }
.bc-cell.bc-strong { font-weight: 700; }
.bc-cell.bc-qf { color: var(--muted); font-size: 12px; }
.bc-price { color: var(--red); font-weight: 800; }
.bc-unit { color: var(--muted); font-size: 12px; margin-left: 5px; font-weight: 400; }
/* v70：单元格内附注（备案价 / 梯户比）——不新增行，保持 6 行紧凑布局 */
.bc-sub { display: block; color: var(--muted); font-size: 11.5px; line-height: 1.35; font-weight: 400; margin-top: 1px; }
.bc-phone .bc-cell { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }

/* v29：自盘列表——钥匙状态移至右侧字段展示 */
.pf-left { display: flex; align-items: center; gap: 8px; min-width: 0; overflow: hidden; }
.pf-key { font-size: 11.5px; color: var(--muted-d); flex-shrink: 0; }

.prop-foot .pf-txt { font-size: 11.5px; color: var(--muted-d); margin-left: auto; flex-shrink: 0; }

/* v30：自盘列表缩略图可点击放大（放大/保存/滑动） */
.mt-thumb { cursor: pointer; position: relative; }
.mt-thumb::after {
  content: '⤢'; position: absolute; right: 4px; bottom: 4px; font-size: 13px; line-height: 1;
  color: #fff; background: rgba(0, 0, 0, .38); padding: 1px 5px; border-radius: 6px; pointer-events: none;
}

/* v30：基础档案「现状/看房 + 钥匙状态」合并为单句整行 */
.bc-row.bc-house { padding-top: 8px; }
.bc-cell.bc-full { flex: 1 1 100%; font-weight: 600; color: var(--text); word-break: break-word; }

/* v30：自盘编辑表单——基础档案外置提示 */
.form-hint {
  margin: 2px 2px 8px; padding: 8px 10px; font-size: 12.5px; line-height: 1.5;
  color: var(--muted-d); background: var(--green-l); border-radius: 10px; border: 1px solid var(--line-soft);
}

/* ========== v46：待办闹钟提醒浮层（置顶于全屏页/toast 之上） ========== */
.remind-overlay {
  position: fixed; inset: 0; z-index: 120;
  background: rgba(15, 23, 42, .55);
  display: flex; align-items: center; justify-content: center;
  padding: 24px; animation: fade .18s;
}
.remind-overlay .ro-card {
  width: 100%; max-width: 320px; background: var(--card);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: 26px 20px 18px; text-align: center;
  animation: roPop .26s cubic-bezier(.22, .9, .36, 1.1);
}
@keyframes roPop {
  from { opacity: 0; transform: scale(.86) translateY(10px); }
  to   { opacity: 1; transform: none; }
}
.remind-overlay .ro-ico { font-size: 40px; line-height: 1; }
.remind-overlay .ro-title { font-size: 17px; font-weight: 800; margin: 10px 0 4px; }
.remind-overlay .ro-sub { font-size: 13px; color: var(--muted-d); }
.remind-overlay .ro-time { font-size: 12px; color: var(--muted); margin-top: 6px; font-variant-numeric: tabular-nums; }
.remind-overlay .ro-acts { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.remind-overlay .ro-acts .btn { width: 100%; }

/* ========== v46：本机免密登录（解锁页快捷入口 / 记住本机勾选） ========== */
.lock-card .quick-enter { margin: 4px 0 14px; }
.lock-card .quick-tip { font-size: 11.5px; color: var(--muted); margin: 8px 0 0; line-height: 1.5; }
.lock-card .trust-chk {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 12.5px; color: var(--muted-d); margin: 0 0 12px; cursor: pointer;
}
.lock-card .trust-chk input { width: 15px; height: 15px; accent-color: var(--green); }

/* ========== v46：跟进记录逐条删除按钮 ========== */
.follow-item { position: relative; }
.follow-item.has-del { padding-right: 36px; }
.follow-del {
  position: absolute; top: 50%; right: 0; transform: translateY(-50%);
  border: 0; background: none; padding: 8px 10px; margin: 0;
  font-size: 13px; line-height: 1; color: var(--muted); cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.follow-del:active { color: var(--red); transform: translateY(-50%) scale(.88); }
.rp-row { position: relative; }
.rp-row.has-del { padding-right: 36px; }

/* ========== v46：客户等级 S/A/B/C（? 说明 / 等级管理卡片 / 说明表） ========== */
.q-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 15px; height: 15px; margin-left: 3px; padding: 0;
  border: 1px solid var(--muted); border-radius: 50%;
  background: none; color: var(--muted-d);
  font-size: 10px; font-weight: 700; line-height: 1; cursor: pointer;
  vertical-align: middle; flex-shrink: 0;
}
.q-btn:active { background: var(--green-l); border-color: var(--green); color: var(--green-d); }
.lv-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 4px 0 2px; }
.lv-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  padding: 9px 10px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--card); text-align: left; cursor: pointer; min-height: 66px;
}
.lv-card b { font-size: 14px; font-weight: 800; }
.lv-card span { font-size: 11px; color: var(--muted-d); line-height: 1.35; }
.lv-card i { font-size: 10.5px; color: var(--muted); font-style: normal; }
.lv-card:active { transform: scale(.97); }
.lv-card.lv-S b { color: var(--red); }
.lv-card.lv-A b { color: var(--blue); }
.lv-card.lv-B b { color: var(--green-d); }
.lv-card.lv-C b { color: var(--muted-d); }
.lv-card.on { border-color: var(--green); background: var(--green-l); box-shadow: 0 2px 8px rgba(46,91,255,.14); }
.lv-card.on.lv-S { border-color: var(--red); background: var(--red-l); }
.lv-help { width: 100%; border-collapse: collapse; font-size: 11.5px; }
.lv-help th, .lv-help td { border: 1px solid var(--line-soft); padding: 6px 7px; text-align: left; vertical-align: top; line-height: 1.45; }
.lv-help th { background: var(--green-ll); font-weight: 700; white-space: nowrap; }
.lv-help td:first-child { white-space: nowrap; }
.lv-help .lv-S td:first-child b { color: var(--red); }
.lv-help .lv-A td:first-child b { color: var(--blue); }
.lv-help .lv-B td:first-child b { color: var(--green-d); }
.lv-help .lv-C td:first-child b { color: var(--muted-d); }

/* ============================================================
 * v48 优化（3 / 5 / 7 / 9）
 * ============================================================ */
/* 优化3：待办跳转到房源编辑页后的「已到期」提示框——文案较长，放宽行高，两枚按钮居中 */
.overdue-prompt .ro-title { font-size: 14.5px; line-height: 1.55; text-align: center; }
.overdue-prompt .ro-acts { justify-content: center; }
/* 优化5：房源热度管理——标签按钮组 + 回访周期天数输入 */
.heat-row { margin-bottom: 8px; }
.heat-cycle { margin-top: 2px; }
.heat-cycle .pf-next { width: 100%; }
/* 优化7：新增客户【购房需求】字段名后的填写提示（浅色小字） */
.f-hint { font-size: 11px; font-weight: 400; margin-left: 6px; opacity: .8; }

/* ============ v55：房源热度管理折叠 + 回访周期同行输入 ============ */
.fold-head { cursor: pointer; }
.fold-head .fold-arrow { font-size: 12px; color: var(--muted); margin-left: 4px; user-select: none; }
.fold-body.collapsed { display: none; }
.heat-row .heat-inline { display: inline-flex; align-items: center; margin-left: 6px; flex: 0 0 auto; }
.heat-row .heat-inline #d_cycle { width: 64px; }

/* ============ v55：房源跟进模块标题按钮 + 待办条目列表 ============ */
.np-sec-row { display: flex; align-items: center; justify-content: space-between; margin: 16px 0 8px; }
.np-sec-row .np-sec { margin: 0; }
/* v65：标题行右侧按钮区——新增「添加至客户备选房源」后可能挤不下，允许换行并靠右 */
.np-sec-acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
/* v67 需求三：带看计划标签存在时红底白字高亮（与周期回访/待办标签字号圆角一致） */
.np-sec-acts .btn.hot { background: var(--red); color: #fff; border-color: transparent; box-shadow: 0 2px 6px rgba(232,84,74,.30); }
.np-sub { font-size: 12px; font-weight: 700; color: var(--muted); margin: 10px 0 4px; }
.todo-item { display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 8px 10px; border: 1px solid var(--line, #eee); border-radius: 10px; margin-bottom: 6px; background: #fff; }
.todo-item.done { opacity: .6; }
.todo-item.done .todo-tt { text-decoration: line-through; }
.todo-main { min-width: 0; flex: 1; }
.todo-tt { font-size: 13px; font-weight: 600; color: #222; display: flex; align-items: center; gap: 6px; }
.todo-meta { font-size: 11px; color: var(--muted); margin-top: 2px; line-height: 1.4; }
.todo-tag { font-size: 10px; font-weight: 700; color: #6D28D9; background: #EFE9FE; padding: 1px 6px; border-radius: 6px; }
.todo-del { border: 1px solid #f3b6b0; background: #fff5f4; color: #c0392b; font-size: 11px; padding: 2px 9px; border-radius: 6px; cursor: pointer; flex: 0 0 auto; }
.todo-del:hover { color: #fff; background: #c0392b; }
/* v97.37：工作台点进来的那条置顶高亮 + 显式操作行（完成/未完成/改期/删除） */
.todo-item.todo-pinned { background: #FFF9E6; box-shadow: 0 0 0 2px #F0B429 inset; border-radius: 10px; }
.todo-pin-tag { font-size: 10px; font-weight: 700; color: #B45309; background: #FDE68A; padding: 1px 6px; border-radius: 6px; }
.todo-ops { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 7px; }
.todo-op { font-size: 11px; line-height: 1.6; padding: 2px 9px; border: 1px solid var(--line); background: #fff; color: var(--muted-d); border-radius: 6px; cursor: pointer; }
.todo-op.ok { border-color: #86c79a; color: #18794e; background: #f0fbf4; }
.todo-op.danger { border-color: #f3b6b0; color: #c0392b; background: #fff5f4; }
.todo-op:active { transform: scale(.96); }

/* ============ v55：开关切换（闹钟提醒 / 倒计时提醒 / 全天事件） ============ */
.switch-row { display: flex; align-items: center; justify-content: space-between; padding: 6px 2px; }
.switch { position: relative; display: inline-block; width: 46px; height: 26px; flex: 0 0 auto; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider { position: absolute; cursor: pointer; inset: 0; background: #d7d7d7; border-radius: 26px; transition: .2s; }
.switch .slider::before { content: ''; position: absolute; height: 20px; width: 20px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch input:checked + .slider { background: var(--green-grad, #21b573); }
.switch input:checked + .slider::before { transform: translateX(20px); }

/* ============ v55：提醒多选弹层 ============ */
.remind-pop .remind-opts { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 0 10px; }
.remind-chip { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line, #e3e3e3);
  border-radius: 18px; padding: 6px 12px; font-size: 13px; cursor: pointer; user-select: none; background: #fff; }
.remind-chip.on { border-color: var(--green-grad, #21b573); background: #eafaf2; color: #138a57; font-weight: 600; }
.remind-chip input { display: none; }
.remind-custom { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 8px 0; border-top: 1px solid var(--line, #eee); margin-top: 4px; }
.remind-summary { display: flex; align-items: center; justify-content: space-between; padding: 6px 2px; }


/* ============ v56：带看/待办计划 + 历史待办记录 + 提醒弹窗（需求2/6/7） ============ */
/* 需求7.2：提醒弹窗预设 9 项一行 3 项，chip 撑满居中 */
.remind-pop .remind-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 4px 0 10px; }
.remind-pop .remind-chip { display: flex; align-items: center; justify-content: center; width: 100%; border-radius: 8px; padding: 6px 4px; }
/* 需求7.2：自定义天/时/分——标签在上、输入框在下，三列上下对齐 */
.remind-custom-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 6px; }
.rc-cell { display: flex; flex-direction: column; gap: 4px; }
.rc-cell > span { font-size: 12px; color: var(--muted-d); }
.rc-cell .input { width: 100%; text-align: center; }
/* 需求2.6：带看计划详情正文行缩字号 */
.fp-plan-dt .fp-plan-client { font-size: 13px; color: var(--text); font-weight: 600; margin-bottom: 2px; }
/* 需求5.1：带看计划详情第二行红色日期时间字号 = 当前的 2/3（24px→16px，加粗字 30px→20px） */
.fp-plan-dt .fp-price { font-size: 16px; }
.fp-plan-dt .fp-price b { font-size: 20px; }
.fp-plan-dt .kv { font-size: 12px; padding: 6px 0; }
.fp-plan-dt .ft-line .ft-in { font-size: 11px; min-height: 26px; padding: 5px; }
.fp-plan-dt .ft-line.ro { font-size: 11.5px; padding: 6px; }
/* 需求2.2/6：📄 历史待办记录入口（图标按钮） */
.hist-btn { padding: 6px 10px; line-height: 1; font-size: 14px; }

/* ============ v58：带看记录「本次带看房源」计划下拉联动（需求14） ============ */
.plandrop-wrap { margin: 8px 0 4px; padding: 8px 10px; background: #f5f8ff; border: 1px solid #d9e4ff; border-radius: 10px; }
.plan-remain-tip { font-size: 12px; margin-bottom: 6px; line-height: 1.4; }
.plan-drop { width: 100%; }

/* ============ v59 需求7：房源卡🔥与楼栋门牌号紧贴（消除 space-between 留白） ============ */
/* 「🔥+小区名」合并为 .pt-name，内部间距 3px 紧贴；楼栋门牌号紧跟其后 */
.pt-name { display: inline-flex; align-items: baseline; gap: 3px; min-width: 0; }
.pt-name .hot-fire { margin-right: 0; font-size: 13px; line-height: 1; }
.prop-title .prop-bno { margin-left: 3px; }

/* ============ v59 需求4：新建待办页「倒计时提醒」右侧自定义时间提醒（天/时/分） ============ */
.td-remind-right { display: flex; align-items: center; gap: 8px; }
.td-cd-wrap { display: flex; align-items: center; gap: 4px; }
.td-cd-cell { display: inline-flex; align-items: center; gap: 2px; font-size: 11px; color: var(--muted); white-space: nowrap; }
.td-cd-cell input { width: 42px; padding: 3px 4px; text-align: center; }

/* ============ v59 需求5：周期回访编辑页（4处）统一布局 ============ */
/* 「提醒时间」标签与输入框同一整行（原 .pf-next 为 block、input 有 margin-top 导致上下两行） */
.cy-remind-row { display: flex; gap: 8px; }
.cy-remind { display: flex !important; align-items: center; gap: 8px; flex: 1 1 0; min-width: 0; margin-bottom: 0; }
.cy-remind .input { margin-top: 0 !important; flex: 1 1 0; min-width: 0; }

/* ============ v60 需求4：新建待办页「倒计时提醒」「闹钟提醒」各自单独占一行 ============ */
.form-block { padding: 9px 2px; border-bottom: 1px dashed var(--line); }
.form-block:last-child { border-bottom: 0; }
.form-block .block-label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 7px; }
.form-block .td-remind-right { flex-wrap: wrap; }
/* v60 需求2：已带看房源「全部等级」下拉禁用编辑，但保留正常外观（不灰显） */
#vp_level:disabled { opacity: 1; color: var(--text); background: #fff; -webkit-appearance: none; }

/* ============ v60 需求2.1：已带看房源「全部等级」下拉仅展示禁止编辑（combo 容器禁用交互） ============ */
.combo.combo-disabled { pointer-events: none; opacity: 1; background: #fff; }
.combo.combo-disabled .combo-input { color: var(--text); background: #fff; }

/* ============================================================
 * v68 嘉宝学习（.jb-*）——一年级学习闭环：作业/练习/错题/巩固/打印/学情
 * 设计原则：大字号、宽行距、大触控区（孩子可用）；配色只用既有 CSS 变量
 * ============================================================ */
.jb-page { padding-bottom: 24px; }

/* ---------- 首页：概览 + 入口宫格 ---------- */
.jb-hero { padding: 14px 16px 12px; margin-bottom: 12px; }
.jb-hero-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.jb-hero-name { font-size: 19px; font-weight: 800; color: var(--text); display: flex; align-items: center; gap: 8px; }
.jb-hero-grade { font-weight: 600; }
.jb-hero-stats { display: flex; margin-top: 12px; }
.jb-hero-stats > div { flex: 1; text-align: center; }
.jb-hero-stats > div + div { border-left: 1px solid var(--line-soft); }
.jb-hero-stats b { display: block; font-size: 20px; font-weight: 800; color: var(--blue); font-family: var(--font-num); }
.jb-hero-stats span { display: block; font-size: 11.5px; color: var(--muted-d); margin-top: 2px; }
/* 第二行统计卡（课后任务数据，自动读取；整体可点击跳课后任务管理主页） */
.jb-hero-stats.jb-hero-stats2 { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line-soft); cursor: pointer; border-radius: 0 0 12px 12px; }
.jb-hero-stats.jb-hero-stats2:active { background: var(--bg-2); }

/* ---------- 首页：四大板块入口（课后任务管理 / 题目练习 / 体育健康音乐美术 / 舞蹈科学实践劳动） ---------- */
.jb-board { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.jb-board-card { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 15px 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); cursor: pointer; text-align: left; min-height: 98px; }
.jb-board-card:active { transform: scale(.98); }
.jb-board-ico { font-size: 26px; line-height: 1.1; }
.jb-board-name { font-size: 14.5px; font-weight: 800; color: var(--text); }
.jb-board-desc { font-size: 11px; color: var(--muted-d); line-height: 1.4; }
/* v9713：日周月结（主科单科练习页入口） */
.rzym-tabs { display: flex; gap: 8px; margin: 4px 2px 12px; }
.rzym-tabs .chip { flex: 1; text-align: center; padding: 7px 0; font-size: 13px; }
.rzym-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.rzym-cell { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 12px 6px; background: var(--bg); border-radius: 10px; }
.rzym-cell b { font-size: 22px; font-weight: 800; color: var(--blue); font-family: var(--font-num); }
.rzym-cell span { font-size: 11px; color: var(--muted-d); }
/* v9714：主科周期总结模块（老师学习小结 + 学情数据看板 双融合） */
.jbh-section-title { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; color: var(--text); margin: 2px 0 10px; }
.jbh-section-title span { margin-left: auto; font-size: 11.5px; font-weight: 500; color: var(--muted-d); }
.jbh-section-title.sm { font-size: 13px; margin: 14px 0 8px; }
/* 上区：老师学习小结（人工录入，长期留存） */
.rzym-sum-card { border-top: 3px solid var(--blue); }
.rzym-sum-empty { padding: 22px 12px; text-align: center; color: var(--muted-d); font-size: 13px; background: var(--bg); border: 1px dashed var(--line); border-radius: 10px; cursor: pointer; }
.rzym-sum-empty:active { background: var(--blue-l); }
.rzym-sum-text { font-size: 13.5px; line-height: 1.7; color: var(--text); white-space: pre-wrap; word-break: break-word; }
.rzym-sum-text.collapsed { max-height: 1.6em; overflow: hidden; }
.rzym-sum-imgs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.rzym-sum-img { width: 84px; height: 84px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.rzym-sum-meta { margin-top: 6px; font-size: 11.5px; color: var(--muted-d); }
.rzym-sum-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.rzym-tip { margin-top: 10px; padding: 9px 12px; font-size: 12.5px; line-height: 1.6; color: #8a5a00; background: #fff7e6; border: 1px solid #ffe0a3; border-radius: 9px; }


.jb-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.jb-entry { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 13px 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); cursor: pointer; text-align: left; min-height: 86px; }
.jb-entry:active { transform: scale(.98); }
.jb-entry-ico { font-size: 24px; line-height: 1.1; }
.jb-entry-name { font-size: 15px; font-weight: 700; color: var(--text); }
.jb-entry-desc { font-size: 11px; color: var(--muted-d); line-height: 1.4; }

.jb-empty-home { padding: 34px 20px; line-height: 1.8; }

/* ---------- 通用分节 / 行 ---------- */
.jb-sec { margin-bottom: 14px; }
.jb-sec-title { font-size: 13.5px; font-weight: 700; color: var(--text); margin: 4px 2px 8px; display: flex; align-items: center; justify-content: space-between; }
.jb-sec-more { font-size: 12px; color: var(--blue); font-weight: 500; cursor: pointer; }
.jb-mini { font-size: 11.5px; padding: 4px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg-2); color: var(--muted-d); cursor: pointer; white-space: nowrap; }
.jb-mini:active { transform: scale(.96); }
.jb-mini.danger { color: var(--red); border-color: #f0c4bc; background: #fff; }

.jb-hw-item { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 8px; cursor: pointer; box-shadow: var(--shadow-sm); }
.jb-hw-item:active { transform: scale(.99); }
.jb-hw-ico { font-size: 22px; }
.jb-hw-body { flex: 1; min-width: 0; }
.jb-hw-t { font-size: 14px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jb-hw-s { font-size: 11.5px; color: var(--muted-d); margin-top: 2px; }

/* ---------- 作业录入：逐题编辑器 ---------- */
.jb-qe-tools { display: flex; gap: 8px; margin: 12px 0 10px; }
.jb-qe-row { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; margin-bottom: 10px; background: var(--bg-2); }
.jb-qe-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.jb-qe-head b { font-size: 13px; color: var(--text); }
.jb-qe-row .input { margin-bottom: 8px; background: #fff; }
.jb-qe-line { display: flex; gap: 8px; margin-bottom: 8px; }
.jb-qe-line .input { flex: 1; margin-bottom: 0; min-width: 0; }

/* ---------- 作业详情 ---------- */
.jb-hd-info { padding: 12px 14px; margin-bottom: 12px; }
.jb-hd-line { display: flex; align-items: center; gap: 10px; }
.jb-hd-date { font-size: 12.5px; color: var(--muted-d); }
.jb-hd-line .jb-mini { margin-left: auto; }
.jb-hd-note { font-size: 12.5px; color: var(--muted-d); margin-top: 8px; }
.jb-hd-raw { margin-top: 8px; font-size: 12.5px; color: var(--muted-d); }
.jb-hd-raw summary { cursor: pointer; color: var(--blue); font-size: 12px; }
.jb-hd-raw p { margin: 6px 0 0; white-space: pre-wrap; line-height: 1.6; }
.jb-hd-q { display: flex; gap: 10px; padding: 11px 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 8px; }
.jb-hd-no { flex: 0 0 22px; height: 22px; border-radius: 50%; background: var(--blue-l); color: var(--blue); font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; margin-top: 2px; }
.jb-hd-qb { flex: 1; min-width: 0; }
.jb-hd-qt { font-size: 15px; line-height: 1.7; color: var(--text); }
.jb-hd-qa { font-size: 12px; color: var(--muted-d); margin-top: 4px; }
.jb-hd-qa b { color: var(--green); }
.jb-hd-his-row { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius-sm); margin-bottom: 6px; font-size: 12.5px; color: var(--muted-d); }

/* ---------- 练习引擎：一题一屏 ---------- */
.jb-practice { padding-bottom: 20px; }
.jb-p-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
.jb-p-title { font-size: 14px; font-weight: 700; color: var(--text); }
.jb-p-count { font-size: 13px; color: var(--blue); font-weight: 700; font-family: var(--font-num); }
.jb-p-bar { height: 6px; background: var(--bg-2); border-radius: 3px; overflow: hidden; margin-bottom: 14px; }
.jb-p-bar i { display: block; height: 100%; background: var(--green-grad); border-radius: 3px; transition: width .25s; }

.jb-q-card { background: var(--card); border: 2px solid var(--line); border-radius: var(--radius-lg); padding: 16px 16px 18px; box-shadow: var(--shadow); }
.jb-q-card.ok { border-color: #9fd8b8; }
.jb-q-card.bad { border-color: #f3b7b1; }
.jb-q-tools { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.jb-q-tools .jb-mini:last-child { margin-left: auto; }
.jb-q-kn { font-size: 11px; color: var(--blue); background: var(--blue-l); border-radius: 8px; padding: 2px 8px; }
.jb-q-diff { font-size: 11px; color: var(--amber); background: var(--amber-l); border-radius: 8px; padding: 2px 8px; }
.jb-q-prompt { font-size: 23px; font-weight: 700; line-height: 1.75; color: var(--text); margin-bottom: 16px; word-break: break-all; }
.jb-q-prompt ruby rt { font-size: 12px; color: var(--blue); font-weight: 500; }
.jb-q-ans { min-height: 56px; margin-bottom: 12px; }
.jb-q-fb:empty { display: none; }
.jb-q-btns { display: flex; gap: 10px; margin-top: 14px; }
.jb-q-btns .btn { flex: 1; padding: 12px 8px; font-size: 15.5px; font-weight: 700; }

.jb-opts { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.jb-opt { min-height: 62px; font-size: 24px; font-weight: 700; color: var(--text); background: var(--bg-2); border: 2px solid var(--line); border-radius: var(--radius); cursor: pointer; font-family: var(--font-num); }
.jb-opt:active { transform: scale(.97); }
.jb-opt.on { border-color: var(--blue); background: var(--blue-l); color: var(--blue); }

.jb-calc-display { min-height: 54px; line-height: 54px; font-size: 30px; font-weight: 800; color: var(--text); text-align: center; background: var(--bg-2); border-radius: var(--radius); margin-bottom: 12px; font-family: var(--font-num); letter-spacing: 2px; }
.jb-keypad { display: grid; grid-template-columns: repeat(11, 1fr); gap: 6px; }
.jb-key { height: 52px; font-size: 20px; font-weight: 700; color: var(--text); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; font-family: var(--font-num); }
.jb-key:active { transform: scale(.94); background: var(--bg-2); }
.jb-fill { font-size: 20px !important; padding: 12px 14px !important; text-align: center; font-weight: 600; }

.jb-fb { font-size: 14.5px; line-height: 1.6; border-radius: var(--radius-sm); padding: 10px 12px; }
.jb-fb.ok { color: #1c7a4a; background: #EAF8EF; }
.jb-fb.bad { color: #b03a30; background: var(--red-l); }
.jb-fb b { font-size: 17px; }
.jb-fb-hint { margin-top: 8px; font-size: 13px; color: var(--muted-d); line-height: 1.6; }
.jb-fb-note { margin-top: 6px; font-size: 11.5px; color: var(--muted); }

/* ---------- 练习结果页 ---------- */
.jb-summary { padding-top: 6px; }
.jb-sum-hero { text-align: center; padding: 18px 0 10px; }
.jb-sum-score { font-size: 44px; font-weight: 800; color: var(--blue); font-family: var(--font-num); }
.jb-sum-score small { font-size: 20px; color: var(--muted); }
.jb-sum-rate { font-size: 14px; font-weight: 700; margin-top: 4px; }
.jb-sum-rate.ok { color: #1c7a4a; }
.jb-sum-rate.mid { color: var(--amber); }
.jb-sum-rate.low { color: var(--red); }
.jb-sum-part { font-size: 12px; color: var(--muted-d); margin-top: 6px; }
.jb-sum-note { text-align: center; font-size: 12.5px; color: var(--muted-d); margin-bottom: 14px; }
.jb-sum-note b { color: var(--red); }

/* ---------- 错题本 ---------- */
.jb-toolbar { margin-bottom: 10px; }
.jb-tool-btns { display: flex; gap: 8px; margin-top: 8px; }
.jb-tool-btns .btn { flex: 1; }
.jb-w-summary { font-size: 12px; color: var(--muted-d); margin: 0 2px 10px; }
.jb-w-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 8px; }
.jb-w-q { font-size: 15px; font-weight: 600; line-height: 1.6; color: var(--text); }
.jb-w-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 8px; font-size: 11.5px; color: var(--muted-d); }
.jb-w-kn { color: var(--blue); }
.jb-w-ans { font-size: 13px; color: var(--muted-d); margin-top: 6px; }
.jb-w-ans b { color: #1c7a4a; }
.jb-w-reason { font-size: 12px; color: var(--amber); margin-top: 4px; }
.jb-w-btns { display: flex; gap: 6px; margin-top: 10px; }
.jb-w-btns .jb-mini { flex: 1; text-align: center; padding: 6px 4px; }

/* ---------- 巩固生成 ---------- */
.jb-mode { display: flex; gap: 8px; margin-bottom: 12px; }
.jb-mode-tab { flex: 1; text-align: center; padding: 10px 6px; font-size: 14px; font-weight: 700; color: var(--muted-d); background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; }
.jb-mode-tab.on { color: #fff; background: var(--green-grad); border-color: transparent; box-shadow: 0 2px 8px rgba(46,91,255,.28); }
.jb-pg-bar { display: flex; align-items: center; justify-content: space-between; margin: 10px 2px; font-size: 12.5px; color: var(--muted-d); }
.jb-pg-count b { color: var(--blue); font-size: 14px; }
.jb-check-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 6px; cursor: pointer; }
.jb-check-row.on { border-color: var(--blue); background: var(--blue-l); }
.jb-check { font-size: 17px; color: var(--blue); }
.jb-check-t { flex: 1; min-width: 0; font-size: 13.5px; color: var(--text); line-height: 1.5; }
.jb-pg-tip { font-size: 12.5px; color: var(--muted-d); line-height: 1.7; background: var(--amber-l); border-radius: var(--radius-sm); padding: 10px 12px; margin: 10px 0; }
.jb-pg-tip b { color: var(--amber); }

/* ---------- 巩固卷详情 ---------- */
.jb-pd-info { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 12.5px; color: var(--muted-d); }
.jb-pd-info .jb-mini { margin-left: auto; }
.jb-pd-item { display: flex; gap: 10px; padding: 11px 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 8px; }
.jb-pd-no { flex: 0 0 22px; height: 22px; border-radius: 50%; background: var(--blue-l); color: var(--blue); font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; margin-top: 2px; }
.jb-pd-q { flex: 1; min-width: 0; font-size: 15px; line-height: 1.7; color: var(--text); }
.jb-pd-ans { font-size: 12.5px; color: var(--muted-d); margin-top: 4px; }
.jb-pd-ans b { color: #1c7a4a; }

/* ---------- 打印导出 ---------- */
.jb-pr-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 6px; }
.jb-pr-t { flex: 1; min-width: 0; font-size: 13px; color: var(--text); }
.jb-pr-note { font-size: 12px; color: var(--muted-d); line-height: 1.6; margin: 8px 2px 0; }
.jb-pr-note b { color: var(--blue); }

/* ---------- 练习来源选择 ---------- */
.jb-pick-row { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 8px; cursor: pointer; }
.jb-pick-row:active { transform: scale(.99); }
.jb-pick-ico { font-size: 20px; }
.jb-pick-t { flex: 1; min-width: 0; font-size: 13.5px; color: var(--text); }

/* ---------- 学情报告 ---------- */
.jb-rp-hero { padding: 14px 16px 12px; margin-bottom: 12px; }
.jb-rp-hero-top { display: flex; align-items: center; justify-content: space-between; }
.jb-rp-name { font-size: 17px; font-weight: 800; color: var(--text); display: flex; align-items: center; gap: 8px; }
.jb-rp-date { font-size: 12px; color: var(--muted); }
.jb-rp-stats { display: flex; margin-top: 12px; }
.jb-rp-stats > div { flex: 1; text-align: center; }
.jb-rp-stats > div + div { border-left: 1px solid var(--line-soft); }
.jb-rp-stats b { display: block; font-size: 19px; font-weight: 800; color: var(--blue); font-family: var(--font-num); }
.jb-rp-stats span { display: block; font-size: 11px; color: var(--muted-d); margin-top: 2px; }
.jb-rp-summary { font-size: 13.5px; line-height: 1.9; color: var(--text); padding: 12px 14px; }
.jb-trend-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.jb-trend-date { flex: 0 0 82px; font-size: 11.5px; color: var(--muted-d); }
.jb-trend-bar { flex: 1; height: 10px; background: #eef1f4; border-radius: 5px; overflow: hidden; }
.jb-trend-bar i { display: block; height: 100%; border-radius: 5px; }
.jb-trend-bar i.ok { background: #27ae60; }
.jb-trend-bar i.mid { background: #3498db; }
.jb-trend-bar i.low { background: #e74c3c; }
.jb-trend-num { flex: 0 0 44px; text-align: right; font-size: 12px; color: var(--muted-d); font-family: var(--font-num); }

/* ============================================================
 * 嘉宝学习 · 课后任务管理（jiabao-task.js，.jbt-*）
 * v70 补齐既有组件缺失样式；v71 新增日历/搜索/操作行/全局提醒等
 * v72 删除 hero（标题+统计卡），改为通栏蓝底导航栏 .sub-nav，日历上移
 * ============================================================ */
.jbt-page { padding-bottom: 24px; }

/* ---------- 二级页通栏导航栏（题目练习 / 课后任务管理共用） ----------
 * 仿 .fp-head 蓝底白字；sticky 吸顶；margin 负值抵消 #view 的 12px padding 做通栏出血 */
.sub-nav {
  position: sticky; top: 0; z-index: 30;
  margin: -12px -12px 0; padding: 0 4px 0 2px;
  height: calc(48px + env(safe-area-inset-top, 0px)); padding-top: env(safe-area-inset-top, 0px);
  box-sizing: border-box;
  background: var(--green-grad); color: #fff;
  display: flex; align-items: center; gap: 4px;
  box-shadow: 0 2px 12px rgba(30, 63, 204, .2);
}
.sub-nav-back {
  width: 42px; height: 42px; border: 0; background: none; color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; font-size: 30px; line-height: 1; flex-shrink: 0;
}
.sub-nav-back:active { opacity: .55; transform: scale(.94); }
.sub-nav-title {
  flex: 1; min-width: 0; font-size: 16px; font-weight: 700;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ---------- 任务行 / 作业行（混排） ---------- */
.jbt-task-row { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px dashed var(--line-soft); cursor: pointer; }
.jbt-task-row:last-child { border-bottom: 0; }
.jbt-task-row:active { background: var(--bg-2); }
.jbt-task-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; background: var(--muted); }
.jbt-task-dot.cat-学 { background: var(--blue); }
.jbt-task-dot.cat-阅 { background: #8B5CF6; }
.jbt-task-dot.cat-运 { background: #059669; }
.jbt-task-dot.cat-生 { background: var(--amber); }
.jbt-task-dot.cat-兴 { background: #EC4899; }
.jbt-task-dot.cat-其 { background: #64748B; }
.jbt-task-body { flex: 1; min-width: 0; }
.jbt-task-t { font-size: 14px; font-weight: 600; color: var(--text); }
.jbt-task-s { font-size: 11.5px; color: var(--muted-d); margin-top: 2px; }
.jbt-task-date { color: var(--muted); margin-right: 6px; font-family: var(--font-num); font-weight: 500; }
.jbt-hw-ico { font-size: 19px; flex-shrink: 0; width: 26px; text-align: center; }

/* ---------- 操作行（搜索 + 三按钮） ---------- */
.jbt-toolbar { align-items: center; }
.jbt-toolbar .search { flex: 1; min-width: 0; }
.jbt-tolist { flex-shrink: 0; padding: 7px 10px; font-size: 15px; line-height: 1; }

/* ---------- 搜索结果浮层 ---------- */
.jbt-search-panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); margin: -4px 0 14px; max-height: 330px; overflow-y: auto; }
.jbt-sp-item { display: flex; align-items: center; gap: 10px; padding: 11px 13px; border-bottom: 1px dashed var(--line-soft); cursor: pointer; }
.jbt-sp-item:last-child { border-bottom: 0; }
.jbt-sp-item:active { background: var(--bg-2); }
.jbt-sp-kind { font-size: 10.5px; font-weight: 700; border-radius: 6px; padding: 2px 7px; flex-shrink: 0; }
.jbt-sp-kind.k-hw { background: var(--green-l); color: var(--green-d); }
.jbt-sp-kind.k-task { background: var(--blue-l); color: var(--blue); }
.jbt-sp-kind.k-wrong { background: var(--red-l); color: var(--red); }
.jbt-sp-body { flex: 1; min-width: 0; }
.jbt-sp-t { font-size: 13.5px; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jbt-sp-s { font-size: 11px; color: var(--muted-d); margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jbt-sp-empty { padding: 16px; text-align: center; font-size: 12.5px; color: var(--muted-d); }

/* ---------- 日期筛选条 ---------- */
.jbt-daybar { margin: -2px 0 12px; }

/* ---------- 表单：录入方式 tabs / 任务项 chips / 模板 ---------- */
.jbt-tabs { margin-bottom: 10px; }
.jbt-tpl-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.jbt-item b { cursor: pointer; color: var(--red); margin-left: 4px; }

/* ---------- 详情：任务项 / 状态流转 ---------- */
.jbt-item-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line-soft); cursor: pointer; }
.jbt-item-row:last-child { border-bottom: 0; }
.jbt-check { width: 20px; height: 20px; border: 1.5px solid var(--line); border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 12px; color: #fff; flex-shrink: 0; }
.jbt-item-row.done .jbt-check { background: var(--green); border-color: var(--green); }
.jbt-item-text { flex: 1; min-width: 0; font-size: 13.5px; color: var(--text); }
.jbt-item-row.done .jbt-item-text { text-decoration: line-through; color: var(--muted); }
.jbt-flow { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- 作息规划行 ---------- */
.jbt-routine-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line-soft); }
.jbt-routine-row:last-child { border-bottom: 0; }
.jbt-rt-time { font-family: var(--font-num); font-weight: 700; font-size: 14px; width: 58px; flex-shrink: 0; color: var(--text); }
.jbt-rt-cont { flex: 1; min-width: 0; font-size: 13.5px; color: var(--text); }
.jbt-rt-ref { display: inline-block; font-size: 10px; font-weight: 700; border-radius: 5px; padding: 1px 6px; margin-right: 6px; vertical-align: 1px; }
.jbt-rt-ref.r-task { background: var(--blue-l); color: var(--blue); }
.jbt-rt-ref.r-hw { background: var(--green-l); color: var(--green-d); }
.jbt-rt-move { display: flex; gap: 4px; flex-shrink: 0; }

/* ---------- 提醒行 ---------- */
.jbt-remind-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 0; border-bottom: 1px dashed var(--line-soft); }
.jbt-remind-row:last-child { border-bottom: 0; }
.jbt-remind-row .mini-btn.am-del { color: var(--red); }

/* ---------- 全局提醒配置（v71：作业练习与课后任务共用一套） ---------- */
.jbt-gr-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line-soft); }
.jbt-gr-row:last-child { border-bottom: 0; }
.jbt-gr-label { font-size: 13px; color: var(--text); width: 76px; flex-shrink: 0; font-weight: 600; }
.jbt-gr-row .input { flex: 1; min-width: 0; }
.jbt-gr-hint { font-size: 11.5px; color: var(--muted-d); line-height: 1.7; margin-top: 8px; }
.jbt-gr-scope { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }

/* ---------- 统计报表条形 ---------- */
.jbt-bar-row { display: flex; align-items: center; gap: 10px; margin: 9px 0; }
.jbt-bar-label { font-size: 12px; width: 46px; flex-shrink: 0; color: var(--muted-d); }
.jbt-bar-track { flex: 1; height: 8px; background: var(--bg); border-radius: 5px; overflow: hidden; }
.jbt-bar-fill { display: block; height: 100%; border-radius: 5px; background: var(--blue); }
.jbt-bar-fill.bg-green { background: var(--green); }
.jbt-bar-fill.bg-amber { background: var(--amber); }
.jbt-bar-fill.bg-blue { background: var(--blue); }
.jbt-bar-fill.bg-red { background: var(--red); }
.jbt-bar-row b { font-size: 12px; width: 28px; text-align: right; font-family: var(--font-num); flex-shrink: 0; color: var(--text); }

/* ---------- 统计报表：视图切换 tabs（v71） ---------- */
.jbt-stat-tabs { margin-bottom: 12px; }
.jbt-stat-tabs .tab { flex: 1; text-align: center; font-size: 12.5px; padding: 9px 4px; }
.jbt-kv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.jbt-kv-cell { background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius-sm); padding: 12px 8px; text-align: center; box-shadow: var(--shadow-sm); }
.jbt-kv-cell b { display: block; font-size: 21px; font-weight: 800; color: var(--text); font-family: var(--font-num); }
.jbt-kv-cell span { display: block; font-size: 11px; color: var(--muted-d); margin-top: 2px; }
.jbt-kv-cell b.hl-red { color: var(--red); }
.jbt-kv-cell b.hl-green { color: #1c7a4a; }

/* ============================================================
 * v74：嘉宝学习 · 二级页置顶（需求三）
 *   题目练习页 / 课后任务管理页：隐藏全局 .topbar（「大白工作台」
 *   + 同步按钮），让蓝色 .sub-nav 标题栏真正贴在页面最顶端。
 *   仅靠 body.jb-subpage 类控制显隐（不改 DOM），离开二级页即自动恢复。
 * ============================================================ */
body.jb-subpage .topbar { display: none; }
/* 二级页：#view 顶部内边距归零 + sub-nav 取消负 margin——
   否则 sticky 会把标题栏钉在「内容区顶边」，上方仍留 12px 白条，看着不像置顶 */
body.jb-subpage #view { padding-top: 0; }
body.jb-subpage .sub-nav { top: 0; margin-top: 0; }

/* ============================================================
 * v75：账户管理（我的 → 账户管理，仅管理员）
 *   角色卡片 + 账户列表；列表行在窄屏（390px）下按钮换行不挤压标题
 * ============================================================ */
.ac-wrap { padding-bottom: 8px; }
.ac-roles { display: flex; flex-direction: column; gap: 8px; }
.ac-role { background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius-sm); padding: 10px 12px; box-shadow: var(--shadow-sm); }
.ac-role-top { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.ac-tag { font-size: 11px; font-weight: 600; color: var(--green-d); background: rgba(31,111,74,.10); border-radius: 999px; padding: 2px 8px; }
.ac-tag.me { margin-left: 6px; color: #b26a00; background: rgba(226,150,30,.14); }
.ac-role-desc { font-size: 12px; margin-top: 4px; line-height: 1.5; }
.ac-hint { font-size: 11.5px; margin: 6px 0 0; line-height: 1.5; }
.ac-list { display: flex; flex-direction: column; gap: 8px; }
.ac-row { background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius-sm); padding: 10px 12px; box-shadow: var(--shadow-sm); }
.ac-row-main { min-width: 0; }
.ac-row-t { font-size: 14px; font-weight: 600; word-break: break-all; }
.ac-row-d { font-size: 11.5px; margin-top: 3px; line-height: 1.5; word-break: break-all; }
.ac-row-btns { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.ac-row-btns .btn { flex: 1 1 auto; }
.ac-off { color: var(--red); font-weight: 600; }

/* ============================================================
 * v76 需求二：未挂牌 7 态（暂缓/中售/贝售/他售/中租/贝租/他租）
 *   在房源卡片「小区名 → 楼栋门牌号」之间以红色标识该房源类型状态
 * ============================================================ */
.pt-type { color: var(--red); font-weight: 700; font-size: 13px; margin-left: 5px; white-space: nowrap; }

/* v76 需求一：房源详情页【调价历史】快捷录入行（日期 + 改价 + 折线图标） */
.price-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.price-row .pr-date { flex: 0 0 auto; width: 108px; }
.price-row .pr-amt { flex: 1 1 90px; min-width: 0; }
.price-row .pr-chart { flex: 0 0 auto; padding: 0 8px; }

/* ============ v86：嘉宝首页「今日行动」清单 ============ */
.jb-sec-sub { font-size: 12px; font-weight: normal; color: var(--muted, #8a8f98); margin-left: 6px; }
.jb-act-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; margin-bottom: 8px;
  background: #fff; border: 1px solid #eef0f3; border-radius: 12px;
  cursor: pointer; transition: background .15s;
}
.jb-act-row:active { background: #f6f8f7; }
.jb-act-ico { font-size: 18px; flex: 0 0 auto; }
.jb-act-main { flex: 1 1 auto; min-width: 0; }
.jb-act-t { font-size: 14px; color: #1d2129; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jb-act-s { font-size: 11px; color: #8a8f98; margin-top: 2px; }
.jb-act-done {
  flex: 0 0 auto; border: 1px solid #1f6f4a; color: #1f6f4a; background: #fff;
  border-radius: 999px; font-size: 12px; padding: 4px 12px; cursor: pointer;
}
.jb-act-done:active { background: #1f6f4a; color: #fff; }
.jb-hero-stats [data-go] { cursor: pointer; }

/* ============ v86：素养学科打卡 ============ */
.jb-ck-title { font-size: 13px; color: #4e5969; margin-bottom: 8px; }
.jb-ck-goals { display: flex; flex-wrap: wrap; gap: 10px; }
.jb-ck-goal { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.jb-ck-goal b { color: #1d2129; }
.jb-ck-item { background: #fff; border: 1px solid #eef0f3; border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; }
.jb-ck-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.jb-ck-top b { font-size: 14px; }
.jb-ck-date { margin-left: auto; font-size: 11px; color: #8a8f98; }
.jb-ck-meta { font-size: 13px; color: #1f6f4a; margin-top: 4px; }
.jb-ck-note { font-size: 12px; color: #8a8f98; margin-top: 2px; }

/* ============ v87：分类页右上角「全部功能」入口 ============ */
.sub-nav-allfn {
  flex: 0 0 auto; height: 30px; padding: 0 12px; margin-right: 8px;
  border: 1px solid rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .14);
  color: #fff; border-radius: 15px; font-size: 12px; line-height: 1;
  cursor: pointer; white-space: nowrap;
}
.sub-nav-allfn:active { background: rgba(255, 255, 255, .3); }

/* v92：URL 导入 .ics 进度条 */
.imp-bar{height:10px;background:#eef2f0;border-radius:6px;overflow:hidden;margin:10px 0 4px}
.imp-bar .imp-fill{display:block;height:100%;width:0;background:linear-gradient(90deg,#2f9e6b,#1f6f4a);border-radius:6px;transition:width .25s ease}
.imp-msg{font-size:12.5px;color:#526860;min-height:18px}
.imp-msg.err{color:#c0392b;font-weight:600}

/* v95：出租核验码统计 —— 区域筛选标签（9 项单行自适应均分，不横滑） */
/* v97.2：区域标签恢复 9 项单行；「贝巧过」移至独立行（#rc_bqrow），可与行政区/搜索叠加 */
/* v97.11：新增「政务」标签后为 10 项 → 固定 5 列 × 2 行（每格更宽好点，不挤成三行） */
/* v9712：三行筛选标签（2 行行政区 + 1 行贝巧过/来源/过期）整体高度降至约 4/5——收窄 chip 内边距/字号与间距 */
.rc-regions { display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; margin: 6px 0 0; }
.rc-regions .chip { padding: 3px 0; font-size: 10.5px; text-align: center; border-radius: 8px; white-space: nowrap; }
/* v9712：#rc_bqrow 单行展示（不左右滑动）—— 8 枚 chip 平均分配、可收缩、溢出省略，自动适应屏宽 */
.rc-bq-row { display: flex; align-items: center; gap: 4px; margin: 5px 0 8px; flex-wrap: nowrap; }
.rc-bq-row .chip { padding: 3px 2px; font-size: 10.5px; border-radius: 8px; white-space: nowrap; flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; text-align: center; }
/* v9712：「贝巧过」行内的「巧房」筛选项字体红色突出 */
.rc-bq-row .chip.rc-red { color: var(--red); }
.rc-bq-row .chip.rc-red.sel { color: #fff; }
/* v973：搜索框加长——按钮不收缩、搜索框占满剩余宽度 */
/* v9712：搜索框整体再增约 1/6（flex:1 占满其余空间，按钮略收窄），原同行布局不变 */
.toolbar .input.search { flex: 1 1 0; min-width: 0; }
.toolbar .btn { flex: 0 1 auto; padding-left: 8px; padding-right: 8px; }
/* v9712：仅租核验页工具栏收紧间距，配合上面按钮收窄，使搜索框较此前约增 1/6（仍同一行） */
.rc-toolbar { gap: 6px; }

/* v95：出租核验码统计 —— 卡片三行紧凑布局 */
.rc-card { background: #fff; border-radius: var(--radius); padding: 8px 10px; box-shadow: var(--shadow); border: 1px solid var(--line-soft); cursor: pointer; }
.rc-card:active { transform: scale(.99); }
.rc-row { display: flex; align-items: center; gap: 6px; line-height: 1.35; }
.rc-row + .rc-row { margin-top: 3px; }
.rc-addr { font-weight: 700; font-size: 13.5px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc-region { color: var(--muted-d); font-size: 11.5px; flex-shrink: 0; }
.rc-src { margin-left: auto; flex-shrink: 0; font-size: 11px; padding: 1px 7px; border-radius: 9px; background: var(--green-ll); color: var(--green-d); border: 1px solid var(--line-soft); }
/* v9713：「贝巧过」列表内巧房来源标红，便于与同小区同楼栋的贝壳逐项比对 */
.rc-src-red { background: var(--red-l); color: var(--red); border-color: var(--red); }
.rc-code { font-weight: 700; font-size: 13px; color: var(--green); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc-right { margin-left: auto; flex-shrink: 0; display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted-d); }
.rc-exp { color: var(--muted-d); }
.rc-exp.over { color: var(--red); font-weight: 600; }
.rc-l4 { color: var(--muted-d); }
.rc-meta { font-size: 11.5px; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; }
.rc-meta span { white-space: nowrap; }
/* v978：核验卡第三行——左信息 / 右录入时间；v97.9 录入时间字号/颜色与第三行内容统一，右对齐 */
.rc-row3 { justify-content: space-between; }
.rc-entry { margin-left: auto; flex-shrink: 0; font-size: 11.5px; color: var(--muted); white-space: nowrap; }
/* v95：核验码表单 —— 过期日期自动计算提示 */
.rc-hint { font-size: 11px; color: var(--muted); line-height: 1.3; }

/* v96：出租核验码 —— 截图批量识别预览 */
.rc-scan-tip { font-size: 12px; color: var(--muted-d); background: var(--green-ll); border-radius: 10px; padding: 8px 10px; margin-bottom: 10px; }
.rc-scan-item { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 9px 11px; box-shadow: var(--shadow); }
.rc-scan-item + .rc-scan-item { margin-top: 8px; }
.rc-scan-ck { flex-shrink: 0; display: flex; align-items: center; }
.rc-scan-ck input { width: 18px; height: 18px; accent-color: var(--green); }
.rc-scan-main { flex: 1; min-width: 0; }
.rc-scan-warn { font-size: 11.5px; color: var(--red); margin-top: 3px; }
/* v97.9：批量新增页——图片识别 / 粘贴识别输入区 */
.rc-scan-input { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.rc-scan-input #sc_pick, .rc-scan-input #sc_parse { align-self: flex-start; }
.rc-scan-or { font-size: 11.5px; color: var(--muted-d); }
.rc-scan-input textarea#sc_paste { min-height: 84px; resize: vertical; font-size: 13px; line-height: 1.5; }
.rc-scan-hint { font-size: 11.5px; color: var(--muted); min-height: 0; }

/* ============ v9715：嘉宝首页全局日历多类型彩色圆点 / 聚合待办 ============
 * 仅作用于嘉宝首页日历卡片，不改全局 calendar.js 与其他模块日历 */
.jbh-calendar-card .cal-cell.today .cal-num::after { display: none; }
.jbh-dots {
  position: absolute; bottom: 2px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 2px; z-index: 2; pointer-events: none;
}
.jbh-dots i {
  display: block; width: 5px; height: 5px; border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .9);
}
.jbh-dot-legend {
  display: flex; flex-wrap: wrap; gap: 6px 12px; padding: 2px 4px 8px;
  font-size: 11px; color: var(--muted);
}
.jbh-dot-legend span { display: inline-flex; align-items: center; gap: 4px; }
.jbh-dot-legend i { display: block; width: 7px; height: 7px; border-radius: 50%; }
/* 今日任务：课后任务 / 打卡 / 作息三类聚合行 */
.jbh-agg-row { position: relative; padding-left: 20px; }
.jbh-agg-dot {
  position: absolute; left: 8px; top: 50%; transform: translateY(-50%);
  width: 6px; height: 6px; border-radius: 50%;
}
.jbt-agg-done {
  flex-shrink: 0; border: 1px solid var(--blue); background: var(--blue-l);
  color: var(--blue); font-size: 11.5px; font-weight: 700;
  border-radius: 999px; padding: 4px 10px; cursor: pointer;
}
.jbt-agg-done:active { opacity: .7; }
/* ＋打卡：选学科面板 */
.jbh-qck-grid { display: flex; flex-direction: column; gap: 10px; }
.jbh-qck-group .jbh-section-title { margin-bottom: 6px; }
.jbh-qck-btns { display: flex; flex-wrap: wrap; gap: 6px; }
/* 主科任务打卡页 */
.jbh-sck-actions { display: flex; gap: 8px; margin: 10px 0; }
.jbh-sck-actions .btn { flex: 1; }

/* ============ v9716：副科 / 课外培训课 / 健康 三套差异化详情页 ============
 * 共用 .jbh-minor 外壳与 .sub-nav 蓝底标题栏，以下为差异化模块组件 */
.jbh-mp .jbh-minor-head { align-items: center; }
.jbh-mp .jbh-minor-head h2 { font-size: 22px; }
.jbh-mp > .card { margin-bottom: 14px; }
.jbh-mp-hint {
  font-size: 11.5px; color: var(--muted-d); line-height: 1.7;
  background: var(--blue-l); border-radius: 10px; padding: 8px 10px; margin: 2px 0 10px;
}
.jbh-mp-note { font-size: 11px; color: var(--muted); line-height: 1.7; margin-top: 10px; }
.jbh-mp-actions { display: flex; gap: 8px; margin: 10px 0; }
.jbh-mp-actions .btn { flex: 1; }
.jbh-mp-tabs { display: flex; gap: 6px; margin-bottom: 12px; background: var(--bg-2); padding: 3px; border-radius: 10px; }
.jbh-mp-tab {
  flex: 1; border: 0; background: transparent; color: var(--muted-d);
  font-size: 12.5px; font-weight: 600; padding: 7px 4px; border-radius: 8px; cursor: pointer;
}
.jbh-mp-tab.on { background: var(--card); color: var(--blue); box-shadow: var(--shadow-sm); }
.jbh-mp-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 4px 0 6px; }
.jbh-mp-stat { background: var(--bg-2); border-radius: 12px; padding: 10px 4px; text-align: center; }
.jbh-mp-stat b { display: block; font-size: 19px; color: var(--blue); line-height: 1.3; }
.jbh-mp-stat span { font-size: 10.5px; color: var(--muted-d); }
.jbh-mp-plain {
  display: flex; justify-content: space-between; gap: 8px; padding: 8px 0;
  border-bottom: 1px dashed var(--line-soft); font-size: 13px;
}
.jbh-mp-plain b { color: var(--text); font-weight: 600; overflow-wrap: anywhere; }
.jbh-mp-plain span { color: var(--green-d); white-space: nowrap; font-size: 11.5px; }
.jbh-mp-row { padding: 10px 0; border-bottom: 1px dashed var(--line-soft); cursor: pointer; }
.jbh-mp-row:last-child { border-bottom: 0; }
.jbh-mp-row:active { background: var(--bg-2); }
.jbh-mp-row-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.jbh-mp-row-top b { font-size: 13.5px; color: var(--text); font-weight: 650; overflow-wrap: anywhere; }
.jbh-mp-row-r { margin-left: auto; font-size: 11px; color: var(--muted-d); }
.jbh-mp-row-sub { font-size: 11.5px; color: var(--muted-d); margin-top: 5px; line-height: 1.6; overflow-wrap: anywhere; }
.jbh-mp-media { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.jbh-mp-media img, .jbh-mp-media video {
  width: 54px; height: 54px; object-fit: cover; border-radius: 8px; background: var(--bg-2);
}
.jbh-mp-media .tag { align-self: center; }
/* 成长档案时间线 */
.jbh-mp-timeline { border-left: 2px solid var(--line); padding-left: 14px; margin: 4px 0 0 6px; }
.jbh-mp-tl-item { position: relative; padding-bottom: 14px; cursor: pointer; }
.jbh-mp-tl-item::before {
  content: ''; position: absolute; left: -20px; top: 6px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 2px var(--card);
}
.jbh-mp-tl-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.jbh-mp-tl-head b { font-size: 13.5px; color: var(--text); }
.jbh-mp-tl-head > span:last-child { margin-left: auto; font-size: 11px; color: var(--muted-d); }
.jbh-mp-tl-note { font-size: 11.5px; color: var(--muted-d); line-height: 1.7; margin-top: 4px; overflow-wrap: anywhere; }
.jbh-mp-report {
  font-size: 12.5px; line-height: 1.85; color: var(--text);
  background: var(--bg-2); border-radius: 10px; padding: 10px 12px; margin-top: 10px;
}
.jbh-mp-report b { color: var(--blue); }
/* 近 7 天趋势柱状图 */
.jbh-mp-chart { display: flex; align-items: flex-end; gap: 5px; height: 84px; padding: 6px 2px 0; border-bottom: 1px solid var(--line); }
.jbh-mp-bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; min-width: 0; }
.jbh-mp-bar { width: 100%; max-width: 26px; background: var(--blue); border-radius: 5px 5px 0 0; opacity: .85; }
.jbh-mp-bar-col span { font-size: 9.5px; color: var(--muted-d); white-space: nowrap; }
/* 通用录入表单（蓝底标题栏置顶的 fullPage 内） */
.jbh-mp-form .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.jbh-mp-form .form-grid .full { grid-column: 1 / -1; }
.jbh-mp-form .form-grid label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: var(--muted-d); }
.jbh-mp-form .input { width: 100%; box-sizing: border-box; }
@media (max-width: 360px) { .jbh-mp-stats { gap: 5px; } .jbh-mp-stat b { font-size: 16px; } }

/* ============ v9717：打卡体系实用最小集（模板中心 / 动态表单 / 归集筛选） ============ */
.jb-ckt-actions { flex-wrap: wrap; }
.jb-ckt-actions .btn { flex: 1; min-width: 96px; }
.jb-ckt-filter { display: flex; gap: 8px; align-items: center; margin: 8px 0 10px; }
.jb-ckt-filter select { flex: 0 0 132px; }
.jb-ckt-scope { flex: 1; display: flex; gap: 5px; justify-content: flex-end; flex-wrap: wrap; }
.jb-ckt-scope .chip { padding: 5px 10px; font-size: 12px; }
.jb-ckt-card {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin-bottom: 8px;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
}
.jb-ckt-ico { font-size: 24px; flex: 0 0 auto; width: 38px; text-align: center; }
.jb-ckt-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.jb-ckt-main b { font-size: 14px; color: var(--text); }
.jb-ckt-main span { font-size: 11px; color: var(--muted-d); }
.jb-ckt-ops { display: flex; gap: 5px; flex: 0 0 auto; flex-wrap: wrap; justify-content: flex-end; }
.jb-ckt-ops .btn { padding: 4px 9px; font-size: 11.5px; }
.btn.ghost.danger-t { color: var(--red, #E5484D); }
.jb-ckt-editor .form-grid, .jb-ckt-run .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.jb-ckt-editor .form-grid .full, .jb-ckt-run .form-grid .full { grid-column: 1 / -1; }
.jb-ckt-editor .form-grid label, .jb-ckt-run .form-grid label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: var(--muted-d); }
.jb-ckt-editor .input, .jb-ckt-run .input { width: 100%; box-sizing: border-box; }
.jb-ckt-frow { border: 1px dashed var(--line); border-radius: 10px; padding: 8px 10px 10px; margin-bottom: 8px; }
.jb-ckt-frow-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.jb-ckt-run { padding-bottom: 4px; }
.jb-ckt-tip { font-size: 12px; color: var(--muted-d); background: var(--bg-2); border-radius: 8px; padding: 8px 10px; margin-bottom: 10px; line-height: 1.6; }
.jb-ckt-tip b { color: var(--blue); }
.jb-ckt-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.jb-ckt-chips .chip { font-size: 12px; }
.req { color: var(--red, #E5484D); font-style: normal; }
.jb-ckt-imgfield { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--muted-d); }
.jb-ckt-imgfield > .btn { align-self: flex-start; }
.jb-ckt-imgprev { display: flex; flex-wrap: wrap; gap: 6px; }
.jb-ckt-imgprev .img-item { position: relative; width: 56px; height: 56px; }
.jb-ckt-imgprev .img-item img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.jb-ckt-imgprev .img-del { position: absolute; top: -6px; right: -6px; width: 18px; height: 18px; border-radius: 50%; border: 0; background: var(--red, #E5484D); color: #fff; font-size: 13px; line-height: 18px; cursor: pointer; }
.jb-ckt-vals { display: flex; flex-wrap: wrap; gap: 5px; margin: 5px 0; }
.jb-ckt-val { font-size: 11.5px; color: var(--text); background: var(--bg-2); border-radius: 6px; padding: 3px 7px; }
.jb-ckt-val i { font-style: normal; color: var(--muted-d); margin-right: 5px; }
.jb-ckt-tpl { color: var(--blue) !important; }
.jbh-qck-tpls { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.jbh-qck-manage { margin-bottom: 10px; }
@media (max-width: 360px) { .jb-ckt-card { flex-wrap: wrap; } .jb-ckt-ops { width: 100%; } }

/* ============ v9718：轻量化周期记录 + 作息模板 ============ */
.jbh-psum { border-top: 3px solid var(--blue); background: var(--card); border-radius: 10px; padding: 10px 12px; margin-top: 10px; }
.jbh-psum-text { font-size: 13px; line-height: 1.8; color: var(--text); white-space: pre-wrap; overflow-wrap: anywhere; }
.jbh-psum-text.collapsed { max-height: 26px; overflow: hidden; }
.jbh-psum-imgs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.jbh-psum-img { width: 62px; height: 62px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.jbh-psum-meta { font-size: 11.5px; color: var(--muted-d); margin-top: 6px; }
.jbh-psum-actions { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.jbh-psum-empty {
  border: 1px dashed var(--line); border-radius: 10px; padding: 16px 12px; margin-top: 10px;
  text-align: center; font-size: 12.5px; color: var(--muted-d); cursor: pointer; background: var(--bg-2);
}
.jbh-psum-arch {
  display: flex; align-items: center; gap: 7px; flex-wrap: wrap; padding: 8px 10px; margin-bottom: 6px;
  background: var(--bg-2); border-radius: 8px; cursor: pointer; font-size: 12px;
}
.jbh-psum-arch b { color: var(--text); font-size: 12.5px; }
.jbh-psum-arch > span:not(.tag) { color: var(--muted-d); font-size: 11px; flex: 1; min-width: 90px; }
.jbh-psum-arch i { font-style: normal; font-size: 10.5px; color: var(--green, #16a34a); }
.jb-rtpl-ops { display: flex; gap: 6px; margin: 0 0 10px; flex-wrap: wrap; }
.jb-rtpl-ops .btn { font-size: 11.5px; padding: 5px 9px; }

/* ============================================================
 * v97.19 · 全域事项整合：＋新建面板 / 全局事项总览 / 日程提醒 /
 *   统一附件 / 自定义周几 / 统一模板中心 / 系统通知 / 连续打卡
 * ============================================================ */
/* ＋新建 类型选择面板 */
.jb-new-panel { display: flex; flex-direction: column; gap: 8px; padding: 4px 2px; }
.jb-new-card {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  background: var(--bg-2, #f7f9fc); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; cursor: pointer; transition: border-color .15s, transform .1s;
}
.jb-new-card:active { transform: scale(.99); }
.jb-new-card:hover { border-color: var(--blue, #3D6BFF); }
.jb-new-ico { font-size: 26px; flex: 0 0 auto; }
.jb-new-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.jb-new-body b { font-size: 15px; color: var(--text); }
.jb-new-body small { font-size: 12px; color: var(--muted-d); }
.jb-new-body em { font-style: normal; font-size: 11px; color: var(--muted); }
.jb-new-arrow { font-size: 22px; color: var(--muted); }
.jb-new-foot { margin-top: 10px; text-align: center; }
.jb-new-foot.muted { font-size: 11.5px; color: var(--muted); }

/* 全局事项总览 */
/* v97.31 需求4：分类统计栏 7 项（全部 + 六类事项）同行横向展示，随屏宽自适应，禁止横向滑动 */
.jbi-stats { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; margin-bottom: 10px; }
.jbi-stat {
  display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 7px 2px; min-width: 0;
  background: var(--bg-2, #f7f9fc); border: 1px solid var(--line); border-radius: 9px; cursor: pointer;
}
.jbi-stat.on { border-color: var(--blue, #3D6BFF); background: rgba(61,107,255,.06); }
.jbi-stat b { font-size: 16px; color: var(--text); }
.jbi-stat span { font-size: 10px; color: var(--muted-d); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.jbi-filter { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.jbi-filter select { flex: 0 0 auto; width: auto; min-width: 120px; }
.jbi-scope { display: flex; gap: 5px; }
.jbi-row {
  display: flex; align-items: center; gap: 9px; padding: 10px 11px; margin-bottom: 7px;
  background: var(--bg-2, #f7f9fc); border: 1px solid var(--line); border-radius: 10px; cursor: pointer;
}
.jbi-dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; }
.jbi-body { flex: 1; min-width: 0; }
.jbi-t { font-size: 13.5px; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jbi-s { font-size: 11px; color: var(--muted-d); }
.jbi-done, .jbi-more {
  flex: 0 0 auto; border: 1px solid var(--line); background: #fff; border-radius: 8px;
  font-size: 11.5px; padding: 4px 9px; cursor: pointer; color: var(--blue, #3D6BFF);
}
.jbi-more { padding: 4px 8px; color: var(--muted-d); }

/* 日程提醒表单 · 自定义周几 */
.jb-wd-pick { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.jb-wd {
  border: 1px solid var(--line); background: var(--bg-2, #f7f9fc); border-radius: 8px;
  padding: 6px 11px; font-size: 12px; cursor: pointer; color: var(--muted-d);
}
.jb-wd.on { background: var(--blue, #3D6BFF); border-color: var(--blue, #3D6BFF); color: #fff; }
.jb-ag-note { font-size: 11.5px; color: var(--muted); margin: 8px 0; }
.jb-chk-line { display: flex; align-items: center; gap: 6px; font-size: 13px; }

/* 统一附件组件（图片 / 视频 / 音频 / 文件 / 录音） */
.jbatt-picker { margin: 6px 0; }
.jbatt-lb { display: block; font-size: 11.5px; color: var(--muted-d); margin: 6px 0; }
.jbatt-lb .input { margin-top: 3px; font-size: 12px; }
.jbatt-rec { display: flex; align-items: center; gap: 8px; margin: 6px 0; }
.jbatt-rec-hint { font-size: 11px; color: var(--muted); }
.jbatt-prev { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.jbatt-item { position: relative; display: inline-flex; align-items: center; }
.jbatt-item img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.jbatt-item video, .jbatt-item audio { max-width: 180px; border-radius: 8px; }
.jbatt-item a { font-size: 12px; color: var(--blue, #3D6BFF); }
.jbatt-item b {
  position: absolute; top: -6px; right: -6px; width: 18px; height: 18px; line-height: 17px;
  text-align: center; background: #E5484D; color: #fff; border-radius: 50%; font-size: 13px; cursor: pointer;
}
.jbatt-pv { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
.jbatt-pv-img { width: 84px; height: 84px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.jbatt-pv-media { max-width: 220px; border-radius: 8px; }
.jbatt-pv-file { font-size: 12px; color: var(--blue, #3D6BFF); }

/* 统一模板中心 */
.tplc-tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 12px; }
.tplc-tabs .tab { font-size: 12px; padding: 6px 11px; }
.tplc-list { display: flex; flex-direction: column; gap: 8px; }
.tplc-card {
  display: flex; align-items: center; gap: 10px; padding: 10px 11px;
  background: var(--bg-2, #f7f9fc); border: 1px solid var(--line); border-radius: 10px;
}
.tplc-ico { font-size: 24px; flex: 0 0 auto; }
.tplc-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.tplc-main b { font-size: 13.5px; color: var(--text); }
.tplc-main span { font-size: 11px; color: var(--muted-d); }
.tplc-scene { font-style: normal; font-size: 10.5px; padding: 1px 6px; border-radius: 5px; background: rgba(61,107,255,.1); color: var(--blue, #3D6BFF); }
.tplc-scene.sc-checkin { background: rgba(245,158,11,.14); color: #B45309; }
.tplc-scene.sc-agenda { background: rgba(16,185,129,.14); color: #047857; }
.tplc-scene.sc-routine { background: rgba(139,92,246,.14); color: #6D28D9; }
.tplc-ops { display: flex; gap: 5px; flex: 0 0 auto; flex-wrap: wrap; justify-content: flex-end; }
.tplc-ops .btn { padding: 4px 8px; font-size: 11px; }
.jb-gt-note { font-size: 11.5px; color: var(--muted); margin: 8px 0; }

/* 系统通知权限状态 / 连续打卡 */
.jb-perm { font-size: 12.5px; font-weight: 600; }
.jb-perm.ok { color: var(--green, #16a34a); }
.jb-perm.warn { color: #B45309; }
.jb-ck-streak { margin: 10px 0; }
.jb-ck-streak-num { display: flex; align-items: baseline; gap: 5px; padding: 6px 0; }
.jb-ck-streak-num b { font-size: 30px; color: #F59E0B; }
.jb-ck-streak-num span { font-size: 13px; color: var(--muted-d); }
.jb-ck-streak-tip { font-size: 11.5px; color: var(--muted); }
.jb-subject-new { margin: 0 0 12px; }

@media (max-width: 360px) {
  .jbi-stats { gap: 5px; }
  .jbi-stat b { font-size: 16px; }
  .tplc-card { flex-wrap: wrap; }
  .tplc-ops { width: 100%; }
}

/* ============================================================
 * v97.20 · 作息并入全域事项 / 自定义日期段 / 统一操作栏 /
 *   5 宫格自适应 / 全学科置顶三模块
 * ============================================================ */
/* ① 5 宫格：移除作息规划后 3+2 居中、视觉规整 */
.jbh-entries.five { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.jbh-entries.five .jbh-entry { flex: 0 0 calc((100% - 20px) / 3); max-width: calc((100% - 20px) / 3); }
@media (max-width: 360px) { .jbh-entries.five { gap: 7px; } .jbh-entries.five .jbh-entry { flex-basis: calc((100% - 14px) / 3); max-width: calc((100% - 14px) / 3); } }

/* ② 全局事项总览：5 类统计自适应 + 自定义日期段 */
.jbi-stats { grid-template-columns: repeat(7, minmax(0, 1fr)); }
/* v97.36 需求五：事项总览「分类 + 时间」两行筛选 */
.jbo-filter { display: flex; flex-direction: column; gap: 7px; margin: 0 0 10px; }
.jbo-scope { flex-wrap: wrap; }
.jbo-scope .chip { display: inline-flex; align-items: center; }
.jbo-scope .chip .od-num { background: var(--green-l); color: var(--green-d); }
.jbo-scope .chip.sel .od-num { background: rgba(255,255,255,.28); color: #fff; }
.jbi-range { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 12px; padding: 9px 10px; background: var(--bg-2, #f7f9fc); border: 1px solid var(--line); border-radius: 10px; }
.jbi-range label { flex: 1 1 130px; min-width: 0; display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--muted-d); }
.jbi-range label .input { flex: 1; min-width: 0; font-size: 12px; padding: 6px 5px; }
.jbi-range > span:not(.jbi-range-hint) { font-size: 12px; color: var(--muted); }
.jbi-range-hint { width: 100%; font-size: 11px; color: var(--muted); }
@media (max-width: 360px) { .jbi-stats { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; } .jbi-stat b { font-size: 14px; } .jbi-stat span { font-size: 9px; } }

/* ③ 统一操作栏（编辑态 删除 / 完成 / 保存 三等分；新建态单保存） */
.jbo-bar.jbo-three .btn { flex: 1; }
.jbo-bar.jbo-three #jbo_del { color: #E5484D; border-color: rgba(229,72,77,.35); }
.jbo-bar.jbo-three #jbo_done { color: var(--blue, #3D6BFF); border-color: rgba(61,107,255,.35); }
.jbo-bar.jbo-three #jbo_save { flex: 1.2; }
/* v97.34 需求四：已过期待办详情「删除 / 未完成 / 完成 / 保存」四按钮一行均分 */
.jbo-bar.jbo-four .btn { flex: 1; min-width: 0; padding-left: 2px; padding-right: 2px; font-size: 11.5px; }

/* ④ 全学科置顶三模块卡片 */
.jb-mod3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 14px; }
.jb-mod3-card { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 13px 4px 11px; background: var(--card, #fff); border: 1px solid var(--line); border-top: 3px solid var(--blue, #3D6BFF); border-radius: 12px; box-shadow: var(--shadow-sm); cursor: pointer; min-height: 84px; }
.jb-mod3-card:active { transform: scale(.98); }
.jb-mod3-card:nth-child(2) { border-top-color: #F59E0B; }
.jb-mod3-card:nth-child(3) { border-top-color: #10B981; }
.jb-mod3-card span { font-size: 23px; line-height: 1.1; }
.jb-mod3-card b { font-size: 13.5px; font-weight: 700; color: var(--text); }
.jb-mod3-card small { font-size: 10px; color: var(--muted-d); }
.jb-page > .jb-mod3 { margin: 12px 12px 0; }
@media (max-width: 360px) { .jb-mod3 { gap: 5px; } .jb-mod3-card b { font-size: 12px; } .jb-mod3-card small { font-size: 9px; } }

/* ⑤ 计划模块快捷操作与行 */
.jbmod-quick { display: flex; gap: 8px; margin: 10px 0 14px; }
.jbmod-quick .btn { flex: 1; }
.jbmod-row { display: flex; align-items: center; gap: 9px; padding: 9px 10px; margin-bottom: 7px; background: var(--bg-2, #f7f9fc); border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.jbmod-row.done { opacity: .72; }
.jbmod-row .jbh-agg-dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; }
.jbmod-row .jbi-body { flex: 1; min-width: 0; }


/* ==================================================================
 * v97.21 · 统一富媒体内容组件 JBRich（全域录入页 / 展示页 / 模板中心共用）
 *   编辑器：有序内容项（类型标签 / 上移 / 下移 / 单独删除 / 独立编辑）
 *   预览：按配置顺序统一渲染 文本 / 图片 / 视频 / 音频 / 录音 / 文件
 *   紧凑徽标：全局事项总览 / 今日 / 未来 10 天 / 学科模块列表行
 * ================================================================== */
.jbrich { border: 1px solid var(--line); border-radius: 10px; background: var(--card, #fff); padding: 8px; }
.jbrich-list { display: flex; flex-direction: column; gap: 8px; }
.jbrich-empty { font-size: 11.5px; color: var(--muted); text-align: center; padding: 10px 4px; }
.jbrich-item { border: 1px solid var(--line); border-radius: 9px; overflow: hidden; background: var(--bg-2, #f7f9fc); }
.jbrich-bar { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 5px 8px; background: rgba(61,107,255,.05); border-bottom: 1px solid var(--line); }
.jbrich-tag { font-size: 11px; font-weight: 700; color: var(--blue, #3D6BFF); white-space: nowrap; }
.jbrich-ops { display: flex; gap: 4px; }
.jbrich-op { min-width: 26px; height: 24px; padding: 0 5px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--text); font-size: 12px; line-height: 1; cursor: pointer; }
.jbrich-op:disabled { opacity: .35; cursor: default; }
.jbrich-op.danger-t { color: #E5484D; border-color: rgba(229,72,77,.3); }
.jbrich-body { padding: 7px 8px 9px; }
.jbrich-text { width: 100%; box-sizing: border-box; }
.jbrich-media { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.jbrich-media img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; background: #fff; }
.jbrich-media video { width: 100%; max-height: 180px; border-radius: 8px; background: #000; }
.jbrich-media audio { width: 100%; max-width: 240px; }
.jbrich-file { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.jbrich-file .input { flex: 1; min-width: 110px; }
.jbrich-file .muted { font-size: 11px; }
.jbrich-addrow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.jbrich-hint { font-size: 10.5px; color: var(--muted); }
.jbrich-types { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.jbrich-types .chip { font-size: 11.5px; padding: 5px 9px; background: #fff; border: 1px solid var(--line); color: var(--text); cursor: pointer; }
.jbrich-types .chip:active { transform: scale(.96); }

/* 只读预览：详情 / 列表 / 全局事项总览 / 学科页 / 统计报表按配置顺序统一渲染 */
.jbrich-pv { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin: 8px 0; }
.jbrich-pv-text { grid-column: 1 / -1; font-size: 13px; line-height: 1.7; color: var(--text); overflow-wrap: anywhere; }
.jbrich-pv-img { width: 100%; height: 96px; object-fit: cover; border-radius: 9px; background: var(--bg-2, #f7f9fc); cursor: zoom-in; }
.jbrich-pv-media { grid-column: 1 / -1; width: 100%; max-height: 220px; border-radius: 9px; background: #000; }
.jbrich-pv-audio { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 5px; font-size: 11.5px; color: var(--muted-d); }
.jbrich-pv-audio audio { width: 100%; height: 34px; }
.jbrich-pv-file { grid-column: 1 / -1; display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--blue, #3D6BFF); text-decoration: none; padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; background: #fff; overflow-wrap: anywhere; }
/* 差异化页记录卡（外层 .jbh-mp-media）：沿用 54px 缩略图，音频/文件/文本占整行 */
.jbh-mp-media .jbrich-pv { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.jbh-mp-media .jbrich-pv-audio, .jbh-mp-media .jbrich-pv-file, .jbh-mp-media .jbrich-pv-text { width: 100%; }
.jbh-mp-media .jbrich-pv-file { padding: 4px 7px; font-size: 11px; }
.jbrich-mini { display: inline-flex; align-items: center; gap: 2px; margin-left: 6px; font-size: 10px; color: var(--muted-d); white-space: nowrap; vertical-align: middle; }

/* 模板中心：通用模板富媒体区 / 打卡模板字段预置内容编辑器 */
#gt_rich, .jb-ckt-frow [data-preset] { margin: 6px 0 2px; }
.jb-ckt-frow [data-preset] .jbrich { background: var(--bg-2, #f7f9fc); }
@media (max-width: 360px) {
  .jbrich-pv { grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 6px; }
  .jbrich-pv-img { height: 78px; }
  .jbrich-types .chip { font-size: 10.5px; padding: 4px 7px; }
}

/* ==================================================================
 * v97.22 JBFlow styles · 图文混排引擎（双模式编辑器 + 展示态按排版渲染）
 * ================================================================== */

/* 双模式切换标签栏 */
.jbrich-mode { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px dashed var(--line); }
.jbrich-tab { font-size: 12px; font-weight: 600; color: var(--muted-d, #8a94a6); padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; cursor: pointer; line-height: 1.2; }
.jbrich-tab.on { color: #fff; background: var(--blue, #3D6BFF); border-color: var(--blue, #3D6BFF); }
.jbrich-mode .jbrich-hint { margin-left: auto; }
.jbrich[data-jbr-v9722="1"] > .jbrich-addrow { margin-top: 2px; }

/* 混排编辑区：格式工具条 */
.jbrich-flow { margin-top: 8px; }
.jbrich-fmt { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; padding: 4px 6px; background: var(--bg-2, #f7f9fc); border: 1px solid var(--line); border-bottom: none; border-radius: 9px 9px 0 0; }
.jbrich-fmt button { min-width: 28px; height: 26px; padding: 0 6px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--text); font-size: 12px; line-height: 1; cursor: pointer; }
.jbrich-fmt button:active { transform: scale(.94); }
.jbrich-fmt button[data-jbf-stop] { color: #E5484D; border-color: rgba(229,72,77,.3); }
.jbrich-fmt-tip { flex: 1; min-width: 110px; margin-left: 4px; font-size: 10.5px; color: var(--muted); }

/* contenteditable 正文编辑区 */
.jbrich-ed { box-sizing: border-box; min-height: 92px; max-height: 420px; overflow-y: auto; padding: 10px 12px; border: 1px solid var(--line); border-radius: 0 0 9px 9px; background: #fff; font-size: 13.5px; line-height: 1.75; color: var(--text); outline: none; overflow-wrap: anywhere; }
.jbrich-ed:focus { border-color: var(--blue, #3D6BFF); box-shadow: 0 0 0 2px rgba(61,107,255,.12); }
.jbrich-ed:empty::before { content: attr(data-placeholder); color: var(--muted); font-size: 12px; }
.jbrich-ed p { margin: 0 0 6px; }
.jbrich-ed p:last-child { margin-bottom: 0; }
.jbrich-ed ul, .jbrich-ed ol { margin: 4px 0 6px; padding-left: 22px; }
.jbrich-ed h3, .jbrich-ed h4 { margin: 6px 0; font-size: 15px; }
.jbrich-ed blockquote { margin: 6px 0; padding: 4px 10px; border-left: 3px solid var(--blue, #3D6BFF); color: var(--muted-d, #8a94a6); background: var(--bg-2, #f7f9fc); }
.jbrich-ed a { color: var(--blue, #3D6BFF); }

/* 原子媒体节点：编辑态 figure.jbf-atom / 展示态 .jbf-node 共用外观 */
.jbrich-ed figure.jbf-atom, .jbflow-pv figure.jbf-atom,
.jbrich-ed .jbf-node, .jbflow-pv .jbf-node { display: block; position: relative; margin: 8px 0; padding: 8px; border: 1px solid var(--line); border-radius: 9px; background: var(--bg-2, #f7f9fc); }
.jbrich-ed figure.jbf-atom { border-style: dashed; border-color: rgba(61,107,255,.35); }
.jbf-atom-in { display: block; }
.jbf-atom-ops { display: flex; gap: 4px; justify-content: flex-end; margin-top: 6px; padding-top: 6px; border-top: 1px dashed var(--line); }
.jbf-atom-ops button { min-width: 26px; height: 24px; padding: 0 6px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--text); font-size: 12px; line-height: 1; cursor: pointer; }
.jbf-atom-ops button[data-jbf-del] { color: #E5484D; border-color: rgba(229,72,77,.3); }
.jbf-atom-ops button:active { transform: scale(.94); }

/* 媒体节点内部元素 */
.jbf-img { display: block; width: 100%; max-width: 100%; max-height: 260px; object-fit: contain; border-radius: 8px; background: #fff; cursor: zoom-in; }
.jbf-video { display: block; width: 100%; max-height: 240px; border-radius: 8px; background: #000; }
.jbf-audio { display: flex; flex-direction: column; gap: 5px; }
.jbf-audio-n { font-size: 11.5px; color: var(--muted-d, #8a94a6); }
.jbf-audio-p { width: 100%; height: 34px; }
.jbf-file { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--blue, #3D6BFF); text-decoration: none; padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; background: #fff; overflow-wrap: anywhere; }
.jbf-failed { padding: 8px; font-size: 11.5px; color: #E5484D; text-align: center; }

/* 展示态：覆盖 .jbrich-pv 的 grid → 文档流，严格按录入排版穿插渲染 */
.jbrich-pv.jbflow-pv { display: block; margin: 6px 0; }
.jbh-mp-media .jbrich-pv.jbflow-pv { display: block; }
.jbflow-pv p { margin: 0 0 6px; font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
.jbflow-pv ul, .jbflow-pv ol { margin: 4px 0 6px; padding-left: 22px; }
.jbflow-pv h3, .jbflow-pv h4 { margin: 6px 0; font-size: 14.5px; }
.jbflow-pv blockquote { margin: 6px 0; padding: 4px 10px; border-left: 3px solid var(--blue, #3D6BFF); color: var(--muted-d, #8a94a6); }
.jbflow-pv .jbrich-pv-text { display: block; margin-bottom: 6px; }

/* 窄屏适配 */
@media (max-width: 360px) {
  .jbrich-fmt-tip { display: none; }
  .jbrich-tab { padding: 4px 9px; font-size: 11.5px; }
  .jbrich-ed { font-size: 12.5px; }
}

/* ==================================================================
 * v97.23 · 统一详情页 / 撤销 / 回收站 / 草稿 / 左滑 / 打卡双模式 / 排版
 * ================================================================== */

/* 需求5：two-col 补定义（此前无定义，导致开始/结束时间挤成单列上下堆叠） */
.form-grid > .two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid > .two-col > label { min-width: 0; }
@media (max-width: 360px) { .form-grid > .two-col { gap: 8px; } }

/* 需求2：学科学习页「主科」组置顶高亮 */
.jbh-group-major { scroll-margin-top: 4px; }
.jbh-group-major > .jbh-section-title b { color: var(--blue, #2E5BFF); }

/* 首页宫格：新增「最近删除」后 6 项仍 3 列自适应（沿用 .five 的 flex 规则） */

/* ---------------------------------------------------------------
 * 需求1：统一只读详情页
 * --------------------------------------------------------------- */
.jbd-wrap { padding: 2px 0 4px; }
.jbd-hero { display: flex; align-items: center; gap: 8px; margin: 2px 0 8px; }
.jbd-kind { color: #fff; font-size: 11.5px; font-weight: 600; padding: 3px 10px; border-radius: 20px; letter-spacing: .3px; }
.jbd-state { font-size: 11.5px; font-weight: 600; padding: 3px 10px; border-radius: 20px; background: rgba(46,91,255,.10); color: var(--blue, #2E5BFF); }
.jbd-state.done { background: rgba(16,185,129,.12); color: #0f9d6e; }
.jbd-title { font-size: 19px; font-weight: 700; line-height: 1.45; margin: 0 2px 12px; word-break: break-word; }
.jbd-kv { margin: 0 0 4px; }
.jbd-content { background: var(--bg-2, #f7f9fc); border: 1px solid var(--line, #e6ebf2); border-radius: 12px; padding: 10px 12px; min-height: 42px; }
.jbd-content .jbrich-pv,
.jbd-content .jbflow-pv { display: block; }
.jbd-content .jbflow-pv p,
.jbd-content .jbflow-pv div { margin: 0 0 6px; }
.jbd-content .jbflow-pv img { max-width: 100%; border-radius: 8px; }
.jbd-content .muted { color: var(--muted, #94a3b8); font-size: 13px; }
.jbd-items { display: flex; flex-direction: column; gap: 6px; }
.jbd-item { display: flex; align-items: center; gap: 8px; font-size: 13.5px; padding: 7px 10px; border-radius: 9px; background: var(--bg-2, #f7f9fc); }
.jbd-item.done { opacity: .6; text-decoration: line-through; }
.jbd-check { width: 16px; height: 16px; border: 1.5px solid var(--line, #d5dde8); border-radius: 5px; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; color: #fff; flex: 0 0 auto; }
.jbd-item.done .jbd-check { background: #10b981; border-color: #10b981; }
.jbd-actions { position: sticky; bottom: 0; }

/* ---------------------------------------------------------------
 * 需求3：撤销条 + 已完成「恢复未完成」
 * --------------------------------------------------------------- */
.jbundo-bar {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  transform: translate(-50%, 20px); z-index: 120;
  display: flex; align-items: center; gap: 14px;
  background: rgba(24,38,31,.96); color: #fff;
  padding: 11px 14px 11px 18px; border-radius: 26px;
  box-shadow: 0 10px 34px rgba(0,0,0,.28);
  font-size: 13.5px; max-width: 90vw;
  opacity: 0; pointer-events: none; transition: opacity .22s, transform .22s;
}
.jbundo-bar.on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.jbundo-txt { white-space: nowrap; }
.jbundo-btn {
  background: #fff; color: #1f6f4a; border: 0; border-radius: 18px;
  padding: 5px 14px; font-size: 12.5px; font-weight: 700; cursor: pointer; flex: 0 0 auto;
}
.jbi-undone { background: rgba(16,185,129,.12) !important; color: #0f9d6e !important; font-size: 11px; }

/* ---------------------------------------------------------------
 * 小优化：最近删除（回收站）
 * --------------------------------------------------------------- */
.jbtrash-tip { font-size: 12px; color: var(--muted, #94a3b8); padding: 4px 2px 12px; line-height: 1.6; }
.jbtrash-row { display: flex; align-items: center; gap: 8px; padding: 10px 0; border-bottom: 1px dashed var(--line, #e6ebf2); }
.jbtrash-ico { width: 8px; height: 32px; border-radius: 4px; flex: 0 0 auto; }
.jbtrash-body { flex: 1; min-width: 0; }
.jbtrash-t { font-size: 14px; font-weight: 600; word-break: break-word; }
.jbtrash-s { font-size: 11.5px; color: var(--muted, #94a3b8); margin-top: 2px; }
.jbtrash-row .btn { flex: 0 0 auto; padding: 5px 10px; }

/* ---------------------------------------------------------------
 * 小优化：编辑草稿提示条
 * --------------------------------------------------------------- */
.jbdraft-bar {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  background: #fff8e6; border: 1px solid #f5d98a; color: #8a6100;
  border-radius: 10px; padding: 8px 10px; margin: 0 0 10px; font-size: 12.5px;
}
.jbdraft-bar span { flex: 1; min-width: 120px; }
.jbdraft-bar .btn { flex: 0 0 auto; padding: 4px 12px; }

/* v97.35 需求七：统一草稿提示条（替代旧「已恢复上次未保存的草稿」toast，改为顶部提示条 + 恢复/丢弃） */
.draft-bar {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  background: #eef2ff; border: 1px solid #c7d2fe; color: #1e3a8a;
  border-radius: 10px; padding: 8px 10px; margin: 0 0 10px; font-size: 12.5px;
}
.draft-bar .draft-bar-txt { flex: 1; min-width: 100px; }
.draft-bar .btn { flex: 0 0 auto; padding: 4px 12px; }

/* ---------------------------------------------------------------
 * 小优化：列表行左滑快捷操作
 * --------------------------------------------------------------- */
.jbsw-row { position: relative; overflow: hidden; }
.jbsw-bar {
  position: absolute; right: 0; top: 0; bottom: 0;
  display: flex; align-items: stretch;
  transform: translateX(100%); transition: transform .2s ease;
  z-index: 2;
}
.jbsw-open .jbsw-bar { transform: translateX(0); }
.jbsw-a {
  border: 0; color: #fff; font-size: 12px; font-weight: 600;
  padding: 0 13px; cursor: pointer; white-space: nowrap;
}
.jbsw-a.e { background: #2E5BFF; }
.jbsw-a.d { background: #10b981; }
.jbsw-a.x { background: #e8544a; }

/* ---------------------------------------------------------------
 * 需求4：打卡「计划 / 现场」双模式
 * --------------------------------------------------------------- */
.jbck-mode { display: flex; gap: 8px; margin: 2px 0 6px; }
.jbck-mtab {
  flex: 1; padding: 9px 6px; border-radius: 10px; font-size: 13px; font-weight: 600;
  border: 1px solid var(--line, #e6ebf2); background: var(--bg-2, #f7f9fc); color: var(--muted-d, #64748b); cursor: pointer;
}
.jbck-mtab.on { background: var(--blue, #2E5BFF); border-color: var(--blue, #2E5BFF); color: #fff; box-shadow: 0 4px 12px rgba(46,91,255,.24); }
.jbck-mhint { font-size: 11.5px; color: var(--muted, #94a3b8); line-height: 1.55; margin: 0 2px 10px; }

/* ---------------------------------------------------------------
 * 窄屏适配
 * --------------------------------------------------------------- */
@media (max-width: 360px) {
  .jbd-title { font-size: 17px; }
  .jbundo-bar { gap: 8px; padding: 9px 10px 9px 14px; font-size: 12.5px; }
  .jbsw-a { padding: 0 9px; font-size: 11px; }
  .jbck-mtab { font-size: 12px; padding: 8px 4px; }
}

/* ==================================================================
 * v97.24 · WPS / Word 粘贴版式还原
 * 问题：表格被拆成单列、拼音注音与汉字分离、加粗居中字号丢失
 * 修法：清洗层放行 table/ruby/内联样式，渲染层补齐对应排版
 * ================================================================== */

/* --- 空格与换行：WPS 用连续空格 / &nbsp; 做对齐，必须保留 --- */
.jbflow-pv p, .jbflow-pv div, .jbflow-pv li,
.jbflow-pv td, .jbflow-pv th,
.jbrich-ed p, .jbrich-ed div, .jbrich-ed li,
.jbrich-ed td, .jbrich-ed th {
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: break-word;
}

/* --- 表格：多列对齐靠它，无边框时只做排版不画线 --- */
.jbflow-pv table, .jbrich-ed table {
  border-collapse: collapse;
  border-spacing: 0;
  max-width: 100%;
  margin: 4px 0;
  font-size: inherit;
}
.jbflow-pv td, .jbflow-pv th,
.jbrich-ed td, .jbrich-ed th {
  padding: 1px 6px;
  vertical-align: top;
  font-size: inherit;
  line-height: 1.5;
}
.jbflow-pv th, .jbrich-ed th { font-weight: 600; }
.jbflow-pv caption, .jbrich-ed caption { font-weight: 600; padding: 4px 0; }
/* 行内表格（WPS 常见）不要额外上下留白 */
.jbflow-pv p > table, .jbrich-ed p > table { margin: 0; display: inline-table; }

/* --- 拼音注音：汉字上方小字，与原文一致 --- */
.jbflow-pv ruby, .jbrich-ed ruby {
  ruby-position: over;
  -webkit-ruby-position: before;
  line-height: 1.9;          /* 给上方注音留出呼吸空间，避免贴着上一行 */
}
.jbflow-pv rt, .jbrich-ed rt {
  font-size: .52em;
  line-height: 1.2;
  font-weight: 400;
  letter-spacing: 0;
  padding: 0 1px;            /* 相邻注音之间留一点间隙，避免连成一串 */
  color: #5b6b82;
  text-align: center;
  user-select: none;
}
.jbflow-pv rp, .jbrich-ed rp { display: none; }

/* --- 标题与字体：WPS 的 h1/h2 与 <font> 老标签统一收敛，避免撑破手机宽度 --- */
.jbflow-pv h1, .jbrich-ed h1 { font-size: 1.32em; font-weight: 700; margin: .5em 0 .3em; }
.jbflow-pv h2, .jbrich-ed h2 { font-size: 1.18em; font-weight: 700; margin: .5em 0 .3em; }
.jbflow-pv h5, .jbrich-ed h5 { font-size: .95em; font-weight: 600; margin: .4em 0 .2em; }
.jbflow-pv h6, .jbrich-ed h6 { font-size: .9em; font-weight: 600; margin: .4em 0 .2em; }
.jbflow-pv center, .jbrich-ed center { display: block; text-align: center; }
.jbflow-pv hr, .jbrich-ed hr { border: 0; border-top: 1px solid var(--line, #e6ebf2); margin: 8px 0; }

/* 字号过大的 WPS 内联样式在窄屏收敛（防止一行只放得下两三个字） */
@media (max-width: 480px) {
  .jbflow-pv [style*="font-size"], .jbrich-ed [style*="font-size"] { max-width: 100%; }
  .jbflow-pv table, .jbrich-ed table { font-size: 13px; }
  .jbflow-pv td, .jbflow-pv th, .jbrich-ed td, .jbrich-ed th { padding: 1px 4px; }
}

/* 详情页内容区里的表格同样按比例收缩 */
.jbd-content table { max-width: 100%; border-collapse: collapse; }
.jbd-content td, .jbd-content th { padding: 1px 5px; vertical-align: top; }

/* ==================================================================
 * v97.25 · 导入 WPS/Word 网页文件通道 + 拼音注音渲染兜底
 * 问题：手机端从 WPS 复制只给纯文本（剪贴板无 HTML），版式必丢；
 *       新增「导入WPS」按钮从导出的 *.html 文件完整还原表格/拼音/字号。
 * 另：部分老旧移动端 WebView 不默认以 ruby 渲染 <ruby>，这里强制 display。
 * ================================================================== */

/* --- 拼音注音：强制 ruby 渲染，避免个别 WebView 把注音与汉字拆成两行 --- */
.jbflow-pv ruby, .jbrich-ed ruby { display: ruby; ruby-position: over; -webkit-ruby-position: before; }
.jbflow-pv rt, .jbrich-ed rt { display: ruby-text; }
/* 多音字「yī / yì」双注音并排时收紧，避免互相挤占 */
.jbflow-pv rt + rt, .jbrich-ed rt + rt { margin-left: 2px; }

/* --- 工具条「导入WPS」按钮 --- */
.jbrich-fmt .jbf-imp {
  min-width: auto; height: 26px; padding: 0 8px;
  border: 1px solid var(--blue, #3D6BFF); border-radius: 6px;
  background: rgba(61,107,255,.08); color: var(--blue, #3D6BFF);
  font-size: 12px; line-height: 1; cursor: pointer; font-weight: 600;
}
.jbrich-fmt .jbf-imp:active { transform: scale(.95); background: rgba(61,107,255,.18); }

/* --- 导入失败占位（图片外链失效/本地相对路径取不到）提示 --- */
.jbf-failed {
  font-size: 11.5px; color: #E5484D; text-align: center;
  padding: 6px 4px; line-height: 1.4;
}

/* === v97.26 · PDF 整页转图导入 === */
/* PDF 页图：还原成整页高度（覆盖通用图片的 max-height:260px 压扁限制），白底像纸张 */
.jbf-img.jbf-pdf {
  max-height: none; width: 100%; height: auto; object-fit: fill;
  border-radius: 6px; background: #fff; box-shadow: 0 1px 6px rgba(20,30,60,.10);
}
/* 页码小标 */
.jbf-pgcap {
  text-align: center; color: var(--muted, #9aa3b2); font-size: 12px;
  margin: 2px 0 12px; letter-spacing: .5px;
}

/* === v97.27 · PDF 文字层（图片打底 + 透明可选中文字，全局搜索可命中原文字）=== */
.jbf-pdf-wrap { position: relative; display: block; max-width: 100%; line-height: 0; }
.jbf-pdf-wrap > img { display: block; width: 100%; height: auto; }
/* 文字层：透明文字叠在图片上，坐标用百分比 + cqw 自适应对齐图片显示尺寸 */
.jbf-pdf-tl {
  position: absolute; inset: 0; container-type: inline-size;
  color: transparent; line-height: 1; overflow: hidden;
  pointer-events: none;            /* 编辑态不干扰光标；只读态由 .jbf-node 下放开 */
  user-select: text; -webkit-user-select: text; -webkit-touch-callout: default;
}
.jbf-pdf-tl span { position: absolute; white-space: pre; transform-origin: left center; }
.jbf-pdf-tl ::selection { background: rgba(45, 91, 255, .28); color: transparent; }
/* 只读态：开放文字层可选中/划词复制 */
.jbf-node .jbf-pdf-tl { pointer-events: auto; }
/* 放大按钮：只读态文字层挡住图片点击时，用于打开图片查看器 */
.jbf-pdf-zoom {
  position: absolute; top: 6px; right: 6px; z-index: 3;
  width: 28px; height: 28px; border: none; border-radius: 50%;
  background: rgba(20, 30, 60, .55); color: #fff; font-size: 14px; line-height: 28px;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.jbf-pdf-zoom:active { background: rgba(20, 30, 60, .8); }

/* ==================================================================
 * v97.28 · 统一时间设置 / 录入区「?」帮助 / 首页去圆点
 * ================================================================== */

/* 统一时间设置区：标题沿用 .np-sec，右侧放「?」字段说明 */
.jbt-wrap { margin: 2px 0 4px; }
.jbt-sec { justify-content: space-between; }
.jbt-help, .jbrich-help {
  margin-left: auto; width: 20px; height: 20px; flex: 0 0 auto;
  border: 1px solid var(--line); border-radius: 50%; background: #fff;
  color: var(--muted-d); font-size: 12px; font-weight: 700; line-height: 18px;
  text-align: center; padding: 0; cursor: pointer;
}
.jbt-help:active, .jbrich-help:active { transform: scale(.92); }
.jbt-help-pop, .jbrich-help-pop {
  margin: 0 0 10px; padding: 9px 11px; border-radius: 8px;
  background: var(--bg-2, #EDF1FA); border: 1px solid var(--line);
  color: var(--muted-d); font-size: 11.5px; line-height: 1.7;
}
.jbrich-help-pop { margin-bottom: 8px; }

/* 统一表单：复用 .td-form 规范；备注 / 待办完成跟进占满整行 */
.jbt-form > label.full { grid-column: 1 / -1; }
.jbt-form textarea.input { width: 100%; box-sizing: border-box; }

/* v97.28：录入区常驻说明全部删除（DOM 已不输出，老缓存兜底隐藏） */
.jbrich-hint, .jbrich-fmt-tip { display: none !important; }

/* v97.28：首页红点 / 类型圆点 / 图例全部取消（DOM 已不输出，老缓存兜底隐藏） */
.jbh-dot-legend, .jbh-dots, .jbh-agg-dot, .jbi-dot { display: none !important; }

/* ============ v97.29：首页搜索框下方两行筛选标签 ============ */
.jbh-filters { display: flex; flex-direction: column; gap: 7px; margin: 10px 0 4px; }
.jbh-frow { display: flex; flex-wrap: nowrap; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.jbh-frow::-webkit-scrollbar { display: none; }
/* v97.40 需求一：嘉宝筛选标签对齐「房源库」配色（green-l底 / green-d字，选中 green-grad蓝白，无边框） */
.jbh-fchip { flex: 0 0 auto; white-space: nowrap; font-size: 12px; padding: 5px 12px; border-radius: 14px; border: 1px solid transparent; background: var(--green-l); color: var(--green-d); cursor: pointer; }
.jbh-fchip.on { background: var(--green-grad); border-color: transparent; color: #fff; box-shadow: 0 2px 6px rgba(31,111,74,.3); }
/* 逾期标签：未选中保持现有红色高亮；选中后「蓝底白字」，数字保持红色、小圆圈白色底（v97.40 需求一） */
.jbh-fchip.expired-alert { background: var(--red); border-color: transparent; color: #fff; box-shadow: 0 2px 6px rgba(232,84,74,.32); }
.jbh-fchip.expired-alert.on { background: var(--blue,#2E5BFF); border-color: var(--blue,#2E5BFF); color: #fff; box-shadow: 0 2px 6px rgba(46,91,255,.25); }
.jbh-fchip.expired-alert.on .od-num { background: #fff; color: var(--red); }

/* v97.29：新建任务「自定义周期」一句话同一行（修 .form-grid label 竖排导致的折行） */
.jbt-custom-line { flex-direction: row !important; align-items: center; gap: 6px !important; flex-wrap: wrap; }
.jbt-custom-line input[type="number"] { flex: 0 0 auto; }

/* ============ v97.31 需求2：新建任务 5 标签一组单选（内容板块内，整行铺满、禁止横滑） ============ */
.jbt-five-tabs{display:flex;flex-wrap:nowrap;align-items:stretch;width:100%;gap:3px;margin:0 0 10px;padding:3px;background:var(--green-ll,#eef6f1);border:1px solid var(--line-soft,#e4ebe8);border-radius:10px;overflow:visible}
.jbt-five-tabs .jft{flex:1 1 0;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center;
  border:0;background:transparent;color:var(--muted-d,#7d8b88);font-size:11px;font-weight:600;
  padding:6px 1px;border-radius:7px;cursor:pointer;line-height:1.2;transition:background .15s,color .15s}
.jbt-five-tabs .jft.active{background:#fff;color:var(--green,#2f7a5c);font-weight:800;box-shadow:0 1px 4px #183c3312}
@media (max-width:360px){.jbt-five-tabs{gap:2px;padding:2px}.jbt-five-tabs .jft{font-size:10px;padding:5px 0}}
/* 内容编辑器自带的模式标签弱化，避免与 5 标签重复争夺视觉（仍保留可点击，兼容历史回归） */
#tf_attach .jbrich-mode{margin-bottom:6px;padding-bottom:6px;opacity:.8}
#tf_attach .jbrich-mode .jbrich-tab{font-size:11px;padding:4px 9px}

/* ============ v97.31 需求4：全局事项总览 4 状态筛选（一行均分、禁止横滑） ============ */
.jbi-state{display:flex;flex-wrap:nowrap;width:100%;gap:5px;margin:0 0 12px}
.jbi-state .jbi-state-chip{flex:1 1 0;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center;
  border:1px solid var(--line);background:var(--bg-2,#f7f9fc);color:var(--muted-d);
  font-size:11.5px;padding:7px 2px;border-radius:9px;cursor:pointer;transition:all .15s}
.jbi-state .jbi-state-chip.sel{background:var(--blue,#2E5BFF);border-color:var(--blue,#2E5BFF);color:#fff;font-weight:700;box-shadow:0 2px 6px rgba(46,91,255,.25)}
@media (max-width:360px){.jbi-state{gap:3px}.jbi-state .jbi-state-chip{font-size:10.5px;padding:6px 1px}}

/* ============ v97.32 需求四：带看/待办记录页复用「全局事项总览」样式 ============ */
/* 分类统计栏 5 项同行横向展示，随屏宽自适应、禁止横向滑动 */
.jbi-stats.jbr-stats{grid-template-columns:repeat(5,minmax(0,1fr))}
@media (max-width:360px){.jbi-stats.jbr-stats{grid-template-columns:repeat(5,minmax(0,1fr));gap:3px}}
.jbi-over{flex:0 0 auto;color:var(--red,#E5484D);font-weight:700;font-size:11.5px}
.jbr-done-tag{flex:0 0 auto;color:var(--green-d,#1f6f4a);font-size:11.5px;font-weight:600}
.jbo-undone-tag{flex:0 0 auto;color:var(--orange,#E8833A);font-size:11.5px;font-weight:600}
/* 周期回访表单：开关行跨满整行、文字与开关同行且开关右对齐，避免长文案（如「停用该条周期回访」）折行 */
.cy-cycle-form > .switch-row{grid-column:1 / -1;flex-wrap:nowrap}
.cy-cycle-form > .switch-row > span{flex:1 1 auto;min-width:0}
.cy-cycle-form > .switch-row > .switch{flex:0 0 auto}

/* ============ v97.34 需求三：JBContent 六类事项编辑页统一「内容」板块 ============ */
/* 标题行「内容」+ 问号（最右）：沿用 .np-sec-row / .jbt-help，仅收紧对齐 */
.jbc-head{align-items:center}
.jbc-head .jbc-help{margin-left:8px}
.jbc-wrap{margin:0 0 12px}
/* 五项标签整行铺满、禁止横滑：沿用 .jbt-five-tabs（图文混排/分块录入/逐条录入/批量导入/模板套用） */
.jbc-tabs{margin-bottom:8px}
/* 互斥面板：同一时刻仅显示一个，各面板间距统一 */
.jbc-pane{width:100%}
.jbc-pane .picker-row{margin:0 0 8px}
.jbc-pane textarea.input{margin-bottom:8px}
.jbc-pane .jbt-tpl-list{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 8px}
.jbc-chips{margin:6px 0 2px}
/* 隐藏内层重复标签栏后，JBRich 编辑区顶部留白收紧 */
.jbc-pane[data-p="rich"] .jbrich-addrow{margin-top:2px}
/* 问号 → 五种录入方式功能说明页 */
.jbc-help-tip{font-size:12.5px;color:var(--muted-d);line-height:1.7;padding:2px 2px 12px}
.jbc-help-card{margin:0 0 10px;padding:11px 13px}
.jbc-help-h{display:flex;align-items:center;gap:8px;margin-bottom:6px;font-size:13.5px}
.jbc-help-no{width:20px;height:20px;flex:0 0 auto;border-radius:50%;background:var(--green-ll,#eef6f1);color:var(--green-d,#1f6f4a);font-size:11px;font-weight:800;text-align:center;line-height:20px}
.jbc-help-d{font-size:12px;color:var(--muted-d);line-height:1.75}

/* ============ v97.34 需求六：工作台「最近删除」模块（仿嘉宝回收站） ============ */
.jbdel-tip{font-size:12px;color:var(--muted,#94a3b8);padding:4px 2px 10px;line-height:1.6}
.jbdel-row{display:flex;align-items:center;gap:8px;padding:10px 0;border-bottom:1px dashed var(--line,#e6ebf2)}
.jbdel-row:last-child{border-bottom:0}
.jbdel-ico{width:8px;height:32px;border-radius:4px;flex:0 0 auto;background:var(--blue,#2E5BFF);opacity:.75}
.jbdel-body{flex:1;min-width:0}
.jbdel-t{font-size:14px;font-weight:600;word-break:break-word}
.jbdel-s{font-size:11.5px;color:var(--muted,#94a3b8);margin-top:2px}
.jbdel-row .btn{flex:0 0 auto;padding:5px 10px}
.jbdel-empty{font-size:12.5px;color:var(--muted,#94a3b8);padding:8px 2px}
@media (max-width:360px){.jbdel-row{gap:6px}.jbdel-row .btn{padding:4px 8px;font-size:11px}}

/* ============ v97.38：周期回访全模块布局与逻辑整合 ============ */
/* 需求一：三处管理区等级/热度标签行 —— 「周期回访」按钮同行，整行自适应字号/间距，
   完整展示全部选项，禁止横向滑动（nowrap + 弹性均分 + 字号随屏宽缩放） */
.grade-row.cyc-inline{display:flex;flex-wrap:nowrap;gap:4px;width:100%;overflow:hidden}
.grade-row.cyc-inline > .grade-btn{
  flex:1 1 0;min-width:0;min-height:36px;padding:3px 2px;
  font-size:clamp(10px,2.9vw,13px);line-height:1.35;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis
}
.grade-row.cyc-inline > .grade-btn.cyc-open{
  flex:1.3 1 0;background:#F0F7FF;color:#1E5FA8;border-color:#BBD7F5;font-weight:700
}
.grade-row.cyc-inline > .grade-btn.cyc-open:active{background:#1E88E5;color:#fff}
@media (max-width:340px){.grade-row.cyc-inline{gap:3px}.grade-row.cyc-inline > .grade-btn{font-size:10px;padding:2px 1px}}

/* 需求二·3：管理区「下次回访时间 / 回访状态」展示 */
.cyc-status{margin-top:8px;padding:6px 9px;border-radius:8px;font-size:12px;font-weight:600;
  color:var(--muted-d);background:#F6F8FA;line-height:1.5}
.cyc-status.overdue{color:var(--red);background:#FFF1F0}
.cyc-status.today{color:#B45309;background:#FFF7E6}
.cyc-status.future{color:#18794E;background:#F0FBF4}
.cyc-status.off{color:var(--muted);background:#F2F3F5}

/* 周期回访配置面板：状态摘要 + 规则说明 */
.cyc-summary{margin:10px 0 4px;padding:7px 10px;border-radius:8px;font-size:12.5px;font-weight:700;
  color:var(--muted-d);background:#F6F8FA;line-height:1.5}
.cyc-summary.overdue{color:var(--red);background:#FFF1F0}
.cyc-summary.today{color:#B45309;background:#FFF7E6}
.cyc-summary.future{color:#18794E;background:#F0FBF4}
.cyc-summary.off{color:var(--muted);background:#F2F3F5}
.cyc-rule-hint{font-size:11.5px;color:var(--muted);line-height:1.6;margin:0 0 10px}

/* 需求三：跟进板块两类待办条目版式 */
.todo-item.todo-cycle{align-items:flex-start}
.cyc-flag{flex:0 0 auto;width:34px;padding:4px 2px;border-radius:8px;background:#EFE9FE;color:#6D28D9;
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;
  font-size:10.5px;font-weight:700;line-height:1.25;text-align:center}
.todo-pin-tag{flex:0 0 auto}
.cyc-tt,.manual-tt{justify-content:space-between;gap:6px;flex-wrap:nowrap}
.cyc-title,.manual-content{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cyc-time,.manual-start{flex:0 0 auto;margin-left:auto;font-size:11px;font-weight:600;color:var(--muted-d);white-space:nowrap}
.cyc-desc{display:flex;align-items:center;justify-content:space-between;gap:6px}
.cyc-sub{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cyc-over,.manual-over{flex:0 0 auto;margin-left:auto;color:var(--red);font-weight:700;font-size:11.5px}
.manual-end{display:flex;align-items:center;justify-content:flex-end;gap:6px}
.manual-end-txt{margin-left:auto;font-size:11px;color:var(--muted)}
.manual-end.is-over .manual-end-txt{color:var(--red);font-weight:700}
@media (max-width:360px){.cyc-flag{width:30px;font-size:10px}.cyc-time,.manual-start{font-size:10.5px}}

/* ============ v97.39：跟进板块待办条目统一两行纯展示 ============
   需求一：条目内不再内嵌「完成/未完成/改期/删除」按钮，仅承载信息展示；
   需求二：统一两行 —— 首行左标题/右开始时间，次行左补充说明/右截止时间+逾期标；
   需求三：周期类移除最左侧方形「周期回访」图标，改为次行最左紫色「周期」二字标识。 */
/* 覆盖 v97.38 .todo-cycle 的 flex-start（左侧方形图标已移除） */
.todo-item.todo-cycle{align-items:center}
.todo-row1,.todo-row2{display:flex;align-items:center;gap:6px;flex-wrap:nowrap;min-width:0}
.todo-row1{justify-content:space-between}
.todo-title{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.todo-start{flex:0 0 auto;margin-left:auto;font-size:11px;font-weight:600;color:var(--muted-d);white-space:nowrap}
.todo-row2{justify-content:flex-start}
.cyc-tag{flex:0 0 auto;font-size:10px;font-weight:700;color:#6D28D9;background:#EFE9FE;
  padding:1px 5px;border-radius:5px;line-height:1.5;white-space:nowrap}
.todo-sub{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.todo-end-txt{flex:0 0 auto;margin-left:auto;font-size:11px;color:var(--muted);white-space:nowrap}
.todo-over{flex:0 0 auto;color:var(--red);font-weight:700;font-size:11.5px;white-space:nowrap}
.todo-row2.is-over .todo-end-txt{color:var(--red);font-weight:700}
@media (max-width:360px){.todo-start,.todo-end-txt,.todo-sub{font-size:10.5px}}

