:root {
  --primary: #00ae66;
  --primary-dark: #00965a;
  --primary-soft: #e8f8f0;
  --price: #e23c3c;
  --gold: #c9a227;
  --text: #1f2329;
  --text-2: #646a73;
  --text-3: #8f959e;
  --line: #e8eaed;
  --bg: #f4f5f7;
  --card: #ffffff;
  --shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  --radius: 14px;
  --tabbar-h: 58px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--text);
  background: #dfe3e8;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

#app { min-height: 100%; display: flex; justify-content: center; }
.phone {
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  background: var(--bg);
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

.status-bar {
  height: 28px;
  padding: 4px 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
  z-index: 20;
}
.status-icons { display: flex; align-items: center; gap: 6px; }
.battery {
  width: 22px; height: 11px; border: 1.4px solid currentColor; border-radius: 3px; position: relative;
}
.battery::after {
  content: ""; position: absolute; right: -3px; top: 3px; width: 1.5px; height: 5px; background: currentColor; border-radius: 1px;
}
.battery i { display: block; height: 100%; width: 72%; background: currentColor; }

.view {
  flex: 1;
  overflow: auto;
  padding-bottom: calc(var(--tabbar-h) + var(--safe-b) + 8px);
  -webkit-overflow-scrolling: touch;
}
.view.no-tab { padding-bottom: 24px; }

.tabbar {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: calc(var(--tabbar-h) + var(--safe-b));
  padding-bottom: var(--safe-b);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  display: flex;
  z-index: 30;
}
.tabbar[hidden] { display: none !important; }
.tabbar button {
  flex: 1;
  border: 0;
  background: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--text-3);
  font-size: 10px;
}
.tabbar button { position: relative; }
.tabbar button.active { color: var(--primary); font-weight: 600; }
.tabbar svg { width: 22px; height: 22px; }
.tab-badge {
  position: absolute; top: 3px; right: 16%;
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 8px; background: #e23c3c; color: #fff;
  font-size: 10px; line-height: 16px; font-weight: 700;
}
.tabbar button.tab-work .tab-fab {
  width: 42px; height: 42px; margin-top: -16px; border-radius: 14px;
  background: var(--primary); color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 8px 16px rgba(0, 174, 102, 0.32);
}
.tabbar button.tab-work .tab-fab svg { width: 22px; height: 22px; stroke: #fff; }
.tabbar button.tab-work.active { color: var(--primary); }
.tabbar button.tab-work.active .tab-fab { background: var(--primary-dark); }

.nav {
  position: sticky; top: 0; z-index: 15;
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px 10px;
  background: var(--bg);
}
.nav.solid { background: #fff; border-bottom: 1px solid var(--line); }
.nav .title { flex: 1; text-align: center; font-size: 17px; font-weight: 700; }
.icon-btn {
  width: 36px; height: 36px; border: 0; background: #fff; border-radius: 50%;
  display: grid; place-items: center; box-shadow: var(--shadow); flex-shrink: 0;
}
.nav.solid .icon-btn { box-shadow: none; background: var(--bg); }

.house-nav { gap: 6px; }
.house-main-tabs {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
}
.house-main-tabs button {
  border: 0;
  background: transparent;
  padding: 8px 12px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-3);
  position: relative;
}
.house-main-tabs button.active {
  color: var(--text);
  font-weight: 800;
}
.house-main-tabs button.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  transform: translateX(-50%);
  width: 22px;
  height: 3px;
  border-radius: 2px;
  background: var(--primary);
}
.house-nav-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.search-pill {
  flex: 1;
  height: 38px;
  border-radius: 20px;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  color: var(--text-3);
  font-size: 13px;
  box-shadow: var(--shadow);
}
.search-pill input {
  border: 0; outline: 0; background: transparent; width: 100%; color: var(--text);
}
.city-btn {
  border: 0; background: none; font-weight: 700; font-size: 15px;
  display: flex; align-items: center; gap: 2px; padding: 0 4px;
}

.banner {
  margin: 8px 16px 4px;
  height: 132px;
  border-radius: 16px;
  padding: 22px 20px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.banner.green { background: linear-gradient(135deg, #00ae66, #0f8f78); }
.banner.blue { background: linear-gradient(135deg, #2b7de9, #1d4ed8); }
.banner.orange { background: linear-gradient(135deg, #ff8a00, #e85d4c); }
.banner h3 { font-size: 22px; margin-bottom: 6px; }
.banner p { opacity: 0.9; font-size: 13px; }
.banner::after {
  content: ""; position: absolute; right: -20px; bottom: -30px;
  width: 140px; height: 140px; border-radius: 50%;
  background: rgba(255,255,255,0.12);
}
.dots { display: flex; justify-content: center; gap: 6px; margin: 8px 0 4px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: #d0d4da; }
.dots i.on { width: 14px; border-radius: 4px; background: var(--primary); }

.grid-8 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px 6px;
  padding: 14px 10px 6px;
  background: #fff;
  margin: 8px 16px;
  border-radius: var(--radius);
}
.grid-item {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: 12px; color: var(--text);
  background: none; border: 0;
  line-height: 1.25; text-align: center;
}
.grid-ico {
  width: 42px; height: 42px; border-radius: 14px;
  display: grid; place-items: center; color: #fff;
}

.section { padding: 6px 16px 0; }
.section-hd {
  display: flex; align-items: center; justify-content: space-between;
  margin: 10px 0 8px;
}
.section-hd h3 { font-size: 16px; }
.more { border: 0; background: none; color: var(--text-3); font-size: 12px; }

.h-scroll { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 8px; }
.h-scroll::-webkit-scrollbar { display: none; }
.project-card {
  min-width: 210px; background: #fff; border-radius: 14px; overflow: hidden;
  box-shadow: var(--shadow); text-align: left; border: 0; padding: 0;
}
.cover {
  height: 110px; position: relative; display: flex; align-items: flex-end;
  padding: 8px; color: #fff; font-size: 12px;
}
.cover .tag {
  background: rgba(0,0,0,0.4); padding: 2px 6px; border-radius: 4px;
}
.project-card .body, .house-card .body { padding: 10px 12px 12px; }
.project-card .name { font-weight: 700; font-size: 14px; }
.meta { color: var(--text-3); font-size: 12px; margin: 4px 0; }
.price { color: var(--price); font-weight: 700; }
.price em { font-style: normal; font-size: 12px; font-weight: 500; }

.house-card {
  width: 100%; background: #fff; border: 0; border-radius: 14px;
  display: flex; gap: 12px; padding: 12px; margin-bottom: 10px;
  text-align: left; box-shadow: var(--shadow);
}
.house-card .thumb {
  width: 108px; height: 82px; border-radius: 10px; flex-shrink: 0;
  position: relative; overflow: hidden;
}
.house-card h4 { font-size: 14px; line-height: 1.35; }
.tags { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0; }
.tag {
  font-size: 10px; padding: 2px 6px; border-radius: 4px;
  background: var(--primary-soft); color: var(--primary-dark);
}
.tag.orange { background: #fff4e8; color: #d46b08; }
.tag.blue { background: #e8f1ff; color: #1d4ed8; }
.tag.gray { background: #f0f1f3; color: #646a73; }
.tag.status-follow { background: #e8f1ff; color: #1d4ed8; }
.tag.status-view { background: #fff4e8; color: #d46b08; }
.tag.status-deal { background: #e8f8ef; color: #0f8a4b; }

.filter-bar {
  display: flex; background: #fff; border-bottom: 1px solid var(--line);
  position: sticky; top: 50px; z-index: 10;
}
.filter-bar button, .type-tabs button {
  flex: 1; height: 40px; border: 0; background: none; font-size: 13px; color: var(--text-2);
}
.type-tabs {
  display: flex; background: #fff; padding: 0 8px;
  border-bottom: 1px solid var(--line);
}
.type-tabs button { position: relative; font-weight: 600; }
.type-tabs button.active { color: var(--primary); }
.type-tabs button.active::after {
  content: ""; position: absolute; left: 22%; right: 22%; bottom: 4px;
  height: 3px; border-radius: 2px; background: var(--primary);
}

.list-page { padding: 10px 16px 20px; }
.empty {
  text-align: center; color: var(--text-3); padding: 48px 16px; font-size: 13px;
}

.detail-cover {
  height: 230px; position: relative; color: #fff;
}
.detail-cover .count {
  position: absolute; right: 12px; bottom: 12px;
  background: rgba(0,0,0,0.45); padding: 3px 8px; border-radius: 10px; font-size: 12px;
}
.detail-card {
  background: #fff; margin: -18px 12px 12px; border-radius: 16px;
  padding: 16px; position: relative; box-shadow: var(--shadow);
}
.detail-card .big-price { font-size: 26px; color: var(--price); }
.kv {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px 8px; margin-top: 12px;
  font-size: 13px;
}
.kv b { display: block; color: var(--text-3); font-weight: 400; font-size: 12px; margin-bottom: 2px; }
.block {
  background: #fff; margin: 0 12px 12px; border-radius: 16px; padding: 16px;
}
.block h3 { font-size: 16px; margin-bottom: 10px; }
.agent-row {
  display: flex; align-items: center; gap: 10px;
}
.avatar {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; font-weight: 700;
}
.bottom-cta {
  position: sticky; bottom: 0; left: 0; right: 0;
  display: flex; gap: 8px; padding: 10px 12px calc(10px + var(--safe-b));
  background: #fff; border-top: 1px solid var(--line);
}
.btn {
  height: 44px; border: 0; border-radius: 22px; padding: 0 16px;
  font-weight: 700; font-size: 15px;
}
.btn-ghost { background: var(--primary-soft); color: var(--primary-dark); }
.btn-primary { background: var(--primary); color: #fff; flex: 1; }
.btn-danger { background: var(--price); color: #fff; flex: 1; }
.btn-block { width: 100%; }

.news-item {
  width: 100%; background: #fff; border: 0; border-radius: 14px;
  padding: 14px; margin-bottom: 10px; text-align: left; box-shadow: var(--shadow);
}
.news-item h4 { font-size: 15px; line-height: 1.4; margin: 6px 0; }
.article { background: #fff; padding: 16px; border-radius: 16px; margin: 12px; }
.article h2 { font-size: 20px; line-height: 1.4; margin-bottom: 10px; }
.article p { font-size: 15px; line-height: 1.8; color: var(--text-2); margin-top: 10px; }

.tool-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 12px 16px;
}
.tool-card {
  background: #fff; border: 0; border-radius: 14px; padding: 16px; text-align: left;
  box-shadow: var(--shadow);
}
.tool-card h4 { margin: 8px 0 4px; }
.tool-card p { color: var(--text-3); font-size: 12px; }

.form { padding: 12px 16px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; height: 44px; border: 1px solid var(--line); border-radius: 10px;
  padding: 0 12px; background: #fff; outline: none;
}
.field textarea { height: 88px; padding: 10px 12px; resize: none; }
.seg {
  display: flex; background: var(--bg); border-radius: 10px; padding: 3px;
}
.seg button {
  flex: 1; height: 34px; border: 0; background: transparent; border-radius: 8px; font-size: 13px;
}
.seg button.on { background: #fff; color: var(--primary); font-weight: 700; box-shadow: var(--shadow); }
.result-card {
  background: #fff; border-radius: 16px; padding: 16px; margin: 8px 16px 16px;
}
.result-card .num { font-size: 28px; color: var(--price); font-weight: 800; }
.result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; font-size: 13px; }
.result-grid span { color: var(--text-3); display: block; }

.mine-head {
  margin: 8px 16px; padding: 20px 16px; border-radius: 18px; color: #fff;
  background: linear-gradient(135deg, #0f8f78, #00ae66);
  display: flex; align-items: center; gap: 12px;
}
.mine-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  margin: 0 16px 12px;
}
.stat {
  background: #fff; border: 0; border-radius: 12px; padding: 12px 0; text-align: center;
}
.stat b { display: block; font-size: 18px; }
.stat span { font-size: 11px; color: var(--text-3); }
.menu {
  background: #fff; margin: 0 16px 12px; border-radius: 14px; overflow: hidden;
}
.menu button, .menu a {
  width: 100%; display: flex; align-items: center; gap: 10px;
  padding: 14px 16px; border: 0; background: none; text-align: left;
  border-bottom: 1px solid var(--line); font-size: 15px;
}
.menu button:last-child, .menu a:last-child { border-bottom: 0; }
.menu .arrow { margin-left: auto; color: var(--text-3); }

.wallet-entry {
  display: block; width: calc(100% - 32px); margin: 0 16px 12px;
  text-align: left; border: 0; border-radius: 16px; padding: 16px;
  color: #fff; background: linear-gradient(135deg, #1f6feb, #2b7de9 55%, #5b8def);
  box-shadow: 0 8px 20px rgba(43, 125, 233, 0.22);
}
.wallet-entry-top {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; opacity: 0.95;
}
.wallet-entry-top .arrow { color: rgba(255,255,255,.9); margin-left: 0; }
.wallet-entry-amt {
  margin-top: 8px; font-size: 28px; font-weight: 800; letter-spacing: 0.5px;
}
.wallet-entry-sub { margin-top: 4px; font-size: 12px; opacity: 0.88; }

.wallet-hero {
  margin: 8px 16px 12px; padding: 18px 16px 16px; border-radius: 18px; color: #fff;
  background: linear-gradient(145deg, #1d4ed8, #2b7de9 50%, #60a5fa);
}
.wallet-balance {
  margin-top: 6px; font-size: 34px; font-weight: 800; letter-spacing: 0.5px;
}
.wallet-hero-row {
  display: flex; flex-wrap: wrap; gap: 10px 14px;
  margin-top: 12px; font-size: 12px; opacity: 0.9;
}
.wallet-hero-actions { margin-top: 14px; }
.btn-light {
  border: 0; border-radius: 22px; padding: 10px 18px;
  background: #fff; color: #1d4ed8; font-weight: 700; font-size: 14px;
}
.wallet-bank {
  margin: 0 16px 10px; padding: 12px 14px; border-radius: 14px; background: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  box-shadow: var(--shadow);
}
.wallet-record {
  background: #fff; border-radius: 14px; padding: 12px 14px; margin-bottom: 10px;
  box-shadow: var(--shadow);
}
.wallet-record-top {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 10px;
}
.wallet-record-top b { font-size: 14px; }
.amt-in { color: #00ae66; font-weight: 700; font-variant-numeric: tabular-nums; }
.amt-out { color: #e23c3c; font-weight: 700; font-variant-numeric: tabular-nums; }
.wallet-record-foot {
  margin-top: 6px; display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.wallet-withdraw-card {
  margin: 8px 16px 0; padding: 16px; border-radius: 14px; background: #fff;
  box-shadow: var(--shadow);
}
.wallet-withdraw-balance {
  margin-top: 6px; font-size: 28px; font-weight: 800; color: var(--text);
}
.withdraw-input-row {
  display: flex; align-items: center; gap: 8px;
}
.withdraw-input-row input { flex: 1; }
.quick-amt {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  margin: 0 0 12px;
}
.quick-amt button {
  border: 1px solid var(--line); background: #fff; border-radius: 10px;
  padding: 10px 0; font-size: 13px; color: var(--text);
}

.chat-list { padding: 12px; display: flex; flex-direction: column; gap: 10px; min-height: 52vh; }
.bubble {
  max-width: 78%; padding: 10px 12px; border-radius: 14px; font-size: 14px; line-height: 1.5;
}
.bubble.bot { background: #fff; align-self: flex-start; }
.bubble.me { background: var(--primary); color: #fff; align-self: flex-end; }
.chat-input {
  position: sticky; bottom: 0;
  display: flex; gap: 8px; padding: 8px 12px calc(8px + var(--safe-b));
  background: #fff; border-top: 1px solid var(--line);
}
.chat-input input { flex: 1; height: 40px; border: 1px solid var(--line); border-radius: 20px; padding: 0 14px; outline: none; }
.quick-q { display: flex; gap: 8px; overflow-x: auto; padding: 8px 12px 0; }
.quick-q button {
  white-space: nowrap; border: 1px solid var(--line); background: #fff;
  border-radius: 16px; padding: 6px 10px; font-size: 12px;
}

.map-wrap {
  margin: 12px; height: 360px; border-radius: 16px; overflow: hidden; position: relative;
  background:
    linear-gradient(90deg, rgba(0,174,102,0.06) 1px, transparent 1px),
    linear-gradient(rgba(0,174,102,0.06) 1px, transparent 1px),
    linear-gradient(180deg, #d7efe4, #eef6f1);
  background-size: 28px 28px, 28px 28px, auto;
}
.map-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px 0; font-size: 13px; color: var(--text-2);
}
.map-empty {
  position: absolute; inset: 0; display: grid; place-items: center;
  color: var(--text-2); font-size: 13px;
}
.pin {
  position: absolute; transform: translate(-50%, -100%);
  background: #fff; border-radius: 16px; padding: 4px 8px; font-size: 11px;
  box-shadow: var(--shadow); border: 1px solid var(--primary);
  color: var(--primary-dark); font-weight: 600; white-space: nowrap;
}
.pin::after {
  content: ""; position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%);
  border: 6px solid transparent; border-top-color: var(--primary);
}

.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 50;
  background: #fff; border-radius: 18px 18px 0 0; padding: 16px 16px calc(16px + var(--safe-b));
  box-shadow: 0 -8px 30px rgba(0,0,0,0.12);
}
.sheet h3 { text-align: center; margin-bottom: 12px; }
.sheet-tall { max-height: 78vh; display: flex; flex-direction: column; }
.sheet-scroll {
  flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch;
  margin: 0 -4px; padding: 0 4px 4px; max-height: 48vh;
}
.sign-client-item {
  width: 100%; display: flex; align-items: center; gap: 10px;
  padding: 12px 8px; border: 0; border-bottom: 1px solid var(--line);
  background: #fff; text-align: left;
}
.sign-client-item:last-child { border-bottom: 0; }
.sign-client-item .lv {
  width: 36px; height: 36px; border-radius: 18px; flex-shrink: 0;
  display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 13px;
}
.city-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.city-list button {
  height: 40px; border: 1px solid var(--line); background: var(--bg); border-radius: 8px;
}
.city-list button.on { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }

.toast {
  position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%);
  background: rgba(20, 20, 20, 0.88); color: #fff; padding: 8px 14px;
  border-radius: 8px; font-size: 13px; z-index: 80;
}
.overlay[hidden], .toast[hidden] { display: none !important; }
.overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,0.4); z-index: 40;
}

.login-card {
  margin: 32px 20px; background: #fff; border-radius: 18px; padding: 24px 18px;
}
.cover.c1 { background: linear-gradient(135deg, #1aa86b, #0b6e5a); }
.cover.c2 { background: linear-gradient(135deg, #3b82f6, #1e3a8a); }
.cover.c3 { background: linear-gradient(135deg, #f59e0b, #b45309); }
.cover.c4 { background: linear-gradient(135deg, #8b5cf6, #5b21b6); }
.cover.c5 { background: linear-gradient(135deg, #ef4444, #9f1239); }
.cover.c6 { background: linear-gradient(135deg, #14b8a6, #0f766e); }
.cover.c7 { background: linear-gradient(135deg, #64748b, #1e293b); }
.cover.c8 { background: linear-gradient(135deg, #0ea5e9, #075985); }

.house-pattern {
  position: absolute; inset: 0; opacity: 0.18;
  background-image: radial-gradient(circle at 20% 30%, #fff 0 2px, transparent 3px),
    radial-gradient(circle at 80% 70%, #fff 0 1.5px, transparent 3px);
}

.filter-panel {
  background: #fff; padding: 8px 16px 12px; border-bottom: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 8px;
}
.chip {
  border: 1px solid var(--line); background: #fff; border-radius: 16px;
  padding: 5px 10px; font-size: 12px;
}
.chip.on { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }

@media (min-width: 500px) {
  .phone { min-height: 860px; margin: 24px 0; border-radius: 28px; }
  body { padding: 0; }
}

.kpi-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 6px; margin: 0 12px 10px;
}
.kpi {
  background: #fff; border-radius: 12px; padding: 10px 4px; text-align: center;
  box-shadow: var(--shadow);
}
.kpi b { display: block; font-size: 15px; font-variant-numeric: tabular-nums; }
.kpi span { font-size: 10px; color: var(--text-3); }
.todo-item, .client-card, .msg-item {
  width: 100%; background: #fff; border: 0; border-radius: 14px;
  padding: 12px 14px; margin-bottom: 10px; text-align: left;
  box-shadow: var(--shadow); display: block;
}
.todo-item { display: flex; align-items: center; gap: 10px; }
.todo-item .time {
  width: 52px; color: var(--primary); font-weight: 700; font-size: 12px; flex-shrink: 0;
}
.client-card { display: flex; gap: 12px; align-items: flex-start; }
.client-card .lv {
  width: 42px; height: 42px; border-radius: 21px; color: #fff;
  display: grid; place-items: center; font-weight: 700; flex-shrink: 0;
}
.msg-item { display: flex; gap: 12px; align-items: center; }
.msg-item .dot {
  min-width: 18px; height: 18px; border-radius: 9px; background: #e23c3c;
  color: #fff; font-size: 11px; display: grid; place-items: center; margin-left: auto;
}
.fab {
  position: sticky; float: right; margin: 0 16px 12px auto;
  width: 52px; height: 52px; border: 0; border-radius: 26px;
  background: var(--primary); color: #fff; font-size: 28px; line-height: 50px;
  box-shadow: 0 8px 18px rgba(0, 174, 102, 0.35);
}
.hello { padding: 8px 16px 4px; }
.hello h2 { font-size: 20px; }
.hello p { color: var(--text-3); font-size: 12px; margin-top: 4px; }
.client-search {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px 6px; background: #fff;
  border-bottom: 1px solid var(--line);
}
.client-search .search-pill { flex: 1; }
.client-search input { font-size: 14px; }
.drop-filter {
  display: flex;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.drop-btn {
  flex: 1;
  height: 42px;
  border: 0;
  background: none;
  color: var(--text);
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.drop-btn span {
  max-width: 5.8em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.drop-btn i {
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #333;
  margin-top: 2px;
}
.drop-btn.active { color: var(--primary); font-weight: 600; }
.drop-btn.active i { border-top-color: var(--primary); }
.drop-panel {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 8px 12px 12px;
  max-height: 260px;
  overflow: auto;
}
.drop-panel-region {
  padding: 0;
  max-height: 280px;
  overflow: hidden;
}
.region-cascade {
  display: flex;
  min-height: 220px;
  max-height: 280px;
}
.region-cities {
  width: 88px;
  flex-shrink: 0;
  background: var(--bg);
  overflow: auto;
  border-right: 1px solid var(--line);
}
.region-city {
  width: 100%;
  height: 44px;
  border: 0;
  background: transparent;
  font-size: 14px;
  color: var(--text-2);
  text-align: center;
}
.region-city.on {
  background: #fff;
  color: var(--primary);
  font-weight: 700;
  position: relative;
}
.region-city.on::before {
  content: "";
  position: absolute;
  left: 0; top: 12px; bottom: 12px;
  width: 3px;
  border-radius: 2px;
  background: var(--primary);
}
.region-districts {
  flex: 1;
  padding: 10px 12px 12px;
  overflow: auto;
  background: #fff;
}
.drop-options {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.drop-item {
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--text);
}
.drop-item.on {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-soft);
  font-weight: 600;
}
.drop-section { margin-bottom: 10px; }
.drop-section:last-child { margin-bottom: 0; }
.drop-title {
  font-size: 12px; color: var(--text-3); margin-bottom: 8px;
}
.expect-row {
  display: flex; flex-wrap: wrap; gap: 8px 12px;
  margin: 6px 0 2px; font-size: 12px; color: var(--text);
}
.expect-row span {
  background: var(--primary-soft); color: var(--primary-dark);
  border-radius: 4px; padding: 2px 6px;
}

.dash-page { padding: 0 12px 12px; background: #f5f7fa; min-height: 100%; }
.dash-page-embed {
  padding: 0; background: transparent; min-height: 0; margin-top: 4px;
}
.section-dash { background: transparent; box-shadow: none; padding: 0; }
.section-dash .section-hd {
  padding: 0 4px 8px; margin: 0;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.section-dash .section-hd h3 { margin: 0; flex: 0 0 auto; }
.section-dash .section-hd .dash-badge { flex: 0 0 auto; }
.section-dash .section-hd .dash-select { margin-left: auto; }
.dash-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0 8px;
}
.dash-badge {
  display: inline-flex; align-items: center;
  height: 28px; padding: 0 10px; border-radius: 6px;
  background: #e8f1ff; color: #1d4ed8; font-size: 13px; font-weight: 700;
}
.dash-select {
  display: inline-flex; align-items: center; gap: 4px;
  height: 30px; padding: 0 10px; border: 1px solid var(--line);
  border-radius: 6px; background: #fff; color: var(--text); font-size: 12px;
}
.dash-select.sm { height: 28px; padding: 0 8px; font-size: 12px; }
.dash-select i {
  width: 0; height: 0;
  border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-top: 5px solid #94a3b8;
}
.dash-kpi {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  margin-bottom: 10px;
}
.dash-kpi-item {
  background: #fff; border-radius: 10px; padding: 12px 8px;
  text-align: center; box-shadow: var(--shadow);
}
.dash-kpi-item b {
  display: block; color: #e23c3c; font-size: 18px; line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.dash-kpi-item span {
  display: block; margin-top: 4px; color: var(--text-2); font-size: 11px;
}
.dash-card {
  background: #fff; border-radius: 12px; padding: 12px;
  margin-bottom: 10px; box-shadow: var(--shadow);
}
.dash-card-hd {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; margin-bottom: 8px;
}
.dash-card-hd b { font-size: 15px; }
.dash-hd-right { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.dash-chart {
  width: 100%; height: 160px; display: block; background: #fafbfd; border-radius: 8px;
}
.dash-axis { fill: #94a3b8; font-size: 9px; }
.dash-metrics {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px;
}
.dash-metric {
  flex: 1 1 calc(50% - 6px);
  min-height: 34px; padding: 6px 8px;
  border: 1px solid #bfdbfe; border-radius: 6px;
  background: #fff; color: #334155; font-size: 11px; line-height: 1.3;
  text-align: center;
}
.dash-metric.on {
  border-color: #2b7de9; background: #e8f1ff; color: #1d4ed8; font-weight: 700;
}
.dash-map {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px;
  margin-bottom: 10px;
}
.dash-map-legend {
  grid-column: 1 / -1; display: flex; align-items: center; gap: 8px;
  font-size: 11px; color: var(--text-2);
}
.dash-map-legend .bar {
  flex: 1; height: 8px; border-radius: 4px;
  background: linear-gradient(90deg, rgba(43,125,233,0.18), rgba(43,125,233,0.9));
}
.dash-map-cell {
  border-radius: 8px; padding: 10px 6px; text-align: center; color: #0f172a;
  min-height: 58px; display: flex; flex-direction: column; justify-content: center;
}
.dash-map-cell b { font-size: 12px; }
.dash-map-cell span { font-size: 11px; margin-top: 2px; opacity: 0.85; }
.dash-city-map {
  margin: 0 0 10px; padding: 10px; border-radius: 10px;
  background: linear-gradient(180deg, #f0f7ff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
}
.dash-city-map .dash-map-legend {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; color: var(--text-2); margin-bottom: 6px;
}
.dash-city-map .dash-map-legend em {
  margin-left: auto; font-style: normal; color: #1d4ed8; font-weight: 600;
}
.city-map-svg { width: 100%; height: auto; display: block; }
.city-outline {
  fill: rgba(148, 163, 184, 0.12);
  stroke: #cbd5e1; stroke-width: 1.5;
}
.city-zone { cursor: pointer; }
.city-zone path { transition: fill 0.15s ease, stroke-width 0.15s ease; }
.city-zone.on path { filter: drop-shadow(0 2px 4px rgba(29, 78, 216, 0.25)); }
.city-zone-name {
  fill: #0f172a; font-size: 11px; font-weight: 700;
  pointer-events: none;
}
.city-zone-val {
  fill: #1e3a8a; font-size: 10px; font-weight: 600;
  pointer-events: none;
}
.dash-city-map-tip { margin: 6px 0 0; text-align: center; }
.dash-member-panel {
  margin: 0 0 10px; padding: 10px; border-radius: 10px;
  background: #f8fafc; border: 1px solid var(--line);
}
.dash-member-hd {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px; font-size: 13px; font-weight: 700;
}
.dash-member-hd em { font-style: normal; font-weight: 400; font-size: 11px; color: var(--text-2); }
.dash-member-list { display: flex; flex-direction: column; gap: 6px; }
.dash-member-item {
  width: 100%; display: flex; gap: 10px; align-items: flex-start;
  padding: 10px; border: 1px solid transparent; border-radius: 10px;
  background: #fff; text-align: left;
}
.dash-member-item.on { border-color: #2b7de9; background: #e8f1ff; }
.dash-member-item .rank {
  width: 22px; height: 22px; border-radius: 11px; flex-shrink: 0;
  display: grid; place-items: center; font-size: 11px; font-weight: 700;
  background: #e2e8f0; color: #475569;
}
.dash-member-item.on .rank { background: #2b7de9; color: #fff; }
.dash-member-item .body { flex: 1; min-width: 0; }
.dash-member-item .name-row {
  display: flex; justify-content: space-between; gap: 8px; font-size: 13px;
}
.dash-member-item .name-row span { color: #1d4ed8; font-weight: 700; font-variant-numeric: tabular-nums; }
.dash-member-item .bar {
  height: 6px; border-radius: 3px; background: #e2e8f0; margin: 6px 0 4px; overflow: hidden;
}
.dash-member-item .bar i {
  display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #60a5fa, #2563eb);
}
.dash-member-panel .chip { margin-top: 8px; }
.contract-card {
  width: 100%; display: block; text-align: left;
  background: #fff; border: 0; border-radius: 14px;
  padding: 14px; margin-bottom: 10px; box-shadow: var(--shadow);
}
.contract-top {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.contract-house {
  margin: 8px 0 6px; font-size: 13px; font-weight: 600; color: var(--text);
}
.match-card {
  background: #fff; border-radius: 14px; margin-bottom: 12px;
  box-shadow: var(--shadow); overflow: hidden;
}
.match-client {
  width: 100%; border: 0; background: #fff; text-align: left; padding: 14px;
}
.match-houses { border-top: 1px solid var(--line); background: #f8fafc; }
.match-house {
  width: 100%; display: flex; gap: 10px; align-items: flex-start;
  border: 0; border-bottom: 1px solid var(--line); background: transparent;
  text-align: left; padding: 12px 14px;
}
.match-house:last-child { border-bottom: 0; }
.match-house .score {
  width: 44px; flex-shrink: 0; text-align: center;
  color: #7B61FF; font-weight: 800; font-size: 18px; line-height: 1.1;
}
.match-house .score em { display: block; font-size: 10px; font-style: normal; font-weight: 600; color: var(--text-2); }
.match-house .info { flex: 1; min-width: 0; }
.match-house .info b { font-size: 13px; }
.dash-table-wrap { overflow-x: auto; margin-top: 8px; }
.dash-table {
  width: 100%; border-collapse: collapse; font-size: 12px;
}
.dash-table th, .dash-table td {
  padding: 8px 6px; border-bottom: 1px solid var(--line); text-align: left;
}
.dash-table th { color: var(--text-2); font-weight: 600; background: #f8fafc; }
.dash-table td { color: var(--text); font-variant-numeric: tabular-nums; }

