/*
 * 久合报单 · 全站样式（唯一的一份）—— 2026-10-06 改版（董事长认可第二版样稿，"网页的和手机的都部署"）
 *
 * 样子从哪来：
 * - 电脑（≥900px）：左边分组菜单 ＋ 顶栏 ＋ 内容区；浅灰底、白卡片；表格上面查询条件、中间表格、下面翻页。
 *   这是阿里 Ant Design Pro、字节 Arco Pro、腾讯 TDesign 这些通用后台的格局（10-06 学过、截过它们的演示页）。
 * - 手机（<900px）：顶上一条、底部图标导航、大标题、一类一行、点进去是新的一页（10-05 定的手机版 A，换成久合蓝）。
 * - 颜色跟久合官网同一个蓝 #1F6FEB；字和灰是冷一点的中性灰；状态色（绿对上、黄在等、红不对、灰作废）只用在小标签和提示条上。
 *   深色模式给夜班客服用：跟系统走，也能在"账号 → 外观"里手动选。
 * - 数字：大数字用 DIN 一类的数字字体（苹果自带 DIN Alternate、Windows 自带 Bahnschrift），表格里数字等宽对齐。
 * - 中文一律系统字体，⛔ 不挂网络字体（谷歌字体国内打不开；安全策略也只放行本站）。
 * 红线（旧裁定）："界面整体不得高度近似原系统" —— 左边菜单加表格是所有后台通用的格局；颜色、组件、排布细节都是我们自己的。
 *
 * 做页面的规矩：⛔ 页面里不写颜色（只用这里的变量）；状态标签用 BD.statusTag；金额用 .num / .money 对齐。
 */
:root {
  --bg: #F2F3F5;
  --surface: #FFFFFF;
  --surface-2: #F7F8FA;
  --surface-3: #EFF1F4;
  --sider: #FFFFFF;
  --line: #E5E6EB;
  --line-soft: #EEF0F2;
  --ink: #1D2129;
  --ink-2: #4E5969;
  --ink-3: #86909C;
  --ink-4: #C9CDD4;
  --brand: #1F6FEB;
  --brand-hover: #3A82F0;
  --brand-press: #1659C7;
  --brand-soft: #EAF1FE;
  --brand-soft-2: #D3E3FD;
  --on-brand: #FFFFFF;
  --ok: #0E9F6E;
  --ok-ink: #067A55;
  --ok-soft: #E6F6EF;
  --warn: #E37318;
  --warn-ink: #B35A0E;
  --warn-soft: #FDF0E3;
  --bad: #D54941;
  --bad-ink: #B9302A;
  --bad-soft: #FCEBEA;
  --gray-soft: #F2F3F5;
  --alert: #7C3AED;
  --alert-ink: #5B21B6;
  --alert-soft: #F3E8FF;
  --up: #D54941;
  --down: #0E9F6E;
  --s1: #1F6FEB; --s2: #EB6834; --s3: #1BAF7A; --s4: #EDA100; --s5: #E87BA4; --s6: #008300; --s7: #4A3AA7; --s8: #E34948;
  --s-other: #C9CDD4;
  --grid: #EEF0F2;
  --axis: #C9CDD4;
  --scrim: rgba(29, 33, 41, .32);
  --bar: rgba(255, 255, 255, .86);
  --shadow-pop: 0 14px 36px -10px rgba(29, 33, 41, .22), 0 2px 6px rgba(29, 33, 41, .06);
  --shadow-drawer: -12px 0 36px -12px rgba(29, 33, 41, .22);
  --shadow-cell: 0 1px 2px rgba(29, 33, 41, .04), 0 6px 18px -10px rgba(29, 33, 41, .12);
  --r-card: 10px;
  --r-ctl: 6px;
  --r-tag: 4px;
  --sider-w: 220px;
  --header-h: 56px;
  --tab-h: 56px;
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", "Segoe UI", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", system-ui, sans-serif;
  --font-num: "DIN Alternate", "Bahnschrift", "SF Pro Display", -apple-system, "Segoe UI", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E1014; --surface: #171A1F; --surface-2: #1C2026; --surface-3: #242930; --sider: #131619;
    --line: #2A2F37; --line-soft: #22262D;
    --ink: #E6E9EE; --ink-2: #B3BAC4; --ink-3: #858E9A; --ink-4: #4E5662;
    --brand: #4C8DF6; --brand-hover: #6AA1F8; --brand-press: #3A78DB; --brand-soft: rgba(76, 141, 246, .14); --brand-soft-2: rgba(76, 141, 246, .26); --on-brand: #FFFFFF;
    --ok: #2FBF8A; --ok-ink: #52D3A2; --ok-soft: rgba(47, 191, 138, .14);
    --warn: #F0913F; --warn-ink: #F6A964; --warn-soft: rgba(240, 145, 63, .15);
    --bad: #F06A62; --bad-ink: #F78C85; --bad-soft: rgba(240, 106, 98, .15);
    --gray-soft: #22262D; --up: #F06A62; --down: #2FBF8A;
    --alert: #A78BFA; --alert-ink: #C4B5FD; --alert-soft: rgba(124, 58, 237, .18);
    --s1: #3E86F5; --s2: #D95926; --s3: #199E70; --s4: #C98500; --s5: #D55181; --s6: #008300; --s7: #9085E9; --s8: #E66767;
    --s-other: #4E5662; --grid: #22262D; --axis: #3A404A;
    --scrim: rgba(0, 0, 0, .55); --bar: rgba(23, 26, 31, .86);
    --shadow-pop: 0 14px 36px -10px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .06);
    --shadow-drawer: -12px 0 36px -12px rgba(0, 0, 0, .7);
    --shadow-cell: 0 0 0 1px rgba(255, 255, 255, .04);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0E1014; --surface: #171A1F; --surface-2: #1C2026; --surface-3: #242930; --sider: #131619;
  --line: #2A2F37; --line-soft: #22262D;
  --ink: #E6E9EE; --ink-2: #B3BAC4; --ink-3: #858E9A; --ink-4: #4E5662;
  --brand: #4C8DF6; --brand-hover: #6AA1F8; --brand-press: #3A78DB; --brand-soft: rgba(76, 141, 246, .14); --brand-soft-2: rgba(76, 141, 246, .26); --on-brand: #FFFFFF;
  --ok: #2FBF8A; --ok-ink: #52D3A2; --ok-soft: rgba(47, 191, 138, .14);
  --warn: #F0913F; --warn-ink: #F6A964; --warn-soft: rgba(240, 145, 63, .15);
  --bad: #F06A62; --bad-ink: #F78C85; --bad-soft: rgba(240, 106, 98, .15);
  --alert: #A78BFA; --alert-ink: #C4B5FD; --alert-soft: rgba(124, 58, 237, .18);
  --gray-soft: #22262D; --up: #F06A62; --down: #2FBF8A;
  --s1: #3E86F5; --s2: #D95926; --s3: #199E70; --s4: #C98500; --s5: #D55181; --s6: #008300; --s7: #9085E9; --s8: #E66767;
  --s-other: #4E5662; --grid: #22262D; --axis: #3A404A;
  --scrim: rgba(0, 0, 0, .55); --bar: rgba(23, 26, 31, .86);
  --shadow-pop: 0 14px 36px -10px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .06);
  --shadow-drawer: -12px 0 36px -12px rgba(0, 0, 0, .7);
  --shadow-cell: 0 0 0 1px rgba(255, 255, 255, .04);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 14px/1.57 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; -webkit-text-size-adjust: 100%;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { -webkit-tap-highlight-color: transparent; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-hover); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
svg { flex-shrink: 0; }
h1, h2, h3, h4 { margin: 0; }
p { margin: 0; }
.num, .money { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--font-mono); font-size: .92em; letter-spacing: -.01em; }
.muted { color: var(--ink-3); }
.ink2 { color: var(--ink-2); }
.up { color: var(--up); }
.down { color: var(--down); }
.neg { color: var(--bad-ink); }
.okc { color: var(--ok-ink); }
.warnc { color: var(--warn-ink); }
.nowrap { white-space: nowrap; }
.ell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.grow { flex: 1; min-width: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------- 骨架（电脑） ---------------- */
.app { display: grid; grid-template-columns: var(--sider-w) minmax(0, 1fr); min-height: 100%; transition: grid-template-columns .22s var(--ease); }
.app.collapsed { --sider-w: 64px; }
.sider {
  position: sticky; top: 0; height: 100vh; height: 100dvh; display: flex; flex-direction: column;
  background: var(--sider); border-right: 1px solid var(--line); z-index: 30; overflow: hidden;
}
.brandbar { height: var(--header-h); display: flex; align-items: center; gap: 10px; padding: 0 18px; flex-shrink: 0; white-space: nowrap; color: var(--ink); }
.brandbar:hover { color: var(--ink); }
.brandmark { width: 28px; height: 28px; border-radius: 7px; background: var(--brand); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.brandname { font-weight: 600; font-size: 15px; letter-spacing: .3px; }
.store { margin: 0 12px 6px; padding: 8px 10px; border-radius: 8px; background: var(--surface-2); display: flex; align-items: center; gap: 8px; white-space: nowrap; overflow: hidden; }
.store-name { font-size: 13px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
.chip-demo { font-size: 11px; line-height: 18px; padding: 0 6px; border-radius: 4px; background: var(--warn-soft); color: var(--warn-ink); flex-shrink: 0; }
.menu { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 4px 0 12px; scrollbar-width: thin; }
.menu-group { padding: 14px 22px 4px; font-size: 12px; color: var(--ink-3); white-space: nowrap; }
/* E1：大类手风琴（默认只露标题；收起时 badge 上浮） */
.menu-group-btn {
  position: relative; display: flex; align-items: center; gap: 8px;
  width: calc(100% - 20px); margin: 8px 10px 2px; padding: 0 12px; height: 30px;
  border: 0; background: transparent; border-radius: 6px;
  color: var(--ink-3); font-size: 12px; cursor: pointer; text-align: left; white-space: nowrap; user-select: none;
  transition: background .15s, color .15s;
}
.menu-group-btn:hover { background: var(--surface-3); color: var(--ink-2); }
.menu-group-btn.curr { color: var(--ink-2); }
.menu-group-btn .menu-group-lab { flex: 1; overflow: hidden; text-overflow: ellipsis; font-weight: 500; letter-spacing: .02em; }
.menu-group-btn .badge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--bad); color: #fff; font-size: 11px; line-height: 18px; text-align: center; font-weight: 500; font-family: var(--font-num); }
.menu-group-btn .menu-group-chev { display: grid; place-items: center; flex-shrink: 0; opacity: .65; color: inherit; }
.menu-group-btn .menu-group-chev svg { display: block; }
.menu-sub[hidden] { display: none !important; }
.app.collapsed .menu-group-btn { display: none; }
.app.collapsed .menu-group-btn .badge, .app.collapsed .menu-group-btn .menu-group-lab, .app.collapsed .menu-group-btn .menu-group-chev { display: none; }
.menu-item {
  position: relative; display: flex; align-items: center; gap: 10px; height: 36px; margin: 1px 10px; padding: 0 12px;
  border-radius: 6px; color: var(--ink-2); cursor: pointer; white-space: nowrap; user-select: none; text-align: left; font-size: 14px;
  transition: background .15s, color .15s;
}
.menu-item:hover { background: var(--surface-3); color: var(--ink); }
.menu-item.on { background: var(--brand-soft); color: var(--brand); font-weight: 500; }
/* 选中项的底色是一块滑块（app.js placePill；换页时从上一项滑过来，照 Aceternity「Tabs」） */
.menu { position: relative; }
.menu-pill { position: absolute; left: 10px; right: 10px; top: 0; z-index: 0; border-radius: 6px; background: var(--brand-soft); pointer-events: none; }
.menu.has-pill .menu-item { z-index: 1; }
.menu.has-pill .menu-item.on { background: transparent; }
.menu-item .label { flex: 1; overflow: hidden; text-overflow: ellipsis; }
.menu-item .badge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--bad); color: #fff; font-size: 11px; line-height: 18px; text-align: center; font-weight: 500; font-family: var(--font-num); }
.sider-foot { border-top: 1px solid var(--line-soft); padding: 8px 10px; flex-shrink: 0; }
.app.collapsed .brandname, .app.collapsed .store, .app.collapsed .menu-group, .app.collapsed .menu-group-btn, .app.collapsed .menu-item .label, .app.collapsed .menu-item .badge, .app.collapsed .sider-foot .label { display: none; }
.app.collapsed .menu-item { justify-content: center; padding: 0; margin: 2px 12px; }
.app.collapsed .menu-item .dotbadge { display: block; }
.dotbadge { display: none; position: absolute; top: 7px; right: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--bad); }

.main { min-width: 0; display: flex; flex-direction: column; }
.header {
  position: sticky; top: 0; z-index: 25; height: var(--header-h); display: flex; align-items: center; gap: 14px; padding: 0 20px;
  background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.crumbs { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 14px; color: var(--ink-3); white-space: nowrap; }
.crumbs a { color: var(--ink-3); }
.crumbs a:hover { color: var(--brand); }
.crumbs b { color: var(--ink); font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
.crumbs .sep { color: var(--ink-4); }
.gsearch {
  display: flex; align-items: center; gap: 8px; width: 320px; max-width: 32vw; height: 34px; padding: 0 10px; margin-left: 6px;
  border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line-soft); color: var(--ink-3); cursor: text;
  transition: border-color .15s, background .15s;
}
.gsearch:hover { border-color: var(--line); background: var(--surface); }
.gsearch span { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; text-align: left; }
kbd { font-family: var(--font-num); font-size: 11px; padding: 1px 5px; border-radius: 4px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-3); }
.hspace { flex: 1; }
.hactions { display: flex; align-items: center; gap: 6px; }
.iconbtn {
  position: relative; width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent;
  color: var(--ink-2); cursor: pointer; transition: background .15s, color .15s; flex-shrink: 0;
}
.iconbtn:hover { background: var(--surface-3); color: var(--ink); }
.iconbtn .pip { position: absolute; top: 1px; left: 18px; min-width: 15px; height: 15px; padding: 0 4px; border-radius: 8px; background: var(--bad); color: #fff; font-size: 10px; line-height: 15px; font-weight: 600; border: 2px solid var(--surface); box-sizing: content-box; font-family: var(--font-num); text-align: center; }
.me { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 8px 0 4px; border-radius: 18px; cursor: pointer; border: 0; background: transparent; }
.me:hover { background: var(--surface-3); }
.me .who { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.me .who b { font-size: 13px; font-weight: 500; }
.me .who small { font-size: 11px; color: var(--ink-3); }
.menu-toggle { display: none; }
.hback { display: none; }
.htitle { display: none; }

.content { padding: 20px 24px 40px; min-width: 0; flex: 1; }
.content > * { animation: view-in .26s var(--ease); }
@keyframes view-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------------- 通用块 ---------------- */
.page-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; min-height: 32px; }
.page-title { font-size: 18px; font-weight: 600; margin: 0; letter-spacing: .2px; display: flex; align-items: center; gap: 10px; min-width: 0; }
.page-sub { color: var(--ink-3); font-size: 13px; }
.page-head .grow { flex: 1; }
.page-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack.sm { gap: 10px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row.nowrap { flex-wrap: nowrap; }
.between { justify-content: space-between; }
.grid { display: grid; gap: 16px; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-2-1 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.g-1-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.g-3-2 { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
.card { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-card); min-width: 0; }

/* 经营日账：先看日期、金额和来源，报表按需展开。 */
.dash-period-controls { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.dash-dates { display: grid; gap: 12px; padding: 12px; margin-bottom: 14px; }
.dash-custom-dates { display: grid; grid-template-columns: minmax(0, 10rem) auto minmax(0, 10rem) auto; gap: 8px; align-items: center; justify-content: start; }
.dash-custom-dates input { width: 100%; min-width: 0; }
.dash-ledger { display: grid; gap: 12px; }
.dash-ledger-date { display: flex; justify-content: space-between; align-items: baseline; gap: 8px 16px; flex-wrap: wrap; }
.dash-ledger-date h2 { margin: 0; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-size: 20px; }
.dash-ledger-date time { color: var(--ink-2); }
.dash-ledger-date h2 span + time { font-size: 15px; font-weight: 500; }
.dash-ledger-totals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dash-ledger-total { min-width: 0; padding: 16px 20px; }
.dash-ledger-total + .dash-ledger-total { border-left: 1px solid var(--line-soft); }
.dash-ledger-label { display: flex; gap: 4px 8px; align-items: baseline; flex-wrap: wrap; }
.dash-ledger-label small, .dash-peer-date small { color: var(--ink-2); font-size: 12px; }
.dash-ledger-amount { display: block; margin: 4px 0 10px; font-family: var(--font-num); font-size: clamp(26px, 4vw, 42px); line-height: 1.08; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.dash-ledger-amount.compact { font-size: clamp(20px, 3vw, 34px); }
.dash-ledger-facts { display: grid; gap: 5px; color: var(--ink-2); font-size: 13px; max-width: 320px; }
.dash-ledger-fact { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 10px; }
.dash-ledger-fact .num { color: var(--ink); }
.dash-ledger-peer { display: grid; width: 100%; grid-template-columns: minmax(92px, 1fr) minmax(0, 1.1fr) minmax(0, 1.1fr) auto; gap: 8px 14px; align-items: center; text-align: left; padding: 11px 16px; color: var(--ink); cursor: pointer; }
.dash-ledger-peer:hover { border-color: var(--line); }
.dash-peer-date, .dash-peer-money { display: flex; align-items: baseline; gap: 3px 8px; flex-wrap: wrap; min-width: 0; }
.dash-peer-money > span:first-child { color: var(--ink-2); font-size: 13px; }
.dash-peer-money .num { font-weight: 650; overflow-wrap: anywhere; }
.dash-ledger-sources { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.dash-ledger-entries { padding: 12px 16px 5px; }
.dash-ledger-entries-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.dash-ledger-entries-head h3 { margin: 0; font-size: 15px; }
.dash-ledger-link { padding: 6px 0 6px 8px; border: 0; background: transparent; color: var(--brand); font: inherit; font-size: 13px; cursor: pointer; white-space: nowrap; }
.dash-ledger-list { list-style: none; margin: 4px 0 0; padding: 0; }
.dash-ledger-entry { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; border-top: 1px solid var(--line-soft); padding: 7px 0; }
.dash-ledger-entry .num { font-size: 16px; font-weight: 650; }
.dash-ledger-entry-source { min-width: 0; }
.dash-ledger-entry-source .muted { font-size: 12px; }
.dash-ledger-entry-title { display: flex; gap: 2px 7px; flex-wrap: wrap; align-items: baseline; overflow-wrap: anywhere; }
.dash-ledger-empty { padding: 10px 0 12px; }
.dash-ledger-check { align-items: center; justify-content: space-between; }
.dash-reports { margin-top: 12px; }
.dash-report-toggle { cursor: pointer; padding: 12px 16px; }
.dash-report-toggle b { margin-right: 8px; }
.dash-report-toggle .muted { font-size: 13px; }
.dash-report-body, .dash-report-check { padding: 0 16px 16px; }
.dash-report-body { padding-top: 12px; border-top: 1px solid var(--line-soft); }
@media (max-width: 700px) {
  .dash-page-head { position: absolute; width: 1px; min-height: 0; height: 1px; margin: 0; overflow: hidden; clip-path: inset(50%); }
  .dash-ledger { gap: 10px; }
  .dash-ledger-total { padding: 12px; }
  .dash-ledger-sources { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .dash-ledger-peer { padding: 9px 12px; gap: 6px 8px; grid-template-columns: minmax(61px, .8fr) repeat(2, minmax(0, 1fr)) auto; }
  .dash-peer-date, .dash-peer-money { display: grid; gap: 2px; }
  .dash-ledger-entries { padding: 8px 12px 4px; }
  .dash-custom-dates { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
  .dash-custom-dates button { grid-column: 1 / -1; }
}
.card-head { display: flex; align-items: center; gap: 10px; padding: 14px 20px 0; min-height: 46px; flex-wrap: wrap; }
.card-title { font-size: 15px; font-weight: 600; margin: 0; display: flex; align-items: center; gap: 8px; }
.card-sub { color: var(--ink-3); font-size: 12.5px; }
.card-head .grow { flex: 1; }
.card-body { padding: 14px 20px 18px; }
.card-body.flush { padding: 8px 0 0; }
.card-body.flush0 { padding: 0; }
.divider { height: 1px; background: var(--line-soft); margin: 0; border: 0; }
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 11px 14px; border-radius: 8px; font-size: 13.5px; line-height: 1.6; background: var(--surface-2); color: var(--ink-2); }
.notice > svg { margin-top: 2px; }
.notice b { color: var(--ink); }
.notice.ok { background: var(--ok-soft); color: var(--ok-ink); }
.notice.warn { background: var(--warn-soft); color: var(--warn-ink); }
.notice.bad { background: var(--bad-soft); color: var(--bad-ink); }
.notice.info { background: var(--brand-soft); color: var(--brand); }
.notice .grow { color: inherit; }

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; padding: 0 14px; border-radius: var(--r-ctl);
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; white-space: nowrap; font-size: 14px; text-decoration: none;
  transition: background .15s, border-color .15s, color .15s, transform .08s;
}
.btn:hover { border-color: var(--brand); color: var(--brand); }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.btn.primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); color: var(--on-brand); }
.btn.primary:active { background: var(--brand-press); }
.btn.danger { color: var(--bad-ink); }
.btn.danger:hover { border-color: var(--bad); color: var(--bad); }
.btn.danger.solid { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn.ok.solid { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn.ghost { border-color: transparent; background: transparent; color: var(--ink-2); }
.btn.ghost:hover { background: var(--surface-3); color: var(--ink); }
.btn.sm { height: 26px; padding: 0 10px; font-size: 13px; }
.btn.lg { height: 40px; padding: 0 20px; font-size: 15px; }
.btn.block { width: 100%; }
.btn[disabled], .btn.busy { opacity: .45; pointer-events: none; }
.btn.busy::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
.btn.busy[disabled], .btn.st-done[disabled] { opacity: 1; }
.btn.st-done { color: var(--ok-ink); border-color: var(--ok); }
.btn.primary.st-done, .btn.btn-primary.st-done, .btn.solid.st-done { color: #fff; background: var(--ok); border-color: var(--ok); }
@keyframes spin { to { transform: rotate(360deg); } }
.link { color: var(--brand); cursor: pointer; background: none; border: 0; padding: 0; font-size: inherit; white-space: nowrap; }
.link:hover { color: var(--brand-hover); }
.link.danger { color: var(--bad-ink); }
.link[disabled] { opacity: .45; pointer-events: none; }
.links { display: inline-flex; gap: 12px; }

/* 标签 */
.tag { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: var(--r-tag); font-size: 12px; font-weight: 500; white-space: nowrap; line-height: 1; }
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .9; }
.tag.plain::before { display: none; }
.tag.warn { background: var(--warn-soft); color: var(--warn-ink); }
.tag.ok { background: var(--ok-soft); color: var(--ok-ink); }
.tag.bad { background: var(--bad-soft); color: var(--bad-ink); }
.tag.info { background: var(--brand-soft); color: var(--brand); }
.tag.gray { background: var(--gray-soft); color: var(--ink-3); }
.tag.alert { background: var(--alert-soft); color: var(--alert-ink); }
.who-cell { display: inline-flex; align-items: baseline; gap: 6px; white-space: nowrap; max-width: 100%; }
.who-cell .mono { color: var(--ink-3); font-size: 12px; }
.who-cell .nm { overflow: hidden; text-overflow: ellipsis; }
.ava { width: 24px; height: 24px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 11px; font-weight: 600; color: #fff; flex-shrink: 0; }
.ava.c1 { background: var(--s1); } .ava.c2 { background: var(--s2); } .ava.c3 { background: var(--s3); } .ava.c4 { background: var(--s4); }
.ava.c5 { background: var(--s5); } .ava.c6 { background: var(--s6); } .ava.c7 { background: var(--s7); } .ava.c8 { background: var(--s8); }

/* 输入 */
.input, .select {
  height: 32px; padding: 0 10px; border-radius: var(--r-ctl); border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  outline: none; transition: border-color .15s, box-shadow .15s; min-width: 0; font-size: 14px;
}
.input:hover, .select:hover { border-color: var(--ink-4); }
/* 点进去亮一圈、底下透一点光（2026-10-09 照 Uiverse 的输入框） */
.input:focus, .select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft), 0 8px 18px -12px var(--brand); }
.input::placeholder, textarea::placeholder { color: var(--ink-3); }
.input.err { border-color: var(--bad); }
textarea.input { height: auto; min-height: 64px; padding: 8px 10px; resize: vertical; line-height: 1.5; width: 100%; }
.select { appearance: none; padding-right: 28px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2386909C' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 9px center; cursor: pointer; }
.input.money { font-family: var(--font-num); font-size: 15px; }
.search { position: relative; display: flex; align-items: stretch; height: 32px; border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--surface); transition: border-color .15s, box-shadow .15s; min-width: 0; }
.search:hover { border-color: var(--ink-4); }
.search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.search .scope { border: 0; border-right: 1px solid var(--line-soft); background-color: var(--surface-2); border-radius: var(--r-ctl) 0 0 var(--r-ctl); height: 100%; padding: 0 26px 0 10px; font-size: 13px; color: var(--ink-2); }
.search .scope:focus { box-shadow: none; }
.search .sbox { position: relative; flex: 1; display: flex; min-width: 0; }
.search input { flex: 1; border: 0; outline: none; background: transparent; padding: 0 8px 0 30px; min-width: 0; font-size: 13.5px; }
.search input::-webkit-search-cancel-button { display: none; }
.search .ico { position: absolute; left: 9px; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.search .clear { border: 0; background: transparent; color: var(--ink-3); cursor: pointer; padding: 0 8px; display: grid; place-items: center; }
.search .sbox-ph { position: absolute; left: 30px; right: 8px; top: 0; bottom: 0; display: flex; align-items: center; color: var(--ink-4); font-size: 13.5px; pointer-events: none; white-space: nowrap; overflow: hidden; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .field > .lbl { font-size: 13px; color: var(--ink-2); display: flex; align-items: center; gap: 6px; }
.field .req { color: var(--bad); }
.field .input, .field .select, .field textarea { width: 100%; }
.field .err-text { font-size: 12.5px; color: var(--bad-ink); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 16px; }
.form-grid .full { grid-column: 1 / -1; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; cursor: pointer; color: var(--ink-2); }
.check input { width: 15px; height: 15px; accent-color: var(--brand); }
/* 勾选框、开关（2026-10-09 照 Uiverse：勾选框是圆角小方块，勾上底色铺满、对勾弹一下出来；开关是拨动的小圆钮） */
input[type=checkbox] { -webkit-appearance: none; appearance: none; width: 16px; height: 16px; margin: 0; flex-shrink: 0; display: inline-grid; place-content: center; vertical-align: middle; cursor: pointer;
  border: 1.5px solid var(--ink-4); border-radius: 4px; background: var(--surface); transition: background .18s, border-color .18s, box-shadow .18s; }
input[type=checkbox]::before { content: ""; width: 8px; height: 4.5px; border: 2px solid #FFFFFF; border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg) scale(0); transition: transform .24s cubic-bezier(.34, 1.56, .64, 1); }
input[type=checkbox]:hover { border-color: var(--brand); }
input[type=checkbox]:checked, input[type=checkbox]:indeterminate { background: var(--brand); border-color: var(--brand); }
input[type=checkbox]:checked::before { transform: translateY(-1px) rotate(-45deg) scale(1); }
input[type=checkbox]:indeterminate::before { width: 8px; height: 0; border-width: 0 0 2px 0; transform: none; }
input[type=checkbox]:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--brand-soft); }
input[type=checkbox]:disabled { opacity: .45; cursor: not-allowed; }
input[type=checkbox].switch { width: 34px; height: 20px; border-radius: 10px; border: 0; background: var(--ink-4); place-content: center start; padding: 2px; }
input[type=checkbox].switch::before { width: 16px; height: 16px; border: 0; border-radius: 50%; background: #FFFFFF; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transform: none; transition: transform .26s cubic-bezier(.34, 1.56, .64, 1); }
input[type=checkbox].switch:checked { background: var(--brand); }
input[type=checkbox].switch:checked::before { transform: translateX(14px); }
.sec-title { font-size: 14px; font-weight: 600; margin: 4px 0 12px; display: flex; align-items: center; gap: 8px; }
.sec-title .grow { flex: 1; }
.info-i { display: inline-grid; color: var(--ink-3); cursor: help; }

/* 分段切换 */
.seg { display: inline-flex; padding: 2px; border-radius: 8px; background: var(--surface-3); gap: 2px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { height: 28px; padding: 0 12px; border: 0; border-radius: 6px; background: transparent; color: var(--ink-2); cursor: pointer; font-size: 13px; white-space: nowrap; transition: background .15s, color .15s; }
.seg button:hover { color: var(--ink); }
.seg button.on { background: var(--surface); color: var(--ink); font-weight: 500; box-shadow: 0 1px 2px rgba(29, 33, 41, .08); }
.seg.sm button { height: 24px; padding: 0 10px; font-size: 12.5px; }
.seg.full { display: flex; }
.seg.full button { flex: 1; }

/* 页签（状态按钮带数字） */
.tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line-soft); padding: 0 20px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { position: relative; height: 44px; border: 0; background: transparent; color: var(--ink-2); cursor: pointer; padding: 0 2px; white-space: nowrap; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.tabs button:hover { color: var(--ink); }
.tabs button.on { color: var(--brand); font-weight: 500; }
.tabs button.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; border-radius: 1px; background: var(--brand); }
.tabs .cnt { font-family: var(--font-num); font-size: 12px; min-width: 20px; height: 18px; line-height: 18px; padding: 0 6px; border-radius: 9px; background: var(--surface-3); color: var(--ink-3); text-align: center; }
.tabs button.on .cnt { background: var(--brand-soft); color: var(--brand); }
.tabs .cnt.hot { background: var(--bad); color: #fff; }
/* 分段、页签的滑块（2026-10-09 照 Aceternity「Tabs」：选中那一块的底色／底下那根线滑过去；FX.pill 摆位置、滑） */
.seg, .tabs { position: relative; }
.seg-pill { position: absolute; left: 0; top: 0; z-index: 0; pointer-events: none; opacity: 0; display: block; }
.seg > .seg-pill { border-radius: 6px; background: var(--surface); box-shadow: 0 1px 2px rgba(29, 33, 41, .08), 0 3px 10px -6px rgba(29, 33, 41, .25); }
.seg.has-pill > button { position: relative; z-index: 1; }
.seg.has-pill > button.on { background: transparent; box-shadow: none; }
.tabs > .seg-pill { border-radius: 1px; background: var(--brand); }
.tabs.has-pill > button.on::after { display: none; }

/* 查询条件 */
.filters { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: center; padding: 14px 20px; }
.filters .grow { flex: 1; }
.filters .lbl { font-size: 13px; color: var(--ink-3); white-space: nowrap; }

.fitem { display: inline-flex; align-items: center; gap: 6px; }
.sumrow { display: flex; align-items: center; gap: 12px; padding: 10px 20px; border-top: 1px solid var(--line-soft); flex-wrap: wrap; }

/* 看板一眼值钱 + PPT 四块第一屏加厚（经营／客户／陪玩／品类） */
.kpis.glance-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.kpis.glance-kpis.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kpis.glance-kpis.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.kpis.glance-kpis.n1 { grid-template-columns: minmax(0, 340px); }
.kpis.glance-kpis > .kpi { min-height: 128px; padding: 20px 20px 16px; }
.kpis.glance-kpis > .kpi .kpi-value { font-size: 36px; letter-spacing: -0.02em; }
.kpis.glance-kpis > .kpi .kpi-value .cur { font-size: 22px; }
.kpis.glance-kpis > .kpi .kpi-value .dec { font-size: 20px; }
.kpis.glance-kpis > .kpi .kpi-value .unit { font-size: 15px; }
.chart.chart-empty { display: grid; place-items: center; background: var(--surface-2); border-radius: 12px; min-height: 140px; }
.glance-stack { height: 14px; }
.glance-mid { align-items: stretch; }
.glance-hero { margin-bottom: 16px; }
.glance-hero .chart { border-radius: 12px; }
.glance-side { margin-bottom: 16px; }
.glance-struct .rank-bar { height: 8px; border-radius: 4px; }
.range-bar .range-compare {
  display: inline-flex; align-items: center; height: 26px; padding: 0 10px;
  border-radius: 999px; font-size: 12px; color: var(--ink-3);
  background: var(--surface-2); border: 1px solid var(--line-soft); white-space: nowrap;
}
.delta.pill {
  padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1.5;
}
.delta.pill.up { background: color-mix(in srgb, var(--up) 14%, transparent); }
.delta.pill.down { background: color-mix(in srgb, var(--down) 14%, transparent); }
.delta.pill.flat { background: var(--surface-2); }
.kpi-foot .delta-lbl { color: var(--ink-3); font-size: 12px; margin-left: 4px; }
.donut-wrap.hero { gap: 28px; }
.donut-wrap.hero .chart { width: 200px; }
@media (max-width: 899px) {
  .kpis.glance-kpis, .kpis.glance-kpis.n3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpis.glance-kpis.n1 { grid-template-columns: minmax(0, 1fr); }
  .kpis.glance-kpis > .kpi .kpi-value { font-size: 28px; }
  .donut-wrap.hero { justify-content: center; }
}
@media (max-width: 480px) {
  .kpis.glance-kpis, .kpis.glance-kpis.n3, .kpis.glance-kpis.n2, .kpis.glance-kpis.n1 { grid-template-columns: minmax(0, 1fr); }
  .range-bar .range-compare { display: none; }
}

/* 统计数字卡 */
.kpis { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.kpi { position: relative; padding: 16px 18px 14px; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-card); min-width: 0; display: flex; flex-direction: column; gap: 6px; container-type: inline-size; text-align: left; color: var(--ink); }
.kpi.click { cursor: pointer; transition: border-color .15s; }
.kpi.click:hover { border-color: var(--brand-soft-2); background-image: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), var(--brand-soft), transparent 70%); }
/* 能点的卡片：鼠标在哪，边框那一段亮起来（2026-10-09 照 Aceternity「Glowing Effect」；--mx/--my 由 public/motion.js 跟着鼠标写） */
.glow { position: relative; }
.glow::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(160px circle at var(--mx, 50%) var(--my, 50%), var(--brand), color-mix(in srgb, var(--brand) 30%, transparent) 40%, transparent 70%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.glow:hover::after { opacity: 1; }
/* 数字卡一张接一张浮上来（2026-10-07 董事长「工作台的大数字、看板的动画」） */
/* html.fx（public/motion.js 接手：东西进到眼前才用 Anime.js 演）时下面这几样 CSS 动画让位；没有 .fx（没有 Anime、减少动态效果）照旧 */
html:not(.fx) .kpis > .kpi { animation: kpi-in .6s var(--ease) both; }
.kpis > .kpi:nth-child(2) { animation-delay: 60ms; }
.kpis > .kpi:nth-child(3) { animation-delay: 120ms; }
.kpis > .kpi:nth-child(4) { animation-delay: 180ms; }
.kpis > .kpi:nth-child(5) { animation-delay: 240ms; }
.kpis > .kpi:nth-child(n+6) { animation-delay: 300ms; }
@keyframes kpi-in { from { opacity: 0; transform: translateY(10px); } }
.kpi-label { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.kpi-value { display: inline-flex; align-items: baseline; font-family: var(--font-num); font-size: 26px; line-height: 1.2; font-weight: 600; letter-spacing: .2px; white-space: nowrap; color: var(--ink); }
.kpi-value .unit { font-family: var(--font); font-size: 13px; font-weight: 400; line-height: 1; color: var(--ink-3); margin-left: 3px; }
.kpi-value .cur { font-size: 18px; margin-right: 2px; font-weight: 500; line-height: 1; }
.kpi-value .dec { display: inline-flex; align-items: baseline; font-size: 17px; line-height: 1; }
.kpi-value.neg { color: var(--bad-ink); }
/* 数字翻滚（UI.roll）：每一位是一列 0～9 转两圈，停在它该停的那一位；左边的先停。
   停住的样子就是元素本来的样子（动画只管"从哪转过来"），关了动效、打印、截图都是对的数；读屏念旁边那份 .sr-only */
.roll { display: inline-flex; align-items: baseline; font-variant-numeric: tabular-nums; --lh: 1.2em; }
.roll-d { position: relative; display: inline-block; height: var(--lh); line-height: var(--lh); clip-path: inset(0 -.3em); }
.roll-d > i { font-style: normal; visibility: hidden; }
.roll-s { position: absolute; left: 0; right: 0; top: 0; white-space: pre; text-align: center; line-height: var(--lh); user-select: none;
  transform: translateY(calc((var(--d) + 10) * -1 * var(--lh))); }
html:not(.fx) .roll-s { animation: roll-in 1.15s cubic-bezier(.16, 1, .3, 1) both; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes roll-in { from { transform: translateY(0); filter: blur(1.2px); } 72% { filter: blur(0); } }
/* 手机版（≤ 899 宽、而且是用手指点的：手机、平板；跟 motion.js rollTo 里同一个条件）另走一套。用鼠标的电脑窗口拉多窄都照旧。2026-10-09 董事长在苹果手机上看到数字停在两个数中间；
   ⛔ 电脑版上面那几行一个字不动（董事长：「宁可手机版重做也不能影响一丝丝电脑版的」）。
   苹果手机上一格的实际高度跟 1.2em 对不上（看截图是行高被往下取整：24 号字一格 28.8 像素按 28 排），按 1.2em 挪就越往下差得越多 ⇒
   ① 按这一列自己的高度挪，每格 5%（一列 20 格）；② 滚完（motion.js 加 .rolled）藏起那一列、露出底下那个真的数 */
@media (max-width: 899px) and (pointer: coarse) {
  .roll-s { transform: translateY(calc((var(--d) + 10) * -5%)); }
  .roll-d.rolled > i { visibility: visible; }
  .roll-d.rolled > .roll-s { visibility: hidden; }
}
.kpi-foot { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--ink-3); white-space: nowrap; min-height: 18px; flex-wrap: wrap; }
.customer-cumulative-kpis .kpi-foot { white-space: normal; overflow-wrap: anywhere; }
.cardrow.cumulative-preview-row { display: block; overflow-wrap: anywhere; }
.cumulative-preview-row .stack { margin-top: 8px; font-size: 12.5px; color: var(--ink-2); }
.delta { display: inline-flex; align-items: center; gap: 2px; font-family: var(--font-num); font-size: 12.5px; font-weight: 500; }
.delta.up { color: var(--up); }
.delta.down { color: var(--down); }
.delta.flat { color: var(--ink-3); }
.kpi .spark { position: absolute; right: 14px; top: 12px; overflow: visible; }
.kpis > .kpi .spark .draw { animation-delay: .35s; }
.kpis > .kpi .spark .area { animation-delay: .35s; }
@container (max-width: 150px) { .kpi .spark { display: none; } }

/* 工作台顶栏延续登录页的风景，并显示问候与两个常用按钮。 */
.wb-hero { position: relative; overflow: hidden; isolation: isolate; border-radius: var(--r-card); margin-bottom: 16px; color: #FFFFFF; background: #10131A; }
.wb-scene { position: absolute; inset: 0; z-index: -2; }
.wb-scene img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; display: block; transform-origin: 60% 55%; transform: scale(1.02); }
.wb-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8, 12, 20, .64) 0%, rgba(8, 12, 20, .3) 46%, rgba(8, 12, 20, .06) 100%); }
.wb-hero-in { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px 16px; flex-wrap: wrap; min-height: 136px; padding: 22px 24px; }
.wb-hello { font-size: 24px; font-weight: 600; letter-spacing: .02em; line-height: 1.3; text-shadow: 0 2px 16px rgba(0, 0, 0, .35); }
.wb-date { margin-top: 4px; font-size: 13px; color: rgba(255, 255, 255, .84); text-shadow: 0 1px 10px rgba(0, 0, 0, .35); }
.wb-acts { display: flex; gap: 10px; flex-wrap: wrap; }
.wb-acts .btn { color: #FFFFFF; background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .3); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.wb-acts .btn:hover { color: #FFFFFF; background: rgba(255, 255, 255, .22); }
.wb-acts .btn.primary, .wb-acts .btn.primary:hover { color: #0B0F14; background: #FFFFFF; border-color: #FFFFFF; }
@media (max-width: 899px) { .wb-hero-in { min-height: 112px; padding: 16px; } .wb-hello { font-size: 20px; } .wb-acts { display: none; } }

/* 待办条 */
.todo { display: grid; grid-template-columns: repeat(var(--n, 6), minmax(0, 1fr)); }
.todo-item { position: relative; padding: 14px 18px; cursor: pointer; display: flex; flex-direction: column; gap: 4px; transition: background .15s; min-width: 0; color: var(--ink); text-align: left; }
.todo-item:hover { background: var(--surface-2); color: var(--ink); }
.todo-item + .todo-item::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 1px; background: var(--line-soft); }
.todo-item:first-child { border-radius: var(--r-card) 0 0 var(--r-card); }
.todo-item:last-child { border-radius: 0 var(--r-card) var(--r-card) 0; }
.todo-n { font-family: var(--font-num); font-size: 24px; font-weight: 600; line-height: 1.2; display: flex; align-items: center; gap: 8px; }
.todo-n .dotw { width: 8px; height: 8px; border-radius: 50%; background: var(--warn); }
.todo-n .dotb { width: 8px; height: 8px; border-radius: 50%; background: var(--bad); }
.todo-n.zero { color: var(--ink-4); }
.todo-l { font-size: 13px; color: var(--ink-2); display: flex; align-items: center; gap: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.todo-l svg { color: var(--ink-4); }

/* 表格 */
.tbl-wrap { position: relative; overflow: auto; max-width: 100%; }
.tbl-wrap.fixh { max-height: calc(100vh - 290px); max-height: calc(100dvh - 290px); min-height: 240px; }
table.tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.tbl th, .tbl td { padding: 0 12px; height: 40px; text-align: left; border-bottom: 1px solid var(--line-soft); white-space: nowrap; }
.tbl.compact th, .tbl.compact td { height: 34px; }
.tbl thead th { position: sticky; top: 0; z-index: 2; background: var(--surface-2); color: var(--ink-2); font-weight: 500; font-size: 12.5px; height: 38px; user-select: none; }
.tbl.compact thead th { height: 34px; }
.tbl thead th.sortable { cursor: pointer; }
.tbl thead th.sortable:hover { color: var(--ink); }
.tbl thead th .sort { display: inline-flex; flex-direction: column; vertical-align: middle; margin-left: 4px; gap: 1px; color: var(--ink-4); }
.tbl thead th .sort i { width: 0; height: 0; border-left: 3.5px solid transparent; border-right: 3.5px solid transparent; }
.tbl thead th .sort i:first-child { border-bottom: 4px solid currentColor; }
.tbl thead th .sort i:last-child { border-top: 4px solid currentColor; }
.tbl thead th .sort.asc i:first-child, .tbl thead th .sort.desc i:last-child { color: var(--brand); }
.tbl td.r, .tbl th.r { text-align: right; }
.tbl td.c, .tbl th.c { text-align: center; }
.tbl td.money { font-variant-numeric: tabular-nums; text-align: right; }
.tbl tbody tr { transition: background .12s; }
.tbl tbody tr:hover td { background: var(--surface-2); }
.tbl tbody tr.click { cursor: pointer; }
.tbl tbody tr.sel td { background: var(--brand-soft); }
.tbl tbody tr.dim td { color: var(--ink-3); }
.tbl tbody tr.flash td { animation: flash 1.4s var(--ease); }
@keyframes flash { 0% { background: var(--brand-soft-2); } 100% { background: var(--surface); } }
.tbl td { background: var(--surface); }
.tbl .fix-l { position: sticky; left: 0; z-index: 1; }
/* 可勾选时勾选列占 left:0，业务左冻列顺延 40px（与 .chk 宽对齐） */
.tbl .fix-l.fix-after-chk { left: 40px; }
.tbl thead .fix-l, .tbl thead .fix-r { z-index: 3; }
.tbl .fix-r { position: sticky; right: 0; z-index: 1; box-shadow: -1px 0 0 var(--line-soft); }
.tbl .fix-l.shadow { box-shadow: 1px 0 0 var(--line-soft); }
.tbl tfoot td { position: sticky; bottom: 0; z-index: 2; background: var(--surface-2); font-weight: 600; border-top: 1px solid var(--line); border-bottom: 0; font-variant-numeric: tabular-nums; }
.tbl tfoot .fix-l, .tbl tfoot .fix-r { z-index: 3; }
.tbl .chk { width: 40px; padding: 0 0 0 16px; }
/* P2-VIEW-b：分组组头（自有样式；禁复刻冻结条／视图工具条壳） */
.tbl tr.tbl-group td {
  background: var(--surface-2);
  color: var(--ink-2);
  font-weight: 600;
  font-size: 12.5px;
  height: 32px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  left: 0;
  z-index: 1;
}
.tbl-group-lab { letter-spacing: 0.01em; }
.tbl-group-card {
  padding: 8px 16px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
  background: var(--surface-2);
  border-bottom: 1px solid var(--line-soft);
}
.tbl .chk input { width: 15px; height: 15px; accent-color: var(--brand); cursor: pointer; vertical-align: middle; }
.tbl .cell-ell { display: inline-block; max-width: 180px; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; }
.tbl .ico-cell { color: var(--ink-3); display: inline-grid; place-items: center; }
.tbl .wrap { white-space: normal; line-height: 1.5; padding-top: 8px; padding-bottom: 8px; height: auto; }
.tbl-empty { padding: 56px 20px; text-align: center; color: var(--ink-3); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.tbl-loading { padding: 18px 20px; }
.tbl-foot { display: flex; align-items: center; gap: 12px; padding: 10px 20px 12px; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); }
.tbl-foot .grow { flex: 1; }
.pager { display: inline-flex; align-items: center; gap: 4px; }
.pager button { min-width: 30px; height: 30px; padding: 0 6px; border-radius: 6px; border: 1px solid transparent; background: transparent; cursor: pointer; color: var(--ink-2); font-family: var(--font-num); font-size: 13px; }
.pager button:hover { background: var(--surface-3); }
.pager button.on { border-color: var(--brand); color: var(--brand); background: var(--surface); font-weight: 600; }
.pager button[disabled] { opacity: .35; pointer-events: none; }
.pager .gap { color: var(--ink-4); padding: 0 2px; }
.tbl-tools { display: flex; align-items: center; gap: 4px; }
.tbl-scroll-tools { display:inline-flex; align-items:center; gap:2px; flex:none; }
.tbl-scroll-tools .iconbtn { width:28px; height:28px; }
.batchbar { display: flex; align-items: center; gap: 10px; padding: 8px 20px; background: var(--brand-soft); color: var(--brand); font-size: 13px; flex-wrap: wrap; }
.sumbar { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; font-size: 13px; color: var(--ink-2); }
.sumbar b { font-family: var(--font-num); color: var(--ink); font-weight: 600; font-size: 14px; margin-left: 4px; }
.bar-cell { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.bar-cell .bar { width: 64px; height: 6px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.bar-cell .bar i { display: block; height: 100%; border-radius: 3px; background: var(--s1); opacity: .75; }
.more-row { display: flex; justify-content: center; padding: 12px; }
/* 报单页（手机、陪玩）：表单一栏，不铺满宽屏 */
.report-page { max-width: 720px; margin: 0 auto; }
.report-page .card + .card, .report-page .card + .notice { margin-top: 12px; }
.report-page .disp-mine:not(:empty) { margin-bottom: 12px; }
.my-hero { padding: 20px; }
/* 设置页：一行一项 */
.set-row { display: grid; grid-template-columns: 160px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line-soft); }
.set-row:last-child { border-bottom: 0; }
.set-row .k { color: var(--ink-2); }
@media (max-width: 899px) { .set-row { grid-template-columns: minmax(0, 1fr) auto; } .set-row .k { grid-column: 1 / -1; font-size: 12.5px; color: var(--ink-3); } }
/* 改版前写的页面（从原系统搬家，店长很少用）还用老的几个类名：在新外壳里给它们一个干净的样子 */
.legacy .card { padding: 18px 20px; margin-bottom: 14px; }
.legacy .card h2 { font-size: 16px; font-weight: 600; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.legacy .notice { display: block; margin-bottom: 12px; }
.legacy .list { display: flex; flex-direction: column; border: 1px solid var(--line-soft); border-radius: 10px; background: var(--surface); }
.legacy .item { padding: 12px 14px; border-bottom: 1px solid var(--line-soft); }
.legacy .item:last-child { border-bottom: 0; }
.legacy .item-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.legacy .item-title { font-weight: 600; }
.legacy .item-sub { font-size: 13px; color: var(--ink-2); margin-top: 4px; }
.legacy .section-title { font-size: 14px; font-weight: 600; color: var(--ink-2); margin: 18px 0 8px; }
.legacy .hint { font-size: 12.5px; color: var(--ink-3); line-height: 1.6; margin-top: 4px; }
.legacy .small { font-size: 12.5px; }
.legacy .right { margin-left: auto; }
.legacy .money { font-family: var(--font-num); }
.legacy .money.neg, .legacy .neg { color: var(--bad-ink); }
.legacy .form-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.legacy .field { margin-bottom: 14px; display: flex; flex-direction: column; gap: 6px; }
.legacy .field > label, .legacy .field > .label { font-size: 13.5px; color: var(--ink-2); font-weight: 500; }
.legacy .field input:not([type=checkbox]):not([type=radio]), .legacy .field select, .legacy .field textarea { min-height: 36px; padding: 6px 10px; border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--surface); color: var(--ink); font: inherit; }
.legacy dl.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 14px; margin: 8px 0 0; font-size: 13.5px; }
.legacy dl.kv dt { color: var(--ink-3); }
.legacy dl.kv dd { margin: 0; overflow-wrap: anywhere; }
.btn.btn-danger { color: var(--bad-ink); border-color: var(--bad-soft); }
.btn.btn-small { height: 28px; padding: 0 10px; font-size: 13px; }
/* 一条一行的清单（对账的红黄、账单明细、导入记录、配对候选） */
.ritems { display: flex; flex-direction: column; }
.ritem { padding: 14px 20px; border-bottom: 1px solid var(--line-soft); min-width: 0; }
.ritem:last-child { border-bottom: 0; }
.dialog .ritem, .drawer .ritem { padding: 12px 0; }
.rhead { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.rhead b { font-weight: 600; }
.rsub { margin-top: 4px; font-size: 13px; color: var(--ink-2); overflow-wrap: anywhere; }
.rtodo { margin-top: 6px; font-size: 12.5px; color: var(--ink-3); }
.racts { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ritem .notice { margin-top: 8px; }
/* 对账：每天一格 */
.rc-days { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 6px; }
.rc-day { border-radius: 8px; padding: 8px 4px; background: var(--surface-2); border: 1px solid var(--line-soft); text-align: center; cursor: pointer; font: inherit; color: var(--ink-2); min-width: 0; }
.rc-day .rc-d { display: block; font-family: var(--font-num); font-size: 12px; }
.rc-day i { display: block; height: 6px; border-radius: 3px; margin: 6px 8px 0; background: var(--surface-3); }
.rc-day .rc-s { display: block; font-size: 11.5px; margin-top: 6px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rc-day.ok { background: var(--ok-soft); } .rc-day.ok i { background: var(--ok); }
.rc-day.bad { background: var(--bad-soft); } .rc-day.bad i { background: var(--bad); } .rc-day.bad .rc-s { color: var(--bad-ink); }
.rc-day.warn { background: var(--warn-soft); } .rc-day.warn i { background: var(--warn); }
.rc-day.on { outline: 2px solid var(--brand); outline-offset: 1px; }
.rc-sec { padding: 16px 20px 10px; }
.rc-batch { margin: 14px 20px 0; border: 1px solid var(--line); border-radius: 10px; }
.rc-batch > summary { padding: 12px 16px; cursor: pointer; display: flex; align-items: center; gap: 8px; list-style: none; }
.rc-batch > summary::-webkit-details-marker { display: none; }
.rc-batch .ritem { padding: 12px 16px; }
.rc-yellow { margin: 6px 0 4px; border-top: 1px solid var(--line-soft); }
.rc-yellow > summary { padding: 14px 20px; cursor: pointer; }
@media (max-width: 899px) {
  .rc-days { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .ritem { padding: 12px 14px; }
  .rc-sec { padding: 14px 14px 8px; }
  .rc-batch { margin: 12px 14px 0; }
}
/* 审核中心：一件事一行 */
.rv-list { padding: 4px 0; }
.rv-item { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--line-soft); cursor: pointer; }
.rv-item:hover { background: var(--surface-2); }
.rv-item:last-child { border-bottom: 0; }
.rv-ico { width: 36px; height: 36px; border-radius: 10px; background: var(--surface-3); display: grid; place-items: center; color: var(--ink-2); }
.rv-main { min-width: 0; }
.rv-main b { font-weight: 600; }
.rv-title { margin-top: 3px; font-size: 13.5px; display: flex; align-items: center; flex-wrap: wrap; gap: 0 2px; min-width: 0; }
.rv-amt { font-family: var(--font-num); font-size: 18px; font-weight: 600; white-space: nowrap; }
.rv-acts { display: flex; gap: 8px; align-items: center; }
@media (max-width: 899px) {
  .rv-item { grid-template-columns: 32px minmax(0, 1fr) auto; padding: 12px 14px; gap: 10px; }
  .rv-acts { grid-column: 2 / -1; justify-content: flex-end; }
  .rv-amt { font-size: 16px; }
}
.quick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.quick .btn { height: 72px; flex-direction: column; gap: 6px; font-size: 13px; white-space: normal; text-align: center; line-height: 1.2; padding: 0 6px; }

/* 列表卡片（表格在手机上变成一张张） */
.cards { display: flex; flex-direction: column; }
.cardrow { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); background: var(--surface); text-align: left; color: var(--ink); }
.cardrow:last-child { border-bottom: 0; }
.cardrow.click { cursor: pointer; }
.cardrow.click:active { background: var(--surface-2); }
.cardrow .t { font-size: 15px; font-weight: 500; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.cardrow .v { font-family: var(--font-num); font-size: 16px; font-weight: 600; text-align: right; white-space: nowrap; }
.cardrow .s { font-size: 12.5px; color: var(--ink-3); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cardrow .r { text-align: right; display: flex; justify-content: flex-end; align-items: center; gap: 6px; }
.cardrow .acts { grid-column: 1 / -1; display: flex; gap: 8px; justify-content: flex-end; padding-top: 6px; }
.cardrow .chk { position: absolute; left: 0; top: 0; bottom: 0; width: 36px; display: grid; place-items: center; }
.cards.selectable .cardrow { padding-left: 40px; }

/* 图表 */
.chart { position: relative; width: 100%; }
.chart svg { display: block; width: 100%; overflow: visible; }
.chart text { fill: var(--ink-3); font-size: 11.5px; font-family: var(--font); }
.chart .tick { font-family: var(--font-num); font-size: 11.5px; }
.chart .gridline { stroke: var(--grid); stroke-width: 1; shape-rendering: crispEdges; }
.chart .baseline { stroke: var(--axis); stroke-width: 1; shape-rendering: crispEdges; }
.chart .xhair { stroke: var(--ink-4); stroke-width: 1; shape-rendering: crispEdges; }
/* 图表动画（2026-10-07）：线一笔画出来、面跟着线铺开、末端的点弹出来；"到现在"那个点一直轻轻往外荡（这一格还在长）；
   柱子从底下长出来、圆环顺时针扫一圈、排行条从左边伸出来。停住的样子就是元素本来的样子（关了动效、截图都完整） */
:is(.chart, .spark) .draw { stroke-dasharray: 1 1; }
html:not(.fx) :is(.chart, .spark) .draw { animation: draw 1.1s var(--ease) both; }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
html:not(.fx) :is(.chart, .spark) .area { animation: area-in 1.1s var(--ease) both; }
@keyframes area-in { from { clip-path: inset(0 100% 0 0); opacity: .4; } }
:is(.chart, .spark) .pop { transform-box: fill-box; transform-origin: center; }
html:not(.fx) :is(.chart, .spark) .pop { animation: pop-dot .5s var(--ease-spring) .95s both; }
@keyframes pop-dot { from { transform: scale(0); } }
html:not(.fx) .chart .later { animation: fade .35s var(--ease) .9s both; }
.chart .live { transform-box: fill-box; transform-origin: center; animation: live 2.2s cubic-bezier(.2, .7, .3, 1) 1.2s infinite both; pointer-events: none; }
@keyframes live { 0% { transform: scale(1); opacity: .55; } 70%, 100% { transform: scale(3.4); opacity: 0; } }
.chart .bar { transform-box: fill-box; transform-origin: 50% 100%; }
html:not(.fx) .chart .bar { animation: grow-y .7s cubic-bezier(.2, .9, .25, 1.04) both; animation-delay: calc(var(--i, 0) * 22ms); }
@keyframes grow-y { from { transform: scaleY(0); } }
.chart .sweep { stroke-dasharray: 1 1; }
html:not(.fx) .chart .sweep { animation: draw 1.2s cubic-bezier(.45, 0, .2, 1) .1s both; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.legend i { display: inline-block; width: 14px; height: 3px; border-radius: 2px; }
.legend i.box { width: 10px; height: 10px; border-radius: 3px; }
.tip {
  position: fixed; z-index: 100; pointer-events: none; min-width: 140px; padding: 10px 12px; border-radius: 8px; background: var(--surface);
  box-shadow: var(--shadow-pop); font-size: 12.5px; color: var(--ink-2); opacity: 0; transform: translateY(4px); transition: opacity .12s, transform .12s;
}
.tip.on { opacity: 1; transform: none; }
.tip .t { color: var(--ink-3); margin-bottom: 6px; font-size: 12px; }
.tip .r { display: flex; align-items: center; gap: 8px; margin-top: 3px; white-space: nowrap; }
.tip .r i { width: 10px; height: 2.5px; border-radius: 2px; flex-shrink: 0; }
.tip .r b { font-family: var(--font-num); color: var(--ink); font-size: 13.5px; font-weight: 600; margin-right: auto; }
.donut-wrap { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.donut-wrap .chart { width: 176px; flex-shrink: 0; }
.donut-legend { flex: 1; min-width: 180px; display: flex; flex-direction: column; gap: 2px; }
.donut-legend .it { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto auto; align-items: center; gap: 8px; padding: 5px 6px; border-radius: 6px; font-size: 13px; cursor: default; }
.donut-legend .it:hover, .donut-legend .it.hl { background: var(--surface-2); }
.donut-legend .it i { width: 10px; height: 10px; border-radius: 3px; }
.donut-legend .it .v { font-family: var(--font-num); color: var(--ink); text-align: right; }
.donut-legend .it .p { font-family: var(--font-num); color: var(--ink-3); width: 46px; text-align: right; }
.rank { display: flex; flex-direction: column; }
.rank-row { display: grid; grid-template-columns: 26px minmax(0, 1.2fr) minmax(0, 1fr) auto; align-items: center; gap: 10px; height: 38px; padding: 0 20px; cursor: pointer; transition: background .12s; color: var(--ink); }
.rank-row:hover { background: var(--surface-2); color: var(--ink); }
.rank-no { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-num); font-size: 12px; color: var(--ink-3); background: var(--surface-3); }
.rank-no.top { background: var(--ink); color: var(--surface); }
.rank-bar { height: 6px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.rank-bar i { display: block; height: 100%; border-radius: 3px; background: var(--s1); transform-origin: left; }
html:not(.fx) .rank-bar i { animation: grow-x .9s var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms + 120ms); }
@keyframes grow-x { from { transform: scaleX(0); } }
.rank-v { font-family: var(--font-num); font-size: 13.5px; text-align: right; min-width: 84px; }
.stackbar { display: flex; height: 12px; border-radius: 6px; overflow: hidden; gap: 2px; background: var(--surface); }
html:not(.fx) .stackbar { animation: wipe 1s var(--ease) .15s both; }
@keyframes wipe { from { clip-path: inset(0 100% 0 0); } }
.stackbar i { display: block; height: 100%; }
.stat-list { display: flex; flex-direction: column; }
.stat-list .it { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line-soft); font-size: 13.5px; color: var(--ink); }
.stat-list .it:last-child { border-bottom: 0; }
.stat-list .it > i { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }
.stat-list .it .v { margin-left: auto; font-family: var(--font-num); font-weight: 600; }
.mini-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.mini { padding: 12px 14px; border-radius: 8px; background: var(--surface-2); min-width: 0; }
.mini .l { font-size: 12.5px; color: var(--ink-3); }
.mini .v { font-family: var(--font-num); font-size: 20px; font-weight: 600; margin-top: 2px; white-space: nowrap; }

/* 描述列表（详情） */
.desc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 16px; }
.desc .d { padding: 10px 0; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.desc .d .k { font-size: 12.5px; color: var(--ink-3); }
.desc .d .v { font-size: 14px; color: var(--ink); min-width: 0; overflow-wrap: anywhere; }
.desc .d .v.money { font-family: var(--font-num); font-size: 15px; }
.desc.one { grid-template-columns: minmax(0, 1fr); }
.desc.one .d { flex-direction: row; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px dashed var(--line-soft); }
.desc.one .d:last-child { border-bottom: 0; }
.desc.one .d .v { text-align: right; }
.formula { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; padding: 14px 16px; border-radius: 8px; background: var(--surface-2); font-size: 13px; color: var(--ink-2); }
.formula b { font-family: var(--font-num); font-size: 16px; color: var(--ink); font-weight: 600; }
.formula .op { color: var(--ink-4); font-size: 16px; }
.formula .blk { display: flex; flex-direction: column; gap: 1px; }
/* 暂停、派单（008）：分段记录 —— 一段一行，左边圆圈里是段号 */
.seg-row { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; align-items: start; padding: 10px 12px; border: 1px solid var(--line-soft); border-radius: 10px; background: var(--surface); }
.seg-no { width: 24px; height: 24px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-3); color: var(--ink-2); font: 600 12px/1 var(--font-num); }
.seg-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.seg-chain { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
/* 派单页：一单一张卡（左：单号客户；中：分段链条；右：按钮）；手机上竖着排 */
.disp-list { display: flex; flex-direction: column; gap: 12px; }
.disp-card { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.6fr) auto; gap: 18px; align-items: center; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.disp-head { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.disp-acts { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
@media (max-width: 899px) {
  .disp-card { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 14px; }
  .disp-acts { justify-content: flex-start; }
}
.seg-chain .arrow { color: var(--ink-3); display: grid; }
.timeline { display: flex; flex-direction: column; padding: 4px 0; }
.tl { position: relative; padding: 0 0 18px 22px; }
.tl::before { content: ""; position: absolute; left: 5px; top: 14px; bottom: 0; width: 1px; background: var(--line); }
.tl:last-child::before { display: none; }
.tl .dot { position: absolute; left: 0; top: 5px; width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--surface); background: var(--ink-4); box-shadow: 0 0 0 1px var(--line); }
.tl .dot.ok { background: var(--ok); }
.tl .dot.warn { background: var(--warn); }
.tl .dot.bad { background: var(--bad); }
.tl .dot.info { background: var(--brand); }
.tl .t1 { font-size: 13.5px; color: var(--ink); }
.tl .t2 { font-size: 12px; color: var(--ink-3); }
/* 订单经过（2026-10-09 照 Aceternity「Timeline」：一道光沿着线从上往下画下来，经过的那几步一个个亮起来；FX 加 .tl-beam、演） */
.timeline { position: relative; }
.tl-beam { position: absolute; left: 5px; width: 1px; pointer-events: none; transform-origin: 50% 0; border-radius: 1px;
  background: linear-gradient(180deg, var(--brand), color-mix(in srgb, var(--brand) 55%, transparent) 70%, color-mix(in srgb, var(--brand) 10%, transparent)); box-shadow: 0 0 6px var(--brand); }
.thumb { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; border: 1px solid var(--line-soft); cursor: zoom-in; background: var(--surface-2); }
.proof-img { display: block; max-width: 100%; max-height: 420px; border-radius: 8px; border: 1px solid var(--line-soft); cursor: zoom-in; background: var(--surface-2); }
.photo-view { display: block; max-width: 100%; max-height: 72vh; margin: 0 auto; border-radius: 6px; }
.calc { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-radius: 10px; border: 1px solid var(--line-soft); overflow: hidden; }
.calc > div { padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.calc > div + div { border-left: 1px solid var(--line-soft); }
.calc .k { font-size: 12.5px; color: var(--ink-3); }
.calc-order-details { grid-column: 1 / -1; min-width: 0; overflow-wrap: anywhere; }
.calc .v { font-family: var(--font-num); font-size: 19px; font-weight: 600; white-space: nowrap; }
.calc .v.brand { color: var(--brand); }
.calc .v.neg { color: var(--bad-ink); }
.balance-line { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); padding: 10px 12px; border-radius: 8px; background: var(--surface-2); flex-wrap: wrap; }
.balance-line b { font-family: var(--font-num); font-weight: 600; color: var(--ink); }
.drop-zone { flex-wrap: wrap; position: relative; border: 1px dashed var(--ink-4); border-radius: 8px; padding: 16px; display: flex; align-items: center; gap: 12px; color: var(--ink-3); font-size: 13px; cursor: pointer; background: var(--surface-2); transition: border-color .15s, background .15s; }
.drop-zone:hover, .drop-zone.over { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
.drop-zone.done { border-style: solid; border-color: var(--ok); background: var(--ok-soft); color: var(--ok-ink); }
.drop-zone .shot-picker { display: flex; flex: 1 1 auto; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.drop-zone [role=status] { flex-basis: 100%; color: var(--ink); }
.drop-zone img { width: 56px; height: 56px; object-fit: cover; border-radius: 6px; }
.drop-zone { transition: border-color .15s, background .15s, transform .25s var(--ease), box-shadow .25s var(--ease); }
.drop-zone.over { transform: translateY(-2px); box-shadow: 0 12px 28px -16px var(--brand); border-style: solid; }
/* 一步步打勾的进度（UI.steps，照 Aceternity「Multi-step Loader」） */
.steps { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border-radius: 12px; background: var(--surface-2); }
.stp { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--ink-4); transition: color .25s; }
.stp-i { position: relative; width: 18px; height: 18px; flex-shrink: 0; border-radius: 50%; border: 1.5px solid currentColor; display: grid; place-items: center; }
.stp.cur { color: var(--brand); font-weight: 500; }
.stp.cur .stp-i { border-right-color: transparent; animation: spin .7s linear infinite; }
.stp.done { color: var(--ink-2); }
.stp.done .stp-i { background: var(--ok); border-color: var(--ok); }
.stp.done .stp-i::after { content: ""; width: 7px; height: 4px; border: 2px solid #FFFFFF; border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); }
.stp.bad { color: var(--bad-ink); }
.stp.bad .stp-i { background: var(--bad); border-color: var(--bad); }
.drop-zone img { box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .35); }
.share-row { display: grid; grid-template-columns: minmax(0, 1fr) 120px 34px; gap: 8px; align-items: center; }
.segments { display: flex; flex-direction: column; gap: 10px; }
.segm { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 8px; border: 1px solid var(--line-soft); background: var(--surface); }
.segm .no { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-num); font-weight: 600; font-size: 12.5px; background: var(--surface-3); color: var(--ink-2); }
.segm.cur { border-color: var(--brand-soft-2); background: var(--brand-soft); }
.segm.cur .no { background: var(--brand); color: #fff; }
.kv-list { display: flex; flex-direction: column; }
.kv-list .kv { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px dashed var(--line-soft); font-size: 13.5px; }
.kv-list .kv:last-child { border-bottom: 0; }
.kv-list .kv .k { color: var(--ink-3); flex: none; }
.kv-list .kv .v { text-align: right; min-width: 0; overflow-wrap: anywhere; }

/* 空、加载 */
.empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 48px 20px; text-align: center; color: var(--ink-3); font-size: 13.5px; }
.empty-ico { width: 56px; height: 56px; border-radius: 14px; background: var(--surface-3); display: grid; place-items: center; color: var(--ink-4); }
.empty-ico.ok { background: var(--ok-soft); color: var(--ok); }
.loading { padding: 40px 20px; text-align: center; color: var(--ink-3); }
.sk { display: block; height: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--surface-3) 25%, var(--surface-2) 45%, var(--surface-3) 65%); background-size: 300% 100%; animation: shimmer 1.2s linear infinite; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -50% 0; } }
.sk-lines { display: flex; flex-direction: column; gap: 12px; padding: 18px 20px; }

/* ---------------- 浮层 ---------------- */
.scrim { position: fixed; inset: 0; background: var(--scrim); z-index: 60; animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 61; width: min(620px, 100vw); background: var(--surface); box-shadow: var(--shadow-drawer);
  display: flex; flex-direction: column;
}
html:not(.fx) .drawer { animation: drawer-in .28s var(--ease); }
.drawer.wide { width: min(860px, 100vw); }
.drawer.narrow { width: min(460px, 100vw); }
@keyframes drawer-in { from { transform: translateX(32px); opacity: 0; } to { transform: none; opacity: 1; } }
.drawer-head { display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 16px 0 24px; border-bottom: 1px solid var(--line-soft); flex-shrink: 0; }
.drawer-head h3 { margin: 0; font-size: 16px; font-weight: 600; flex: 1; display: flex; align-items: center; gap: 8px; min-width: 0; }
.drawer-body { flex: 1; overflow: auto; padding: 20px 24px 28px; overscroll-behavior: contain; }
.drawer-foot { display: flex; align-items: center; gap: 10px; padding: 12px 24px; padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line-soft); flex-shrink: 0; background: var(--surface); flex-wrap: wrap; }
.drawer-foot .grow { flex: 1; }
.dialog {
  position: fixed; left: 50%; top: 14vh; z-index: 61; width: min(480px, calc(100vw - 32px)); transform: translateX(-50%); background: var(--surface);
  border-radius: 12px; box-shadow: var(--shadow-pop); display: flex; flex-direction: column; max-height: 76vh;
}
html:not(.fx) .dialog { animation: dialog-in .22s var(--ease); }
.dialog.wide { width: min(720px, calc(100vw - 32px)); }
@keyframes dialog-in { from { opacity: 0; transform: translate(-50%, 8px) scale(.98); } to { opacity: 1; transform: translateX(-50%); } }
.dialog-head { padding: 18px 22px 6px; font-size: 16px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.dialog-body { padding: 8px 22px 16px; overflow: auto; color: var(--ink-2); font-size: 14px; line-height: 1.65; }
.dialog-body .field { margin-top: 10px; }
.dialog-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 12px 22px 18px; flex-wrap: wrap; }
.pop {
  position: fixed; z-index: 80; min-width: 180px; max-width: 360px; padding: 6px; border-radius: 10px; background: var(--surface); box-shadow: var(--shadow-pop);
  animation: pop-in .14s var(--ease); max-height: 70vh; overflow: auto;
}
@keyframes pop-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.pop .pi { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 6px; cursor: pointer; font-size: 13.5px; color: var(--ink); white-space: nowrap; width: 100%; border: 0; background: transparent; text-align: left; }
.pop .pi:hover, .pop .pi.act { background: var(--surface-3); color: var(--ink); }
.pop .pi .ck { width: 16px; color: var(--brand); display: grid; place-items: center; }
.pop .pi small { color: var(--ink-3); margin-left: auto; font-size: 12px; }
.pop .pi .n { margin-left: auto; font-family: var(--font-num); min-width: 20px; height: 18px; line-height: 18px; padding: 0 6px; border-radius: 9px; background: var(--bad); color: #fff; font-size: 11px; text-align: center; }
.pop .ph { padding: 8px 10px 4px; font-size: 12px; color: var(--ink-3); }
.pop .psep { height: 1px; background: var(--line-soft); margin: 4px 0; }
.pop .pnone { padding: 14px 10px; color: var(--ink-3); font-size: 13px; text-align: center; }
.toast-zone { position: fixed; top: 70px; left: 50%; transform: translateX(-50%); z-index: 120; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: max-content; max-width: calc(100vw - 32px); }
/* 提示消息（2026-10-09 照 Uiverse 那种通知：半透明毛玻璃卡片、左边圆底图标、底下一根细条慢慢缩完就收；进出由 FX 演） */
.toast { position: relative; overflow: hidden; display: flex; align-items: center; gap: 10px; padding: 10px 16px 12px 10px; border-radius: 12px; font-size: 13.5px; color: var(--ink); line-height: 1.5;
  background: color-mix(in srgb, var(--surface) 90%, transparent); -webkit-backdrop-filter: blur(16px) saturate(1.6); backdrop-filter: blur(16px) saturate(1.6);
  box-shadow: var(--shadow-pop), inset 0 1px 0 rgba(255, 255, 255, .3); }
html:not(.fx) .toast { animation: toast-in .24s var(--ease); }
.toast > span:first-child { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; }
.toast .ok { color: var(--ok); background: var(--ok-soft); }
.toast .warn { color: var(--warn); background: var(--warn-soft); }
.toast .bad { color: var(--bad); background: var(--bad-soft); }
.toast .info { color: var(--brand); background: var(--brand-soft); }
.toast-bar { position: absolute; left: 10px; right: 10px; bottom: 4px; height: 2px; border-radius: 1px; background: currentColor; opacity: .35; transform-origin: left; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* 全局搜索（⌘K） */
.palette { position: fixed; left: 50%; top: 12vh; transform: translateX(-50%); z-index: 90; width: min(640px, calc(100vw - 32px)); background: var(--surface); border-radius: 12px; box-shadow: var(--shadow-pop); overflow: hidden; animation: dialog-in .2s var(--ease); }
.palette .pin { display: flex; align-items: center; gap: 10px; padding: 0 16px; height: 54px; border-bottom: 1px solid var(--line-soft); color: var(--ink-3); }
.palette .pin input { flex: 1; border: 0; outline: none; background: transparent; font-size: 16px; color: var(--ink); min-width: 0; }
.palette .pres { max-height: 56vh; overflow: auto; padding: 6px; }
.palette .pg { padding: 10px 10px 4px; font-size: 12px; color: var(--ink-3); }
.palette .pr { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 8px; cursor: pointer; color: var(--ink); }
.palette .pr.act, .palette .pr:hover { background: var(--surface-3); color: var(--ink); }
.palette .pr .pt { display: flex; flex-direction: column; min-width: 0; }
.palette .pr .pt b { font-weight: 500; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.palette .pr .pt small { color: var(--ink-3); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.palette .pr .pv { margin-left: auto; font-family: var(--font-num); color: var(--ink-2); font-size: 13px; white-space: nowrap; }
.palette .pfoot { display: flex; gap: 16px; padding: 8px 16px; border-top: 1px solid var(--line-soft); font-size: 12px; color: var(--ink-3); }
.palette .phint { padding: 22px 16px; color: var(--ink-3); font-size: 13px; text-align: center; }
mark { background: var(--warn-soft); color: inherit; border-radius: 2px; padding: 0 1px; }

/* 可搜的下拉（选客户、陪玩、服务项目） */
.combo-btn { width: 100%; display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px; border-radius: var(--r-ctl); border: 1px solid var(--line); background: var(--surface); cursor: pointer; text-align: left; color: var(--ink); }
.combo-btn:hover { border-color: var(--ink-4); }
.combo-btn.ph { color: var(--ink-3); }
.combo-btn[disabled] { opacity: .55; cursor: default; }
.combo-btn .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.combo-btn .side { color: var(--ink-3); font-size: 12.5px; font-family: var(--font-num); white-space: nowrap; }
.drop { position: fixed; z-index: 85; background: var(--surface); border-radius: 10px; box-shadow: var(--shadow-pop); overflow: hidden; animation: pop-in .14s var(--ease); }
.drop .dsearch { padding: 8px; border-bottom: 1px solid var(--line-soft); }
.drop .dsearch input { width: 100%; }
.drop .dlist { max-height: 300px; overflow: auto; padding: 4px; }
.drop .dit { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 6px; cursor: pointer; font-size: 13.5px; }
.drop .dit:hover, .drop .dit.act { background: var(--surface-3); }
.drop .dit .side { margin-left: auto; color: var(--ink-3); font-size: 12.5px; font-family: var(--font-num); white-space: nowrap; }
.drop .dnone { padding: 12px 10px; color: var(--ink-3); font-size: 13px; }
.stepper { display: inline-flex; align-items: stretch; height: 36px; border: 1px solid var(--line); border-radius: var(--r-ctl); overflow: hidden; background: var(--surface); }
.stepper button { width: 36px; border: 0; background: var(--surface-2); cursor: pointer; color: var(--ink-2); font-size: 16px; }
.stepper button:hover { background: var(--surface-3); color: var(--ink); }
.stepper input { width: 70px; border: 0; text-align: center; outline: none; font-family: var(--font-num); font-size: 15px; background: transparent; min-width: 0; }
.stepper .u { display: grid; place-items: center; padding: 0 10px; color: var(--ink-3); font-size: 13px; border-left: 1px solid var(--line-soft); background: var(--surface-2); white-space: nowrap; }
/* 表单里的数量框跟别的框一样宽：中间的数字框撑满 */
.field > .stepper { display: flex; width: 100%; }
.field > .stepper input { flex: 1; width: auto; }

/* ---------------- 手机的样子（<900px） ---------------- */
.tabbar { display: none; }
.mhero { display: none; }
.grp { margin-top: 18px; }
.grp:first-child { margin-top: 0; }
.grp-h { margin: 0 4px 7px; font-size: 13px; font-weight: 600; color: var(--ink-3); letter-spacing: .02em; display: flex; align-items: center; gap: 8px; }
.grp-h .grow { flex: 1; }
.grp-b { background: var(--surface); border-radius: 14px; overflow: hidden; border: 1px solid var(--line-soft); }
.grp-f { margin: 7px 4px 0; font-size: 12.5px; color: var(--ink-3); line-height: 1.5; }
.li { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 54px; padding: 10px 14px; text-align: left; border: 0; background: transparent; color: var(--ink); cursor: pointer; transition: background-color .15s; font-size: 15px; }
.li:hover { background: var(--surface-2); color: var(--ink); }
.li:active { background: var(--surface-3); }
.grp-b > .li + .li::before { content: ""; position: absolute; top: 0; right: 0; left: 58px; height: 1px; background: var(--line-soft); }
.grp-b.plain > .li + .li::before { left: 14px; }
.li .tile { flex: none; width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.li .tile.t2 { background: var(--ok-soft); color: var(--ok-ink); }
.li .tile.t3 { background: var(--warn-soft); color: var(--warn-ink); }
.li .tile.t4 { background: var(--bad-soft); color: var(--bad-ink); }
.li .tile.t5 { background: var(--surface-3); color: var(--ink-2); }
.li .m { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.li .lt { font-size: 15px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.li .ls { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.li .lv { flex: none; color: var(--ink-3); font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.li .pill { flex: none; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; background: var(--bad); color: #fff; font-size: 12px; font-weight: 600; line-height: 22px; text-align: center; font-family: var(--font-num); }
.li .pill.soft { background: var(--surface-3); color: var(--ink-2); }
.li .chev { flex: none; color: var(--ink-4); }
.li.danger { justify-content: center; color: var(--bad); }
.li.danger .lt { color: var(--bad); text-align: center; }

@media (max-width: 1180px) {
  .todo { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .todo-item:nth-child(4)::before { display: none; }
  .g-2-1, .g-3-2, .g-1-2 { grid-template-columns: minmax(0, 1fr); }
  .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gsearch { width: 220px; }
}
@media (max-width: 899px) {
  body { font-size: 15px; }
  .app, .app.collapsed { grid-template-columns: minmax(0, 1fr); }
  .sider { position: fixed; left: 0; top: 0; bottom: 0; width: 264px; transform: translateX(-100%); transition: transform .24s var(--ease); box-shadow: var(--shadow-pop); z-index: 70; }
  .app.mnav .sider { transform: none; }
  .app.collapsed .brandname, .app.collapsed .store, .app.collapsed .menu-group, .app.collapsed .menu-item .label, .app.collapsed .menu-item .badge { display: initial; }
  .menu-item { height: 42px; font-size: 15px; }
  .collapse-btn { display: none !important; }
  .header { height: 52px; padding: 0 8px; gap: 4px; padding-top: env(safe-area-inset-top, 0px); height: calc(52px + env(safe-area-inset-top, 0px)); background: var(--bar); }
  .crumbs, .gsearch span, .gsearch kbd, .me .who, .h-report .label, .hspace { display: none; }
  .h-recharge svg { display: none; }
  .gsearch { width: 38px; height: 38px; padding: 0; justify-content: center; margin-left: 0; background: transparent; border: 0; }
  .menu-toggle, .hback { display: grid; }
  .htitle { display: block; font-size: 17px; font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-left: 4px; }
  .iconbtn { width: 38px; height: 38px; }
  .h-help { display: none; }
  .content { padding: 12px 16px calc(var(--tab-h) + 28px + env(safe-area-inset-bottom, 0px)); }
  .no-tabbar .content { padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px)); }
  .page-head { margin-bottom: 12px; }
  .page-head .page-title { font-size: 26px; font-weight: 700; letter-spacing: -.01em; }
  .page-head .page-title.sm { font-size: 20px; }
  .page-actions .btn { height: 36px; }
  .tabbar {
    position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr));
    height: calc(var(--tab-h) + env(safe-area-inset-bottom, 0px)); padding-bottom: env(safe-area-inset-bottom, 0px);
    background: var(--bar); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-top: 1px solid var(--line);
  }
  .no-tabbar .tabbar { display: none; }
  .tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--ink-3); font-size: 11px; font-weight: 500; }
  .tabbar a.on { color: var(--brand); }
  .tabbar a.on svg { animation: tab-pop .45s var(--ease-spring); }
  @keyframes tab-pop { 0% { transform: scale(.8); } 60% { transform: scale(1.12); } 100% { transform: scale(1); } }
  .tabbar .badge { position: absolute; top: 4px; left: calc(50% + 6px); min-width: 17px; height: 17px; padding: 0 5px; border-radius: 9px; background: var(--bad); color: #fff; font-size: 10.5px; font-weight: 700; line-height: 17px; text-align: center; font-family: var(--font-num); }
  .g-2, .g-3, .g-4 { grid-template-columns: minmax(0, 1fr); }
  .desc { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .calc { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .calc > div:nth-child(3) { border-left: 0; }
  .calc > div:nth-child(n+3) { border-top: 1px solid var(--line-soft); }
  .input, .select { height: 40px; font-size: 16px; }
  .search { height: 40px; }
  .search input { font-size: 16px; }
  .btn { height: 38px; font-size: 15px; }
  .btn.sm { height: 30px; font-size: 13.5px; }
  .btn.lg { height: 48px; font-size: 16px; border-radius: 10px; }
  .combo-btn { height: 42px; font-size: 16px; }
  .stepper { height: 42px; }
  .filters { padding: 12px 14px; }
  .filters .search { width: 100% !important; }
  .tabs { padding: 0 14px; gap: 18px; }
  .card-head { padding: 12px 16px 0; }
  .card-body { padding: 12px 16px 16px; }
  .kpi { padding: 14px 14px 12px; }
  .drawer, .drawer.wide, .drawer.narrow { width: 100vw; top: 0; border-radius: 0; }
  html:not(.fx) .drawer { animation: sheet-in .3s var(--ease); }
  @keyframes sheet-in { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
  .drawer-head { padding: 0 8px 0 16px; padding-top: env(safe-area-inset-top, 0px); height: calc(56px + env(safe-area-inset-top, 0px)); }
  .drawer-body { padding: 16px 16px 24px; }
  .drawer-foot { padding-left: 16px; padding-right: 16px; }
  .drawer-foot .btn { flex: 1; height: 44px; }
  .drawer-foot .grow { display: none; }
  .dialog { top: auto; bottom: 0; left: 0; right: 0; width: 100%; transform: none; border-radius: 16px 16px 0 0; max-height: 86vh; padding-bottom: env(safe-area-inset-bottom, 0px); }
  html:not(.fx) .dialog { animation: sheet-up .28s var(--ease); }
  .dialog.wide { width: 100%; }
  @keyframes sheet-up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
  .dialog-foot .btn { flex: 1; height: 44px; }
  .palette { top: 8px; }
  .toast-zone { top: calc(60px + env(safe-area-inset-top, 0px)); }
  .tbl-foot { padding: 10px 14px 12px; }
  .mhero { display: block; }
  .hide-m { display: none !important; }
}
@media (min-width: 900px) {
  .show-m { display: none !important; }
}
@media (max-width: 560px) {
  .todo { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .todo-item:nth-child(3)::before, .todo-item:nth-child(5)::before { display: none; }
  .todo-item { padding: 12px 14px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi-value { font-size: 21px; }
  .kpi .spark { display: none; }
  .desc { grid-template-columns: minmax(0, 1fr); }
  .mini-stats { gap: 8px; }
}

/* ---------------- 登录、设密码这几页（没有菜单） ---------------- */
.auth { min-height: 100%; display: grid; place-items: center; padding: 24px 16px calc(24px + env(safe-area-inset-bottom, 0px)); background:
  radial-gradient(1200px 600px at 85% -10%, var(--brand-soft), transparent 60%), var(--bg); }
.auth-card { width: min(400px, 100%); background: var(--surface); border: 1px solid var(--line-soft); border-radius: 16px; padding: 28px 26px 24px; box-shadow: var(--shadow-cell); animation: view-in .3s var(--ease); }
.auth-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.auth-brand .brandmark { width: 34px; height: 34px; border-radius: 9px; }
.auth-brand b { font-size: 17px; font-weight: 600; letter-spacing: .3px; }
.auth-brand small { display: block; font-size: 12.5px; color: var(--ink-3); font-weight: 400; margin-top: 1px; }
.auth h1 { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.auth .lead { color: var(--ink-3); font-size: 13.5px; margin-bottom: 18px; line-height: 1.6; }
.auth form { display: flex; flex-direction: column; gap: 14px; }
.auth .input { height: 42px; font-size: 16px; width: 100%; }
.auth .btn.primary { height: 44px; font-size: 16px; width: 100%; }
.auth .foot { margin-top: 16px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; }
.auth .err { color: var(--bad-ink); font-size: 13px; min-height: 20px; }
/* 登录、第一次设密码、收验证码、设密码链接（静态页，脚本沿用老的类名，逻辑没动）——2026-10-06 换新样子 */
body.bare { min-height: 100vh; background: radial-gradient(1200px 600px at 85% -10%, var(--brand-soft), transparent 60%), var(--bg); }
.auth-wrap { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 32px 16px calc(32px + env(safe-area-inset-bottom, 0px)); }
.auth-wrap .auth-brand { width: min(400px, 100%); margin: 0; }
.auth-hero { width: min(400px, 100%); }
.auth-hero .display, .auth-wrap .brand-big { font-size: 24px; font-weight: 700; color: var(--ink); margin: 0 0 6px; }
.auth-hero .lead { color: var(--ink-3); font-size: 13.5px; line-height: 1.7; margin: 0; }
:is(.auth-wrap, .lp-dialog) .field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
:is(.auth-wrap, .lp-dialog) .field label { font-size: 13.5px; color: var(--ink-2); font-weight: 500; }
:is(.auth-wrap, .lp-dialog) input:not([type=checkbox]):not([type=radio]) { height: 44px; font-size: 16px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--surface); color: var(--ink); width: 100%; outline: none; transition: border-color .15s, box-shadow .15s; }
:is(.auth-wrap, .lp-dialog) input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
:is(.auth-wrap, .lp-dialog) .hint { font-size: 12.5px; color: var(--ink-3); line-height: 1.7; margin: 0; }
/* 014 报名页：自我介绍的大框、"选填"小字（只有报名页用 textarea） */
.auth-wrap textarea { min-height: 120px; font-size: 16px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--surface); color: var(--ink); width: 100%; resize: vertical; line-height: 1.6; outline: none; transition: border-color .15s, box-shadow .15s; }
.auth-wrap textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.auth-wrap .field label .opt { font-size: 12px; color: var(--ink-3); font-weight: 400; margin-left: 4px; }
.auth-wrap p { margin: 0 0 10px; }
:is(.auth-wrap, .lp-dialog) .error-text { color: var(--bad-ink); font-size: 13px; margin-bottom: 10px; }
:is(.auth-wrap, .lp-dialog) .form-actions { display: flex; flex-direction: column; gap: 10px; margin: 6px 0 4px; }
:is(.auth-wrap, .lp-dialog) .btn { height: 44px; font-size: 15px; width: 100%; }
.btn.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.btn-primary:hover { background: var(--brand); filter: brightness(1.06); color: #fff; }
.auth-foot { font-size: 13px; color: var(--ink-3); margin: 0; }
:is(.auth-wrap, .lp-dialog) .notice { display: block; margin-bottom: 12px; }
.notice.notice-amber { background: var(--warn-soft); color: var(--warn-ink); }
.notice.notice-green { background: var(--ok-soft); color: var(--ok-ink); }
.notice.notice-red { background: var(--bad-soft); color: var(--bad-ink); }
.notice.notice-gray { background: var(--surface-2); color: var(--ink-2); }
.auth-wrap .loading { color: var(--ink-3); padding: 12px 0; }
.codebox { display: flex; gap: 8px; }
.codebox .input { flex: 1; }
/* 2026-10-09：跟登录页一套画面（静心的第一段风景＋车窗，只摆静图、不放视频，省流量），卡片成毛玻璃，卡片外面的字改白 */
body.bare { background: #000; }
body.bare::before, body.bare::after { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background-position: center; background-size: cover; background-repeat: no-repeat; }
body.bare::before { z-index: -2; transform: scale(1.04);
  background-image: image-set(url("/hero/v2/s1-poster-1280.webp") 1x, url("/hero/v2/s1-poster-1920.webp") 2x); }
body.bare::after { background-image: image-set(url("/hero/v2/window-1600.webp") 1x, url("/hero/v2/window-2752.webp") 2x); }
body.bare .auth-brand b, body.bare .auth-hero .display { color: #FFFFFF; text-shadow: 0 2px 18px rgba(0, 0, 0, .35); }
body.bare .auth-brand small, body.bare .auth-hero .lead { color: rgba(255, 255, 255, .82); text-shadow: 0 1px 10px rgba(0, 0, 0, .35); }
body.bare .auth-foot, body.bare .auth-foot a { color: rgba(255, 255, 255, .85); }
body.bare .auth-card { border-radius: 22px; border: 0; background: color-mix(in srgb, var(--surface) 82%, transparent);
  -webkit-backdrop-filter: blur(26px) saturate(1.6); backdrop-filter: blur(26px) saturate(1.6);
  box-shadow: 0 34px 80px -24px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .5); }
body.bare .auth-card input:not([type=checkbox]):not([type=radio]) { border-radius: 12px; background: color-mix(in srgb, var(--surface) 70%, transparent); border-color: color-mix(in srgb, var(--ink) 13%, transparent); }
body.bare .auth-card input:focus { background: var(--surface); border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft), 0 10px 24px -14px var(--brand); }
body.bare .auth-card textarea { border-radius: 12px; background: color-mix(in srgb, var(--surface) 70%, transparent); border-color: color-mix(in srgb, var(--ink) 13%, transparent); }
body.bare .auth-card textarea:focus { background: var(--surface); border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft), 0 10px 24px -14px var(--brand); }
body.bare .auth-card .btn { border-radius: 12px; }

/* ---------------- 登录页（2026-10-09：照 Motion Sites「静心（Stillmind）」）----------------
   董事长 10-09：「不用即梦了」，用 Motion Sites、React Bits、Uiverse、Anime.js、Aceternity UI 五个网站重做网页；登录页照他在 Motion Sites 上选的「静心」。
   照它的提示词做：一整屏、不滚动；最前面一扇火车车窗，一直轻轻上下晃（3 秒、0 → -6px、一直放大 1.03 免得晃出边）；
   窗外四段风景（黄昏、静水、深林、破晓）一直在动，点名字 1 秒淡入淡出换一段；右上角毛玻璃那条＋白按钮；中间一行大衬线字；
   换到「深林」（雪景，画面亮）时中间的字 0.7 秒变成深色 #182C41，导航和最底下那行一直是白的。C1：右上登录入口去毛玻璃胶囊；.lp-glass 规则保留（登录框内另论，本刀不动）。
   字照董事长 10-07 说的少：中间只有「久合报单」；「登录」只在右上角这一处（点了弹框）；原版的英文宣传语、邮箱框、统计数字都不要。
   在原版上加的：大字从模糊里一个个浮出来（照 React Bits「BlurText」）；鼠标一动车窗比窗外挪得多（视差）；电脑上 12 秒自己换一段；
   登录框毛玻璃弹出（照 Aceternity「Animated Modal」）、按钮先转圈再打对勾（照 Aceternity「Stateful Button」）、输入框亮边（照 Uiverse）。
   动作都由 Anime.js 演（public/motion.js）。画面这一屏有自己的一套颜色（--h-*），⛔ 不跟系统的浅色/深色走；登录框用系统的颜色。 */
/* 大字的字体：思源宋体（Noto Serif SC，SIL OFL 1.1，可商用），只截了「久合报单」四个字，3KB；别的字落到系统字体 */
@font-face { font-family: "JH Serif"; src: url("/fonts/jh-serif.woff2") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; }
body.lp {
  --h-ink: #FFFFFF; --h-ink-2: rgba(255, 255, 255, .9); --h-ink-3: rgba(255, 255, 255, .7); --h-dark: #182C41;
  --h-btn: #FFFFFF; --h-on-btn: #0B0F14;
  --h-serif: "JH Serif", "Noto Serif SC", "Source Han Serif SC", "Songti SC", serif;
  --h-sans: system-ui, -apple-system, "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei", sans-serif;
  --h-ease: cubic-bezier(.4, 0, .2, 1);
  background: #000; color: var(--h-ink);
}
html.lp-locked { overflow: hidden; }
.lp-hero :focus-visible, .lp-menu :focus-visible { outline: 2px solid var(--h-ink); outline-offset: 3px; }

/* 一整屏（黑底：视频没出来之前不闪白） */
.lp-hero { position: relative; width: 100%; height: 100vh; height: 100svh; min-height: 520px; overflow: hidden; background: #000; isolation: isolate; font-family: var(--h-sans); }
/* 两层画面各套一层"视差壳"：壳子跟着鼠标挪（JS），里面的放大、上下晃（CSS）互不打架 */
.lp-par { position: absolute; inset: 0; z-index: 0; }
.lp-par-win { z-index: 1; pointer-events: none; }
.lp-scenes { position: absolute; inset: 0; transform: scale(1.04); }
.lp-scene { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease-in-out; }
.lp-scene.on { opacity: 1; }
.lp-scene img, .lp-scene video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.lp-scene video { opacity: 0; transition: opacity .4s linear; } /* 静图就是视频的第一帧：放起来才盖上去，接得上 */
.lp-scene video.on { opacity: 1; }
.lp-window { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.03); animation: lp-bob 3s ease-in-out infinite; }
@keyframes lp-bob { 0%, 100% { transform: translateY(0) scale(1.03); } 50% { transform: translateY(-6px) scale(1.03); } }

/* 毛玻璃（照静心的 .liquid-glass：几乎透明、模糊 4px、上下两头亮的细边） */
.lp-glass { position: relative; overflow: hidden; background: rgba(255, 255, 255, .01); background-blend-mode: luminosity; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); border: none; box-shadow: inset 0 1px 1px rgba(255, 255, 255, .1); }
.lp-glass::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.4px; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .45) 0%, rgba(255, 255, 255, .15) 20%, rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, 0) 60%, rgba(255, 255, 255, .15) 80%, rgba(255, 255, 255, .45) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }

/* 字和按钮这一层：上面导航，中间大字，最底下一行（中间撑开） */
.lp-ui { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; }
.lp-nav { position: relative; z-index: 60; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 18px 0; }
.lp-logo { font-family: var(--h-serif); font-size: 21px; font-weight: 500; letter-spacing: .14em; color: var(--h-ink); text-shadow: 0 1px 12px rgba(0, 0, 0, .25); }
.lp-logo:hover { color: var(--h-ink); }
.lp-nav-r { display: flex; align-items: center; gap: 8px; }
.lp-pill { display: flex; align-items: center; gap: 2px; padding: 5px 5px 5px 12px; border-radius: 999px; }
.lp-pill a { padding: 6px 12px; font-size: 14px; color: var(--h-ink-2); border-radius: 999px; transition: color .2s; }
.lp-pill a:hover { color: var(--h-ink); }
/* C1：右上「登录」干净实底钮（去 lp-pill／lp-glass 胶囊怪样）；不改登录逻辑 */
.lp-nav-login { display: flex; align-items: center; }
.lp-start { height: 36px; padding: 0 20px; margin: 0; border: 0; border-radius: 999px; background: var(--h-btn); color: var(--h-on-btn); font-size: 14px; font-weight: 600; letter-spacing: .06em; cursor: pointer;
  box-shadow: 0 6px 20px -8px rgba(0, 0, 0, .45); transition: transform .2s var(--h-ease), box-shadow .2s var(--h-ease); }
.lp-start:hover { transform: translateY(-1px); box-shadow: 0 12px 28px -10px rgba(0, 0, 0, .55); }
.lp-burger { display: none; place-items: center; width: 40px; height: 40px; border-radius: 999px; color: var(--h-ink); cursor: pointer; }
.lp-burger svg { position: absolute; transition: transform .3s var(--h-ease), opacity .3s var(--h-ease); }
.lp-burger .x { opacity: 0; transform: rotate(-90deg) scale(.75); }
.lp-burger[aria-expanded="true"] .m { opacity: 0; transform: rotate(90deg) scale(.75); }
.lp-burger[aria-expanded="true"] .x { opacity: 1; transform: none; }

.lp-center { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 16px; margin-top: clamp(72px, 19vh, 210px); color: var(--h-ink); transition: color .7s; }
.lp-hero.dark .lp-center { color: var(--h-dark); }
.lp-title { margin: 0; font-family: var(--h-serif); font-weight: 500; font-size: 40px; line-height: 1.1; letter-spacing: .12em; padding-left: .12em; /* 字距加在每个字后面：左边补一样多，整行才居中 */
  text-shadow: 0 2px 30px rgba(0, 0, 0, .2); transition: text-shadow .7s; }
.lp-hero.dark .lp-title { text-shadow: none; }
.lp-chars { display: inline-flex; }
.lp-chars i { display: inline-block; font-style: normal; }
.lp-chars.pre i { opacity: 0; animation: lp-show 0s linear 2.4s forwards; } /* 等 JS 接手让字浮出来；JS 没来（文件没下来）2.4 秒后照样露出来 */
@keyframes lp-show { to { opacity: 1; } }
.lp-switch { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 22px; margin-top: 34px; }
.lp-switch button { padding: 6px 2px 5px .2em; font-size: 14px; letter-spacing: .2em; color: inherit; background: none; border: 0; border-bottom: 1.5px solid transparent; opacity: .5; cursor: pointer; transition: opacity .3s, border-color .3s; }
.lp-switch button:hover { opacity: .8; }
.lp-switch button[aria-pressed="true"] { opacity: 1; border-bottom-color: currentColor; }

.lp-foot { margin-top: auto; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 2px 12px; padding: 14px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  font-size: 12px; color: var(--h-ink-3); text-shadow: 0 1px 8px rgba(0, 0, 0, .4); }
.lp-foot a { color: var(--h-ink-3); }
.lp-foot a:hover { color: var(--h-ink); }
.lp-foot i { font-style: normal; opacity: .6; display: none; }

@media (min-width: 640px) {
  .lp-nav { padding: 24px 32px 0; }
  .lp-logo { font-size: 25px; }
  .lp-title { font-size: 52px; }
  .lp-foot { font-size: 13px; gap: 4px 14px; padding-bottom: calc(22px + env(safe-area-inset-bottom, 0px)); }
  .lp-foot i { display: inline; }
}
@media (min-width: 768px) { .lp-title { font-size: 72px; } }
@media (min-width: 1024px) { .lp-nav { padding: 28px 48px 0; } .lp-title { font-size: 5.5rem; } }
/* 手机：右上只留白色「登录」实底钮（C1 已无玻璃胶囊）；教程／说明入口已撤 */
@media (max-width: 767px) {
  .lp-nav-login { padding: 0; }
  .lp-start { margin: 0; height: 38px; }
  .lp-burger { display: grid; }
}

/* 手机的菜单：盖一层黑（模糊一点），两条大字一条条上来 */
.lp-menu { position: fixed; inset: 0; z-index: 50; }
.lp-menu-scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, .6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.lp-menu-panel { position: relative; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px; padding: 96px 24px; pointer-events: none; }
.lp-menu-panel a { pointer-events: auto; font-size: 28px; font-weight: 500; letter-spacing: .14em; color: var(--h-ink); }

/* 登录框：系统的颜色，半透明毛玻璃，边上一圈亮边（照 React Bits「GlassSurface」/静心的毛玻璃，厚一点） */
.lp-modal { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 16px; }
.lp-scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, .42); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lp-dialog { position: relative; width: min(400px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 30px 28px 24px; border-radius: 24px; color: var(--ink);
  background: color-mix(in srgb, var(--surface) 80%, transparent); -webkit-backdrop-filter: blur(28px) saturate(1.6); backdrop-filter: blur(28px) saturate(1.6);
  box-shadow: 0 40px 90px -24px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .5); }
.lp-dialog::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.2px; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .7), rgba(255, 255, 255, .12) 30%, rgba(255, 255, 255, 0) 55%, rgba(255, 255, 255, .25));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.lp-dialog .auth-brand { margin: 0 0 22px; padding-right: 30px; }
.lp-dialog .auth-card { width: auto; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; animation: none; }
.lp-dialog .hint { margin-top: 14px; }
/* 输入框（照 Uiverse 那种：半透明底，点进去亮一圈、底下透一点光） */
.lp-dialog input:not([type=checkbox]):not([type=radio]) { height: 46px; border-radius: 12px; background: color-mix(in srgb, var(--surface) 70%, transparent);
  border: 1px solid color-mix(in srgb, var(--ink) 13%, transparent); transition: border-color .2s, box-shadow .25s, background .2s; }
.lp-dialog input:focus { background: var(--surface); border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft), 0 10px 24px -14px var(--brand); }
.lp-dialog .btn { height: 46px; border-radius: 12px; }
.lp-dialog .btn-primary { box-shadow: 0 10px 24px -12px var(--brand); }
.lp-x { position: absolute; z-index: 1; right: 12px; top: 12px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: none; display: grid; place-items: center; color: var(--ink-3); cursor: pointer; transition: background .15s, color .15s; }
.lp-x:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); color: var(--ink); }
@media (max-width: 767px) {
  .lp-modal { place-items: end center; padding: 0; }
  .lp-dialog { width: 100%; max-height: calc(100svh - 24px); border-radius: 24px 24px 0 0; padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
}

/* 按钮先转圈、成了打对勾（照 Aceternity「Stateful Button」；public/motion.js 的 FX.stateful 加 .st-load / .st-done） */
.st-ico { display: none; position: relative; width: 18px; height: 18px; }
:is(.st-load, .st-done) > .st-ico { display: inline-block; }
.st-spin { position: absolute; inset: 1px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
.st-ok { position: absolute; inset: 0; width: 18px; height: 18px; display: none; }
.st-done .st-spin { display: none; }
.st-done .st-ok { display: block; }
.btn.st-load[disabled], .btn.st-done[disabled] { opacity: 1; }

/* 打印、动效 */
@media print {
  .sider, .header, .tabbar, .page-actions, .tbl-tools, .pager { display: none !important; }
  .app { display: block; }
  .content { padding: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .chart .draw { stroke-dashoffset: 0; }
}

/* 看板（客户看板、陪玩看板，2026-10-06 第二段） */
.seg-scroll { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg-scroll::-webkit-scrollbar { display: none; }
.hours { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); gap: 3px; align-items: end; height: 120px; }
.hours i { display: block; border-radius: 3px 3px 0 0; background: var(--s1); min-height: 2px; position: relative; transform-origin: 50% 100%; }
html:not(.fx) .hours i { animation: grow-y .7s cubic-bezier(.2, .9, .25, 1.04) both; animation-delay: calc(var(--i, 0) * 22ms + 80ms); }
.hours-x { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); gap: 3px; margin-top: 6px; font-family: var(--font-num); font-size: 11px; color: var(--ink-3); text-align: center; }
.bk-row { display: grid; grid-template-columns: 78px minmax(0, 1fr) 40px; align-items: center; gap: 10px; font-size: 12.5px; }
.bk-row .rank-bar { height: 8px; }
.split-row + .split-row { margin-top: 14px; }
.split-row .hd { display: flex; justify-content: space-between; font-size: 12.5px; margin-bottom: 6px; }
.split-row .legend { margin-top: 6px; }
.rank-row.r4 { grid-template-columns: minmax(0, 1.4fr) auto auto auto; }
@media (max-width: 899px) {
  .rank-row { padding: 0 14px; }
  .rank-row:not(.r4) { grid-template-columns: 22px minmax(0, 1.6fr) minmax(0, .7fr) auto; gap: 8px; }
  .kpis.k3 > :last-child { grid-column: 1 / -1; }
  .rank-row.r4 { grid-template-columns: minmax(0, 1fr) auto; height: auto; padding: 8px 14px; row-gap: 2px; }
  .rank-row.r4 > :nth-child(2) { grid-column: 1; grid-row: 2; }
  .rank-v { min-width: 0; }
}

/* ---- 说明页、教程页（不用登录的长文；2026-10-06 第二段起不再用 legacy.css）---- */
body.doc { background: var(--bg); }
.doc .page { max-width: 780px; margin: 0 auto; padding: 32px 20px calc(48px + env(safe-area-inset-bottom, 0px)); }
.doc .doc-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; color: var(--ink); font-weight: 600; font-size: 15px; }
.doc .doc-brand .bm { width: 28px; height: 28px; border-radius: 8px; background: var(--brand); color: #fff; display: grid; place-items: center; }
.doc .doc-brand .grow { flex: 1; }
.doc h1, .doc .page-title { font-size: 28px; font-weight: 650; letter-spacing: -.01em; line-height: 1.3; margin: 0 0 10px; display: block; }
.doc .page-sub, .doc .lead { color: var(--ink-2); font-size: 15px; line-height: 1.75; margin: 0 0 18px; }
.doc .card { padding: 18px 22px; margin: 0 0 14px; }
.doc .card > :first-child { margin-top: 0; }
.doc .card > :last-child { margin-bottom: 0; }
.doc p { margin: 8px 0; }
.doc .hint { color: var(--ink-3); font-size: 13px; }
.doc .notice { margin: 0 0 16px; }
.doc p.notice { display: block; }
.doc .notice-gray { background: var(--surface-2); color: var(--ink-2); }
.doc .notice-green { background: var(--ok-soft); color: var(--ok-ink); }
.doc dl.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 16px; margin: 10px 0; }
.doc dl.kv dt { font-weight: 600; color: var(--ink); }
.doc dl.kv dd { margin: 0; color: var(--ink-2); line-height: 1.7; }
.doc .doc-nav { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-card); overflow: hidden; margin: 18px 0; }
.doc .doc-nav a { display: flex; align-items: center; gap: 12px; padding: 14px 18px; color: var(--ink); }
.doc .doc-nav a + a { border-top: 1px solid var(--line-soft); }
.doc .doc-nav a:hover { background: var(--surface-2); color: var(--ink); }
.doc .doc-nav .t { font-weight: 600; font-size: 15px; }
.doc .doc-nav .s { color: var(--ink-3); font-size: 13px; margin-top: 2px; }
.doc .doc-nav .go { margin-left: auto; color: var(--ink-4); }
.doc .doc-foot { text-align: center; color: var(--ink-3); font-size: 13px; margin-top: 24px; }
/* 教程 */
.tut-progress { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-size: 13px; font-weight: 500; margin: 0 0 18px; }
.tut-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.tut-step { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-card); padding: 18px 20px 16px; }
.tut-step.is-done { border-color: var(--ok); }
.tut-head { display: flex; align-items: center; gap: 12px; }
.tut-head h2 { font-size: 17px; font-weight: 600; margin: 0; }
.tut-n { width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-family: var(--font-num); font-weight: 600; font-size: 14px; flex: none; }
.tut-step.is-done .tut-n { background: var(--ok); }
.tut-text { color: var(--ink-2); line-height: 1.75; margin: 10px 0 0; }
.tut-list { margin: 10px 0 0; padding-left: 22px; color: var(--ink-2); line-height: 1.75; }
.tut-shot { display: block; width: 100%; height: auto; margin: 14px auto 0; border-radius: 12px; border: 1px solid var(--line-soft); }
.tut-shot.phone { max-width: 360px; }
.tut-done { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; color: var(--ink-2); font-size: 14px; cursor: pointer; }
.tut-done input { width: 18px; height: 18px; accent-color: var(--ok); }
.tut-link { margin: 12px 0 0; }
@media (max-width: 759px) {
  .doc .page { padding: 20px 16px calc(40px + env(safe-area-inset-bottom, 0px)); }
  .doc h1, .doc .page-title { font-size: 24px; }
  .tut-step { padding: 16px 14px 14px; }
  .doc dl.kv { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .doc dl.kv dd { margin-bottom: 8px; }
}

/* 帮助搜索（问号点开）：搜一句、答一句、给个去的地方 */
.help-search { display: flex; flex-direction: column; gap: 12px; }
.help-box { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.help-box > svg { flex: none; color: var(--ink-3); }
.help-input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 15px; }
.help-hot { display: flex; flex-wrap: wrap; gap: 8px; }
.help-hot .btn { border-radius: 999px; }
.help-out { display: flex; flex-direction: column; gap: 8px; }
.help-item { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: var(--surface); }
.help-iq { font-weight: 600; color: var(--ink); }
.help-ia { margin-top: 4px; font-size: 13.5px; line-height: 1.65; color: var(--ink-2); }
.help-go { display: inline-block; margin-top: 8px; color: var(--brand); font-size: 13.5px; font-weight: 500; text-decoration: none; }
.help-go:hover { text-decoration: underline; }
.help-hint, .help-none { color: var(--ink-3); font-size: 13.5px; line-height: 1.6; }
.help-none b { color: var(--ink-2); }
.help-none span { margin-left: 2px; }


/* B3：定单列表状态列可点下拉（对等观感，禁复用壳像素） */
button.status-dd {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 0; border: 0; background: transparent; cursor: pointer;
  font: inherit; color: inherit; vertical-align: middle;
}
button.status-dd:hover .tag, button.status-dd:focus-visible .tag {
  filter: brightness(0.96);
  outline: 1px solid var(--line);
}
button.status-dd .status-dd-caret {
  display: inline-flex; color: var(--ink-3); flex: none;
}
button.status-dd:hover .status-dd-caret { color: var(--ink-2); }

/* 全部具体项目：电脑对齐数字，手机保留项目名、单价与两项指标。 */
.project-stat-list .project-stat-row { height:auto; min-height:64px; display:grid; grid-template-columns:minmax(0,1fr) 120px 160px; gap:16px; align-items:center; padding:12px 0; color:inherit; border-bottom:1px solid var(--line); text-decoration:none; }
.project-stat-name,.project-stat-number { display:flex; flex-direction:column; gap:4px; min-width:0; }
.project-stat-name b { overflow-wrap:anywhere; }
.project-stat-number,.project-stat-amount,.project-stat-head span:not(:first-child) { text-align:right; font-variant-numeric:tabular-nums; }
.project-stat-head { font-size:12px; }
a.project-stat-row:hover { background:var(--surface-2); }
@media(max-width:600px) { .project-stat-list .project-stat-row { grid-template-columns:minmax(0,1fr) 68px 92px; gap:8px; font-size:13px; } .project-stat-head { font-size:11px; } }

.project-stat-list .project-stat-bar { width:100%; height:3px; margin-top:2px; }

/* 客户账户：围绕余额、账目与服务记录，沿用全站颜色和深色模式。 */
.cp-shell { max-width:1080px; margin:0 auto; display:flex; flex-direction:column; gap:20px; min-width:0; }
.cp-page-head { display:flex; justify-content:space-between; align-items:center; gap:16px; padding:8px 0 4px; }
.cp-page-head h1 { font-size:28px; line-height:1.25; font-weight:650; margin:0 0 8px; letter-spacing:-.6px; }
.cp-eyebrow { color:var(--ink-2); font-size:12px; font-weight:550; letter-spacing:.5px; margin:0 0 8px; }
.cp-note { display:flex; align-items:flex-start; gap:8px; color:var(--ink-2); font-size:13px; line-height:1.7; margin:0; }
.cp-note > svg { flex:none; margin-top:3px; }
.cp-note span { min-width:0; }
.cp-account { display:grid; grid-template-columns:minmax(0,1.3fr) minmax(0,1fr); gap:20px; }
.cp-panel { background:var(--surface); border:1px solid var(--line); border-radius:16px; padding:24px; min-width:0; }
.cp-wallet { background:var(--surface); border:1px solid var(--brand-soft-2); border-radius:16px; padding:28px; min-width:0; }
.cp-wallet-top { display:flex; align-items:center; justify-content:space-between; color:var(--brand); gap:12px; }
.cp-identity { font-size:13px; font-weight:550; color:var(--ink-2); overflow-wrap:anywhere; }
.cp-balance-label { font-size:15px; margin:26px 0 4px; color:var(--ink-2); }
.cp-balance { display:block; font-size:clamp(30px,4.5vw,56px); font-weight:600; letter-spacing:-1.8px; line-height:1.15; overflow-wrap:anywhere; }
.cp-wallet-note { color:var(--ink-2); font-size:12px; margin:10px 0 24px; }
.cp-wallet-bottom { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:16px; padding:16px 0; border-top:1px solid var(--line); }
.cp-summary-item { display:flex; flex-direction:column; gap:8px; min-width:0; }
.cp-summary-item > span { font-size:13px; color:var(--ink-2); }
.cp-summary-item strong { font-size:22px; font-weight:550; line-height:1.3; overflow-wrap:anywhere; }
.cp-lock-button { appearance:none; border:0; background:none; padding:0 0 0 20px; border-left:1px solid var(--line); display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px; align-items:center; color:var(--ink); text-align:left; cursor:pointer; min-height:44px; font:inherit; }
.cp-lock-button > span { display:flex; gap:6px; align-items:center; font-size:13px; color:var(--ink-2); grid-column:1 / -1; }
.cp-lock-button strong { font-size:22px; font-weight:550; line-height:1.3; overflow-wrap:anywhere; }
.cp-lock-button > svg { color:var(--ink-2); }
.cp-wallet-actions { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-top:14px; }
.cp-wallet-actions .btn { min-height:46px; }
.cp-section-head { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:20px; }
.cp-section-head h2 { font-size:16px; font-weight:600; margin:0; }
.cp-text-link { display:inline-flex; align-items:center; gap:4px; color:var(--brand); font-size:13px; min-height:44px; text-decoration:none; }
.cp-text-link:hover { text-decoration:underline; }
.cp-summary { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:24px 20px; margin-bottom:28px; }
.cp-totals { display:flex; flex-direction:column; justify-content:space-between; }
.cp-totals .cp-note { padding-top:16px; border-top:1px solid var(--line); }
.cp-record { display:flex; align-items:center; gap:12px; padding:16px 0; border-bottom:1px solid var(--line-soft); color:var(--ink); text-decoration:none; }
.cp-record:first-child { padding-top:0; }
.cp-record:last-child { padding-bottom:0; border-bottom:0; }
a.cp-record:hover { color:var(--brand); }
.cp-record-icon { width:40px; height:40px; display:grid; place-items:center; flex:none; border-radius:12px; background:var(--surface-2); color:var(--ink-2); }
.cp-record-main { display:flex; flex:1; flex-direction:column; gap:5px; min-width:0; }
.cp-record-main b { font-size:14px; font-weight:550; }
.cp-record small { font-size:12px; color:var(--ink-2); line-height:1.5; }
.cp-record-main small { overflow-wrap:anywhere; }
.cp-record-money { display:flex; flex-direction:column; gap:5px; text-align:right; flex:none; }
.cp-record-money strong { font-size:18px; font-weight:550; }
.cp-help { appearance:none; display:flex; align-items:center; gap:14px; width:100%; border:1px solid var(--line); border-radius:14px; padding:18px 22px; background:var(--surface); color:var(--ink-2); font:inherit; text-align:left; cursor:pointer; }
.cp-help > span { display:flex; flex:1; flex-direction:column; gap:5px; min-width:0; }
.cp-help b { color:var(--ink); font-size:14px; font-weight:550; }
.cp-help small { font-size:12px; }
.cp-help:hover { border-color:var(--brand); }
.cp-empty { display:flex; flex-direction:column; align-items:center; gap:10px; padding:26px 8px; color:var(--ink-2); font-size:13px; text-align:center; }
.cp-empty b { font-weight:550; color:var(--ink); }
.cp-error { display:flex; align-items:center; gap:12px; padding:20px; border:1px solid var(--bad); border-radius:12px; background:var(--surface); }
.cp-error > span { flex:1; }
.cp-lock-detail > .cp-note { margin:16px 0; }
.cp-lock-list { display:flex; flex-direction:column; }
.cp-lock-row { display:flex; align-items:center; gap:12px; padding:16px 0; border-top:1px solid var(--line); color:var(--ink); text-decoration:none; }
.cp-lock-row > span { flex:1; display:flex; flex-direction:column; gap:6px; min-width:0; }
.cp-lock-row b { font-weight:550; }
.cp-lock-row small { font-size:12px; color:var(--ink-2); overflow-wrap:anywhere; }
.cp-lock-row strong { font-size:18px; font-weight:550; }
.cp-ledger-summary { padding:16px 24px; }
.cp-ledger-summary > summary { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:44px; cursor:pointer; font-size:14px; font-weight:550; list-style:none; }
.cp-ledger-summary > summary::-webkit-details-marker { display:none; }
.cp-ledger-summary[open] > summary { margin-bottom:16px; }
.cp-ledger-summary .formula { margin:16px 0 0 !important; }
.cp-ledger-records { padding:0; overflow:hidden; }
.cp-ledger-records > .cp-note { padding:16px 24px; border-top:1px solid var(--line); }
.cp-order-meta { display:flex; flex-direction:column; gap:4px; }
.cp-order-service b { font-weight:550; }
.cp-order-service .muted { font-size:12px; margin-top:6px; }
.cp-detail-summary { border:1px solid var(--line); border-radius:14px; padding:22px; margin-bottom:24px; background:var(--surface-2); }
.cp-detail-summary .cp-eyebrow { margin-top:20px; }
.cp-detail-summary .cp-note { margin-top:14px; }
.cp-detail-amount { display:block; font-size:36px; font-weight:600; letter-spacing:-.8px; line-height:1.3; overflow-wrap:anywhere; }
.cp-order-detail .proof-img { max-height:360px; max-width:100%; object-fit:contain; }
body.customer-page .cp-order-detail .desc { gap:0 20px; }
body.customer-page .cp-order-detail .desc .d { display:grid; grid-template-columns:78px minmax(0,1fr); align-items:baseline; gap:12px; padding:10px 0; border-bottom:1px solid var(--line-soft); }
body.customer-page .cp-order-detail .desc .d .k { color:var(--ink-2); }
body.customer-page .cp-order-detail .desc .d .v { text-align:right; }
body.customer-page .cp-order-detail .biz-doc-section { margin-bottom:24px; }
.cp-profile { max-width:760px; }
.customer-page .cp-records { border-radius:14px; overflow:hidden; }
.customer-page .cp-orders > .cp-note { margin-bottom:0; }
.customer-page .cp-shell .morebar { margin:0; }
.customer-page .cp-shell > .grp { margin:0; }
@media (min-width:900px) {
  .customer-page .content { padding:32px 36px 48px; }
  .cp-order-detail .desc { grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
}
@media (max-width:899px) {
  .customer-page .content { padding:20px 16px calc(var(--tab-h) + 32px + env(safe-area-inset-bottom,0px)); }
  .customer-page .header .menu-toggle { display:none; }
  .cp-shell { gap:16px; }
  .cp-page-head { padding:2px 0 4px; align-items:flex-start; }
  .cp-page-head h1 { font-size:26px; }
  .cp-page-head .btn { min-width:0; padding:0 12px; flex:none; }
  .cp-account { grid-template-columns:minmax(0,1fr); gap:16px; }
  .cp-wallet { padding:22px; }
  .cp-balance { font-size:clamp(30px,10.8vw,48px); letter-spacing:-1.3px; }
  .cp-balance-label { margin-top:24px; }
  .cp-panel { padding:20px; }
  .cp-wallet-bottom { gap:12px; }
  .cp-summary-item strong,.cp-lock-button strong { font-size:21px; }
  .cp-summary { gap:20px; margin-bottom:20px; }
  .cp-section-head { margin-bottom:18px; }
  .cp-record { gap:10px; padding:16px 0; flex-wrap:wrap; }
  .cp-record-icon { display:none; }
  .cp-record-money strong { font-size:18px; }
  .cp-record-money { max-width:46%; overflow-wrap:anywhere; }
  .cp-record-main { flex-basis:42%; }
  .cp-help { padding:18px; }
  .cp-ledger-summary { padding:12px 20px; }
  .cp-ledger-records { padding:0; }
  .cp-ledger-records > .cp-note { padding:16px; }
  .cp-flow .cardrow { border-radius:0; }
  .cp-flow .cardrow .acts { padding-top:8px; }
  .cp-order-search .searchbox { width:100% !important; }
  .cp-orders .tabs { overflow-x:auto; flex-wrap:nowrap; }
  .cp-orders .tab { flex:none; }
  .cp-detail-summary { padding:18px; }
  .cp-error { flex-wrap:wrap; }
}


/* 客户快速预览：沿用原界面的颜色与抽屉。 */
.customer-preview-name { display:flex; align-items:center; gap:8px; width:100%; min-width:0; }
.customer-preview-name > .cell-ell { flex:1; min-width:0; max-width:140px; }
.customer-preview-trigger { display:inline-flex; align-items:center; justify-content:center; gap:6px; flex:none; width:32px; height:36px; padding:0; border:1px solid transparent; border-radius:6px; background:transparent; color:var(--ink-3); cursor:pointer; }
.customer-preview-trigger:hover, .customer-preview-trigger[aria-expanded='true'] { color:var(--brand); border-color:var(--line); background:var(--brand-soft); }
.customer-preview-trigger:focus-visible { outline:2px solid var(--brand); outline-offset:2px; }
.customer-preview-trigger-mobile { width:auto; min-width:76px; min-height:44px; padding-inline:12px; border-color:var(--line); color:var(--ink-2); font:500 12px/1 var(--font); }
.scrim:has(+ .customer-preview-drawer) { backdrop-filter:none; -webkit-backdrop-filter:none; background:color-mix(in srgb,var(--ink) 9%,transparent); }
.tbl tr.customer-preview-current > td { background:var(--brand-soft); }
.cardrow.customer-preview-current { background:var(--brand-soft); box-shadow:inset 2px 0 var(--brand); }
.customer-preview-current .customer-preview-trigger { color:var(--brand); border-color:var(--brand); }
.drawer.customer-preview-drawer { width:min(560px,100vw); background:var(--surface); isolation:isolate; }
.customer-preview-drawer .drawer-head { min-height:56px; padding-block:8px; margin-inline:20px; gap:8px; }
.customer-preview-drawer .drawer-head h3 { font:600 14px/1.5 var(--font); letter-spacing:0; }
.customer-preview-drawer .drawer-head .iconbtn { width:36px; height:36px; flex:none; }
.customer-preview-navigation { display:flex; align-items:center; gap:2px; flex:none; }
.customer-preview-counter { margin-right:8px; color:var(--ink-3); font:12px/1.5 var(--font); font-variant-numeric:tabular-nums; white-space:nowrap; }
.customer-preview-drawer .drawer-body { padding:20px; }
.customer-preview-drawer .drawer-foot { padding:12px 20px; justify-content:flex-end; }
.customer-preview-drawer .drawer-foot .btn { min-height:36px; }
.customer-preview-identity { display:flex; align-items:center; gap:12px; min-width:0; }
.customer-preview-identity > .ava { flex:none; border-radius:10px; background:var(--surface-2); color:var(--ink-2); }
.customer-preview-identity > div { min-width:0; }
.customer-preview-identity h2 { margin:0; font:600 22px/1.35 var(--font); letter-spacing:-.025em; overflow-wrap:anywhere; }
.customer-preview-meta { display:flex; align-items:center; flex-wrap:wrap; gap:6px; margin-top:5px; color:var(--ink-3); font-size:12px; }
.customer-preview-meta .mono { margin-right:3px; font-size:12px; }
.customer-preview-meta .tag { font-size:11px; }
.customer-preview-account { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); align-items:center; gap:20px; margin-top:16px; padding:14px 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.customer-preview-available { display:flex; flex-direction:column; gap:5px; min-width:0; }
.customer-preview-available > span { color:var(--brand); font-size:12px; }
.customer-preview-available > strong { color:var(--ink); font:600 26px/1.35 var(--font-num); font-variant-numeric:tabular-nums; letter-spacing:-.025em; overflow-wrap:anywhere; }
.customer-preview-balances { display:grid; gap:8px; min-width:0; }
.customer-preview-balances > div { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:baseline; gap:4px 8px; }
.customer-preview-balances > div > span { font-size:12px; color:var(--ink-3); }
.customer-preview-balances strong { font-size:14px; font-weight:500; color:var(--ink); font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.customer-preview-details, .customer-preview-records { padding-top:16px; }
.customer-preview-details h3, .customer-preview-section-head h3 { margin:0; color:var(--ink); font:600 13px/1.5 var(--font); }
.customer-preview-details .desc { grid-template-columns:repeat(2,minmax(0,1fr)); padding-top:8px; gap:0 16px; }
.customer-preview-details .desc .d { display:grid; grid-template-columns:48px minmax(0,1fr); align-items:baseline; gap:8px; padding:4px 0; border:0; }
.customer-preview-details .desc .d:last-child { grid-column:1 / -1; }
.customer-preview-details .desc .d .k { font-size:12px; color:var(--ink-3); }
.customer-preview-details .desc .d .v { min-width:0; color:var(--ink-2); font-size:13px; line-height:1.55; text-align:left; overflow-wrap:anywhere; }
.customer-preview-section-head { display:flex; align-items:baseline; justify-content:space-between; gap:12px; padding-bottom:8px; border-bottom:1px solid var(--line); }
.customer-preview-section-head > span { color:var(--ink-3); font-size:11px; }
.customer-preview-ledger { list-style:none; padding:0; margin:0; }
.customer-preview-ledger li { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:start; gap:12px; padding:10px 0; border-bottom:1px solid var(--line-soft); }
.customer-preview-record-copy { min-width:0; }
.customer-preview-record-name { display:flex; flex-wrap:wrap; gap:4px 8px; font-size:13px; line-height:1.5; overflow-wrap:anywhere; }
.customer-preview-record-name b { color:var(--ink); font-weight:600; }
.customer-preview-record-name > span { color:var(--ink-2); }
.customer-preview-record-meta { margin-top:4px; color:var(--ink-3); font-size:11px; line-height:1.5; overflow-wrap:anywhere; }
.customer-preview-record-money { display:flex; flex-direction:column; align-items:flex-end; gap:4px; }
.customer-preview-record-money strong { font-size:14px; font-weight:600; white-space:nowrap; }
.customer-preview-record-money > span { color:var(--ink-3); font-size:11px; white-space:nowrap; }
.customer-preview-empty, .customer-preview-message { margin:16px 0; color:var(--ink-3); font-size:13px; line-height:1.6; }
.customer-preview-error { display:flex; align-items:flex-start; gap:10px; margin:16px 0; color:var(--bad-ink); }
.customer-preview-error > svg { flex:none; margin-top:3px; }
.customer-preview-error p { margin:0; font-size:13px; line-height:1.6; overflow-wrap:anywhere; }
@media (max-width:899px) {
  .customer-preview-drawer .drawer-head { padding-top:calc(8px + env(safe-area-inset-top,0px)); margin-inline:16px; }
  .customer-preview-drawer .drawer-head .iconbtn { width:44px; height:44px; }
  .customer-preview-drawer .drawer-body { padding:16px; }
  .customer-preview-drawer .drawer-foot { padding:12px 16px calc(12px + env(safe-area-inset-bottom,0px)); }
  .customer-preview-drawer .drawer-foot .btn { flex:1; min-height:44px; }
}
@media (max-width:420px) {
  .customer-preview-account { grid-template-columns:minmax(0,1fr); gap:12px; }
  .customer-preview-available { flex-direction:row; justify-content:space-between; align-items:baseline; gap:12px; }
  .customer-preview-available > strong { font-size:24px; }
  .customer-preview-details .desc { grid-template-columns:minmax(0,1fr); }
  .customer-preview-details .desc .d { grid-template-columns:58px minmax(0,1fr); }
}
@media print { .customer-preview-navigation { display:none; } }

/* 可调整顺序的名单：整行可拖动；按钮也支持键盘、触屏和跨页放置。 */
.row-order-controls { display:flex; flex-wrap:wrap; gap:2px; margin-top:4px; }
.row-order-controls .btn { min-height:28px; padding:2px 5px; font-size:11px; white-space:nowrap; }
.tbl tr[draggable=true] { cursor:grab; }
.tbl tr.row-dragging, .cardrow.row-dragging { opacity:.45; }
.order-hint { padding:7px 12px; font-size:12px; color:var(--ink-3); }
@media (max-width:899px) { .row-order-controls .btn { min-height:40px; font-size:13px; padding:5px 8px; } }

/* Windows 的登录和业务界面使用静态合成，避免多层视频和滤镜同时工作。 */
.bd-light-effects .lp-window, .bd-light-effects .lp-chars.pre i { animation: none; }
.bd-light-effects .lp-chars.pre i { opacity: 1; }
.bd-light-effects .lp-scene, .bd-light-effects .wb-scene, .bd-light-effects .lp-par { transition: none; }
.bd-light-effects .wb-acts .btn, .bd-light-effects .lp-glass,
.bd-light-effects .lp-scrim, .bd-light-effects .lp-dialog,
.bd-light-effects .header, .bd-light-effects .scrim, .bd-light-effects .drop-zone {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.bd-light-effects .lp-dialog { background: var(--surface); }
.bd-light-effects .header { background: var(--surface); }
.bd-light-effects:not(.fx) .drawer, .bd-light-effects:not(.fx) .dialog,
.bd-light-effects .scrim, .bd-light-effects .drop, .bd-light-effects .sk { animation: none; }

/* 演示店可选的自助开店入口，正式店不展示。 */
.lp-signup { display: inline-flex; align-items: center; text-decoration: none; margin-right: 10px; }
