* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "Helvetica Neue", sans-serif; background: #f5f5f7; color: #1d1d1f; font-size: 14px; line-height: 1.5; min-height: 100vh; letter-spacing: -0.01px; }

:root {
  /* Apple 调色板 */
  --primary: #0071e3;          /* Apple Blue */
  --primary-light: #2997ff;    /* 深色背景上的亮蓝 */
  --primary-bg: #e8f1fd;
  --success: #34c759;          /* Apple 系统绿 */
  --warning: #ff9f0a;          /* Apple 系统橙 */
  --danger: #ff3b30;           /* Apple 系统红 */
  --gray-1: #f5f5f7;
  --gray-2: #e8e8ed;
  --gray-3: #d2d2d7;
  --gray-4: #aeaeb2;
  --gray-5: #8e8e93;
  --gray-6: #636366;
  --dark: #1d1d1f;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 22px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 2px 10px rgba(0,0,0,0.05);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.10);
}

/* ===== 顶部 Header（Apple 毛玻璃大标题导航） ===== */
.app-header {
  background: rgba(245,245,247,0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  color: var(--dark);
  padding: 10px 16px 12px;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 0.5px solid rgba(0,0,0,0.08);
}
.app-header .header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.app-header h1 { font-size: 32px; font-weight: 700; letter-spacing: -0.6px; color: var(--dark); }
.app-header .user-chip {
  font-size: 15px;
  background: transparent;
  padding: 4px 2px;
  border-radius: 8px;
  color: var(--primary);
  text-decoration: none;
}

/* 搜索框（iOS 风格浅灰胶囊） */
.search-box {
  display: flex;
  align-items: center;
  background: rgba(118,118,128,0.12);
  border-radius: 10px;
  padding: 9px 14px;
  gap: 8px;
}
.search-box input {
  border: none;
  outline: none;
  flex: 1;
  font-size: 15px;
  background: transparent;
  color: var(--dark);
}
.search-box input::placeholder { color: rgba(60,60,67,0.35); }
.search-icon {
  width: 18px; height: 18px;
  display: inline-block;
  -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
  background-color: rgba(60,60,67,0.35);
  flex-shrink: 0;
}

/* ===== 底部导航 ===== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-top: 1px solid #f3f4f6;
  display: flex;
  justify-content: space-around;
  padding: 6px 0 calc(6px + env(safe-area-inset-bottom));
  z-index: 100;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.03);
}
.bottom-nav a {
  flex: 1;
  text-align: center;
  text-decoration: none;
  color: #9ca3af;
  font-size: 11px;
  padding: 4px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.bottom-nav a .nav-icon {
  width: 24px; height: 24px;
  display: inline-block;
  -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
  background-color: currentColor;
  margin-bottom: 2px;
  transition: transform .1s, background-color .1s;
}
.bottom-nav a.active { color: var(--primary); font-weight: 600; }
.bottom-nav a.active .nav-icon { transform: scale(1.05); }

/* 给底部导航留空 */
.has-bottom-nav { padding-bottom: 70px; }

/* ===== 主内容区 ===== */
main { padding: 12px; max-width: 800px; margin: 0 auto; }
.page-main { padding: 12px 12px 80px; max-width: 800px; margin: 0 auto; }

/* ===== 卡片 ===== */
.card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-md);
}
.card.clickable { cursor: pointer; transition: transform .1s, box-shadow .1s; }
.card.clickable:active { transform: scale(0.995); box-shadow: var(--shadow-sm); }
.card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.card-title .more {
  font-size: 12px;
  color: var(--gray-4);
  font-weight: normal;
}

/* ===== 问候语 ===== */
.greeting-block { padding: 6px 4px 10px; }
.greeting-block .greeting { font-size: 26px; font-weight: 700; letter-spacing: -0.5px; color: var(--dark); }
.greeting-block .sub { font-size: 13px; color: var(--gray-5); margin-top: 2px; }

.welcome-card {
  background: white;
  color: var(--dark);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-md);
}
.welcome-card .greeting { font-size: 20px; font-weight: 600; margin-bottom: 4px; }
.welcome-card .sub { font-size: 13px; color: var(--gray-5); }
.welcome-card .date { font-size: 12px; color: var(--gray-4); margin-top: 12px; }

/* ===== 指标卡片 ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}
.stat-item {
  background: white;
  border-radius: var(--radius-lg);
  padding: 14px 10px;
  text-align: center;
  box-shadow: var(--shadow-md);
}
.stat-item .num {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}
.stat-item .label {
  font-size: 12px;
  color: var(--gray-5);
  margin-top: 4px;
}

/* ===== 快捷入口 ===== */
.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 4px;
}
.quick-item {
  background: white;
  border-radius: var(--radius-lg);
  padding: 14px 6px;
  text-align: center;
  text-decoration: none;
  color: var(--dark);
  box-shadow: var(--shadow-md);
  transition: transform .1s;
}
.quick-item:active { transform: scale(0.97); }
.quick-item .icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px;
}
.quick-item .icon svg { width: 22px; height: 22px; }
.quick-item .icon.blue { background: #eff6ff; color: #0058b0; }
.quick-item .icon.green { background: #ecfdf5; color: #1a7f37; }
.quick-item .icon.orange { background: #fff4e6; color: #9a6200; }
.quick-item .icon.purple { background: #f5f3ff; color: #6d28d9; }
.quick-item .icon.red { background: #fef2f2; color: #b91c1c; }
.quick-item .txt { font-size: 12px; font-weight: 500; }

/* ===== Banner ===== */
.banner-card {
  background: linear-gradient(90deg, #eff6ff 0%, #ffffff 100%);
  border: 1px solid #dbeafe;
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.banner-card .txt h4 { color: #1e40af; font-size: 15px; margin-bottom: 4px; }
.banner-card .txt p { color: #64748b; font-size: 12px; }
.banner-card .icon { font-size: 32px; }

/* ===== Tab 切换 ===== */
.tab-bar {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 4px 0 12px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.tab-bar::-webkit-scrollbar { display: none; }
.tab-bar a, .tab-bar span {
  white-space: nowrap;
  padding: 7px 14px;
  border-radius: 20px;
  font-size: 13px;
  color: var(--gray-5);
  background: white;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}
.tab-bar a.active, .tab-bar span.active {
  background: var(--primary);
  color: white;
  font-weight: 500;
}

/* ===== 客户列表 ===== */
.customer-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.customer-card .avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
  flex-shrink: 0;
}
.customer-card .body { flex: 1; min-width: 0; }
.customer-card .top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}
.customer-card h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--dark);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.customer-card .meta {
  font-size: 12px;
  color: var(--gray-5);
  margin-bottom: 6px;
}
.customer-card .sign-period { color: var(--success); font-weight: 500; }
.customer-card .tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag {
  display: inline-block;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 500;
}
.tag-A { background: #e3f9e9; color: #1a7f37; }
.tag-B { background: #e4f1fd; color: #0058b0; }
.tag-C { background: #fff2dc; color: #9a6200; }
.tag-D { background: #ffe5e3; color: #b00b00; }
.tag-source { background: #f3e8ff; color: #7e22ce; }
.tag-role { background: #dbeafe; color: #1e40af; }

/* ===== 空状态 ===== */
.empty {
  text-align: center;
  color: var(--gray-4);
  padding: 50px 0;
  font-size: 13px;
}
.empty-icon { font-size: 48px; margin-bottom: 10px; opacity: 0.5; }

/* ===== 表单 ===== */
.form-page { background: white; border-radius: var(--radius-lg); padding: 16px; box-shadow: var(--shadow-md); }
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 13px;
  color: var(--gray-6);
  font-weight: 500;
  margin-bottom: 6px;
}
.form-group .required { color: var(--danger); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--gray-2);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-family: inherit;
  background: #fafafa;
  transition: border-color .15s, box-shadow .15s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.08);
  background: white;
}
.form-group textarea { min-height: 80px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}
button, .btn {
  border: none;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: opacity .15s, transform .1s;
}
button:active, .btn:active { transform: scale(0.98); }
.btn-primary { background: var(--primary); color: white; box-shadow: 0 4px 12px rgba(37,99,235,0.25); }
.btn-primary:hover { opacity: 0.95; }
.btn-secondary { background: var(--gray-1); color: var(--gray-6); }
.btn-danger { background: #fee2e2; color: var(--danger); }
.btn-block { width: 100%; }

/* ===== 详情页标签 ===== */
.section-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  background: white;
  border-radius: var(--radius-lg);
  padding: 6px;
  box-shadow: var(--shadow-sm);
}
.section-tabs .tab {
  flex: 1;
  text-align: center;
  padding: 8px;
  border-radius: var(--radius-md);
  font-size: 13px;
  color: var(--gray-5);
  cursor: pointer;
}
.section-tabs .tab.active { background: var(--primary-bg); color: var(--primary); font-weight: 600; }

/* ===== 拜访时间线 ===== */
.timeline { position: relative; padding-left: 20px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--gray-2);
}
.timeline-item { position: relative; margin-bottom: 14px; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -19px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid white;
  box-shadow: 0 0 0 2px #dbeafe;
}
.timeline-item .time { font-size: 12px; color: var(--gray-5); margin-bottom: 4px; }
.timeline-item .content {
  background: var(--gray-1);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  font-size: 13px;
}
.timeline-item img { max-width: 160px; border-radius: var(--radius-sm); margin-top: 6px; }

/* ===== 打卡页 ===== */
.camera-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-md);
  text-align: center;
  margin-bottom: 12px;
}
.camera-preview {
  width: 100%;
  max-width: 320px;
  border-radius: var(--radius-md);
  margin: 10px auto;
  display: none;
}
.camera-placeholder {
  border: 2px dashed var(--gray-3);
  border-radius: var(--radius-md);
  padding: 40px 20px;
  color: var(--gray-4);
  margin: 10px 0;
}
.location-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--primary-bg);
  border-radius: var(--radius-md);
  padding: 12px;
  margin-bottom: 12px;
}
.location-card .loc-icon { font-size: 20px; color: var(--primary); }
.location-card .loc-info { flex: 1; }
.location-card .loc-title { font-size: 13px; font-weight: 600; color: var(--dark); }
.location-card .loc-addr { font-size: 12px; color: var(--gray-5); }

/* ===== 组织架构页 ===== */
.org-tree .level { padding-left: 16px; border-left: 2px solid var(--gray-2); margin-left: 8px; }
.emp-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: white;
  border-radius: var(--radius-lg);
  margin-bottom: 10px;
  box-shadow: var(--shadow-sm);
}
.emp-card .avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 600;
  flex-shrink: 0;
}
.emp-card .info { flex: 1; }
.emp-card .name { font-weight: 600; font-size: 15px; }
.emp-card .sub { font-size: 12px; color: var(--gray-5); margin-top: 2px; }
.emp-card .actions { display: flex; gap: 6px; margin-top: 0; }
.emp-card .actions button { padding: 6px 10px; font-size: 12px; border-radius: 6px; }

/* ===== 浮层弹窗 ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: none;
  align-items: flex-end;
  justify-content: center;
  z-index: 200;
}
.modal-overlay.show { display: flex; }
.modal-sheet {
  background: white;
  width: 100%;
  max-width: 800px;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: 20px;
  max-height: 85vh;
  overflow-y: auto;
  animation: slideUp .2s ease-out;
}
@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
.modal-sheet h3 { font-size: 17px; margin-bottom: 16px; }

/* ===== 提示条 ===== */
.notice {
  background: #fff7ed;
  color: #92400e;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.notice.success { background: #ecfdf5; color: #166534; }

/* ===== 原有兼容类 ===== */
.fab {
  position: fixed;
  right: 16px;
  bottom: 86px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--primary);
  border: none;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fab::before {
  content: '';
  width: 26px; height: 26px;
  display: block;
  -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
  background-color: white;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%205v14M5%2012h14%22/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%205v14M5%2012h14%22/%3E%3C/svg%3E");
}
.fab:active { transform: scale(0.95); }

img.photo { max-width: 100%; border-radius: var(--radius-md); margin-top: 8px; }

/* ===== 排行榜页 ===== */
.app-header .date-pill {
  font-size: 13px;
  font-weight: 600;
  background: rgba(118,118,128,0.12);
  padding: 4px 12px;
  border-radius: 980px;
  color: var(--dark);
}
.summary-bar {
  background: white;
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-md);
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
  text-align: center;
}
.rank-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: white;
  border-radius: var(--radius-lg);
  padding: 14px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-sm);
}
.rank-medal { font-size: 22px; width: 30px; text-align: center; flex-shrink: 0; }
.rank-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: white; display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 600; flex-shrink: 0;
}
.rank-body { flex: 1; min-width: 0; }
.rank-name { font-size: 15px; font-weight: 600; color: var(--dark); margin-bottom: 6px; display:flex; align-items:center; gap:8px; }
.rank-bar { height: 8px; background: var(--gray-1); border-radius: 6px; overflow: hidden; }
.rank-bar-fill { height: 100%; background: var(--primary); border-radius: 6px; transition: width .3s; }
.rank-bar-fill.green { background: var(--success); }
.rank-num { font-size: 20px; font-weight: 700; color: var(--primary); text-align: right; flex-shrink: 0; }
.rank-num small { font-size: 11px; color: var(--gray-4); font-weight: 400; margin-left: 2px; }
.rank-amt { font-size: 12px; color: var(--success); font-weight: 600; margin-top: 2px; }
.signed-pill { font-size: 10px; background: #dcfce7; color: #166534; padding: 2px 7px; border-radius: 10px; font-weight: 500; }

.flow-card {
  display: flex; align-items: center; gap: 4px;
  background: white; border-radius: var(--radius-lg);
  padding: 12px; margin-bottom: 12px; box-shadow: var(--shadow-sm);
  font-size: 11px; color: var(--gray-6); overflow-x: auto;
}
.flow-step { white-space: nowrap; display: flex; align-items: center; gap: 4px; }
.flow-step span {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--primary-bg); color: var(--primary);
  display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700;
}
.flow-arrow { color: var(--gray-3); }

.pending-card {
  display: flex; align-items: center; gap: 10px;
  background: #fffbeb; border: 1px solid #fde68a;
  border-radius: var(--radius-lg); padding: 12px; margin-bottom: 10px;
}
.pending-info { flex: 1; min-width: 0; }
.pending-name { font-size: 14px; font-weight: 600; color: var(--dark); }
.pending-sub { font-size: 12px; color: var(--gray-5); margin-top: 2px; }
.pending-actions { display: flex; flex-direction: column; gap: 6px; flex-shrink: 0; }
.btn-sm { padding: 6px 12px; font-size: 12px; border-radius: 8px; }

/* ===== 顶部 + 按钮（Apple 系统蓝） ===== */
.add-btn {
  width: 34px; height: 34px; border-radius: 50%;
  background: transparent;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.add-btn::before {
  content: '';
  width: 22px; height: 22px;
  display: block;
  -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
  background-color: var(--primary);
}
.add-btn:active { transform: scale(0.9); opacity: 0.6; }

/* 动作面板 */
.sheet-item {
  display: flex; align-items: center; gap: 12px;
  padding: 16px; margin-bottom: 10px;
  background: var(--gray-1); border-radius: var(--radius-md);
  text-decoration: none; color: var(--dark); font-size: 15px; font-weight: 500;
}
.sheet-item:active { background: var(--gray-2); }
.sheet-cancel {
  width: 100%; padding: 14px; margin-top: 6px;
  background: white; color: var(--danger);
  border: 1px solid var(--gray-2); border-radius: var(--radius-md);
  font-size: 15px; font-weight: 500;
}

/* ===== 签约面板 ===== */
.sign-panel { margin-top: 16px; }
.signed-badge {
  background: #ecfdf5; color: #166534; font-weight: 600;
  padding: 12px 14px; border-radius: var(--radius-md); font-size: 14px;
  border: 1px solid #a7f3d0;
}
.signed-badge .signed-date {
  font-size: 12px; color: #15803d; font-weight: 500;
  margin-top: 6px; opacity: 0.9;
}
.pending-badge {
  background: #fffbeb; color: #92400e; font-weight: 500;
  padding: 12px 14px; border-radius: var(--radius-md); font-size: 13px;
  border: 1px solid #fde68a;
}
.verify-box {
  background: #eff6ff; border: 1px solid #bfdbfe;
  border-radius: var(--radius-md); padding: 14px;
}
.verify-tip { font-size: 13px; color: #1e40af; margin-bottom: 10px; }

/* ===== 隐藏 ===== */
.hidden { display: none !important; }

/* ===== 首页：分组标题（iOS 风格） ===== */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 18px 6px 8px;
}
.section-head .title { font-size: 20px; font-weight: 700; letter-spacing: -0.4px; color: var(--dark); }
.section-head .more { font-size: 13px; color: var(--primary); text-decoration: none; font-weight: 500; }

/* ===== 客户总览：单人汇总卡片 ===== */
.ov-single { background: white; border-radius: var(--radius-lg); padding: 16px; margin-bottom: 12px; box-shadow: var(--shadow-md); }
.ov-single .ov-title { font-size: 16px; font-weight: 600; color: var(--dark); margin-bottom: 14px; }
.ov-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.ov-tile { text-align: center; background: #fafafa; border-radius: var(--radius-md); padding: 12px 4px; }
.ov-tile b { display: block; font-size: 24px; font-weight: 700; color: var(--primary); line-height: 1.1; }
.ov-tile span { font-size: 11px; color: var(--gray-5); margin-top: 4px; display: block; }

/* ===== 客户总览：团队每人卡片 ===== */
.ov-list { display: flex; flex-direction: column; gap: 10px; }
.ov-card {
  display: flex; align-items: center; gap: 12px;
  background: white; border-radius: var(--radius-lg);
  padding: 14px; box-shadow: var(--shadow-sm);
  cursor: pointer; transition: transform .1s, box-shadow .1s;
}
.ov-card:active { transform: scale(0.99); box-shadow: var(--shadow-sm); }
.ov-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--primary); color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 600; flex-shrink: 0;
}
.ov-main { flex: 1; min-width: 0; }
.ov-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.ov-name { font-size: 16px; font-weight: 600; color: var(--dark); }
.ov-count { font-size: 12px; color: var(--gray-5); }
.ov-metrics { display: flex; gap: 14px; font-size: 12px; color: var(--gray-6); margin-bottom: 8px; }
.ov-metrics b { color: var(--dark); font-weight: 700; }
.ov-bar { height: 7px; border-radius: 4px; overflow: hidden; display: flex; background: #f2f2f7; }
.ov-seg { height: 100%; }

/* 团队汇总条 */
.team-summary {
  font-size: 13px; color: var(--gray-6);
  padding: 2px 6px 10px;
}

/* ===== 排行榜紧凑条目（复用 rank-card） ===== */
.rank-card { margin-bottom: 8px; }
.rank-card:last-child { margin-bottom: 0; }

/* 待核实提示条 */
.pending-hint {
  display: flex; align-items: center; gap: 8px;
  background: #fff8e8; border: 1px solid #ffe2a8;
  color: #8a5a00; border-radius: var(--radius-md);
  padding: 11px 14px; margin-bottom: 12px; font-size: 13px; font-weight: 500;
  text-decoration: none;
}
.pending-hint .badge {
  background: var(--warning); color: white;
  font-size: 12px; font-weight: 700;
  min-width: 20px; height: 20px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; flex-shrink: 0;
}

/* ===== Apple / SF Symbols 风格图标 ===== */
.icon-home      { -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%2010.5L12%203l9%207.5%22/%3E%3Cpath%20d%3D%22M19%209v10a1%201%200%200%201-1%201H6a1%201%200%200%201-1-1V9%22/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%2010.5L12%203l9%207.5%22/%3E%3Cpath%20d%3D%22M19%209v10a1%201%200%200%201-1%201H6a1%201%200%200%201-1-1V9%22/%3E%3C/svg%3E"); }
.icon-building  { -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%224%22%20y%3D%223%22%20width%3D%2216%22%20height%3D%2218%22%20rx%3D%221%22/%3E%3Cpath%20d%3D%22M8%207h1M8%2011h1M8%2015h1M12%207h1M12%2011h1M12%2015h1M16%207h1M16%2011h1M16%2015h1%22/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%224%22%20y%3D%223%22%20width%3D%2216%22%20height%3D%2218%22%20rx%3D%221%22/%3E%3Cpath%20d%3D%22M8%207h1M8%2011h1M8%2015h1M12%207h1M12%2011h1M12%2015h1M16%207h1M16%2011h1M16%2015h1%22/%3E%3C/svg%3E"); }
.icon-camera    { -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223%22%20y%3D%227%22%20width%3D%2218%22%20height%3D%2213%22%20rx%3D%222%22/%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2213.5%22%20r%3D%223.5%22/%3E%3Cpath%20d%3D%22M7%207l1.5-2h7L17%207%22/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223%22%20y%3D%227%22%20width%3D%2218%22%20height%3D%2213%22%20rx%3D%222%22/%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2213.5%22%20r%3D%223.5%22/%3E%3Cpath%20d%3D%22M7%207l1.5-2h7L17%207%22/%3E%3C/svg%3E"); }
.icon-trophy    { -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M6%205h12v0a4%204%200%200%201-4%204h-4a4%204%200%200%201-4-4z%22/%3E%3Cpath%20d%3D%22M6%205H4a2%202%200%200%200-2%202v1a3%203%200%200%200%203%203h1M18%205h2a2%202%200%200%201%202%202v1a3%203%200%200%201-3%203h-1%22/%3E%3Cpath%20d%3D%22M12%2012v6%22/%3E%3Cpath%20d%3D%229%2018h6%22/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M6%205h12v0a4%204%200%200%201-4%204h-4a4%204%200%200%201-4-4z%22/%3E%3Cpath%20d%3D%22M6%205H4a2%202%200%200%200-2%202v1a3%203%200%200%200%203%203h1M18%205h2a2%202%200%200%201%202%202v1a3%203%200%200%201-3%203h-1%22/%3E%3Cpath%20d%3D%22M12%2012v6%22/%3E%3Cpath%20d%3D%229%2018h6%22/%3E%3C/svg%3E"); }
.icon-people    { -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%228%22%20r%3D%223%22/%3E%3Cpath%20d%3D%22M4%2020c0-3%203-5%208-5s8%202%208%205%22/%3E%3Ccircle%20cx%3D%2218%22%20cy%3D%227%22%20r%3D%222%22/%3E%3Ccircle%20cx%3D%226%22%20cy%3D%227%22%20r%3D%222%22/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%228%22%20r%3D%223%22/%3E%3Cpath%20d%3D%22M4%2020c0-3%203-5%208-5s8%202%208%205%22/%3E%3Ccircle%20cx%3D%2218%22%20cy%3D%227%22%20r%3D%222%22/%3E%3Ccircle%20cx%3D%226%22%20cy%3D%227%22%20r%3D%222%22/%3E%3C/svg%3E"); }
.icon-person    { -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%228%22%20r%3D%224%22/%3E%3Cpath%20d%3D%22M4%2020c0-3%203.5-5%208-5s8%202%208%205%22/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%228%22%20r%3D%224%22/%3E%3Cpath%20d%3D%22M4%2020c0-3%203.5-5%208-5s8%202%208%205%22/%3E%3C/svg%3E"); }
.icon-search    { -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2211%22%20cy%3D%2211%22%20r%3D%227%22/%3E%3Cpath%20d%3D%22M21%2021l-4.3-4.3%22/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2211%22%20cy%3D%2211%22%20r%3D%227%22/%3E%3Cpath%20d%3D%22M21%2021l-4.3-4.3%22/%3E%3C/svg%3E"); }
.icon-plus      { -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%205v14M5%2012h14%22/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%205v14M5%2012h14%22/%3E%3C/svg%3E"); }
.icon-pin       { -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%2021s-7-7.3-7-12a7%207%200%200%201%2014%200c0%204.7-7%2012-7%2012z%22/%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%229%22%20r%3D%222.5%22/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%2021s-7-7.3-7-12a7%207%200%200%201%2014%200c0%204.7-7%2012-7%2012z%22/%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%229%22%20r%3D%222.5%22/%3E%3C/svg%3E"); }
.icon-check     { -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpolyline%20points%3D%2220%206%209%2017%204%2012%22/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpolyline%20points%3D%2220%206%209%2017%204%2012%22/%3E%3C/svg%3E"); }
.icon-arrow-left{ -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M19%2012H5M12%2019l-7-7%207-7%22/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M19%2012H5M12%2019l-7-7%207-7%22/%3E%3C/svg%3E"); }

.add-btn::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%205v14M5%2012h14%22/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%205v14M5%2012h14%22/%3E%3C/svg%3E"); }

/* 返回链接（用于子页 header） */
.back-link {
  color: var(--dark);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 15px;
  font-weight: 500;
}
.back-link .nav-icon { width: 18px; height: 18px; background-color: currentColor; }

/* ===== 首页小方块排行榜 ===== */
.mini-rank-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}
.mini-rank-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 14px;
  box-shadow: var(--shadow-md);
  text-decoration: none;
  color: var(--dark);
  display: flex;
  flex-direction: column;
  min-height: 150px;
}
.mini-rank-card:active { transform: scale(0.99); }
.mini-rank-card .mini-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.mini-rank-card .mini-icon {
  width: 28px; height: 28px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.mini-rank-card .mini-icon.blue { background: #e4f1fd; color: #0058b0; }
.mini-rank-card .mini-icon.green { background: #e3f9e9; color: #1a7f37; }
.mini-rank-card .mini-icon svg { width: 18px; height: 18px; }
.mini-rank-card .mini-title { font-size: 13px; font-weight: 600; color: var(--dark); }
.mini-rank-card .mini-list { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.mini-rank-card .mini-row {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px;
}
.mini-rank-card .mini-avatar {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--primary); color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 600; flex-shrink: 0;
}
.mini-rank-card .mini-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-rank-card .mini-num { font-weight: 700; color: var(--primary); }
.mini-rank-card .mini-num.green { color: var(--success); }
.mini-rank-card .mini-empty { font-size: 12px; color: var(--gray-4); padding: 8px 0; }
.mini-rank-card .mini-foot {
  margin-top: 10px;
  font-size: 12px;
  color: var(--primary);
  font-weight: 500;
  text-align: right;
}

/* ===== 公司公告 banner（首页顶部展示，老板可点进编辑） ===== */
.board-banner {
  display: flex;
  align-items: stretch;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: 12px;
  overflow: hidden;
  cursor: default;
}
.board-banner .board-bar {
  width: 4px;
  background: var(--primary);
  flex-shrink: 0;
}
.board-banner .board-main { padding: 12px 14px; flex: 1; min-width: 0; }
.board-banner .board-label {
  font-size: 12px;
  color: var(--gray-5);
  font-weight: 600;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.board-banner .board-edit {
  font-size: 11px;
  color: var(--primary);
  font-weight: 500;
}
.board-banner .board-content {
  font-size: 15px;
  color: var(--dark);
  font-weight: 600;
  word-break: break-all;
  line-height: 1.4;
}
.board-banner.clickable { cursor: pointer; }

/* ===== 首页 widget 网格（总客户数/已合作/月排行/周排行/公司公告/今日必做/常用功能） ===== */
.home-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.home-tile {
  background: white;
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-md);
  min-height: 140px;
  display: flex;
  flex-direction: column;
  color: var(--dark);
  text-decoration: none;
}
.home-tile.full { grid-column: 1 / -1; }
.home-tile:active { transform: scale(0.99); }
.tile-label { font-size: 13px; color: var(--gray-5); font-weight: 500; margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.tile-label .tile-mark { width: 4px; height: 14px; background: var(--danger); border-radius: 2px; }
.tile-num { font-size: 36px; font-weight: 700; color: var(--primary); letter-spacing: -0.8px; line-height: 1.1; }
.home-tile.green .tile-num { color: var(--success); }
.tile-sub { font-size: 12px; color: var(--gray-5); margin-top: auto; padding-top: 10px; }
.tile-divider { height: 1px; background: var(--gray-2); margin: 12px 0; }

/* tile 内排行 */
.tile-rank-list { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.tile-rank-row { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.tile-rank-row .rank-i { width: 14px; text-align: center; color: var(--gray-4); font-weight: 700; }
.tile-rank-row .rank-avi {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--primary); color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 600; flex-shrink: 0;
}
.tile-rank-row .rank-nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile-rank-row .rank-nu { font-weight: 700; color: var(--primary); }
.tile-rank-row .rank-nu.green { color: var(--success); }
.tile-rank-empty { font-size: 12px; color: var(--gray-4); flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 2px; }

/* 今日必做 */
.todo-list { list-style: none; padding: 0; margin: 0; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.todo-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--dark);
  padding: 10px 12px; background: #f5f5f7; border-radius: 12px;
  text-decoration: none;
}
.todo-item:active { background: #ececef; }
.todo-item .todo-badge {
  background: var(--warning); color: white; font-weight: 700;
  min-width: 22px; height: 22px; border-radius: 11px;
  display: inline-flex; align-items: center; justify-content: center; padding: 0 7px; font-size: 12px;
  flex-shrink: 0;
}
.todo-item.green .todo-badge { background: var(--success); }
.todo-item.blue .todo-badge { background: var(--primary); }
.todo-item .todo-text { flex: 1; min-width: 0; }
.todo-empty { font-size: 13px; color: var(--gray-5); padding: 16px 0; text-align: center; }
