/* 配色、圆角、阴影沿用新途径中台（xin-buddy）的设计规范：品牌蓝 #0054ff、浅蓝灰底、浅色侧栏 */
:root {
  --brand: #0054ff;
  --brand-hover: #0048d9;
  --brand-active: #003fbd;
  --brand-ink: #003a9f;
  --brand-soft: #e5edff;
  --brand-softer: #f2f6ff;
  --brand-border: #b8ccff;
  --brand-ring: #0054ff1f;

  --bg: #f5f7fb;
  --panel: #ffffff;
  --panel-soft: #f7f9fd;
  --ink-strong: #111827;
  --ink: #172033;
  --ink-2: #475467;
  --ink-3: #667085;
  --ink-4: #9aa3b2;
  --line: #dce4f2;
  --line-soft: #edf1f7;

  --accent: var(--brand);
  --accent-ink: #ffffff;
  --accent-soft: var(--brand-soft);

  --high: #d9480f;
  --high-soft: #fff0e6;
  --mid: #b77900;
  --mid-soft: #fff6df;
  --low: #667085;
  --low-soft: #f2f4f7;
  --bad: #c2413f;
  --bad-soft: #fdeceb;
  --good: #16855d;
  --good-soft: #e4f5ed;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 3px 16px rgba(27, 49, 91, .04);
  --shadow-hover: 0 10px 26px rgba(28, 51, 97, .10);
  --shadow-pop: 0 18px 48px rgba(23, 32, 51, .16);
  --num: "DIN Alternate", "Bahnschrift", "DIN", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 15px;
}

* { box-sizing: border-box; }
html, body { margin: 0; color: var(--ink); }
body {
  font-family: "Geist Variable", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background:
    radial-gradient(circle at 54% -12%, #0054ff1c, transparent 30rem),
    radial-gradient(circle at 96% 4%, #8db4ff38, transparent 28rem),
    linear-gradient(180deg, #fff 0%, #f8fbff 100%) fixed;
  background-color: var(--bg);
  min-height: 100vh;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-hover); }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-3); }
.small { font-size: 13px; }
.hidden, [hidden] { display: none !important; }
svg.i { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- 布局 ---------- */
.shell { display: flex; min-height: 100vh; }
.nav {
  width: 224px; flex-shrink: 0; background: #f3f6fbf2; color: var(--ink-2);
  border-right: 1px solid #e5eaf2;
  display: flex; flex-direction: column; padding: 18px 12px 14px; position: sticky; top: 0; height: 100vh;
}
.nav .brand { display: flex; align-items: center; gap: 10px; padding: 2px 8px 20px; color: var(--ink-strong); }
.nav .brand .logo {
  width: 34px; height: 34px; border-radius: 11px; flex-shrink: 0; display: grid; place-items: center;
  background: linear-gradient(145deg, #3b7bff, var(--brand) 55%, #0040d0); color: #fff;
  font-weight: 800; font-size: 17px; box-shadow: 0 6px 16px rgba(0, 84, 255, .25);
}
.nav .brand b { display: block; font-size: 16px; letter-spacing: .3px; line-height: 1.25; }
.nav .brand small { display: block; font-size: 12px; color: var(--ink-3); font-weight: 400; }
.nav .group { font-size: 12px; color: var(--ink-4); padding: 0 12px 6px; }
.nav button {
  background: none; border: 0; text-align: left; padding: 9px 12px; border-radius: 12px; cursor: pointer;
  color: inherit; display: flex; align-items: center; gap: 10px; margin-bottom: 2px; font-size: 14.5px;
  transition: background .15s, color .15s;
}
.nav button:hover { background: #fff; color: var(--ink-strong); }
.nav button.on { background: #0054ff14; color: var(--brand); font-weight: 600; }
.nav button.on svg.i { stroke-width: 2; }
.nav button:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--brand-ring); }
.nav .badge { margin-left: auto; background: var(--high); color: #fff; border-radius: 10px; padding: 0 7px; font-size: 12px; font-weight: 600; line-height: 18px; }
.nav .foot {
  margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px;
  background: #fff; border: 1px solid #e5eaf2; box-shadow: var(--shadow);
}
.avatar {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand); font-weight: 700; font-size: 14px;
}
.nav .foot .who { min-width: 0; flex: 1; line-height: 1.3; }
.nav .foot .who b { display: block; font-size: 14px; color: var(--ink-strong); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav .foot .who span { font-size: 12px; color: var(--ink-3); }
.nav .foot button { margin: 0; padding: 6px; border-radius: 8px; color: var(--ink-3); }
.nav .foot button:hover { background: var(--bad-soft); color: var(--bad); }
.main { flex: 1; min-width: 0; padding: 26px 32px 60px; max-width: 1320px; }
.page-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head h1 { font-size: 22px; font-weight: 700; color: var(--ink-strong); margin: 0; margin-right: auto; letter-spacing: .2px; }

@media (max-width: 860px) {
  .shell { display: block; }
  .nav {
    position: fixed; bottom: 0; left: 0; right: 0; top: auto; height: auto; width: auto; z-index: 20;
    flex-direction: row; padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); justify-content: space-around;
    border-right: 0; border-top: 1px solid #e5eaf2; background: #ffffffc7;
    -webkit-backdrop-filter: blur(24px) saturate(150%); backdrop-filter: blur(24px) saturate(150%);
  }
  .nav .brand, .nav .foot, .nav .group { display: none; }
  .nav button { flex-direction: column; gap: 2px; font-size: 11.5px; padding: 6px 2px; flex: 1; text-align: center; align-items: center; position: relative; color: var(--ink-3); }
  .nav button:hover { background: none; }
  .nav button.on { background: none; }
  .nav button svg.i { width: 22px; height: 22px; }
  .nav .badge { position: absolute; top: 0; right: 14%; margin: 0; }
  .main { padding: 16px 12px 96px; }
  .page-head h1 { font-size: 20px; }
}

/* ---------- 基础组件 ---------- */
.card { background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; margin-bottom: 14px; }
.card h2 { font-size: 16px; font-weight: 650; color: var(--ink-strong); margin: 0 0 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; }
.card h2 .sub { font-weight: 400; font-size: 13px; color: var(--ink-3); }
.card h2 .right { margin-left: auto; font-weight: 400; }

.btn {
  border: 1px solid var(--line); background: #fff; padding: 7px 14px; border-radius: var(--radius-sm); cursor: pointer;
  white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; line-height: 1.35; color: var(--ink);
  transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
}
.btn:hover { border-color: var(--brand-border); background: var(--brand-softer); color: var(--brand); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; box-shadow: 0 2px 8px rgba(0, 84, 255, .18); }
.btn.primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); color: #fff; box-shadow: 0 6px 16px rgba(0, 84, 255, .25); }
.btn.primary:active { background: var(--brand-active); }
.btn.danger { color: var(--bad); }
.btn.danger:hover { border-color: #f1b9b8; background: var(--bad-soft); color: var(--bad); }
.btn.sm { padding: 4px 10px; font-size: 13px; border-radius: 8px; }
.btn.ghost { border-color: transparent; background: none; box-shadow: none; }
.btn.ghost:hover { background: var(--brand-softer); }
.btn:disabled { opacity: .5; cursor: default; }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--brand-ring); }

input[type=text], input[type=password], input[type=number], input[type=date], input[type=tel], input[type=search], select, textarea {
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 7px 11px; background: #fff; min-width: 0;
  transition: border-color .15s, box-shadow .15s;
}
input:hover, select:hover, textarea:hover { border-color: #c5d2ea; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-ring); }
input::placeholder, textarea::placeholder { color: var(--ink-4); }
textarea { width: 100%; resize: vertical; }
label.field { display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: var(--ink-2); }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.grow { flex: 1; }

.seg { display: inline-flex; background: #eaeff7; border-radius: 11px; padding: 3px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { white-space: nowrap; flex-shrink: 0; border: 0; background: none; padding: 5px 12px; border-radius: 8px; cursor: pointer; color: var(--ink-2); font-size: 14px; }
.seg button:hover { color: var(--ink-strong); }
.seg button.on { background: #fff; color: var(--brand); font-weight: 600; box-shadow: 0 1px 3px rgba(16, 24, 40, .10); }

.chip { display: inline-block; padding: 1px 9px; border-radius: 99px; font-size: 12px; font-weight: 600; white-space: nowrap; line-height: 20px; }
.p1 { background: var(--high-soft); color: var(--high); }
.p2 { background: var(--mid-soft); color: var(--mid); }
.p3 { background: var(--low-soft); color: var(--low); }
.s-pending { background: var(--high-soft); color: var(--high); }
.s-requested { background: var(--mid-soft); color: var(--mid); }
.s-added { background: var(--good-soft); color: var(--good); }
.s-deal { background: var(--brand); color: #fff; }
.s-failed { background: var(--low-soft); color: var(--low); }
.s-dup { background: #f2f4f7; color: #8a93a3; }

/* ---------- 看板 ---------- */
.kpis { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-bottom: 14px; }
.kpi { background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px; cursor: default; transition: box-shadow .15s, border-color .15s, transform .15s; }
.kpi[data-go] { cursor: pointer; }
.kpi[data-go]:hover { border-color: var(--brand-border); box-shadow: var(--shadow-hover); transform: translateY(-1px); }
.kpi .label { font-size: 13px; color: var(--ink-3); }
.kpi .value { font-family: var(--num); font-size: 28px; font-weight: 700; margin-top: 2px; color: var(--ink-strong); font-variant-numeric: tabular-nums; line-height: 1.25; }
.kpi .hint { font-size: 12px; color: var(--ink-4); }
.kpi.warn .value { color: var(--high); }
.kpi.money .value { color: var(--brand); }
@media (max-width: 1100px) { .kpis { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .kpis { grid-template-columns: repeat(2, 1fr); gap: 10px; } .kpi .value { font-size: 24px; } }

.tbl-wrap { overflow-x: auto; margin: 0 -18px; padding: 0 18px; }
table.tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.tbl th { text-align: right; font-weight: 600; color: var(--ink-3); font-size: 12.5px; padding: 8px 10px; background: var(--panel-soft); border-bottom: 1px solid var(--line-soft); white-space: nowrap; }
.tbl th:first-child { border-radius: 10px 0 0 10px; }
.tbl th:last-child { border-radius: 0 10px 10px 0; }
.tbl td { text-align: right; padding: 10px; border-bottom: 1px solid var(--line-soft); white-space: nowrap; font-variant-numeric: tabular-nums; }
.tbl th:first-child, .tbl td:first-child { text-align: left; }
.tbl td.l, .tbl th.l { text-align: left; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tr.off td { color: var(--ink-4); }
.tbl tfoot td { font-weight: 700; border-top: 1px solid var(--line); border-bottom: 0; color: var(--ink-strong); }
.tbl .zero { color: #c6cdd8; }
.tbl .warn { color: var(--high); font-weight: 700; }
.tbl .good { color: var(--good); font-weight: 600; }
.tbl tr.click { cursor: pointer; }
.tbl tbody tr:hover td { background: #f7f9fd; }
.rate { display: inline-flex; align-items: center; gap: 6px; }
.rate i { display: inline-block; width: 44px; height: 6px; background: #eaeff7; border-radius: 3px; overflow: hidden; }
.rate i b { display: block; height: 100%; background: var(--brand); border-radius: 3px; }

.bars { display: flex; align-items: flex-end; gap: 3px; height: 120px; padding-top: 8px; }
.bars .col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; min-width: 6px; position: relative; height: 100%; }
.bars .col .b1 { width: 100%; background: #dce8ff; border-radius: 4px 4px 0 0; position: relative; }
.bars .col .b2 { position: absolute; bottom: 0; left: 0; right: 0; background: var(--brand); border-radius: 4px 4px 0 0; }
.bars .col .d { font-size: 10px; color: var(--ink-4); margin-top: 4px; height: 14px; }
.bars-wrap { display: flex; flex-direction: column; }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--ink-2); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 4px; vertical-align: -1px; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 900px) { .grid2 { grid-template-columns: 1fr; } }

/* ---------- 线索列表 ---------- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.lead {
  background: var(--panel); border: 1px solid var(--line-soft); border-radius: 14px; box-shadow: var(--shadow); padding: 13px 16px 13px 18px; margin-bottom: 10px;
  display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; position: relative; overflow: hidden;
  transition: box-shadow .15s, border-color .15s;
}
.lead:hover { border-color: #d5e0f3; box-shadow: var(--shadow-hover); }
.lead::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: transparent; }
.lead.pri1::before { background: var(--high); }
.lead.pri2::before { background: #f0b429; }
.lead.pri3::before { background: #cfd6e1; }
.lead .contact { font-size: 17px; font-weight: 700; color: var(--ink-strong); font-family: var(--mono); letter-spacing: .3px; word-break: break-all; }
.lead .meta { font-size: 13px; color: var(--ink-2); display: flex; gap: 6px 12px; flex-wrap: wrap; align-items: center; }
.lead .note { font-size: 13px; color: var(--ink-2); grid-column: 1 / -1; background: var(--panel-soft); border: 1px solid var(--line-soft); padding: 7px 11px; border-radius: 10px; white-space: pre-wrap; word-break: break-all; }
.lead .acts { grid-column: 1 / -1; display: flex; gap: 6px; flex-wrap: wrap; }
.lead .side { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.lead .thumbs { grid-column: 1 / -1; display: flex; gap: 6px; }
.lead .thumbs img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); cursor: zoom-in; }
.copy { border: 0; background: var(--brand-soft); color: var(--brand); border-radius: 6px; padding: 2px 8px; font-size: 12px; cursor: pointer; margin-left: 6px; vertical-align: 2px; font-weight: 600; }
.copy:hover { background: #d3e0ff; }
.empty { text-align: center; color: var(--ink-3); padding: 44px 10px; }
.listhead { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--ink-2); margin: 4px 2px 10px; }

/* ---------- 提交 ---------- */
.preview-list { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.preview-item { display: flex; align-items: center; gap: 8px; font-size: 14px; padding: 7px 11px; background: var(--panel-soft); border-radius: 10px; }
.preview-item .c { font-family: var(--mono); font-weight: 600; }
.result-ok { background: var(--good-soft); }
.result-dup { background: var(--mid-soft); }

/* ---------- 导入 ---------- */
.drop {
  border: 1.5px dashed #b8ccff; border-radius: var(--radius); padding: 32px 16px; text-align: center; cursor: pointer;
  background: var(--brand-softer); transition: .15s; color: var(--ink-2);
}
.drop:hover, .drop.over { border-color: var(--brand); background: var(--brand-soft); }
.drop .big { font-size: 16px; font-weight: 600; color: var(--ink-strong); }
.cats { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 12px; }
.cat { border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 9px 13px; cursor: pointer; text-align: left; min-width: 110px; transition: border-color .15s, box-shadow .15s; }
.cat:hover { border-color: var(--brand-border); }
.cat .n { font-family: var(--num); font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.cat .t { font-size: 12.5px; color: var(--ink-2); }
.cat.on { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-ring); }
.cat.c-mismatch .n, .cat.c-missing_in_system .n, .cat.c-missing_in_sheet .n { color: var(--high); }
.cat.c-conflict .n { color: var(--mid); }
.cat.c-match .n { color: var(--good); }
.cat.zero .n { color: #c6cdd8; }
.callout { background: var(--mid-soft); color: #7a5200; border: 1px solid #fbe3a6; border-radius: 12px; padding: 10px 13px; font-size: 13.5px; margin-bottom: 12px; }
.callout.ok { background: var(--good-soft); color: #0f5e41; border-color: #bfe6d3; }
.callout.info { background: var(--brand-softer); color: var(--brand-ink); border-color: #dce8ff; }
.colmap { font-size: 12.5px; color: var(--ink-2); }
.colmap b { color: var(--ink); font-weight: 600; }

/* ---------- 弹窗 / 提示 ---------- */
.modal { position: fixed; inset: 0; background: rgba(16, 24, 40, .40); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); z-index: 50; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal-box { background: #fff; border-radius: 18px; padding: 22px; width: 100%; max-width: 440px; max-height: 90vh; overflow: auto; box-shadow: var(--shadow-pop); }
.modal-box h3 { margin: 0 0 16px; font-size: 17px; color: var(--ink-strong); }
.modal-box .foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.modal-box .stack { display: flex; flex-direction: column; gap: 12px; }
.modal-box img.full { width: 100%; border-radius: 12px; }
.toast { position: fixed; left: 50%; top: 18px; transform: translateX(-50%); background: #101828; color: #fff; padding: 10px 18px; border-radius: 12px; z-index: 60; font-size: 14px; box-shadow: 0 14px 36px rgba(23, 32, 51, .22); max-width: 90vw; }
.toast.err { background: var(--bad); }

/* ---------- 登录 ---------- */
.login { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.login-side {
  position: relative; overflow: hidden; color: #fff; padding: 48px 56px; display: flex; flex-direction: column;
  background:
    radial-gradient(70% 55% at 100% 0%, rgba(141, 180, 255, .45), transparent 60%),
    radial-gradient(60% 50% at 0% 100%, rgba(0, 40, 160, .55), transparent 70%),
    linear-gradient(155deg, #2f74ff 0%, #0054ff 45%, #0039c2 100%);
}
.login-side::after { /* 装饰圆环 */
  content: ""; position: absolute; width: 520px; height: 520px; right: -180px; bottom: -200px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .18); box-shadow: 0 0 0 60px rgba(255, 255, 255, .04), 0 0 0 140px rgba(255, 255, 255, .03);
}
.login-side .lb { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; letter-spacing: .5px; }
.login-side .lb .logo { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .35); font-weight: 800; }
.login-side h2 { font-size: 34px; line-height: 1.3; margin: auto 0 14px; font-weight: 750; letter-spacing: .5px; position: relative; z-index: 1; }
.login-side p { margin: 0 0 28px; color: rgba(255, 255, 255, .78); max-width: 420px; position: relative; z-index: 1; }
.login-side ul { list-style: none; margin: 0 0 auto; padding: 0; display: flex; flex-direction: column; gap: 12px; position: relative; z-index: 1; }
.login-side li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: rgba(255, 255, 255, .92); }
.login-side li svg.i { width: 30px; height: 30px; padding: 6px; border-radius: 9px; background: rgba(255, 255, 255, .16); }
.login-side .copy-r { font-size: 12px; color: rgba(255, 255, 255, .6); margin-top: 36px; position: relative; z-index: 1; }
.login-main { display: flex; align-items: center; justify-content: center; padding: 32px 20px; }
.login form {
  background: #fff; border: 1px solid var(--line-soft); border-radius: 20px; box-shadow: 0 12px 32px rgba(21, 94, 239, .08), var(--shadow);
  padding: 34px 30px 28px; width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 14px;
}
.login h1 { margin: 0; font-size: 24px; color: var(--ink-strong); }
.login .sub { color: var(--ink-3); font-size: 13.5px; margin: -6px 0 6px; }
.login label.field input { padding: 10px 12px; font-size: 15px; }
.login .pw { position: relative; display: flex; }
.login .pw input { flex: 1; padding-right: 42px; }
.login .pw button { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); border: 0; background: none; padding: 6px; border-radius: 8px; color: var(--ink-3); cursor: pointer; display: grid; }
.login .pw button:hover { color: var(--brand); background: var(--brand-softer); }
.login .submit { justify-content: center; padding: 11px; font-size: 15px; margin-top: 4px; border-radius: 12px; }
.login .tip { font-size: 12.5px; color: var(--ink-4); text-align: center; }
.login .mob-brand { display: none; }
.login.solo { grid-template-columns: 1fr; }
.login.solo .login-main { flex-direction: column; gap: 22px; }
.login.solo .mob-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink-strong); font-size: 17px; }
.login.solo .mob-brand .logo { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-weight: 800; background: linear-gradient(145deg, #3b7bff, var(--brand) 55%, #0040d0); box-shadow: 0 6px 16px rgba(0, 84, 255, .25); }
@media (max-width: 860px) {
  .login { grid-template-columns: 1fr; }
  .login-side { display: none; }
  .login-main { flex-direction: column; justify-content: flex-start; padding-top: 12vh; gap: 22px; }
  .login .mob-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink-strong); font-size: 17px; }
  .login .mob-brand .logo { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-weight: 800; background: linear-gradient(145deg, #3b7bff, var(--brand) 55%, #0040d0); box-shadow: 0 6px 16px rgba(0, 84, 255, .25); }
  .login form { padding: 26px 22px 22px; }
}

.timeline { font-size: 13px; display: flex; flex-direction: column; gap: 6px; }
.timeline div { display: flex; gap: 8px; }
.timeline .t { color: var(--ink-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 14px; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; }
.switch { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: 13px; }
.switch input { width: 16px; height: 16px; accent-color: var(--brand); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.dot.on { background: var(--good); box-shadow: 0 0 0 3px var(--good-soft); }
.dot.off { background: #c6cdd8; }
.claim { width: 70px; text-align: right; }

.diffs { display: flex; flex-direction: column; border-top: 1px solid var(--line-soft); }
.diff { padding: 10px 2px; border-bottom: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 3px; }
.diff-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.diff .dc { font-family: var(--mono); word-break: break-all; }
.diff .good { color: var(--good); }
.rangebar, .rangebar .seg, .filters > .seg { min-width: 0; max-width: 100%; }
@media (max-width: 560px) { .hm { display: none; } }

/* ---------- 核对总表 ---------- */
.funnel { display: flex; align-items: stretch; gap: 8px; flex-wrap: wrap; }
.fstep { flex: 1; min-width: 110px; background: var(--panel-soft); border: 1px solid var(--line-soft); border-radius: 12px; padding: 11px 13px; }
.fstep .n { font-family: var(--num); font-size: 28px; font-weight: 700; color: var(--ink-strong); }
.fstep .t { font-size: 13px; color: var(--ink-2); }
.fstep .h { font-size: 12px; color: var(--ink-4); }
.fstep.good .n { color: var(--good); }
.fstep.money .n { color: var(--brand); }
.farrow { align-self: center; color: var(--ink-4); font-size: 18px; }
.gapline { margin-top: 12px; font-size: 14px; }
.warnc { color: var(--high); }
.pt-photo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.pt-photo-item { min-width: 0; padding: 12px; border: 1px solid var(--line-soft); border-radius: 12px; }
.pt-photo-item > img { display: block; width: 100%; height: 160px; object-fit: cover; border-radius: 8px; margin-bottom: 10px; }
.pt-photo-item .field input { width: 100%; }
.tbl tfoot tr.cmp td { font-weight: 400; color: var(--ink-2); border-top: 0; }
@media (max-width: 560px) { .farrow { display: none; } .fstep { min-width: calc(50% - 6px); } }

[data-gallery="success"] .pt-photo-item > img { height: 260px; object-fit: contain; background: #fff5f3; }

[data-gallery="trial"] .pt-photo-item > img { object-fit: contain; background: #fff; }
[data-gallery="honor"] .pt-photo-item > img { height: 260px; object-fit: contain; background: #fff7ed; }
[data-gallery="logo"] .pt-photo-item > img { object-fit: contain; background: #f2f6ff; }
.nav .brand img.logo, .login-side .lb img.logo, .login.solo .mob-brand img.logo, .login .mob-brand img.logo {
  object-fit: contain; padding: 0; background: transparent; border: 0; border-radius: 0; box-shadow: none;
}
