/* ==========================================================================
   中械服CRM — 自有视觉体系（无第三方 UI 框架依赖）
   ========================================================================== */
:root {
  --ink: #10201e;
  --ink-2: #33443f;
  --muted: #6d7f7a;
  --line: #e3eae8;
  --line-soft: #eef4f2;
  --bg: #f4f7f6;
  --card: #ffffff;
  --brand: #0e5f57;
  --brand-dark: #0a4b45;
  --brand-2: #14887c;
  --brand-soft: #e6f4f1;
  --accent: #b45309;
  --danger: #b42318;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 32, 30, .05), 0 10px 26px -22px rgba(16, 32, 30, .45);
  --font: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
          "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 650; letter-spacing: -.01em; }
p { margin: 0; }
.ic { width: 18px; height: 18px; flex: 0 0 auto; }

/* ---------------------------------------------------------------- 骨架 ---- */
.shell { display: flex; min-height: 100vh; }

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 236px;
  padding: 20px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #cfe1dd;
  background: linear-gradient(178deg, #0c302c 0%, #0a2623 52%, #071d1b 100%);
  z-index: 30;
}
.brand { display: flex; align-items: center; gap: 11px; padding: 4px 8px 20px; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 11px;
  display: grid; place-items: center;
  background: linear-gradient(150deg, #2fb3a4, #0f6b61);
  color: #fff; font-size: 18px; font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 6px 14px -8px #000;
}
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-text strong { font-size: 16px; color: #f2fbf9; letter-spacing: .01em; }
.brand-text small { font-size: 11px; color: #7fa8a2; letter-spacing: .06em; }

.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-title {
  font-size: 11px; letter-spacing: .12em; color: #6d958f;
  padding: 16px 12px 6px; text-transform: uppercase;
}
.nav-item {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 12px; border-radius: 10px;
  font-size: 14px; color: #b9d2cd;
  transition: background .15s, color .15s;
}
.nav-item:hover { background: rgba(255, 255, 255, .06); color: #f0fbf8; }
.nav-item.is-active {
  background: linear-gradient(90deg, rgba(47, 179, 164, .22), rgba(47, 179, 164, .06));
  color: #fff; font-weight: 600;
  box-shadow: inset 2px 0 0 #38c2b0;
}

.sidebar-foot {
  margin-top: auto; padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  display: flex; align-items: center; gap: 8px;
}
.me { display: flex; align-items: center; gap: 9px; min-width: 0; flex: 1; }
.avatar {
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; flex: 0 0 auto;
  background: rgba(56, 194, 176, .18); color: #a8e6dd;
  font-size: 13px; font-weight: 700;
}
.me-text { display: flex; flex-direction: column; min-width: 0; }
.me-text strong { font-size: 13px; color: #e8f4f1; }
.me-text small { font-size: 11px; color: #7fa8a2; }
.logout {
  width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center;
  color: #87aca6; transition: .15s;
}
.logout:hover { background: rgba(255, 255, 255, .08); color: #fff; }

.main { margin-left: 236px; flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 28px 14px;
  background: rgba(244, 247, 246, .86);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(227, 234, 232, .8);
}
.topbar-title { min-width: 0; }
.topbar-title h1 { font-size: 19px; }
.topbar-title .sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.topbar-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }

.content { padding: 20px 28px 56px; width: 100%; max-width: 1280px; }

.tabbar { display: none; }

/* ------------------------------------------------------------- 通用块 ---- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}
.card.tight { padding: 14px 16px; }
.card-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 14px;
}
.card-head h2 { font-size: 14.5px; }
.card-head .hint { font-size: 12px; color: var(--muted); font-weight: 400; }

.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.span-2 { grid-column: span 2; }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.between { justify-content: space-between; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.mono { font-variant-numeric: tabular-nums; }
.mt-16 { margin-top: 16px; }
.mb-12 { margin-bottom: 12px; }
.stack { display: flex; flex-direction: column; gap: 14px; }

/* ------------------------------------------------------------- 统计卡 ---- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.stat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 15px 16px 13px; box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.stat::after {
  content: ""; position: absolute; right: -26px; top: -26px;
  width: 74px; height: 74px; border-radius: 50%;
  background: radial-gradient(circle, rgba(20, 136, 124, .1), transparent 70%);
}
.stat .label { font-size: 12px; color: var(--muted); font-weight: 600; }
.stat .value {
  font-size: 27px; font-weight: 700; letter-spacing: -.02em;
  margin: 5px 0 1px; font-variant-numeric: tabular-nums;
}
.stat .value small { font-size: 13px; font-weight: 500; color: var(--muted); margin-left: 3px; }
.stat .sub { font-size: 12px; color: var(--muted); }
.stat.is-brand { background: linear-gradient(160deg, #0f665e, #0a4a45); border-color: #0d544d; }
.stat.is-brand .label, .stat.is-brand .sub { color: #a9d5cd; }
.stat.is-brand .value { color: #fff; }

/* --------------------------------------------------------------- 图表 ---- */
.chart-bars { display: flex; align-items: flex-end; gap: 8px; height: 138px; padding-top: 6px; }
.chart-bars .col {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: flex-end; gap: 5px; height: 100%; min-width: 0;
}
.chart-bars .bar {
  width: 100%; max-width: 40px; min-height: 4px;
  background: linear-gradient(180deg, #34b3a4, #0e5f57);
  border-radius: 7px 7px 3px 3px; transition: height .3s;
}
.chart-bars .col.is-today .bar { background: linear-gradient(180deg, #f0b45a, #c67a12); }
.chart-bars .val { font-size: 11px; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.chart-bars .cap { font-size: 11px; color: var(--muted); }

.rank-row { display: grid; grid-template-columns: 82px 1fr 34px; gap: 10px; align-items: center; padding: 6px 0; }
.rank-name { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-track { display: block; height: 8px; background: var(--line-soft); border-radius: 99px; overflow: hidden; }
.rank-fill {
  display: block; height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, #12857a, #38c2b0);
  min-width: 4px;
}
.rank-num { font-size: 13px; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }

/* --------------------------------------------------------------- 表格 ---- */
.table-wrap { overflow-x: auto; margin: -4px -4px 0; }
.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
.table th {
  text-align: left; font-size: 11.5px; font-weight: 600; letter-spacing: .04em;
  color: var(--muted); padding: 9px 12px; background: #fbfdfc;
  border-bottom: 1px solid var(--line); white-space: nowrap;
}
.table th:first-child { border-top-left-radius: 10px; }
.table th:last-child { border-top-right-radius: 10px; }
.table td { padding: 12px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #fafcfc; }
.table .strong { font-weight: 600; }
.table .num { font-variant-numeric: tabular-nums; }

/* --------------------------------------------------------------- 徽标 ---- */
.badge {
  display: inline-flex; align-items: center; gap: 4px; height: 21px; padding: 0 8px;
  border-radius: 99px; font-size: 11.5px; font-weight: 600; white-space: nowrap;
  background: var(--brand-soft); color: var(--brand);
}
.badge-a { background: #fdf0d3; color: #8a5b06; }
.badge-b { background: #e4f0fb; color: #1c5d8a; }
.badge-c { background: #f1f4f3; color: #5e6e6a; }
.badge-ok { background: #e3f5e9; color: #146c3a; }
.badge-warn { background: #fdf1dc; color: #8a5b06; }
.badge-err { background: #fbe7e5; color: #a3271d; }
.badge-mute { background: #f1f4f3; color: #616f6b; }
.badge-line { background: #fff; border: 1px solid var(--line); color: var(--ink-2); }

/* --------------------------------------------------------------- 按钮 ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 38px; padding: 0 14px; border-radius: 10px; border: 1px solid transparent;
  background: var(--brand); color: #fff; font-size: 13.5px; font-weight: 600;
  font-family: inherit; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, transform .05s;
}
.btn:hover { background: var(--brand-dark); }
.btn:active { transform: translateY(1px); }
.btn .ic { width: 16px; height: 16px; }
.btn-line { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-line:hover { background: #f5faf9; border-color: #cfddda; }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { background: #eef4f2; color: var(--ink); }
.btn-danger { background: #fff; color: var(--danger); border-color: #f0d5d2; }
.btn-danger:hover { background: #fdf3f2; border-color: #e7bab5; }
.btn-sm { height: 31px; padding: 0 10px; font-size: 12.5px; border-radius: 9px; }
.btn-block { width: 100%; }

/* --------------------------------------------------------------- 表单 ---- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.field .tip { font-size: 11.5px; color: var(--muted); }
.req { color: var(--danger); margin-left: 2px; }
.input, .select, .textarea {
  width: 100%; height: 42px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff;
  font-family: inherit; font-size: 14px; color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.textarea { height: auto; min-height: 92px; padding: 10px 12px; resize: vertical; line-height: 1.6; }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--brand-2); box-shadow: 0 0 0 3px rgba(20, 136, 124, .12);
}
.input::placeholder, .textarea::placeholder { color: #a7b5b1; }
.select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236d7f7a' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center; padding-right: 34px;
}
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips input { position: absolute; opacity: 0; width: 0; height: 0; }
.chips label {
  display: inline-flex; align-items: center; height: 36px; padding: 0 13px;
  border: 1px solid var(--line); border-radius: 99px; background: #fff;
  font-size: 13px; color: var(--ink-2); cursor: pointer; user-select: none;
  transition: .15s;
}
.chips label:hover { border-color: #b9d5d0; }
.chips input:checked + label {
  background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600;
  box-shadow: 0 4px 10px -6px rgba(14, 95, 87, .8);
}
.chips input:focus-visible + label { box-shadow: 0 0 0 3px rgba(20, 136, 124, .18); }

/* --------------------------------------------------------------- 时间线 -- */
.tl { display: flex; flex-direction: column; }
.tl-item { display: grid; grid-template-columns: 14px 1fr; gap: 14px; padding-bottom: 18px; position: relative; }
.tl-item::before {
  content: ""; position: absolute; left: 6px; top: 15px; bottom: 0;
  width: 2px; background: var(--line-soft);
}
.tl-item:last-child { padding-bottom: 2px; }
.tl-item:last-child::before { display: none; }
.tl-dot {
  width: 14px; height: 14px; border-radius: 50%; margin-top: 4px;
  background: #fff; border: 3px solid var(--brand-2);
}
.tl-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.tl-head strong { font-size: 13.5px; }
.tl-head time { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tl-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.tl-note {
  margin-top: 8px; font-size: 13px; color: var(--ink-2);
  background: #f8fbfa; border: 1px solid var(--line-soft);
  border-radius: 10px; padding: 8px 11px; white-space: pre-wrap; word-break: break-word;
}
.tl-foot { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 7px; font-size: 12px; color: var(--muted); }

/* --------------------------------------------------------------- 其他 ---- */
.flashes { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.flash {
  padding: 10px 14px; border-radius: 10px; font-size: 13px; font-weight: 500;
  border: 1px solid transparent; animation: flash-in .25s ease-out;
}
.flash-ok { background: #e9f7ee; border-color: #c8e9d3; color: #146c3a; }
.flash-err { background: #fdeceb; border-color: #f6cfcb; color: #a3271d; }
@keyframes flash-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

.empty { text-align: center; padding: 40px 16px; color: var(--muted); }
.empty .ic { width: 30px; height: 30px; opacity: .45; margin-bottom: 10px; }
.empty strong { display: block; font-size: 14.5px; color: var(--ink-2); margin-bottom: 4px; }
.empty p { font-size: 12.5px; }

.toolbar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 12px 14px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 16px;
}
.toolbar .input, .toolbar .select { height: 36px; font-size: 13px; }
.toolbar .search { flex: 1 1 220px; min-width: 160px; }
.toolbar .select { width: auto; min-width: 104px; }

.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.pager .info { font-size: 12.5px; color: var(--muted); }
.pager .links { display: flex; gap: 6px; }

.kv { display: grid; grid-template-columns: 76px 1fr; gap: 8px 12px; font-size: 13.5px; }
.kv dt { color: var(--muted); font-size: 12.5px; }
.kv dd { margin: 0; word-break: break-word; }

.profile-head { display: flex; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.profile-avatar {
  width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand); font-size: 22px; font-weight: 700;
  flex: 0 0 auto;
}
.divider { height: 1px; background: var(--line); margin: 16px 0; }

.inline-form { display: inline; }.link-danger {
  background: none; border: 0; padding: 0; cursor: pointer;
  font-family: inherit; font-size: inherit; color: var(--danger);
}
.link-danger:hover { text-decoration: underline; }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .92em; background: #eaf1ef; color: #24564f;
  padding: 1px 5px; border-radius: 5px;
}
a:hover code { background: #dfeae7; }

.token-box {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px; line-height: 1.7; letter-spacing: .01em;
  background: #0f2e2b; color: #b7e9e0;
  padding: 14px 16px; border-radius: 10px; word-break: break-all;
}
.code-block {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px; line-height: 1.7;
  background: #0f2e2b; color: #d7ece7;
  padding: 12px 14px; border-radius: 10px;
  white-space: pre; overflow-x: auto; margin: 0;
}

/* --------------------------------------------------------------- 登录 ---- */
body.auth-body { background: #eef3f2; }
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr; }
.auth-hero {
  position: relative; overflow: hidden; padding: 52px 56px;
  display: flex; flex-direction: column; justify-content: space-between;
  background: radial-gradient(130% 130% at 0% 0%, #14776d 0%, #0b2b28 52%, #061a18 100%);
  color: #dcefeb;
}
.auth-hero::after {
  content: ""; position: absolute; right: -18%; bottom: -32%;
  width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 194, 176, .28), transparent 66%);
}
.auth-hero .brand { padding: 0; }
.auth-hero .brand-mark { width: 44px; height: 44px; font-size: 20px; }
.auth-hero .brand-text strong { font-size: 18px; }
.auth-copy { position: relative; z-index: 1; max-width: 460px; }
.auth-copy h2 { font-size: 34px; line-height: 1.28; color: #fff; letter-spacing: -.02em; }
.auth-copy p { margin-top: 14px; font-size: 14.5px; color: #a9cdc6; line-height: 1.75; }
.auth-points { display: flex; flex-direction: column; gap: 10px; margin-top: 26px; }
.auth-point { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: #cbe4df; }
.auth-point i {
  width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center;
  background: rgba(56, 194, 176, .18); color: #7fded1; font-size: 12px; font-style: normal;
}
.auth-foot { position: relative; z-index: 1; font-size: 12px; color: #6f9a94; }
.auth-card { display: flex; align-items: center; justify-content: center; padding: 32px 24px; }
.auth-box { width: 100%; max-width: 372px; }
.auth-box h1 { font-size: 23px; }
.auth-box .lede { color: var(--muted); font-size: 13.5px; margin: 6px 0 26px; }
.auth-box .field { margin-bottom: 14px; }
.auth-error {
  background: #fdeceb; border: 1px solid #f6cfcb; color: #a3271d;
  padding: 9px 12px; border-radius: 10px; font-size: 13px; margin-bottom: 14px;
}
.auth-hint { margin-top: 18px; font-size: 12px; color: var(--muted); line-height: 1.7; }
.auth-hint code { background: #e8efed; padding: 1px 6px; border-radius: 5px; font-size: 11.5px; }

.auth-mobile-brand { display: none; align-items: center; gap: 11px; margin-bottom: 28px; }
.auth-mobile-brand .brand-mark {
  width: 40px; height: 40px; border-radius: 12px; font-size: 19px;
  display: grid; place-items: center;
  background: linear-gradient(150deg, #2fb3a4, #0f6b61); color: #fff; font-weight: 700;
}
.auth-mobile-brand .brand-text strong { color: var(--ink); font-size: 16px; }
.auth-mobile-brand .brand-text small { color: var(--muted); font-size: 11px; letter-spacing: .05em; }

/* ------------------------------------------------------------- 响应式 ---- */
@media (max-width: 1180px) {
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .sidebar { display: none; }
  .main { margin-left: 0; }
  .topbar { padding: 12px 16px 10px; }
  .topbar-title h1 { font-size: 17px; }
  .content { padding: 14px 14px 92px; }
  .g2, .g3, .g4 { grid-template-columns: minmax(0, 1fr); }
  .span-2 { grid-column: auto; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stat .value { font-size: 23px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .auth { grid-template-columns: 1fr; }
  .auth-hero { display: none; }
  .auth-card { padding: 24px 20px; min-height: 100vh; }
  .auth-mobile-brand { display: flex; }
  .toolbar { padding: 10px; gap: 8px; }
  .toolbar .search { flex: 1 1 100%; }

  /* 底部导航 */
  .tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    display: grid; grid-template-columns: repeat(5, 1fr);
    align-items: center; height: 62px;
    padding-bottom: env(safe-area-inset-bottom);
    background: rgba(255, 255, 255, .94);
    backdrop-filter: saturate(160%) blur(12px);
    border-top: 1px solid var(--line);
  }
  .tab {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px; height: 100%; font-size: 10.5px; color: #7d8f8a;
  }
  .tab .ic { width: 21px; height: 21px; }
  .tab.is-active { color: var(--brand); font-weight: 600; }
  .tab-main { position: relative; }
  .tab-fab {
    width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center;
    background: linear-gradient(150deg, #1a9c8f, #0b564f); color: #fff;
    box-shadow: 0 8px 18px -8px rgba(11, 86, 79, .9);
    margin-top: -18px;
  }
  .tab-fab .ic { width: 24px; height: 24px; }

  /* 表格转卡片 */
  .table-wrap { overflow: visible; margin: 0; }
  .table thead { display: none; }
  .table, .table tbody { display: block; width: 100%; }
  .table tr {
    display: block; background: #fff; border: 1px solid var(--line);
    border-radius: 12px; margin-bottom: 10px; padding: 2px 0 9px; box-shadow: var(--shadow);
  }
  .table td {
    position: relative; display: block;
    border: 0; padding: 6px 14px 6px 90px; text-align: left;
  }
  .table td::before {
    content: attr(data-label); position: absolute; left: 14px; top: 6px;
    width: 68px; color: var(--muted); font-size: 12px; line-height: 1.6;
  }
  .table td:first-child { display: block; padding: 12px 14px 9px; }
  .table td:first-child::before { display: none; }
  .table td:first-child .small { margin-top: 3px; }
  .table td:last-child { padding-bottom: 4px; }
  .card { padding: 14px; }
  .chart-bars { height: 118px; gap: 6px; }
  .rank-row { grid-template-columns: 72px 1fr 30px; }
  .topbar-title .sub {
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 56vw;
  }
}

@media (max-width: 420px) {
  .stat { padding: 12px 13px 11px; }
  .stat .value { font-size: 22px; }
  .stat .label { font-size: 11.5px; }
  .stat .sub { font-size: 11px; }
}

/* ------------------------------------------------------ 销售手机端 /m ---- */
.m-wrap { max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }

.m-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.m-stat {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 12px 14px; box-shadow: var(--shadow);
}
.m-stat span { display: block; font-size: 12px; color: var(--muted); }
.m-stat strong { font-size: 24px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }

.m-primary {
  display: flex; align-items: center; gap: 14px;
  background: linear-gradient(150deg, #17786d, #0b4f48);
  color: #fff; border-radius: 18px; padding: 18px 18px;
  box-shadow: 0 14px 30px -18px rgba(11, 79, 72, .9);
}
.m-primary:active { transform: translateY(1px); }
.m-primary-icon {
  width: 46px; height: 46px; border-radius: 14px; flex: 0 0 auto;
  display: grid; place-items: center; background: rgba(255, 255, 255, .16);
}
.m-primary-icon .ic { width: 24px; height: 24px; }
.m-primary strong { display: block; font-size: 17px; }
.m-primary small { display: block; font-size: 12.5px; color: #b9e2db; margin-top: 2px; }

.m-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.m-tile {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 14px; display: flex; flex-direction: column; gap: 4px;
  box-shadow: var(--shadow); min-height: 96px;
}
.m-tile .ic { width: 22px; height: 22px; color: var(--brand); margin-bottom: 2px; }
.m-tile strong { font-size: 14.5px; }
.m-tile small { font-size: 11.5px; color: var(--muted); }

.m-plan, .m-recent {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 0; border-bottom: 1px solid var(--line-soft);
}
.m-plan:last-child, .m-recent:last-child { border-bottom: 0; }
.m-plan-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.m-plan-main strong, .m-recent strong { font-size: 14px; }
.m-recent > span:first-child { display: flex; flex-direction: column; min-width: 0; }

/* ------------------------------------------------------------ 计划列表 ---- */
.plan-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 0; border-bottom: 1px solid var(--line-soft);
}
.plan-row:last-child { border-bottom: 0; }
.plan-main { min-width: 0; }

.mini-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 9px 0; border-bottom: 1px solid var(--line-soft);
}
.mini-row:last-child { border-bottom: 0; }

/* ------------------------------------------------------------ 销售漏斗 ---- */
.funnel { display: flex; flex-direction: column; gap: 12px; }
.funnel-step { display: grid; grid-template-columns: 74px 1fr 84px; gap: 12px; align-items: center; }
.funnel-label { font-size: 13px; color: var(--ink-2); }
.funnel-track { height: 26px; background: var(--line-soft); border-radius: 8px; overflow: hidden; }
.funnel-fill {
  display: block; height: 100%; border-radius: 8px; min-width: 4px;
  background: linear-gradient(90deg, #12857a, #38c2b0);
}
.funnel-fill.f2 { background: linear-gradient(90deg, #0f7d72, #2ab3a3); }
.funnel-fill.f3 { background: linear-gradient(90deg, #0d6d64, #1f9a8c); }
.funnel-fill.f4 { background: linear-gradient(90deg, #b8860b, #e0a92a); }
.funnel-num { font-size: 15px; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.funnel-num span { display: block; font-size: 11px; font-weight: 500; color: var(--muted); }

.rate-cell { display: flex; align-items: center; gap: 8px; min-width: 120px; }
.rate-track { flex: 1; height: 6px; background: var(--line-soft); border-radius: 99px; overflow: hidden; }
.rate-fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, #12857a, #38c2b0); }

@media (max-width: 960px) {
  .m-wrap { max-width: 100%; }
  .m-stats { gap: 8px; }
  .m-stat strong { font-size: 21px; }
  .funnel-step { grid-template-columns: 62px 1fr 70px; gap: 8px; }
  .funnel-track { height: 22px; }
}

/* ------------------------------------------------------ 管理看板 / 人员 ---- */
.people { display: flex; flex-direction: column; }
.person {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 4px; border-bottom: 1px solid var(--line-soft);
  transition: background .15s;
}
.person:last-child { border-bottom: 0; }
.person:hover { background: #fafcfc; }
.person-avatar {
  width: 38px; height: 38px; border-radius: 50%; flex: 0 0 auto;
  display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand);
  font-size: 15px; font-weight: 700;
}
.person-avatar.sm { width: 30px; height: 30px; font-size: 13px; }
.person-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.person-main strong { font-size: 14.5px; }
.person-main small { font-size: 12px; color: var(--muted); }
.person-stats { display: flex; gap: 16px; flex: 0 0 auto; }
.person-stats span { font-size: 11px; color: var(--muted); text-align: right; }
.person-stats b { display: block; font-size: 16px; color: var(--ink); font-variant-numeric: tabular-nums; }

.report-item { padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.report-item:last-child { border-bottom: 0; }

@media (max-width: 960px) {
  .person { flex-wrap: wrap; }
  .person-stats { width: 100%; justify-content: space-between; gap: 8px; padding-left: 50px; }
  .person-stats span { text-align: left; }
}

@media print {
  .sidebar, .tabbar, .topbar-actions, .btn { display: none !important; }
  .main { margin-left: 0; }
  .card { box-shadow: none; border-color: #ddd; }
}

/* ==========================================================================
   销售手机端 2.0 —— 只用两屏：/m（今天）与 /m/visit（登记）
   ========================================================================== */
.m-mode .tabbar { display: none; }
.m-mode .content { padding-bottom: 132px; }
.m-mode .topbar { align-items: flex-start; }

.m-wrap { max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.m-form { max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }

.m-panel {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow); padding: 4px 14px 6px;
}
.m-panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 0 8px;
}
.m-panel-head h2 {
  font-size: 13.5px; font-weight: 600; color: var(--muted); letter-spacing: .02em;
  display: flex; align-items: center; gap: 8px; margin: 0;
}
.m-count { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.m-step {
  width: 20px; height: 20px; border-radius: 50%; background: var(--brand-soft);
  color: var(--brand); font-size: 12px; font-weight: 700;
  display: inline-grid; place-items: center;
}
.m-optional { font-style: normal; font-size: 11.5px; color: var(--muted); font-weight: 500; }

.m-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line-soft); }
.m-panel-head + .m-row, .m-empty + .m-panel .m-row:first-of-type { border-top: 0; }
.m-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.m-row-main strong { font-size: 16.5px; letter-spacing: -.01em; }
.m-row-main small { font-size: 12.5px; color: var(--muted); }
.m-row-main a { color: var(--brand-2); }

.m-go {
  flex: 0 0 auto; height: 46px; min-width: 76px; padding: 0 18px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 13px; background: var(--brand); color: #fff;
  font-size: 15px; font-weight: 600;
  box-shadow: 0 10px 18px -14px rgba(11, 79, 72, .95);
}
.m-go:active { transform: scale(.97); }

.m-ok {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand);
}
.m-ok .ic { width: 15px; height: 15px; }

.m-hint { font-size: 13px; color: var(--muted); margin: 10px 0 12px; }
.m-tip { text-align: center; font-size: 12px; color: var(--muted); }
.m-empty {
  background: var(--card); border: 1px dashed var(--line); border-radius: 16px;
  padding: 26px 18px; text-align: center;
}
.m-empty strong { display: block; font-size: 16px; }
.m-empty p { margin: 6px 0 0; font-size: 13px; color: var(--muted); }

/* 底部主按钮 */
.m-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--bg) 62%, rgba(244, 247, 246, 0));
}
.m-cta-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; max-width: 560px; margin: 0 auto; height: 56px;
  border: 0; border-radius: 16px; font-family: inherit;
  background: linear-gradient(150deg, #17786d, #0b4f48); color: #fff;
  font-size: 17px; font-weight: 700; letter-spacing: .02em;
  box-shadow: 0 18px 28px -20px rgba(11, 79, 72, .95);
}
.m-cta-btn .ic { width: 22px; height: 22px; }
.m-cta-btn:disabled { opacity: .4; box-shadow: none; }
.m-cta-btn:active:not(:disabled) { transform: translateY(1px); }

/* 顶部「更多」 */
.m-more { position: relative; }
.m-more > summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 3px;
  height: 34px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--line);
  background: var(--card); font-size: 13px; color: var(--ink-2);
}
.m-more > summary::-webkit-details-marker { display: none; }
.m-more > summary .ic { width: 15px; height: 15px; }
.m-more-menu {
  position: absolute; right: 0; top: 42px; width: 186px; z-index: 50;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 20px 44px -24px rgba(9, 38, 35, .6); padding: 6px;
}
.m-more-menu a { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 10px; font-size: 14.5px; }
.m-more-menu a:active { background: var(--brand-soft); }
.m-more-menu .ic { width: 18px; height: 18px; color: var(--brand); }

/* 登记页 */
.m-cancel { font-size: 14px; color: var(--muted); padding: 8px 4px; }
.m-picked { font-size: 12.5px; color: var(--brand); max-width: 50vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-search {
  width: 100%; height: 46px; border-radius: 12px; border: 1px solid var(--line);
  padding: 0 14px; font-size: 16px; font-family: inherit; background: #fbfdfc; color: var(--ink);
}
.m-search:focus { outline: 2px solid var(--brand-soft); border-color: var(--brand); }
.m-picks {
  display: flex; flex-direction: column; gap: 8px;
  max-height: 34vh; overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 8px 0 10px;
}
.m-pick {
  text-align: left; font-family: inherit; cursor: pointer;
  background: #fbfdfc; border: 1px solid var(--line); border-radius: 12px;
  padding: 11px 13px; display: flex; flex-direction: column; gap: 3px; min-height: 56px;
}
.m-pick-name { font-size: 15.5px; font-weight: 600; color: var(--ink); }
.m-pick-meta { font-size: 12px; color: var(--muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.m-pick.is-on { border-color: var(--brand); background: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--brand); }
.m-tag { font-style: normal; font-size: 11px; padding: 1px 7px; border-radius: 99px; background: #fff; color: var(--brand); border: 1px solid var(--brand); }

.m-results { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 6px 0 12px; }
.m-result { position: relative; }
.m-result input { position: absolute; opacity: 0; pointer-events: none; }
.m-result span {
  display: flex; align-items: center; justify-content: center; height: 52px;
  border-radius: 12px; border: 1px solid var(--line); background: #fbfdfc;
  font-size: 15px; font-weight: 600; color: var(--ink-2);
}
.m-result input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.m-result input:focus-visible + span { outline: 2px solid var(--brand-soft); }
.m-result[data-v="已成交"] input:checked + span { background: #0b7a52; border-color: #0b7a52; }
.m-result[data-v="需跟进"] input:checked + span { background: #b06f14; border-color: #b06f14; }
.m-result[data-v="有进展"] input:checked + span { background: var(--brand-2); border-color: var(--brand-2); }
.m-result[data-v="暂无进展"] input:checked + span { background: #64756f; border-color: #64756f; }
.m-result[data-v="已流失"] input:checked + span { background: #9c3f36; border-color: #9c3f36; }

.m-note {
  width: 100%; border-radius: 12px; border: 1px solid var(--line);
  padding: 12px 14px; font-size: 16px; line-height: 1.55; font-family: inherit;
  background: #fbfdfc; color: var(--ink); resize: vertical; min-height: 92px;
}
.m-note:focus { outline: 2px solid var(--brand-soft); border-color: var(--brand); }

@media (max-width: 960px) {
  .m-mode .sidebar { display: none; }
  .m-mode .shell { grid-template-columns: 1fr; }
}

.m-mode .sidebar { display: none; }
.m-mode .main { margin-left: 0; }
.m-mode .content { max-width: 620px; }
.m-results .m-result:last-child { grid-column: span 2; }

/* ------------------------------------------------- 手机端两屏：底部两 tab ---- */
.m-tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 36;
  display: grid; grid-template-columns: 1fr 1fr;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(160%) blur(12px);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.m-tab {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; height: 62px; font-size: 11px; color: #7d8f8a;
}
.m-tab .ic { width: 21px; height: 21px; }
.m-tab.is-active { color: var(--brand); font-weight: 600; }

.m-mode .content { padding-bottom: 174px; }
.m-mode .m-cta {
  bottom: calc(62px + env(safe-area-inset-bottom));
  padding: 12px 14px;
  background: linear-gradient(to top, var(--bg) 62%, rgba(244, 247, 246, 0));
}
.m-add { margin-bottom: 2px; }

.m-badge {
  flex: 0 0 auto; font-size: 11.5px; font-weight: 600;
  padding: 3px 9px; border-radius: 99px; white-space: nowrap;
}
.m-badge.ok { background: var(--brand-soft); color: var(--brand); }
.m-badge.warn { background: #fdf1e0; color: #9a6212; }
.m-badge.mut { background: #eef2f1; color: #62736f; }

.m-edit {
  flex: 0 0 auto; font-size: 13px; color: var(--brand);
  padding: 7px 11px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff;
}
.m-edit:active { background: var(--brand-soft); }

.m-row-main strong {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* 报告页 */
.m-seg { display: flex; background: #eef2f1; border-radius: 99px; padding: 3px; }
.m-seg a { font-size: 13px; padding: 6px 14px; border-radius: 99px; color: var(--muted); }
.m-seg a.is-on { background: #fff; color: var(--brand); font-weight: 600; box-shadow: 0 1px 3px rgba(16, 32, 30, .14); }

.m-nav {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  font-size: 12.5px; color: var(--muted);
}
.m-nav strong { font-size: 13.5px; color: var(--ink); }

.m-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.m-summary > div {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 10px 6px; text-align: center; box-shadow: var(--shadow);
}
.m-summary span { display: block; font-size: 11.5px; color: var(--muted); }
.m-summary strong { font-size: 19px; font-variant-numeric: tabular-nums; }

.m-bars { display: flex; align-items: flex-end; gap: 8px; height: 104px; padding: 8px 4px 2px; }
.m-bar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 5px; }
.m-bar-col {
  width: 100%; max-width: 26px; min-height: 2px; border-radius: 6px 6px 3px 3px;
  background: linear-gradient(180deg, #2ab3a3, #0e5f57);
}
.m-bar em { font-style: normal; font-size: 10.5px; color: var(--muted); }

/* 拜访目的 chips */
.m-chips { display: flex; gap: 8px; overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 6px 0 12px; }
.m-chip { flex: 0 0 auto; }
.m-chip input { position: absolute; opacity: 0; pointer-events: none; }
.m-chip span {
  display: inline-flex; align-items: center; height: 40px; padding: 0 14px;
  border-radius: 99px; border: 1px solid var(--line); background: #fbfdfc;
  font-size: 13.5px; color: var(--ink-2); white-space: nowrap;
}
.m-chip input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ------------------------------------------------------ 打卡 / 双动作行 ---- */
.m-actions { display: grid; grid-template-columns: 1fr 1.35fr; gap: 10px; }
.m-act {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  height: 56px; border-radius: 16px; font-size: 16px; font-weight: 700;
}
.m-act .ic { width: 20px; height: 20px; }
.m-act-ghost { background: #fff; border: 1px solid var(--brand); color: var(--brand); }
.m-act-main {
  background: linear-gradient(150deg, #17786d, #0b4f48); color: #fff;
  box-shadow: 0 16px 26px -20px rgba(11, 79, 72, .95);
}
.m-act:active { transform: translateY(1px); }

.m-toggle {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 2px; font-size: 15px; font-weight: 600;
}
.m-toggle input { width: 22px; height: 22px; accent-color: var(--brand); }
.m-toggle span { display: inline-flex; align-items: center; gap: 6px; }
.m-toggle .ic { width: 18px; height: 18px; color: var(--brand); }

.m-row-last { border-top: 0; padding-top: 2px; padding-bottom: 12px; }

/* 导航图标按钮（手机端计划行） */
.m-icon-btn {
  flex: 0 0 auto; width: 44px; height: 46px; border-radius: 13px;
  display: grid; place-items: center; border: 1px solid var(--line);
  background: #fff; color: var(--brand);
}
.m-icon-btn:active { background: var(--brand-soft); }
.m-icon-btn .ic { width: 20px; height: 20px; }

/* 打卡选地点 */
.m-places {
  display: flex; flex-direction: column; gap: 8px;
  padding: 8px 0 10px; max-height: 42vh; overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.m-place {
  text-align: left; font-family: inherit; cursor: pointer;
  background: #fbfdfc; border: 1px solid var(--line); border-radius: 12px;
  padding: 10px 12px; display: flex; flex-direction: column; gap: 3px;
}
.m-place strong { font-size: 14.5px; color: var(--ink); font-weight: 600; }
.m-place small { font-size: 12px; color: var(--muted); }
.m-place.is-on { border-color: var(--brand); background: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--brand); }

/* 手机端：内容与底部按钮同一宽度、居中 */
.m-mode .content { max-width: 620px; margin: 0 auto; }
.m-cta { max-width: 588px; margin: 0 auto; }
.m-cta-btn { max-width: 100%; }

/* 打卡：定位状态与地点合并 */
.m-locline {
  display: flex; align-items: center; gap: 8px;
  margin: 0 0 8px; font-size: 12px; color: var(--muted);
}
.m-locline #locInfo { color: #8d9c98; }
.m-link {
  margin-left: auto; background: none; border: 0; padding: 0;
  font-family: inherit; font-size: 12.5px; color: var(--brand); cursor: pointer;
}

/* 手机端删除按钮 */
.m-del {
  background: none; border: 0; padding: 6px 4px; cursor: pointer;
  font-family: inherit; font-size: 12.5px; color: #a3271d;
}
.m-row form { margin: 0; }

.m-more-link {
  display: block; text-align: center; padding: 12px 0 4px;
  font-size: 13px; color: var(--brand);
}

/* 地图选点 */
.map-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(8, 20, 18, .55);
  display: flex; align-items: flex-end; justify-content: center;
}
.map-overlay[hidden] { display: none; }
.map-sheet {
  width: 100%; max-width: 680px; max-height: 92vh; overflow-y: auto; background: #fff;
  border-radius: 18px 18px 0 0; padding: 12px 14px 16px;
}
.map-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 2px 2px 10px; font-size: 14px; font-weight: 600;
}
.map-close { border: 0; background: none; color: var(--muted); font-size: 13px; }
.map-box {
  position: relative; z-index: 1;
  width: 100%; height: 52vh; min-height: 260px;
  border-radius: 12px; overflow: hidden; background: #eef2f1;
}
.map-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 10px; font-size: 12.5px; color: var(--muted);
}
@media (min-width: 700px) {
  .map-overlay { align-items: center; }
  .map-sheet { border-radius: 18px; max-width: 720px; }
  .map-box { height: 460px; }
}

.map-search { position: relative; z-index: 7; display: flex; gap: 8px; margin-bottom: 10px; }
.map-search input {
  flex: 1; height: 38px; padding: 0 12px; font-size: 14px;
  border: 1px solid var(--line); border-radius: 10px;
  background: #fff; color: var(--ink);
}
.map-search input:focus { outline: none; border-color: var(--brand-2); }
.map-search button {
  height: 38px; padding: 0 16px; border: 0; border-radius: 10px;
  background: var(--brand); color: #fff; font-size: 13.5px;
}
.map-tips {
  position: relative; z-index: 6;
  max-height: 30vh; overflow-y: auto; margin-bottom: 10px;
  border: 1px solid var(--line-soft); border-radius: 10px; background: #fff;
}
.map-tip {
  display: block; width: 100%; text-align: left; padding: 9px 12px;
  border: 0; border-bottom: 1px solid var(--line-soft); background: none;
}
.map-tip:last-child { border-bottom: 0; }
.map-tip strong { display: block; font-size: 13.5px; color: var(--ink); }
.map-tip small { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }

.map-foot-btns { display: flex; align-items: center; gap: 8px; }
.map-reloc {
  border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  border-radius: 8px; padding: 5px 10px; font-size: 12.5px;
}

.map-fallback { margin-bottom: 8px; }

/* 目的 / 结果多选 */
.filter-pop { position: relative; }
.filter-pop > summary {
  cursor: pointer; list-style: none;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border: 1px solid var(--line); border-radius: 9px;
  background: #fff; font-size: 13px; color: var(--ink-2); white-space: nowrap;
}
.filter-count:not(:empty) {
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--brand); color: #fff; font-size: 11px;
  display: inline-flex; align-items: center; justify-content: center;
}
.filter-caret { font-size: 11px; color: var(--muted); transition: transform .15s; }
.filter-pop[open] .filter-caret { transform: rotate(180deg); }
.filter-pop > summary::-webkit-details-marker { display: none; }
.filter-pop[open] > summary { border-color: var(--brand-2); }
.filter-pop-body {
  position: absolute; z-index: 20; top: calc(100% + 6px); left: 0;
  width: 230px; max-height: 320px; overflow-y: auto;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 12px 30px rgba(20, 40, 36, .12); padding: 8px 10px;
}
.filter-group-title {
  font-size: 12px; color: var(--muted); margin: 8px 0 4px;
}
.filter-group-title:first-child { margin-top: 2px; }
.filter-check {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 4px; font-size: 13px; border-radius: 6px;
}
.filter-check:hover { background: var(--bg-soft); }
