/* 展位选位 · 样式 */
:root {
  --bg: #f2f4f7;
  --card: #ffffff;
  --line: #e2e6ec;
  --text: #16191d;
  --muted: #6b7280;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  /* 主色派生（主题层会覆盖：暖白=珊瑚，深色=冷蓝，保证选中态/数据条/标签不残留蓝） */
  --primary-weak: #eff6ff;      /* 浅底：选中块、提示条、图标底 */
  --primary-soft: #dbeafe;      /* 更浅的色块：小标签 */
  --primary-line: #bfdbfe;      /* 主色描边 */
  --primary-deep: #1e40af;      /* 主色深字 */
  --primary-ink: #0f2f5c;       /* 数据条数值 */
  --primary-label: #5b7290;     /* 数据条标签 */
  /* --primary-glow 由 theme.css 定义（这里曾经写成 var(--primary-glow) 自引用，
     会让变量变成无效值，全站取到空色 —— 已删除自引用） */
  --primary-tint: rgba(37, 99, 235, .12);
  --primary-grad: linear-gradient(150deg, #1f5fb8, #2f7ae0 62%, #4b93ea);
  --primary-grad-shadow: rgba(31, 95, 184, .22);
  /* 中性灰阶（slate）：统一由 theme.css 定义（默认冷灰 / 暖白主题换暖灰）。
     这里曾经写成 --slate-400: var(--slate-400) 自引用 —— 自引用等于无效值，
     全站 var(--slate-400) 全部取空，浅灰文字会退化成继承色。已删除。 */
  --warn: #f59e0b;
  --danger: #ef4444;
  --ok: #059669;
  --violet: #a855f7;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .1);
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0; padding: 0; height: 100%;
  background: var(--bg); color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  font-size: 15px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;   /* 表格 / 地图内部自己滚，别把整页撑宽（一撑宽顶栏头像就被挤出屏幕） */
}

button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; padding: 0; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

/* ---------- 通用 ---------- */
.view { display: none; min-height: 100%; }
.view.active { display: block; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 44px; padding: 0 18px; border-radius: 8px;
  background: var(--primary); color: #fff; font-weight: 600; font-size: 15px;
  transition: background .15s, opacity .15s;
}
.btn:active { background: var(--primary-dark); }
.btn:disabled { opacity: .5; pointer-events: none; }
.btn.block { width: 100%; }
.btn.ghost { background: var(--card); color: var(--text); border: 1px solid var(--line); }
.btn.ghost:active { background: var(--wash-100); }
.btn.danger { background: var(--danger); }
.btn.danger-text { color: var(--danger); }
.btn.small,
.btn.sm { height: 34px; padding: 0 12px; font-size: 14px; border-radius: 8px; }
.btn.tiny { height: 28px; padding: 0 10px; font-size: 12.5px; border-radius: 8px; }

.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 14px; color: var(--muted); margin-bottom: 6px; font-weight: 500; }
.field > span em { font-style: normal; color: var(--muted); }
.input {
  display: block; width: 100%; height: 46px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--card);
  outline: none; transition: border-color .15s, box-shadow .15s;
}
textarea.input { height: auto; padding: 12px 14px; resize: vertical; line-height: 1.6; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #9aa1ad 50%), linear-gradient(135deg, #9aa1ad 50%, transparent 50%); background-position: calc(100% - 18px) 20px, calc(100% - 13px) 20px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.input[type="file"] { height: auto; padding: 11px 14px; font-size: 14px; }
.input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-tint); }
.input-row { display: flex; gap: 8px; }
.input-row .input { flex: 1; }
.input-row .btn { flex: 0 0 auto; white-space: nowrap; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; margin: 4px 0 12px; color: var(--text); }
.check input { width: 18px; height: 18px; accent-color: var(--primary); }

.err { color: var(--danger); font-size: 14px; margin: -6px 0 12px; }
.hint { font-size: 12.5px; color: var(--muted); line-height: 1.7; margin: 10px 0 0; }
.loading { padding: 40px; text-align: center; color: var(--muted); font-size: 14px; }
.empty { padding: 48px 20px; text-align: center; color: var(--muted); font-size: 14px; line-height: 1.8; }

.spinner {
  width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, .35);
  border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 登录 ---------- */
#view-login {
  display: none; min-height: 100vh; padding: 0 24px calc(32px + var(--safe-b));
  background: linear-gradient(180deg, var(--primary-weak) 0%, var(--bg) 46%);
}
#view-login.active { display: flex; flex-direction: column; }
.brand { padding: 64px 0 32px; text-align: center; }
.brand-mark {
  width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), var(--violet)); color: #fff;
  font-size: 22px; font-weight: 700; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px var(--primary-glow);
}
/* 登录页品牌图：官方 LOGO 原样呈现，1:1 正方形 + 圆角。
   宽高都写死同值，避免任何比例拉伸；object-fit 只是兜底，不改图形。 */
.brand-logo {
  display: block; width: 112px; height: 112px; margin: 0 auto 14px;
  border-radius: 24px; object-fit: cover;
  /* 投影跟主题走：默认主题是蓝光，暖白主题自动变橙光（原来写死 rgba(37,99,234)，
     暖白底上挂一圈蓝光，像另一个产品的图） */
  box-shadow: 0 10px 24px var(--primary-glow, rgba(37, 99, 234, .28));
}
.brand h1 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: .5px; }
.brand p { margin: 8px 0 0; font-size: 14px; color: var(--muted); }

.login-tabs { display: flex; gap: 6px; background: var(--wash-200); padding: 4px; border-radius: 8px; margin-bottom: 20px; }
.login-tabs button { flex: 1; height: 36px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--muted); }
.login-tabs button.active { background: var(--card); color: var(--text); box-shadow: var(--shadow); }

.login-card { background: var(--card); border-radius: 16px; padding: 22px 18px; box-shadow: var(--shadow); }
/* 注册模式：页签藏起来，用标题代替；底部「注册参展商 / 返回登录」是弱按钮 */
.login-title { margin: 0 0 18px; font-size: 17px; font-weight: 700; letter-spacing: -.2px; }
.login-alt { margin: 14px 0 0; text-align: center; }
.login-alt button { font-size: 12.5px; color: var(--primary); }
.login-alt button:active { opacity: .7; }
.login-foot { margin-top: 18px; text-align: center; font-size: 12.5px; color: var(--muted); line-height: 1.7; }
.divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--muted); font-size: 12.5px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* 移动端不支持微信扫码登录，换成这句引导（见 auth.js paintWechatEntry） */
.wx-tip {
  margin: 12px 0 0; padding: 10px 12px; border-radius: 8px;
  background: var(--warn-weak); border: 1px solid var(--warn-line); color: var(--warn-ink);
  font-size: 12.5px; line-height: 1.7; text-align: center;
}
.wx-tip b { #78350f; }

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.expo-pick { display: flex; align-items: center; gap: 6px; min-width: 0; font-weight: 600; font-size: 15px; flex: 1 1 auto; overflow: hidden; }
.expo-pick span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.expo-pick .chev { color: var(--muted); font-size: 11px; flex: 0 0 auto; }
.topbar .spacer { flex: 0 0 0; width: 0; }
#me-tag { flex: 0 0 auto; }
#me-tag .pill { white-space: nowrap; }
/* 当前视角徽标：测试版橙色、正式版绿色，只在测试账号身上出现 */
#env-tag { flex: 0 0 auto; }
#env-tag .pill {
  white-space: nowrap; font-size: 11px; font-weight: 700;
  padding: 2px 7px; border-radius: 999px; line-height: 1.5;
}
#env-tag .pill.test { background: var(--warn-weak); color: var(--warn-ink); }
#env-tag .pill.prod { background: rgba(22, 163, 74, .16); color: var(--ok-ink); }
.avatar {
  width: 34px; height: 34px; border-radius: 50%; flex: 0 0 auto;
  background: var(--primary-soft); color: var(--primary-deep); font-weight: 700; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
/* 名字过长时在圆里省略，避免撑破顶栏（完整名字点开「我的」能看到） */
.avatar > span {
  max-width: 28px; display: block;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* 标签 */
.pill, .tag {
  display: inline-flex; align-items: center; padding: 1px 7px; border-radius: 4px;
  font-size: 11px; font-weight: 600; vertical-align: middle; white-space: nowrap;
}
.pill.blue, .tag.blue { background: var(--primary-soft); color: var(--primary-deep); }
.pill.violet, .tag.violet { background: #f3e8ff; color: #6b21a8; }
.pill.amber, .tag.amber { background: #fef3c7; color: var(--warn-ink); }
.pill.green, .tag.green { background: #d1fae5; color: #065f46; }
.pill.red, .tag.red { background: #fee2e2; color: #991b1b; }
.pill.gray, .tag.gray { background: var(--wash-100); color: var(--slate-700); }
.pill.admin, .tag.admin { background: var(--primary-soft); color: var(--primary-deep); }
.pill.finance, .tag.finance { background: #fef0c7; color: var(--warn-ink); }
.pill.leader, .tag.leader { background: #ede9fe; color: #5b21b6; }
/* 信管：青绿，和财务的黄、总裁的紫区分开 */
.pill.auditor, .tag.auditor { background: #ccfbf1; color: #0f766e; }
.pill.vip, .tag.vip { background: #fef3c7; color: var(--warn-ink); }
.pill.exhibitor, .tag.exhibitor { background: #d1fae5; color: #065f46; }
.pill.designer, .tag.designer { background: #e0f2fe; color: #075985; }
.pill.pm, .tag.pm { background: #ccfbf1; color: #115e59; }
.pill.normal, .tag.normal { background: var(--wash-100); color: var(--slate-700); }

/* 管理 → 角色权限矩阵 */
.pm-wrap { overflow-x: auto; margin-top: 10px; }
.pm-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 460px; }
.pm-table th, .pm-table td { border-bottom: 1px solid var(--line, var(--wash-100)); padding: 8px 6px; text-align: center; }
.pm-table thead th { font-weight: 600; color: var(--slate-700); font-size: 12.5px; background: var(--wash-50); position: sticky; top: 0; }
.pm-table .pm-k { text-align: left; color: var(--slate-900); white-space: nowrap; padding-left: 10px; }
.pm-table tbody tr:hover { background: var(--wash-50); }
.pm-table .pm-y { color: var(--ok-ink); font-weight: 700; }
.pm-table .pm-n { #cbd5e1; }
.pm-table.pm-acc { min-width: 0; }

/* ---------- 提示条 ---------- */
.banner {
  margin: 12px 14px 0; padding: 10px 14px; border-radius: 8px;
  font-size: 14px; line-height: 1.55; display: flex; gap: 8px; align-items: flex-start;
}
.banner.priority { background: var(--warn-weak); color: var(--warn-ink); border: 1px solid var(--warn-line); }
.banner.info { background: var(--primary-weak); color: var(--primary-deep); border: 1px solid var(--primary-line); }
.banner.info b { font-weight: 700; }

/* ---------- 数据条（可售 / 空闲 / 已订 / 成交 / 未开放） ----------
   手机端的坑：这些数字以前是拼成一整句纯文本，中文字符之间处处可断，
   窄屏上会把「已订」「成交」「未开放」拆成单字往下掉，数字和标签分家。
   现在每项是独立的 .bi（标签 + 数值），white-space:nowrap 保证项内不断行，
   换行只发生在项与项之间，两行之内必然排完。 */
.banner.info {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 8px; padding: 9px 12px; font-size: 14px; line-height: 1.4;
}
.banner.info .bi-cells {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 6px 7px; min-width: 0; flex: 1 1 auto;
}
.banner.info .bi {
  display: inline-flex; align-items: baseline; gap: 5px;
  padding: 2px 8px; border-radius: 8px; white-space: nowrap;
  background: var(--card);
  border: 1px solid var(--primary-line);
}
.banner.info .bi i { font-style: normal; font-size: 11px; color: var(--primary-label); }
.banner.info .bi b {
  font-weight: 700; color: var(--primary-ink);
  font-variant-numeric: tabular-nums;
}
/* ---------- 屏幕 ---------- */
.screens { padding-bottom: calc(64px + var(--safe-b)); }
.screen { display: none; }
.screen.active { display: block; }

/* ---------- 展位图 ---------- */
.map-toolbar {
  display: flex; align-items: center; gap: 8px; padding: 8px 16px 8px;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.map-toolbar::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; height: 32px; padding: 0 12px; border-radius: 8px;
  background: var(--card); border: 1px solid var(--line);
  font-size: 14px; color: var(--muted); font-weight: 500;
  display: inline-flex; align-items: center; gap: 4px;
}
.chip.active { background: var(--primary-weak); border-color: var(--primary-line); color: var(--primary); }
.chip .dot { width: 7px; height: 7px; border-radius: 50%; }

.map-wrap {
  position: relative; margin: 6px 14px 0; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; touch-action: none;
  height: calc(100vh - 320px); min-height: 340px; max-height: 700px;
}
/* 不要给这一层写 will-change: transform：会被预光栅化成位图再放大，字就糊了 */
.map-stage { position: absolute; top: 0; left: 0; transform-origin: 0 0; }
.map-stage img { position: absolute; inset: 0; width: 100%; height: 100%; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.map-empty { padding: 60px 24px; text-align: center; color: var(--muted); font-size: 14px; line-height: 1.8; }

/* 网格：一个网格＝一个馆。格子线按设定米数换算，作为看位估尺寸的参考。
   线要足够淡，不能盖过展位；格子太密时（<7px）自动降为只画淡底网 */
#grid-lay { position: absolute; inset: 0; pointer-events: none; }
.mgrid {
  position: absolute; pointer-events: none;
  background-image:
    repeating-linear-gradient(to right,
      rgba(99, 102, 241, .16) 0 1px, transparent 1px var(--sx, 20px)),
    repeating-linear-gradient(to bottom,
      rgba(99, 102, 241, .16) 0 1px, transparent 1px var(--sy, 20px));
  border: 1px solid rgba(99, 102, 241, .30);
  border-radius: 4px;
}
/* 格子过小时线会糊成一片，直接不画格线，只留外框 */
.mgrid.dense {
  background-image: none;
  border-style: dashed;
  border-color: rgba(99, 102, 241, .26);
}
/* 馆号（1A / 1B…）挂在网格框线外侧：贴框上沿往上，不占框内空间、不压展位。
   字号按 --wallk（1/k）补偿，放大缩小时屏幕字号基本不变。 */
.mgrid-name {
  position: absolute; left: -1px; bottom: calc(100% + 2px); top: auto;
  font-size: calc(10px * var(--wallk, 1)); font-weight: 700; color: #fff;
  background: #6366f1; padding: 1px 8px; border-radius: 4px;
  white-space: nowrap; line-height: 1.5; letter-spacing: .3px;
}

#booth-layer { position: absolute; inset: 0; }
.booth {
  position: absolute; display: flex; flex-direction: column; align-items: center; justify-content: center;
  border-radius: 0; line-height: 1.05; overflow: hidden; text-align: center;
  /* 默认描边：浅灰细线。状态只改这条线的颜色（见下面 .st-*），
     底色留给「展位类型」，两者不再互相染色打架。 */
  border: 1px solid #d8d3ca; transition: opacity .15s, border-color .15s;
  padding: 0 2px; box-sizing: border-box;
}
/* 展位号 / 企业名：必须整行完整显示，一行放不下也绝不换行。
   字号由 map.js 的 fitLabels() 按真实字宽反算（下限 6px / 5px），
   不用省略号 —— 「A-1…」和「新瑞…」比小一号的字更难认。 */
/* 不加负字距：字距一压缩，中文会「挤成一坨」，也算变形 */
.booth b { font-size: 14px; font-weight: 700; letter-spacing: 0;
  white-space: nowrap; max-width: 100%; }
/* 行内文字不设 max-height / overflow:hidden：中文有上下伸部，行盒比 1em 高，
   硬裁会把「异宠之家」下缘切掉。放不放得下由 map.js 按 80% 盒子算字号。 */
.booth i { font-size: 11px; font-style: normal; opacity: .92; font-weight: 600; margin-top: 1px;
  white-space: nowrap; max-width: 100%; line-height: 1.18; }
/* 提成规则只读：点位值直接是文字，不是输入框 */
.rule-val { font-size: 22px; font-weight: 700; color: var(--primary); padding: 4px 0; }

/* 提成规则只读：分档行改成纯文字 */
.tier-row.readonly { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tier-row.readonly .t-text { font-size: 14px; color: var(--slate-700, #334155); }
.tier-row.readonly .t-pct-txt { font-weight: 700; color: var(--primary); }

/* 数据页后插入的块（每日签单 / 提成表）：与其它卡片同宽 */
.deal-block { padding: 0; }

/* 提成表：横向可滑的明细表 */
.comm-head { margin: 10px 0 8px; padding: 8px 10px; border-radius: 8px; background: var(--wash-200, #f6f3ee); }
.comm-head b { display: block; font-size: 14px; }
.comm-head em { display: block; font-style: normal; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.comm-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -4px; }
.comm-tbl { border-collapse: collapse; font-size: 12.5px; min-width: 900px; }
.comm-tbl th, .comm-tbl td { border-bottom: 1px solid #f1ece4; padding: 7px 8px; text-align: left; white-space: nowrap; }
.comm-tbl th { background: #faf7f2; font-weight: 600; color: var(--slate-700, #334155); font-size: 11px; }
.comm-tbl td.t-name i { display: block; font-style: normal; font-size: 11px; color: var(--muted); }
.comm-tbl tfoot td { background: #fff7f2; font-weight: 700; color: var(--primary); }




/* 保单额度条 / 查询结果 / 额度管理 */
.quota-box { margin: 2px 0 10px; padding: 10px 12px; border-radius: 8px; background: var(--bg); border: 1px solid var(--line); }
.q-line { display: flex; align-items: baseline; justify-content: space-between; font-size: 12.5px; color: var(--muted); }
.q-line b { font-size: 17px; color: var(--primary); }
.q-bar { height: 6px; border-radius: 4px; background: #e8e2d8; margin: 6px 0 4px; overflow: hidden; }
.q-bar i { display: block; height: 100%; background: var(--primary); border-radius: 4px; }
.q-hint { margin: 0; font-size: 11px; color: var(--muted); line-height: 1.5; }
.gd-search { display: flex; gap: 8px; margin: 10px 0 6px; }
.gd-search .input { flex: 1; height: 34px; }
.gd-res { margin: 6px 0 2px; padding: 8px 10px; border-radius: 8px; font-size: 12.5px; line-height: 1.55; }
.gd-res b { display: block; font-size: 14px; }
.gd-res em { font-style: normal; color: var(--muted); }
.gd-res.on { background: var(--danger-weak); color: #b42318; }
.gd-res.wait { background: var(--warn-weak); color: var(--warn-ink); }
.gd-res.free { background: #f0fdf4; color: var(--ok-ink); }
.q-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.q-row:last-child { border-bottom: none; }
.q-name { flex: 1; min-width: 0; }
.q-name b { font-size: 14px; }
.q-name em { display: block; font-style: normal; font-size: 11px; color: var(--muted); margin-top: 2px; }
.q-val { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.q-val b { font-size: 14px; color: var(--text); }
.q-val i { font-style: normal; font-size: 11px; color: var(--primary); margin-left: 4px; }

/* 保单额度条 / 查询结果 / 额度管理 */
.quota-box { margin: 2px 0 10px; padding: 10px 12px; border-radius: 8px; background: var(--bg); border: 1px solid var(--line); }
.q-line { display: flex; align-items: baseline; justify-content: space-between; font-size: 12.5px; color: var(--muted); }
.q-line b { font-size: 17px; color: var(--primary); }
.q-bar { height: 6px; border-radius: 4px; background: #e8e2d8; margin: 6px 0 4px; overflow: hidden; }
.q-bar i { display: block; height: 100%; background: var(--primary); border-radius: 4px; }
.q-hint { margin: 0; font-size: 11px; color: var(--muted); line-height: 1.5; }
.gd-search { display: flex; gap: 8px; margin: 10px 0 6px; }
.gd-search .input { flex: 1; height: 34px; }
.gd-res { margin: 6px 0 2px; padding: 8px 10px; border-radius: 8px; font-size: 12.5px; line-height: 1.55; }
.gd-res b { display: block; font-size: 14px; }
.gd-res em { font-style: normal; color: var(--muted); }
.gd-res.on { background: var(--danger-weak); color: #b42318; }
.gd-res.wait { background: var(--warn-weak); color: var(--warn-ink); }
.gd-res.free { background: #f0fdf4; color: var(--ok-ink); }
.q-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.q-row:last-child { border-bottom: none; }
.q-name { flex: 1; min-width: 0; }
.q-name b { font-size: 14px; }
.q-name em { display: block; font-style: normal; font-size: 11px; color: var(--muted); margin-top: 2px; }
.q-val { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.q-val b { font-size: 14px; color: var(--text); }
.q-val i { font-style: normal; font-size: 11px; color: var(--primary); margin-left: 4px; }

/* 审核页汇总条 */
.sum-bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 12px; }
.sum-chip {
  flex: 1 1 72px; min-width: 68px; padding: 8px 6px; border-radius: 8px;
  background: var(--card); border: 1px solid var(--line); font-family: inherit;
  font-size: 11px; color: var(--muted); text-align: center;
}
.sum-chip b { display: block; font-size: 17px; color: var(--primary); }
.sum-chip:active { background: var(--wash-100); }
.sum-all { flex: 1 1 100%; font-size: 11px; color: var(--muted); padding: 2px 2px 0; }
.sum-all b { color: var(--text); font-size: 14px; }

/* 审核页汇总条 */
.sum-bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 12px; }
.sum-chip {
  flex: 1 1 72px; min-width: 68px; padding: 8px 6px; border-radius: 8px;
  background: var(--card); border: 1px solid var(--line); font-family: inherit;
  font-size: 11px; color: var(--muted); text-align: center;
}
.sum-chip b { display: block; font-size: 17px; color: var(--primary); }
.sum-chip:active { background: var(--wash-100); }
.sum-all { flex: 1 1 100%; font-size: 11px; color: var(--muted); padding: 2px 2px 0; }
.sum-all b { color: var(--text); font-size: 14px; }

/* 分段按钮组：合同弹层的展位类型 / 代理商 / 签约场次 */
.pick { display: flex; flex-wrap: wrap; gap: 8px; }
.pick > button {
  flex: 1 1 auto; min-width: 72px; height: 40px; padding: 0 12px;
  border: 1px solid var(--line, #e3ded6); border-radius: 8px;
  background: var(--card, #fff); color: var(--text);
  font-size: 14px; font-family: inherit; white-space: nowrap;
}
.pick > button.on {
  border-color: var(--primary); background: var(--primary-weak, #ffece6);
  color: var(--primary); font-weight: 700;
}
.pick.small > button { height: 36px; font-size: 14px; min-width: 64px; }
.pick > button:disabled { opacity: .55; }

/* 预定成功清单 */
.done-card { margin: 10px 0 4px; padding: 4px 12px; border-radius: 12px; background: var(--wash-200, #f7f4ee); }
.done-row { display: flex; align-items: baseline; gap: 10px; padding: 9px 0; border-bottom: 1px dashed rgba(0,0,0,.06); font-size: 14px; }
.done-row:last-child { border-bottom: none; }
.done-row > span { flex: 0 0 78px; color: var(--muted); font-size: 12.5px; }
.done-row > b { flex: 1; font-weight: 600; word-break: break-all; }
.done-row > b.done-warn { color: var(--warn); }

/* 选择器浮层：叠在弹层之上（z 比 .sheet 高），不覆盖下面正在填的表单 */
.pick-layer { position: fixed; inset: 0; z-index: 120; display: flex; align-items: flex-end; }
.pick-mask { position: absolute; inset: 0; background: rgba(16,24,40,.38); }
.pick-card {
  position: relative; width: 100%; max-height: 80vh; overflow-y: auto;
  background: var(--card); border-radius: 18px 18px 0 0;
  padding: 8px 18px calc(18px + var(--safe-b));
  box-shadow: 0 -8px 28px rgba(16,24,40,.18);
  animation: pickUp .22s cubic-bezier(.32,.72,0,1);
}
@keyframes pickUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.pick-card h2 { margin: 0 0 4px; font-size: 17px; font-weight: 700; }
.pick-card .sub { font-size: 14px; color: var(--muted); margin-bottom: 12px; }

/* 选择器浮层：叠在弹层之上（z 比 .sheet 高），不覆盖下面正在填的表单 */
.pick-layer { position: fixed; inset: 0; z-index: 120; display: flex; align-items: flex-end; }
.pick-mask { position: absolute; inset: 0; background: rgba(16,24,40,.38); }
.pick-card {
  position: relative; width: 100%; max-height: 80vh; overflow-y: auto;
  background: var(--card); border-radius: 18px 18px 0 0;
  padding: 8px 18px calc(18px + var(--safe-b));
  box-shadow: 0 -8px 28px rgba(16,24,40,.18);
  animation: pickUp .22s cubic-bezier(.32,.72,0,1);
}
@keyframes pickUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.pick-card h2 { margin: 0 0 4px; font-size: 17px; font-weight: 700; }
.pick-card .sub { font-size: 14px; color: var(--muted); margin-bottom: 12px; }

/* 锁定的输入框：看起来就是只读，不像能改 */
.input.locked, input.locked {
  background: var(--wash-200, #f4f0e9); color: var(--slate-700, #475569);
  border-style: dashed; cursor: not-allowed;
}
.sub-lock { margin: -6px 0 12px; font-size: 11px; color: var(--muted); }

/* 锁定的输入框：看起来就是只读，不像能改 */
.input.locked, input.locked {
  background: var(--wash-200, #f4f0e9); color: var(--slate-700, #475569);
  border-style: dashed; cursor: not-allowed;
}
.sub-lock { margin: -6px 0 12px; font-size: 11px; color: var(--muted); }

/* 自绘选择器：替掉系统原生 select，视觉跟输入框一致 */
.picker {
  width: 100%; min-height: 42px; display: flex; align-items: center; gap: 8px;
  padding: 10px 12px; border: 1px solid var(--line, #e3ded6); border-radius: 8px;
  background: var(--card, #fff); font-size: 14px; color: var(--text); text-align: left;
  font-family: inherit;
}
.picker .pk-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picker .pk-arrow { font-style: normal; color: var(--muted); font-size: 17px; line-height: 1; }
.picker:active { background: var(--wash-50, #faf7f2); }

.pick-list { margin: 6px 0 4px; max-height: 52vh; overflow: auto; }
.pick-row {
  width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 4px;
  background: transparent; border: none; border-bottom: 1px solid #f2ede5;
  text-align: left; font-family: inherit;
}
.pick-row:last-child { border-bottom: none; }
.pk-main { flex: 1; min-width: 0; font-size: 14px; color: var(--text); line-height: 1.5; }
.pk-main i { display: block; font-style: normal; font-size: 11px; color: var(--muted); margin-top: 2px; }
.pk-dot { flex: none; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid #d6cfc4; }
.pick-row.on .pk-dot { border-color: var(--primary); border-width: 5px; }
.pick-row.on .pk-main { color: var(--primary); font-weight: 600; }

/* 兜底：还没改造的原生 select 也去掉系统外观，至少折叠态不突兀 */
select.input, select.inp {
  -webkit-appearance: none; appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
                    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 30px;
}

/* 卡片标题行：标题与下方说明之间留口气，右上角按钮用 tiny 不压字 */
.card-h { margin-bottom: 6px; }
.card-h .btn.tiny { flex: none; }

/* 天眼查链接兜底展示 */
.gd-link { margin: 10px 0; padding: 10px 12px; border-radius: 8px; background: var(--wash-200, #f4f6f9);
  font-size: 12.5px; color: var(--primary); word-break: break-all; line-height: 1.6; user-select: all; }
/* 客户保单 */
.gd-list { margin-top: 10px; }
.gd-row { padding: 10px 0; border-bottom: 1px solid var(--line); }
.gd-row:last-child { border-bottom: none; }
.gd-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.gd-top b { font-size: 14px; }
.gd-meta { font-size: 12.5px; color: var(--slate-700, #334155); margin-top: 3px; }
.gd-line { font-size: 11px; color: var(--muted); margin-top: 3px; }
.gd-warn { color: var(--warn); }
.gd-note { font-size: 12.5px; color: var(--danger, #b42318); margin-top: 4px; }
.gd-acts { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }

/* 培训页：使用指引 / 反馈 / 报销 */
.guide-list { margin-top: 8px; }
.guide-row { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.guide-row:last-child { border-bottom: none; }
.guide-no { width: 20px; height: 20px; border-radius: 50%; flex: none; display: flex; align-items: center;
  justify-content: center; font-size: 11px; font-weight: 700; background: var(--primary-weak, #ffece6); color: var(--primary); }
.guide-row b { display: block; font-size: 14px; }
.guide-row em { display: block; font-style: normal; font-size: 12.5px; color: var(--muted); line-height: 1.6; margin-top: 2px; }
.fb-list { margin-top: 12px; }
.fb-row { padding: 10px 0; border-bottom: 1px solid var(--line); }
.fb-row:last-child { border-bottom: none; }
.fb-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.fb-top b { font-size: 14px; }
.fb-meta { font-size: 11px; color: var(--muted); margin-top: 3px; }
.fb-reply { margin-top: 6px; padding: 8px 10px; border-radius: 8px; background: var(--wash-200, #f4f6f9); }
.fb-reply b { font-size: 12.5px; color: var(--primary); }
.fb-reply p { margin: 3px 0 0; font-size: 12.5px; line-height: 1.6; }
.fb-acts { display: flex; gap: 8px; margin-top: 8px; }
.fb-in { flex: 1; height: 34px; }
.sub-h { margin: 14px 0 4px; font-size: 12.5px; color: var(--muted); }

/* 数据页顶部标签：部门数据 / 我的数据 */
.scope-tabs { display: flex; gap: 6px; margin: 0 0 12px; padding: 3px; background: var(--wash-200, #eef2f7); border-radius: 8px; }
.scope-tab { flex: 1; height: 30px; padding: 0; border-radius: 8px; font-size: 12.5px; font-weight: 600; color: var(--muted); background: transparent; border: none; }
.scope-tab.on { background: var(--card); color: var(--primary); box-shadow: 0 1px 3px rgba(16,24,40,.08); }

/* 数据页：范围切换 + 每日明细行 */
.range-pick { display: flex; gap: 8px; margin-top: 10px; }
.range-pick .chip { flex: none; }
.daily-list { margin-top: 10px; }
.daily-row { padding: 10px 0; border-bottom: 1px solid var(--line); }
.daily-row:last-child { border-bottom: none; }
.dl-top { display: flex; justify-content: space-between; align-items: baseline; }
.dl-top b { font-size: 14px; }
.dl-top em { font-style: normal; font-size: 12.5px; color: var(--muted); }
.dl-mid { display: flex; align-items: center; gap: 8px; margin-top: 3px; font-size: 14px; color: var(--slate-700, #334155); }
.dl-bot { margin-top: 3px; font-size: 12.5px; color: var(--muted); }

/* 切换账号：一行一个账号，姓名 / 角色 / 权限说明 三段 */
.acct-list { margin: 10px 0 6px; }
.acct-row {
  display: block; width: 100%; text-align: left; margin-bottom: 8px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--card);
}
.acct-row.on { border-color: var(--primary); background: var(--primary-weak); }
.ac-name { display: block; font-size: 14px; font-weight: 700; color: var(--slate-900, #0f172a); }
.ac-cur { font-style: normal; font-size: 11px; font-weight: 600; color: var(--primary);
  border: 1px solid currentColor; border-radius: 8px; padding: 0 4px; margin-left: 6px; }
.ac-role { display: inline-block; margin-top: 3px; font-size: 12.5px; font-weight: 600; color: var(--primary); }
.ac-desc { display: block; margin-top: 3px; font-size: 11px; color: var(--muted); line-height: 1.55; }

/* 切换演示账号：每行一个角色 */
.demo-row span { flex: 1; }
.demo-row em { color: var(--muted); font-size: 12.5px; }

/* 展具租赁 */
.rent-list { margin: 10px 0 6px; }
.rent-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.rent-row:last-child { border-bottom: none; }
.rent-main { flex: 1; min-width: 0; }
.rent-main b { display: block; font-size: 14px; font-weight: 600; }
.rent-main em { display: block; font-style: normal; font-size: 11px; color: var(--muted); margin-top: 1px; }
.rent-price { font-size: 14px; font-weight: 700; color: var(--primary); white-space: nowrap; }
.rent-price i { font-style: normal; font-weight: 400; font-size: 11px; color: var(--muted); }
.rent-qty { width: 56px; height: 32px; text-align: center; border: 1px solid var(--line);
  border-radius: 8px; background: var(--card); font-size: 14px; }
.rent-total { margin: 12px 0; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 14px; }
.rent-total b { font-size: 17px; color: var(--primary); }
.rent-order { padding: 10px 0; border-bottom: 1px solid var(--line); }
.rent-order:last-child { border-bottom: none; }
.rent-order p.tiny { margin: 4px 0 6px; }

/* 参展商「我的日程」：一行一件事，日期靠右 */
.evs-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.evs-row:last-child { border-bottom: none; }
.evs-ic { width: 22px; height: 22px; border-radius: 8px; display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; background: var(--wash-200); color: var(--slate-700, #334155); flex: none; }
.evs-row.k-expo .evs-ic { background: #ede9fe; color: #5b21b6; }
.evs-row.k-pay .evs-ic { background: #fef3c7; color: var(--warn-ink); }
.evs-row.k-confirm .evs-ic { background: #fee2e2; color: var(--danger-ink); }
.evs-main { flex: 1; min-width: 0; }
.evs-main b { display: block; font-size: 14px; font-weight: 600; }
.evs-main em { display: block; font-style: normal; font-size: 12.5px; color: var(--muted); margin-top: 1px; }
.evs-date { font-size: 12.5px; color: var(--muted); flex: none; }

/* 展位图默认三样元素：展位号(b) / 参展商名称(i) / 展出类型(.ctag)
   放不下时按「类型 → 名称 → 编号」顺序逐级收起，由 map.js 的 syncLabelVisible()
   按缩放后的真实屏幕尺寸打这几个类；放大后会自动回来 */
.booth.no-code b { display: none; }
.booth.no-name i { display: none; }
.booth.no-cat .ctag { display: none; }
/* 展位号被缩过字号 => 这格已经塞满，右上角的类型角标一定会压住编号。
   宁可少一个角标，也不能让展位号被盖掉半截（类型还能从底色和图例认）。
   这个类由 map.js 的 fitLabels() 打。 */
.booth.tight .btag { display: none; }
/* 窄格子连类型角标也不要，它会把展位号盖掉一半 */
.booth.narrow .btag { display: none; }
/* 窄格子连类型角标也不要，它会把展位号盖掉一半 */
.booth.narrow .btag { display: none; }
.booth:active { filter: brightness(.9); }
.booth.dim { opacity: .12; }

/* ================= 展位图配色：与布局编辑器同一套，固定不跟主题 =================
   下面这些值就是 editor.css 里画布展位的色值（标展蓝 #dbeafe/#8fb2e0/#1e3a8a、
   特装黄 #fde68a/#d97706/#78350f、市集绿 #d1fae5/#34d399/#065f46、其他灰 #94a3b8）。
   主题切换（工具蓝 / 暖白 / 深色）一律不改这几条 —— 展位图只表达「这是什么」，
   页面的品牌色才跟主题走。 */
/* ============ 状态只表达在描边上 ============
   底色由「展位类型」决定（特装淡黄 / 标展浅蓝 / 市集淡绿），
   状态只换这根 1px 的线，避免两套颜色叠在一起互相干扰。 */
.booth.st-free { border-color: #d8d3ca; }                    /* 可售：默认浅灰 */
.booth.st-mine { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary-glow); }
.booth.st-held { border-color: var(--warn); }
.booth.st-review { border-color: var(--violet); }
.booth.st-sold { border-color: #1f2937; }
/* 被驳回、待销售重新提交：橙色虚线，本人一眼能认出来要处理 */
.booth.st-reject { border-color: var(--warn); border-style: dashed; }
/* 「待重提」不再挂文字标签：只用橙色虚线描边表达（.booth.st-reject）。
   以前那个小标签会压住展位号，而且小格子根本看不清三个字。 */

/* 格子窄的时候，右下角的搭建小方块缩成一个点，别去压展位号 */
.booth.narrow .bmark { width: 6px; height: 6px; font-size: 0; border-radius: 4px; right: 1px; bottom: 1px; }
/* 未开放（总裁指定不对外）：冷灰蓝 + 斜纹，和「活动/公共」区分开，
   一看就知道是「本来能卖，但这次不卖」，不是场地设施 */
.booth.st-unlisted {
  background: repeating-linear-gradient(135deg,
    rgba(148, 163, 184, .55) 0 6px, rgba(100, 116, 139, .70) 6px 12px);
  border-color: #475569; color: #f8fafc;
  box-shadow: inset 0 0 0 1px rgba(51, 65, 85, .55);
}
/* 未开放标记：压住编号显示，小格子也看得到 */
/* 未开放标记：钉在左上角，不压展位号和规格标签。
   scale(min(1, --wallk)) 是 1/k 的反向补偿 —— 舞台整体被 transform: scale(k) 放大，
   不补偿的话放大 5 倍时这个 9px 的小标会被撑成 45px，挤到只剩一个字。 */
.booth .untag {
  /* 移到右上角，和左上「待重提」错开；也不再用 transform 缩放（会变形） */
  position: absolute; right: 1px; top: 1px;
  font-size: 9px; line-height: 1.2; font-weight: 700; color: #f8fafc;
  background: #475569; padding: 2px 5px; border-radius: 4px;
  white-space: nowrap; pointer-events: none; z-index: 4;
}
.booth.no-untag .untag { display: none; }
.booth.st-closed { background: rgba(226, 232, 240, .9); border-color: var(--line); color: var(--slate-500); border-style: dashed; }
.booth.st-locked { background: #f1f5f9; border-color: var(--line); color: var(--slate-400); border-style: dashed; }

.map-foot { padding: 10px 14px 0; display: flex; flex-wrap: wrap; gap: 12px; font-size: 12.5px; color: var(--muted); }
.map-foot .lg { display: inline-flex; align-items: center; gap: 5px; }
.lg-cats .lg { font-size: 11px; }
/* 多出一行类型筛选时，把地图让出同样的高度，避免整页被顶出屏幕 */
.screen:has(#cat-filters:not([hidden])) .map-wrap { height: calc(100vh - 366px); }
.map-foot .sw { width: 12px; height: 12px; border-radius: 4px; border: 1.5px solid transparent; }
.map-foot .sw.free { background: var(--booth-free); border-color: #d8d3ca; }
.map-foot .sw.mine { background: var(--booth-free); border-color: var(--primary); border-width: 2px; }
.map-foot .sw.held { background: var(--booth-free); border-color: var(--warn); }
.map-foot .sw.review { background: var(--booth-free); border-color: var(--violet); }
.map-foot .sw.sold { background: var(--booth-free); border-color: #1f2937; border-width: 2px; }
.map-foot .sw.reject { background: var(--booth-free); border-color: var(--warn); border-style: dashed; }
.map-foot .sw.unlisted { background: #64748b; border-color: var(--slate-500); }
.map-foot .sw.closed { background: #e2e8f0; border-color: var(--line); }
.map-foot .sw.wall { height: 5px; border-radius: 4px; background: #1f2937; border-color: #1f2937; }

/* 背墙位置条：后台「用户端显示背墙」开启后才渲染
   箭头指向展位内部，用来区分相邻展位紧贴时这条背板归谁 */
.booth .wl { position: absolute; background: rgba(15, 23, 42, .92); pointer-events: none; }
.booth .wl.top { left: 0; right: 0; top: 0; height: 4px; }
.booth .wl.bottom { left: 0; right: 0; bottom: 0; height: 4px; }
.booth .wl.left { top: 0; bottom: 0; left: 0; width: 4px; }
.booth .wl.right { top: 0; bottom: 0; right: 0; width: 4px; }
.booth .wl::after {
  content: ''; position: absolute; width: 0; height: 0;
  /* 屏幕恒定 4px：--wallk = 1/k，缩放时反比补偿，和编辑器一致 */
  border: min(4px, calc(4px * var(--wallk, 1))) solid transparent;
  z-index: 2;
}
/* 展位在屏幕上太小时箭头会糊成一团 → 整层不画 */
.booth.no-arrow .wl::after,
.map-stage.arrow-off .wl::after { display: none; }

/* 箭头方向：指向展位内部 */
.booth .wl.top::after { left: 50%; top: 100%; transform: translateX(-50%); border-top-color: rgba(15, 23, 42, .92); }
.booth .wl.bottom::after { left: 50%; bottom: 100%; transform: translateX(-50%); border-bottom-color: rgba(15, 23, 42, .92); }
.booth .wl.left::after { top: 50%; left: 100%; transform: translateY(-50%); border-left-color: rgba(15, 23, 42, .92); }
.booth .wl.right::after { top: 50%; right: 100%; transform: translateY(-50%); border-right-color: rgba(15, 23, 42, .92); }

/* ---------- 展出类型（食品 / 用品 / 营养 / 设备 / 猫狗异宠活体 / 其他） ---------- */
/* 展出类型：只用文字，不再用颜色区分（底色/色条都已去掉） */
.booth .ctag {
  display: inline-block; margin-top: 1px; padding: 1px 3px; border-radius: 4px;
  font-size: 9px; line-height: 1.15; font-weight: 600; color: var(--slate-700, #334155);
  background: rgba(255, 255, 255, .78);
  letter-spacing: 0; max-width: 100%; white-space: nowrap;
}
.booth.catdim { opacity: .15; }
/* 搭建对接筛选（内部）：不对搭建的展位压暗到几乎看不见，好让工程部一眼找到要跟的位 */
.booth.bfdim { opacity: .12; }

/* 部分预留：在展位里画一块虚线，标出「留的是这一块」
   位置/大小由 map.js 按 hold_anchor 换算，pointer-events 关掉不吃点击。
   展位在屏幕上太小时整块藏掉（.no-harea），否则虚线会糊成噪点 */
.booth .harea {
  position: absolute; pointer-events: none; box-sizing: border-box;
  border: 1.5px dashed rgba(255, 255, 255, .98);
  background: rgba(255, 255, 255, .26);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .18);
  border-radius: 1px;
}
.booth.no-harea .harea { display: none; }

/* 类型（合并后只有一套）：特装 / 标展 / 市集 / 活动区 / 其他
   特装：全系统统一淡黄底色（写在所有 .st-* 之后，底色优先生效；状态仍由边框/角标/图例表达）
   市集：淡绿点阵；标展：只出小标签；其他：灰色半透明（围挡/广告牌/堆货区等） */
/* 类型底色：三种售卖展位各一色，状态不再覆盖它 */
.booth.k-standard {
  background-color: rgba(219, 234, 254, .55); color: #1e3a8a;
}
/* 类型底色：三种售卖展位各一色，状态不再覆盖它 */
.booth.k-standard {
  background-color: rgba(219, 234, 254, .55); color: #1e3a8a;
}
.booth.k-special {
  background-color: rgba(253, 230, 138, .62); color: #78350f;
}
.booth.k-market {
  background-color: rgba(209, 250, 229, .55);
  background-image: radial-gradient(rgba(16, 185, 129, .32) 1px, transparent 1.4px);
  background-size: 7px 7px; color: #065f46;
}
.booth.k-activity { background-color: rgba(134, 239, 172, .55); border-color: var(--ok); color: #14532d; }
.booth.k-other {
  background-color: rgba(148, 163, 184, .38);
  border-style: dashed;
  border-color: #94a3b8; color: #475569;
}
.booth.k-other b { font-weight: 500; opacity: .9; }
.booth .btag {
  position: absolute; right: 2px; z-index: 3;
  font-size: 9px; line-height: 1; font-weight: 700; color: #fff;
  padding: 2px 3px; border-radius: 4px; pointer-events: none;
  letter-spacing: 0;
}
.booth .btag.special { background: var(--warn-ink); }
.booth .btag.standard { background: #2563eb; }
.booth .btag.market { background: #10b981; }
.booth .btag.activity { background: #16a34a; }
.booth .btag.other { background: #64748b; }
.lg .sw.special { background: var(--warn-line); border-color: var(--warn); }
.lg .sw.standard { background: #2563eb; }
.lg .sw.market { background: #10b981; }
.lg .sw.activity { background: #16a34a; }
.lg .sw.other { background: #64748b; }
.lg-btypes { display: inline-flex; gap: 10px; flex-wrap: wrap; }
.map-foot .lg-cats { display: contents; }
.map-foot .sw.cat { border-radius: 50%; border-color: transparent; }
.cat-bar { padding-top: 0; }

.cat-pill {
  display: inline-block; padding: 1px 8px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; color: #fff; background: var(--cc, var(--slate-500));
  font-style: normal; line-height: 1.6;
}
.cat-pill.none { background: var(--wash-200); color: var(--slate-400); font-weight: 500; }

.cat-pick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 2px; }
.cat-opt {
  display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 10px;
  border-radius: 8px; border: 1px solid var(--line); background: var(--card);
  font-size: 14px; color: var(--text); font-weight: 500; text-align: left;
}
.cat-opt i { width: 10px; height: 10px; border-radius: 50%; background: var(--cc); flex: 0 0 auto; }
.cat-opt.on {
  border-color: var(--cc); color: var(--cc); font-weight: 700;
  box-shadow: inset 0 0 0 1px var(--cc);
}
.cat-opt.on::after { content: '✓'; margin-left: auto; font-size: 12.5px; }
/* 「其他」自己填：横跨两列，紧贴在类型按钮下面 */
.cat-pick .cat-note { grid-column: 1 / -1; height: 38px; }
.cat-pick .cat-note[hidden] { display: none; }

/* ---------- 预留面积 ---------- */
.input-row .unit {
  flex: 0 0 auto; display: flex; align-items: center; padding: 0 4px;
  font-size: 14px; color: var(--muted); font-weight: 500;
}
.anchor-pick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.anchor-opt {
  height: 36px; border-radius: 8px; border: 1px solid var(--line); background: var(--card);
  font-size: 14px; color: var(--text); font-weight: 500;
}
.anchor-opt.on {
  border-color: var(--primary); color: var(--primary); font-weight: 700;
  background: var(--primary-weak); box-shadow: inset 0 0 0 1px var(--primary);
}
.area-tip {
  margin: 2px 0 14px; padding: 9px 11px; border-radius: 8px;
  font-size: 12.5px; line-height: 1.6; background: var(--wash-100); color: var(--muted);
}
.area-tip b { font-weight: 700; }
.area-tip.ok { background: var(--ok-weak); color: #065f46; }
.area-tip.warn { background: var(--warn-weak); color: var(--warn-ink); }
.area-tip.bad { background: var(--danger-weak); color: #991b1b; }

.zoom-ctrl { position: absolute; right: 10px; bottom: 10px; display: flex; flex-direction: column; gap: 6px; }
.zoom-ctrl button {
  width: 32px; height: 32px; border-radius: 8px; background: rgba(255, 255, 255, .95);
  border: 1px solid var(--line); font-size: 17px; color: var(--muted);
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow);
}
/* 缩放控件里的矢量图标：跟按钮同色、线条粗细统一，不再依赖系统字体渲染字符 */
.zoom-ctrl button svg {
  width: 16px; height: 16px; display: block;
  fill: none; stroke: currentColor; stroke-width: 1.9;
  stroke-linecap: round; stroke-linejoin: round;
}

/* 分享按钮：钉在缩放按钮正上方，尺寸/圆角与缩放键完全一致（32×32 / 8px），
   底距 124 = zoom 三键 108 + 底距 10 + 缝隙 6 */
.map-share {
  position: absolute; right: 10px; bottom: 162px; width: 32px; height: 32px;
  border-radius: 8px; border: 0; background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow);
}
.map-share:active { background: var(--primary-dark); }

/* ---------- 卡片 ---------- */
.sec { padding: 14px; }
.sec-title { font-size: 14px; font-weight: 600; color: var(--muted); margin: 4px 0 10px; letter-spacing: .3px; }
.card {
  background: var(--card); border-radius: var(--radius); padding: 14px;
  box-shadow: var(--shadow); margin-bottom: 10px;
}
.card.pad { padding: 16px; }
.card.on { box-shadow: 0 0 0 2px var(--primary), var(--shadow); }
.card.flat { box-shadow: none; border: 1px solid var(--line); background: #fbfcfd; }
.card.tap:active { background: var(--wash-50); }
.card.warn-card { background: var(--warn-weak); border: 1px solid var(--warn-line); }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.kv { display: flex; gap: 10px; font-size: 14px; padding: 3px 0; }
.kv > span { flex: 0 0 56px; color: var(--muted); }
.kv > em { flex: 1; font-style: normal; word-break: break-all; }
.kv.warn > em { color: var(--danger); }
.kv em.big { font-size: 17px; font-weight: 700; color: var(--primary); }
.kv em.urgent { color: var(--danger); font-weight: 600; }
.kv em.soon { color: var(--warn); font-weight: 600; }
.btn-row { display: flex; gap: 8px; margin-top: 12px; }
.btn-row.wrap { flex-wrap: wrap; }
.btn-row.wrap .btn { flex: 1 1 auto; }
.sub { font-size: 14px; color: var(--muted); margin: 0 0 8px; line-height: 1.6; }

/* 审核卡 */
.review-card .rv-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.rv-code { font-size: 17px; font-weight: 700; }
.rv-amount { margin-left: auto; font-size: 17px; font-weight: 700; color: var(--danger); }
.proof { margin: 10px 0 0; }
.proof img { width: 100%; max-height: 260px; object-fit: contain; border-radius: 8px; background: var(--wash-50); border: 1px solid var(--line); }
.rv-actions { display: flex; gap: 8px; margin-top: 12px; }
.rv-actions .btn { flex: 1; }

/* ================= 历史记录 ================= */
.hist-bar {
  position: sticky; top: var(--topbar-h, 55px); z-index: 20;
  padding: 10px 14px 8px; background: var(--bg);
  border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 8px;
}
.hist-seg {
  display: flex; gap: 6px; background: var(--wash-200); border-radius: 8px; padding: 3px;
}
.hist-seg button {
  flex: 1; height: 30px; border-radius: 8px; border: 0; background: none;
  font-size: 12.5px; font-weight: 600; color: var(--slate-500);
}
.hist-seg button.active {
  background: var(--card); color: var(--primary);
  box-shadow: 0 1px 4px rgba(15,23,42,.10);
}
.hist-search { position: relative; }
.hist-search .input { padding-right: 34px; height: 34px; font-size: 14px; }
.hist-x {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 24px; height: 24px; border-radius: 50%; border: 0;
  background: var(--wash-200); color: var(--slate-500); font-size: 11px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.hist-head {
  font-size: 12.5px; color: var(--muted); padding: 2px 0 10px;
  display: flex; align-items: center; gap: 5px;
}
.hist-head b { color: var(--text); font-size: 14px; }
.hist-perm {
  margin-left: auto; font-size: 11px; color: var(--ok-ink);
  background: #dcfce7; padding: 1px 7px; border-radius: 999px; font-weight: 600;
}

.hist-day {
  display: flex; align-items: baseline; gap: 7px;
  margin: 16px 0 6px; padding-bottom: 5px;
  border-bottom: 1px solid var(--wash-200);
  position: sticky; top: 104px; background: var(--bg); z-index: 4;
}
.hist-day .hd-t { font-size: 14px; font-weight: 700; color: var(--text); }
.hist-day .hd-s { font-size: 11px; color: var(--slate-400); }
.hist-day .hd-n { margin-left: auto; font-size: 11px; color: #b0b8c4; }

.hist-item {
  display: flex; gap: 9px; padding: 9px 0 10px 8px;
  border-left: 2px solid #e2e8f0;
  border-bottom: 1px solid #f4f6f9;
}
.hist-item.h-layout { border-left-color: #14b8a6; }
.hist-item.h-booking { border-left-color: var(--primary); }
.hist-item.h-approval { border-left-color: #8b5cf6; }
.hist-item.h-other { border-left-color: #cbd5e1; }

/* 「定展」视图顶部：按人汇总，谁预留了、成交了几个位一眼可见 */
.bk-people {
  display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 2px;
}
.bk-person {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 9px; border-radius: 20px;
  background: #eef4ff; border: 1px solid #d6e3ff;
  font-size: 11px; color: var(--primary-deep);
}
.bk-person b { font-weight: 700; }
.h-time {
  flex: 0 0 42px; font-size: 11px; color: var(--slate-400);
  font-variant-numeric: tabular-nums; padding-top: 2px;
}
.h-body { flex: 1; min-width: 0; }
.h-top { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-bottom: 4px; }
.h-code {
  font-size: 14px; font-weight: 700; color: var(--text);
  font-variant-numeric: tabular-nums;
  margin-left: 2px;
}
.h-cust {
  font-size: 11px; padding: 1px 6px; border-radius: 4px;
  background: var(--wash-100); color: var(--slate-700); max-width: 150px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.h-detail { font-size: 12.5px; line-height: 1.55; color: var(--slate-700); word-break: break-word; }
.h-who { font-size: 11px; color: var(--muted); margin-top: 4px; }

/* 字段级差异胶囊 */
.dchips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.dchip {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 11px; line-height: 1.7; padding: 0 6px;
  border-radius: 4px; background: var(--wash-200); color: var(--slate-700);
  font-variant-numeric: tabular-nums;
}
.dchip.geo { background: #ecfeff; color: #0e7490; }
.dchip s { text-decoration: line-through; opacity: .65; }
.dchip b { font-weight: 700; }

/* 动态（旧样式保留，避免影响其他地方） */
.feed-day {
  font-size: 12.5px; color: var(--muted); font-weight: 600; margin: 14px 0 8px;
  position: sticky; top: 56px; background: var(--bg); padding: 4px 0;
}
.feed-item { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.feed-item:last-child { border-bottom: none; }
.feed-item .tag { flex: 0 0 auto; height: 20px; }
.feed-main { flex: 1; min-width: 0; }
.feed-line { font-size: 14px; line-height: 1.5; word-break: break-word; }
.feed-line b { font-weight: 700; }
.feed-meta { font-size: 11px; color: var(--muted); margin-top: 3px; }

/* 成员 */
.member-list { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.member { padding: 12px 14px; border-bottom: 1px solid var(--line); }
.member:last-child { border-bottom: none; }
.member:active { background: var(--wash-50); }
.m-main { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.m-main b { font-weight: 600; }
.m-sub { font-size: 12.5px; color: var(--muted); margin-top: 3px; }

/* 展位列表 */
.booth-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.booth-cell {
  background: var(--card); border: 1px solid var(--line); border-radius: 8px;
  padding: 9px 10px; font-size: 12.5px; color: var(--muted); line-height: 1.4;
}
.booth-cell:active { background: var(--wash-50); }
.booth-cell b { display: block; font-size: 14px; color: var(--text); font-weight: 700; }
.booth-cell b .cell-cat { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-left: 5px; vertical-align: middle; }
.booth-cell i { display: block; font-style: normal; color: #7c3aed; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.booth-cell.nonbooth { background: var(--wash-50); border-style: dashed; }

/* 参展商统计 */
.stat-row { display: flex; gap: 10px; margin: 14px 0 10px; }
.stat { flex: 1; text-align: center; }
.stat b { display: block; font-size: 22px; font-weight: 700; letter-spacing: -.5px; }
.stat b.c-red { color: var(--danger); }
.stat b.c-green { color: var(--ok); }
.stat span { font-size: 11px; color: var(--muted); }
.progress { height: 8px; border-radius: 4px; background: var(--wash-100); overflow: hidden; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, #f87171, #dc2626); border-radius: 4px; }

.row-btn {
  display: flex; width: 100%; justify-content: space-between; align-items: center;
  padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 14px;
}
.row-btn:last-child { border-bottom: none; }
.row-btn em { font-style: normal; color: var(--muted); font-size: 12.5px; }
.row-btn.on { color: var(--primary); font-weight: 600; }

/* 场次切换：名字 / 日期+场馆 / 城市+状态 三行，别挤成一行 */
.expo-row { flex-direction: column; align-items: flex-start; gap: 3px; }
.expo-row .er-name { font-weight: 600; font-size: 14px; }
.expo-row .er-meta { color: var(--muted); font-size: 12.5px; }
.expo-row .er-where { color: var(--slate-400, #94a3b8); font-size: 12.5px; }

/* 场次切换卡片：名字+右侧进度 / 日期·场馆 / 城市·状态 */
.expo-list { display: flex; flex-direction: column; }
.expo-item {
  display: flex; flex-direction: column; gap: 4px;
  width: 100%; text-align: left; padding: 13px 2px;
  border: 0; border-bottom: 1px solid var(--line, var(--line)); background: none;
  font: inherit; color: inherit; cursor: pointer;
}
.expo-item:last-child { border-bottom: none; }
.expo-item .ei-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.expo-item .ei-top b { font-size: 14px; font-weight: 600; min-width: 0; }
.expo-item.on .ei-top b { color: var(--primary); }
.expo-item .ei-right { flex: 0 0 auto; font-size: 12.5px; color: var(--danger); text-align: right; line-height: 1.35; }
.expo-item .ei-mid { font-size: 12.5px; color: var(--muted); }
.expo-item .ei-bot { font-size: 12.5px; color: var(--slate-400, #94a3b8); }
.expo-row.on .er-name { color: var(--primary); }
/* 右侧：距开展天数 + 剩余可预定，靠右对齐 */
.expo-row { position: relative; padding-right: 104px; }
.expo-row .er-side { position: absolute; right: 4px; top: 14px; text-align: right;
  font-size: 12.5px; color: var(--primary); line-height: 1.5; max-width: 100px; }

/* ---------- 底部抽屉 ---------- */
.sheet-mask {
  position: fixed; inset: 0; background: rgba(16, 24, 40, .45);
  opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 90;
}
.sheet-mask.open { opacity: 1; pointer-events: auto; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
  background: var(--card); border-radius: 18px 18px 0 0;
  padding: 8px 18px calc(18px + var(--safe-b));
  transform: translateY(100%); transition: transform .26s cubic-bezier(.32, .72, 0, 1);
  max-height: 88vh; overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.sheet.open { transform: translateY(0); }
.sheet-grip { width: 36px; height: 4px; border-radius: 4px; background: #dfe3e9; margin: 0 auto 14px; }
.sheet h2 { margin: 0 0 4px; font-size: 17px; font-weight: 700; }
.sheet .sub { font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.sheet-actions { display: flex; gap: 10px; margin-top: 18px; }
.sheet-actions .btn { flex: 1; }
.sheet-actions.col { flex-direction: column; gap: 12px; }
/* 竖向按钮列：做厚一点，别像细条 */
.sheet-actions.col .btn { flex: none; height: 48px; border-radius: 12px; font-size: 15px; }
/* 四个按钮时两列排，文字不折行 */
.sheet-actions.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sheet-actions.grid2 .btn {
  width: 100%; height: 46px; font-size: 14px; white-space: nowrap;
  padding: 0 8px; border-radius: 12px;
}

/* 驳回提示（销售端） */
.reject-box {
  margin: 10px 0 4px; padding: 10px 12px;
  background: var(--warn-weak); border: 1px solid var(--warn-line);
  border-left: 3px solid var(--warn); border-radius: 8px;
}
.reject-box .rb-head { font-size: 12.5px; font-weight: 700; color: var(--warn-ink); margin-bottom: 4px; }
.reject-box .rb-note { font-size: 12.5px; line-height: 1.6; color: #7c2d12; word-break: break-word; }
.reject-box .rb-tip { font-size: 11px; color: var(--warn-ink); margin-top: 5px; }

/* 提示框（待审核面积等中性提示） */
.notice-box {
  margin: 10px 0 4px; padding: 10px 12px;
  background: var(--warn-weak); border: 1px solid var(--warn-line);
  border-left: 3px solid var(--warn); border-radius: 8px;
}
.notice-box b { font-size: 12.5px; color: var(--warn-ink); }
.notice-box p { margin: 4px 0 0; font-size: 12.5px; line-height: 1.6; color: #a16207; }
/* 中性版：资料进度这类不需要警惕的提示 */
.notice-box.soft { background: var(--wash-50); border-color: #e2e8f0; border-left-color: var(--slate-500); }
.notice-box.soft b { color: var(--slate-900); }
.notice-box.soft p { color: var(--slate-700); }

/* ---------- 合同 / 付款（三态 + 展开字段） ---------- */
.seg-pick.three { display: grid; grid-template-columns: repeat(3, 1fr); }
.seg-pick.three button { height: 40px; padding: 0 2px; font-size: 14px; }

.files-block { margin-bottom: 4px; }
.files-block [data-cbox], .files-block [data-pbox] {
  padding: 12px 12px 2px; margin-bottom: 14px;
  background: var(--wash-50); border: 1px solid #e8eef7; border-radius: 8px;
}
.files-block [data-cbox][hidden], .files-block [data-pbox][hidden] { display: none; }
.files-hint { margin: -4px 0 12px; }
.input-row .unit.pre { font-weight: 600; color: var(--slate-900); }

/* 凭证上传 */
.upload-box {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 16px 12px; border: 1px dashed #c7d2e2; border-radius: 8px;
  background: var(--card); cursor: pointer;
}
.upload-box i { font-style: normal; font-size: 22px; line-height: 1; color: var(--primary); }
.upload-box b { font-size: 14px; font-weight: 600; color: var(--slate-900); }
.upload-box em { font-style: normal; font-size: 11px; color: var(--muted); text-align: center; }
.upload-box.ok { border-color: var(--ok); background: #f0fdf4; }
.upload-box.ok i { color: var(--ok); }
.upload-box.ok em { color: var(--ok-ink); }
.upload-box.bad { border-color: var(--danger); background: var(--danger-weak); }
.upload-box.bad i, .upload-box.bad b, .upload-box.bad em { color: var(--danger-ink); }

.todo-hint { margin: 6px 14px 0; }

/* ---------- 底部导航 ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(180%) blur(12px);
  border-top: 1px solid var(--line);
  padding-bottom: var(--safe-b);
  /* 角色多了以后 tab 会变多（客服部 7 个），窄屏放不下就横向滑动，
     但绝不把文字挤成两行或把图标压扁 */
  overflow-x: auto; overflow-y: hidden;
  scrollbar-width: none;
}
.tabbar::-webkit-scrollbar { display: none; }
.tabbar button {
  flex: 1 0 auto; min-width: 56px; height: 58px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; font-size: 11px; color: var(--muted); font-weight: 500; position: relative;
  white-space: nowrap;
}
/* 图标统一 24×24 线性风格（见 index.html），这里只定尺寸。
   颜色交给 button 的 color，SVG 里 stroke="currentColor" 自动跟随激活态。 */
.tabbar button .ic { width: 22px; height: 22px; display: block; }
.tabbar button .ic svg { width: 100%; height: 100%; display: block; }
/* 激活态线条略粗一点：小屏上光靠颜色不够，加一点重量更好认 */
.tabbar button.active .ic svg { stroke-width: 2; }
.tabbar button.active .ic { transform: translateY(-.5px); }
/* 角标贴在图标右上角（之前偏得太远，悬在空白处） */
.tabbar .badge { top: 7px; left: calc(50% + 8px); transform: none; min-width: 15px; height: 15px; padding: 0 4px; }
.tabbar button.active { color: var(--primary); }
.badge {
  position: absolute; transform: translate(14px, -10px);
  min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px;
  background: var(--danger); color: #fff; font-size: 11px; font-weight: 700;
  display: none; align-items: center; justify-content: center;
}
.badge.show, .badge:not(:empty) { display: flex; }

/* ---------- 管理 ---------- */
/* 管理页顶部：白色吸附条 + 灰胶囊分段（与动态页 .hist-seg 同一套） */
.admin-tabs {
  padding: 10px 14px 8px; border-bottom: 1px solid var(--line); background: var(--bg);
  position: sticky; top: 55px; z-index: 20;
}
/* 整行铺满：容器 100% 宽，四个标签各占 1/4，间距均匀 */
.admin-tabs .hist-seg { display: flex; width: 100%; box-sizing: border-box; }
.admin-tabs .hist-seg button {
  flex: 1 1 0; min-width: 0; padding: 0;
  height: 30px; font-size: 12.5px; border-radius: 8px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
#admin-body { padding: 12px 14px; }

/* ---------- toast ---------- */
#toast {
  position: fixed; left: 50%; top: 42%; transform: translate(-50%, -50%) scale(.94);
  background: rgba(22, 25, 29, .92); color: #fff; padding: 12px 20px; border-radius: 12px;
  font-size: 14px; max-width: 82vw; text-align: center; line-height: 1.5;
  opacity: 0; pointer-events: none; transition: opacity .18s, transform .18s; z-index: 200;
}
#toast.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* ---------- 桌面端适配 ---------- */
@media (min-width: 720px) {
  body { background: #e9ecf1; }
  #view-main, #view-pending { max-width: 620px; margin: 0 auto; background: var(--bg); min-height: 100vh; box-shadow: 0 0 40px rgba(0,0,0,.06); }
  #view-login { max-width: 560px; margin: 0 auto; }
  .tabbar { max-width: 620px; left: 50%; transform: translateX(-50%); }
}

/* ================= 公告栏 ================= */
.notice-strip {
  display: flex; align-items: center; gap: 8px; width: 100%;
  padding: 8px 14px; background: var(--warn-weak); border-bottom: 1px solid var(--warn-line);
  text-align: left; color: var(--warn-ink);
}
.notice-strip .ns-ic { font-size: 15px; }
.notice-strip .ns-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.notice-strip .ns-text b {
  font-size: 14px; font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.notice-strip .ns-text em { font-style: normal; font-size: 11px; color: var(--warn-ink); }
.notice-strip .ns-go { font-size: 12.5px; color: var(--warn-ink); white-space: nowrap; }

.nt-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 4px 0 10px;
}
.nt-count { font-size: 12.5px; color: var(--muted); }
.nt-count .nt-unread { color: var(--danger); font-weight: 600; }
.nt-card.pin { border-left: 3px solid var(--warn); }
/* 未读公告：左侧蓝条 + 标题加粗，点「已读」后恢复正常 */
.nt-card.unread { border-left: 3px solid var(--primary); }
.nt-card.unread .nt-title { font-weight: 700; }
.nt-card.unread .nt-body { #111827; }
.nt-dot { background: #fee2e2; color: var(--danger-ink); }
.nt-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.nt-title { font-size: 14px; font-weight: 600; }
.nt-body { font-size: 14px; line-height: 1.75; color: var(--slate-900); }
.nt-foot {
  display: flex; align-items: center; gap: 10px; margin-top: 10px;
  font-size: 11px; color: var(--muted);
}
.nt-foot .nt-del { margin-left: auto; color: var(--danger); font-size: 12.5px; }
/* 「已读」按钮：未读时是实心蓝，已读后变成灰色文字 */
.nt-foot .nt-yes {
  padding: 4px 11px; border-radius: 8px; font-size: 12.5px;
  background: var(--primary); color: #fff; font-weight: 600;
}
.nt-foot .nt-yes:active { transform: scale(.97); }
.nt-foot .nt-done { color: var(--ok); font-weight: 600; }
.nt-foot .nt-reads { color: var(--slate-400); }

/* 危险操作区：删除展位图这类不可逆动作单独放到页面最下面，视觉上明确警示 */
.danger-zone {
  margin-top: 14px;
  border: 1px solid var(--danger-line);
  background: #fff8f8;
}
.danger-zone > .row-between b { color: var(--danger-ink); }
.btn.danger:disabled { filter: saturate(.45); opacity: .65; cursor: not-allowed; }

/* ================= 分段选择 ================= */
/* 全站分段条统一规格（基准：搭建页 .bd-seg）：
   灰胶囊容器 pad 3 / gap 6 / radius 10，按钮 30px 高 / 12.5px 字 / radius 8 */
.seg-bar {
  display: flex; gap: 6px; padding: 3px;
  background: var(--wash-200); border-radius: 8px;
  margin: 10px 14px 0;
}
.seg-bar button {
  flex: 1; height: 30px; border-radius: 8px; background: transparent;
  font-size: 12.5px; color: var(--slate-700); font-weight: 600;
}
.seg-bar button.active {
  background: var(--card); color: var(--primary); font-weight: 600;
  box-shadow: 0 1px 4px rgba(15, 23, 42, .10);
}



.seg-pick { display: flex; gap: 8px; }
.seg-pick button {
  flex: 1; height: 42px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--card); font-size: 14px; color: var(--slate-900);
}
.seg-pick button.on {
  border-color: var(--primary); background: var(--primary-weak);
  color: var(--primary-dark); font-weight: 600;
}
.seg-pick button:disabled { opacity: .45; pointer-events: none; }

.chk-line {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; color: var(--slate-900); margin: 2px 0 16px;
}

/* ================= 客户跟进 ================= */
/* 客户状态筛选：四个数字可点，点中高亮；底部留 12px 别贴住下面的卡片 */
/* 客户页统计：与「数据」页的 .stat 保持同一套视觉（纯数字 + 灰标签，选中用主色下划线） */
.ful-stats { display: flex; gap: 2px; padding: 8px 12px 10px; }
.ful-stats .fs {
  flex: 1; background: none; border: 0; border-radius: 0; box-shadow: none;
  padding: 6px 2px; text-align: center; font-size: 11px; color: var(--muted);
  font-family: inherit;
}
.ful-stats b { display: block; font-size: 17px; font-weight: 700; color: var(--ink); letter-spacing: -.4px; }
.ful-stats .fs.on { color: var(--primary); font-weight: 600; }
.ful-stats .fs.on b { color: var(--primary); }
.ful-stats .fs.on::after {
  content: ''; display: block; width: 16px; height: 2px; border-radius: 4px;
  background: var(--primary); margin: 4px auto 0;
}

.pipe {
  display: flex; gap: 6px; margin: 8px 0 4px; padding: 8px 10px;
  background: #fafbfc; border-radius: 8px;
}
.pipe .ps {
  flex: 1; min-width: 0; border-radius: 0; background: none; border: 0; padding: 0;
  display: grid; grid-template-columns: 14px minmax(0, 1fr); column-gap: 5px; text-align: left;
}
.pipe .ps i {
  grid-row: 1 / span 2; align-self: start; margin-top: 1px;
  display: inline-flex; width: 14px; height: 14px; border-radius: 50%;
  background: #cbd5e1; color: #fff; font-size: 9px; font-style: normal;
  align-items: center; justify-content: center;
}
.pipe .ps b { display: block; font-size: 11px; color: var(--muted); font-weight: 500; margin-top: 0; }
.pipe .ps em {
  display: block; font-style: normal; font-size: 11px; color: var(--ink); margin-top: 1px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pipe .ps.done em { #059669; }
.pipe .ps.done i { background: #059669; }
.pipe .ps.done b { #059669; }
.pipe .ps.wait i { background: var(--warn); }
.pipe .ps.wait em { color: var(--warn-ink); }
.pipe .ps.off em { #b6bcc6; }

/* 公告页里不再重复显示顶部公告条（避免同一条公告出现两次） */
body:has(#screen-notice.active) #banner-notice { display: none; }

/* ================= 合同台账 ================= */
.ct-bar { display: flex; align-items: center; gap: 10px; padding: 10px 0 4px; }
.ct-bar .seg-bar { flex: 1; padding: 0; }
.ct-bar .btn { flex: 0 0 auto; }
.ct-tip { margin: 4px 0 12px; font-size: 12.5px; color: var(--muted); line-height: 1.6; }

.ct-card { display: flex; flex-direction: column; gap: 6px; cursor: pointer; }
.ct-top { display: flex; align-items: center; gap: 8px; }
.ct-name { font-size: 15px; font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ct-part { font-size: 14px; color: var(--slate-900); }
.ct-meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12.5px; color: var(--muted); }
.ct-unit { color: var(--warn-ink); font-weight: 600; }
.ct-foot {
  display: flex; flex-wrap: wrap; gap: 10px; font-size: 12.5px; color: var(--muted);
  padding-top: 6px; border-top: 1px dashed var(--line);
}
.ct-route { #6d28d9; font-weight: 600; }
.ct-link { #0369a1; }
.ct-note { margin-top: 6px; padding: 6px 8px; background: var(--danger-weak); border-radius: 8px; font-size: 12.5px; color: var(--danger-ink); line-height: 1.6; }
/* 合同登记时的「客户归属体检」：保单没收 / 老客户档案，一行一条 */
.ct-hist { display: flex; flex-direction: column; gap: 6px; margin: -2px 0 10px; }
.ct-hist .ch-row {
  display: flex; flex-direction: column; gap: 2px;
  padding: 8px 10px; border-radius: 10px;
  background: var(--wash-100, #f8fafc); border: 1px solid var(--line);
}
.ct-hist .ch-row b { font-size: 13px; font-weight: 600; color: var(--text); }
.ct-hist .ch-row em { font-size: 12px; font-style: normal; color: var(--muted); line-height: 1.5; }
.ct-hist .ch-row.ok { background: var(--success-weak, #ecfdf5); border-color: var(--success-line, #a7f3d0); }
.ct-hist .ch-row.ok b { color: var(--success-ink, #047857); }
.ct-hist .ch-row.bad { background: var(--danger-weak); border-color: var(--danger-line, #fecaca); }
.ct-hist .ch-row.bad b { color: var(--danger-ink); }
.sec-sub { font-size: 12.5px; color: var(--muted); margin: 14px 0 8px; letter-spacing: .3px; }

/* 关联台账合同（预留 / 补充资料弹层） */
.clink { border: 1px solid #c7d2fe; background: #eef2ff; border-radius: 8px; padding: 10px 12px; margin-bottom: 12px; }
.clink-head { display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; color: #3730a3; }
.clink-head b { font-weight: 600; }
.clink-x { font-size: 12.5px; color: #4f46e5; text-decoration: underline; }
.clink-body { margin: 6px 0 8px; }
.clink-row { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: #1e1b4b; }
.clink-part { font-size: 12.5px; color: #4338ca; margin-top: 2px; }
.clink-meta { font-size: 12.5px; color: #4c4894; margin-top: 3px; line-height: 1.5; }
.clink .btn { background: var(--card); }

.cust-hint { margin: -2px 0 10px; font-size: 12.5px; color: var(--muted); line-height: 1.6; }

/* 单价 → 审核去向 */
.route-tip { margin: 0 0 12px; font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.route-tip b { color: var(--text); }
.route-tip.fin { color: var(--warn-ink); }
.route-tip.lead { #5b21b6; }

/* 两列字段 */
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field-row .field { min-width: 0; }

/* 合同文件预览 */
.cf-overlay { position: fixed; inset: 0; z-index: 9000; background: rgba(16, 20, 28, .58);
  display: flex; align-items: center; justify-content: center; padding: 16px; }
.cf-panel { width: min(720px, 100%); max-height: 88vh; overflow: auto; padding: 14px;
  border-radius: 16px; background: var(--card, #fff); box-shadow: 0 18px 48px rgba(0,0,0,.28); }
.cf-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.cf-head > div:first-child { flex: 1; min-width: 0; }
.cf-acts { display: flex; gap: 6px; flex: 0 0 auto; }
.cf-head b { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cf-head em { font-style: normal; font-size: 12.5px; color: var(--muted); }
.cf-frame { width: 100%; height: 62vh; border: 1px solid var(--line); border-radius: 8px; background: var(--card); }
.cf-img img { width: 100%; border-radius: 8px; display: block; }

/* ---------- 管理员视角预览 ---------- */
.role-switch {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 2px;
  height: 26px; padding: 0 9px; border-radius: 13px;
  font-size: 12.5px; font-weight: 600; color: var(--primary-deep);
  background: var(--primary-weak); box-shadow: inset 0 0 0 1px var(--primary-line);
}
.role-switch em { font-style: normal; font-size: 11px; opacity: .65; }
.role-switch:active { background: var(--primary-soft); }

.pill.preview { background: var(--warn-weak); color: var(--warn-ink); box-shadow: inset 0 0 0 1px #fed7aa; }

.banner.viewrole {
  width: calc(100% - 28px); text-align: left; cursor: pointer;
  background: var(--warn-weak); color: var(--warn-ink); border: 1px dashed #fdba74;
  align-items: center;
}
.banner.viewrole .vr-ic { font-size: 11px; color: var(--warn); }
.banner.viewrole b { font-weight: 700; }

.role-list { display: flex; flex-direction: column; margin: 10px 0 4px; }
.role-list .row-btn span { font-weight: 600; }
.role-list .row-btn em { flex: 1; text-align: right; margin-left: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ================= 区域标注（虚框） =================
   管理员在编辑器里手画的「餐饮区 / 堆货区」标注，选位页与分享页只读展示。
   压在展位层上方保证虚线看得见，但 pointer-events:none，绝不影响选位点击。
   线宽和字号乘 --wallk（＝1/缩放），屏幕上恒为 2px / 11px。 */
#zone-layer { position: absolute; inset: 0; pointer-events: none; }
.mzone {
  position: absolute;
  box-sizing: border-box;
  border: calc(2px * var(--wallk, 1)) dashed var(--zc, var(--warn));
  border-radius: calc(6px * var(--wallk, 1));
  pointer-events: none;
}
/* 馆号/区域名：默认贴框线上沿外侧（bottom:100% + 2px 间隙），
   上方没空间时改贴下沿外侧 —— 两种都保证完全在框线之外。 */
.mzone > span {
  position: absolute;
  left: 0;
  bottom: calc(100% + 2px);
  background: var(--zc, var(--warn)); color: #fff;
  font-size: calc(11px * var(--wallk, 1));
  line-height: 1.5;
  font-weight: 600;
  padding: 0 calc(6px * var(--wallk, 1));
  border-radius: calc(4px * var(--wallk, 1));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
}
/* 上方没空间的区域：名字贴到框下沿外侧 */
.mzone.no-room > span { bottom: auto; top: calc(100% + 2px); left: 0; }

/* ---------- 搭建方案状态角标（仅内部角色可见） ----------
   放在右下角：左上被展位号占着、右上被类型角标占着、底部有展出类型色条。
   尺寸固定不随缩放变，小展位缩成纯色点（.tight），仍能用颜色扫出没定方案的位。 */
.booth .bmark {
  position: absolute; right: 1px; bottom: 1px; z-index: 4;
  width: 7px; height: 7px; border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 800; line-height: 1; color: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .9);
  pointer-events: none;
}
.booth .bmark.ok { background: #16a34a; }
.booth .bmark.wait { background: var(--warn); }
.booth .bmark.mod { background: #7c3aed; }
.booth .bmark.gone { background: var(--slate-mid); }
.booth.tight .bmark, .booth.no-code .bmark { width: 6px; height: 6px; font-size: 0; border-radius: 4px; }

.map-foot .sw.b-ok { background: #16a34a; border-color: var(--ok-ink); }
.map-foot .sw.b-wait { background: var(--warn); border-color: var(--warn); }
.map-foot .sw.b-mod { background: #7c3aed; border-color: #6d28d9; }
.map-foot .sw.b-gone { background: var(--slate-mid); border-color: var(--slate-mid); }
.map-foot .sw.util { background: var(--primary-tint); border-color: var(--primary-dark); border-style: dashed; }
.lg-builds { display: inline-flex; gap: 10px; flex-wrap: wrap; }

/* ---------- 电箱 / 灭火器图层 ----------
   电箱是不规则多边形（用 SVG，div+clip-path 会把描边一起裁掉），
   线宽用 non-scaling-stroke，放大缩小都保持 1.5px。 */
#util-layer { position: absolute; inset: 0; pointer-events: none; }
.usvg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.upoly {
  fill: var(--primary-tint);
  stroke: var(--primary-dark);
  stroke-width: 1.5;
  stroke-dasharray: 4 3;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.umk {
  position: absolute; transform: translate(-50%, -50%);
  font-size: calc(10px * var(--wallk, 1));
  line-height: 1.4; white-space: nowrap; font-weight: 700;
  pointer-events: none; z-index: 3;
}
.umk.pw {
  color: var(--primary-dark); background: rgba(255, 255, 255, .88);
  border: 1px solid var(--primary-line); border-radius: calc(3px * var(--wallk, 1));
  padding: 0 calc(4px * var(--wallk, 1));
}
.umk.ext {
  #fff; background: #dc2626;
  padding: 0 calc(3px * var(--wallk, 1));
  border-radius: calc(2px * var(--wallk, 1));
  box-shadow: 0 1px 2px rgba(0, 0, 0, .3);
}
.umk.ext i { font-style: normal; font-size: .85em; opacity: .9; }

/* ================= 搭建方案（工程部 / 特装展商） ================= */

/* 三段切页：方案库 / 待处理 / 备料汇总
   一条浅底槽 + 32px 按钮；计数丸细身、颜色跟按钮文字走（选中才实心），
   别再给灰底 #dde3ec —— 那个在浅槽上就是一坨看不清的灰砖。 */
.bd-seg {
  background: var(--wash-200); border-radius: 8px;
  margin: 10px 14px 0; padding: 3px; gap: 4px;
}
.bd-seg button {
  display: flex; align-items: center; justify-content: center; gap: 4px;
  height: 32px; border-radius: 8px; font-size: 14px;
  background: transparent; box-shadow: none; color: var(--slate-700);
}
.bd-seg button.active {
  background: var(--card); color: var(--primary);
  box-shadow: 0 1px 4px rgba(16,24,40,.08);
  border: 1px solid var(--primary-weak, #ffe3d9);
}
.bd-seg button b {
  display: inline-block; min-width: 15px; height: 15px;
  font-size: 11px; font-weight: 700; line-height: 13px;
  padding: 0 4px; border-radius: 8px;
  background: transparent; border: 1px solid currentColor; color: inherit; opacity: .65;
}
.bd-seg button.active b { background: var(--primary); border-color: var(--primary); color: #fff; opacity: 1; }
.bd-seg button b.hot { background: var(--danger); border-color: var(--danger); color: #fff; opacity: 1; }

.bd-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 6px 2px 10px;
}
.bd-head .sub { flex: 1; min-width: 0; font-size: 12.5px; color: var(--muted); }

.bd-group {
  /* 与下方物料行（.bp-row）左右边缘严格对齐：不留任何缩进/内距 */
  margin: 14px 0 8px; padding: 0; font-size: 12.5px; font-weight: 600; color: var(--muted);
  display: flex; align-items: center; gap: 6px;
}
.bd-group .sub { font-weight: 400; }
.bd-group:first-child { margin-top: 2px; }

/* 方案卡 */
.plan-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 11px 13px; margin-bottom: 9px; box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}
.plan-card.off { opacity: .62; }
.plan-card.pickable { cursor: pointer; }
.plan-card.unfit { border-color: #f3d9a8; }
.pc-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pc-name { font-size: 14px; font-weight: 600; color: var(--text); min-width: 0; }
.pc-name i {
  font-style: normal; font-size: 11px; font-weight: 500; color: var(--muted);
  margin-left: 6px; padding: 1px 5px; border-radius: 4px; background: var(--wash-200);
}
.pc-mats {
  margin-top: 5px; font-size: 12.5px; color: var(--slate-700); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pc-mats .grey { color: var(--muted); }
.pc-desc {
  margin-top: 5px; font-size: 12.5px; color: var(--muted); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pc-foot {
  margin-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.pc-foot .sub { font-size: 12.5px; color: var(--muted); }
.pc-ops { display: flex; gap: 6px; }

/* 待处理卡 */
.sel-card, .ex-booth {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 11px 13px; margin-bottom: 9px;
}
.sc-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sc-top b { font-size: 14px; }
.sc-body { margin-top: 6px; }
.sc-body .kv { display: flex; gap: 8px; font-size: 12.5px; line-height: 1.9; }
.sc-body .kv > span { color: var(--muted); flex: 0 0 68px; }
.sc-body .kv > em { font-style: normal; color: var(--text); flex: 1; min-width: 0; word-break: break-all; }
.warn-text { color: var(--warn) !important; }
.sc-ops {
  margin-top: 10px; padding-top: 9px; border-top: 1px dashed var(--line);
  display: flex; justify-content: flex-end; align-items: center; gap: 8px;
}
.ex-booth .kv { display: flex; gap: 8px; font-size: 12.5px; line-height: 1.85; }
.ex-booth .kv > span { color: var(--muted); flex: 0 0 68px; }
.ex-booth .kv > em { font-style: normal; flex: 1; min-width: 0; }
.ex-booth .sc-ops { border-top: none; padding-top: 0; margin-top: 4px; }

/* 备料汇总 */
.sum-note {
  font-size: 12.5px; line-height: 1.7; color: var(--muted);
  background: #f6f8fb; border: 1px solid var(--line); border-radius: 8px;
  padding: 9px 11px; margin-bottom: 10px;
}
.sum-note b { color: var(--text); }
/* 多城备料：一城一表，城里表头写城市 + 展位号，最后一张是合计 */
.sum-city { margin-bottom: 14px; }
.sum-city-h { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.sum-city-h b { font-size: 15px; font-weight: 700; color: var(--text); }
.sum-city-h em { font-size: 12px; font-style: normal; color: var(--muted); }
.sum-city.sum-total .sum-city-h b { color: var(--primary); }
.sum-note .btn { margin-top: 6px; }
.mat-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px;
}
.mat-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 10px 8px; text-align: center;
}
.mat-card span { display: block; font-size: 11px; color: var(--muted); }
.mat-card b { display: block; margin: 3px 0 1px; font-size: 17px; color: var(--primary-dark); font-variant-numeric: tabular-nums; }
.mat-card em { display: block; font-style: normal; font-size: 11px; color: var(--muted); }

.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); }
.tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; background: var(--card); }
.tbl th, .tbl td { padding: 8px 9px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl th { font-size: 11px; font-weight: 600; color: var(--muted); background: #f7f9fc; }
.tbl tr:last-child td { border-bottom: none; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }

/* 方案表单里的物料行 */
.bp-row {
  /* 一行一种物料：品类 / 规格 / 尺寸 / 数量 / 删除 */
  /* 品类留够 5 个字宽（长臂射灯），单位纯文字只占一点 */
  display: grid; grid-template-columns: 84px minmax(0, 1fr) 42px 34px 22px;
  gap: 6px; align-items: center; margin-bottom: 6px;
}
.bp-row .input { min-width: 0; }
.bp-row .bp-type, .bp-row .bp-unit { padding-left: 6px; padding-right: 2px; font-size: 12.5px; }
.bp-del {
  width: 28px; height: 34px; border-radius: 8px; background: #f1f3f7; color: #9aa3b2;
  font-size: 14px; line-height: 1;
}
.bp-del:active { background: #e3e7ee; }
@media (max-width: 560px) {
  .mat-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .mat-card { padding: 9px 5px; }
  .mat-card b { font-size: 15px; }
  /* 手机上的展位只有十几像素宽，电箱标签按桌面字号会横着压掉好几个展位 */
  .umk { font-size: 9px; }
  /* 手机上展位只有十几像素宽，而电箱标签写着「380V/63A（41.5kW）」，
     贴上去会横压四五个展位，挡住的正是要选的位置。手机上只留轮廓，
     要数据去点开电箱看，别在图上糊字。 */
  .umk.pw { display: none; }
  .umk.ext { padding: 0 2px; }
  /* 图例在手机上改成「换行铺开」：以前是单行横向滚动，右边还有一半内容，
     用户以为图例就那么几项（「活动区 / 其他」直接被裁掉）。 */
  .map-foot { flex-wrap: wrap; overflow: visible; gap: 5px 10px;
    font-size: 11px; align-items: center; height: auto; min-height: 30px;
    padding: 5px 12px 6px; line-height: 1.3; }
  .map-foot .lg, .lg-builds { flex: 0 0 auto; }
  .lg-builds { flex-wrap: wrap; align-items: center; gap: 5px 10px; }
  /* 图例多出一行的高度，从地图上让出来，免得最后一行被底部 tab 压住 */
  .map-wrap { height: calc(100vh - 348px); }
  /* 展位图整体按宽度缩放，6px 的角标落到屏幕上只剩 4px，抬到 10px 才看得见 */
  .booth.tight .bmark, .booth.no-code .bmark { width: 10px; height: 10px; }
}

/* 方案详情里的效果图 */
.pd-cover {
  margin: 8px 0 10px; border-radius: 8px; overflow: hidden; background: #f2f5f9;
  min-height: 96px; display: flex; align-items: center; justify-content: center;
}
.pd-cover img { display: block; width: 100%; height: auto; }

/* ---------- 楣板信息（参展商自己填） ---------- */
.fs-list { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.fs-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; background: var(--wash-50);
  border: 1px solid #e2e8f0; border-radius: 8px;
}
.fs-main { flex: 1; min-width: 0; }
.fs-code { font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 6px; }
.fs-code .pill { font-size: 11px; padding: 1px 6px; }
.fs-name {
  font-size: 14px; color: #0f172a; margin-top: 3px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.fs-name em { font-style: normal; color: var(--slate-500); font-size: 12.5px; }
.fs-due { font-size: 12.5px; color: var(--slate-500); margin-top: 2px; }
.fs-due.urgent { color: var(--danger-ink); font-weight: 600; }
.fs-row .btn.small { flex: none; }

/* ---------- 站内提醒 ---------- */
/* 线性铃铛：和底栏、棚板那批图标同一套（24 网格 / 1.7 描边 / currentColor），
   不再用 emoji —— 各家系统字体渲染差别太大，Windows 上会变成 3D 黄铃铛。 */
.msg-btn {
  position: relative; width: 34px; height: 34px; flex: none;
  border-radius: 8px; border: 1px solid var(--line); background: var(--card);
  display: grid; place-items: center; cursor: pointer; padding: 0;
  color: var(--slate-700); transition: color .15s, border-color .15s, background .15s;
}
.msg-btn .ic { display: grid; place-items: center; line-height: 0; }
.msg-btn .ic svg { width: 19px; height: 19px; display: block; }
.msg-btn:hover { border-color: var(--line); color: #1f2937; }
.msg-btn:active { background: var(--wash-50); }
.msg-btn.has { border-color: #fca5a5; background: var(--danger-weak); color: var(--danger); }
.msg-btn .badge {
  /* 骑在铃铛右上角：圆心落在图标边沿，约一半圆压在图标上、一半露出按钮 */
  position: absolute; top: 0; right: -1px; transform: none;
  min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px;
  box-shadow: 0 0 0 2px var(--card, #fff);
  background: #dc2626; color: #fff;
  font-size: 11px; line-height: 16px; font-weight: 700; text-align: center;
}
.msg-list {
  display: flex; flex-direction: column; gap: 8px;
  margin-top: 8px; max-height: 52vh; overflow: auto;
}
.msg-item { padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.msg-item.unread { background: var(--primary-weak); border-color: var(--primary-line); }
.msg-t { font-weight: 700; font-size: 14px; }
.msg-b { font-size: 12.5px; color: var(--slate-700); margin-top: 3px; line-height: 1.55; }
.msg-m { font-size: 11px; color: var(--slate-400); margin-top: 4px; }

/* ================= 异形展位 =================
   展位 div 用 clip-path 裁成多边形（连命中区一起裁），
   边框因此画不出来 —— 描边交给 #poly-layer 的 SVG。 */
.booth.poly { border: 0; border-radius: 0; }
#poly-layer {
  position: absolute; left: 0; top: 0;
  pointer-events: none;
}
#poly-layer svg { position: absolute; left: 0; top: 0; overflow: visible; }
.pstroke {
  fill: none; stroke: var(--slate-400); stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}
.pstroke.st-free { stroke: var(--ok); }
.pstroke.st-mine { stroke: var(--primary-dark); stroke-width: 2; }
.pstroke.st-held { stroke: var(--warn); }
.pstroke.st-review { stroke: #7e22ce; }
.pstroke.st-sold { stroke: var(--danger-ink); }
.pstroke.st-reject { stroke: var(--warn); stroke-dasharray: 4 3; }
.pstroke.st-closed { stroke: var(--slate-400); stroke-dasharray: 4 3; }
.pstroke.st-unlisted { stroke: var(--slate-700); }
.pstroke.st-locked { stroke: var(--line); stroke-dasharray: 4 3; }

/* ================= 参展商企业资质 =================
   注册时选身份、上传营业执照 / 身份证正反面；财务审核通过后才能定展位。
   没通过时：选位页顶上常驻一条提示，能看到的只有销售情况（和对外分享页一致）。 */
.role-pick { display: flex; gap: 8px; }
.role-pick button {
  flex: 1 1 0; min-width: 0; text-align: left;
  padding: 9px 11px; border-radius: 8px; cursor: pointer;
  background: var(--card); border: 1px solid var(--line, #e5e7eb);
  font-size: 14px; font-weight: 600; color: var(--slate-900); line-height: 1.35;
}
.role-pick button em {
  display: block; font-style: normal; font-weight: 400;
  font-size: 11px; color: var(--slate-400); margin-top: 2px;
}
.role-pick button.on {
  border-color: var(--primary); background: var(--primary-weak); color: var(--primary-dark);
  box-shadow: 0 0 0 1px var(--primary-glow) inset;
}
.role-pick button.on em { color: var(--primary); }

.qual-slot {
  position: relative;   /* .vh 的 file input 绝对定位，锚在槽位上不乱跑 */
  border: 1px dashed var(--line); border-radius: 8px; padding: 10px;
  margin: 8px 0; cursor: pointer; background: #fbfdff;
}
.qual-slot.ok { border-style: solid; border-color: #10b981; background: #f0fdf4; }
.qs-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.qs-head b { font-size: 14px; color: var(--slate-900); }
.qs-head em { font-style: normal; font-size: 11px; color: var(--slate-400); }
.qual-slot.ok .qs-head em { color: var(--ok-ink); }
.qs-body { margin-top: 8px; display: flex; align-items: center; justify-content: center; min-height: 84px; }
.qs-body img { max-width: 100%; max-height: 150px; border-radius: 8px; display: block; }
.qs-ic { font-size: 22px; color: var(--slate-400); font-weight: 300; }

.qual-shots { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.qual-shot { margin: 0; width: calc(50% - 4px); }
.qual-shot img {
  width: 100%; height: 110px; object-fit: cover;
  border-radius: 8px; border: 1px solid var(--line, #e5e7eb); display: block; cursor: zoom-in;
}
.qual-shot figcaption { font-size: 11px; color: var(--slate-500); margin-top: 4px; line-height: 1.3; }

.card.warn-card { background: var(--warn-weak); border: 1px solid var(--warn-line); }
.card.warn-card b { color: var(--warn-ink); font-size: 14px; }
.card.warn-card p { margin: 6px 0 0; font-size: 14px; color: #7c2d12; line-height: 1.6; }

.banner.qual {
  width: calc(100% - 28px); text-align: left; cursor: pointer;
  background: var(--warn-weak); color: var(--warn-ink); border: 1px solid var(--warn-line);
  align-items: center; gap: 10px;
}
.banner.qual .q-ic {
  flex: 0 0 auto; width: 20px; height: 20px; border-radius: 8px;
  background: var(--warn); color: #fff; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.banner.qual .q-tx { flex: 1 1 auto; min-width: 0; }
.banner.qual .q-tx b { font-weight: 600; }
.banner.qual .q-go { flex: 0 0 auto; font-weight: 700; color: var(--warn-ink); font-size: 12.5px; }

/* 合同卡上的「资质 · 已通过」小标签 + 资质大图浮层 */
.ct-qual {
  border: 1px solid #bbf7d0; background: #f0fdf4; color: var(--ok-ink);
  font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 4px;
  cursor: pointer; white-space: nowrap;
}
.cf-quals .qual-shot { width: calc(50% - 4px); }
.cf-quals .qual-shot img { height: auto; max-height: 60vh; object-fit: contain; cursor: zoom-in; }

/* ================= 展商手册 ================= */
/* 手册页：按城市分组。参展商只看到「下载」，规划图 / 客服部多出改 / 上下架 / 删。 */
.mn-head { margin-bottom: 12px; }
.mn-head b { font-size: 15px; }
.mn-head .sub { margin: 6px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.7; }
.mn-city { margin-bottom: 12px; }
.mn-city-h {
  display: flex; align-items: baseline; gap: 8px;
  padding: 0 4px 6px;
}
.mn-city-h b { font-size: 14px; font-weight: 650; }
.mn-city-h em { font-style: normal; font-size: 11px; color: var(--muted); }
.mn-row {
  display: flex; align-items: flex-start; gap: 10px; flex-wrap: wrap;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 11px 12px; margin-bottom: 8px;
}
.mn-row.off { background: #fafafb; border-style: dashed; }
.mn-row.off .mn-main b { color: var(--muted); }
.mn-ic {
  flex: 0 0 auto; min-width: 40px; height: 40px; padding: 0 6px; border-radius: 8px;
  background: var(--primary-weak); color: var(--primary-dark); font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.mn-row.off .mn-ic { background: var(--wash-100); color: var(--muted); }
.mn-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mn-main b { font-size: 14px; line-height: 1.45; word-break: break-word; }
.mn-main em { font-style: normal; font-size: 11px; color: var(--slate-500); }
.mn-main i { font-style: normal; font-size: 11px; color: var(--muted); }
.mn-main p { margin: 3px 0 0; font-size: 11px; color: var(--warn-ink); background: var(--warn-weak); border-radius: 8px; padding: 3px 7px; }
/* 操作按钮与审批页一致：一律用标准 .btn.small，不再单独压小 */
.mn-act { flex: 0 0 auto; display: flex; flex-direction: row; align-items: center; gap: 8px; }
.mn-more { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.mn-more .btn.danger { color: var(--danger-ink); border-color: var(--danger-line); }
/* 手机窄屏：右边的「改 / 下架 / 删」放不下，整组挪到下一行右对齐，
   别像之前那样把「删」挤出卡片外面 */
@media (max-width: 480px) {
  .mn-act { width: 100%; flex-direction: row; align-items: center; justify-content: flex-end; margin-top: 2px; }
  .mn-act > .btn { flex: 0 0 auto; }
  .mn-main { flex: 1 1 140px; }
}
/* 上传框 */
.mn-pick {
  border: 1px dashed #c7d2fe; background: #f8faff; border-radius: 8px;
  padding: 12px; cursor: pointer;
}
.mn-pick-h { display: flex; flex-direction: column; gap: 3px; }
.mn-pick-h b { font-size: 14px; color: var(--primary-dark); word-break: break-all; }
.mn-pick-h em { font-style: normal; font-size: 11px; color: var(--muted); }

/* ================= 角色 == 客服部 的角标配色 ================= */
.pill.service { background: #ecfeff; color: #0e7490; }
.who.r-service { border-color: #a5f3fc; }

/* ================= 线上合同 / 合同模板 ================= */
.ct-bar-l { display: flex; align-items: center; gap: 8px; min-width: 0; }
.co-chips { display: flex; gap: 6px; }
.ct-tip2 { font-size: 12.5px; color: var(--muted); }
.co-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 11px 12px; margin-bottom: 8px; cursor: pointer;
}
.co-card.tpl { cursor: default; }
.co-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.co-code {
  font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; font-weight: 700; color: #111827; letter-spacing: .2px;
}
.co-city { font-size: 11px; color: var(--slate-700); background: var(--wash-100); border-radius: 4px; padding: 1px 7px; }
.co-price { margin-left: auto; font-size: 12.5px; color: var(--ok-ink); font-weight: 600; }
.co-mid { margin-top: 5px; display: flex; flex-direction: column; gap: 2px; }
.co-mid b { font-size: 14px; }
.co-mid em { font-style: normal; font-size: 12.5px; color: var(--muted); }
.co-kv { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 6px; font-size: 12.5px; color: var(--slate-700); }
.co-kv b { #111827; }
.co-note {
  margin-top: 7px; font-size: 12.5px; color: var(--warn-ink); background: var(--warn-weak);
  border-radius: 8px; padding: 5px 9px; line-height: 1.6;
}
.co-act { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.co-act .btn { height: 30px; font-size: 12.5px; padding: 0 10px; }
.co-act .btn.danger { color: var(--danger-ink); border-color: var(--danger-line); }
.co-hint { margin: 4px 0 10px; display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; }
.co-hint > div { display: flex; justify-content: space-between; gap: 10px; color: var(--slate-700); }
.co-hint > div b { #111827; }
.co-hint .warn { color: var(--warn-ink); background: var(--warn-weak); border-radius: 8px; padding: 6px 9px; justify-content: flex-start; }
.co-hint .ok { color: var(--ok-ink); background: var(--ok-weak); border-radius: 8px; padding: 6px 9px; justify-content: flex-start; }
.co-link { margin: 10px 0 4px; }
.co-shots { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.co-shots figure { margin: 0; width: calc(50% - 4px); }
.co-shots img { width: 100%; border: 1px solid var(--line); border-radius: 8px; display: block; cursor: zoom-in; }
.co-shots figcaption { font-size: 11px; color: var(--muted); text-align: center; margin-top: 3px; }
.ct-clause { font-size: 12.5px; line-height: 1.8; margin: 0 0 6px; color: var(--slate-900); }
.row3 { display: flex; gap: 8px; }
.row3 > .field { flex: 1; min-width: 0; }
.co-wait {
  display: inline-flex; align-items: center; height: 30px; padding: 0 10px;
  font-size: 12.5px; color: var(--warn-ink); background: var(--warn-weak); border-radius: 8px;
}

/* 合同页：分段条下面那一行操作 / 台账页的模板提示卡 */
.ct-bar.sub { padding: 2px 0 6px; }
.tpl-cta {
  display: flex; flex-direction: column; gap: 2px; width: 100%;
  margin: 10px 0 4px; padding: 11px 13px; text-align: left;
  background: var(--primary-weak); border: 1px solid var(--primary-line); border-radius: 12px; cursor: pointer;
}
.tpl-cta b { font-size: 14px; color: var(--primary-dark); }
.tpl-cta em { font-style: normal; font-size: 12.5px; color: var(--primary); }

/* ===== 线上合同：付款方式与收款进度 ===== */
.plan-box { margin: 0 0 12px; }
.plan-box b em.tiny { font-style: normal; font-weight: 400; color: var(--muted); font-size: 11px; }
.plan-list { display: flex; flex-direction: column; gap: 6px; margin: 8px 0 6px; }
.plan-row { display: flex; gap: 6px; align-items: center; }
.plan-amt { position: relative; flex: 0 0 104px; display: block; }
.plan-amt .unit {
  position: absolute; left: 9px; top: 50%; transform: translateY(-50%);
  font-size: 12.5px; color: var(--muted); font-style: normal; pointer-events: none;
}
.plan-amt .pl-amt { width: 100%; height: 34px; padding-left: 22px; }
.plan-row .pl-due { flex: 0 0 130px; height: 34px; padding: 0 8px; }
.plan-row .pl-note { flex: 1; min-width: 0; height: 34px; }
.plan-del {
  flex: 0 0 26px; width: 26px; height: 26px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--card); color: #9ca3af; font-size: 15px; line-height: 1; cursor: pointer;
}
.plan-del:active { color: var(--danger-ink); border-color: var(--danger-line); }
#plan-sum { font-size: 12.5px; color: var(--slate-900); margin: 2px 0 4px; }
.plan-diff { color: var(--warn-ink); }
.plan-ok { color: var(--ok-ink); }
.co-pay { margin-top: 6px; }
.pay-tag {
  display: inline-flex; align-items: center; font-size: 11px; font-weight: 600;
  border-radius: 8px; padding: 2px 8px;
}
.pay-tag.none { background: var(--wash-100); color: var(--slate-500); }
.pay-tag.wait { background: var(--primary-weak); color: var(--primary-dark); }
.pay-tag.od { background: var(--danger-weak); color: var(--danger-ink); }
.pay-tag.done { background: var(--ok-weak); color: var(--ok-ink); }
.pay-list { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.pay-row {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 6px 8px; border-radius: 8px; background: var(--wash-50); font-size: 12.5px;
}
.pay-row.paid { background: var(--ok-weak); }
.pay-row.od { background: var(--danger-weak); }
.pay-no { font-weight: 600; color: var(--slate-900); }
.pay-due { color: var(--slate-700); }
.pay-amt { margin-left: auto; font-weight: 700; color: #111827; }
.pay-st { color: var(--slate-500); }
.pay-row .btn { height: 26px; font-size: 11px; padding: 0 8px; }
/* 小号说明文字（付款方式块里用） */
.tiny { font-size: 11px; color: var(--muted); line-height: 1.7; margin: 4px 0; }
.co-signok {
  font-size: 11px; color: var(--ok-ink); background: var(--ok-weak); border-radius: 4px; padding: 1px 6px;
  border: 1px solid #bbf7d0;
}
.co-sign { margin-top: 10px; text-align: center; }
.co-sign img {
  display: block; margin: 0 auto; max-height: 90px; max-width: 220px;
  object-fit: contain; border-bottom: 1px solid var(--line);
}
.co-sign em { display: block; margin-top: 3px; font-style: normal; font-size: 11px; color: var(--muted); }

/* 预留弹层：从已有合同选 */
.co-pick-hint {
  margin: -4px 0 12px; padding: 9px 11px; border-radius: 8px;
  background: var(--primary-weak); border: 1px solid var(--primary-line); font-size: 12.5px;
}
.co-pick-hint .cph-row { display: flex; align-items: center; gap: 8px; }
.co-pick-hint .cph-row b { font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; }
.co-pick-hint .cph-kv { color: var(--slate-700); margin: 4px 0 6px; }

/* 参展商：待确认展位 */
.ev-confirm { border-color: var(--warn-line); background: var(--warn-weak); }
.ev-confirm .tiny { color: var(--warn-ink); }
.evc-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 8px 0; border-top: 1px dashed var(--warn-line);
}
.evc-row:first-of-type { border-top: 0; }
.evc-main { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.evc-main b { font-size: 14px; }
.evc-main em { font-style: normal; font-size: 11px; color: var(--slate-500); }
.evc-main i { font-style: normal; font-size: 11px; color: var(--warn-ink); font-weight: 600; }

/* ---------- 版本与更新记录（头像弹层） ---------- */
.ver-link {
  border: 0; background: none; padding: 0; cursor: pointer;
  font: inherit; font-size: 14px; color: var(--primary);
  display: inline-flex; align-items: center; gap: 4px;
}
.ver-link:hover { text-decoration: underline; }
.ver-link span { color: var(--muted); }
.ver-note { font-size: 12.5px; color: var(--muted); line-height: 1.7; margin: 0 0 12px; }
.ver-list-head {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 12.5px; color: var(--muted); margin: 6px 0 8px;
  padding-top: 10px; border-top: 1px solid var(--line, rgba(0,0,0,.08));
}
.ver-list { list-style: none; margin: 0; padding: 0; max-height: min(38vh, calc(88vh - 300px)); overflow-y: auto; }
.ver-item { padding: 10px 0; border-bottom: 1px dashed var(--line, rgba(0,0,0,.08)); }
.ver-item:last-child { border-bottom: 0; }
.ver-item.cur .ver-head b { color: var(--primary); }
.ver-head { display: flex; align-items: baseline; gap: 8px; }
.ver-head b { font-size: 14px; font-variant-numeric: tabular-nums; }
.ver-head em { margin-left: auto; font-style: normal; font-size: 11px; color: var(--muted); }
.ver-tag {
  font-size: 11px; line-height: 1; padding: 3px 6px; border-radius: 999px;
  background: var(--primary-tint); color: var(--primary);
}
.ver-title { font-size: 12.5px; margin: 4px 0 4px; color: var(--text, #222); }
.ver-notes { margin: 0; padding-left: 16px; }
.ver-notes li { font-size: 12.5px; line-height: 1.75; color: var(--muted); }
@media (max-width: 679px) {
  .ver-list { max-height: min(30vh, calc(88vh - 280px)); }
}

/* ---------- 签单 ---------- */
.deal-wrap { padding: 14px 14px calc(20px + var(--safe-b)); }
.deal-hero {
  background: var(--primary-grad); color: #fff; border-radius: 16px; padding: 14px 16px; box-shadow: 0 8px 20px var(--primary-grad-shadow);
}
.dh-head { display: flex; align-items: baseline; justify-content: space-between; font-size: 12.5px; opacity: .92; }
.dh-head b { font-size: 17px; font-weight: 700; opacity: 1; }
.dh-nums { display: flex; gap: 8px; margin-top: 10px; }
.dh-nums > div { flex: 1; }
.dh-nums em { display: block; font-style: normal; font-size: 11px; opacity: .82; margin-bottom: 2px; }
.dh-nums b { font-size: 15px; font-weight: 700; letter-spacing: .2px; }
.dh-nums b.dh-hi { #ffe6a8; }
.dh-note { font-size: 11px; opacity: .82; margin: 10px 0 0; line-height: 1.6; }

.deal-chart { background: var(--card); border-radius: 14px; padding: 10px 10px 4px; margin-top: 10px; border: 1px solid var(--line, rgba(0,0,0,.07)); }
.dc-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 12.5px; color: var(--muted); padding: 2px 4px 6px; }
.dc-head em { font-style: normal; font-size: 11px; }
.dc-head i { display: inline-block; width: 9px; height: 9px; border-radius: 4px; margin: 0 3px 0 8px; vertical-align: -1px; }
.dc-head i.lg-bar { background: var(--primary); }
.dc-head i.lg-line { background: var(--warn); border-radius: 999px; height: 3px; }
.deal-svg { width: 100%; height: auto; display: block; }

.deal-acts { display: flex; gap: 10px; margin-top: 12px; }
.deal-acts .btn { flex: 1; }

.deal-list-head { display: flex; justify-content: space-between; align-items: baseline; margin: 18px 4px 8px; font-size: 14px; font-weight: 700; }
.deal-list-head em { font-style: normal; font-size: 11px; color: var(--muted); font-weight: 400; }
.deal-list { list-style: none; margin: 0; padding: 0; }
.deal-item { background: var(--card); border: 1px solid var(--line, rgba(0,0,0,.07)); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; }
.di-main { display: flex; align-items: center; gap: 8px; }
.di-main b { font-size: 14px; }
.di-cust { font-size: 12.5px; color: #333; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.di-tag { font-size: 11px; line-height: 1; padding: 3px 6px; border-radius: 999px; background: #fff3e0; color: var(--warn-ink); }
.di-sub { font-size: 11px; color: var(--muted); margin-top: 4px; line-height: 1.7; }
.di-comm { #e0932f; }
.di-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
.di-foot em { font-style: normal; font-size: 11px; color: #9aa0aa; }
.di-btn { border: 1px solid var(--line, rgba(0,0,0,.1)); background: var(--card); border-radius: 999px; padding: 4px 10px; font-size: 11px; color: #4b5160; }

/* 我的页卡片 */
.mine-deal { margin: 10px 12px 0; background: var(--card); border: 1px solid var(--line, rgba(0,0,0,.07)); border-radius: 14px; padding: 12px 14px 10px; }
.md-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; font-weight: 700; }
.md-more { border: 0; background: none; color: var(--primary); font-size: 12.5px; padding: 0; }
.md-nums { display: flex; gap: 10px; margin-top: 10px; }
.md-nums > div { flex: 1; }
.md-nums em { display: block; font-style: normal; font-size: 11px; color: var(--muted); }
.md-nums b { font-size: 15px; }
.md-nums b.dh-hi { color: var(--warn); }
.md-chart { margin: 6px -4px 0; }
.md-chart .deal-svg { height: auto; }
.md-list { list-style: none; margin: 6px 0 0; padding: 0; }
.md-list li { display: flex; gap: 8px; align-items: baseline; font-size: 12.5px; padding: 5px 0; border-top: 1px dashed rgba(0,0,0,.06); }
.md-list li b { min-width: 58px; }
.md-list li span { flex: 1; color: #444; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.md-list li em { font-style: normal; color: var(--warn); }

/* 提成规则弹层 */
.rule-grid { display: flex; gap: 10px; }
.rule-grid .field { flex: 1; }
.tier-box { margin: 4px 0 8px; }
.tier-box { max-width: 560px; }
.tier-row { display: grid; grid-template-columns: 1fr 12px 1fr 42px 58px 14px 24px; align-items: center; gap: 6px; margin-bottom: 6px; }
.tier-row .input { padding: 7px 8px; font-size: 12.5px; min-width: 0; width: 100%; box-sizing: border-box; }
.tier-row .t-pct { text-align: center; }
.t-sep { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; }
.t-del { border: 0; background: var(--wash-100); color: #8a90a0; width: 24px; height: 24px; border-radius: 50%; font-size: 15px; line-height: 1; flex: 0 0 auto; }
.warn-line { background: var(--warn-weak); border-left: 3px solid var(--warn); color: var(--warn-ink); font-size: 12.5px; padding: 8px 10px; border-radius: 8px; margin: 0 0 10px; line-height: 1.6; }
/* 图表空态 */
.deal-empty {
  display: flex; align-items: center; gap: 8px; justify-content: center;
  padding: 26px 12px; color: #9aa0aa; font-size: 11px; line-height: 1.6; text-align: left;
}
.deal-empty span { max-width: 220px; }
@media (max-width: 420px) {
  .dh-nums b { font-size: 14px; }
  .deal-svg { height: auto; }
  .tier-row { grid-template-columns: 1fr 10px 1fr 34px 48px 12px 22px; gap: 4px; }
  .tier-row .input { padding: 6px 6px; font-size: 12.5px; }
}

/* ================================================================
   日历 / 付款凭证 / 客户汇总（20261122_13）
   ================================================================ */
.cal-wrap { padding: 12px 16px calc(16px + var(--safe-b)); }

/* ---------- 月份切换 ---------- */
.cal-head { display: flex; align-items: center; gap: 6px; padding: 2px 2px 10px; }
.cal-nav {
  width: 30px; height: 30px; border-radius: 8px; flex: 0 0 auto;
  border: 1px solid var(--line); background: var(--card); color: var(--text);
  font-size: 17px; line-height: 1; display: flex; align-items: center; justify-content: center;
}
.cal-nav:active { background: var(--primary-weak); }
/* 月份不再撑满整行：以前 flex:1 会把「›」推到最右，离标题很远，
   看着像"右箭头跑偏了"。现在月份自适应宽度，箭头紧跟其后，
   右侧「今天 / 筛选」靠 margin-left:auto 顶到右边。 */
.cal-month { font-size: 15px; flex: 0 0 auto; margin-right: 2px; font-variant-numeric: tabular-nums; }
.cal-head-r { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.cal-filter {
  border: 1px solid var(--line); background: var(--card); color: var(--muted);
  font-size: 12.5px; height: 28px; padding: 0 10px; border-radius: 999px; max-width: 92px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cal-filter.on { border-color: var(--primary); background: var(--primary-weak); color: var(--primary-deep); font-weight: 600; }

/* 筛选弹层 */
.cal-fl { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.cal-fl-item {
  display: flex; align-items: center; justify-content: space-between;
  border: 1px solid var(--line); background: var(--card); border-radius: 8px;
  padding: 10px 12px; font-size: 14px; color: var(--text);
}
.cal-fl-item b { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.cal-fl-item.on { border-color: var(--primary); background: var(--primary-weak); color: var(--primary-deep); font-weight: 700; }
.cal-fl-item.on b { color: var(--primary-deep); }
.cal-today {
  border: 1px solid var(--line); background: var(--card); color: var(--muted);
  font-size: 12.5px; height: 28px; padding: 0 10px; border-radius: 999px;
}
.cal-today.on { border-color: var(--primary-line); background: var(--primary-weak); color: var(--primary-deep); }

/* ---------- 概览 ---------- */
.cal-sum {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--muted); padding: 0 2px 10px;
}
.cal-sum b { color: var(--text); font-size: 14px; font-variant-numeric: tabular-nums; }
.cal-od b { color: var(--danger); }
.cal-ok { color: var(--ok); }
.cal-proof-btn {
  margin-left: auto; border: 1px solid var(--primary-line); background: var(--primary-weak);
  color: var(--primary-deep); font-size: 12.5px; height: 28px; padding: 0 10px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 4px;
}
.cal-proof-btn em { font-style: normal; font-weight: 700; }
#cal-badge, .badge { font-size: 11px; }

/* ---------- 月历 ---------- */
.cal-week {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px;
  font-size: 11px; color: var(--muted); text-align: center; padding: 0 0 6px;
}
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-cell {
  position: relative; height: 46px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--card);
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  padding: 4px 2px 4px; color: var(--text); font-size: 12.5px; line-height: 1;
}
.cal-cell.blank { border: 0; background: transparent; }
.cal-cell b { font-weight: 600; font-variant-numeric: tabular-nums; }
.cal-cell.has { border-color: var(--primary-line); background: var(--primary-weak); }
.cal-cell.past { border-color: rgba(220, 38, 38, .28); }
.cal-cell.today b {
  background: var(--primary); color: #fff; border-radius: 999px;
  width: 20px; height: 20px; display: flex; align-items: center; justify-content: center;
  margin-top: -2px;
}
.cal-cell.on { box-shadow: 0 0 0 2px var(--primary); border-color: var(--primary); }
.cal-dots { display: flex; align-items: center; gap: 2px; margin-top: 4px; height: 5px; }
.cal-dots s {
  width: 4px; height: 4px; border-radius: 50%; display: block; text-decoration: none;
  background: var(--muted);
}
.cal-dots s.warn { background: var(--warn); }
.cal-dots s.danger { background: var(--danger); }
.cal-dots s.info { background: var(--primary); }
/* 展会排期 / 自建事项：紫色，和待办的红黄蓝区分开 */
.cal-dots s.event { background: #7c3aed; }
/* 内部公开事项 / 同行展会：青绿，和个人事项的紫色分开 */
.cal-dots s.ind { background: #0d9488; }
.cal-dots u { font-size: 9px; text-decoration: none; color: var(--muted); line-height: 1; }

/* ---------- 当天清单 ---------- */
.cal-day-head {
  display: flex; align-items: baseline; gap: 8px;
  padding: 16px 2px 8px; border-top: 1px solid var(--line); margin-top: 14px;
}
.cal-day-head b { font-size: 14px; }
.cal-day-head em { font-style: normal; font-size: 12.5px; color: var(--muted); margin-left: auto; }
.cal-list { list-style: none; margin: 0; padding: 0; }
.cal-item {
  display: flex; align-items: center; gap: 10px;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 10px 12px; margin-bottom: 8px; cursor: pointer;
}
.cal-item:active { background: var(--primary-weak); }
.ci-ic {
  width: 28px; height: 28px; border-radius: 8px; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700;
  background: var(--primary-weak); color: var(--primary-deep);
}
.cal-item.t-warn .ci-ic { background: var(--warn-weak); color: var(--warn-ink); }
.cal-item.t-danger .ci-ic { background: var(--danger-weak); color: var(--danger-ink); }
.cal-item.t-info .ci-ic { background: var(--primary-weak); color: var(--primary-deep); }
html[data-theme="dark"] .cal-item.t-warn .ci-ic { background: #2a2113; color: #f1c06a; }
html[data-theme="dark"] .cal-item.t-danger .ci-ic { background: #2b1a18; color: #f2a99f; }
.ci-main { flex: 1; min-width: 0; }
.ci-main b { display: block; font-size: 14px; font-weight: 600; }
.ci-main em {
  display: block; font-style: normal; font-size: 11px; color: var(--muted);
  margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ci-go { #b9c0cc; font-size: 17px; flex: 0 0 auto; }
.cal-empty { padding: 26px 12px; text-align: center; color: var(--muted); font-size: 12.5px; line-height: 1.7; }
.cal-foot { display: flex; gap: 10px; padding: 12px 0 0; }
.cal-foot .btn { flex: 1; }
.cal-sheet-note {
  font-size: 12.5px; line-height: 1.75; color: var(--muted);
  background: var(--primary-weak); border-radius: 8px; padding: 10px 12px; margin: 10px 0 14px;
}

/* ---------- 付款凭证 ---------- */
.pf-tabs { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 10px; }
.pf-tabs::-webkit-scrollbar { display: none; }
.pf-tabs button {
  flex: 0 0 auto; height: 30px; padding: 0 11px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card); color: var(--muted); font-size: 12.5px;
}
.pf-tabs button.on { background: var(--primary-weak); border-color: var(--primary-line); color: var(--primary-deep); font-weight: 600; }
.pf-list { list-style: none; margin: 0; padding: 0; }
.pf-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}
.pf-thumb {
  width: 46px; height: 46px; border-radius: 8px; flex: 0 0 auto; overflow: hidden;
  background: var(--primary-weak); border: 1px solid var(--line);
}
.pf-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pf-main { flex: 1; min-width: 0; }
.pf-top { display: flex; align-items: baseline; gap: 8px; }
.pf-top b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-amt { margin-left: auto; font-size: 14px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.pf-sub { font-size: 11px; color: var(--muted); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-foot { display: flex; align-items: center; gap: 8px; margin-top: 5px; }
.pf-foot em { font-style: normal; font-size: 11px; color: #9aa0aa; }
.pf-tag { font-size: 11px; line-height: 1.5; padding: 1px 6px; border-radius: 999px; }
.pf-tag.sales { background: var(--primary-weak); color: var(--primary-deep); }
.pf-tag.fin { background: var(--warn-weak); color: var(--warn-ink); }
.pf-tag.ok { background: var(--ok-weak); color: var(--ok-ink); }
.pf-tag.bad { background: var(--danger-weak); color: var(--danger-ink); }
html[data-theme="dark"] .pf-tag.fin { background: #2a2113; color: #f1c06a; }
html[data-theme="dark"] .pf-tag.ok { background: #12261f; color: #6ee7b7; }
html[data-theme="dark"] .pf-tag.bad { background: #2b1a18; color: #f2a99f; }

.pf-big {
  border-radius: 12px; overflow: hidden; margin: 4px 0 12px;
  background: var(--wash-100); border: 1px solid var(--line);
  min-height: 120px; display: flex; align-items: center; justify-content: center;
  font-size: 12.5px; color: var(--muted); text-align: center; padding: 10px;
}
.pf-big img { width: 100%; max-height: 46vh; object-fit: contain; display: block; }
.pf-up {
  border: 1px dashed var(--primary-line); background: var(--primary-weak);
  border-radius: 12px; padding: 16px; text-align: center; cursor: pointer; margin: 8px 0 12px;
}
.pf-up b { display: block; font-size: 14px; color: var(--primary-deep); }
.pf-up em { display: block; font-style: normal; font-size: 11px; color: var(--muted); margin-top: 4px; }
.pf-up.ok { border-style: solid; border-color: var(--ok); background: var(--ok-weak); }
html[data-theme="dark"] .pf-up.ok { background: #12261f; }

.pf-flow { display: flex; gap: 8px; margin: 14px 0 4px; }
.pf-step { flex: 1; background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
.pf-step b { display: block; font-size: 11px; color: var(--muted); font-weight: 500; }
.pf-step em { display: block; font-style: normal; font-size: 11px; margin-top: 3px; color: var(--text); line-height: 1.5; }
.pf-step.done { border-color: var(--primary-line); background: var(--primary-weak); }
.pf-step.done b { color: var(--primary-deep); }
.pf-step.wait { border-style: dashed; }

/* ---------- 参展商「我的付款」 ---------- */
.mine-pay { margin-top: 10px; }
.mp-head { display: flex; align-items: center; padding: 0 2px 8px; }
.mp-head b { font-size: 14px; }
.mp-up {
  margin-left: auto; border: 0; background: var(--primary); color: #fff;
  height: 30px; padding: 0 12px; border-radius: 999px; font-size: 12.5px;
}
.mp-item { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; margin-bottom: 8px; }
.mp-top { display: flex; align-items: baseline; gap: 8px; }
.mp-top b { font-size: 14px; }
.mp-top span { font-size: 11px; color: var(--muted); }
.mp-st { margin-left: auto; font-style: normal; font-size: 11px; color: var(--muted); }
.mp-st.part { color: var(--warn); }
.mp-st.ok { color: var(--ok); }
.mp-pend { font-size: 11px; color: var(--primary-deep); margin-top: 5px; }
.mp-bad { font-size: 11px; color: var(--danger); margin-top: 5px; }
.mp-acts { display: flex; gap: 8px; margin-top: 9px; }
.mp-acts .btn { flex: 1; }

/* ---------- 客户汇总 ---------- */
.sum-q { margin: 2px 0 10px; }
.sum-list { display: flex; flex-direction: column; gap: 9px; }
.sum-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 11px 12px; cursor: pointer;
}
.sum-card:active { background: var(--primary-weak); }
.sum-card header { display: flex; align-items: baseline; gap: 8px; }
.sum-card header b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sum-card header em { font-style: normal; font-size: 11px; color: var(--muted); margin-left: auto; flex: 0 0 auto; }
.sum-nums { display: flex; gap: 10px; margin-top: 9px; flex-wrap: wrap; }
.sum-nums > div { min-width: 68px; }
.sum-nums em { display: block; font-style: normal; font-size: 11px; color: var(--muted); }
.sum-nums b { font-size: 14px; font-variant-numeric: tabular-nums; }
.sum-nums b.ok { color: var(--ok); }
.sum-nums b.warn { color: var(--danger); }
.sum-nums b.info { color: var(--primary-deep); }
.sum-prog {
  position: relative; height: 5px; border-radius: 999px; background: var(--line);
  margin: 9px 0 7px; overflow: hidden;
}
.sum-prog i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--ok); border-radius: 999px; }
.sum-prog s { position: absolute; right: 0; top: -15px; font-size: 11px; color: var(--muted); text-decoration: none; }
.sum-card footer { font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 客户明细（弹层内） */
.cs-group { margin-bottom: 14px; }
.cs-ym { font-size: 12.5px; color: var(--muted); padding: 2px 0 6px; font-variant-numeric: tabular-nums; }
.cs-line { border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; margin-bottom: 6px; background: var(--card); }
.cs-top { display: flex; align-items: baseline; gap: 8px; }
.cs-top b { font-size: 14px; }
.cs-amt { margin-left: auto; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.cs-sub { font-size: 11px; color: var(--muted); margin-top: 4px; }
.cs-foot { display: flex; align-items: center; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.cs-foot em { font-style: normal; font-size: 11px; color: #9aa0aa; }
.cs-tag { font-size: 11px; padding: 1px 6px; border-radius: 999px; background: var(--wash-100); color: var(--slate-700); }
.cs-tag.part { background: var(--warn-weak); color: var(--warn-ink); }
.cs-tag.ok { background: var(--ok-weak); color: var(--ok-ink); }
html[data-theme="dark"] .cs-tag { background: #1c232e; color: var(--muted); }
html[data-theme="dark"] .cs-tag.part { background: #2a2113; color: #f1c06a; }
html[data-theme="dark"] .cs-tag.ok { background: #12261f; color: #6ee7b7; }

.sum-embed { padding: 0 12px; }
@media (max-width: 420px) {
  .cal-cell { height: 44px; font-size: 11px; }
  .cal-cell.today b { width: 18px; height: 18px; }
  .sum-nums > div { min-width: 60px; }
  .pf-flow { flex-direction: column; }
  .pf-step { display: flex; align-items: baseline; gap: 8px; }
  .pf-step em { margin-top: 0; }
}

/* ============ 手机通知提醒条（全局，所有标签可见） ============
   只在「没开通知」时出现；开启后或点了「稍后」就消失，
   24 小时后如果仍然没开，会再出现一次。 */
#push-bar:empty { display: none; }
.push-bar {
  display: flex; align-items: center; gap: 10px;
  margin: 8px 14px 0; padding: 9px 12px;
  background: var(--warn-weak); border: 1px solid var(--warn-line); border-radius: 12px;
  color: var(--warn-ink);
}
.push-txt { flex: 1; min-width: 0; }
.push-txt b { display: block; font-size: 14px; font-weight: 700; color: #c2410c; line-height: 1.35; }
.push-txt span { display: block; font-size: 11px; color: var(--warn-ink); line-height: 1.35; margin-top: 2px; }
.push-acts { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.push-btn {
  border: 0; border-radius: 999px; height: 30px; padding: 0 13px;
  background: var(--primary); color: #fff; font-size: 12.5px; font-weight: 700;
  white-space: nowrap;
}
.push-btn.ghost {
  background: transparent; color: var(--warn-ink); font-weight: 500;
  box-shadow: inset 0 0 0 1px #fed7aa;
}
@media (max-width: 380px) {
  .push-bar { flex-wrap: wrap; }
  .push-acts { width: 100%; justify-content: flex-end; }
}

/* ============ 手机通知提醒条（全局，所有标签可见） ============
   只在「没开通知」时出现；开启后或点了「稍后」就消失，
   24 小时后如果仍然没开，会再出现一次。 */
#push-bar:empty { display: none; }
.push-bar {
  display: flex; align-items: center; gap: 10px;
  margin: 8px 14px 0; padding: 9px 12px;
  background: var(--warn-weak); border: 1px solid var(--warn-line); border-radius: 12px;
  color: var(--warn-ink);
}
.push-txt { flex: 1; min-width: 0; }
.push-txt b { display: block; font-size: 14px; font-weight: 700; color: #c2410c; line-height: 1.35; }
.push-txt span { display: block; font-size: 11px; color: var(--warn-ink); line-height: 1.35; margin-top: 2px; }
.push-acts { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.push-btn {
  border: 0; border-radius: 999px; height: 30px; padding: 0 13px;
  background: var(--primary); color: #fff; font-size: 12.5px; font-weight: 700;
  white-space: nowrap;
}
.push-btn.ghost {
  background: transparent; color: var(--warn-ink); font-weight: 500;
  box-shadow: inset 0 0 0 1px #fed7aa;
}
@media (max-width: 380px) {
  .push-bar { flex-wrap: wrap; }
  .push-acts { width: 100%; justify-content: flex-end; }
}
.push-bar.err { background: var(--danger-weak); border-color: var(--danger-line); }
.push-bar.err .push-txt b { color: var(--danger-ink); }
.push-bar.err .push-txt span { #991b1b; }
.push-diag { display: block; margin-top: 3px; font-size: 11px; color: var(--warn-ink); opacity: .8; font-style: normal; }

/* ============ 一单多城市：展位明细表 ============ */
.ci-wrap { margin: 4px 0 2px; }
.ci-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 8px; }
.ci-head, .ci-row {
  display: grid;
  grid-template-columns: 116px 82px 84px 84px 132px 96px 32px;
  align-items: center; gap: 6px; min-width: 626px; padding: 6px 8px;
}
.ci-head { background: #f3f5f9; color: var(--muted); font-size: 11px; font-weight: 600; border-bottom: 1px solid var(--line); }
.ci-head span { text-align: center; }
.ci-rows { background: var(--card); }
.ci-row { border-bottom: 1px solid #f1f3f7; }
.ci-row:last-child { border-bottom: 0; }
.ci-row select, .ci-row input {
  width: 100%; height: 32px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--card); font-size: 12.5px; color: var(--ink); padding: 0 6px; box-sizing: border-box;
}
.ci-q { display: block; }
/* 单位要跟输入框的中线对齐：包一层和输入框等高的容器，绝对定位在它里面，
   这样手机上即使上面多了「数量」标签，单位也不会往下掉 */
.ci-qw { position: relative; display: block; }
.ci-q input { padding-right: 22px; text-align: center; }
.ci-q i {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font-style: normal; font-size: 11px; color: var(--muted); pointer-events: none;
}
.ci-a { font-size: 11px; color: var(--muted); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ci-del {
  width: 24px; height: 24px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--card); color: #b0b8c4; font-size: 15px; line-height: 1; padding: 0;
}
.ci-del:active { color: var(--danger); border-color: var(--danger); }
.ci-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.ci-sum { font-size: 12.5px; color: var(--muted); }
.ci-sum b { color: var(--ink); }
.ct-items { display: flex; flex-direction: column; gap: 6px; margin: 2px 0 6px; }
.ct-item-row {
  display: grid; grid-template-columns: 76px 54px 1fr auto 84px; gap: 6px; align-items: center;
  background: var(--bg); border-radius: 8px; padding: 7px 9px; font-size: 12.5px; color: var(--muted);
}
.ct-item-row b { color: var(--ink); font-size: 12.5px; }
.ct-item-row em { font-style: normal; color: var(--ink); font-weight: 600; }
.ct-item-row i { font-style: normal; text-align: right; }
.co-item-card { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin-bottom: 10px; background: var(--card); }
.co-item-hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.co-item-hd b { font-size: 14px; }
.co-url { margin-bottom: 8px; font-size: 11px; }

/* 手机端明细卡：① 参展城市 + 展位号 ② 展位类型 / 单价 / 数量 ③ 金额 */
@media (max-width: 560px) {
  .ci-scroll { border: 0; overflow: visible; }
  .ci-head { display: none; }
  .ci-row {
    grid-template-columns: repeat(8, minmax(0, 1fr));
    grid-template-areas:
      "city city city city codes codes codes del"
      "type type price price qty qty qty add"
      "amount amount amount amount amount amount amount amount";
    row-gap: 10px; column-gap: 8px; min-width: 0; padding: 10px;
    border: 1px solid var(--line); border-radius: 8px; margin-bottom: 8px;
  }
  .ci-rows { background: transparent; }
  /* select 的固有宽度会把列撑爆，必须允许收缩 */
  .ci-row > * { min-width: 0; }
  .ci-row select, .ci-row input { min-width: 0; }
  .ci-c { grid-area: city; }
  .ci-n { grid-area: codes; }
  .ci-t { grid-area: type; }
  .ci-p { grid-area: price; }
  .ci-q { grid-area: qty; }
  .ci-a { grid-area: amount; align-self: center; text-align: left; }
  /* 每张卡都要有完整边框：桌面表格的「最后一行去底边」不能带过来 */
  .ci-row:last-child { border-bottom: 1px solid var(--line); }
  /* 删除键 24px，输入框 32px，两者都贴单元格底边；各让一半高度差，圆心才平齐（实测差 2px） */
  .ci-del { grid-area: del; justify-self: end; align-self: end; margin-bottom: 4px; }
  /* 旧结构残留：给 .ci-add 指派的具名区域在新结构里不存在，会让它掉到第二行 */
  /* 同城市的多条明细连成一张卡 */
  /* 连成一张卡：靠「上一行不要下边距」而不是负边距，否则会盖住上一行的金额 */
  .ci-row.has-next { margin-bottom: 0; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
  .ci-row.cont { border-top: 0; border-top-left-radius: 0; border-top-right-radius: 0; }
  .ci-row.cont .ci-c::before { content: ''; display: none; }
  .ci-city.same { color: var(--muted); font-size: 12.5px; }
  .ci-c::before, .ci-t::before, .ci-q::before, .ci-p::before, .ci-n::before {
    display: block; font-size: 11px; color: var(--muted); margin-bottom: 3px;
  }
  .ci-c::before { content: '参展城市'; }
  .ci-t::before { content: '展位类型'; }
  .ci-q::before { content: '数量'; }
  .ci-p::before { content: '单价'; }
  .ci-n::before { content: '展位号'; }
  .ci-a::before { content: '金额 '; color: var(--muted); }
}


/* 表单里的分组块（甲方信息这种）：白底细线，不加阴影，跟卡片一致但更轻 */
.card-flat { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px 4px; margin: 4px 0 12px; background: #fcfdfe; }
.card-flat .sec-title { margin: 0 0 4px; font-size: 12.5px; font-weight: 600; color: var(--ink); }

/* 明细表里的「城市 / 类型」改成自绘下拉按钮，避免安卓原生白底单选框 */
.ci-sel {
  width: 100%; height: 32px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--card); font-size: 12.5px; color: var(--ink); padding: 0 22px 0 8px;
  text-align: left; position: relative; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; font-family: inherit;
}
.ci-sel::after {
  content: ''; position: absolute; right: 7px; top: 50%; width: 6px; height: 6px;
  border-right: 1.4px solid var(--muted); border-bottom: 1.4px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
}
.ci-sel:active { background: var(--bg); }

/* 选择面板：不显示右侧圆点版（用文字高亮 + 加粗表示选中） */
.pick-list.no-dot .pk-dot { display: none; }
.pick-list.no-dot .pick-row { padding: 12px 2px; }
.pick-list.no-dot .pick-row.on { background: #fdf3ef; border-radius: 8px; padding-left: 10px; padding-right: 10px; }
.pick-list.no-dot .pick-row.on .pk-main { color: var(--primary-dark); font-weight: 600; }

/* 付款计划一行四件套：手机上金额/日期/删除一行，备注独占第二行，
   否则「备注」会被挤成一条看不清的小方框 */
@media (max-width: 560px) {
  .plan-row {
    display: grid; grid-template-columns: 1fr 1fr 34px;
    grid-template-areas: "amt due del" "note note note";
    gap: 6px 8px; align-items: center;
  }
  .plan-row .plan-amt { grid-area: amt; flex: none; width: 100%; }
  .plan-row .pl-due { grid-area: due; flex: none; width: 100%; }
  .plan-row .pl-note { grid-area: note; flex: none; width: 100%; }
  .plan-row .plan-del { grid-area: del; flex: none; width: 34px; height: 34px; justify-self: end; }
}

/* 合计那行字比「新增一场」按钮宽，手机上会顶出屏幕：让它独占一行 */
@media (max-width: 560px) {
  .ci-foot { flex-direction: column; align-items: flex-start; gap: 8px; }
  .ci-sum { flex: 1 1 100%; line-height: 1.6; width: 100%; }
}

/* 「其他」类型的备注行：横跨整行，跟在明细后面 */
.ci-rownote { grid-column: 1 / -1; display: block; margin-top: 2px; }
.ci-rownote span { display: block; font-size: 11px; color: var(--muted); margin-bottom: 3px; }
.ci-rownote span em { font-style: normal; color: var(--primary); }
.ci-rownote input {
  width: 100%; height: 32px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--card); font-size: 12.5px; color: var(--ink); padding: 0 8px; box-sizing: border-box;
}
.ct-item-row { grid-template-rows: auto auto; }
.ct-item-note { grid-column: 1 / -1; font-size: 11px; color: var(--muted); }

/* 行内「＋」：这个城市再加一个展位（手机上才显示，桌面用下面的「新增一场」） */
.ci-add {
  display: none; width: 24px; height: 24px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--card); color: #9ca3af; font-size: 15px; line-height: 1; padding: 0; align-self: end;
}
.ci-add:active { color: var(--primary); border-color: var(--primary); }
@media (max-width: 560px) {
  .ci-add { display: block; justify-self: end; }
}

/* ============ 城市卡（新版明细：一城一卡，卡内多条展位） ============ */
.ci-cards { display: flex; flex-direction: column; gap: 10px; }
.ci-card { border: 1px solid var(--line); border-radius: 8px; background: var(--card); padding: 10px 10px 8px; }
.ci-hd { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.ci-hd .ci-city { flex: 1; height: 32px; }
.ci-card-del {
  flex: 0 0 24px; width: 24px; height: 24px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--card); color: #9ca3af; font-size: 15px; line-height: 1; padding: 0;
}
.ci-card-del:active { color: var(--danger-ink); border-color: var(--danger-line); }

.ci-blk {
  display: grid; grid-template-columns: 1.5fr 1fr 0.95fr 1.35fr 24px;
  gap: 6px; align-items: end; padding: 6px 0;
}
.ci-blk + .ci-blk { border-top: 1px dashed var(--line); }
.ci-f { min-width: 0; overflow: hidden; }
.ci-f input, .ci-f .ci-sel { min-width: 0; }
.ci-f::before { display: block; font-size: 11px; color: var(--muted); margin-bottom: 3px; }
.ci-ft::before { content: '展位类型'; }
.ci-fp::before { content: '单价'; }
.ci-fq::before { content: '数量'; }
.ci-fn::before { content: '展位号'; }
.ci-blk input, .ci-blk .ci-sel { width: 100%; height: 32px; box-sizing: border-box; }
.ci-blk .ci-sel { padding: 0 20px 0 8px; }

.ci-add {
  display: block; width: 24px; height: 24px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--card); color: #9ca3af; font-size: 15px; line-height: 1; padding: 0;
  align-self: end; margin-bottom: 4px;
}
.ci-add:active { color: var(--primary); border-color: var(--primary); }

.ci-card-sum {
  margin-top: 6px; padding-top: 8px; border-top: 1px solid #f1f3f7;
  font-size: 12.5px; color: var(--muted);
}
.ci-card-sum b { color: var(--ink); font-size: 14px; font-weight: 600; }
.ci-note-row { grid-column: 1 / -1; margin-top: 6px; }
/* [hidden] 必须真的藏掉：class 上的 display:block 会盖过 UA 的 [hidden]{display:none}，
   否则「其他」的备注行会占掉一格，把＋挤到下一行、卡片里还留一块空白 */
.ci-note-row:not([hidden]) { display: block; }
.ci-note-row span { display: block; font-size: 11px; color: var(--muted); margin-bottom: 3px; }
.ci-note-row span em { font-style: normal; color: var(--primary); }
.ci-note-row input {
  width: 100%; height: 32px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--card); font-size: 12.5px; padding: 0 8px; box-sizing: border-box; color: var(--ink);
}

@media (max-width: 420px) {
  .ci-blk { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr) minmax(0, 0.85fr) minmax(0, 1.1fr) 22px; column-gap: 5px; }
  .ci-add, .ci-card-del { width: 22px; height: 22px; }
}

/* 数量输入框与单位的定位（新版结构用 .ci-qw 包裹） */
.ci-qw { position: relative; display: block; }
.ci-qw input { width: 100%; padding-right: 20px; text-align: center; }
.ci-qw i {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font-style: normal; font-size: 11px; color: var(--muted); pointer-events: none;
}
.ci-blk { grid-template-columns: 1.45fr 1fr 1.15fr 1.25fr 24px; }

/* 单价框要能完整显示 3200 这类四位数 */
/* 列宽一律 minmax(0,…)：fr 默认下限是 min-content，输入框的固有宽度会把列撑出卡片 */
.ci-blk { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.1fr) minmax(0, 0.95fr) minmax(0, 1.15fr) 24px; column-gap: 6px; }
.ci-blk input { font-size: 12.5px; padding: 0 6px; min-width: 0; width: 100%; }
.ci-qw input { padding-right: 18px; }
.ci-card-sum em { font-style: normal; font-size: 11px; color: var(--muted); margin-left: 4px; }

/* 明细行四个控件统一外观：跟应用里的 .input 同一套（细边、圆角、白底、13px） */
.ci-blk input,
.ci-blk .ci-sel {
  width: 100%; height: 34px; box-sizing: border-box;
  border: 1px solid var(--line); border-radius: 8px; background: var(--card);
  font-size: 14px; color: var(--ink); font-family: inherit; line-height: normal;
  outline: none; -webkit-appearance: none; appearance: none;
  transition: border-color .15s;
}
.ci-blk input { padding: 0 8px; }
.ci-blk .ci-sel { padding: 0 20px 0 8px; }
.ci-blk input:focus, .ci-blk .ci-sel:focus { border-color: var(--primary); }
.ci-blk .ci-qw input { text-align: center; padding-right: 18px; padding-left: 4px; }
.ci-blk input::placeholder { #b6bcc6; }
/* 数字框去掉浏览器自带的上下三
   角（会把 3200 挤歪） */
.ci-blk input[type=number]::-webkit-inner-spin-button,
.ci-blk input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.ci-blk input[type=number] { -moz-appearance: textfield; }
.ci-add { height: 24px; margin-bottom: 5px; }
.ci-hd .ci-city { height: 34px; font-size: 14px; border-radius: 8px; }

/* 数量：数字和单位放在同一个框里（原来是单位压在输入框边缘，看着像跑到框外） */
.ci-blk .ci-qw {
  display: flex; align-items: center; height: 34px; box-sizing: border-box;
  border: 1px solid var(--line); border-radius: 8px; background: var(--card); overflow: hidden;
}
.ci-blk .ci-qw input {
  flex: 1; min-width: 0; height: 100%; border: 0; border-radius: 0; background: transparent;
  text-align: center; padding: 0 2px 0 6px;
}
.ci-blk .ci-qw i {
  position: static; transform: none; padding: 0 7px 0 0;
  font-size: 11px; color: var(--muted); pointer-events: none;
}
.ci-blk .ci-qw:focus-within { border-color: var(--primary); }

/* 生成合同链接按钮：需要审价时带一行小字说明，按钮变两行 */
#co-ok { flex-direction: column; gap: 0; line-height: 1.2; height: auto; min-height: 44px; padding: 5px 10px; }
#co-ok .cta-main { font-size: 14px; }
#co-ok .cta-sub { display: block; font-style: normal; font-size: 11px; font-weight: 500; opacity: .8; margin-top: 1px; white-space: nowrap; }
#co-ok.ghost { background: transparent; color: var(--primary); }
#co-ok.ghost:active { background: var(--primary-weak, #fff4ef); }

/* 头像弹层底部的版本号：弱化到几乎不可见，但需要时能找到 */
.ver-foot {
  margin: 16px 0 0; text-align: center;
  font-size: 11px; line-height: 1.6; letter-spacing: .3px;
  color: var(--muted); opacity: .55; user-select: text;
}

/* ================= 页面顶部搜索条（与「动态」页同款） ================= */
.top-search { position: relative; margin: 0 0 10px; }
.top-search .input { padding-right: 34px; height: 34px; font-size: 14px; }
/* 带筛选按钮时右侧要留够位置，否则「筛选」会顶到输入框外面 */
.top-search.has-f .input { padding-right: 92px; }
/* 清除键现在住在右侧工具组里，不再自己绝对定位 */
.top-search .ts-tools .ts-x {
  position: static; right: auto; top: auto; transform: none;
  width: 22px; height: 22px; border-radius: 50%; border: 0;
  background: var(--wash-200); color: var(--slate-500); font-size: 11px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}

/* ================= 页面顶部工具条（对齐动态页 .hist-bar） =================
   标签 + 搜索框同一条，上滑时整体吸附在顶栏下方 */
:root { --topbar-h: 55px; }
.page-bar {
  position: sticky; top: var(--topbar-h, 55px); z-index: 20;
  padding: 10px 14px 8px; background: var(--bg);
  border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 8px;
}
/* 放进工具条内部的标签与搜索框不再自带外边距 */
.page-bar .seg-bar,
.page-bar .scope-tabs,
.page-bar .top-search { margin: 0; padding: 3px; }
/* 管理页标签容器：内部间距全部交给 .page-bar 和 .hist-seg，自己不再叠加，
   否则会比动态页多出 3px 内距 + 一条多余分隔线 */
/* 管理页标签容器：与动态页 .hist-bar 同规格（10/14/8 内距 + 1px 底线 + 页面底色） */
#screen-admin > .admin-tabs {
  padding: 10px 14px 8px; margin: 0;
  border-bottom: 1px solid var(--line); background: var(--bg);
  /* 标签一排、搜索框另一排，别被挤成一行 */
  display: flex; flex-direction: column; gap: 8px;
}
.page-bar .top-search { padding: 0; }
/* 数据页的范围切换在这里也要跟标签同宽同高 */
.page-bar .scope-tabs { display: flex; gap: 6px; background: var(--wash-200); border-radius: 8px; }

/* ================= 合同页悬浮操作按钮 ================= */
#ct-fab-wrap, #nt-fab-wrap, #evt-fab-wrap {
  position: fixed; right: 16px; bottom: calc(80px + var(--safe-b)); z-index: 45;
  display: flex; flex-direction: column; align-items: flex-end; gap: 12px;
}
.fab-menu { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.fab-menu button {
  border: 1px solid var(--line); border-radius: 22px; padding: 10px 18px;
  background: var(--card); color: var(--text);
  font-size: 14px; font-weight: 600; line-height: 1.2;
  box-shadow: var(--shadow);
}
.fab-menu button:active { background: var(--wash-200); }
.fab {
  width: 62px; height: 62px; border-radius: 50%; border: 0;
  /* 兜底色：万一某个主题的 --primary 取不到值（以前暖白主题就踩过自引用），
     按钮也不会变成透明——白字配透明底等于彻底看不见。 */
  background: var(--primary, #ff6b4a); color: #fff;
  font-size: 14px; font-weight: 700; letter-spacing: .5px;
  display: flex; align-items: center; justify-content: center; gap: 1px;
  box-shadow: 0 8px 22px var(--primary-grad-shadow, rgba(0, 0, 0, .22));
}
.fab i { font-style: normal; font-size: 15px; line-height: 1; }
.fab:active { transform: scale(.96); }

/* 工具条落在已有内边距的容器里时，反向抵消让它通栏铺满 */
.sec > .page-bar,
.deal-wrap > .page-bar { margin: -14px -14px 10px; }
/* 合同页底部留出悬浮按钮的位置，最后一条不会被盖住 */
#contract-body { padding-bottom: 96px; }

/* ============================================================
   列表卡片视觉统一 · 基准＝「合同 → 线上合同」的 .co-card
   （背景 var(--card)、描边 1px var(--line)、圆角 12、内距 11/12、间距 8）
   ============================================================ */
#mine-body .card,
#review-body .card,
#learn-body .card,
#admin-body .card,
#contract-body .card,
#deal-body .card,
#build-body .card,
#notice-body .card,
#sheet-body .card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 12px;
  margin-bottom: 8px;
  box-shadow: none;
}
/* 手册页：城市分组只是标题容器，卡片是里面的每一本（.mn-row 本来就是这套视觉） */
#manual-body .mn-city { background: none; border: 0; box-shadow: none; padding: 0; }
/* 成员 / 展商列表：外层容器不再当卡片，每条自己独立成卡 */
#admin-body .member-list {
  background: none;
  border: 0;
  box-shadow: none;
  overflow: visible;
}
#admin-body .member {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 12px;
  margin-bottom: 8px;
}
#admin-body .member:last-child { margin-bottom: 0; }
#admin-body .member:active { background: var(--wash-50); }

/* ================= 搜索框内的筛选 ================= */
/* 右侧工具组整体贴边：与输入框上下留白一致（34 高输入框 / 24 高按钮 → 上下各 5px） */
.ts-tools {
  position: absolute; right: 5px; top: 50%; transform: translateY(-50%);
  display: flex; align-items: center; gap: 4px;
}
.top-search.has-f .input { padding-right: 92px; }
.top-search:not(.has-f) .input { padding-right: 34px; }
.ts-fbtn {
  height: 24px; padding: 0 9px; border-radius: 8px; border: 0;
  background: var(--wash-200); color: var(--slate-500);
  font-size: 11px; font-weight: 600; line-height: 1;
  /* 固定高度 + line-height:1 时按钮文字会贴顶，用 flex 才能真居中 */
  display: inline-flex; align-items: center; justify-content: center;
}
.ts-fbtn.on { background: var(--primary-weak); color: var(--primary); }
.ts-chips {
  display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 0;
}
.ts-chips::-webkit-scrollbar { display: none; }
.ts-chips button {
  flex: 0 0 auto; height: 26px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card);
  font-size: 12.5px; color: var(--muted); font-weight: 600;
}
.ts-chips button.on {
  background: var(--primary-weak); border-color: var(--primary-line); color: var(--primary-deep);
}

/* 刷新按钮：夹在分享与缩放之间，样式与缩放键一致（白底 / 描边 / 32×32） */
.map-refresh {
  position: absolute; right: 10px; bottom: 124px;
  width: 32px; height: 32px; border-radius: 8px;
  background: rgba(255, 255, 255, .95); border: 1px solid var(--line);
  color: var(--muted); display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow);
}
.map-refresh svg { width: 16px; height: 16px; display: block; }
.map-refresh:active { background: var(--wash-100); }
.map-refresh.spinning svg { animation: map-spin .8s linear infinite; }
@keyframes map-spin { to { transform: rotate(360deg); } }
html[data-theme="dark"] .map-refresh { background: var(--card); }

/* 图例第二行（结构类型 / 设施）与第一行留一点呼吸，不要粘在一起 */
.map-foot.sub { padding-top: 7px; }

/* 城市卡片上的展会品牌切换（世宠 / 世爬） */
.ci-brand {
  flex: 0 0 auto; border: 0; border-radius: 8px; padding: 3px 8px;
  background: var(--wash-200); color: var(--slate-500);
  font-size: 11px; font-weight: 700; line-height: 1.4;
}
.ci-brand[data-v="reptile"] { background: rgba(22, 163, 74, .14); color: var(--ok-ink); }
.ci-hd { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

/* 公告页底部留出悬浮按钮的位置 */
#notice-body { padding-bottom: 96px; }

/* 搭建页「新建方案」：纯文字按钮，不要底色和描边 */
.bd-new {
  border: 0; background: none; padding: 2px 0; margin-left: auto;
  color: var(--primary); font-size: 12.5px; font-weight: 650; line-height: 1.6;
}
.bd-new:active { opacity: .55; }

/* 手册页「上传手册」：纯文字按钮 */
.mn-new {
  border: 0; background: none; padding: 2px 0; margin-left: auto;
  color: var(--primary); font-size: 12.5px; font-weight: 650; line-height: 1.6;
}
.mn-new:active { opacity: .55; }

/* 手册页的说明卡 / 租赁卡统一成合同页卡片：白底 + 1px 描边 + 圆角 12 + 内距 11/12 */
#manual-body .card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 12px;
  margin-bottom: 8px;
  box-shadow: none;
}

/* 备料汇总底部的导出按钮：整行，与数据页「导出 CSV」一致 */
.bd-export { margin: 10px 0 2px; }

/* 搭建页「驳回 / 确认方案」：与审核页一致，两个按钮平分整行 */
.sc-ops {
  margin-top: 10px; padding-top: 9px; border-top: 1px dashed var(--line);
  display: flex; align-items: center; gap: 8px;
}
.sc-ops .btn { flex: 1; }

/* 数据页「我的签单」单条：与合同卡统一（暖色主题原本把它单独放大到 16 圆角） */
#deal-body .deal-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 12px;
  margin-bottom: 8px;
  box-shadow: none;
}

/* 每日签单底部：导出 CSV / 导出文本 两个按钮平分 */
.daily-acts { display: flex; gap: 8px; margin-top: 10px; }
.daily-acts .btn { flex: 1; }

/* 物料行：品类是按钮（弹窗选），单位只读跟随品类 */
.bp-row .bp-type {
  text-align: left; font: inherit; font-size: 12.5px; padding: 0 8px;
  cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bp-row .bp-unit-txt {
  display: flex; align-items: center; justify-content: center;
  font-size: 12.5px; font-weight: 600; color: var(--muted);
  background: none; border: 0; padding: 0;
}

/* 「其他」物料行：一个长输入框描述 + 删除 */
.bp-row.other { grid-template-columns: 84px minmax(0, 1fr) 22px; }

/* 展具品类缩略图 */
.ritem { display: flex; gap: 10px; align-items: flex-start; }
.ritem-img {
  flex: 0 0 auto; width: 54px; height: 54px; border-radius: 8px; object-fit: cover;
  background: var(--wash-100, #f6f7f9); border: 1px solid var(--line);
}
.ritem-body { flex: 1; min-width: 0; }

/* 审核页顶部工具区：分页 + 搜索，与数据页一致的上滑吸附 */
.rv-bar {
  position: sticky; top: var(--topbar-h, 55px); z-index: 20;
  background: var(--bg); border-bottom: 1px solid var(--line);
  margin: -14px -14px 10px; padding: 10px 14px 4px;
}
.rv-bar .scope-tabs { margin: 0 0 10px; }
.rv-bar .top-search { margin: 0; }

/* 审批 → 选位图：目标展位闪一下，底部给返回按钮 */
.map-focus {
  outline: 3px solid var(--primary) !important;
  outline-offset: 2px;
  animation: mapFocusPulse 1.1s ease-in-out 3;
}
@keyframes mapFocusPulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--primary-glow); }
  50% { box-shadow: 0 0 0 10px transparent; }
}
.back-review {
  position: fixed; left: 50%; bottom: calc(84px + var(--safe-b, 0px)); transform: translateX(-50%);
  z-index: 46; height: 40px; padding: 0 20px; border: 0; border-radius: 20px;
  background: var(--primary); color: #fff; font-size: 14px; font-weight: 650;
  box-shadow: 0 6px 18px var(--primary-glow);
}
.back-review:active { opacity: .85; }

/* 审批卡展位号前的城市 + 品牌前缀 */
.rv-expo { font-style: normal; font-size: 12.5px; font-weight: 500; color: var(--muted); }

/* 审批原因：整行高亮，一眼看出为什么要批 */
.rv-reason {
  display: flex; align-items: flex-start; gap: 8px; flex-wrap: wrap;
  margin: 9px 0 2px; padding: 8px 10px; border-radius: 8px;
  background: var(--primary-tint);
  /* 左侧那条 3px 主色描边去掉了：和卡片边框叠在一起像「多出来一根线」，
     靠淡蓝底 + 主色文字已经够区分。 */
}
.rv-reason > span { flex: 0 0 auto; font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.rv-reason > b { flex: 1; min-width: 0; font-size: 14px; font-weight: 650; color: var(--primary); line-height: 1.6; }

/* 客户汇总卡：累计参加横向排开，装不下就横滑 */
.sum-nums.scroll {
  display: flex; flex-wrap: nowrap; gap: 18px; overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none; padding-bottom: 2px;
}
.sum-nums.scroll::-webkit-scrollbar { display: none; }
.sum-nums.scroll > div { flex: 0 0 auto; }
.sum-nums.scroll .city-line { white-space: nowrap; font-size: 14px; }
.sum-cities-line:empty { display: none; }

/* 保单额度数字 */
.q-strong { color: var(--red, #e5484d); font-weight: 700; }

/* APP 内浏览器浮层（天眼查查询） */
#web-modal {
  position: fixed; inset: 0; z-index: 120; display: flex; flex-direction: column;
  background: var(--bg);
}
.wm-bar {
  display: flex; align-items: center; gap: 10px; flex: 0 0 auto;
  padding: calc(8px + var(--safe-t, 0px)) 12px 8px; background: var(--card);
  border-bottom: 1px solid var(--line);
}
.wm-close {
  width: 32px; height: 32px; flex: 0 0 auto; border: 0; border-radius: 8px;
  background: var(--wash-100, #f2f4f7); color: var(--text); font-size: 15px;
}
.wm-title { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wm-out { flex: 0 0 auto; border: 0; background: none; color: var(--primary); font-size: 12.5px; font-weight: 650; padding: 6px 2px; }
.wm-body { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.wm-body iframe { flex: 1; width: 100%; border: 0; background: var(--card); }
.wm-tip { flex: 0 0 auto; margin: 0; padding: 8px 12px; font-size: 11px; color: var(--muted); background: var(--card); border-top: 1px solid var(--line); }

/* APP 内浏览器：渠道切换 */
.wm-tabs { flex: 1; display: flex; gap: 4px; background: var(--wash-200, #eef2f7); padding: 3px; border-radius: 8px; }
.wm-tab {
  flex: 1; height: 28px; border: 0; border-radius: 8px; background: transparent;
  font-size: 12.5px; font-weight: 600; color: var(--muted);
}
.wm-tab.on { background: var(--card); color: var(--primary); box-shadow: 0 1px 3px rgba(16,24,40,.08); }

/* 保单页标题：额度说明另起一行，右侧按钮与标题平齐 */
.bd-head-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bd-head-main .tiny { font-size: 11px; color: var(--muted); line-height: 1.5; }
/* 保单卡字段标签不换行（「两家关联公司」原来会被挤成两行） */
#mine-guard .kv > span { flex: 0 0 auto; white-space: nowrap; }
#mine-guard .kv > em { flex: 1; min-width: 0; }

/* 保单表单：公司名称一致性提示 */
.gd-tip {
  margin: 10px 0 4px; padding: 10px 12px; border-radius: 8px;
  background: rgba(255, 176, 32, .12);
  border-left: 3px solid var(--warn, #f5a623);
}
.gd-tip b { display: block; font-size: 14px; color: var(--warn-ink); margin-bottom: 3px; }
.gd-tip span { display: block; font-size: 12.5px; color: var(--warn-ink); line-height: 1.6; }
.gd-req { font-style: normal; color: #e5484d; font-weight: 600; }

/* 四个渠道标签在手机上要收得下 */
.wm-tab { font-size: 12.5px; padding: 0 2px; }

/* 保单页：标题两行紧挨，右侧按钮与首行齐平，空状态不占一屏 */
#mine-guard .bd-head { align-items: flex-start; padding: 2px 2px 8px; }
#mine-guard .bd-head-main { gap: 0; }
#mine-guard .bd-head-main .sub { line-height: 17px; }
#mine-guard .bd-head-main .tiny { margin: 1px 0 0; font-size: 11px; line-height: 15px; }
#mine-guard .bd-head .bd-new { line-height: 17px; align-self: flex-start; margin-top: -1px; }
#mine-guard .empty { padding: 14px 8px; }

/* 四个渠道标签更紧凑 */
.wm-tab { font-size: 11px; }

/* 公告页脚：已读按钮固定靠右，删除入口已取消 */
.nt-foot .nt-tail { margin-left: auto; display: flex; align-items: center; }
.nt-foot .nt-del { display: none; }

/* 客户统计：四列指标 + 城市明细 */
.sum-nums.grid4 {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px; margin-top: 9px; flex-wrap: unset;
}
.sum-nums.grid4 > div { min-width: 0; }
.sum-nums.grid4 em { font-size: 11px; white-space: nowrap; }
.sum-nums.grid4 b { font-size: 12.5px; word-break: break-all; }
.sum-cities {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3px 10px;
  margin-top: 9px; padding-top: 8px; border-top: 1px dashed var(--line);
}
.sum-cities span { font-size: 12.5px; color: var(--muted); line-height: 1.5; }

/* 公告横条的关闭按钮 */
.notice-strip .ns-close {
  flex: 0 0 auto; width: 24px; height: 24px; border: 0; border-radius: 8px;
  background: rgba(146, 64, 14, .08); color: var(--warn-ink);
  font-size: 12.5px; line-height: 1; display: flex; align-items: center; justify-content: center;
}
.notice-strip .ns-close:active { background: rgba(146, 64, 14, .18); }

/* 提成表月份按钮 + 站内月份选择 */
.cm-btn {
  height: 34px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--card); color: var(--text); font-size: 14px; font-weight: 600;
}
.mp-years { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 6px; }
.mp-y, .mp-m {
  border: 1px solid var(--line); background: var(--card); color: var(--text);
  border-radius: 8px; font-size: 14px; font-weight: 500;
}
.mp-y { height: 34px; padding: 0 14px; }
.mp-months { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 8px 0 14px; }
.mp-m { height: 40px; }
.mp-y.on, .mp-m.on {
  background: var(--primary-weak, #fff1ec); border-color: var(--primary);
  color: var(--primary); font-weight: 700;
}

/* 站内「下拉」按钮：长得像输入框，点开站内选择器 */
.pick-btn {
  display: flex; align-items: center; gap: 8px; width: 100%;
  height: 46px; padding: 0 12px; text-align: left;
  background: var(--card); border: 1px solid var(--line); border-radius: 8px;
}
.pick-btn .pb-text {
  flex: 1; min-width: 0; font-size: 14px; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pick-btn .pb-arrow { flex: 0 0 auto; color: var(--muted); font-size: 11px; }

/* ---------- 补充协议 ---------- */
.sup-item { border-top: 1px dashed var(--line); padding-top: 9px; margin-top: 9px; }
.sup-item:first-of-type { border-top: 0; padding-top: 0; margin-top: 6px; }
.sup-item-h { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.sup-item-h em { font-style: normal; font-size: 11px; color: var(--muted); }
.sup-item s { color: var(--muted); text-decoration: line-through; }
.sup-cities { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.sup-city, .sup-type {
  height: 30px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--card); font-size: 12.5px; color: var(--text);
}
.sup-city.on, .sup-type.on { background: var(--primary-weak); border-color: var(--primary); color: var(--primary); font-weight: 600; }
.sup-types { display: flex; gap: 6px; flex-wrap: wrap; }
.sup-lock { margin: 8px 0; padding: 9px 11px; border-radius: 8px; background: var(--wash-200); font-size: 12.5px; color: var(--muted); }
.sup-lock b { color: var(--text); }
.sup-link { margin: 10px 0; padding: 10px; border-radius: 8px; background: var(--wash-200); font-size: 12.5px; word-break: break-all; color: var(--primary); }
.sup-fin { display: flex; gap: 8px; margin-top: 7px; }

/* 补充协议：城市替换行 */
.sup-rows { display: flex; flex-direction: column; gap: 6px; margin-top: 2px; }
.sup-row {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--card);
}
.sup-from { flex: 0 0 68px; font-size: 14px; font-weight: 600; color: var(--text); }
.sup-to {
  flex: 1; min-width: 0; height: 30px; border-radius: 8px; border: 1px dashed var(--line);
  background: var(--wash-200); font-size: 12.5px; color: var(--primary); font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sup-del { flex: 0 0 26px; height: 26px; border: 0; border-radius: 8px; background: #fdecea; color: #c0392b; font-size: 12.5px; }

/* 合同详情：市场价 / 优惠价 / 省下的差价 */
.co-save { font-style: normal; color: var(--ok); font-size: 11px; margin-left: 6px; }

/* 合同表单：标展单/双开口切换 */
.ci-ft { display: flex; flex-direction: column; gap: 3px; }
.ci-open { font-size: 11px !important; padding: 2px 6px !important; min-height: 20px !important; }

/* 动态页：客户保护期面板 */
.bind-panel { margin: 0 14px 12px; padding: 12px 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.bind-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
.bind-head b { font-size: 14px; }
.bind-head em { font-style: normal; font-size: 11px; color: var(--muted); }
.bind-row { padding: 8px 0; border-top: 1px dashed var(--line); }
.bind-row:first-of-type { border-top: 0; }
.bind-main { display: flex; align-items: center; gap: 6px; }
.bind-main b { font-size: 14px; }
.bind-meta { display: flex; justify-content: space-between; gap: 8px; margin-top: 3px; font-size: 12.5px; color: var(--muted); }
.bind-meta em { font-style: normal; }
.bind-tip { margin: 8px 0 0; font-size: 11px; color: var(--muted); line-height: 1.5; }

/* 管理页：关联公司维护 */
.gr-block { border-top: 1px dashed var(--line); padding-top: 9px; margin-top: 9px; }
.gr-block:first-of-type { border-top: 0; padding-top: 0; margin-top: 4px; }
.gr-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 4px; }
.gr-head b { font-size: 14px; }
.gr-head em { font-style: normal; font-size: 11px; color: var(--muted); }
.gr-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 5px 0; font-size: 14px; }

/* 管理页：标签下方的搜索条与动态页同规格 */
#admin-search { width: 100%; }
#admin-search .top-search { width: 100%; }
/* 管理页的筛选按钮被外层样式清掉了底色，这里补回来，与合同页一致 */
#admin-search .ts-fbtn { background: var(--wash-200); color: var(--slate-500); }
#admin-search .ts-fbtn.on { background: var(--primary-weak); color: var(--primary); }
#admin-search[hidden] { display: none !important; }

/* 付款明细：合同应付 / 已付 / 还差 + 多期记录 */
.pay-sum { display: flex; gap: 8px; margin: 4px 0 10px; }
.pay-sum > div { flex: 1; padding: 8px 10px; border-radius: 8px; background: var(--wash-200); }
.pay-sum span { display: block; font-size: 11px; color: var(--muted); }
.pay-sum b { font-size: 14px; }
.pay-sum b.ok { color: var(--ok); }
.pay-sum b.warn { color: var(--primary); }
.pay-rec { border: 1px solid var(--line); border-radius: 8px; padding: 10px 11px; margin-bottom: 8px; background: var(--card); }
.pr-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.pr-head b { font-size: 12.5px; color: var(--muted); }
.pr-del { width: 24px; height: 24px; border-radius: 8px; border: 0; background: #fdecea; color: #c0392b; font-size: 11px; }
.pay-rec .field { margin-bottom: 8px; }
.pay-rec .field:last-child { margin-bottom: 0; }

/* 每期凭证：紧凑上传框 */
.upload-box.small { padding: 8px 10px; min-height: 0; }
.upload-box.small b { font-size: 12.5px; }

/* ---------- 弹窗内控件统一规格 ----------
   弹窗里的输入框比主表单矮一档，日期/下拉还有原生样式，容易参差不齐。
   统一高度、圆角、字号，并压掉原生外观。 */
.sheet .input { height: 40px; font-size: 14px; border-radius: 8px; }
.sheet textarea.input { height: auto; padding: 10px 12px; }
.sheet select.input {
  padding-right: 30px;
  background-position: calc(100% - 16px) 17px, calc(100% - 11px) 17px;
  background-size: 5px 5px, 5px 5px;
}
.sheet input[type="date"],
.sheet input[type="datetime-local"] {
  -webkit-appearance: none; appearance: none;
  line-height: 1.2; min-height: 40px;
}
.sheet input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: .4; filter: grayscale(1); cursor: pointer;
}
/* 每期付款卡片里的控件再紧凑一点 */
.pay-rec .field > span { font-size: 11px; }
.pay-rec .input { height: 38px; font-size: 14px; }
.pay-rec select.input { background-position: calc(100% - 15px) 16px, calc(100% - 10px) 16px; }
.pay-rec input[type="date"] { min-height: 38px; }

/* 弹窗内的「按钮式选择器」：长得和输入框一样，点开走站内 pickSheet */
.sel-btn {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; text-align: left; color: var(--text); background: var(--card);
  padding: 0 12px; cursor: pointer;
}
.sel-btn i { font-style: normal; color: var(--muted); font-size: 11px; flex: 0 0 auto; }

/* 合同图片缩略图 */
.photo-strip { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.photo-thumb { position: relative; width: 62px; height: 62px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-thumb button {
  position: absolute; top: 2px; right: 2px; width: 17px; height: 17px; border: 0; border-radius: 50%;
  background: rgba(22,25,29,.65); color: #fff; font-size: 11px; line-height: 1; cursor: pointer;
}

/* 详情弹层：合同 / 付款两个并排按钮 */
.btn-row.tight { display: flex; gap: 8px; }
.btn-row.tight .btn { flex: 1; }

/* ---------- 客户卡片（按客户聚合，一城一块） ---------- */
.ccard { padding: 14px 14px 10px; }
.cc-name { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.cc-row { display: flex; gap: 10px; font-size: 12.5px; line-height: 1.9; }
.cc-row > span { flex: 0 0 54px; color: var(--muted); }
.cc-row > em { flex: 1; min-width: 0; font-style: normal; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-co-st { font-style: normal; color: var(--muted); font-size: 11px; margin-left: 4px; }
.cc-cities { margin-top: 9px; display: flex; flex-direction: column; gap: 8px; }
.cc-city {
  background: #f9f7f3; border-radius: 8px; padding: 9px 11px;
  display: grid; grid-template-columns: 62px 66px 1fr; gap: 2px 8px; align-items: start;
}
.cc-c-l b { font-size: 14px; display: block; }
.cc-c-l span { font-size: 11px; color: var(--muted); }
.cc-c-m { border-left: 2px solid var(--line); padding-left: 8px; }
.cc-c-m b { font-size: 14px; display: block; }
.cc-c-m span { font-size: 11px; color: var(--muted); }
.cc-c-r { display: flex; flex-direction: column; gap: 2px; font-size: 11px; color: var(--muted); }
.cc-steps { grid-column: 1 / -1; display: flex; gap: 18px; margin-top: 6px; }
.cc-steps > div { display: flex; flex-direction: column; gap: 1px; }
.cc-steps span { font-size: 11px; color: var(--muted); }
.cc-steps em { font-style: normal; font-size: 11px; }
.cc-steps em.off { color: var(--muted); opacity: .75; }
.cc-tip { margin: 9px 0 0; font-size: 11px; color: var(--muted); text-align: center; }

/* 客户名 + 展出类型同一行，类型不带底色 */
.cc-name .cc-cat { font-weight: 400; color: var(--muted); font-size: 14px; }

/* 客户卡片：城市块用极浅底 + 细描边，别抢标题的注意力 */
.cc-city { background: #f9f7f3; box-shadow: inset 0 0 0 1px rgba(0,0,0,.035); }
.cc-city .cc-c-m { border-left-color: rgba(0,0,0,.09); }

/* ---------- 客户卡片配色层级 ----------
   一层：客户名（最深）
   二层：城市/展位/金额（正文）
   三层：标签与次要信息（灰）
   状态色：已对接绿 / 待处理琥珀 / 未对接灰 / 未开放更淡 / 紧急红 */
:root {
  --ok-ink: #1f7a52;
  --wait-ink: #a8690f;
  --off-ink: #8d95a1;
  --none-ink: #c2c7ce;
  --urgent-ink: #cf3a26;
}

/* 城市块左侧状态竖条：已按用户要求去掉。
   原来靠这条 3px 彩色竖线表达「到哪一步了」，现在由块内的阶段文字
   （已成交 / 待总裁终审）和合同·付款两列承担，不需要再上色。
   JS 仍会输出 bar-* 类名，这里不再给任何描边样式。 */

/* 环节状态 */
.cc-steps em.on { color: var(--ok-ink); }
.cc-steps em.wait { color: var(--wait-ink); }
.cc-steps em.off { color: var(--off-ink); }
.cc-steps em.none { color: var(--none-ink); }

/* 倒计时 */
.cc-c-r span.urgent { color: var(--urgent-ink); font-weight: 600; }
.cc-c-r span.soon { color: var(--wait-ink); }

/* 城市名与展位号加一点分量，金额用主色 */
.cc-c-l b { color: var(--text); }
.cc-c-m b { color: var(--text); letter-spacing: .3px; }
.cc-c-m span { color: var(--primary); font-weight: 600; }

/* 合同状态也用颜色区分 */
.cc-co-st.pass { color: var(--ok-ink); }
.cc-co-st.wait { color: var(--wait-ink); }
.cc-c-r span.muted { color: var(--muted); }

/* 全屏子页（如企业资质）左上角关闭按钮 */
.view-close {
  position: fixed; top: 14px; left: 14px; z-index: 40;
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); background: var(--card); color: var(--slate-700);
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.view-close svg { width: 17px; height: 17px; }
.view-close:active { background: var(--wash-100); }

/* 资质页：说明文字别顶到屏幕边 */
#view-qual .brand { padding-left: 18px; padding-right: 18px; }
#view-qual .brand p { margin-left: auto; margin-right: auto; max-width: 330px; }

/* 展具租赁：城市切换 + 库存 */
.rent-city-bar { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 8px; }
.rent-city-bar::-webkit-scrollbar { display: none; }
.rent-city { flex: 0 0 auto; padding: 6px 13px; border-radius: 16px; border: 1px solid var(--line);
  background: var(--card); font-size: 12.5px; color: var(--slate-700); }
.rent-city.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.rent-stock { display: inline-block; font-style: normal; font-size: 11px; margin-top: 2px;
  padding: 1px 6px; border-radius: 4px; }
.rent-stock.ok { color: var(--ok-ink, #1f7a52); background: rgba(47,158,107,.1); }
.rent-stock.low { color: var(--wait-ink, #a8690f); background: rgba(224,160,42,.14); }
.rent-stock.out { color: var(--urgent-ink, #cf3a26); background: rgba(207,58,38,.1); }

/* 参展商「我的」页：展位类型图例 */
.legend-card { padding: 10px 14px; }
.lg-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; row-gap: 6px; }
.lg-row .lg { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: var(--slate-500); }
.lg-row .sw { width: 12px; height: 12px; border-radius: 4px; border: 1px solid transparent; display: inline-block; }
.lg-row .sw.wall { background: #1e293b; border-radius: 4px; height: 5px; width: 14px; }

/* ---------- 本场活动 ---------- */
.evt-head { display: flex; align-items: flex-end; justify-content: space-between; padding: 4px 2px 10px; }
.evt-head b { font-size: 17px; }
.evt-head .sub { font-size: 11px; color: var(--muted); margin-left: 8px; }
.evt-card { padding: 13px 14px; margin-bottom: 10px; }
.evt-top { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.evt-co { font-size: 11px; color: var(--muted); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.evt-del { margin-left: auto; border: 0; background: none; color: var(--muted); font-size: 11px; padding: 2px 4px; }
.evt-img { width: 100%; border-radius: 8px; margin-bottom: 9px; display: block; max-height: 190px; object-fit: cover; }
.evt-title { font-size: 14px; font-weight: 600; line-height: 1.45; }
.evt-meta { font-size: 11px; color: var(--wait-ink, #a8690f); margin-top: 4px; }
.evt-body { font-size: 12.5px; color: var(--slate-700); line-height: 1.6; margin: 6px 0 0; }

/* 本场活动：待审核态与驳回原因 */
.evt-card.evt-pending { border: 1px dashed var(--wait-ink, #a8690f); }
.evt-note { font-size: 11px; color: var(--urgent-ink, #cf3a26); margin: 6px 0 0; }

/* 积分抽奖 */
.lot-box { margin-top: 4px; }
.lot-card { padding: 13px 14px; margin-bottom: 10px; }
.lot-card .sc-ops { margin-top: 8px; display: flex; gap: 8px; align-items: center; }
.ls-row { display: grid; grid-template-columns: 1fr 62px 82px 28px; gap: 6px; margin-bottom: 6px; }
.ls-row .input { min-width: 0; }
.ls-x { border: 0; background: none; color: var(--muted); font-size: 14px; }
.ls-row .ls-price, .ls-row .ls-qty { text-align: right; }
.lot-sign { padding: 12px 14px; margin-bottom: 8px; }

/* 观众导览：活动选择条 */
/* 活动选择条：与类型筛选同款 .chip，只负责横向排列 */
.guide-bar { display: flex; gap: 8px; overflow-x: auto; padding: 8px 12px 4px; }
.guide-bar::-webkit-scrollbar { display: none; }
.guide-bar .chip { white-space: nowrap; }
.guide-bar .chip .chip-sub { font-style: normal; font-size: 11px; color: var(--muted); margin-left: 2px; }
.guide-bar .chip.active .chip-sub { color: var(--primary); opacity: .75; }

/* 活动对应展位高亮 */
.booth.guide-hl {
  box-shadow: 0 0 0 2px var(--primary), 0 0 14px var(--primary-glow) !important;
  z-index: 5;
  animation: guidePulse 1.6s ease-in-out infinite;
}
@keyframes guidePulse {
  0%, 100% { box-shadow: 0 0 0 2px var(--primary), 0 0 10px var(--primary-glow); }
  50% { box-shadow: 0 0 0 3px var(--primary), 0 0 20px var(--primary-glow); }
}

/* 观众「我的」：观展记录 */
.visit-row { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.visit-row:last-child { border-bottom: 0; }
.visit-d { flex: 0 0 62px; font-size: 12.5px; font-weight: 600; color: var(--slate-700); }
.visit-m { flex: 1; min-width: 0; }
.visit-m b { display: block; font-size: 14px; }
.visit-m span { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }

/* 图层树：区域作为馆内子分组，内含展位缩进 */
.lgrp-wrap .lgrp.zsub { background: rgba(245,158,11,.06); border-radius: 8px; margin: 4px 0 0; }
.lgrp.zsub .lgrp-name { font-size: 12.5px; }
.lgrp.zsub .lay-kind { width: 8px; height: 8px; border-radius: 4px; flex: 0 0 auto; margin-right: 4px; }
.lgrp-body.zsub-body { padding-left: 18px; }
.lgrp-body.zsub-body .lay { border-left: 2px solid rgba(245,158,11,.35); }

/* 买买抽大奖报名表 */
.ls-card { border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px 6px; margin-bottom: 10px; background: var(--card); }
.ls-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.ls-head b { font-size: 14px; }
.ls-x { border: 0; background: none; color: var(--urgent-ink, #cf3a26); font-size: 12.5px; padding: 2px 4px; }
.ls-f { display: block; margin-bottom: 8px; }
.ls-f > span { display: block; font-size: 11px; color: var(--muted); margin-bottom: 4px; }
.ls-f > span em { font-style: normal; color: var(--muted); opacity: .8; }
.ls-two { display: grid; grid-template-columns: 1fr 84px; gap: 8px; }
.ls-total { display: flex; align-items: center; justify-content: space-between; padding: 5px 0; }
.ls-total > span { margin: 0; }
.ls-total b { font-size: 14px; color: var(--text); }
.ls-imgs { display: flex; align-items: center; gap: 10px; }
.ls-prev { width: 54px; height: 54px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.ls-imgbtn { flex: 0 0 auto; padding: 7px 12px; border: 1px dashed var(--line); border-radius: 8px; font-size: 12.5px; color: var(--slate-700); cursor: pointer; }

/* 右上角个人入口：用茶壶标代替文字头像 */
#btn-me.avatar { background: var(--primary-soft); overflow: hidden; padding: 0; }
#btn-me.avatar > #me-name { display: none; }
#btn-me .av-img {
  width: 34px; height: 34px; max-width: 34px; flex: 0 0 34px; display: block; border-radius: 50%;
  background: var(--primary-deep);
  /* 铺满整个圆：mask 放大到 116%，茶壶顶到边，不留白 */
  -webkit-mask: url(../assets/teapot.png) center 40% / cover no-repeat;
  mask: url(../assets/teapot.png) center 40% / cover no-repeat;
}

/* 品牌图标统一圆角矩形 */
.brand-logo, .brand-mark img, .logo-img { border-radius: 22%; }

/* 用户自定义头像：填满圆形，去掉 mask 形状 */
#btn-me .av-img.has-photo { border-radius: 50%; }

/* 设置头像：纯文字，不带按钮外观 */
.av-set {
  display: inline-block; font-size: 12.5px; font-weight: 600;
  color: var(--primary); cursor: pointer; padding: 2px 0;
  text-decoration: underline; text-underline-offset: 3px;
  text-decoration-color: var(--primary-line);
}
.av-set:active { opacity: .65; }
/* 文件选择框不能 display:none / hidden —— 部分安卓 WebView 对隐藏的 input 不响应点击。
   改成透明覆盖在文字上，既看不见又能点。 */
.av-set { position: relative; overflow: hidden; }
.av-set input {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; cursor: pointer; font-size: 0;
}
.av-set input::-webkit-file-upload-button { cursor: pointer; }

/* 跟单卡片：城市块按设计稿对齐 */
.cc-ing { font-style: normal; font-size: 11px; font-weight: 500; color: var(--ok-ink, #17795e); margin-left: 2px; }
.cc-c-l b { display: inline-flex; align-items: baseline; }
.cc-c-r { text-align: right; }
.cc-c-r span { display: block; font-size: 11px; line-height: 1.5; white-space: nowrap; }

/* ========== 跟单卡片 1:1 还原（Figma node 9:1796）==========
   !important 是必要的：页面里还有一套暖色旧样式，特异性更高会压掉这些值 */
#mine-body .ccard {
  background: var(--card) !important; border: 1px solid var(--line) !important; border-radius: 12px !important;
  padding: 16px 16px 8px !important; margin-bottom: 10px !important; box-shadow: none !important;
}
#mine-body .ccard .cc-name { font-size: 17px !important; font-weight: 700 !important; color: var(--text) !important; margin-bottom: 6px !important; }
#mine-body .ccard .cc-name .cc-cat { font-size: 15px !important; font-weight: 400 !important; color: var(--muted) !important; }
#mine-body .ccard .cc-row { font-size: 14px !important; color: var(--muted) !important; line-height: 1.5 !important; margin-bottom: 10px !important; }
#mine-body .ccard .cc-row > span { flex: 0 0 auto !important; color: var(--muted) !important; }
#mine-body .ccard .cc-row > em { color: var(--text) !important; font-weight: 400 !important; }
#mine-body .ccard .cc-co-st { font-size: 14px !important; color: var(--primary) !important; background: none !important; padding: 0 !important; font-weight: 400 !important; border: 0 !important; }
#mine-body .ccard .cc-co-st.wait { #B26A00 !important; }
#mine-body .ccard .cc-co-st.no { #D93B3B !important; }

#mine-body .cc-city {
  background: var(--bg) !important; border: 1px solid var(--line) !important; border-radius: 16px !important;
  padding: 12px 14px 10px !important; margin-bottom: 8px !important;
  grid-template-columns: 82px 72px 1fr !important; gap: 2px 10px !important; box-shadow: none !important;
}
#mine-body .cc-city::before { display: none !important; }
.cc-city .cc-c-l b { font-size: 15px !important; font-weight: 700 !important; color: var(--text) !important;
  white-space: nowrap !important; overflow: visible !important; line-height: 1.35 !important; display: block !important; }
.cc-city .cc-c-l b .cc-ing { font-size: 15px !important; font-weight: 700 !important; color: var(--text) !important; margin: 0 !important; }
.cc-city .cc-c-l span { font-size: 12.5px !important; color: var(--slate-400) !important; margin-top: 2px !important; display: block !important; }
.cc-city .cc-c-m { border-left: 1px solid var(--line) !important; padding-left: 10px !important; }
.cc-city .cc-c-m b { font-size: 15px !important; font-weight: 700 !important; color: var(--text) !important; white-space: nowrap !important; }
.cc-city .cc-c-m span { font-size: 12.5px !important; color: var(--muted) !important; }
.cc-city .cc-c-r { text-align: right !important; }
.cc-city .cc-c-r span { display: block !important; font-size: 12.5px !important; color: var(--muted) !important; line-height: 1.6 !important; white-space: nowrap !important; }

.cc-city .cc-steps { grid-column: 1 / -1 !important; display: grid !important; grid-template-columns: repeat(5, 1fr) !important;
  gap: 0 !important; margin-top: 10px !important; padding-top: 10px !important; border-top: 1px solid var(--line) !important; }
.cc-city .cc-steps > div { text-align: left !important; }
.cc-city .cc-steps span { font-size: 12.5px !important; color: var(--slate-500) !important; margin-bottom: 3px !important; display: block !important; }
.cc-city .cc-steps em { font-size: 12.5px !important; color: var(--slate-400) !important; display: block !important; font-style: normal !important; }
.cc-city .cc-steps em.on { color: var(--primary) !important; }
.cc-city .cc-steps em.wait { #B26A00 !important; }
.cc-city .cc-steps em.off { color: var(--text) !important; }
.cc-city .cc-steps em.none { color: var(--slate-400) !important; }

#mine-body .ccard .cc-tip { font-size: 11px !important; color: var(--slate-400) !important; text-align: center !important; padding: 6px 0 8px !important; }

/* 跟单页：蓝色主题对齐设计稿（#356BF1），压掉暖橙选中态 */
#screen-mine .seg-bar button.active,
#screen-mine #mine-seg button.active {
  background: var(--card) !important; color: var(--primary) !important;
  border-color: var(--primary) !important; box-shadow: 0 0 0 1px #356BF1 inset !important;
}
#screen-mine .seg-bar button { color: var(--muted) !important; }
#screen-mine #mine-search .btn,
#screen-mine #mine-search button { color: var(--muted) !important; }

/* 进度行：五列之间竖线分隔 */
.cc-city .cc-steps > div + div { border-left: 1px solid var(--line); padding-left: 10px; }
.cc-city .cc-steps > div:first-child { padding-left: 0; }

/* 收尾微调：右侧两行不换行、分段边细、页面冷灰底 */
#screen-mine { background: var(--bg) !important; }
#mine-body .cc-city { grid-template-columns: 76px 64px 1fr !important; }
#mine-body .cc-city .cc-c-r span { font-size: 12.5px !important; letter-spacing: -.1px !important; }
#screen-mine #mine-seg button.active {
  box-shadow: none !important; border: 1px solid var(--primary) !important; background: var(--card) !important;
}
#screen-mine #mine-seg { background: var(--card) !important; border: 1px solid var(--line) !important; border-radius: 8px !important; padding: 3px !important; }

/* 右侧倒计时彻底不折行：再收窄前两列、字号再降一点 */
#mine-body .cc-city { grid-template-columns: 72px 60px minmax(0,1fr) !important; }
#mine-body .cc-city .cc-c-r span { font-size: 11px !important; letter-spacing: -.2px !important; white-space: nowrap !important; }
#mine-body .cc-city .cc-c-l b { font-size: 14px !important; }
#mine-body .cc-city .cc-c-m b { font-size: 14px !important; }

/* 城市块三列对齐：城市名靠左、展位号居中、金额居中、右侧倒计时靠右（设计稿） */
#mine-body .cc-city { grid-template-columns: 1fr 76px 1fr !important; }
#mine-body .cc-city .cc-c-l { text-align: left !important; }
#mine-body .cc-city .cc-c-m { text-align: center !important; border-left: 0 !important; padding-left: 0 !important; }
#mine-body .cc-city .cc-c-r { text-align: right !important; }
/* 右侧第一行（面积,剩余…确认）用主题蓝，第二行（付款）用深色 —— 设计稿如此 */
#mine-body .cc-city .cc-c-r span:first-child { color: var(--primary) !important; font-size: 12.5px !important; white-space: nowrap !important; }
#mine-body .cc-city .cc-c-r span:last-child { color: var(--text) !important; font-size: 12.5px !important; white-space: nowrap !important; }
#mine-body .cc-city .cc-c-r span.muted { color: var(--slate-400) !important; }
#mine-body .cc-city .cc-c-l b { font-size: 15px !important; }
#mine-body .cc-city .cc-c-l span { font-size: 12.5px !important; }
#mine-body .cc-city .cc-c-m b { font-size: 15px !important; }
#mine-body .cc-city .cc-c-m span { font-size: 12.5px !important; }

/* 分段控件对齐设计稿：每个按钮独立胶囊，容器不带底色和边框 */
#screen-mine .seg-bar#mine-seg,
#screen-mine #mine-seg {
  background: transparent !important; border: 0 !important; padding: 0 !important;
  gap: 8px !important; display: flex !important; overflow-x: auto !important;
}
#screen-mine #mine-seg::-webkit-scrollbar { display: none; }
#screen-mine #mine-seg button {
  flex: 0 0 auto !important; border: 1px solid transparent !important; border-radius: 8px !important;
  background: transparent !important; color: var(--muted) !important;
  font-size: 15px !important; font-weight: 400 !important;
  padding: 6px 12px !important;
}
#screen-mine #mine-seg button.active {
  background: var(--card) !important; border-color: var(--primary) !important;
  color: var(--primary) !important; font-weight: 600 !important;
  box-shadow: 0 1px 2px var(--primary-glow) !important;
}

/* 5 个分段在 393px 内放得下：缩字号与内边距 */
#screen-mine #mine-seg button {
  font-size: 12.5px !important; padding: 5px 9px !important; letter-spacing: -.2px !important;
}
#screen-mine #mine-seg { gap: 6px !important; }

/* 五个分段压进 393px：再收一点 */
#screen-mine #mine-seg button { font-size: 12.5px !important; padding: 4px 8px !important; }
#screen-mine #mine-seg { gap: 5px !important; }

/* ========== 跟单卡片：按 Figma 绝对坐标逐项对齐 ==========
   画布 393 宽，设计稿实测（相对画布左上）：
   卡片 (15,223) 363×340，卡片间距 10，卡片内左内边距 25、上 16
   城市块 (25,301) 343×122 → 相对卡片左 10，块间距 8
   块内：城市名 (23,17) / 日期 (23,41) / 展位号 (113,17) / 金额 (108,41)
        右侧两行 (170,20) 与 (170,41) / 分隔线 top 82 / 步骤标签 top 73、状态 top 96 */
#mine-body { padding: 0 0 12px !important; }
#mine-body .ccard {
  margin: 0 15px 10px !important; padding: 0 0 10px !important;
  border-radius: 12px !important; border: 1px solid var(--line) !important; background: var(--card) !important;
  overflow: hidden !important;
}
#mine-body .ccard .cc-name {
  margin: 0 !important; padding: 16px 25px 0 !important;
  font-size: 17px !important; font-weight: 700 !important; color: var(--text) !important;
  line-height: 23px !important;
}
#mine-body .ccard .cc-name .cc-cat { font-size: 15px !important; font-weight: 400 !important; color: var(--muted) !important; }
#mine-body .ccard .cc-row {
  margin: 0 !important; padding: 10px 25px 0 !important;
  font-size: 14px !important; color: var(--muted) !important; line-height: 19px !important;
  display: flex !important; gap: 11px !important;
}
#mine-body .ccard .cc-row > span { flex: 0 0 auto !important; color: var(--muted) !important; }
#mine-body .ccard .cc-row > em { color: var(--text) !important; font-weight: 400 !important; display: flex !important; gap: 6px !important; }

#mine-body .ccard .cc-cities { padding: 0 !important; margin: 0 !important; }
#mine-body .ccard .cc-city {
  margin: 10px 10px 8px !important; padding: 17px 20px 9px 23px !important;
  background: var(--bg) !important; border: 1px solid var(--line) !important; border-radius: 12px !important;
  display: grid !important;
  grid-template-columns: 90px 57px 1fr !important;
  grid-template-rows: auto auto auto auto !important;
  column-gap: 0 !important; row-gap: 0 !important;
  box-shadow: none !important; position: relative !important;
}
#mine-body .ccard .cc-city::before { display: none !important; }

/* 城市列：城市名 (0,0)、日期 (0,24) */
#mine-body .cc-city .cc-c-l { grid-column: 1; grid-row: 1; text-align: left !important; }
#mine-body .cc-city .cc-c-l b {
  font-size: 15px !important; font-weight: 700 !important; color: var(--text) !important;
  line-height: 20px !important; white-space: nowrap !important; display: block !important;
}
#mine-body .cc-city .cc-c-l b .cc-ing { font-size: 15px !important; color: var(--text) !important; font-weight: 700 !important; }
#mine-body .cc-city .cc-c-l span {
  font-size: 12.5px !important; color: var(--slate-400) !important; line-height: 17px !important;
  margin: 4px 0 0 !important; display: block !important;
}
/* 展位列：展位号 (113,17)、金额 (108,41) */
#mine-body .cc-city .cc-c-m { grid-column: 2; grid-row: 1; text-align: center !important; border: 0 !important; padding: 0 !important; }
#mine-body .cc-city .cc-c-m b { font-size: 15px !important; font-weight: 700 !important; color: var(--text) !important; line-height: 20px !important; }
#mine-body .cc-city .cc-c-m span { font-size: 12.5px !important; color: var(--text) !important; line-height: 17px !important; margin-top: 4px !important; display: block !important; }
/* 右侧：第一行 (170,20) 蓝色、第二行 (170,41) 深色 */
#mine-body .cc-city .cc-c-r { grid-column: 3; grid-row: 1; text-align: right !important; padding-left: 0 !important; }
#mine-body .cc-city .cc-c-r span { display: block !important; line-height: 17px !important; white-space: nowrap !important; }
#mine-body .cc-city .cc-c-r span:first-child { font-size: 12.5px !important; color: var(--primary) !important; margin-top: 3px !important; }
#mine-body .cc-city .cc-c-r span:last-child { font-size: 12.5px !important; color: var(--text) !important; margin-top: 4px !important; }
#mine-body .cc-city .cc-c-r span.muted { color: var(--slate-400) !important; }

/* 分隔线 top 82（相对块顶） */
#mine-body .cc-city .cc-steps {
  grid-column: 1 / -1 !important; grid-row: 2 !important;
  margin: 25px 0 0 !important; padding: 14px 0 0 !important;
  border-top: 1px solid var(--line) !important;
  display: grid !important; grid-template-columns: 57px 63px 62px 62px 1fr !important;
  gap: 0 !important;
}
#mine-body .cc-city .cc-steps > div { text-align: left !important; padding: 0 !important; border: 0 !important; }
#mine-body .cc-city .cc-steps span { font-size: 12.5px !important; color: var(--slate-500) !important; line-height: 17px !important; display: block !important; margin: 0 !important; }
#mine-body .cc-city .cc-steps em { font-size: 12.5px !important; line-height: 17px !important; display: block !important; margin: 6px 0 0 !important; font-style: normal !important; color: var(--slate-400) !important; }
#mine-body .cc-city .cc-steps em.on { color: var(--primary) !important; }
#mine-body .cc-city .cc-steps em.wait { #B26A00 !important; }
#mine-body .cc-city .cc-steps em.off { color: var(--text) !important; }
#mine-body .cc-city .cc-steps em.none { color: var(--slate-400) !important; }

#mine-body .ccard .cc-tip { font-size: 11px !important; color: var(--slate-400) !important; text-align: center !important; padding: 6px 0 4px !important; margin: 0 !important; }

/* 城市块高度压到 122（设计稿值）：收步骤行间距，左边距 9 对齐 25 */
#mine-body .ccard .cc-city {
  height: 122px !important; box-sizing: border-box !important;
  margin: 10px 10px 8px 9px !important;
}
#mine-body .cc-city .cc-steps {
  margin: 6px 0 0 !important; padding: 10px 0 0 !important;
}
#mine-body .cc-city .cc-steps em { margin: 4px 0 0 !important; }

/* 修正：城市列要装得下「重庆(进行中)」，高度改 min-height 避免裁掉分隔线 */
#mine-body .ccard .cc-city {
  height: auto !important; min-height: 122px !important;
  grid-template-columns: 104px 62px 1fr !important;
}
#mine-body .ccard .cc-city .cc-c-m { text-align: center !important; }
#mine-body .cc-city .cc-c-l b { font-size: 14px !important; letter-spacing: -.2px !important; }
#mine-body .cc-city .cc-c-l b .cc-ing { font-size: 14px !important; }
#mine-body .cc-city .cc-c-m b { font-size: 14px !important; }
#mine-body .cc-city .cc-steps { border-top: 1px solid var(--line) !important; }

/* 分隔线用伪元素画，避免被圆角/溢出裁掉 */
#mine-body .cc-city .cc-steps { position: relative !important; border-top: 0 !important; padding-top: 12px !important; margin-top: 8px !important; }
#mine-body .cc-city .cc-steps::before {
  content: ''; position: absolute; left: -23px; right: -20px; top: 0; height: 1px; background: #E0E3E6;
}

/* 补设计稿的城市/展位之间的竖分隔线 + 步骤列宽按实测 */
#mine-body .cc-city .cc-c-l { border-right: 1px solid var(--line) !important; padding-right: 14px !important; }
#mine-body .cc-city .cc-c-m { padding-left: 4px !important; }
#mine-body .cc-city .cc-steps { grid-template-columns: 57px 63px 62px 62px 1fr !important; }
#mine-body .cc-city .cc-c-r span:first-child { margin-top: 3px !important; }

/* 最后校准：列宽按视觉比例，让右侧起点落在设计稿的 170 附近 */
#mine-body .ccard .cc-city { grid-template-columns: 96px 60px 1fr !important; }
#mine-body .cc-city .cc-c-l b,
#mine-body .cc-city .cc-c-l b .cc-ing,
#mine-body .cc-city .cc-c-m b { font-size: 14px !important; letter-spacing: -.25px !important; }
#mine-body .cc-city .cc-steps { padding-left: 0 !important; }

/* 关键修正：「(进行中)」在设计稿里是小字浅灰，不是 15.1px 粗体黑。
   我之前按整段 TEXT 的 style 套了 15.1/700，宽度翻倍把布局挤乱了。
   实测：重庆(15.1/700) + (进行中)(约 9.5/400/#6C727E)，整段宽 57.5px。 */
#mine-body .cc-city .cc-c-l b {
  font-size: 15px !important; font-weight: 700 !important; color: var(--text) !important;
  letter-spacing: 0 !important; line-height: 20px !important;
}
#mine-body .cc-city .cc-c-l b .cc-ing {
  font-size: 9px !important; font-weight: 400 !important; color: var(--muted) !important;
  margin-left: 1px !important; letter-spacing: 0 !important;
}
/* 城市列宽度按实测 89.5，展位列从 89.5 起（对应设计稿 x=138.5-49=89.5） */
#mine-body .ccard .cc-city { grid-template-columns: 89px 80px 1fr !important; }

/* 列宽按设计稿相对坐标反推：
   城市名 (23,17) → 展位号 (89.5,17) → 右侧 (147,20)
   所以：padding-left 23，城市列 66.5，展位列 57.5 */
#mine-body .ccard .cc-city { grid-template-columns: 66.5px 57.5px 1fr !important; }
/* 「(进行中)」再收小，整段要压在 66.5px 内 */
#mine-body .cc-city .cc-c-l b { font-size: 14px !important; }
#mine-body .cc-city .cc-c-l b .cc-ing { font-size: 9px !important; font-weight: 400 !important; color: var(--muted) !important; }
/* 步骤行：第一列从 23 起，标签间距按实测 57/63/62/62 */
#mine-body .cc-city .cc-steps { grid-template-columns: 57px 63px 62px 62px 1fr !important; }
#mine-body .cc-city .cc-steps span { width: auto !important; }

/* 收紧 8px 高度差：日期上边距、步骤行上边距、展位列左偏移 */
#mine-body .cc-city .cc-c-l span { margin-top: 0 !important; }
#mine-body .cc-city .cc-c-m { padding-left: 0 !important; }
#mine-body .cc-city .cc-steps { margin-top: 0 !important; padding-top: 14px !important; }
#mine-body .cc-city .cc-c-r span:last-child { margin-top: 4px !important; }
#mine-body .ccard .cc-city { padding: 17px 20px 8px 23px !important; }

/* 右侧两行是左对齐（设计稿 32方 与 剩余13天付款 左边都落在 196） */
#mine-body .cc-city .cc-c-r { text-align: left !important; }
#mine-body .cc-city .cc-c-r span { text-align: left !important; }

/* ========== 20261126_084：城市块三列间距收敛 + 步骤列竖线 ==========
   083 之前「重庆(进行中)」紧贴展位号、金额与右侧倒计时也贴在一起，
   加到 393px 宽会看起来粘连。这里统一按设计稿的比例：城市列留 8 右侧间距并带竖线，
   展位列左对齐，右列从竖线后 9px 起排，行高 21 对齐设计稿的两行间距。 */
#mine-body .ccard .cc-city {
  grid-template-columns: 76px 62px minmax(0, 1fr) !important;
  column-gap: 0 !important;
}
#mine-body .cc-city .cc-c-l { padding-right: 8px !important; border-right: 1px solid #E6E8EB !important; }
#mine-body .cc-city .cc-c-l b { line-height: 21px !important; }
#mine-body .cc-city .cc-c-m { padding-left: 8px !important; text-align: left !important; }
#mine-body .cc-city .cc-c-m b,
#mine-body .cc-city .cc-c-m span { text-align: left !important; }
#mine-body .cc-city .cc-c-r { padding-left: 9px !important; }
#mine-body .cc-city .cc-c-r span { line-height: 21px !important; margin-top: 0 !important; }
/* 步骤行五列等宽（设计稿里步骤列之间没有竖线，只有上面那条横线） */
#mine-body .cc-city .cc-steps { grid-template-columns: repeat(5, 1fr) !important; }
#mine-body .cc-city .cc-steps > div { border-left: 0 !important; padding-left: 0 !important; }
/* 行距按设计稿：日期与城市名拉开 6px，右列两行 24px，块高 130 */
#mine-body .cc-city .cc-c-l span { margin-top: 6px !important; }
#mine-body .cc-city .cc-c-r span { line-height: 24px !important; }
#mine-body .ccard .cc-city { min-height: 130px !important; padding-bottom: 12px !important; }

/* ========== 跟单卡片 · 变量版（最终）==========
   全部颜色走主题变量：切主题时蓝、灰、底、线一起变，不再硬编码 */
#screen-mine { background: var(--bg) !important; }
#mine-body { background: var(--bg) !important; padding: 0 0 12px !important; }

#mine-body .ccard {
  margin: 0 15px 10px !important; padding: 0 0 10px !important;
  background: var(--card) !important; border: 1px solid var(--line) !important;
  border-radius: 12px !important; box-shadow: none !important; overflow: hidden !important;
}
#mine-body .ccard .cc-name {
  margin: 0 !important; padding: 16px 25px 0 !important;
  font-size: 17px !important; font-weight: 700 !important; color: var(--text) !important; line-height: 23px !important;
}
#mine-body .ccard .cc-name .cc-cat { font-size: 15px !important; font-weight: 400 !important; color: var(--muted) !important; }
#mine-body .ccard .cc-row {
  margin: 0 !important; padding: 10px 25px 0 !important;
  font-size: 14px !important; color: var(--muted) !important; line-height: 19px !important;
  display: flex !important; gap: 11px !important;
}
#mine-body .ccard .cc-row > span { flex: 0 0 auto !important; color: var(--muted) !important; }
#mine-body .ccard .cc-row > em { color: var(--text) !important; font-weight: 400 !important; display: flex !important; gap: 6px !important; }
#mine-body .ccard .cc-co-st { font-size: 14px !important; color: var(--primary) !important; background: none !important; padding: 0 !important; font-weight: 400 !important; border: 0 !important; }
#mine-body .ccard .cc-co-st.wait { color: var(--warn-ink, #b26a00) !important; }
#mine-body .ccard .cc-co-st.no { color: var(--danger-ink, #d93b3b) !important; }

/* 城市块 */
#mine-body .ccard .cc-city {
  margin: 10px 10px 8px 9px !important;
  padding: 17px 20px 8px 23px !important;
  min-height: 122px !important; height: auto !important; box-sizing: border-box !important;
  background: var(--bg) !important; border: 1px solid var(--line) !important; border-radius: 12px !important;
  display: grid !important;
  grid-template-columns: 66.5px 57.5px 1fr !important;
  grid-template-rows: auto auto !important; gap: 0 !important;
  position: relative !important; box-shadow: none !important;
}
#mine-body .ccard .cc-city::before { display: none !important; }

/* 城市列（左）＋竖线 */
#mine-body .cc-city .cc-c-l {
  grid-column: 1; grid-row: 1; text-align: left !important;
  border-right: 1px solid var(--line) !important; padding-right: 0 !important;
}
#mine-body .cc-city .cc-c-l b {
  font-size: 14px !important; font-weight: 700 !important; color: var(--text) !important;
  line-height: 20px !important; white-space: nowrap !important; display: block !important; letter-spacing: 0 !important;
}
#mine-body .cc-city .cc-c-l b .cc-ing {
  font-size: 9px !important; font-weight: 400 !important; color: var(--muted) !important; margin-left: 1px !important;
}
#mine-body .cc-city .cc-c-l span { font-size: 12.5px !important; color: var(--muted) !important; opacity: .62; line-height: 17px !important; margin: 4px 0 0 !important; display: block !important; }

/* 展位列（中） */
#mine-body .cc-city .cc-c-m { grid-column: 2; grid-row: 1; text-align: center !important; border: 0 !important; padding: 0 0 0 1px !important; }
#mine-body .cc-city .cc-c-m b { font-size: 14px !important; font-weight: 700 !important; color: var(--text) !important; line-height: 20px !important; }
#mine-body .cc-city .cc-c-m span { font-size: 12.5px !important; color: var(--text) !important; line-height: 17px !important; margin-top: 4px !important; display: block !important; }

/* 右侧两行（左对齐，主题色） */
#mine-body .cc-city .cc-c-r { grid-column: 3; grid-row: 1; text-align: left !important; padding-left: 0 !important; }
#mine-body .cc-city .cc-c-r span { display: block !important; text-align: left !important; line-height: 17px !important; white-space: nowrap !important; }
#mine-body .cc-city .cc-c-r span:first-child { font-size: 12.5px !important; color: var(--primary) !important; margin-top: 3px !important; }
#mine-body .cc-city .cc-c-r span:last-child { font-size: 12.5px !important; color: var(--text) !important; margin-top: 4px !important; }
#mine-body .cc-city .cc-c-r span.muted { color: var(--muted) !important; }

/* 步骤行：横线 + 每列之间的浅竖线 */
#mine-body .cc-city .cc-steps {
  grid-column: 1 / -1 !important; grid-row: 2 !important;
  margin: 0 !important; padding: 14px 0 0 !important; border-top: 0 !important;
  display: grid !important; grid-template-columns: 57px 63px 62px 62px 1fr !important; gap: 0 !important;
  position: relative !important;
}
#mine-body .cc-city .cc-steps::before {
  content: ''; position: absolute; left: -23px; right: -20px; top: 0; height: 1px; background: var(--line);
}
#mine-body .cc-city .cc-steps > div { text-align: left !important; padding: 0 0 0 0 !important; position: relative !important; }
#mine-body .cc-city .cc-steps > div + div::before {
  content: ''; position: absolute; left: -9px; top: -6px; bottom: 0; width: 1px; background: var(--line); opacity: .7;
}
#mine-body .cc-city .cc-steps span { font-size: 12.5px !important; color: var(--muted) !important; line-height: 17px !important; display: block !important; margin: 0 !important; }
#mine-body .cc-city .cc-steps em { font-size: 12.5px !important; line-height: 17px !important; display: block !important; margin: 6px 0 0 !important; font-style: normal !important; color: var(--muted) !important; opacity: .75; }
#mine-body .cc-city .cc-steps em.on { color: var(--primary) !important; opacity: 1; }
#mine-body .cc-city .cc-steps em.wait { color: var(--warn-ink, #b26a00) !important; opacity: 1; }
#mine-body .cc-city .cc-steps em.off { color: var(--text) !important; opacity: .8; }
#mine-body .cc-city .cc-steps em.none { color: var(--muted) !important; opacity: .75; }

#mine-body .ccard .cc-tip { font-size: 11px !important; color: var(--muted) !important; opacity: .7; text-align: center !important; padding: 6px 0 4px !important; margin: 0 !important; }

/* 分段控件也用变量 */
#screen-mine #mine-seg button { color: var(--muted) !important; font-size: 12.5px !important; padding: 4px 8px !important; border: 1px solid transparent !important; background: transparent !important; border-radius: 8px !important; }
#screen-mine #mine-seg button.active {
  background: var(--card) !important; color: var(--primary) !important;
  border-color: var(--primary) !important; font-weight: 600 !important;
}

/* 最后 2px 校准：设计稿 padding-left 21（城市名 x=23 减 2px 边框偏移） */
#mine-body .ccard .cc-city { padding: 17px 20px 8px 21px !important; }
#mine-body .cc-city .cc-steps::before { left: -21px !important; }

/* 设计稿：城市块无边框，卡片边框也很淡；避免横向溢出 */
#mine-body .ccard .cc-city { border: 0 !important; background: var(--bg) !important; }
#mine-body .ccard { border: 1px solid color-mix(in srgb, var(--line) 60%, transparent) !important; }
#mine-body { overflow-x: hidden !important; }
#mine-body .ccard .cc-name,
#mine-body .ccard .cc-row { overflow: hidden !important; white-space: nowrap !important; text-overflow: ellipsis !important; }

/* 城市块底色改白（设计稿是白块 + 极淡阴影，不是灰块） */
#mine-body .ccard .cc-city {
  background: var(--card) !important;
  box-shadow: 0 1px 2px color-mix(in srgb, var(--text) 4%, transparent) !important;
}
/* 步骤行状态与标签的间距按设计稿放宽到 8 */
#mine-body .cc-city .cc-steps em { margin: 8px 0 0 !important; }

/* 收尾：城市块圆角 16、高度压回 122、步骤状态间距 6 */
#mine-body .ccard .cc-city { border-radius: 16px !important; min-height: 122px !important; padding-top: 15px !important; padding-bottom: 7px !important; }
#mine-body .cc-city .cc-steps { padding-top: 12px !important; }
#mine-body .cc-city .cc-steps em { margin: 6px 0 0 !important; }
#mine-body .ccard { border-radius: 16px !important; }
#mine-body .ccard .cc-name { padding-top: 18px !important; }

/* ================= 跟单卡片 · 按用户 1:1 还原稿重写 =================
   来源：D:/Downloads/html/index.html（陈柒柒还原，Figma Frame 22）
   核心结构：.ccard(白卡) > .cc-head + .cc-booth(灰容器) > .cc-bm(白区) + .cc-stages
   颜色全部映射到主题变量，切换主题时同步变化。 */

@font-face {
  font-family: "MiSans Local";
  src: url("../assets/fonts/font_f0.woff2") format("woff2");
  font-weight: 400; font-display: swap;
}
@font-face {
  font-family: "MiSans Local";
  src: url("../assets/fonts/font_f1.woff2") format("woff2");
  font-weight: 700; font-display: swap;
}

#mine-body { background: var(--bg) !important; padding: 18px 15px 20px !important; }

/* ---- 卡片 ---- */
#mine-body .ccard {
  background: var(--card) !important;
  border: 1px solid var(--line) !important;
  border-radius: 12px !important;
  padding: 16px 9px 9px !important;
  margin: 0 0 10px !important;
  box-shadow: none !important;
  overflow: visible !important;
  font-family: "MiSans Local", "MiSans", "HarmonyOS Sans SC", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif !important;
  -webkit-font-smoothing: antialiased;
}
/* ---- 卡片头部 ---- */
#mine-body .cc-head { margin: 0 15px 13.5px !important; padding: 0 !important; }
#mine-body .cc-title {
  display: flex !important; align-items: baseline !important; line-height: 1 !important;
  font-size: 17px !important; font-weight: 700 !important; color: var(--text) !important;
  margin: 0 !important; padding: 0 !important; white-space: nowrap !important;
}
#mine-body .cc-dot {
  width: 3px !important; height: 3px !important; margin: 0 9px !important;
  border-radius: 50% !important; background: var(--muted) !important;
  transform: translateY(-3px) !important; display: inline-block !important; flex: 0 0 auto !important;
}
#mine-body .cc-cat { font-size: 15.8px !important; font-weight: 400 !important; color: var(--muted) !important; }
#mine-body .cc-contract {
  display: flex !important; align-items: baseline !important; margin: 15.7px 0 0 !important;
  font-size: 14px !important; line-height: 1 !important; padding: 0 !important;
}
#mine-body .cc-contract .lb { color: var(--muted) !important; margin-right: 11px !important; }
#mine-body .cc-contract .no { color: var(--text) !important; }
#mine-body .cc-contract .st { margin-left: 10px !important; color: var(--primary) !important; }

/* ---- 展位块：外层灰容器 ---- */
#mine-body .cc-booth {
  background: var(--bg) !important; border-radius: 16px !important;
  padding: 4px 4px 9px !important; border: 0 !important;
  position: relative !important; transition: background-color .12s ease;
}
#mine-body .cc-booth + .cc-booth { margin-top: 8px !important; }

/* ---- 白底信息区 ---- */
#mine-body .cc-bm {
  position: relative !important; background: var(--card) !important;
  border-radius: 12px !important; padding: 13px 19px 0 !important; height: 63px !important;
  display: grid !important;
  grid-template-columns: 72px 75px 1fr !important;
  grid-template-rows: 20px 17px !important;
  row-gap: 4px !important; align-items: start !important;
  box-sizing: border-box !important;
}
/* 城市与展位号之间竖线 */
#mine-body .cc-bm::before {
  content: "" !important; position: absolute !important;
  left: 90.8px !important; top: 13px !important;
  width: 1.93px !important; height: 36.44px !important;
  background: var(--text) !important; opacity: .1 !important;
}
#mine-body .cc-bm .city,
#mine-body .cc-bm .bno {
  margin-top: 1px !important; line-height: 1 !important;
  font-size: 15px !important; font-weight: 700 !important; color: var(--text) !important;
  white-space: nowrap !important;
}
#mine-body .cc-bm .city small { margin-left: 1px !important; font-size: 9px !important; font-weight: 400 !important; color: var(--text) !important; }
#mine-body .cc-bm .bno { grid-column: 2 !important; grid-row: 1 !important; padding-left: 18px !important; }
#mine-body .cc-bm .bno.empty { padding-left: 33.5px !important; }
#mine-body .cc-bm .bdate,
#mine-body .cc-bm .bprice {
  grid-column: 1 !important; grid-row: 2 !important;
  line-height: 1 !important; font-size: 12.9px !important; white-space: nowrap !important;
}
#mine-body .cc-bm .bdate { color: var(--muted) !important; opacity: .66 !important; }
#mine-body .cc-bm .bprice { grid-column: 2 !important; padding-left: 13px !important; color: var(--muted) !important; }
#mine-body .cc-bm .bmeta {
  grid-column: 3 !important; line-height: 1 !important; font-size: 12.9px !important;
  color: var(--muted) !important; white-space: nowrap !important; margin: 0 !important;
}
#mine-body .cc-bm .bmeta-1 { grid-row: 1 !important; padding-top: 3px !important; }
#mine-body .cc-bm .bmeta-2 { grid-row: 2 !important; }
#mine-body .cc-bm .hi { color: var(--primary) !important; }

/* ---- 流程节点：带小圆点的连线 ---- */
#mine-body .cc-stages {
  position: relative !important;
  margin: 6px 10px 0 17px !important;
  display: grid !important;
  grid-template-columns: .92fr repeat(4, 1fr) !important;
  gap: 0 !important;
}
#mine-body .cc-stages::before {
  content: "" !important; position: absolute !important;
  left: -20px !important; right: -8px !important; top: 8.5px !important;
  height: 1px !important; background: var(--line) !important;
}
#mine-body .cc-stages::after {
  content: "" !important; position: absolute !important;
  left: -20px !important; top: 7px !important;
  width: 3px !important; height: 3px !important; border-radius: 50% !important; background: var(--line) !important;
}
#mine-body .cc-stage { position: relative !important; }
#mine-body .cc-stage + .cc-stage::before {
  content: "" !important; position: absolute !important;
  left: -2.5px !important; top: 7px !important;
  width: 3px !important; height: 3px !important; border-radius: 50% !important; background: var(--line) !important;
}
#mine-body .cc-stage .lab,
#mine-body .cc-stage .val {
  position: relative !important; display: block !important;
  padding: 0 2px !important; font-size: 12.9px !important; white-space: nowrap !important;
}
#mine-body .cc-stage .lab {
  width: fit-content !important; height: 17px !important; line-height: 17px !important;
  color: var(--muted) !important; background: var(--bg) !important;
}
#mine-body .cc-stage .lab::after {
  content: "" !important; position: absolute !important;
  right: -3px !important; top: 7px !important;
  width: 3px !important; height: 3px !important; border-radius: 50% !important; background: var(--line) !important;
}
/* 「未对接 / 无订单 / 未提交」这类待办信息原来用灰(--muted)+70% 透明，
   在暖白主题下几乎看不出是要催的事。统一改用主题色：
   on 态实色加粗，off 态同色但淡一点，靠「已/未」+ 字重区分。 */
#mine-body .cc-stage .val {
  margin-top: 6px !important; height: 17px !important; padding: 0 2px 0 0 !important;
  line-height: 1 !important; color: var(--primary) !important; opacity: .72 !important;
}
#mine-body .cc-stage .val.on { color: var(--primary) !important; opacity: 1 !important; font-weight: 600 !important; }
#mine-body .cc-booth:active { background: var(--primary-weak) !important; }

/* 卡片容器与提示 */
#mine-body .cc-booths { margin: 0 !important; padding: 0 !important; }
#mine-body .ccard .cc-tip { font-size: 11px !important; color: var(--muted) !important; opacity: .7; text-align: center !important; padding: 6px 0 4px !important; margin: 0 !important; }

/* 展位号列放宽到 86，容纳 AB-B11 这类长编码（基准稿 75 是给 T101 的） */
#mine-body .cc-bm { grid-template-columns: 72px 86px 1fr !important; }
#mine-body .cc-bm::before { left: 90.8px !important; }
#mine-body .cc-bm .bmeta { font-size: 12.5px !important; }

/* 管理页分段加到 6 项，允许横向滑动 */
#admin-tabs { overflow-x: auto !important; flex-wrap: nowrap !important; }
#admin-tabs::-webkit-scrollbar { display: none; }
#admin-tabs button { flex: 0 0 auto !important; font-size: 14px !important; }

/* ========== 三页顶部「标签 + 搜索框」对齐动态页 .hist-bar ==========
   动态页：.hist-bar(padding 10/14/8, gap 8) > .hist-seg(无 margin) + .hist-search
   问题页：.seg-bar 自己还带了 margin:10px 14px 0 → 左右多 14、顶部多 10 */
.page-bar .seg-bar {
  margin: 0 !important;
  background: var(--wash-200) !important;
  border-radius: 8px !important;
  padding: 3px !important;
  gap: 6px !important;
}
.page-bar { padding: 10px 14px 8px !important; gap: 8px !important; }

/* 管理页：让分段与搜索框的间距和动态页一致 */
.admin-tabs {
  padding: 10px 14px 8px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}
.admin-tabs .hist-seg { margin: 0 !important; }
.admin-tabs #admin-search { margin: 0 !important; }

/* 搜索框高度与动态页一致 */
.page-bar .search-wrap,
.page-bar #mine-search > div,
.admin-tabs #admin-search > div { margin: 0 !important; }
.page-bar input.input,
.admin-tabs input.input { height: 34px !important; font-size: 14px !important; }

/* 审批页顶栏对齐动态页：padding 底 8、标签与搜索框间距 8（原来分别是 4 和 12） */
.rv-bar {
  margin: -14px -14px 10px !important;
  padding: 10px 14px 8px !important;
  display: flex !important; flex-direction: column !important; gap: 8px !important;
  background: var(--bg) !important; border-bottom: 1px solid var(--line) !important;
}
.rv-bar .scope-tabs { margin: 0 !important; padding: 3px !important; gap: 6px !important; border-radius: 8px !important; }
.rv-bar .scope-tab { height: 30px !important; font-size: 12.5px !important; border-radius: 8px !important; }

/* 跟单页分段按钮高度对齐 30（原来只有 24，整条只有 30 高） */
.page-bar .seg-bar button { height: 30px !important; padding: 0 10px !important; font-size: 12.5px !important; }
.page-bar .seg-bar { height: 36px !important; }

/* 展位号与合同金额：在第二列内居中对齐（用户明确要求，原稿是左对齐+内边距） */
#mine-body .cc-bm .bno { padding-left: 0 !important; text-align: center !important; }
#mine-body .cc-bm .bprice { padding-left: 0 !important; text-align: center !important; }
#mine-body .cc-bm .bno.empty { padding-left: 0 !important; }

/* 流程列数随项目变化：标展 5 列（搭建/租赁/推广/门票/楣板），特装 4 列 */
#mine-body .cc-stages { grid-template-columns: .92fr repeat(calc(var(--n) - 1), 1fr) !important; }

/* repeat(calc()) 不合法，改用自动列：有几项分几列 */
#mine-body .cc-stages {
  display: grid !important;
  grid-auto-flow: column !important;
  grid-auto-columns: 1fr !important;
  grid-template-columns: none !important;
}

/* ========== 跟单页分段：完全照动态页 .hist-seg ==========
   动态页是「整条浅灰容器 + 内部选中项浮起白底带阴影」，
   我之前做成了独立胶囊（透明底 + 蓝边框），方向反了。 */
#screen-mine .page-bar .seg-bar,
#screen-mine #mine-seg {
  display: flex !important;
  gap: 6px !important;
  background: var(--wash-200) !important;
  border-radius: 8px !important;
  padding: 3px !important;
  margin: 0 !important;
  border: 0 !important;
  overflow-x: auto !important;
}
#screen-mine #mine-seg::-webkit-scrollbar { display: none; }
#screen-mine #mine-seg button {
  flex: 1 1 0 !important;
  height: 30px !important;
  padding: 0 6px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: transparent !important;
  color: var(--slate-500) !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
}
#screen-mine #mine-seg button.active {
  background: var(--card) !important;
  color: var(--primary) !important;
  border: 0 !important;
  box-shadow: 0 1px 4px rgba(15, 23, 42, .10) !important;
}

/* 强制覆盖（旧规则用了 #screen-mine #mine-seg 两个 ID，特异性更高） */
#screen-mine #mine-seg {
  display: flex !important;
  gap: 6px !important;
  background: var(--wash-200) !important;
  border-radius: 8px !important;
  padding: 3px !important;
  margin: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
}
#screen-mine #mine-seg button {
  flex: 1 1 0 !important;
  height: 30px !important;
  padding: 0 6px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: transparent !important;
  color: var(--slate-500) !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  box-shadow: none !important;
}
#screen-mine #mine-seg button.active {
  background: var(--card) !important;
  color: var(--primary) !important;
  border: 0 !important;
  box-shadow: 0 1px 4px rgba(15, 23, 42, .10) !important;
}

/* ===== 跟单页顶部：搜索框与筛选按钮按 Ardot 设计稿（节点 26:225）=====
   搜索框 361×38 圆角 8 白底 + #EEF1F6 描边，文字 16px/#757575
   筛选按钮 44×26 圆角 6 底色 #EEF1F6，文字 14px/#65748A */
#screen-mine .page-bar .top-search { position: relative !important; }
#screen-mine .page-bar .top-search .input {
  height: 38px !important;
  border-radius: 8px !important;
  border: 1px solid var(--wash-200) !important;
  background: var(--card) !important;
  padding-left: 10px !important;
  padding-right: 56px !important;
  font-size: 17px !important;
  color: var(--text) !important;
  box-sizing: border-box !important;
}
#screen-mine .page-bar .top-search .input::placeholder {
  font-size: 17px !important;
  #757575 !important;
  opacity: 1 !important;
}
#screen-mine .page-bar .top-search .ts-fbtn {
  height: 26px !important;
  width: 44px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: var(--wash-200) !important;
  #65748A !important;
  font-size: 14px !important;
  font-weight: 400 !important;
}
#screen-mine .page-bar .top-search .ts-tools {
  position: absolute !important;
  right: 6px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  gap: 4px !important;
}

/* 收尾：左右内边距按设计稿 16（原来 14，容器宽差 4px），筛选按钮底色与输入框描边补上 */
#screen-mine .page-bar { padding-left: 16px !important; padding-right: 16px !important; }
#screen-mine .page-bar .top-search .ts-fbtn {
  background: var(--wash-200) !important;
  #65748A !important;
}
#screen-mine .page-bar .top-search .input {
  border-color: var(--wash-200) !important;
}
#screen-mine .page-bar .top-search .ts-tools { right: 6px !important; }

/* 筛选按钮底色再压一层（前面几条都被 .ts-fbtn 的既有规则盖掉了） */
#screen-mine .page-bar .top-search .ts-tools .ts-fbtn,
#screen-mine .page-bar .top-search .ts-tools .ts-fbtn.on {
  background-color: var(--wash-200) !important;
  #65748A !important;
  box-shadow: none !important;
  border: 0 !important;
}

/* 顶栏左右内边距：设计稿内容从 x=16 起 */
#screen-mine .page-bar { padding-left: 16px !important; padding-right: 16px !important; }

/* 顶栏上内边距按设计稿 12（原来 10，整体偏上 2px） */
#screen-mine .page-bar { padding-top: 12px !important; padding-bottom: 8px !important; }

/* ===== 规范对齐补丁（DS-1.1）=====
   选位页 / 日历页里剩下的非 4 倍数间距统一收口。
   地图标注（.mgrid-name / .mzone 内的 b、i、ctag）字号和圆角随地图缩放
   由 calc(--wallk) 产生，不属于规范管辖，保持不动。 */
.map-foot { padding: 8px 16px 12px !important; }
.cal-cell { padding: 4px 2px 4px !important; }
.cal-wrap { padding: 12px 16px calc(16px + var(--safe-b)) !important; }

/* 规范收口：图例间距 5→4，图例区上下 8 */
.map-foot { padding: 8px 16px 8px !important; gap: 12px !important; }
.map-foot .lg { gap: 4px !important; }

/* 图例区下部不留白（原来就是 0，加 8 会把地图顶窄） */
.map-foot { padding: 8px 16px 0 !important; }

/* 图例区：与地图卡之间留 12px 呼吸位（原来上内距被压成 0，图例直接贴着地图底边） */
.map-foot { padding: 12px 16px 0 !important; }

/* 地图容器高度：底部两行图例约 36px + 与图例的 12px 间距。
   只扣 320 时图例会被 tab 遮，所以按「图例高度 + 间距」一起扣掉 */
.map-wrap { height: calc(100vh - 368px) !important; }
.screen:has(#cat-filters:not([hidden])) .map-wrap { height: calc(100vh - 412px) !important; }

/* 环境标识（测试版）：不用警告橙，改成中性灰蓝，避免蓝色主题里跳出来 */
#env-tag .pill.test { background: var(--wash-200) !important; color: var(--muted) !important; }
#env-tag .pill.prod { background: var(--ok-weak) !important; color: var(--ok-ink) !important; }

/* 「优先提醒」横幅：原来用警告橙，蓝色主题下太跳。
   改成主色浅底 + 左侧 3px 主色条，靠色条区分优先级，不再整块橙色。 */
.banner.priority {
  background: var(--primary-weak) !important;
  color: var(--primary-deep) !important;
  border: 1px solid var(--primary-line) !important;
  border-left: 3px solid var(--primary) !important;
}
.banner.priority b { color: var(--primary-deep) !important; }
.banner.priority .bi i { color: var(--primary-label) !important; }

/* 公告条：原来是浅橙底 + 橙字，蓝色主题下跳。改主色系 */
.notice-strip {
  background: var(--primary-weak) !important;
  color: var(--primary-deep) !important;
  border-bottom: 1px solid var(--primary-line) !important;
}
.notice-strip .ns-text, .notice-strip b, .notice-strip span { color: var(--primary-deep) !important; }
.notice-strip .ns-text i, .notice-strip i { color: var(--primary-label) !important; font-style: normal !important; }
.notice-strip .ns-x { color: var(--primary-label) !important; }

/* 公告条内部所有文字统一主色系（第二行的灰色小字原来也继承了橙） */
.notice-strip .ns-text * { color: var(--primary-label) !important; }
.notice-strip .ns-text b { color: var(--primary-deep) !important; }
.notice-strip .ns-text > *:first-child { color: var(--primary-deep) !important; }

/* 日历格子状态边框：强制跟主色走。
   .has 表示「当天有安排」，用主色 30% 的淡描边；.past 表示已过期，用危险色 30%。
   这样蓝色主题下是淡蓝边、暖色主题下是淡橙边，不会出现主题外的杂色。 */
.cal-cell.has {
  border-color: color-mix(in srgb, var(--primary) 30%, transparent) !important;
  background: color-mix(in srgb, var(--primary) 6%, var(--card)) !important;
}
.cal-cell.past {
  border-color: color-mix(in srgb, var(--danger) 30%, transparent) !important;
  background: var(--card) !important;
}
/* 状态点也统一走语义变量 */
.cal-dots s.warn { background: var(--warn) !important; }
.cal-dots s.danger { background: var(--danger) !important; }
.cal-dots s.info { background: var(--primary) !important; }
.cal-dots s.event { background: var(--violet) !important; }
.cal-dots s.ind { background: var(--ok) !important; }

/* 过期格子的红边原来只有 30% 透明度，在白底上偏杏色，容易误认成橙。
   提到 45%，并给一点淡红底，颜色关系更明确。 */
.cal-cell.past {
  border-color: color-mix(in srgb, var(--danger) 45%, transparent) !important;
  background: color-mix(in srgb, var(--danger) 4%, var(--card)) !important;
}

/* 日历图例：解释格子边框色和圆点色 */
.cal-legend {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 4px 12px; margin: 10px 4px 2px;
  font-size: 11px; color: var(--muted);
}
.cal-legend .cl-item { display: inline-flex; align-items: center; gap: 4px; }
.cal-legend .cl-sw {
  width: 12px; height: 12px; border-radius: 4px;
  border: 1px solid var(--line); background: var(--card);
  display: block; flex: 0 0 auto;
}
.cal-legend .cl-sw.has {
  border-color: color-mix(in srgb, var(--primary) 30%, transparent);
  background: color-mix(in srgb, var(--primary) 6%, var(--card));
}
.cal-legend .cl-sw.past {
  border-color: color-mix(in srgb, var(--danger) 45%, transparent);
  background: color-mix(in srgb, var(--danger) 4%, var(--card));
}
.cal-legend .cl-sw.today { background: var(--primary); border-color: var(--primary); }
.cal-legend .cl-dot {
  width: 5px; height: 5px; border-radius: 50%; display: block; flex: 0 0 auto;
}
.cal-legend .cl-dot.warn { background: var(--warn); }
.cal-legend .cl-dot.danger { background: var(--danger); }
.cal-legend .cl-dot.event { background: var(--violet); }

/* ===== 本场活动页 · 按 DS-1.1 规范对齐 =====
   1) 卡片内边距对齐规范的 16（原来 13/14 偏紧）
   2) to-be-reviewed 虚线框和提醒文字改语义变量，去掉 fallback 硬编码
   3) 顶部标题与卡片间距按 4 倍数收口 */
.evt-card { padding: 16px !important; margin-bottom: 8px !important; border-radius: 12px !important; }
.evt-card .evt-title { font-size: 15px !important; font-weight: 600 !important; line-height: 1.4 !important; margin: 0 !important; }
.evt-card .evt-meta { font-size: 11px !important; color: var(--wait-ink) !important; margin-top: 4px !important; }
.evt-card .evt-body { font-size: 12.5px !important; color: var(--muted) !important; line-height: 1.55 !important; margin: 8px 0 0 !important; }
.evt-card .evt-top { gap: 8px !important; margin-bottom: 8px !important; }
.evt-card .evt-co { font-size: 11px !important; color: var(--muted) !important; }
.evt-card .evt-del { font-size: 11px !important; color: var(--muted) !important; padding: 2px 4px !important; }
.evt-card.evt-pending { border: 1px dashed var(--wait-line) !important; background: var(--wait-weak) !important; }
.evt-card .evt-note { font-size: 11px !important; color: var(--urgent-ink) !important; margin: 8px 0 0 !important; }
.evt-card .evt-acts { display: flex !important; gap: 8px !important; margin-top: 12px !important; }
.evt-card .evt-acts .btn { flex: 1 !important; height: 38px !important; border-radius: 8px !important; font-size: 14px !important; }
.evt-head { padding: 4px 2px 8px !important; }
.evt-head b { font-size: 17px !important; font-weight: 700 !important; }
.evt-head .sub { font-size: 11px !important; color: var(--muted) !important; margin-left: 8px !important; }

/* ===== 卡片统一规则（DS-1.1）=====
   所有卡片一律：1px 描边 + 圆角 12 + 内边距 16 + 无投影。
   层级靠底色差和描边区分，不靠阴影堆叠。 */
.card,
.evt-card,
.notice-item,
.contract-item,
.deal-item,
.mine-deal,
.member-list,
.ver-item,
.co-hint,
.login-card,
.ct-item,
.evt-card {
  box-shadow: none !important;
  border: 1px solid var(--line) !important;
}
/* 选中态用外圈主色描边示意，也不加投影 */
.card.on,
.card.tap:active,
.deal-item.on {
  box-shadow: 0 0 0 2px var(--primary) !important;
}

/* ===== 卡片内按钮一律均分（DS-1.2 · 6.0.1）=====
   同一张卡片里的操作按钮等宽平铺，不按文字长短分配宽度，
   避免「下载」窄「下架」宽这种视觉失衡。 */
.btn-row > .btn,
.btn-row.tight > .btn { flex: 1 1 0 !important; min-width: 0 !important; }
.mn-act { display: flex !important; align-items: center !important; gap: 8px !important; margin-top: 12px !important; }
.mn-act > .btn { flex: 1 1 0 !important; min-width: 0 !important; height: 38px !important; padding: 0 4px !important; }
.mn-act .mn-more { display: contents !important; }
.evt-acts > .btn, .sheet-actions > .btn { flex: 1 1 0 !important; }
.card .btn-row, .evt-card .btn-row, .card-demo .btn-row { display: flex !important; gap: 8px !important; }

/* 修正按钮 2px 宽度差：实心按钮无边框、ghost 有 1px 边框，
   border-box 下两者内容宽度会差 2px，统一给透明边框占位。 */
.mn-act > .btn, .btn-row > .btn, .evt-acts > .btn { box-sizing: border-box !important; }
.mn-act > .btn:not(.ghost), .btn-row > .btn:not(.ghost) { border: 1px solid transparent !important; }

/* ===== 卡片内按钮：统一 34px 高 / 14px 字（DS-1.3 更新）=====
   以「导出 CSV / 导出文本」这组为基准，之前设的 38px 偏高。 */
.mn-act > .btn,
.btn-row > .btn,
.btn-row.tight > .btn,
.evt-acts > .btn,
.sheet-actions > .btn,
.card .btn-row > .btn {
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 12px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  border-radius: 8px !important;
  box-sizing: border-box !important;
}

/* ===== 顶部标签按钮：选中态不用阴影（DS-1.4 补充）=====
   选中只靠「白底 + 主色文字」表达，不加投影。
   原来登录分段、审批范围切换、编辑器页签、卡片选中都还在用 box-shadow。 */
.login-tabs button.active,
.scope-tab.on,
.wm-tab.on,
.hist-seg button.active,
.seg-bar button.active,
.range-pick .chip.on,
.chip.active {
  box-shadow: none !important;
}
/* 卡片选中态保留 2px 主色外圈（这不是投影，是描边） */
.card.on { box-shadow: 0 0 0 2px var(--primary) !important; }
.cal-cell.on { box-shadow: 0 0 0 2px var(--primary) !important; }

/* ===== 卡片不用整块背景色（DS-1.5 补充）=====
   状态靠「描边 + 徽章」表达，卡片本体一律白底。
   原来待审核卡片整块刷 --wait-weak 浅黄，和下面的白卡放一起像两种层级。 */
.card,
.evt-card,
.notice-item,
.contract-item,
.deal-item,
.mine-deal,
.member-list,
.ver-item,
.co-hint,
.ct-item {
  background: var(--card) !important;
}
/* 待审核：只换描边样式和颜色，不改底色 */
.evt-card.evt-pending {
  background: var(--card) !important;
  border: 1px dashed var(--wait-line) !important;
}

/* ===== 卡片描边一律用默认样式（DS-1.7）=====
   待审核等状态不再改描边（虚线/橙色），只用徽章表达。
   描边只有一种：1px solid var(--line)。 */
.evt-card.evt-pending,
.evt-card,
.card,
.notice-item,
.contract-item,
.deal-item,
.mine-deal,
.member-list,
.ver-item,
.co-hint,
.ct-item {
  border: 1px solid var(--line) !important;
  border-style: solid !important;
}

/* ===== 搜索框统一按 Ardot 设计稿（节点 26:265 / 26:266）=====
   字号 14px、占位色 #6C727E、左内边距 11、高 38、圆角 8、1.5px 描边。
   之前各页搜索框字号从 12.5 到 14 都有，占位色是 #757575。 */
.top-search .input,
#admin-search .input,
#mine-search .input,
.map-toolbar .top-search .input,
#screen-build .top-search .input {
  font-size: 14px !important;
  height: 38px !important;
  border-radius: 8px !important;
  padding-left: 11px !important;
  border: 1.5px solid var(--wash-200) !important;
  background: var(--card) !important;
  color: var(--text) !important;
  box-sizing: border-box !important;
}
.top-search .input::placeholder,
#admin-search .input::placeholder,
#mine-search .input::placeholder,
.map-toolbar .top-search .input::placeholder,
#screen-build .top-search .input::placeholder {
  font-size: 14px !important;
  color: #6C727E !important;
  opacity: 1 !important;
}

/* ===== 搜索框按 Ardot 导出 HTML（节点 29:12）1:1 还原 =====
   权威值：框 361×38 r8 白底 + 3px #EEF1F6 描边；占位 14px #94A3B8 左内边距 10；
   筛选 45×26 r6 #EEF1F6 底，#64748B 文字 14px，距右 5。
   之前误写成 1.5px 描边、#6C727E 占位、11 内边距，全部纠正。 */
.top-search .input,
#admin-search .input,
#mine-search .input {
  height: 38px !important;
  border-radius: 8px !important;
  border-width: 3px !important; border-style: solid !important; border-color: var(--wash-200) !important;
  background: var(--card) !important;
  padding-left: 10px !important;
  font-size: 14px !important;
  color: var(--text) !important;
  box-sizing: border-box !important;
}
.top-search .input::placeholder,
#admin-search .input::placeholder,
#mine-search .input::placeholder {
  font-size: 14px !important;
  color: var(--slate-500) !important;
  opacity: 1 !important;
}
.top-search .ts-fbtn,
#admin-search .ts-fbtn,
#mine-search .ts-fbtn {
  height: 26px !important;
  width: 45px !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  border: 0 !important;
  border-radius: 6px !important;
  background: var(--wash-200) !important;
  color: var(--slate-500) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  box-shadow: none !important;
}
.top-search .ts-tools,
#admin-search .ts-tools,
#mine-search .ts-tools {
  right: 5px !important;
}

/* 搜索框最终覆盖：各页原有的 #screen-xxx .page-bar .top-search .input 特异性更高，
   这里用 id 前缀逐个压住。 */
#screen-build .top-search .input,
#screen-mine .page-bar .top-search .input,
#screen-admin .top-search .input,
#screen-deal .top-search .input,
#screen-notice .top-search .input,
.map-toolbar .top-search .input {
  height: 38px !important;
  border-width: 3px !important; border-style: solid !important; border-color: var(--wash-200) !important;
  border-radius: 8px !important;
  padding-left: 10px !important;
  font-size: 14px !important;
  background: var(--card) !important;
  box-sizing: border-box !important;
}
#screen-build .top-search .input::placeholder,
#screen-mine .page-bar .top-search .input::placeholder,
#screen-admin .top-search .input::placeholder,
#screen-deal .top-search .input::placeholder,
#screen-notice .top-search .input::placeholder,
.map-toolbar .top-search .input::placeholder {
  color: var(--slate-500) !important;
  font-size: 14px !important;
  opacity: 1 !important;
}

/* 动态/公告页的搜索框用的是 .hist-search 结构，不走 .top-search，单独补 */
#screen-feed .hist-search .input,
#screen-notice .hist-search .input,
#hist-q {
  height: 38px !important;
  border-width: 3px !important; border-style: solid !important; border-color: var(--wash-200) !important;
  border-radius: 8px !important;
  padding-left: 10px !important;
  padding-right: 34px !important;
  font-size: 14px !important;
  background: var(--card) !important;
  box-sizing: border-box !important;
}
#screen-feed .hist-search .input::placeholder,
#screen-notice .hist-search .input::placeholder,
#hist-q::placeholder {
  color: var(--slate-500) !important;
  font-size: 14px !important;
  opacity: 1 !important;
}

/* ================= 本场活动页顶栏（DS-1.8） =================
   结构照抄跟单页：分段（本场活动 / 全部活动）在上、搜索+筛选在下，
   规格与 #screen-mine .page-bar 保持一致，用户来回切页不会跳动。 */
#screen-events .page-bar {
  padding: 12px 16px 8px !important;
  gap: 8px !important;
}
#screen-events .page-bar .seg-bar {
  margin: 0 !important; padding: 3px !important; gap: 6px !important;
  height: 36px !important; border-radius: 8px !important;
  background: var(--wash-200) !important;
  display: flex !important;
}
#screen-events .page-bar .seg-bar button {
  flex: 1 1 0 !important; min-width: 0 !important;
  height: 30px !important; padding: 0 10px !important;
  font-size: 12.5px !important; border-radius: 8px !important;
  background: transparent !important; color: var(--slate-700) !important;
  font-weight: 600 !important; box-shadow: none !important; border: 0 !important;
}
#screen-events .page-bar .seg-bar button.active {
  background: var(--card) !important; color: var(--primary) !important;
  box-shadow: 0 1px 4px rgba(15, 23, 42, .10) !important;
}
#screen-events .page-bar .top-search { position: relative !important; margin: 0 !important; }
#screen-events .page-bar .top-search .input {
  height: 38px !important; border-width: 3px !important; border-style: solid !important; border-color: var(--wash-200) !important; border-radius: 8px !important;
  padding-left: 10px !important; padding-right: 92px !important;
  font-size: 14px !important; background: var(--card) !important; box-sizing: border-box !important;
}
#screen-events .page-bar .top-search .input::placeholder {
  color: var(--slate-500) !important; font-size: 14px !important; opacity: 1 !important;
}
#screen-events .page-bar .top-search .ts-tools {
  position: absolute !important; right: 6px !important; top: 50% !important;
  transform: translateY(-50%) !important; gap: 4px !important;
}
#screen-events .page-bar .top-search .ts-fbtn,
#screen-events .page-bar .top-search .ts-tools .ts-fbtn,
#screen-events .page-bar .top-search .ts-tools .ts-fbtn.on {
  height: 26px !important; width: 44px !important; padding: 0 !important;
  border: 0 !important; border-radius: 8px !important;
  background: var(--wash-200) !important; color: var(--slate-500) !important;
  font-size: 14px !important; font-weight: 400 !important; box-shadow: none !important;
}
/* 活动卡上的场次标签（全部活动时标明来自哪个城市/展会） */
.evt-expo {
  font-size: 11px; color: var(--slate-500); background: var(--wash-200);
  border-radius: 4px; padding: 1px 5px; margin-right: 2px;
}

/* ================= 日期时间字段（DS-1.9） =================
   替掉原生 datetime-local：按钮样式与 .input 一致，空值是灰色占位，
   选中后显示「2026-12-05 10:30」；弹层里是 5 个 select（系统滚轮，手感原生）。 */
.dtp-field {
  display: flex; align-items: center; justify-content: flex-start;
  width: 100%; text-align: left; background: var(--card);
  color: var(--text); font-size: 14px; font-weight: 400;
}
.dtp-field.dtp-empty { color: #94A3B8; }
.dtp-field.dtp-set { color: var(--text); font-weight: 600; }
.dtp { display: flex; flex-direction: column; gap: 10px; margin: 10px 0 4px; }
.dtp-row { display: flex; align-items: center; gap: 8px; }
.dtp-colon { font-size: 16px; color: var(--slate-500); }
.dtp-sel {
  flex: 1 1 0; min-width: 0; height: 38px;
  border: 1px solid var(--line); border-radius: 8px;
  background: var(--card); color: var(--text);
  font-size: 14px; font-weight: 600; text-align: center;
  padding: 0 6px; appearance: none; -webkit-appearance: none;
}
.dtp-quick { display: flex; gap: 8px; }
.dtp-quick button {
  flex: 1 1 0; height: 32px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--wash-200); color: var(--slate-700);
  font-size: 12.5px; font-weight: 600;
}

/* 视觉隐藏但可点击（文件 input 用）：display:none 的 input 在部分安卓 WebView
   里收不到 label 转发来的点击，改成 1px 透明仍可被 .click() 触发 */
/* .vh（视觉隐藏但可点）已移到 theme.css：所有页面都加载它，登录页/分享页的上传框也要用 */
/* 配图上传后的缩略图 */
.upload-box img[data-evt-img-p] {
  width: 100%; max-height: 132px; object-fit: cover;
  border-radius: 8px; margin-top: 6px;
}

/* ================= 已结束的活动（置灰） =================
   过了结束时间那几张卡：底变灰、文字转浅灰、图片去色，一眼和「进行中」区分开。
   仍然可以点开看详情，只是不再抢注意力。用 [data-f="end"] 选择，
   和筛选用的标记同一个，不用额外加类名。 */
.evt-card[data-f="end"] {
  background: var(--wash-200) !important;   /* 比页面底(--bg #f7f8fa)更深一档，看着"沉下去" */
  border-color: var(--line) !important;
}
.evt-card[data-f="end"] .evt-title { color: var(--slate-500) !important; font-weight: 600 !important; }
.evt-card[data-f="end"] .evt-meta,
.evt-card[data-f="end"] .evt-body { color: var(--slate-400) !important; }
.evt-card[data-f="end"] .evt-co,
.evt-card[data-f="end"] .evt-del { color: var(--slate-400) !important; }
.evt-card[data-f="end"] .evt-img { filter: grayscale(1); opacity: .72; }
.evt-card[data-f="end"] .pill { opacity: .8; }

/* ================= 展具租赁页 ================= */
.rent-tools { display: flex; gap: 8px; flex-wrap: wrap; }
.rent-tools .btn { flex: 1 1 auto; min-width: 0; }
/* 停用的展具：整卡淡化，一眼看出不上架 */
.card.rent-off { opacity: .62; }
.card.rent-off .ritem-img { filter: grayscale(1); }
/* 租赁订单按城市分组时的「页面流标题」：城市名 + 单数，左侧一条主色竖线 */
.rent-flow {
  display: flex; align-items: baseline; gap: 8px;
  margin: 16px 0 8px; padding-left: 9px; position: relative;
  font-size: 13.5px; font-weight: 700; color: var(--slate-700);
}
.rent-flow::before {
  content: ''; position: absolute; left: 0; top: 3px; bottom: 2px;
  width: 3px; border-radius: 2px; background: var(--primary);
}
.rent-flow em { font-style: normal; font-size: 11px; font-weight: 400; color: var(--muted); }

/* ================= 其他城市已定展位（一城一块） =================
   同城多个展位时把城市名合到一块，下面逐条列展位号 + 金额 + 阶段，
   否则一个城市两张卡、城市名重复，读起来像两座城。 */
.cc-city.multi { display: block; }
/* 多个城市上下叠放时留出间距（原来每块外层的 margin-bottom 换成 .multi 后丢了） */
.cc-city.multi + .cc-city.multi { margin-top: 8px; }
.cc-city.multi .cc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.cc-city.multi .cc-head .cc-c-r { align-items: flex-end; text-align: right; white-space: nowrap; }
.cc-city.multi .cc-list { margin-top: 7px; display: flex; flex-direction: column; gap: 5px; }
.cc-city.multi .cc-b {
  display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: baseline;
  padding-left: 8px; border-left: 2px solid rgba(0, 0, 0, .09);
  font-size: 12.5px;
}
.cc-city.multi .cc-b b { font-weight: 600; letter-spacing: .3px; color: var(--text); }
.cc-city.multi .cc-b span { color: var(--primary); font-weight: 600; }
.cc-city.multi .cc-b em { font-style: normal; font-size: 11px; color: var(--muted); }
.cc-city.multi .cc-steps { margin-top: 7px; }

/* ================= 顶栏窄屏压缩 =================
   展会简写（如 12.4-6重庆）要能整段读出来。375/390 宽时顶栏挤了
   展会名 + 账号 + 铃铛 + 测试版 + 预览徽标 + 头像，只能把间距和字号收一点。 */
@media (max-width: 430px) {
  .topbar { gap: 8px; padding: 10px 12px; }
  .expo-pick { font-size: 14px; gap: 4px; }
}
@media (max-width: 375px) {
  .topbar { gap: 6px; padding: 10px 10px; }
  .expo-pick { font-size: 13.5px; }
  #env-tag .pill { font-size: 10px; padding: 2px 5px; }
  #me-tag .pill { font-size: 11px; padding: 2px 6px; }
}

/* ================= 下拉字段（替原生 select） =================
   原生 select 在安卓 WebView 里展开是一整屏系统列表，会把正在填的表单整块盖住。
   这里用「按钮壳 + UI.pickSheet 应用内选择器」：
   壳子和 .input 同一套高度/圆角/描边，右侧一个 ▾，点开是站内底部弹层。 */
button.sel-field {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  width: 100%; text-align: left; cursor: pointer;
  font: inherit; font-size: 14px; font-weight: 500;
  color: var(--text); background: var(--card);
  appearance: none; -webkit-appearance: none;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
button.sel-field::after {
  content: '▾'; flex: 0 0 auto;
  font-size: 11px; line-height: 1; color: var(--slate-500);
}
button.sel-field:active { background: var(--wash-100); }
button.sel-field:focus-visible { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-tint); }

/* ================= 资质提交：说明与按钮之间留间距 =================
   .hint 只有 margin-top（10px 0 0），资质页的说明文字后面直接跟着
   「提交审核」主按钮，两者贴在一起、像压在字上。这里补下边距。 */
#qual-slots > .hint { margin: 10px 0 16px; }
#qual-submit { margin-top: 2px; }

/* ================= 搜索框描边：按主题显式给色 =================
   上面那几条用的是 `var(--wash-200)`，但实测深色主题下 border-color 仍算成浅色
   （变量在 border 简写里没跟着主题走），干脆按主题写死三套，最稳。 */
html[data-theme="tool"] .top-search .input,
html[data-theme="tool"] #admin-search .input,
html[data-theme="tool"] #mine-search .input,
html[data-theme="tool"] .hist-search .input,
html[data-theme="tool"] #hist-q { border-color: #eef1f6 !important; }

html[data-theme="warm"] .top-search .input,
html[data-theme="warm"] #admin-search .input,
html[data-theme="warm"] #mine-search .input,
html[data-theme="warm"] .hist-search .input,
html[data-theme="warm"] #hist-q { border-color: #efe8dc !important; }

html[data-theme="dark"] .top-search .input,
html[data-theme="dark"] #admin-search .input,
html[data-theme="dark"] #mine-search .input,
html[data-theme="dark"] .hist-search .input,
html[data-theme="dark"] #hist-q { border-color: #2a3341 !important; }
