:root {
  --bg-0: #08090d;
  --bg-1: #13161d;
  --bg-2: #1a1e27;
  --bg-3: #212632;
  --bg-4: #29303e;
  --accent: #4f8cff;
  --accent-2: #2dd4a8;
  --accent-3: #f59e42;
  --accent-4: #ef4444;
  --danger: #ef4444; /* v37：补定义，时间轴逾期横幅依赖此变量（此前缺失导致样式失效） */
  --text-1: #e8eaf0;
  --text-2: #a5adb8;
  --text-3: #737d8c;
  --border: rgba(255,255,255,0.09);
  --accent-soft: rgba(79,140,255,0.12); /* 主题色浅底：选中态/徽标背景，随主题联动 */
  --sidebar-bg: rgba(15,17,23,0.96);
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 2px 12px rgba(0,0,0,0.30), 0 8px 28px rgba(0,0,0,0.22);
  --shadow-lg: 0 4px 18px rgba(0,0,0,0.40), 0 12px 40px rgba(0,0,0,0.30);
  --font: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Noto Sans SC",sans-serif;
}

/* ========== 主题皮肤（body[data-theme] 覆盖变量） ========== */
/* 极简白：浅色经典（底色压暗一档，白卡片浮起更有层次） */
[data-theme="light"] {
  --bg-0: #eceff4;
  --bg-1: #ffffff;
  --bg-2: #f4f6fa;
  --bg-3: #e9edf4;
  --bg-4: #dde3ed;
  --accent: #2f6bff;
  --accent-2: #10a37f;
  --accent-3: #e8890c;
  --accent-4: #e02e2e;
  --danger: #e02e2e;
  --text-1: #1a1d24;
  --text-2: #4b5563;
  --text-3: #848d9c;
  --border: rgba(20,30,50,0.10);
  --accent-soft: rgba(47,107,255,0.10);
  --sidebar-bg: #f7f9fc;
  --shadow: 0 1px 3px rgba(20,30,50,0.06), 0 6px 20px rgba(20,30,50,0.08);
  --shadow-lg: 0 2px 8px rgba(20,30,50,0.08), 0 12px 32px rgba(20,30,50,0.13);
}
/* 护眼绿：豆沙绿浅色，长时间使用不累眼（底色压暗，卡片浮起） */
[data-theme="mint"] {
  --bg-0: #e9f1ec;
  --bg-1: #ffffff;
  --bg-2: #f1f7f3;
  --bg-3: #e2efe7;
  --bg-4: #d2e6da;
  --accent: #16a34a;
  --accent-2: #0d9488;
  --accent-3: #d97706;
  --accent-4: #dc2626;
  --danger: #dc2626;
  --text-1: #17251c;
  --text-2: #44604f;
  --text-3: #7e957f;
  --border: rgba(22,60,36,0.12);
  --accent-soft: rgba(22,163,74,0.10);
  --sidebar-bg: #f4f9f6;
  --shadow: 0 1px 3px rgba(22,60,36,0.06), 0 6px 20px rgba(22,60,36,0.09);
  --shadow-lg: 0 2px 8px rgba(22,60,36,0.08), 0 12px 32px rgba(22,60,36,0.14);
}
/* 暗夜紫：深色 + 紫色强调（卡片提亮一档，浮出背景） */
[data-theme="purple"] {
  --bg-0: #0b0812;
  --bg-1: #171226;
  --bg-2: #1e1833;
  --bg-3: #261e40;
  --bg-4: #2f2650;
  --accent: #8b5cf6;
  --accent-2: #22d3ee;
  --accent-3: #fbbf24;
  --accent-4: #f43f5e;
  --danger: #f43f5e;
  --text-1: #ece8f6;
  --text-2: #aca4c6;
  --text-3: #786f92;
  --border: rgba(255,255,255,0.09);
  --accent-soft: rgba(139,92,246,0.14);
  --sidebar-bg: rgba(14,10,22,0.96);
  --shadow: 0 2px 12px rgba(0,0,0,0.32), 0 8px 28px rgba(0,0,0,0.24);
  --shadow-lg: 0 4px 18px rgba(0,0,0,0.42), 0 12px 40px rgba(0,0,0,0.32);
}
/* 落日橙：深色 + 暖橙强调（卡片提亮一档，浮出背景） */
[data-theme="sunset"] {
  --bg-0: #0e0b08;
  --bg-1: #191510;
  --bg-2: #211b14;
  --bg-3: #2a2219;
  --bg-4: #342a1f;
  --accent: #f97316;
  --accent-2: #fbbf24;
  --accent-3: #38bdf8;
  --accent-4: #ef4444;
  --danger: #ef4444;
  --text-1: #f2ece4;
  --text-2: #b8aa9a;
  --text-3: #857666;
  --border: rgba(255,255,255,0.09);
  --accent-soft: rgba(249,115,22,0.13);
  --sidebar-bg: rgba(16,13,10,0.96);
  --shadow: 0 2px 12px rgba(0,0,0,0.32), 0 8px 28px rgba(0,0,0,0.24);
  --shadow-lg: 0 4px 18px rgba(0,0,0,0.42), 0 12px 40px rgba(0,0,0,0.32);
}
/* 石墨灰：中性深灰，低饱和不刺眼，长时间办公最舒服 */
[data-theme="graphite"] {
  --bg-0: #101114;
  --bg-1: #181a1f;
  --bg-2: #1f2228;
  --bg-3: #272b33;
  --bg-4: #30353f;
  --accent: #7c9dd9;
  --accent-2: #5fc4b3;
  --accent-3: #d9a05f;
  --accent-4: #e06c6c;
  --danger: #e06c6c;
  --text-1: #e4e6eb;
  --text-2: #a8adb8;
  --text-3: #6f7684;
  --border: rgba(255,255,255,0.08);
  --accent-soft: rgba(124,157,217,0.13);
  --sidebar-bg: rgba(14,15,18,0.96);
  --shadow: 0 2px 12px rgba(0,0,0,0.28), 0 8px 28px rgba(0,0,0,0.20);
  --shadow-lg: 0 4px 18px rgba(0,0,0,0.38), 0 12px 40px rgba(0,0,0,0.28);
}
/* 深海蓝：深海藏青深色，冷静专注 */
[data-theme="ocean"] {
  --bg-0: #081018;
  --bg-1: #0e1a26;
  --bg-2: #14233a;
  --bg-3: #1a2d47;
  --bg-4: #213855;
  --accent: #38bdf8;
  --accent-2: #2dd4bf;
  --accent-3: #fbbf24;
  --accent-4: #f87171;
  --danger: #f87171;
  --text-1: #e2ecf6;
  --text-2: #9db2c8;
  --text-3: #647a92;
  --border: rgba(255,255,255,0.08);
  --accent-soft: rgba(56,189,248,0.13);
  --sidebar-bg: rgba(7,14,22,0.96);
  --shadow: 0 2px 12px rgba(0,0,0,0.32), 0 8px 28px rgba(0,0,0,0.24);
  --shadow-lg: 0 4px 18px rgba(0,0,0,0.42), 0 12px 40px rgba(0,0,0,0.32);
}
/* 米纸白：暖调浅色，纸感护眼 */
[data-theme="paper"] {
  --bg-0: #f0ebe1;
  --bg-1: #faf7f0;
  --bg-2: #f3efe5;
  --bg-3: #e8e2d4;
  --bg-4: #dcd5c4;
  --accent: #b4542a;
  --accent-2: #3f8f6f;
  --accent-3: #c98a1b;
  --accent-4: #d64545;
  --danger: #d64545;
  --text-1: #2a2620;
  --text-2: #5c5548;
  --text-3: #948b78;
  --border: rgba(60,50,30,0.12);
  --accent-soft: rgba(180,84,42,0.10);
  --sidebar-bg: #f5f1e8;
  --shadow: 0 1px 3px rgba(60,50,30,0.06), 0 6px 20px rgba(60,50,30,0.08);
  --shadow-lg: 0 2px 8px rgba(60,50,30,0.08), 0 12px 32px rgba(60,50,30,0.13);
}
/* 暗夜绿：深夜森林绿，沉稳护眼 */
[data-theme="forest"] {
  --bg-0: #0a120e;
  --bg-1: #101b15;
  --bg-2: #16241c;
  --bg-3: #1c2f24;
  --bg-4: #243b2d;
  --accent: #4ade80;
  --accent-2: #2dd4bf;
  --accent-3: #fbbf24;
  --accent-4: #f87171;
  --danger: #f87171;
  --text-1: #e0efe5;
  --text-2: #9db8a8;
  --text-3: #63806f;
  --border: rgba(255,255,255,0.08);
  --accent-soft: rgba(74,222,128,0.12);
  --sidebar-bg: rgba(8,16,12,0.96);
  --shadow: 0 2px 12px rgba(0,0,0,0.32), 0 8px 28px rgba(0,0,0,0.24);
  --shadow-lg: 0 4px 18px rgba(0,0,0,0.42), 0 12px 40px rgba(0,0,0,0.32);
}
/* 暮色玫红：深紫调 + 玫粉强调，温柔治愈 */
[data-theme="rose"] {
  --bg-0: #140f17;
  --bg-1: #1d1624;
  --bg-2: #261c30;
  --bg-3: #302438;
  --bg-4: #3a2d42;
  --accent: #f472b6;
  --accent-2: #c084fc;
  --accent-3: #fbbf24;
  --accent-4: #f43f5e;
  --danger: #f43f5e;
  --text-1: #f3e8f2;
  --text-2: #b8a7bc;
  --text-3: #7d6a82;
  --border: rgba(255,255,255,0.08);
  --accent-soft: rgba(244,114,182,0.13);
  --sidebar-bg: rgba(18,12,22,0.96);
  --shadow: 0 2px 12px rgba(0,0,0,0.32), 0 8px 28px rgba(0,0,0,0.24);
  --shadow-lg: 0 4px 18px rgba(0,0,0,0.42), 0 12px 40px rgba(0,0,0,0.32);
}
/* 极夜黑：近黑蓝底 + 电青/靛蓝霓虹，高对比科技感 */
[data-theme="midnight"] {
  --bg-0: #07080c;
  --bg-1: #0f1117;
  --bg-2: #161a23;
  --bg-3: #1e2330;
  --bg-4: #272e3f;
  --accent: #22d3ee;
  --accent-2: #818cf8;
  --accent-3: #fbbf24;
  --accent-4: #f472b6;
  --danger: #f87171;
  --text-1: #e6eaf3;
  --text-2: #a5adc0;
  --text-3: #6b7385;
  --border: rgba(255,255,255,0.08);
  --accent-soft: rgba(34,211,238,0.12);
  --sidebar-bg: rgba(5,6,10,0.96);
  --shadow: 0 2px 12px rgba(0,0,0,0.36), 0 8px 28px rgba(0,0,0,0.28);
  --shadow-lg: 0 4px 18px rgba(0,0,0,0.46), 0 12px 40px rgba(0,0,0,0.36);
}
/* 摩卡棕：深棕暖调 + 琥珀/焦糖强调，醇厚沉稳 */
[data-theme="coffee"] {
  --bg-0: #14100c;
  --bg-1: #1d1813;
  --bg-2: #262019;
  --bg-3: #2f281f;
  --bg-4: #3a3126;
  --accent: #f59e0b;
  --accent-2: #d97706;
  --accent-3: #fbbf24;
  --accent-4: #f87171;
  --danger: #f87171;
  --text-1: #f0e9de;
  --text-2: #b8ab99;
  --text-3: #7f7465;
  --border: rgba(255,255,255,0.08);
  --accent-soft: rgba(245,158,11,0.13);
  --sidebar-bg: rgba(17,13,9,0.96);
  --shadow: 0 2px 12px rgba(0,0,0,0.34), 0 8px 28px rgba(0,0,0,0.26);
  --shadow-lg: 0 4px 18px rgba(0,0,0,0.44), 0 12px 40px rgba(0,0,0,0.34);
}
/* 赛博青：深青黑底 + 荧光绿/青强调，能量感 */
[data-theme="cyber"] {
  --bg-0: #07100d;
  --bg-1: #0f1a16;
  --bg-2: #16241f;
  --bg-3: #1e2f28;
  --bg-4: #273b32;
  --accent: #a3e635;
  --accent-2: #2dd4bf;
  --accent-3: #facc15;
  --accent-4: #fb7185;
  --danger: #fb7185;
  --text-1: #e2efe7;
  --text-2: #9db8a8;
  --text-3: #64806f;
  --border: rgba(255,255,255,0.08);
  --accent-soft: rgba(163,230,53,0.12);
  --sidebar-bg: rgba(6,14,11,0.96);
  --shadow: 0 2px 12px rgba(0,0,0,0.32), 0 8px 28px rgba(0,0,0,0.24);
  --shadow-lg: 0 4px 18px rgba(0,0,0,0.42), 0 12px 40px rgba(0,0,0,0.32);
}
/* 雾灰蓝：浅灰蓝浅色，清爽办公 */
[data-theme="slate"] {
  --bg-0: #e8ecf2;
  --bg-1: #ffffff;
  --bg-2: #f1f4f9;
  --bg-3: #e4e9f2;
  --bg-4: #d7deea;
  --accent: #4f6ef7;
  --accent-2: #0ea5e9;
  --accent-3: #d97706;
  --accent-4: #e02e2e;
  --danger: #e02e2e;
  --text-1: #1a2233;
  --text-2: #4b5872;
  --text-3: #8a94a8;
  --border: rgba(30,50,90,0.10);
  --accent-soft: rgba(79,110,247,0.10);
  --sidebar-bg: #f2f5fa;
  --shadow: 0 1px 3px rgba(30,50,90,0.06), 0 6px 20px rgba(30,50,90,0.08);
  --shadow-lg: 0 2px 8px rgba(30,50,90,0.08), 0 12px 32px rgba(30,50,90,0.13);
}
/* 糖果粉：浅粉白底 + 粉/紫强调，活泼甜美 */
[data-theme="candy"] {
  --bg-0: #f6eef4;
  --bg-1: #ffffff;
  --bg-2: #faf1f7;
  --bg-3: #f3e4ee;
  --bg-4: #ebd6e4;
  --accent: #ec4899;
  --accent-2: #a855f7;
  --accent-3: #f59e0b;
  --accent-4: #e11d48;
  --danger: #e11d48;
  --text-1: #2b1b26;
  --text-2: #5c4a55;
  --text-3: #94808c;
  --border: rgba(120,40,90,0.10);
  --accent-soft: rgba(236,72,153,0.10);
  --sidebar-bg: #fbf3f8;
  --shadow: 0 1px 3px rgba(120,40,90,0.06), 0 6px 20px rgba(120,40,90,0.08);
  --shadow-lg: 0 2px 8px rgba(120,40,90,0.08), 0 12px 32px rgba(120,40,90,0.13);
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
/* 全局细滚动条：随主题变量自适应，不抢视觉 */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--bg-4); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-3); }
html, body { height: 100%; }
body {
  background: var(--bg-0);
  color: var(--text-1);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.6;
  overflow: hidden;
}
#app { display: flex; height: 100vh; }

/* ========== 侧边栏 ========== */
.sidebar {
  width: 220px;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  transition: transform .3s ease;
}
.sidebar-header {
  padding: 20px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border);
}
.logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700; color: #fff;
  flex-shrink: 0;
}
.logo-text { font-size: 16px; font-weight: 600; }
.sidebar-nav { flex: 1; padding: 12px 10px; overflow-y: auto; }
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-2);
  cursor: pointer;
  transition: all .15s;
  margin-bottom: 2px;
  font-size: 14px;
}
.nav-item:hover { background: var(--bg-2); color: var(--text-1); }
.nav-item.active { background: var(--accent-soft); color: var(--accent); font-weight: 500; }
.nav-item svg { flex-shrink: 0; opacity: .8; }
.nav-item.active svg { opacity: 1; }
.sidebar-footer {
  padding: 12px;
  border-top: 1px solid var(--border);
  position: relative;
}
.user-info {
  display: flex; align-items: center; gap: 10px;
  padding: 8px; border-radius: var(--radius-sm);
  cursor: pointer; transition: background .15s;
}
.user-info:hover { background: var(--bg-2); }
.sf-toggle { font-size: 10px; color: var(--text-3); margin-left: auto; transition: transform .2s; }
.user-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600; color: #fff;
  flex-shrink: 0;
}
.user-name { font-size: 13px; font-weight: 500; }
.user-menu {
  position: absolute; bottom: 60px; left: 12px; right: 12px;
  background: var(--bg-3); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 6px;
  box-shadow: var(--shadow-lg); display: none;
}
.user-menu.show { display: block; }
.user-menu a {
  display: block; padding: 8px 12px;
  border-radius: 6px; font-size: 13px;
  color: var(--text-1); cursor: pointer; transition: background .15s;
}
.user-menu a:hover { background: var(--bg-4); }

/* ========== 主内容区 ========== */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}
.mobile-header {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-1);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 10;
}
.page-title { font-size: 17px; font-weight: 600; flex: 1; }

/* 全局时间顶栏已移除（v22），日期时间天气集中展示在仪表盘 Hero 右侧 */
.topbar { display: none; }

/* 移动端：隐藏顶栏，时间内嵌到手机头部 */
.mobile-clock { display: none; font-size: 13px; font-weight: 500; color: var(--text-2); font-variant-numeric: tabular-nums; }

.content {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

/* ========== 卡片通用 ========== */
.card {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  transition: transform .15s, box-shadow .2s;
}
.card:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.card-title {
  font-size: 15px; font-weight: 600;
  color: var(--text-1);
  letter-spacing: 0.02em;
  margin-bottom: 14px;
  display: flex; align-items: center; justify-content: space-between;
}
.card-title .right { font-size: 11px; color: var(--text-3); letter-spacing: 0; font-weight: 400; }

/* ========== 仪表盘网格 ========== */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  width: 100%; /* v97-3：通栏自适应，去掉 1400px 限宽 */
}
.dashboard-grid .card.span-2 { grid-column: span 2; }
.dashboard-grid .card.span-4 { grid-column: span 4; }

/* ========== 统计卡片 ========== */
.stat-card {
  display: flex; flex-direction: row; flex-wrap: wrap; align-items: center;
  gap: 12px; min-height: 108px;
}
.stat-icon {
  width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.stat-main { flex: 1; min-width: 0; }
.stat-value {
  font-size: 28px; font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.stat-label { font-size: 13px; font-weight: 500; color: var(--text-2); }
.stat-sub { font-size: 11px; color: var(--text-3); margin-top: 2px; }
.stat-bar-bg { flex-basis: 100%; width: 100%; height: 6px; background: var(--bg-3); border-radius: 3px; overflow: hidden; }
.stat-bar-fill { height: 100%; border-radius: 3px; }

/* ========== 仪表盘快捷操作 ========== */
.quick-actions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.quick-act {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 16px 10px; background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); cursor: pointer; font-size: 13px; color: var(--text-2);
  transition: transform .15s, border-color .15s, color .15s;
}
.quick-act:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.quick-ico { font-size: 18px; }

/* ========== 列表项 ========== */
.list-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  background: var(--bg-2);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  transition: background .15s;
}
.list-item:hover { background: var(--bg-3); box-shadow: inset 0 0 0 1px var(--border); }
.list-item.done { opacity: .45; }
.list-item.done .list-text { text-decoration: line-through; }
.check-circle {
  width: 20px; height: 20px;
  border: 2px solid var(--text-3); border-radius: 50%;
  cursor: pointer; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: all .15s; font-size: 11px;
}
.check-circle:hover { border-color: var(--accent); }
.list-item.done .check-circle { background: var(--accent-2); border-color: var(--accent-2); }
.check-square {
  width: 18px; height: 18px;
  border: 2px solid var(--text-3); border-radius: 4px;
  cursor: pointer; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: all .15s; font-size: 10px;
}
.check-square:hover { border-color: var(--accent); }

/* v47：协作徽标与番茄联动按钮 */
.todo-badge {
  font-size: 10px; padding: 1px 6px; border-radius: 4px; flex-shrink: 0;
  background: var(--accent-soft); color: var(--accent); white-space: nowrap;
}
.todo-badge.me { background: rgba(245,158,11,0.15); color: #f59e0b; }
.todo-badge.list { background: rgba(16,185,129,0.12); color: #10b981; }
.todo-pomo {
  cursor: pointer; font-size: 11px; color: var(--text-3); flex-shrink: 0;
  width: 22px; height: 22px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; transition: all .15s;
}
.todo-pomo:hover { color: #fff; background: var(--accent); }

/* v52：项目协作——专属 banner / 成员头像叠放 / 卡片负责人头像 */
.proj-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 14px 18px; margin-bottom: 16px;
  background: linear-gradient(135deg, var(--accent-soft), transparent);
  border: 1px solid var(--border); border-radius: var(--radius);
}
.avatar-stack { display: flex; align-items: center; }
.member-avatar {
  width: 26px; height: 26px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 600; color: #fff;
  border: 2px solid var(--bg-1); margin-left: -8px; position: relative;
}
.member-avatar:first-child { margin-left: 0; }
.member-avatar.more { background: var(--bg-4); color: var(--text-2); font-size: 10px; }
.kb-avatar {
  width: 18px; height: 18px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 600; color: #fff; flex-shrink: 0;
}

/* v58：跨页跳转定位高亮——跳过来后目标项闪烁提示 */
.flash-highlight {
  outline: 2px solid var(--accent) !important;
  outline-offset: 1px;
  background: var(--accent-soft) !important;
  animation: flashFade 2.8s ease forwards;
}
@keyframes flashFade {
  0%, 70% { outline-color: var(--accent); background: var(--accent-soft); }
  100% { outline-color: transparent; background: transparent; }
}

/* v59：PMP——健康度徽标 / 阶段步进条 / 里程碑 */
.rag-badge { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 10px; flex-shrink: 0; }
.rag-green { background: rgba(16,185,129,0.14); color: #10b981; }
.rag-yellow { background: rgba(245,158,11,0.14); color: #f59e0b; }
.rag-red { background: rgba(239,68,68,0.14); color: #ef4444; }

.phase-stepper {
  display: flex; align-items: center; gap: 4px; flex-wrap: wrap;
  margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px dashed var(--border);
}
.phase-seg {
  font-size: 11px; padding: 3px 10px; border-radius: 10px; cursor: pointer;
  color: var(--text-3); background: var(--bg-2); transition: all .15s; user-select: none;
}
.phase-seg:hover { color: var(--text-1); }
.phase-seg.past { background: var(--accent-soft); color: var(--accent); }
.phase-seg.cur { background: var(--accent); color: #fff; font-weight: 600; }
.phase-arrow { font-size: 10px; color: var(--text-3); }

.ms-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.ms-chip {
  font-size: 11px; padding: 3px 8px; border-radius: 8px; cursor: pointer;
  background: var(--bg-2); color: var(--text-2); border: 1px solid var(--border);
  display: inline-flex; align-items: center; gap: 4px; transition: all .15s; user-select: none;
}
.ms-chip:hover { border-color: var(--accent); }
.ms-chip b { font-weight: 500; color: var(--text-3); }
.ms-chip.done { opacity: .55; text-decoration: line-through; }
.ms-chip.overdue { border-color: var(--accent-4); color: var(--accent-4); }
.ms-chip.overdue b { color: var(--accent-4); }
.ms-chip i { font-style: normal; color: var(--text-3); padding: 0 2px; border-radius: 3px; }
.ms-chip i:hover { color: var(--accent-4); background: rgba(239,68,68,0.12); }
.ms-add { width: 100px !important; flex-shrink: 0; padding: 3px 8px !important; font-size: 11px !important; }
.ms-date { width: 130px !important; flex-shrink: 0; padding: 3px 8px !important; font-size: 11px !important; }

/* v60：客户详情页头部吸顶——滚动时返回键和客户信息卡固定 */
.cust-detail-head {
  position: sticky; top: 0; z-index: 15;
  background: var(--bg-0);
  padding-top: 4px; margin-top: -4px;
}

/* v64：风险登记册 */
.risk-item {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  padding: 6px 8px; border-radius: 8px; margin-bottom: 4px;
  font-size: 12px; background: var(--bg-1); border: 1px solid var(--border);
}
.risk-item.risk-high { border-color: rgba(239,68,68,0.5); background: rgba(239,68,68,0.07); }
.risk-item.risk-mid { border-color: rgba(245,158,11,0.4); background: rgba(245,158,11,0.06); }
.risk-item.risk-closed { opacity: .5; }
.risk-item.risk-closed span:first-child { text-decoration: line-through; }
.risk-tag {
  font-size: 10px; padding: 1px 6px; border-radius: 4px;
  background: var(--bg-3); color: var(--text-2); flex-shrink: 0;
}
.risk-high .risk-tag { background: rgba(239,68,68,0.15); color: #ef4444; }
.risk-mid .risk-tag { background: rgba(245,158,11,0.15); color: #f59e0b; }
.risk-in { padding: 4px 8px !important; font-size: 11px !important; width: auto !important; }

/* v69：项目动态折叠开关 / 干系人客户链接徽标 */
.act-toggle {
  font-size: 11px; color: var(--accent); cursor: pointer; user-select: none;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px; border-radius: 6px; background: var(--accent-soft);
}
.act-toggle:hover { filter: brightness(1.15); }
.act-toggle b { font-weight: 600; }
.ms-link { border-color: var(--accent) !important; color: var(--accent) !important; cursor: pointer !important; }
.ms-link:hover { background: var(--accent-soft) !important; }

/* v65：页面头部吸顶——滚动列表时顶部操作区固定不动 */
/* v70：sticky 按外边距边缘吸附——负边距布局必须配等值负 top，否则吸顶后顶部留缝 */
.page-sticky-head {
  position: sticky; top: -20px; z-index: 15;
  background: var(--bg-0);
  margin: -20px -20px 0;
  padding: 12px 20px 10px;
  border-bottom: 1px solid var(--border);
  /* v73：底部同色缓冲带——与下方内容留出呼吸间距，且滚动时不会从缝隙漏出 */
  box-shadow: 0 10px 0 var(--bg-0);
}
.page-sticky-head::before {
  content: ''; position: absolute; left: 0; right: 0;
  top: -21px; height: 21px; background: var(--bg-0);
}
/* 卡片内头部吸顶（今日聚焦等整页单卡片场景） */
.card-sticky-head {
  position: sticky; top: -18px; z-index: 15;
  background: var(--bg-1);
  margin: -18px -18px 0; padding: 18px 18px 12px;
  border-radius: var(--radius) var(--radius) 0 0;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 0 var(--bg-1);
}
.card-sticky-head::before {
  content: ''; position: absolute; left: 0; right: 0;
  top: -20px; height: 20px; background: var(--bg-0);
}

/* v46：待办星标置顶（借鉴 ToDo 类应用：星标任务排在列表最前） */
.todo-star {
  cursor: pointer;
  flex-shrink: 0;
  font-size: 15px;
  line-height: 1;
  color: var(--text-3);
  opacity: .55;
  transition: color .15s, opacity .15s, transform .15s;
  user-select: none;
}
.todo-star:hover { color: #f5b301; opacity: 1; transform: scale(1.18); }
.todo-star.on { color: #f5b301; opacity: 1; text-shadow: 0 0 6px rgba(245, 179, 1, .45); }
.list-item.done .todo-star { opacity: .25; }
.list-item.done .check-square { background: var(--accent-2); border-color: var(--accent-2); }
.list-text { flex: 1; font-size: 14px; }
.list-del { color: var(--text-3); cursor: pointer; font-size: 12px; padding: 2px 6px; border-radius: 4px; }
.list-del:hover { color: var(--accent-4); background: rgba(239,68,68,0.1); }

/* ========== 标签 ========== */
.tag {
  font-size: 10px; padding: 2px 7px; border-radius: 4px;
  font-weight: 500; margin-left: 6px; display: inline-block;
}
.tag.q1 { background: rgba(239,68,68,0.12); color: #f87171; }
.tag.q2 { background: rgba(245,158,66,0.12); color: #fbbf24; }
.tag.q3 { background: rgba(79,140,255,0.12); color: #60a5fa; }
.tag.q4 { background: rgba(107,114,128,0.12); color: #9ca3af; }

/* ========== 输入框 ========== */
.input {
  width: 100%; padding: 10px 14px;
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text-1);
  font-size: 14px; font-family: inherit; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.input:focus { border-color: rgba(79,140,255,0.4); box-shadow: 0 0 0 3px rgba(79,140,255,0.08); }
.input::placeholder { color: var(--text-3); }
textarea.input { min-height: 100px; resize: vertical; line-height: 1.7; }

/* ========== 按钮 ========== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 18px; border-radius: var(--radius-sm); border: none;
  font-size: 13px; font-weight: 600; cursor: pointer;
  font-family: inherit; transition: all .15s;
}
.btn-primary { background: linear-gradient(135deg, var(--accent), #3a7aee); color: #fff; box-shadow: 0 4px 16px rgba(79,140,255,0.25); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(79,140,255,0.35); }
.btn-secondary { background: var(--bg-3); color: var(--text-1); }
.btn-secondary:hover { background: var(--bg-4); }
.btn-danger { background: rgba(239,68,68,0.12); color: var(--accent-4); }
.btn-danger:hover { background: rgba(239,68,68,0.2); }
.btn-sm { padding: 6px 12px; font-size: 12px; }

/* ========== 番茄钟 ========== */
.timer-display {
  font-size: 56px; font-weight: 700; text-align: center;
  font-variant-numeric: tabular-nums; letter-spacing: -2px;
  margin: 16px 0; line-height: 1;
}
.timer-display.work { background: linear-gradient(135deg, var(--accent), #60a5fa); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.timer-display.break { background: linear-gradient(135deg, var(--accent-2), #34d399); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.timer-controls { display: flex; gap: 10px; justify-content: center; }
.timer-status { text-align: center; font-size: 13px; color: var(--text-3); margin-top: 10px; }
.timer-dots { display: flex; justify-content: center; gap: 6px; margin-top: 14px; }
.timer-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--bg-3); transition: background .3s; }
.timer-dot.active { background: var(--accent-2); }

/* ========== 热力图 ========== */
.heat-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.heat-cell { aspect-ratio: 1; border-radius: 3px; background: var(--bg-3); transition: background .2s, transform .1s; }
.heat-cell.l1 { background: rgba(45,212,168,0.2); }
.heat-cell.l2 { background: rgba(45,212,168,0.4); }
.heat-cell.l3 { background: rgba(45,212,168,0.65); }
.heat-cell.l4 { background: var(--accent-2); }
.heat-cell.today { box-shadow: 0 0 0 2px var(--accent-1); }
.heat-cell:hover { transform: scale(1.3); z-index: 1; }

/* ========== v38 习惯模块增强 ========== */
.habit-progress-bar { height: 6px; background: var(--bg-3); border-radius: 3px; overflow: hidden; }
.habit-progress-fill { height: 100%; background: var(--accent-2); border-radius: 3px; transition: width .4s ease; }
.habit-stats-row { display: flex; gap: 6px; flex-wrap: wrap; }
.habit-badge {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 12px; padding: 2px 8px; border-radius: 10px;
  background: var(--bg-3); color: var(--text-2);
}
.habit-badge.streak-hot {
  background: rgba(249,115,22,0.15); color: #f97316; font-weight: 600;
}
.habit-color-swatch {
  width: 22px; height: 22px; border-radius: 50%;
  cursor: pointer; border: 2px solid transparent;
  transition: border-color .2s, transform .1s;
}
.habit-color-swatch:hover { transform: scale(1.15); }
.habit-color-swatch.active { border-color: var(--text-1); }
.habit-select { font-size: 13px; padding: 4px 8px !important; height: auto !important; }
.habit-heatmap-section { margin-top: 8px; }
.habit-card-v38 { transition: box-shadow .2s; }
.habit-card-v38:hover { box-shadow: 0 2px 12px rgba(0,0,0,0.15); }

/* ========== 时间线 ========== */
.timeline-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px; background: var(--bg-2);
  border-radius: var(--radius-sm); margin-bottom: 6px;
  font-size: 13px;
}
.timeline-time { width: 44px; color: var(--text-3); font-size: 12px; font-variant-numeric: tabular-nums; flex-shrink: 0; }
.timeline-bar { flex: 1; height: 5px; background: var(--bg-3); border-radius: 3px; overflow: hidden; }
.timeline-bar-fill { height: 100%; border-radius: 3px; }

/* ========== 看板 ========== */
.kanban-board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
/* v72：列内独立滚动——卡片再多页面也不拉长；列头吸附在列顶 */
.kanban-col {
  background: var(--bg-2); border-radius: var(--radius); padding: 14px;
  max-height: min(62vh, 620px); overflow-y: auto;
}
.kanban-col-header {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; margin: -14px -14px 12px; padding: 14px 14px 10px;
  position: sticky; top: -14px; z-index: 2;
  background: var(--bg-2); border-radius: var(--radius) var(--radius) 0 0;
  border-bottom: 1px solid var(--border);
}
.kanban-col-header .dot { width: 8px; height: 8px; border-radius: 50%; }
/* v72：已完成列展开/收起 */
.done-expand {
  text-align: center; font-size: 11px; color: var(--accent); cursor: pointer;
  padding: 7px; border-radius: 8px; background: var(--accent-soft); user-select: none;
}
.done-expand:hover { filter: brightness(1.15); }
.kanban-card {
  background: var(--bg-3); border-radius: var(--radius-sm);
  padding: 12px; margin-bottom: 8px;
  cursor: grab; font-size: 13px;
  border: 1px solid transparent;
  transition: border-color .15s, transform .1s;
}
.kanban-card:hover { border-color: var(--border); }
.kanban-card:active { cursor: grabbing; transform: scale(0.98); }

/* ========== 笔记卡片 ========== */
.note-card {
  background: var(--bg-2); border-radius: var(--radius-sm);
  padding: 14px; margin-bottom: 10px;
  cursor: pointer; transition: background .15s;
  border: 1px solid transparent;
}
.note-card:hover { background: var(--bg-3); border-color: var(--border); }
.note-card-title { font-size: 14px; font-weight: 500; margin-bottom: 4px; }
.note-card-preview { font-size: 12px; color: var(--text-3); line-height: 1.5; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.note-card-meta { font-size: 11px; color: var(--text-3); margin-top: 8px; }

/* ========== 快捷入口 ========== */
.bookmark-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.bookmark-item {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 14px 8px; background: var(--bg-2);
  border-radius: var(--radius-sm); cursor: pointer;
  text-decoration: none; color: var(--text-1);
  transition: background .15s; text-align: center;
}
.bookmark-item:hover { background: var(--bg-3); }
.bookmark-icon {
  width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 600;
}
.bookmark-name { font-size: 12px; }

/* ========== 资讯卡片 ========== */
.news-list { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 4px; }
.news-card {
  min-width: 260px; max-width: 300px; flex-shrink: 0;
  background: var(--bg-2); border-radius: var(--radius-sm);
  padding: 14px; border: 1px solid var(--border);
}
.news-tag { font-size: 11px; color: var(--accent); font-weight: 500; margin-bottom: 6px; }
.news-title { font-size: 13px; line-height: 1.5; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-meta { font-size: 11px; color: var(--text-3); }

/* ========== 标签页 ========== */
.tabs { display: flex; gap: 4px; margin-bottom: 14px; flex-wrap: wrap; }
.tab-btn {
  padding: 5px 12px; border-radius: 6px;
  font-size: 12px; cursor: pointer;
  color: var(--text-3); background: transparent;
  border: 1px solid transparent; font-family: inherit;
  transition: all .15s;
}
.tab-btn.active { background: var(--accent-soft); color: var(--accent); font-weight: 500; }
.tab-btn:hover { color: var(--text-1); }

/* ========== 日历 ========== */
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.calendar-day-header { text-align: center; font-size: 11px; color: var(--text-3); padding: 6px; font-weight: 500; }
.calendar-day {
  aspect-ratio: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: var(--bg-2); border-radius: var(--radius-sm);
  cursor: pointer; font-size: 13px; position: relative;
  transition: background .15s;
}
.calendar-day:hover { background: var(--bg-3); }
.calendar-day.today { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.calendar-day.has-event::after {
  content: ''; position: absolute; bottom: 4px;
  width: 4px; height: 4px; border-radius: 50%; background: var(--accent-2);
}

/* ========== 移动端底部导航 ========== */
.mobile-nav {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--sidebar-bg); backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  padding: 6px 0 calc(6px + env(safe-area-inset-bottom));
  z-index: 100;
}
.mnav-item {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; gap: 2px;
  padding: 4px; color: var(--text-3);
  font-size: 10px; cursor: pointer;
  transition: color .15s; text-decoration: none;
}
.mnav-item.active { color: var(--accent); }
.mnav-item svg { opacity: .7; }
.mnav-item.active svg { opacity: 1; }

/* ========== 底部弹出层 ========== */
.sheet-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  z-index: 200; opacity: 0; visibility: hidden;
  transition: all .25s;
}
.sheet-overlay.show { opacity: 1; visibility: visible; }
.sheet {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--bg-1); border-radius: 20px 20px 0 0;
  padding: 16px 20px calc(20px + env(safe-area-inset-bottom));
  z-index: 201; transform: translateY(100%);
  transition: transform .3s cubic-bezier(0.32,0.72,0,1);
  max-height: 70vh; overflow-y: auto;
}
.sheet.show { transform: translateY(0); }
.sheet-handle {
  width: 36px; height: 4px; border-radius: 2px;
  background: var(--bg-4); margin: 0 auto 14px;
}
.sheet-title { font-size: 15px; font-weight: 600; margin-bottom: 10px; }
.sheet-item {
  padding: 12px; border-radius: var(--radius-sm);
  font-size: 14px; cursor: pointer;
  transition: background .15s;
}
.sheet-item:hover { background: var(--bg-2); }

/* ========== Toast ========== */
.toast {
  position: fixed; top: 20px; left: 50%; transform: translateX(-50%) translateY(-60px);
  background: var(--bg-3); color: var(--text-1); padding: 10px 20px;
  border-radius: var(--radius-sm); font-size: 13px;
  box-shadow: var(--shadow-lg); z-index: 10050;
  border: 1px solid var(--border);
  transition: transform .3s cubic-bezier(0.32,0.72,0,1);
  pointer-events: none;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ========== v39 统一二次确认弹窗 ========== */
.confirm-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center;
  padding: 24px; opacity: 0; transition: opacity .18s;
}
.confirm-overlay.show { opacity: 1; }
.confirm-modal {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 14px; padding: 22px; width: 100%; max-width: 360px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
  transform: translateY(10px) scale(0.97); transition: transform .18s;
}
.confirm-overlay.show .confirm-modal { transform: none; }
.confirm-title { font-size: 16px; font-weight: 600; color: var(--text-1); margin-bottom: 8px; }
.confirm-msg { font-size: 13px; color: var(--text-2); line-height: 1.7; margin-bottom: 18px; word-break: break-all; }
.confirm-msg b { color: var(--text-1); }
.confirm-btns { display: flex; gap: 10px; justify-content: flex-end; }

/* ========== 加载动画 ========== */
.spinner {
  width: 20px; height: 20px;
  border: 2px solid var(--bg-3);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.empty-state {
  text-align: center; padding: 40px 20px; color: var(--text-3);
}
.empty-state svg { margin-bottom: 12px; opacity: .5; }

/* ========== 滚动条 ========== */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--bg-4); border-radius: 3px; }

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
  .dashboard-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-grid .card.span-4 { grid-column: span 2; }
  .kanban-board { grid-template-columns: repeat(2, 1fr); }
  .bookmark-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .sidebar { display: none; }
  .mobile-header { display: flex; }
  .topbar { display: none; }
  .mobile-clock { display: block; }
  .mobile-nav { display: flex; }
  .content { padding: 14px; padding-bottom: 80px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .dashboard-grid .card.span-2, .dashboard-grid .card.span-4 { grid-column: span 1; }
  .kanban-board { grid-template-columns: 1fr; }
  .bookmark-grid { grid-template-columns: repeat(2, 1fr); }
  .timer-display { font-size: 42px; }
}

/* ========== 退出登录按钮 ========== */
.logout-btn {
  width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px; margin-top: 8px;
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.2);
  border-radius: var(--radius-sm);
  color: #f87171; font-size: 13px; font-weight: 500;
  cursor: pointer; font-family: inherit;
  transition: all .15s;
}
.logout-btn:hover { background: rgba(239,68,68,0.15); border-color: rgba(239,68,68,0.35); }

/* ========== 全局搜索 ========== */
.search-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 400;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 15vh;
}
.search-overlay.show { display: flex; }
.search-box {
  width: 100%; max-width: 560px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
  overflow: hidden;
  animation: searchIn .2s ease;
}
@keyframes searchIn {
  from { opacity: 0; transform: scale(0.96) translateY(-10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.search-input-wrap {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  color: var(--text-3);
}
.search-input {
  flex: 1; background: transparent; border: none; outline: none;
  color: var(--text-1); font-size: 15px; font-family: inherit;
}
.search-input::placeholder { color: var(--text-3); }
.search-kbd {
  font-size: 11px; padding: 2px 7px;
  background: var(--bg-3); border-radius: 5px;
  color: var(--text-3); border: 1px solid var(--border);
}
.search-results { max-height: 360px; overflow-y: auto; }
.search-empty { padding: 30px; text-align: center; color: var(--text-3); font-size: 13px; }
.search-result-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 18px; cursor: pointer;
  transition: background .12s;
}
.search-result-item:hover { background: var(--bg-2); }
.search-result-type {
  font-size: 10px; padding: 2px 7px; border-radius: 4px;
  background: rgba(79,140,255,0.12); color: #60a5fa;
  flex-shrink: 0; font-weight: 500;
}
.search-result-title { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ========== 卡片编辑弹窗 ========== */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 350;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.show { display: flex; }
.modal {
  width: 100%; max-width: 480px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
  animation: searchIn .2s ease;
}
.modal-title { font-size: 16px; font-weight: 600; margin-bottom: 16px; }
.modal .form-row { margin-bottom: 12px; }
.modal .form-row label { display: block; font-size: 12px; color: var(--text-2); margin-bottom: 5px; }
.modal-btns { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }

/* ========== 看板拖拽 ========== */
.kanban-card.dragging { opacity: 0.45; transform: rotate(2deg) scale(0.98); }
.kanban-col.drag-over {
  outline: 2px dashed var(--accent);
  outline-offset: -2px;
  background: rgba(79,140,255,0.08);
}
/* 列内"松开放到此处"提示：平时隐藏，拖到该列时显示 */
.drop-hint {
  display: none;
  text-align: center;
  padding: 8px 0 2px;
  font-size: 11px;
  color: var(--accent);
  opacity: .9;
}
.kanban-col.drag-over .drop-hint { display: block; animation: dropHintPulse 1s ease-in-out infinite; }
@keyframes dropHintPulse {
  0%, 100% { opacity: .55; }
  50% { opacity: 1; }
}
/* 拖拽时页面顶部浮动提示条 */
.drag-hint {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: var(--bg-3);
  border: 1px solid var(--accent);
  color: var(--text-1);
  padding: 8px 18px;
  border-radius: 22px;
  font-size: 13px;
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s, transform .2s;
}
.drag-hint.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ========== 客户模块：公司维度卡片 ========== */
.cust-card { margin-bottom: 12px; cursor: pointer; transition: transform .15s ease, border-color .15s ease; }
.cust-card:hover { transform: translateY(-1px); border-color: rgba(79,140,255,0.4); }
.cust-main { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.cust-logo {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 600; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.cust-info { flex: 1; min-width: 220px; }
.cust-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cust-name { font-size: 15px; font-weight: 600; }
.cust-status { font-size: 10px; padding: 2px 8px; border-radius: 4px; color: #fff; }
.cust-overdue { font-size: 11px; padding: 2px 8px; border-radius: 4px; background: rgba(239,68,68,0.15); color: var(--accent-4); font-weight: 600; }
.cust-sub { display: flex; align-items: center; gap: 12px; margin-top: 4px; font-size: 12px; color: var(--text-3); flex-wrap: wrap; }
.cust-sub b { color: var(--accent); font-weight: 600; }
.cust-phone { color: var(--accent); text-decoration: none; }
.cust-side { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.cust-meta { display: flex; gap: 10px; font-size: 11px; color: var(--text-3); flex-wrap: wrap; }
.cust-meta .overdue { color: var(--accent-4); font-weight: 600; }
.cust-actions { display: flex; gap: 6px; }
.cust-contacts {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--border);
}
.cust-chip {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; padding: 3px 10px; border-radius: 999px;
  background: var(--bg-3); color: var(--text-2); border: 1px solid var(--border);
}
.cust-chip::before { content: '·'; color: var(--accent); font-weight: 700; }
.cust-chip.more { background: transparent; color: var(--text-3); border-style: dashed; }
.cust-chip.more::before { content: ''; }

/* ========== 客户模块：联系人 + 跟进时间线 ========== */
.contact-item {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 10px;
  padding: 12px; margin-bottom: 8px;
  background: var(--bg-2); border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  transition: border-color .15s;
}
.contact-item:hover { border-color: rgba(79,140,255,0.35); }
.fu-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--border);
}
.fu-item:last-child { border-bottom: none; }
.fu-icon {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--bg-2); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; flex-shrink: 0;
}

/* ========== 回收站 ========== */
.trash-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px; flex-wrap: wrap; gap: 10px;
}
.trash-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; background: var(--bg-2);
  border-radius: var(--radius-sm); margin-bottom: 8px;
}
.trash-item-title { flex: 1; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); }

/* ========== 骨架屏 ========== */
.skeleton {
  background: linear-gradient(90deg, var(--bg-2) 25%, var(--bg-3) 50%, var(--bg-2) 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.4s infinite;
  border-radius: var(--radius-sm);
}
@keyframes skeletonShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ========== 主题皮肤选择器 ========== */
.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.theme-card {
  border: 2px solid var(--border); border-radius: var(--radius-sm);
  padding: 10px; cursor: pointer; text-align: center;
  transition: border-color .15s, transform .15s; background: var(--bg-2);
}
.theme-card:hover { transform: translateY(-2px); }
.theme-card.active { border-color: var(--accent); }
.theme-swatch { display: flex; border-radius: 6px; overflow: hidden; height: 34px; margin-bottom: 8px; }
.theme-swatch span { flex: 1; }
.theme-name { font-size: 13px; font-weight: 500; }
.theme-desc { font-size: 11px; color: var(--text-3); margin-top: 2px; }

/* ========== 导入/导出 ========== */
.import-drop {
  border: 2px dashed var(--border); border-radius: var(--radius-sm);
  padding: 22px 16px; text-align: center; color: var(--text-3);
  cursor: pointer; transition: border-color .15s; font-size: 13px;
}
.import-drop:hover { border-color: var(--accent); color: var(--text-2); }
.import-result { max-height: 180px; overflow-y: auto; font-size: 12px; }
.import-result .err-line { color: var(--accent-4); padding: 3px 0; }
.export-check { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.export-check label {
  display: flex; align-items: center; gap: 5px; font-size: 12px;
  background: var(--bg-2); padding: 5px 10px; border-radius: 8px; cursor: pointer;
}
.icon-btn-group { display: flex; gap: 6px; }

/* ========== v13：今日聚焦 / 待办 / 日程 / 番茄钟 升级 ========== */
/* 今日聚焦：进度条 */
.focus-progress { display: flex; align-items: center; gap: 12px; margin: 10px 0 16px; }
.focus-progress-bar {
  flex: 1; height: 8px; border-radius: 4px; background: var(--bg-3); overflow: hidden;
}
.focus-progress-bar > div {
  height: 100%; border-radius: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width .4s ease;
}
.focus-progress-text { font-size: 12px; color: var(--text-3); white-space: nowrap; }
.focus-editable { cursor: text; border-bottom: 1px dashed transparent; }
.focus-editable:hover { border-bottom-color: var(--border); }
.focus-move {
  width: 22px; height: 22px; border-radius: 6px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: var(--text-3); cursor: pointer; user-select: none;
}
.focus-move:hover { background: var(--bg-3); color: var(--text-1); }
.focus-move.dim { opacity: .25; pointer-events: none; }

/* v25：聚焦智能排序——未完成与已完成之间的分隔线 */
.focus-divider {
  font-size: 11px; color: var(--text-3); letter-spacing: .08em;
  margin: 10px 0 4px; padding-top: 10px;
  border-top: 1px dashed var(--border);
}

/* 待办：快捷添加行 / 截止日期胶囊 / 逾期高亮 */
.todo-quick-add { display: flex; gap: 8px; margin: 0 0 14px; flex-wrap: wrap; }
.todo-quick-add .q-sel { width: 108px; flex-shrink: 0; }
.todo-quick-add .input { min-height: 38px; }
.todo-editable { cursor: pointer; }
.todo-editable:hover { color: var(--accent); }
.due-chip {
  font-size: 11px; padding: 2px 8px; border-radius: 10px; flex-shrink: 0;
  background: var(--bg-3); color: var(--text-3); white-space: nowrap;
}
.due-chip.late { background: rgba(239, 68, 68, 0.15); color: #f87171; font-weight: 500; }
.list-item.overdue .list-text { color: #f87171; }
.tag { cursor: pointer; transition: transform .1s; }
.tag:hover { transform: scale(1.08); }

/* 日程：日期导航 / 表单 / 结束时间 */
.sch-nav { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 16px; }
.sch-nav-btn {
  width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--bg-2); color: var(--text-2); cursor: pointer; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
}
.sch-nav-btn:hover { border-color: var(--accent); color: var(--accent); }
.sch-date-label { font-size: 17px; font-weight: 600; min-width: 150px; text-align: center; }
.sch-form { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.sch-form .input { min-height: 38px; }
.sch-end { font-size: 11px; color: var(--text-3); white-space: nowrap; }

/* ===== v36 日程月历 ===== */
.sch-layout { display: flex; gap: 16px; align-items: flex-start; }
.sch-main { flex: 1; min-width: 0; max-width: none; } /* v97-4：去 700px 限宽，通栏自适应 */
.cal-card { width: clamp(320px, 22vw, 400px); flex: 0 0 auto; } /* v97-4：日历列随视口弹性 */
.cal-head {
  display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 12px;
}
.cal-title { font-size: 16px; font-weight: 700; color: var(--text-1); min-width: 96px; text-align: center; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal-wd {
  text-align: center; font-size: 12px; color: var(--text-3); font-weight: 600;
  padding: 4px 0 8px;
}
.cal-wd:last-child { color: #ff7875; }
.cal-day {
  position: relative; height: 44px; border-radius: 10px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 13px; color: var(--text-1); border: 1px solid transparent;
  transition: background .12s, border-color .12s;
}
.cal-day:hover { background: var(--bg-3); }
.cal-day.other { color: var(--text-3); opacity: .45; }
.cal-day.today { border-color: var(--accent); font-weight: 700; }
.cal-day.sel { background: var(--accent); color: #fff; font-weight: 700; }
.cal-day.sel .cal-dots i { background: #fff; }
.cal-dots { display: flex; gap: 3px; margin-top: 3px; height: 4px; }
.cal-dots i {
  width: 4px; height: 4px; border-radius: 50%; background: var(--accent);
  display: inline-block;
}
.cal-legend {
  margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--border);
  font-size: 11.5px; color: var(--text-3); display: flex; align-items: center; gap: 6px;
}
@media (max-width: 1080px) {
  .sch-layout { flex-direction: column; }
  .cal-card { width: 100%; max-width: 420px; }
}
@media (max-width: 620px) {
  .cal-card { max-width: none; }
  .cal-day { height: 40px; border-radius: 8px; font-size: 12.5px; }
}

/* 番茄钟：时长选择chips / 全局迷你计时器 */
.dur-chips { display: flex; justify-content: center; gap: 8px; margin: 14px 0 6px; flex-wrap: wrap; }
.chip {
  padding: 5px 14px; border-radius: 14px; border: 1px solid var(--border);
  background: var(--bg-2); color: var(--text-3); font-size: 12px; cursor: pointer;
  transition: all .15s;
}
.chip:hover { border-color: var(--accent); color: var(--text-1); }
.chip.active {
  background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 500;
}
.mini-timer {
  position: fixed; right: 20px; bottom: 20px; z-index: 900;
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 12px; cursor: pointer;
  background: var(--bg-2); border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  font-size: 14px; font-weight: 600; color: var(--text-1);
  animation: miniTimerIn .25s ease;
}
.mini-timer:hover { border-color: var(--accent); }
@keyframes miniTimerIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========== v13.1：项目关联客户联想搜索 ========== */
.cust-search { position: relative; }
.cust-suggest {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0;
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); z-index: 120;
  max-height: 260px; overflow-y: auto; display: none;
}
.cs-item {
  padding: 8px 12px; cursor: pointer;
  display: flex; flex-direction: column; gap: 2px;
}
.cs-item + .cs-item { border-top: 1px solid var(--border); }
.cs-item:hover, .cs-item.active { background: var(--bg-3); }
.cs-name { font-size: 13px; color: var(--text-1); line-height: 1.4; }
.cs-sub { font-size: 11px; color: var(--text-3); line-height: 1.3; }
.cs-empty { padding: 10px 12px; font-size: 12px; color: var(--text-3); text-align: center; }

/* ========== v13.2：使用提示弹窗 ========== */
.help-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(3px);
  display: none; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; transition: opacity .2s ease;
}
.help-overlay.show { display: flex; opacity: 1; }
.help-modal {
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 18px;
  width: min(760px, 100%); max-height: 86vh; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  display: flex; flex-direction: column; animation: helpIn .25s ease;
}
@keyframes helpIn {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.help-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--border);
}
.help-header h3 { margin: 0; font-size: 17px; font-weight: 600; }
.help-close {
  width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text-3); font-size: 16px;
}
.help-close:hover { background: var(--bg-3); color: var(--text-1); }
.help-body { padding: 20px; overflow-y: auto; }
.help-intro {
  font-size: 13px; line-height: 1.7; color: var(--text-2);
  background: var(--bg-3); padding: 12px 14px; border-radius: 10px; margin-bottom: 18px;
}
.help-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px;
}
/* v34：使用提示「最近更新」区块 */
.help-updates {
  margin-top: 18px; padding: 14px 16px;
  background: var(--bg-3); border-radius: 10px;
  font-size: 13px; line-height: 1.8; color: var(--text-2);
}
.help-updates .hu-title {
  font-size: 13px; font-weight: 600; color: var(--text-1); margin-bottom: 6px;
}
.help-updates ul { margin: 0; padding-left: 18px; }
.help-updates li { margin-bottom: 8px; }
.help-updates li:last-child { margin-bottom: 0; }
.help-updates b { color: var(--text-1); font-weight: 600; }
/* 版本标签 + 日期 + 更新条目（由 UPDATE_LOG 驱动） */
.hu-ver {
  display: inline-block; font-size: 11px; font-weight: 700; color: #fff;
  background: var(--accent); border-radius: 5px; padding: 1px 7px;
  margin-right: 6px; vertical-align: 1px; list-style: none;
}
.hu-date { font-size: 12px; color: var(--text-3); }
.hu-item { color: var(--text-2); font-size: 12.5px; line-height: 1.7; }

/* 侧边栏「使用提示」红点徽标 */
.nav-item { position: relative; }
.nav-badge {
  position: absolute; top: 4px; right: 10px;
  background: #ff4d4f; color: #fff; font-size: 10px; font-weight: 700;
  line-height: 1; padding: 3px 6px; border-radius: 8px;
  animation: badgePulse 1.8s infinite;
}
@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 77, 79, .45); }
  50% { box-shadow: 0 0 0 5px rgba(255, 77, 79, 0); }
}

/* 新版本首访「本次更新」速览卡片 */
.update-notice {
  position: fixed; right: 18px; bottom: 18px; z-index: 300;
  width: 320px; max-width: calc(100vw - 36px);
  background: var(--bg-1); border: 1px solid var(--border);
  border-radius: 14px; padding: 14px 16px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
  animation: unSlideIn .3s ease;
}
@keyframes unSlideIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.un-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.un-tag { font-size: 13px; font-weight: 700; color: var(--text-1); }
.un-close {
  background: none; border: none; color: var(--text-3); cursor: pointer;
  font-size: 14px; padding: 2px 6px; border-radius: 6px; line-height: 1;
}
.un-close:hover { color: var(--text-1); background: var(--bg-3); }
.un-item { font-size: 12.5px; color: var(--text-2); line-height: 1.7; margin-bottom: 4px; }
.un-actions { display: flex; gap: 8px; margin-top: 10px; }
@media (max-width: 620px) {
  .update-notice { right: 12px; bottom: 70px; left: 12px; width: auto; }
  .un-actions .btn { flex: 1; }
}
.help-card {
  background: var(--bg-1); border: 1px solid var(--border); border-radius: 14px; padding: 16px;
  transition: transform .12s, box-shadow .12s, border-color .12s;
}
.help-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2); }
.help-card.current { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(79, 140, 255, 0.15); }
.help-icon { font-size: 24px; margin-bottom: 10px; }
.help-title { font-size: 14px; font-weight: 600; color: var(--text-1); margin-bottom: 6px; }
.help-desc { font-size: 12px; color: var(--text-3); line-height: 1.6; }

/* ========== v13.5：资讯定时刷新 ========== */
.news-refresh {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 6px;
  font-size: 14px; color: var(--text-3); cursor: pointer; user-select: none;
  transition: color .15s, background .15s;
}
.news-refresh:hover { color: var(--accent); background: var(--bg-3); }

/* ========== v14：仪表盘固定高度翻页 + 顶栏折叠 ========== */
/* 列表卡片固定高度：每页固定 4 条，数据再多也不拉长仪表盘 */
.dash-fixed-list { height: calc(var(--dash-page, 4) * 51px); overflow: hidden; } /* v97-3：高度随每页条数自适应 */
.dash-fixed-list .empty-state { padding: 60px 20px; }

/* 分页控制条 */
.dash-pager {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-top: 10px; padding-top: 8px; border-top: 1px dashed var(--border);
}
.pg-btn {
  width: 24px; height: 24px; border-radius: 6px;
  border: 1px solid var(--border); background: var(--bg-2); color: var(--text-2);
  cursor: pointer; font-size: 13px; line-height: 1; user-select: none;
  display: inline-flex; align-items: center; justify-content: center;
  transition: color .15s, border-color .15s;
}
.pg-btn:hover { color: var(--accent); border-color: var(--accent); }
.pg-btn.disabled { opacity: .35; cursor: default; }
.pg-btn.disabled:hover { color: var(--text-2); border-color: var(--border); }
.pg-info { font-size: 11px; color: var(--text-3); font-variant-numeric: tabular-nums; }

/* ========== v15：侧边栏底部折叠 ========== */
/* 点击侧边栏用户名区域，收起/展开主题皮肤、导出数据、使用提示；退出登录始终可见 */
.sidebar-footer.collapsed .nav-item { display: none; }
.sidebar-footer.collapsed { padding-top: 8px; padding-bottom: 8px; }
.sidebar-footer.collapsed .user-info { margin-bottom: 8px; }
.sidebar-footer.collapsed .sf-toggle { transform: rotate(-90deg); display: inline-block; }

/* 顶栏天气组件样式（复用到 Hero 右侧） */
.tb-weather { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-2); white-space: nowrap; }
.tb-weather-temp { font-size: 14px; font-weight: 600; color: var(--text-1); }
.tb-weather-desc { color: var(--text-3); }
.tb-weather-tip { color: var(--accent-3); font-weight: 500; }

/* ========== v18：主题层次感增强 ========== */
/* 每个主题定义 accent 柔和版，导航选中态跟随主题色（原来是写死的蓝色） */
:root { --accent-soft: rgba(79,140,255,0.14); }
[data-theme="light"] { --accent-soft: rgba(47,107,255,0.10); }
[data-theme="mint"] { --accent-soft: rgba(22,163,74,0.12); }
[data-theme="purple"] { --accent-soft: rgba(139,92,246,0.16); }
[data-theme="sunset"] { --accent-soft: rgba(249,115,22,0.16); }
.nav-item.active { background: var(--accent-soft); }

/* 卡片标题左上加色点，视觉锚点更清晰 */
.card-title::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px; border-radius: 2px;
  background: var(--accent);
  margin-right: 8px;
  vertical-align: 2px;
  opacity: .85;
}
/* 顶栏与背景分层：顶栏比内容底色亮半档（深色提亮、浅色微灰） */
.topbar { background: var(--sidebar-bg); }

/* 列表项嵌入感：细内边线 + 圆角统一 */
.list-item { box-shadow: inset 0 0 0 1px var(--border); }

/* 修正：card-title 是 flex 容器，色点改绝对定位避免破坏 space-between 布局 */
.card-title { position: relative; padding-left: 14px; }
.card-title::before { position: absolute; left: 0; top: 8px; margin: 0; vertical-align: baseline; }

/* ========== v19：仪表盘 Hero + 统计卡片升级 ========== */
/* Hero 概览：v26 改为吸顶固定 + 压缩高度 */
.dashboard-hero {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  /* v29：通栏贴合页面顶端，高度与左侧「工作台」头部(77px)对齐，底边线齐平成一体 */
  height: 77px; box-sizing: border-box;
  padding: 0 24px; margin: -20px -20px 16px;
  background: var(--sidebar-bg);
  border: none; border-bottom: 1px solid var(--border);
  border-radius: 0;
  position: sticky; top: 0; z-index: 20;
  box-shadow: 0 2px 10px rgba(0,0,0,0.14);
}
.hero-left { min-width: 0; }
.hero-date { font-size: 11px; color: var(--text-3); letter-spacing: 0.02em; }
.hero-greet {
  font-size: 19px; font-weight: 700; color: var(--text-1); margin: 2px 0 3px;
}
.hero-tip { font-size: 12.5px; color: var(--text-2); }
.hero-tip b { color: var(--accent); font-weight: 600; }

/* 快捷入口按钮组：v22 移除，改为天气+实时时间展示 */
.hero-actions { display: none; }

/* 仪表盘 Hero 右侧天气+时钟 */
.hero-weather-time {
  display: flex; flex-direction: column; align-items: flex-end; gap: 5px;
  min-width: 0; text-align: right;
}
.hero-date-weather {
  display: flex; align-items: center; gap: 14px;
  font-size: 12px; color: var(--text-2);
  flex-wrap: wrap; justify-content: flex-end;
}
.hero-clock .tb-time {
  font-size: 30px; font-weight: 600; letter-spacing: -1px;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-clock .tb-sec {
  font-size: 12px; color: var(--text-3); margin-left: 4px;
  font-variant-numeric: tabular-nums;
}

/* 中等屏幕：hero 堆叠（通栏但恢复自适应高度） */
@media (max-width: 900px) {
  .dashboard-hero {
    flex-direction: column; align-items: flex-start; gap: 8px;
    height: auto; padding: 12px 16px; margin: -14px -14px 14px;
    position: static;
  }
  .hero-weather-time { align-items: flex-start; text-align: left; width: 100%; }
  .hero-date-weather { justify-content: flex-start; }
  .hero-clock .tb-time { font-size: 26px; }
}

/* 小屏幕：统计卡片两列 */
@media (max-width: 620px) {
  .dashboard-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-grid .card.span-2,
  .dashboard-grid .card.span-4 { grid-column: span 2; }
  .hero-greet { font-size: 17px; }
  .hero-clock .tb-time { font-size: 24px; }
  .hero-clock .tb-sec { font-size: 11px; }
  .stat-icon { width: 36px; height: 36px; }
  .stat-value { font-size: 22px; }
}

/* ========== v28：时间轴（昨天/今天/明天/未来7天） ========== */
.tl-head { padding-bottom: 12px; }
.tl-head-sub { font-size: 12px; color: var(--text-3); margin-top: 2px; }

/* 逾期横幅 */
.tl-overdue {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 12px 18px; margin-bottom: 16px;
  background: color-mix(in srgb, var(--danger) 10%, var(--bg-1));
  border: 1px solid color-mix(in srgb, var(--danger) 35%, transparent);
  border-radius: var(--radius);
}
.tl-overdue-info { font-size: 13px; color: var(--text-2); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-width: 0; }
.tl-overdue-info b { color: var(--danger); font-size: 15px; }
.tl-overdue-badge {
  font-size: 11px; font-weight: 600; color: #fff; background: var(--danger);
  padding: 1px 8px; border-radius: 10px;
}
.tl-overdue-list { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.tl-overdue-tag {
  font-size: 11px; color: var(--text-2); background: var(--bg-2);
  border: 1px solid var(--border); border-radius: 8px; padding: 2px 8px;
  max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.tl-overdue-more { font-size: 11px; color: var(--text-3); }
.tl-overdue-actions { display: flex; gap: 8px; }

/* 三栏卡片 */
.tl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 16px; }
.tl-card { display: flex; flex-direction: column; min-height: 200px; }
.tl-yesterday { border-top: 2px solid var(--text-3); }
.tl-today { border-top: 2px solid var(--accent); }
.tl-tomorrow { border-top: 2px solid var(--accent-2); }

.tl-score { text-align: center; padding: 6px 0 10px; border-bottom: 1px dashed var(--border); margin-bottom: 8px; }
.tl-score-num { font-size: 26px; font-weight: 700; color: var(--accent); }
.tl-score-num.tl-score-muted { color: var(--text-3); }
.tl-score-label { font-size: 11px; color: var(--text-3); margin-top: 2px; }

.tl-sec { font-size: 11px; font-weight: 600; color: var(--text-3); letter-spacing: .04em; margin: 10px 0 4px; }
.tl-item {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 8px; border-radius: 8px; font-size: 13px; color: var(--text-1);
}
.tl-item:hover { background: var(--bg-2); }
.tl-item.done .tl-text { color: var(--text-3); text-decoration: line-through; }
.tl-check { font-size: 11px; color: var(--text-3); flex-shrink: 0; }
.tl-item.done .tl-check { color: var(--accent-2); }
.tl-quad { flex-shrink: 0; font-size: 10px; }
.tl-time {
  flex-shrink: 0; font-size: 11px; color: var(--accent); font-weight: 500;
  font-variant-numeric: tabular-nums; min-width: 36px;
}
.tl-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }

.tl-stat-line { margin-top: auto; padding-top: 10px; font-size: 12px; color: var(--text-2); border-top: 1px dashed var(--border); }
.tl-empty { padding: 24px 0; text-align: center; font-size: 12px; color: var(--text-3); line-height: 1.9; }
.tl-go { margin-top: 10px; font-size: 12px; color: var(--accent); cursor: pointer; text-align: right; }
.tl-go:hover { text-decoration: underline; }

/* 未来7天条 */
.wk-strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.wk-chip {
  background: var(--bg-1); border: 1px solid var(--border); border-radius: 10px;
  padding: 10px 6px; text-align: center; transition: border-color .15s;
}
.wk-chip:hover { border-color: var(--accent); }
.wk-chip-empty { opacity: .55; }
.wk-chip-day { font-size: 12px; font-weight: 600; color: var(--text-1); }
.wk-chip-date { font-size: 11px; color: var(--text-3); margin: 2px 0 6px; }
.wk-chip-nums { display: flex; flex-direction: column; gap: 2px; align-items: center; min-height: 28px; justify-content: center; }
.wk-n { font-size: 11px; padding: 1px 6px; border-radius: 8px; }
.wk-n-todo { color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.wk-n-sch { color: var(--accent-2); background: color-mix(in srgb, var(--accent-2) 12%, transparent); }
.wk-none { font-size: 11px; color: var(--text-3); }

/* 响应式：三栏变单栏，周条变横滑/换行 */
@media (max-width: 900px) {
  .tl-grid { grid-template-columns: 1fr; }
  .wk-strip { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 620px) {
  .wk-strip { grid-template-columns: repeat(2, 1fr); }
  .tl-overdue-actions { width: 100%; }
  .tl-overdue-actions .btn { flex: 1; }
}

/* ========== v31：七日速选（大前天~大后天可点切换，聚焦/待办/笔记/日程通用） ========== */
.sd-strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 14px; }
.sd-chip {
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px;
  padding: 7px 2px 6px; text-align: center; cursor: pointer; font: inherit;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  transition: border-color .15s, transform .15s, background .15s;
}
.sd-chip:hover { border-color: var(--accent); transform: translateY(-1px); }
/* 选中态：主题色描边 + 柔和底色 */
.sd-chip.sel {
  border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--bg-2));
  box-shadow: inset 0 0 0 1px var(--accent);
}
.sd-chip.sel .sd-name { color: var(--accent); }
.sd-name { font-size: 12px; font-weight: 600; color: var(--text-1); display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
/* 过去的日期名称略微淡化，视觉上区分回顾与未来 */
.sd-chip.past .sd-name { color: var(--text-2); }
.sd-chip.past .sd-date { opacity: .8; }
/* 今天标记：名称旁的小圆点 */
.sd-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); display: inline-block; }
.sd-date { font-size: 10.5px; color: var(--text-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
/* 小屏：单行横滑，避免 7 列挤压 */
@media (max-width: 620px) {
  .sd-strip { display: flex; overflow-x: auto; gap: 6px; padding-bottom: 4px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .sd-strip::-webkit-scrollbar { display: none; }
  .sd-chip { flex: 0 0 auto; min-width: 72px; padding: 7px 8px 6px; }
}
/* 超小屏：芯片再瘦身，一行能看 5 个 */
@media (max-width: 400px) {
  .sd-chip { min-width: 64px; padding: 6px 6px 5px; }
  .sd-name { font-size: 11px; }
  .sd-date { font-size: 9.5px; }
}

/* ========== v41：客户管理工具栏移动端适配 ========== */
.customer-toolbar { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.customer-toolbar .customer-search { flex: 1; min-width: 180px; }
.customer-toolbar .customer-actions { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 560px) {
  .customer-toolbar .customer-search { width: 100%; flex: none; min-width: 0; }
  .customer-toolbar .customer-actions { width: 100%; }
  .customer-toolbar .customer-actions .btn { flex: 1; min-width: 0; padding-left: 10px; padding-right: 10px; }
}

/* ========== v32：仪表盘 Hero 真正贴顶（sticky 会抵消负边距，改用 content 去顶部 padding） ========== */
/* 桌面：移除 content 顶部 padding，Hero margin-top 归零 */
.content.no-top-pad { padding-top: 0; }
.content.no-top-pad .dashboard-hero { margin-top: 0; }
/* 中等/小屏：content padding 被媒体查询覆盖，再次强调 */
@media (max-width: 900px) {
  .content.no-top-pad { padding-top: 0; }
  .content.no-top-pad .dashboard-hero { margin-top: 0; }
}

/* ========== v91：个人资料弹窗（加宽 + 头部信息带 + 双列表单） ========== */
.profile-modal { max-width: 680px; width: 92vw; padding: 0; overflow: hidden; }
.profile-head {
  display: flex; align-items: center; gap: 14px;
  padding: 20px 24px;
  background: linear-gradient(135deg, var(--accent-soft), transparent 70%);
  border-bottom: 1px solid var(--border);
}
.profile-avatar {
  width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; font-size: 22px; font-weight: 700;
  box-shadow: 0 4px 14px rgba(79, 140, 255, 0.35);
}
.profile-head-name { font-size: 17px; font-weight: 700; }
.profile-head-sub { font-size: 12px; color: var(--text-3); margin-top: 3px; word-break: break-all; }
.profile-close { cursor: pointer; color: var(--text-3); font-size: 15px; padding: 6px 8px; border-radius: 6px; }
.profile-close:hover { background: var(--bg-3); color: var(--text-1); }
.profile-body { padding: 20px 24px 6px; min-height: 120px; display: block; }
.profile-body .profile-grid { width: 100%; display: block; }
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.profile-field { display: flex; flex-direction: column; }
.profile-field-wide { grid-column: 1 / -1; }
.profile-field label { font-size: 13px; color: var(--text-2); margin-bottom: 6px; font-weight: 600; }
.profile-field .input { padding: 10px 12px; font-size: 14px; }
.profile-hint { font-size: 11px; color: var(--text-3); margin-top: 5px; line-height: 1.5; }
.profile-code-btn { margin-top: 8px; align-self: flex-start; font-size: 12px; padding: 5px 12px; }
.profile-foot { padding: 14px 24px 20px; margin: 0; border-top: 1px solid var(--border); background: var(--bg-2); }
.profile-lock {
  margin: 0 24px 20px; font-size: 12px; color: var(--accent-4, #f87171);
  background: rgba(239, 68, 68, 0.08); padding: 10px 14px; border-radius: 8px;
}
@media (max-width: 560px) {
  .profile-grid { grid-template-columns: 1fr; }
  .profile-head { padding: 16px; }
  .profile-body { padding: 16px 16px 4px; }
  .profile-foot { padding: 12px 16px 16px; }
  .profile-lock { margin: 0 16px 16px; }
}

/* ========== v91：项目卡片折叠（默认收缩只留项目名） ========== */
.proj-head-left {
  display: flex; align-items: center; gap: 12px; cursor: pointer;
  min-width: 0; flex: 1; border-radius: 8px; padding: 4px 6px; margin: -4px -6px;
  transition: background 0.15s;
}
.proj-head-left:hover { background: var(--bg-2); }
.proj-chevron {
  font-size: 13px; color: var(--text-3); flex-shrink: 0; width: 14px; text-align: center;
  user-select: none;
}
.proj-mini-stats {
  display: none; font-size: 11px; color: var(--text-3); flex-shrink: 0;
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px; padding: 2px 9px;
}
.proj-collapsed .proj-mini-stats { display: inline-block; }
.proj-collapsed .proj-desc { display: none; }
.proj-actions-extra { display: contents; }
.proj-collapsed .proj-actions-extra { display: none; }
.proj-collapsed > div:first-child { margin-bottom: 0; }
.proj-collapsed { padding-bottom: 14px; }

/* ========== v91：报表分析页 ========== */
.report-tabs { display: flex; gap: 8px; margin: 12px 0 10px; }
.report-tab {
  padding: 7px 18px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--bg-2); color: var(--text-2); font-size: 13px; cursor: pointer;
  transition: all 0.15s;
}
.report-tab:hover { border-color: var(--accent); color: var(--accent); }
.report-tab.active {
  background: var(--accent-soft); border-color: var(--accent);
  color: var(--accent); font-weight: 600;
}
.report-range { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.range-chip {
  padding: 4px 12px; border-radius: 14px; border: 1px solid var(--border);
  background: transparent; color: var(--text-2); font-size: 12px; cursor: pointer;
  transition: all 0.15s;
}
.range-chip:hover { border-color: var(--accent); color: var(--accent); }
.range-chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.report-custom-range { display: flex; gap: 6px; align-items: center; }
.report-cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px; margin-bottom: 16px;
}
.report-card {
  background: var(--bg-1, var(--bg-2)); border: 1px solid var(--border); border-radius: 12px;
  padding: 16px 14px; text-align: center;
}
.rc-value { font-size: 26px; font-weight: 700; line-height: 1.2; }
.rc-label { font-size: 12px; color: var(--text-3); margin-top: 4px; }
.rc-sub { font-size: 11px; color: var(--text-3); margin-top: 2px; opacity: 0.8; }
.report-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.report-panel {
  background: var(--bg-1, var(--bg-2)); border: 1px solid var(--border);
  border-radius: 12px; padding: 14px 16px;
}
.rp-title { font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 10px; }
.chart-legend-row { display: flex; gap: 14px; margin-bottom: 6px; flex-wrap: wrap; }
.chart-legend { font-size: 11px; color: var(--text-2); display: inline-flex; align-items: center; gap: 5px; }
.chart-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.chart-empty { font-size: 12px; color: var(--text-3); padding: 24px 0; text-align: center; }
.hbar-list { display: flex; flex-direction: column; gap: 9px; }
.hbar-row { display: flex; align-items: center; gap: 10px; }
.hbar-label { width: 76px; font-size: 12px; color: var(--text-2); flex-shrink: 0; }
.hbar-track { flex: 1; height: 10px; background: var(--bg-3); border-radius: 5px; overflow: hidden; }
.hbar-fill { height: 100%; border-radius: 5px; transition: width 0.3s; }
.hbar-val { width: 74px; font-size: 11px; color: var(--text-3); text-align: right; flex-shrink: 0; }
.report-insight {
  margin-top: 14px; padding: 12px 16px; border-radius: 10px;
  background: var(--accent-soft); border: 1px dashed var(--accent);
  font-size: 13px; color: var(--text-1); line-height: 1.7;
}
@media (max-width: 760px) {
  .report-grid { grid-template-columns: 1fr; }
  .hbar-label { width: 60px; }
}

/* ========== v92：今日聚焦智能推荐 + 日程完成/共享 ========== */
.focus-recs {
  background: linear-gradient(135deg, rgba(79,140,255,0.07), transparent);
  border: 1px dashed var(--accent-2);
  border-radius: var(--radius-sm);
  padding: 8px 10px; margin-bottom: 12px;
}
.focus-recs-title {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; color: var(--accent); margin-bottom: 6px;
}
.focus-recs-title .right { font-size: 11px; font-weight: 400; color: var(--text-3); }
.rec-badge {
  font-size: 10px; padding: 1px 6px; border-radius: 4px; flex-shrink: 0;
  white-space: nowrap; font-weight: 600;
}
.rec-badge.todo { background: rgba(245,158,11,0.15); color: #f59e0b; }
.rec-badge.schedule { background: rgba(16,185,129,0.12); color: #10b981; }
.rec-item { gap: 8px; }
.rec-time { font-size: 11px; color: var(--text-3); white-space: nowrap; flex-shrink: 0; }
/* v95：推荐项"挂起"按钮（今天不再推荐、腾出聚焦名额） */
.rec-snooze {
  color: var(--text-3); cursor: pointer; font-size: 12px; white-space: nowrap; flex-shrink: 0;
  padding: 2px 8px; border-radius: 4px; border: 1px solid var(--border);
}
.rec-snooze:hover { color: var(--accent); border-color: var(--accent); background: rgba(99,102,241,0.08); }
/* 日程：完成勾选 + 已完成态（与"时间已过"的淡显区分） */
.schedule-check { width: 18px; height: 18px; font-size: 10px; }
.timeline-item.s-completed { opacity: .5; }
.timeline-item.s-completed .check-circle { background: var(--accent-2); border-color: var(--accent-2); }
.timeline-item.s-completed .sch-end { color: var(--accent-2); }
.timeline-item.dim { opacity: .6; }
.sch-share {
  color: var(--text-3); cursor: pointer; font-size: 13px;
  padding: 2px 6px; border-radius: 4px; flex-shrink: 0;
}
.sch-share:hover { color: var(--accent); background: var(--accent-soft); }
.input:disabled { opacity: .55; cursor: not-allowed; }

/* ========== v94：补齐审计发现的缺失规则（此前模板引用但无定义） ========== */
.chart-box { padding: 4px 2px 0; }
.proj-body { /* 折叠体：间距由内部元素自带，这里仅保证展开时与头部留白 */ }
.proj-collapsed .proj-body { display: none; }
.form-input {
  width: 100%; padding: 9px 12px; font-size: 13px;
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 8px;
  color: var(--text-1); outline: none;
}
.form-input:focus { border-color: var(--accent); }
.modal-header {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 15px; font-weight: 700; margin-bottom: 12px;
}
.notif-item {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 10px 12px; border-radius: 8px; cursor: pointer;
  border-bottom: 1px dashed var(--border); font-size: 13px;
}
.notif-item:hover { background: var(--bg-2); }

/* ========== v93：聚焦设置 + 番茄钟联动 + 评论 ========== */
.focus-gear { cursor: pointer; font-size: 13px; margin-left: 6px; opacity: .75; }
.focus-gear:hover { opacity: 1; }
.pomo-btn { color: var(--text-3); cursor: pointer; font-size: 13px; padding: 2px 5px; border-radius: 4px; flex-shrink: 0; }
.pomo-btn:hover { color: var(--accent); background: var(--accent-soft); }
.rec-badge.focus { background: rgba(139,92,246,0.14); color: #8b5cf6; }

/* ========== v97-1：账号管理表格自适应 ========== */
.admin-table-wrap { overflow-x: auto; }
.admin-table {
  width: 100%; min-width: 1150px; border-collapse: collapse;
  font-size: 13px; table-layout: fixed;
}
.admin-table th, .admin-table td { padding: 10px 8px; vertical-align: top; overflow: hidden; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 4px; }
.admin-actions .btn { margin-left: 0 !important; }
.mod-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.mod-chip {
  display: inline-block; font-size: 11px; line-height: 1.5; padding: 1px 7px;
  border-radius: 9px; background: var(--bg-2, rgba(127,127,127,.12));
  border: 1px solid var(--border); color: var(--text-2, inherit); white-space: nowrap;
}
.mod-chip-all { background: rgba(79,140,255,.12); border-color: transparent; color: var(--primary, #4f8cff); }

/* ========== v97-3：超宽屏（2K/带鱼屏）仪表盘密度微调 ========== */
@media (min-width: 2000px) {
  .dashboard-grid { gap: 20px; }
  .stat-card { min-height: 120px; }
  .dashboard-hero { padding: 0 32px; }
  .dash-fixed-list { font-size: 13.5px; }
}

/* ========== v97-4：日程/习惯/项目/客户/论坛 分辨率自适应 ========== */
/* 习惯页：宽屏多列（添加卡与汇总卡通栏，习惯卡进网格） */
.habits-page { display: grid; grid-template-columns: 1fr; }
.habits-page > .card { grid-column: 1 / -1; }
@media (min-width: 1400px) {
  .habits-page { grid-template-columns: repeat(2, 1fr); gap: 0 16px; }
  .habits-page > .card.habit-card-v38 { grid-column: auto; }
}
@media (min-width: 2200px) {
  .habits-page { grid-template-columns: repeat(3, 1fr); }
}
/* 项目页：超宽屏项目卡双列 */
.projects-list { display: grid; grid-template-columns: 1fr; }
@media (min-width: 1800px) {
  .projects-list { grid-template-columns: repeat(2, 1fr); gap: 0 20px; }
}
/* 客户页：超宽屏客户卡双列 */
.customer-grid { display: grid; grid-template-columns: 1fr; }
@media (min-width: 1800px) {
  .customer-grid { grid-template-columns: repeat(2, 1fr); gap: 0 16px; }
}
/* 论坛：宽屏帖子卡双列 */
.forum-grid { display: grid; grid-template-columns: 1fr; }
@media (min-width: 1600px) {
  .forum-grid { grid-template-columns: repeat(2, 1fr); gap: 0 12px; }
}
/* 超宽屏密度微调 */
@media (min-width: 2000px) {
  .cal-card { width: 420px; }
  .cal-day { height: 56px; }
  .sch-layout { gap: 20px; }
}

/* ========== v97-5：书签页 / 习惯拖拽 / Toast 动作按钮 ========== */
.bm-icon {
  width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(79,140,255,.18), rgba(79,140,255,.06));
  color: var(--accent); font-weight: 700; font-size: 15px;
}
.bookmark-card { transition: transform .15s, border-color .15s; }
.bookmark-card:hover { transform: translateY(-2px); border-color: var(--accent); }
.habit-drag-over { outline: 2px dashed var(--accent); outline-offset: 2px; }
.toast-action {
  margin-left: 12px; padding: 2px 10px; border-radius: 6px; border: 1px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.12); color: inherit; font-size: 12px; cursor: pointer; flex-shrink: 0;
}
.toast-action:hover { background: rgba(255,255,255,.22); }
#toast { display: flex; align-items: center; justify-content: center; gap: 4px; }
/* ========== v100：项目模块重设计（方便管理 · 高效 · 共享） ========== */
/* 顶部全局统计条 */
.proj-stats-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 12px 0 12px;
}
.proj-stat-cell {
  background: var(--bg-1, var(--bg-2)); border: 1px solid var(--border); border-radius: 12px;
  padding: 10px 14px; display: flex; align-items: center; gap: 10px; cursor: pointer;
  transition: all 0.15s;
}
.proj-stat-cell:hover { border-color: var(--accent); transform: translateY(-1px); }
.proj-stat-cell.active { border-color: var(--accent); background: var(--accent-soft); }
.proj-stat-icon {
  width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center;
  justify-content: center; font-size: 16px; flex-shrink: 0;
}
.proj-stat-num { font-size: 20px; font-weight: 700; line-height: 1.1; }
.proj-stat-label { font-size: 11px; color: var(--text-3); }

/* 视图筛选 chips */
.proj-view-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.proj-view-chip {
  padding: 5px 14px; border-radius: 16px; border: 1px solid var(--border);
  background: transparent; color: var(--text-2); font-size: 12px; cursor: pointer;
  transition: all 0.15s;
}
.proj-view-chip:hover { border-color: var(--accent); color: var(--accent); }
.proj-view-chip.active { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }

/* 项目卡片头部：操作收敛到 ⋯ 菜单 */
.proj-more-wrap { position: relative; }
.proj-more-btn {
  width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--bg-1, var(--bg-2)); color: var(--text-2); font-size: 15px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.proj-more-btn:hover { border-color: var(--accent); color: var(--accent); }
.proj-more-menu {
  position: absolute; right: 0; top: 36px; z-index: 60; min-width: 168px;
  background: var(--bg-1, var(--bg-2)); border: 1px solid var(--border); border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.14); padding: 5px; display: none;
}
.proj-more-menu.show { display: block; }
.proj-more-item {
  display: flex; align-items: center; gap: 8px; width: 100%; text-align: left;
  padding: 8px 10px; border: none; background: none; border-radius: 7px;
  color: var(--text-1); font-size: 13px; cursor: pointer; transition: background 0.12s;
}
.proj-more-item:hover { background: var(--bg-2); }
.proj-more-item.danger { color: var(--accent-4, #ef4444); }
.proj-more-item.danger:hover { background: rgba(239,68,68,0.08); }

/* 折叠态三格统计 */
.proj-mini3 { display: flex; gap: 4px; font-size: 11px; flex-shrink: 0; }
.proj-mini3 b { font-weight: 700; }
.proj-mini3 .m3 { padding: 2px 8px; border-radius: 8px; background: var(--bg-2); border: 1px solid var(--border); }
.proj-collapsed .proj-mini3 { display: flex; }
.proj-mini3 { display: none; }

/* 详情区 Tab */
.proj-detail-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.proj-detail-tab {
  padding: 5px 12px; border-radius: 14px; border: 1px solid var(--border);
  background: var(--bg-1, var(--bg-2)); color: var(--text-2); font-size: 12px;
  cursor: pointer; transition: all 0.15s; display: inline-flex; align-items: center; gap: 4px;
}
.proj-detail-tab:hover { border-color: var(--accent); color: var(--accent); }
.proj-detail-tab.active { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.proj-detail-tab .cnt {
  font-size: 10px; padding: 0 6px; border-radius: 8px; background: rgba(127,127,127,0.18); line-height: 14px;
}
.proj-detail-tab.active .cnt { background: rgba(255,255,255,0.25); }
.proj-detail-tab.danger .cnt { background: rgba(239,68,68,0.16); color: #ef4444; }
.proj-detail-tab.active.danger .cnt { background: rgba(255,255,255,0.3); color: #fff; }

/* 看板列头快捷添加 */
.kanban-col-header .kb-add {
  margin-left: auto; width: 22px; height: 22px; border-radius: 6px; border: none;
  background: var(--bg-3); color: var(--text-2); font-size: 14px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: all 0.15s;
}
.kanban-col-header .kb-add:hover { background: var(--accent); color: #fff; }

/* 共享徽标 */
.proj-shared-badge {
  font-size: 11px; padding: 2px 8px; border-radius: 10px; background: var(--accent-soft);
  color: var(--accent); font-weight: 600; flex-shrink: 0;
}

/* ========== v97-6：全局悬浮快速添加按钮 ========== */
.global-fab {
  position: fixed; right: 28px; bottom: 28px; z-index: 900;
  width: 52px; height: 52px; border-radius: 50%; border: none; cursor: pointer;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; font-size: 26px; font-weight: 700; line-height: 1;
  box-shadow: 0 6px 18px rgba(79,140,255,.4);
  transition: transform .15s, box-shadow .15s;
}
.global-fab:hover { transform: scale(1.08); box-shadow: 0 8px 22px rgba(79,140,255,.5); }
@media (max-width: 768px) {
  .global-fab { right: 18px; bottom: 78px; width: 48px; height: 48px; font-size: 24px; }
}

/* ========== v97-8：无障碍与新手引导 ========== */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
.onboard-card { border-style: dashed; border-color: var(--accent); }
