/*!
 * 安耐达 · 业务中台 —— 设计系统与布局
 */
:root {
  --brand: #165dff;
  --brand-2: #0e42d2;
  --brand-soft: #eaf1ff;
  --green: #00b42a;
  --green-soft: #e8ffea;
  --red: #f53f3f;
  --red-soft: #ffece8;
  --orange: #ff7d00;
  --orange-soft: #fff3e8;
  --purple: #722ed1;
  --purple-soft: #f5e8ff;
  --cyan: #0fc6c2;
  --cyan-soft: #e8fffb;
  --ink: #1d2129;
  --ink-2: #4e5969;
  --muted: #86909c;
  --line: #e5e6eb;
  --line-soft: #eff1f5;
  --bg: #f4f6fa;
  --surface: #ffffff;
  --sidebar-w: 234px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.04);
  --shadow-md: 0 6px 20px rgba(16, 24, 40, 0.06);
  --shadow-lg: 0 18px 50px rgba(15, 23, 42, 0.16);
  --r-card: 16px;
  --r-ctl: 10px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.lock { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; color: inherit; }
button, input, select, textarea { font-size: 14px; }
h1, h2, h3, h4, p { margin: 0; }
svg.i { display: block; flex: none; }
.muted { color: var(--muted); }
.danger-text { color: var(--red) !important; }
.ta-r { text-align: right; }
.ta-c { text-align: center; }
.data-table th.ta-c, .data-table td.ta-c { text-align: center; }
.gap-cell { white-space: nowrap; min-width: 84px; }
.desktop-only { }
.mobile-only { display: none !important; }
::selection { background: rgba(22, 93, 255, 0.18); }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #cdd4e0; border-radius: 99px; }
::-webkit-scrollbar-track { background: transparent; }

/* ============ 应用外壳 ============ */
.app { display: flex; min-height: 100vh; }
.sidebar {
  width: var(--sidebar-w);
  flex: none;
  background: var(--surface);
  border-right: 1px solid var(--line-soft);
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 18px 14px 14px;
  z-index: 30;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 2px 8px 20px; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 12px; flex: none;
  background: linear-gradient(140deg, #165dff, #5b8cff);
  color: #fff; font-size: 19px; font-weight: 700;
  display: grid; place-items: center;
  box-shadow: 0 6px 14px rgba(22, 93, 255, 0.28);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.3; overflow: hidden; }
.brand-text b { font-size: 14.5px; letter-spacing: 0.2px; white-space: nowrap; }
.brand-text small { color: var(--muted); font-size: 10.5px; letter-spacing: 0.4px; text-transform: uppercase; }
.nav { flex: 1; overflow-y: auto; padding-right: 2px; }
.nav-group { margin-bottom: 16px; }
.nav-label { font-size: 11px; color: #a9b1bf; padding: 4px 10px 6px; letter-spacing: 0.5px; }
.nav-item {
  display: flex; align-items: center; gap: 10px;
  height: 38px; padding: 0 10px; border-radius: 10px;
  color: var(--ink-2); font-size: 13.5px; margin-bottom: 2px;
  transition: background 0.15s, color 0.15s;
}
.nav-item:hover { background: #f5f7fb; color: var(--ink); }
.nav-item.active { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.nav-ico { color: #8a94a6; display: flex; }
.nav-item.active .nav-ico { color: var(--brand); }
.nav-name { flex: 1; white-space: nowrap; }
.nav-badge {
  min-width: 19px; height: 18px; padding: 0 6px; border-radius: 99px;
  background: #f2f4f8; color: var(--muted);
  font-size: 10.5px; font-weight: 600; display: grid; place-items: center;
}
.nav-badge.danger { background: var(--red-soft); color: var(--red); }
.sidebar-foot { border-top: 1px solid var(--line-soft); padding-top: 10px; }
.me-chip { display: flex; align-items: center; gap: 9px; padding: 8px; border-radius: 12px; }
.me-chip:hover { background: #f5f7fb; }
.me-chip > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; line-height: 1.35; overflow: hidden; }
.me-chip b { font-size: 13px; }
.me-chip small { font-size: 11px; color: var(--muted); white-space: nowrap; }
.me-chip > svg { color: #b6bdc9; }
.demo-note { display: flex; align-items: center; gap: 5px; color: #a9b1bf; font-size: 10.5px; padding: 8px 10px 2px; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  height: 60px; flex: none;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 26px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
  position: sticky; top: 0; z-index: 20;
}
.tb-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tb-brand {
  width: 30px; height: 30px; border-radius: 9px; flex: none;
  background: linear-gradient(140deg, #165dff, #5b8cff); color: #fff;
  font-size: 14px; font-weight: 700; align-items: center; justify-content: center;
  box-shadow: 0 4px 10px rgba(22, 93, 255, 0.25);
}
.tb-crumb { font-size: 13px; color: var(--muted); }
.tb-crumb span { margin: 0 6px; color: #c9cfd9; }
.tb-title { font-size: 16px; font-weight: 600; }
.tb-right { display: flex; align-items: center; gap: 12px; }
.tb-date { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.badge-demo {
  font-size: 11px; color: var(--orange); background: var(--orange-soft);
  padding: 3px 8px; border-radius: 99px; font-weight: 500;
}
.identity-select {
  height: 32px; border: 1px solid var(--line); border-radius: 8px;
  background: #fff; color: var(--ink-2); font-size: 12px; padding: 0 6px; outline: none;
}
.price-model-bar { display: flex; align-items: center; gap: 10px; margin: 4px 0 14px; flex-wrap: wrap; }
.price-model-bar label { font-size: 12px; color: var(--muted); font-weight: 500; }
.price-model-bar select { height: 38px; min-width: 320px; max-width: 100%; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--ink); font-size: 13px; padding: 0 10px; outline: none; }
.spec-cell { background: #f8fafd; vertical-align: top; font-size: 12.5px; line-height: 1.5; border-right: 1px solid var(--line-soft); }
.std-price-box { margin-top: 12px; padding: 10px 12px; background: #f7fbf8; border: 1px solid #d9f0e4; border-radius: 10px; font-size: 13px; font-weight: 600; color: #0b7a4b; }
.form-images { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; align-items: center; }
.form-image { position: relative; width: 72px; height: 72px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.form-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.img-remove { position: absolute; top: 2px; right: 2px; width: 18px; height: 18px; border: none; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; font-size: 12px; line-height: 18px; padding: 0; cursor: pointer; }
.expense-thumbs { display: flex; gap: 4px; align-items: center; }
.expense-thumb { width: 30px; height: 30px; border-radius: 4px; object-fit: cover; border: 1px solid var(--line); display: grid; place-items: center; font-size: 9px; color: var(--muted); background: #f8fafd; }
.expense-more { font-size: 10px; color: var(--muted); }
.module-notice { display: flex; align-items: center; gap: 8px; margin: -4px 0 14px; padding: 10px 12px; border-radius: 10px; background: #f2f7ff; border: 1px solid #d8e6ff; color: #2f5fbe; font-size: 12.5px; line-height: 1.6; }
.module-notice.is-expired { background: #fff6f5; border-color: #ffd9d4; color: #b33a2c; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); }
.row-check { width: 16px; height: 16px; accent-color: var(--primary); cursor: pointer; }
.follow-pending-note { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; padding: 10px 12px; border-radius: 10px; background: #f2f7ff; border: 1px solid #d8e6ff; color: #2f5fbe; font-size: 12.5px; line-height: 1.5; }
.icon-btn {
  width: 36px; height: 36px; border-radius: 10px; border: none; background: transparent;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink-2); cursor: pointer; position: relative; transition: background 0.15s;
}
.icon-btn:hover { background: #f2f4f8; }
.bell i {
  position: absolute; top: 5px; right: 4px;
  min-width: 15px; height: 15px; padding: 0 4px; border-radius: 99px;
  background: var(--red); color: #fff; font-size: 9px; font-style: normal;
  display: grid; place-items: center; font-weight: 600;
  border: 2px solid #fff;
}
.tb-user { display: flex; }

.content { width: 100%; max-width: 1200px; margin: 0 auto; padding: 24px 28px 56px; }
.page { display: flex; flex-direction: column; gap: 16px; animation: fadeUp 0.24s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ============ 通用控件 ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 38px; padding: 0 14px; border-radius: var(--r-ctl);
  border: 1px solid transparent; background: #fff; color: var(--ink-2);
  font-size: 13.5px; font-weight: 500; cursor: pointer; white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.05s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 4px 12px rgba(22, 93, 255, 0.24); }
.btn-primary:hover { background: var(--brand-2); }
.btn-ghost { border-color: var(--line); background: #fff; }
.btn-ghost:hover { background: #f7f9fc; border-color: #d5dae4; }
.btn-light { background: #fff; color: var(--brand); }
.btn-light:hover { background: #f2f6ff; }
.btn-ghost-light { background: rgba(255, 255, 255, 0.14); color: #fff; border-color: rgba(255, 255, 255, 0.24); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.22); }
.btn-danger { background: var(--red); color: #fff; }
.btn-sm { height: 32px; padding: 0 10px; font-size: 12.5px; border-radius: 9px; }
.link-btn {
  border: none; background: transparent; color: var(--brand); font-size: 12.5px;
  display: inline-flex; align-items: center; gap: 2px; cursor: pointer; padding: 4px;
}
.link-btn:hover { color: var(--brand-2); }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 4px 2px; }
.ph-kicker { font-size: 11px; color: var(--brand); font-weight: 600; letter-spacing: 1.4px; text-transform: uppercase; margin-bottom: 4px; }
.page-title { font-size: 25px; font-weight: 650; letter-spacing: -0.2px; line-height: 1.3; }
.page-sub { color: var(--muted); font-size: 13px; margin-top: 4px; }
.page-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.card {
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--r-card); box-shadow: var(--shadow-sm);
  padding: 16px 18px;
}
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.card-title { font-size: 15px; font-weight: 600; letter-spacing: -0.1px; }
.card-sub { color: var(--muted); font-size: 11.5px; margin-top: 3px; }

/* ============ 工作台 ============ */
.hero {
  position: relative; overflow: hidden; border-radius: 20px;
  padding: 26px 30px; color: #fff;
  background: linear-gradient(118deg, #0f4ae0 0%, #165dff 48%, #4f83ff 100%);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  box-shadow: 0 16px 40px rgba(22, 93, 255, 0.22);
}
.hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(420px 220px at 88% -10%, rgba(255, 255, 255, 0.24), transparent 70%),
    radial-gradient(300px 180px at 10% 120%, rgba(255, 255, 255, 0.14), transparent 70%);
}
.hero-main { position: relative; z-index: 1; min-width: 0; }
.hero-date { font-size: 12px; opacity: 0.78; margin-bottom: 6px; letter-spacing: 0.3px; }
.hero-main h2 { font-size: 27px; font-weight: 650; letter-spacing: -0.3px; }
.hero-main p { font-size: 13px; opacity: 0.88; margin-top: 7px; }
.hero-main p b { font-size: 15px; }
.hero-actions { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.hero-side {
  position: relative; z-index: 1; display: grid; gap: 8px; min-width: 216px;
  padding-left: 24px; border-left: 1px solid rgba(255, 255, 255, 0.18);
}
.hero-stat { display: flex; flex-direction: column; }
.hero-stat span { font-size: 11px; opacity: 0.72; }
.hero-stat b { font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: 0.2px; }
.hero-bar { display: block; height: 4px; background: rgba(255, 255, 255, 0.24); border-radius: 99px; margin-top: 4px; overflow: hidden; }
.hero-bar em { display: block; height: 100%; background: #fff; border-radius: 99px; }

.kpi-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.kpi {
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: 14px;
  padding: 14px 16px; box-shadow: var(--shadow-sm);
}
.kpi-top { display: flex; align-items: center; justify-content: space-between; }
.kpi-label { font-size: 12px; color: var(--muted); }
.kpi-icon { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; }
.kpi-blue { background: var(--brand-soft); color: var(--brand); }
.kpi-green { background: var(--green-soft); color: var(--green); }
.kpi-red { background: var(--red-soft); color: var(--red); }
.kpi-purple { background: var(--purple-soft); color: var(--purple); }
.kpi-orange { background: var(--orange-soft); color: var(--orange); }
.kpi-cyan { background: var(--cyan-soft); color: var(--cyan); }
.kpi-value {
  font-size: 23px; font-weight: 650; letter-spacing: -0.4px; margin-top: 6px;
  font-variant-numeric: tabular-nums; line-height: 1.25;
}
.kpi-value.danger { color: var(--red); }
.kpi-foot { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 11px; color: var(--muted); flex-wrap: wrap; }
.delta { font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; padding: 1px 5px; border-radius: 5px; }
.delta.up { color: #00962a; background: var(--green-soft); }
.delta.down { color: var(--red); background: var(--red-soft); }
.delta.flat { color: var(--muted); background: #f2f4f8; }

.home-grid { display: grid; grid-template-columns: 1.62fr 1fr; gap: 14px; }
.home-grid-2 { grid-template-columns: 1.62fr 1fr; }
.chart-card, .donut-card { min-width: 0; }
.legend { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); }
.legend span { display: inline-block; }
.lg-bar { width: 9px; height: 9px; border-radius: 3px; background: #7da4ff; margin-left: 4px; }
.lg-line { width: 14px; height: 3px; border-radius: 2px; background: var(--green); margin-left: 8px; }
.chart-wrap { margin: 4px -4px 0; }
.chart { width: 100%; height: auto; display: block; }

.donut-wrap { display: flex; justify-content: center; padding: 4px 0 2px; }
.donut { width: 168px; height: 168px; }
.donut-legend { display: flex; flex-direction: column; gap: 7px; margin-top: 4px; }
.dl-row { display: grid; grid-template-columns: 8px 1fr auto 34px; align-items: center; gap: 8px; font-size: 12px; }
.dl-dot { width: 8px; height: 8px; border-radius: 50%; }
.dl-name { color: var(--ink-2); }
.dl-row b { font-variant-numeric: tabular-nums; font-weight: 600; }
.dl-row small { color: var(--muted); text-align: right; font-size: 11px; }

.todo-list { display: flex; flex-direction: column; gap: 2px; }
.todo {
  display: grid; grid-template-columns: 34px 1fr auto 14px; align-items: center; gap: 10px;
  width: 100%; border: none; background: transparent; text-align: left;
  padding: 9px 8px; border-radius: 11px; cursor: pointer;
}
.todo:hover { background: #f7f9fc; }
.todo-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; }
.t-danger { background: var(--red-soft); color: var(--red); }
.t-warn { background: var(--orange-soft); color: var(--orange); }
.t-info { background: var(--brand-soft); color: var(--brand); }
.todo-main { min-width: 0; display: flex; flex-direction: column; }
.todo-main b { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.todo-main small { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.todo-tag { font-size: 10.5px; color: var(--muted); border: 1px solid var(--line); padding: 1px 6px; border-radius: 5px; }
.todo-arrow { color: #c3c9d4; }

.reminder-card { margin-top: 14px; }
.home-hero-row { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 14px; align-items: stretch; margin-bottom: 14px; }
.home-hero-row .hero { min-height: 100%; }
.home-hero-row .reminder-card { margin-top: 0; display: flex; flex-direction: column; }
.home-hero-row .reminder-list { flex: 1; }
.reminder-list { display: flex; flex-direction: column; gap: 4px; }
.reminder-row {
  display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 10px;
  padding: 9px 8px; border-radius: 11px;
}
.reminder-row:hover { background: #f7f9fc; }
.rem-check {
  width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid #c9d3e3;
  background: #fff; color: #10a56a; display: grid; place-items: center; cursor: pointer;
}
.rem-check:hover { border-color: #10a56a; background: #e9f9f1; }
.rem-main { min-width: 0; display: flex; flex-direction: column; }
.rem-main b { font-size: 13px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rem-main small { font-size: 11px; color: var(--muted); }

.commission-card { margin-top: 14px; }
.comm-total { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #f7fbf8; border: 1px solid #d9f0e4; border-radius: 12px; padding: 12px 14px; margin-bottom: 8px; }
.comm-total > div { display: flex; flex-direction: column; gap: 2px; }
.comm-total span { font-size: 11px; color: var(--muted); }
.comm-total b { font-size: 24px; font-weight: 700; color: #0b7a4b; font-variant-numeric: tabular-nums; }
.comm-total small { font-size: 11px; color: var(--muted); }
.comm-list { display: flex; flex-direction: column; gap: 2px; }
.comm-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 8px; border-radius: 10px; }
.comm-row:hover { background: #f7f9fc; }
.comm-main { display: flex; flex-direction: column; min-width: 0; }
.comm-main b { font-size: 13px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.comm-main small { font-size: 11px; color: var(--muted); }
.comm-row > b { font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }

.rank-mini-list { display: flex; flex-direction: column; gap: 2px; }
.rank-mini-row { display: grid; grid-template-columns: 22px 28px 1fr auto; align-items: center; gap: 9px; padding: 8px 6px; border-radius: 10px; }
.rank-mini-row:hover { background: #f7f9fc; }
.rank-medal { width: 21px; height: 21px; border-radius: 7px; background: #f2f4f8; color: var(--muted); font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.rank-medal.m1 { background: #fff3d6; color: #b47800; }
.rank-medal.m2 { background: #eef1f6; color: #64748b; }
.rank-medal.m3 { background: #fbeee4; color: #b4673a; }
.rm-main { display: flex; flex-direction: column; min-width: 0; }
.rm-main b { font-size: 13px; }
.rm-main small { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rm-score { font-size: 16px; font-weight: 650; font-variant-numeric: tabular-nums; }
.rm-score small { font-size: 10px; color: var(--muted); margin-left: 2px; }
.rank-mini-foot { border-top: 1px dashed var(--line); margin-top: 8px; padding-top: 10px; font-size: 11.5px; color: var(--muted); }
.rank-mini-foot b { color: var(--ink); }

.quick-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.quick-tile {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border: 1px solid var(--line-soft); border-radius: 12px; background: #fff;
  transition: border-color 0.15s, background 0.15s;
}
.quick-tile:hover { border-color: #c9d8ff; background: #f9fbff; }
.quick-ico { width: 34px; height: 34px; border-radius: 10px; background: #f3f6fb; color: #64748b; display: grid; place-items: center; flex: none; }
.quick-tile:hover .quick-ico { background: var(--brand-soft); color: var(--brand); }
.quick-txt { display: flex; flex-direction: column; min-width: 0; }
.quick-txt b { font-size: 12.5px; font-weight: 500; }
.quick-txt small { font-size: 10.5px; color: var(--muted); }

/* ============ 业务中心 ============ */
.biz-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.biz-tile {
  display: flex; align-items: center; gap: 12px; padding: 15px 16px;
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: 14px;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.biz-tile:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); border-color: #d7e2ff; }
.biz-ico { width: 42px; height: 42px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex: none; }
.biz-txt { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.biz-txt b { font-size: 13.5px; font-weight: 600; }
.biz-txt small { font-size: 11px; color: var(--muted); margin-top: 2px; }
.biz-count { text-align: right; display: flex; flex-direction: column; }
.biz-count b { font-size: 18px; font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: -0.3px; }
.biz-count small { font-size: 10px; color: var(--muted); }

.feed { display: flex; flex-direction: column; }
.feed-row {
  display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 10px;
  padding: 10px 8px; border: none; background: transparent; text-align: left;
  border-bottom: 1px solid var(--line-soft); cursor: pointer; border-radius: 8px;
}
.feed-row:last-child { border-bottom: none; }
.feed-row:hover { background: #f8fafc; }
.feed-ico { width: 30px; height: 30px; border-radius: 9px; background: #f3f6fb; color: #64748b; display: grid; place-items: center; }
.feed-main { display: flex; flex-direction: column; min-width: 0; }
.feed-main b { font-size: 12.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-main small { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-date { font-size: 11px; color: var(--muted); }
.feed.compact .feed-row { padding: 8px 4px; }

/* ============ 列表 / 筛选 ============ */
.summary-strip {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: 14px;
  padding: 14px 6px; box-shadow: var(--shadow-sm);
}
.sum-item { padding: 0 16px; border-right: 1px solid var(--line-soft); display: flex; flex-direction: column; }
.sum-item:last-child { border-right: none; }
.sum-label { font-size: 11.5px; color: var(--muted); }
.sum-value { font-size: 21px; font-weight: 650; letter-spacing: -0.4px; font-variant-numeric: tabular-nums; margin-top: 2px; }
.sum-value i { font-size: 13px; font-style: normal; margin-right: 1px; }
.sum-hint { font-size: 10.5px; color: #a9b1bf; margin-top: 1px; }
.sum-danger .sum-value { color: var(--red); }

.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.search-box {
  position: relative; flex: 1; min-width: 230px; max-width: 380px;
  display: flex; align-items: center;
}
.search-box > svg { position: absolute; left: 12px; color: #a9b1bf; pointer-events: none; }
.search-box input {
  width: 100%; height: 38px; border-radius: 10px; border: 1px solid var(--line);
  background: #fff; padding: 0 12px 0 36px; outline: none; color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.search-box input:focus { border-color: #9db9ff; box-shadow: 0 0 0 3px rgba(22, 93, 255, 0.1); }
.search-box input::placeholder { color: #b3bac6; }
.filter-chips { display: flex; align-items: center; gap: 6px; overflow-x: auto; padding: 2px; flex: 1; min-width: 0; }
.filter-chips::-webkit-scrollbar { display: none; }
.chip-btn {
  height: 30px; padding: 0 10px; border-radius: 8px; border: 1px solid transparent;
  background: transparent; color: var(--ink-2); font-size: 12.5px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
}
.chip-btn:hover { background: #eef2f8; }
.chip-btn i { font-style: normal; font-size: 10.5px; color: var(--muted); }
.chip-btn.active { background: #fff; border-color: var(--brand); color: var(--brand); font-weight: 500; box-shadow: 0 1px 3px rgba(22, 93, 255, 0.12); }
.chip-btn.active i { color: var(--brand); opacity: 0.7; }
.result-count { font-size: 11.5px; color: var(--muted); white-space: nowrap; }

.record-cards { display: none; }
.record-card {
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: 14px;
  padding: 13px 14px; box-shadow: var(--shadow-sm); cursor: pointer;
  outline: none; transition: border-color 0.15s;
}
.record-card:active { border-color: #c9d8ff; }
.rc-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.rc-title { font-size: 14px; font-weight: 600; line-height: 1.4; }
.rc-badge { flex: none; }
.rc-sub { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.rc-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 12px; margin-top: 11px; }
.rc-meta > div { display: flex; flex-direction: column; min-width: 0; }
.rc-meta span { font-size: 10.5px; color: #a9b1bf; }
.rc-meta b { font-size: 12px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rc-foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 11px; padding-top: 9px; border-top: 1px dashed var(--line);
  font-size: 11px; color: var(--muted);
}
.rc-owner { display: flex; align-items: center; gap: 6px; }

.table-wrap {
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: 14px;
  overflow: auto; box-shadow: var(--shadow-sm);
}
.data-table { width: 100%; border-collapse: collapse; font-size: 12.8px; min-width: 860px; }
.data-table th {
  text-align: left; font-weight: 500; color: var(--muted); font-size: 11.5px;
  background: #f8fafd; padding: 11px 10px; border-bottom: 1px solid var(--line-soft);
  white-space: nowrap;
}
.data-table th:first-child { padding-left: 16px; }
.data-table td { padding: 11px 10px; border-bottom: 1px solid #f2f4f8; vertical-align: middle; }
.data-table td:first-child { padding-left: 16px; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tbody tr { cursor: pointer; transition: background 0.12s; }
.data-table tbody tr:hover { background: #f8fafd; }
.data-table b { font-weight: 600; font-variant-numeric: tabular-nums; }
.cell-clip { display: inline-block; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; }
.mini-progress { width: 78px; height: 5px; background: #eef1f6; border-radius: 99px; overflow: hidden; }
.mini-progress i { display: block; height: 100%; background: linear-gradient(90deg, #5b8cff, #165dff); border-radius: 99px; }

.empty { padding: 44px 20px; text-align: center; color: var(--muted); background: #fff; border: 1px dashed var(--line); border-radius: 14px; }
.empty-ico { width: 48px; height: 48px; border-radius: 14px; background: #f3f6fb; color: #b6bdc9; display: grid; place-items: center; margin: 0 auto 10px; }
.empty p { font-size: 12.5px; }

/* ============ 客户 ============ */
.cust-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cust-card {
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: 14px;
  padding: 14px 15px; box-shadow: var(--shadow-sm); cursor: pointer;
  outline: none; transition: border-color 0.15s, box-shadow 0.15s;
}
.cust-card:hover { border-color: #d7e2ff; box-shadow: var(--shadow-md); }
.cust-top { display: flex; align-items: center; gap: 9px; }
.cust-name { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cust-name b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cust-name small { font-size: 11px; color: var(--muted); }
.cust-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; padding: 10px 0; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); }
.cust-stats > div { display: flex; flex-direction: column; min-width: 0; }
.cust-stats span { font-size: 10.5px; color: #a9b1bf; }
.cust-stats b { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cust-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 9px; font-size: 11px; color: var(--muted); }

/* ============ 绩效考核 ============ */
.segmented { display: inline-flex; background: #eef1f6; padding: 3px; border-radius: 10px; gap: 2px; }
.seg-item {
  border: none; background: transparent; height: 30px; padding: 0 12px; border-radius: 8px;
  font-size: 12.5px; color: var(--ink-2); cursor: pointer; font-weight: 500;
}
.seg-item:hover { color: var(--brand); }
.seg-item.active { background: #fff; color: var(--brand); box-shadow: 0 1px 4px rgba(15, 23, 42, 0.1); }

.perf-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.perf-sum-card {
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: 14px;
  padding: 14px 18px; display: flex; flex-direction: column; box-shadow: var(--shadow-sm);
}
.perf-sum-card span { font-size: 11.5px; color: var(--muted); }
.perf-sum-card b { font-size: 26px; font-weight: 650; letter-spacing: -0.6px; font-variant-numeric: tabular-nums; margin-top: 2px; }
.perf-sum-card b i { font-size: 14px; color: var(--muted); font-style: normal; font-weight: 500; }
.perf-sum-card b.champion { font-size: 21px; letter-spacing: 0; }
.perf-sum-card small { font-size: 10.5px; color: #a9b1bf; margin-top: 2px; }
.perf-scale-select {
  height: 34px; border: 1px solid var(--line); border-radius: 9px; background: #fff;
  color: var(--ink-2); padding: 0 8px; font-size: 12px; outline: none;
}
.perf-tabs { display: flex; gap: 4px; background: #f2f4f8; padding: 3px; border-radius: 10px; margin-bottom: 10px; }
.perf-tab { flex: 1; border: none; background: transparent; border-radius: 8px; padding: 6px 8px; text-align: left; cursor: pointer; }
.perf-tab b { display: block; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.perf-tab small { display: block; font-size: 9.5px; color: var(--muted); margin-top: 1px; }
.perf-tab.active { background: #fff; box-shadow: 0 1px 4px rgba(15, 23, 42, 0.1); }
.perf-tab.active b { color: var(--brand); }
.manual-btn { margin-left: auto; flex: none; }
.deduct-group-title {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; font-weight: 600; margin: 16px 0 4px;
  padding-bottom: 6px; border-bottom: 1px dashed var(--line);
}
.deduct-group-title span { font-weight: 400; color: var(--muted); font-size: 10.5px; }
.deduct-list { display: flex; flex-direction: column; }
.deduct-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid #f4f6fa;
}
.deduct-row:last-child { border-bottom: none; }
.dr-title { font-size: 12.5px; font-weight: 500; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.dr-tag { font-size: 9px; padding: 1px 5px; border-radius: 4px; font-weight: 500; }
.dr-tag.auto { background: var(--brand-soft); color: var(--brand); }
.dr-tag.manual { background: var(--orange-soft); color: #d96500; }
.dr-note { font-size: 10.5px; color: var(--muted); margin-top: 2px; line-height: 1.45; }
.dr-calc { font-size: 11.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.dr-amount { font-size: 13px; font-weight: 600; color: var(--red); font-variant-numeric: tabular-nums; min-width: 44px; text-align: right; }
.deduct-row.is-zero { opacity: 0.55; }
.deduct-row.is-zero .dr-amount { color: var(--muted); }
.zero-warn {
  display: flex; align-items: center; gap: 6px;
  background: var(--red-soft); color: #b42318; border-radius: 9px;
  padding: 9px 11px; font-size: 12px; margin-top: 12px;
}

.perf-grid { display: grid; grid-template-columns: 1fr 1.18fr; gap: 14px; align-items: start; }
.rank-card { padding-bottom: 8px; }
.rank-list { display: flex; flex-direction: column; gap: 2px; }
.rank-row {
  display: grid; grid-template-columns: 22px 30px 1fr auto; align-items: center; gap: 9px;
  border: none; background: transparent; padding: 9px 7px; border-radius: 11px;
  cursor: pointer; text-align: left; width: 100%;
}
.rank-row:hover { background: #f7f9fc; }
.rank-row.active { background: var(--brand-soft); }
.rank-no { width: 21px; height: 21px; border-radius: 7px; background: #f2f4f8; color: var(--muted); font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.rank-no.m1 { background: #fff3d6; color: #b47800; }
.rank-no.m2 { background: #eef1f6; color: #64748b; }
.rank-no.m3 { background: #fbeee4; color: #b4673a; }
.rank-main { display: flex; flex-direction: column; min-width: 0; }
.rank-main b { font-size: 13px; }
.rank-main small { font-size: 10.5px; color: var(--muted); }
.rank-bar { height: 4px; background: #eef1f6; border-radius: 99px; margin-top: 5px; overflow: hidden; max-width: 180px; }
.rank-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #7da4ff, #165dff); }
.rank-score { text-align: right; display: flex; flex-direction: column; align-items: flex-end; }
.rank-score b { font-size: 16px; font-weight: 650; font-variant-numeric: tabular-nums; }
.rank-score small { font-size: 10px; color: var(--muted); }
.rank-score small.up { color: #00962a; }
.rank-score small.down { color: var(--red); }
.rank-highlights { border-top: 1px dashed var(--line); margin-top: 10px; padding-top: 10px; display: flex; flex-direction: column; gap: 7px; }
.rank-highlights > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 11.5px; color: var(--muted); }
.rank-highlights b { color: var(--ink-2); font-weight: 500; font-variant-numeric: tabular-nums; text-align: right; }

.perf-detail { padding: 18px; }
.perf-person { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.ring {
  width: 110px; height: 110px; flex: none; border-radius: 50%;
  background: conic-gradient(var(--ring) calc(var(--p) * 1%), #eef1f6 0);
  display: grid; place-items: center;
}
.ring-in {
  width: 84px; height: 84px; border-radius: 50%; background: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.ring-in b { font-size: 22px; font-weight: 700; letter-spacing: -0.6px; font-variant-numeric: tabular-nums; }
.ring-in span { font-size: 10px; color: var(--muted); }
.pp-main { min-width: 0; }
.pp-main h3 { font-size: 18px; font-weight: 600; }
.pp-main p { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.pp-tags { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.perf-quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; background: #f8fafd; border-radius: 12px; padding: 10px 12px; margin-top: 15px; }
.perf-quick > div { display: flex; flex-direction: column; }
.perf-quick span { font-size: 10.5px; color: var(--muted); }
.perf-quick b { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.metric-list { display: flex; flex-direction: column; gap: 13px; margin-top: 16px; }
.metric-head { display: flex; align-items: center; justify-content: space-between; font-size: 12px; }
.metric-head > span:first-child { font-weight: 500; }
.metric-w { font-size: 10.5px; color: var(--muted); }
.metric-bar { height: 6px; background: #eef1f6; border-radius: 99px; overflow: hidden; margin-top: 5px; }
.metric-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #7da4ff, #165dff); }
.metric-foot { display: flex; align-items: baseline; justify-content: space-between; margin-top: 4px; gap: 8px; }
.metric-foot b { font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.metric-foot span { font-size: 10.5px; color: var(--muted); text-align: right; }
.metric-note { font-size: 10px; color: #a9b1bf; margin-top: 1px; }

.weight-card { padding: 0; overflow: hidden; }
.weight-toggle {
  width: 100%; border: none; background: transparent; display: flex; align-items: center; justify-content: space-between;
  padding: 15px 18px; font-size: 13.5px; font-weight: 600; cursor: pointer;
}
.weight-toggle > span:first-child { display: flex; align-items: center; gap: 8px; }
.weight-toggle .wt-right { display: flex; align-items: center; gap: 4px; color: var(--muted); font-weight: 400; font-size: 12px; }
.weight-body { display: none; padding: 0 18px 16px; }
.weight-body.open { display: block; }
.weight-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 22px; }
.weight-row { display: flex; flex-direction: column; }
.wr-head { display: flex; align-items: center; justify-content: space-between; font-size: 12px; }
.wr-head b { font-variant-numeric: tabular-nums; color: var(--brand); }
.weight-row input[type="range"] { width: 100%; accent-color: var(--brand); margin: 5px 0 2px; }
.weight-row small { font-size: 10px; color: #a9b1bf; }
.weight-foot { display: flex; align-items: center; justify-content: space-between; border-top: 1px dashed var(--line); margin-top: 14px; padding-top: 12px; font-size: 12px; color: var(--muted); }
.weight-foot b { color: var(--ink); }

.rule-card { background: #f8fafd; }
.rule-title { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.rule-card p { font-size: 11.5px; color: var(--ink-2); line-height: 1.7; }
.rule-card p + p { margin-top: 6px; }

/* ============ 项目 ============ */
.kanban { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: start; }
.kanban-col { background: #eef1f7; border-radius: 14px; padding: 10px; }
.kc-head { display: flex; align-items: center; gap: 7px; padding: 2px 4px 9px; font-size: 12.5px; }
.kc-head b { font-weight: 600; }
.kc-head i { font-style: normal; color: var(--muted); font-size: 11px; }
.kc-dot { width: 7px; height: 7px; border-radius: 50%; }
.kc-dot.neutral { background: #94a3b8; }
.kc-dot.info { background: var(--brand); }
.kc-dot.success { background: var(--green); }
.kc-dot.danger { background: var(--red); }
.kc-body { display: flex; flex-direction: column; gap: 8px; max-height: 620px; overflow-y: auto; padding-right: 2px; }
.kc-empty { text-align: center; color: #a9b1bf; font-size: 11px; padding: 16px 0; }
.task-card {
  background: #fff; border-radius: 12px; padding: 12px;
  box-shadow: var(--shadow-sm); cursor: pointer; border: 1px solid transparent;
}
.task-card:hover { border-color: #d7e2ff; }
.task-top { display: flex; gap: 5px; margin-bottom: 7px; flex-wrap: wrap; }
.task-card h4 { font-size: 13px; font-weight: 600; line-height: 1.45; }
.task-card p { font-size: 11px; color: var(--muted); margin-top: 3px; }
.task-progress { height: 5px; background: #eef1f6; border-radius: 99px; overflow: hidden; margin-top: 9px; }
.task-progress i { display: block; height: 100%; background: linear-gradient(90deg, #5b8cff, #165dff); border-radius: 99px; }
.task-progress.done i { background: linear-gradient(90deg, #23c343, #00b42a); }
.task-progress.late i { background: linear-gradient(90deg, #ff7d7d, #f53f3f); }
.task-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 9px; font-size: 10.5px; color: var(--muted); }
.task-owner { display: flex; align-items: center; gap: 5px; }

.gantt-card { padding: 16px 18px; }
.gantt-scroll { overflow-x: auto; }
.gantt { position: relative; }
.g-head, .g-row { display: grid; grid-template-columns: 172px 1fr; gap: 12px; align-items: center; }
.g-head { padding-bottom: 8px; border-bottom: 1px solid var(--line-soft); margin-bottom: 6px; }
.g-label { font-size: 11px; color: var(--muted); display: flex; flex-direction: column; min-width: 0; }
.g-label b { font-size: 12px; color: var(--ink); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-label small { font-size: 10px; color: var(--muted); }
.g-row { padding: 5px 0; }
.g-row .g-label { font-size: 11px; }
.g-track {
  position: relative; height: 28px; border-radius: 8px;
  background:
    repeating-linear-gradient(90deg, #f4f6fa 0, #f4f6fa 1px, transparent 1px, transparent calc(100% / 12));
}
.g-track::before { content: ""; position: absolute; top: 0; bottom: 0; left: var(--today, 50%); border-left: 1px dashed rgba(255, 125, 0, 0.55); }
.g-axis { position: absolute; top: -14px; font-size: 9.5px; color: #a9b1bf; }
.g-axis.right { right: 0; }
.g-bar {
  position: absolute; top: 3px; height: 22px; border: none; border-radius: 6px;
  color: #fff; font-size: 10px; text-align: left; padding: 0 6px; cursor: pointer;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  background: linear-gradient(90deg, #5b8cff, #2f6bff);
}
.g-bar.done { background: linear-gradient(90deg, #23c343, #00b42a); }
.g-bar.late { background: linear-gradient(90deg, #ff7d7d, #f53f3f); }
.g-bar.idle { background: #c3cad6; }
.g-legend { display: flex; align-items: center; gap: 6px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 10.5px; color: var(--muted); }
.g-legend .lg { width: 10px; height: 8px; border-radius: 3px; display: inline-block; }
.lg.doing { background: #2f6bff; margin-left: 8px; }
.lg.done { background: var(--green); margin-left: 8px; }
.lg.late { background: var(--red); margin-left: 8px; }
.lg.idle { background: #c3cad6; margin-left: 8px; }

/* ============ 我的 ============ */
.me-hero {
  position: relative; overflow: hidden; border-radius: 20px; padding: 24px 26px; color: #fff;
  background: linear-gradient(120deg, #0e2a63 0%, #1248b8 55%, #165dff 100%);
  box-shadow: 0 16px 40px rgba(14, 42, 99, 0.25);
}
.me-glow { position: absolute; inset: 0; background: radial-gradient(420px 240px at 90% -20%, rgba(120, 170, 255, 0.4), transparent 70%); }
.me-id { position: relative; display: flex; align-items: center; gap: 14px; }
.me-id h2 { font-size: 22px; font-weight: 650; }
.me-id p { font-size: 12px; opacity: 0.75; }
.me-badge { display: inline-block; margin-top: 6px; font-size: 10px; background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.2); padding: 2px 7px; border-radius: 99px; }
.me-stats { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 20px; }
.me-stats > div { background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; }
.me-stats span { font-size: 10.5px; opacity: 0.72; }
.me-stats b { font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.me-stats b i { font-size: 10px; font-style: normal; margin-left: 3px; opacity: 0.8; }

.menu-card { padding: 4px 8px; }
.menu-row {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 12px 10px; border: none; background: transparent; text-align: left;
  border-bottom: 1px solid var(--line-soft); cursor: pointer; border-radius: 8px;
}
.menu-row:last-child { border-bottom: none; }
.menu-row:hover { background: #f8fafc; }
.menu-ico { width: 34px; height: 34px; border-radius: 10px; background: #f3f6fb; color: #64748b; display: grid; place-items: center; flex: none; }
.menu-main { flex: 1; display: flex; flex-direction: column; }
.menu-main b { font-size: 13px; font-weight: 500; }
.menu-main small { font-size: 11px; color: var(--muted); }
.menu-arrow { color: #c3c9d4; }

.cap-grid { display: flex; flex-wrap: wrap; gap: 7px; }
.cap-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--ink-2); background: #f5f7fb; border: 1px solid var(--line-soft); padding: 5px 9px; border-radius: 8px; }
.cap-chip svg { color: #8a94a6; }
.page-foot { text-align: center; font-size: 11px; color: #a9b1bf; padding: 8px 0 0; }

/* ============ 弹层 ============ */
#sheet-root { position: relative; z-index: 70; }
.sheet-overlay {
  position: fixed; inset: 0; background: rgba(15, 23, 42, 0.44);
  backdrop-filter: blur(2px); opacity: 0; transition: opacity 0.2s ease;
}
#sheet-root.in .sheet-overlay { opacity: 1; }
.sheet {
  position: absolute; top: 0; right: 0; height: 100%; width: min(520px, 100%);
  background: #fff; display: flex; flex-direction: column; overflow: hidden;
  transform: translateX(102%); transition: transform 0.24s cubic-bezier(0.22, 0.61, 0.36, 1);
  border-radius: 18px 0 0 18px; box-shadow: -24px 0 60px rgba(15, 23, 42, 0.18);
}
#sheet-root.in .sheet { transform: none; }
.sheet-wide { width: min(620px, 100%); }
.sheet.sheet-compact { height: auto; max-height: calc(100vh - 48px); }
.sheet.sheet-compact .sheet-body { max-height: calc(100vh - 190px); }
.sheet-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding: 20px 22px 14px; border-bottom: 1px solid var(--line-soft); flex: none;
}
.sheet-kicker { font-size: 10.5px; color: var(--brand); font-weight: 600; letter-spacing: 1px; margin-bottom: 3px; }
.sheet-head h2 { font-size: 19px; font-weight: 650; letter-spacing: -0.2px; line-height: 1.35; }
.sheet-head p { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.sheet-body { flex: 1; min-height: 0; overflow-y: auto; padding: 18px 22px 24px; }
.sheet-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 13px 22px calc(13px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line-soft);
  background: #fff;
}
.sheet-foot .btn { flex: 1; }
.sheet-foot .danger-text { flex: none; }
form#record-form { display: flex; flex-direction: column; flex: 1; min-height: 0; }
form#reminder-form { display: flex; flex-direction: column; flex: 1; min-height: 0; }
form#price-special-form { display: flex; flex-direction: column; flex: 1; min-height: 0; }
form#price-special-new-form { display: flex; flex-direction: column; flex: 1; min-height: 0; }
form#price-query-form { display: flex; flex-direction: column; flex: 1; min-height: 0; }
form#week-incomplete-form { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.cell-sub { display: block; margin-top: 3px; font-size: 10.5px; color: var(--muted); line-height: 1.4; white-space: normal; }
.cell-main { line-height: 1.45; word-break: break-word; }
.visit-row-side { display: flex; align-items: center; justify-content: flex-end; gap: 6px; flex-wrap: wrap; }
.visit-row-side .btn { white-space: nowrap; }
body.login-mode { background: #eef3fb; }
body.login-mode .sidebar, body.login-mode .topbar, body.login-mode .bottom-nav { display: none; }
body.login-mode .app { display: block; }
body.login-mode .main { margin: 0; }
body.login-mode .content { padding: 0; min-height: 100vh; display: grid; place-items: center; }
.login-page { width: 100%; min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(700px 420px at 15% 0%, #dce8ff, transparent 70%), #eef3fb; }
.login-card { width: min(390px, 100%); background: #fff; border: 1px solid #e4eaf5; border-radius: 20px; padding: 28px 26px 22px; box-shadow: 0 24px 60px rgba(31, 66, 135, .14); }
.login-mark { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: linear-gradient(135deg, #165dff, #4f83ff); color: #fff; font-size: 24px; font-weight: 700; margin-bottom: 16px; }
.login-kicker { font-size: 10px; letter-spacing: 1.5px; color: #8a96ab; font-weight: 700; }
.login-card h1 { font-size: 23px; margin: 5px 0 6px; letter-spacing: -.3px; }
.login-sub { font-size: 12.5px; color: #7a879c; margin-bottom: 20px; }
.login-submit { width: 100%; height: 42px; margin-top: 18px; }
.login-card .f-field input { width: 100%; height: 40px; border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; background: #fff; }
.login-hint { margin-top: 16px; font-size: 11px; color: #8a96ab; line-height: 1.6; text-align: center; }
.cleanup-card { margin-bottom: 14px; }
.cleanup-settings { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin: 4px 0 10px; }
.cleanup-check { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; }
.cleanup-check input { width: 16px; height: 16px; accent-color: var(--primary); }
.cleanup-inline { font-size: 13px; color: var(--ink-2); }
.cleanup-inline select { height: 34px; border: 1px solid var(--line); border-radius: 8px; padding: 0 8px; margin-left: 4px; background: #fff; }
.cleanup-note { font-size: 12.5px; color: var(--muted); line-height: 1.7; }
.cleanup-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.cleanup-hint { margin-right: auto; font-size: 12px; color: var(--muted); }
form#perf-input-form { display: flex; flex-direction: column; flex: 1; min-height: 0; }
form#checkin-form, form#reject-form { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.btn-block { width: 100%; margin-top: 12px; }
.outing-state { display: flex; align-items: center; gap: 6px; border-radius: 9px; padding: 9px 11px; font-size: 12px; margin-top: 12px; }
.outing-state.pending { background: var(--orange-soft); color: #d96500; }
.outing-state.rejected { background: var(--red-soft); color: #b42318; }
.checkin-box { display: flex; gap: 12px; background: #f8fafd; border-radius: 12px; padding: 10px; margin-top: 12px; }
.checkin-photo { width: 120px; height: 80px; border-radius: 8px; overflow: hidden; background: #eef2f8; flex: none; display: grid; place-items: center; }
.checkin-photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-demo { font-size: 11px; color: var(--brand); }
.checkin-info { display: flex; flex-direction: column; gap: 2px; font-size: 12px; }
.checkin-info span { color: var(--muted); font-size: 11px; }
.checkin-info small { color: var(--muted); font-size: 10.5px; }
.checkin-thumb { max-width: 220px; border-radius: 8px; display: block; }
.checkin-step { display: flex; align-items: center; gap: 6px; margin: 14px 0 8px; flex-wrap: wrap; }
.checkin-step i { width: 18px; height: 18px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 10px; font-style: normal; display: grid; place-items: center; }
.checkin-step b { font-size: 12.5px; }
.checkin-step span { font-size: 10.5px; color: var(--muted); }
.geo-box { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: #f8fafd; border-radius: 10px; padding: 10px 12px; flex-wrap: wrap; }
#geo-state { font-size: 12px; color: var(--ink-2); }
.geo-actions { display: flex; gap: 6px; }
.photo-input { font-size: 12px; margin: 4px 0 8px; }
.photo-actions { display: flex; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.geo-field { display: flex; gap: 6px; align-items: center; }
.geo-field input { flex: 1; min-width: 0; }
.photo-btn { cursor: pointer; }
.photo-wrap { width: 100%; height: 150px; border: 1px dashed var(--line); border-radius: 10px; display: grid; place-items: center; background: #fbfcfe; margin-bottom: 8px; overflow: hidden; }
.photo-wrap img { width: 100%; height: 100%; object-fit: cover; }
.photo-wrap span { font-size: 11px; color: var(--muted); }
.approval-list { display: flex; flex-direction: column; gap: 10px; }
.approval-card { border: 1px solid var(--line-soft); border-radius: 12px; padding: 12px 14px; background: #fff; }
.ap-top { display: flex; align-items: center; gap: 9px; }
.ap-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.ap-main b { font-size: 13.5px; }
.ap-main small { font-size: 11px; color: var(--muted); }
.ap-meta { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; margin: 10px 0; padding: 10px 0; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); }
.ap-meta div { display: flex; flex-direction: column; min-width: 0; }
.ap-meta span { font-size: 10px; color: #a9b1bf; }
.ap-meta b { font-size: 12px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
.ap-actions { display: flex; justify-content: flex-end; gap: 8px; }
.ap-terms { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 12px; color: var(--muted); }
.ap-terms select { height: 32px; border: 1px solid var(--line); border-radius: 7px; padding: 0 8px; background: #fff; color: var(--ink); font-size: 12px; }

.detail-hero { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px 18px; }
.d-item { min-width: 0; }
.d-item.span-2 { grid-column: span 2; }
.d-label { font-size: 10.5px; color: #a9b1bf; display: block; margin-bottom: 3px; }
.d-value { font-size: 13px; color: var(--ink); word-break: break-word; }
.calc-line {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--brand-soft); border-radius: 10px; padding: 12px 14px; margin-top: 18px;
  font-size: 12px; color: var(--ink-2);
}
.calc-line b { font-size: 17px; color: var(--brand); font-variant-numeric: tabular-nums; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.f-field { min-width: 0; display: flex; flex-direction: column; }
.f-field.span-2 { grid-column: span 2; }
.f-label { font-size: 11.5px; color: var(--ink-2); margin-bottom: 6px; font-weight: 500; }
.f-label i { color: var(--red); font-style: normal; margin-left: 2px; }
.form-grid input[type="text"], .form-grid input[type="number"], .form-grid input[type="date"], .form-grid select, .form-grid textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 9px; background: #fff;
  height: 40px; padding: 0 10px; outline: none; color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-grid textarea { height: auto; padding: 9px 10px; resize: vertical; line-height: 1.55; }
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus { border-color: #9db9ff; box-shadow: 0 0 0 3px rgba(22, 93, 255, 0.1); }
.form-grid select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #86909c 50%), linear-gradient(135deg, #86909c 50%, transparent 50%); background-position: calc(100% - 15px) 17px, calc(100% - 10px) 17px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 26px; }
.f-help { font-size: 10px; color: #a9b1bf; margin-top: 3px; }
.multi-select { display: flex; flex-wrap: wrap; gap: 7px; }
.multi-item { display: inline-flex; align-items: center; cursor: pointer; }
.multi-item input { position: absolute; opacity: 0; pointer-events: none; }
.multi-item span { font-size: 11.5px; color: var(--ink-2); border: 1px solid var(--line); border-radius: 8px; padding: 6px 9px; background: #fff; transition: all 0.15s; }
.multi-item:has(input:checked) span { background: var(--brand-soft); border-color: #b9cdfd; color: var(--brand); }
.f-switch-row { display: flex; align-items: center; justify-content: space-between; height: 40px; }
.switch { position: relative; width: 44px; height: 24px; flex: none; cursor: pointer; }
.switch input { position: absolute; opacity: 0; }
.switch .track { position: absolute; inset: 0; background: #d5dae4; border-radius: 99px; transition: background 0.2s; }
.switch .track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); transition: transform 0.2s; }
.switch input:checked + .track { background: var(--brand); }
.switch input:checked + .track::after { transform: translateX(20px); }

.sheet-actions { display: flex; gap: 8px; margin-top: 16px; }
.cust-hero { display: flex; align-items: center; gap: 12px; }
.cust-hero > div { display: flex; flex-direction: column; gap: 2px; }
.cust-hero b { font-size: 16px; }
.cust-hero small { font-size: 11px; color: var(--muted); }
.cust-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0 4px; }
.cust-kpis > div { background: #f8fafd; border-radius: 10px; padding: 9px 11px; display: flex; flex-direction: column; }
.cust-kpis span { font-size: 10.5px; color: var(--muted); }
.cust-kpis b { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.sheet-section-title { display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; font-weight: 600; margin: 18px 0 6px; }
.sheet-section-title span { font-weight: 400; font-size: 10.5px; color: var(--muted); }
.about-block { margin-bottom: 16px; }
.about-block h4 { font-size: 12.5px; font-weight: 600; margin-bottom: 4px; }
.about-block p { font-size: 12px; color: var(--ink-2); line-height: 1.7; }

.modal-overlay {
  position: fixed; inset: 0; z-index: 90; background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(2px); display: grid; place-items: center; padding: 20px;
}
.modal {
  width: min(380px, 100%); background: #fff; border-radius: 18px; padding: 24px;
  box-shadow: var(--shadow-lg); animation: pop 0.18s ease both;
}
@keyframes pop { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: none; } }
.modal-icon { width: 42px; height: 42px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin-bottom: 12px; }
.modal-icon.danger { background: var(--red-soft); color: var(--red); }
.modal h3 { font-size: 17px; font-weight: 600; }
.modal p { font-size: 12.5px; color: var(--muted); margin-top: 6px; line-height: 1.65; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }

.toast-root { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); z-index: 120; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast {
  display: inline-flex; align-items: center; gap: 7px; background: rgba(29, 33, 41, 0.92); color: #fff;
  font-size: 12.5px; padding: 9px 14px; border-radius: 10px; box-shadow: 0 12px 30px rgba(15, 23, 42, 0.25);
  opacity: 0; transform: translateY(8px); transition: all 0.2s ease;
}
.toast.in { opacity: 1; transform: none; }
.toast svg { color: #7be08f; }
.toast-error { background: rgba(180, 35, 24, 0.95); }
.toast-error svg { color: #ffc9c2; }

/* 头像 */
.avatar {
  width: 27px; height: 27px; border-radius: 50%; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11.5px; font-weight: 600; color: #fff; letter-spacing: 0;
  background: #94a3b8;
}
.avatar-lg { width: 58px; height: 58px; font-size: 22px; border-radius: 18px; }
.av-0 { background: #4f7cff; }
.av-1 { background: #00a6a6; }
.av-2 { background: #8b5cf6; }
.av-3 { background: #f59e0b; }
.av-4 { background: #ec4899; }
.av-5 { background: #0ea5e9; }

/* 状态 chip */
.chip {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10.5px; line-height: 1.5; padding: 2px 7px; border-radius: 6px;
  font-weight: 500; white-space: nowrap;
}
.chip-success { background: var(--green-soft); color: #00962a; }
.chip-danger { background: var(--red-soft); color: #d32020; }
.chip-warn { background: var(--orange-soft); color: #d96500; }
.chip-info { background: var(--brand-soft); color: var(--brand); }
.chip-neutral { background: #f2f4f8; color: #6b778c; }
.chip-purple { background: var(--purple-soft); color: var(--purple); }
.chip-soft { background: #f4f6fa; color: var(--ink-2); }

/* 底部导航 */
.bottom-nav { display: none; }

/* ============ 响应式 ============ */
@media (max-width: 1100px) {
  .biz-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-grid, .home-grid-2, .home-hero-row { grid-template-columns: 1fr; }
  .perf-grid { grid-template-columns: 1fr; }
  .kanban { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1023px) {
  .sidebar { display: none; }
  .app { display: block; }
  .topbar { padding: 0 14px; height: 56px; }
  .content { padding: 16px 14px 88px; }
  .desktop-only { display: none !important; }
  .mobile-only { display: inline-flex !important; }
  .page-title { font-size: 22px; }
  .bottom-nav {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(14px);
    border-top: 1px solid var(--line-soft);
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
  }
  .bn-item {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
    padding: 4px 0; color: #8a94a6; font-size: 10px; border-radius: 10px;
  }
  .bn-item.active { color: var(--brand); }
  .bn-item.active svg { stroke-width: 2; }
  .record-cards { display: grid; gap: 10px; }
  .toast-root { bottom: 78px; }
  .summary-strip { grid-template-columns: repeat(2, 1fr); gap: 10px 0; padding: 10px 4px; }
  .sum-item:nth-child(2) { border-right: none; }
  .sum-item { padding: 4px 14px; }
  .kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero { padding: 22px; }
  .hero-side { padding-left: 18px; min-width: 190px; }
  .me-stats { grid-template-columns: repeat(2, 1fr); }
  .g-head, .g-row { grid-template-columns: 120px 1fr; }
  .g-head .g-label { font-size: 10px; }
}

@media (max-width: 700px) {
  .content { padding: 12px 12px 88px; }
  .page { gap: 12px; }
  .page-head { flex-direction: column; align-items: stretch; gap: 10px; }
  .page-actions { justify-content: flex-start; }
  .page-actions .btn { flex: 0 0 auto; }
  .hero { flex-direction: column; align-items: stretch; padding: 20px; gap: 16px; }
  .hero-main h2 { font-size: 23px; }
  .hero-main p { font-size: 12px; }
  .hero-side { grid-template-columns: repeat(3, 1fr); padding-left: 0; padding-top: 14px; border-left: none; border-top: 1px solid rgba(255, 255, 255, 0.2); min-width: 0; gap: 8px; }
  .hero-stat b { font-size: 14px; }
  .hero-actions { gap: 6px; }
  .hero-actions .btn { height: 34px; padding: 0 10px; font-size: 12px; }
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .kpi { padding: 12px 13px; }
  .kpi-value { font-size: 20px; }
  .kpi-foot { font-size: 10px; }
  .home-grid { gap: 10px; }
  .card { padding: 14px; }
  .summary-strip { grid-template-columns: repeat(2, 1fr); }
  .sum-value { font-size: 18px; }
  .toolbar { gap: 8px; }
  .search-box { max-width: none; min-width: 0; flex: 1 1 100%; }
  .filter-chips { order: 3; width: 100%; flex: 1 1 100%; }
  .result-count { order: 4; }
  .biz-grid { grid-template-columns: 1fr; }
  .biz-tile { padding: 13px; }
  .cust-grid { grid-template-columns: 1fr; }
  .perf-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
  .perf-sum-card { padding: 10px; border-radius: 12px; }
  .perf-sum-card span { font-size: 9.5px; white-space: nowrap; }
  .perf-sum-card b { font-size: 18px; margin-top: 1px; }
  .perf-sum-card b.champion { font-size: 14px; }
  .perf-sum-card b i { font-size: 10px; }
  .perf-sum-card small { font-size: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .deduct-row { grid-template-columns: 1fr auto; gap: 3px 10px; }
  .dr-main { grid-column: 1; grid-row: 1; }
  .dr-calc { grid-column: 1; grid-row: 2; font-size: 10.5px; }
  .dr-amount { grid-column: 2; grid-row: 1 / 3; align-self: center; }
  .ap-meta { grid-template-columns: 1fr; }
  .checkin-box { flex-direction: column; }
  .checkin-photo { width: 100%; height: 160px; }
  .photo-wrap { height: 140px; }
  .rank-row { grid-template-columns: 22px 28px 1fr auto; gap: 8px; }
  .perf-detail { padding: 14px; }
  .perf-person { gap: 12px; }
  .ring { width: 96px; height: 96px; }
  .ring-in { width: 74px; height: 74px; }
  .ring-in b { font-size: 19px; }
  .pp-main h3 { font-size: 16px; }
  .perf-quick { margin-top: 12px; }
  .metric-list { gap: 12px; }
  .weight-list { grid-template-columns: 1fr; }
  .kanban { display: flex; overflow-x: auto; gap: 10px; padding-bottom: 4px; scroll-snap-type: x mandatory; }
  .kanban-col { min-width: 258px; scroll-snap-align: start; }
  .kc-body { max-height: none; overflow: visible; }
  .gantt { min-width: 680px; }
  .g-head, .g-row { grid-template-columns: 96px 1fr; gap: 8px; }
  .g-label b { font-size: 11px; }
  .me-hero { padding: 20px; }
  .me-stats { grid-template-columns: repeat(2, 1fr); }
  .quick-grid { grid-template-columns: 1fr; }
  .me-id h2 { font-size: 19px; }
  .me-stats b { font-size: 14px; }
  .segmented { flex-wrap: wrap; }
  .sheet {
    top: auto; bottom: 0; height: auto; max-height: 92vh; width: 100%;
    border-radius: 20px 20px 0 0; transform: translateY(102%);
  }
  .sheet-wide { width: 100%; }
  .sheet-head { padding: 16px 16px 12px; }
  .sheet-head h2 { font-size: 17px; }
  .sheet-body { padding: 14px 16px 18px; }
  .sheet-foot { padding: 11px 16px calc(11px + env(safe-area-inset-bottom)); }
  .form-grid { grid-template-columns: 1fr; gap: 12px; }
  .f-field.span-2 { grid-column: span 1; }
  .detail-grid { grid-template-columns: 1fr; gap: 12px; }
  .d-item.span-2 { grid-column: span 1; }
  .cust-kpis { grid-template-columns: 1fr 1fr; }
  .modal { padding: 20px; border-radius: 16px; }
  .chart-card .legend { font-size: 10px; }
  .kpi-icon { width: 26px; height: 26px; }
  .kpi-icon svg { width: 15px; height: 15px; }
  .tb-date, .badge-demo { display: none; }
  .page-title { font-size: 20px; }
  .page-sub { font-size: 12px; }
  .toast-root { bottom: 74px; width: calc(100% - 32px); }
  .toast { max-width: 100%; }
  .rank-mini-row { grid-template-columns: 22px 28px 1fr auto; }
  .feed-date { font-size: 10px; }
}
