/* FlowDesk · 融合版视觉系统
   灵感来源：Yottask 项目管理平台体验设计 + 12 组 PC 端项目管理界面
   设计语言：云白画布 / 深墨侧栏 / 电光蓝强调 / 胶囊组件 / 大标题 / 柔和层次
*/
:root {
  --bg: #f4f6fb;
  --sidebar: #171a24;
  --sidebar-2: #202431;
  --surface: #ffffff;
  --surface-2: #f2f5fb;
  --surface-3: #e7ecf5;
  --card: #ffffff;
  --border: #e1e7f1;
  --border-soft: #edf1f7;
  --text: #1a1f2b;
  --text-2: #596276;
  --text-3: #8d97a9;
  --accent: #3086ff;
  --accent-2: #7c5cff;
  --accent-soft: rgba(48, 134, 255, .11);
  --bean: #ff6353;
  --green: #14c07d;
  --amber: #f5a524;
  --todo: #8892a4;
  --doing: #3086ff;
  --review: #f5a524;
  --done: #14c07d;
  --high: #ff5a5f;
  --medium: #f5a524;
  --low: #8892a4;
  --radius: 16px;
  --shadow-sm: 0 2px 10px rgba(33, 48, 88, .05);
  --shadow: 0 14px 40px rgba(33, 48, 88, .09);
  --chart-grid: #e4e9f3;
  --chart-axis: #4f5b70;
  --mask: rgba(17, 22, 36, .42);
  --hero-bg: linear-gradient(115deg, #ffffff 0%, #f3f8ff 55%, #eef1ff 100%);
}

body[data-theme="dark"] {
  --bg: #0e1015;
  --sidebar: #13161d;
  --sidebar-2: #1b202a;
  --surface: #191d26;
  --surface-2: #202530;
  --surface-3: #282e3b;
  --card: #191d26;
  --border: #2b3140;
  --border-soft: #232936;
  --text: #e8ebf2;
  --text-2: #a6afc1;
  --text-3: #7e879b;
  --accent: #6c8cff;
  --accent-2: #8b7cf6;
  --accent-soft: rgba(108, 140, 255, .16);
  --bean: #ff6353;
  --green: #3dbe8b;
  --amber: #e5a23d;
  --todo: #8b93a3;
  --doing: #5b8def;
  --review: #e5a23d;
  --done: #3dbe8b;
  --high: #e5484d;
  --medium: #e5a23d;
  --low: #8b93a3;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, .2);
  --shadow: 0 18px 50px rgba(0, 0, 0, .38);
  --chart-grid: #2b3140;
  --chart-axis: #7e879b;
  --mask: rgba(5, 7, 11, .72);
  --hero-bg: linear-gradient(115deg, #191d26 0%, #1b2030 60%, #1e1d33 100%);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font: 14px/1.6 system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
svg.icon { width: 18px; height: 18px; flex: none; }
.hidden { display: none !important; }
.server-only { display: none !important; }
.muted { color: var(--text-3); font-size: 13px; }
::selection { background: var(--accent-soft); }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 6px; }
::-webkit-scrollbar-track { background: transparent; }

.app { display: flex; min-height: 100vh; }

/* ---------- 侧栏：图标导轨 + 分组面板 ---------- */
.sidebar { position: sticky; top: 0; height: 100vh; flex: none; display: flex; z-index: 30; }

/* 图标导轨：高频视图一键切换 */
.side-rail {
  width: 64px; flex: none; display: flex; flex-direction: column; align-items: center;
  gap: 12px; padding: 18px 0 16px;
  background: linear-gradient(180deg, #11141d, #1a1e2a);
  border-right: 1px solid rgba(255, 255, 255, .055);
}
.rail-brand {
  width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff;
  font-size: 18px; font-weight: 750; box-shadow: 0 8px 20px rgba(48, 134, 255, .3);
}
.rail-line { width: 24px; height: 1px; background: rgba(255, 255, 255, .12); }
.rail-nav, .rail-bottom { display: flex; flex-direction: column; align-items: center; gap: 7px; }
.rail-bottom { margin-top: auto; }
.rail-btn {
  position: relative; width: 40px; height: 40px; border: 0; border-radius: 13px;
  background: transparent; color: #8a94a8; display: grid; place-items: center;
  transition: background .16s, color .16s, transform .16s;
}
.rail-btn .icon { width: 19px; height: 19px; }
.rail-btn:hover { background: rgba(255, 255, 255, .08); color: #fff; transform: translateY(-1px); }
.rail-btn.active { background: rgba(48, 134, 255, .18); color: #fff; }
.rail-btn.active:before {
  content: ""; position: absolute; left: -12px; top: 11px; width: 3px; height: 18px;
  border-radius: 0 3px 3px 0; background: var(--accent); box-shadow: 0 0 12px var(--accent);
}
.rail-btn.active:after { content: ""; position: absolute; inset: 0; border-radius: 13px; border: 1px solid rgba(96, 160, 255, .26); }
.rail-tip {
  position: absolute; left: 52px; top: 50%; transform: translateY(-50%) translateX(-4px);
  background: #0d1017; color: #e9edf6; border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 8px; padding: 5px 9px; font-size: 11.5px; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s;
  z-index: 60; box-shadow: 0 8px 20px rgba(0, 0, 0, .3);
}
.rail-btn:hover .rail-tip { opacity: 1; transform: translateY(-50%) translateX(0); }

/* 分组面板 */
.side-panel {
  width: 224px; flex: none; min-height: 0; display: flex; flex-direction: column;
  padding: 18px 12px 14px; color: #e9edf6;
  background: linear-gradient(180deg, var(--sidebar) 0%, var(--sidebar-2) 100%);
  border-right: 1px solid rgba(255, 255, 255, .05);
}
.brand { display: flex; align-items: center; gap: 10px; padding: 0 4px 16px; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff;
  font-size: 17px; font-weight: 750; box-shadow: 0 6px 16px rgba(48, 134, 255, .25);
}
.side-panel .brand-mark { display: none; }
.side-panel .brand { padding: 0 4px 16px 12px; border-left: 2px solid var(--accent); }
.brand-name { font-size: 14.5px; font-weight: 700; letter-spacing: .2px; }
.brand-sub { font-size: 10.5px; color: #8791a5; }
.nav { display: flex; flex-direction: column; gap: 2px; flex: 0 1 auto; min-height: 0; overflow-y: auto; scrollbar-width: thin; }
.nav-group { display: flex; align-items: center; gap: 8px; padding: 13px 10px 5px; }
.nav-group-label { font-size: 10px; font-weight: 700; letter-spacing: 1.4px; color: #6e7890; white-space: nowrap; }
.nav-group:after { content: ""; height: 1px; flex: 1; background: linear-gradient(90deg, rgba(255,255,255,.12), transparent); }
.nav-item {
  position: relative; display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 8px 10px; background: none; border: 0; border-radius: 10px;
  color: #a3adbf; text-align: left; font-size: 12.8px; font-weight: 500;
  transition: background .16s, color .16s;
}
.nav-item .icon { width: 17px; height: 17px; }
.nav-item:hover:not(.disabled) { background: rgba(255, 255, 255, .07); color: #fff; }
.nav-item.active { background: rgba(48, 134, 255, .17); color: #fff; font-weight: 650; }
.nav-item.active:before { content: ""; position: absolute; left: 0; top: 9px; width: 3px; height: 19px; border-radius: 0 3px 3px 0; background: var(--accent); }
.nav-item.active .icon { color: #7cb2ff; }
.nav-item.disabled { opacity: .45; cursor: default; }
.soon { margin-left: auto; font-size: 10px; color: #8f99ad; border: 1px solid rgba(255,255,255,.15); border-radius: 6px; padding: 0 5px; }
.side-section {
  margin-top: 14px; min-height: 0; flex: 1 1 auto; display: flex; flex-direction: column;
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .065);
  border-radius: 14px; padding: 10px 8px;
}
.side-head { display: flex; align-items: center; justify-content: space-between; padding: 0 6px 8px; color: #8791a5; font-size: 10.5px; letter-spacing: .9px; text-transform: uppercase; }
.icon-btn { background: none; border: 0; color: var(--text-3); width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; }
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn .icon { width: 15px; height: 15px; }
.side-section .icon-btn { color: #8791a5; }
.side-section .icon-btn:hover { background: rgba(255,255,255,.1); color: #fff; }
.side-projects { display: flex; flex-direction: column; gap: 3px; overflow-y: auto; scrollbar-width: thin; }
.side-project {
  position: relative; display: flex; align-items: center; gap: 9px; width: 100%; padding: 8px 9px;
  background: none; border: 0; border-radius: 9px; color: #a3adbf; text-align: left; font-size: 12.5px;
}
.side-project:hover { background: rgba(255,255,255,.08); color: #fff; }
.side-project.current { color: #fff; background: rgba(48,134,255,.14); font-weight: 600; }
.side-project.current:before { content: ""; position: absolute; left: 0; top: 9px; width: 3px; height: 18px; border-radius: 0 3px 3px 0; background: var(--accent); }
.side-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.side-project span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-footer { margin-top: 12px; }
.me-name { font-size: 12px; color: #eef1f7; font-weight: 600; }
.me-role { font-size: 11px; color: #8791a5; }

/* ---------- 顶栏 ---------- */
.main { flex: 1; min-width: 0; }
.topbar {
  height: 68px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 34px; border-bottom: 1px solid var(--border-soft);
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  position: sticky; top: 0; z-index: 20; backdrop-filter: blur(16px);
}
.crumb { color: var(--text-3); font-size: 12px; letter-spacing: .2px; }
.crumb::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-right: 9px; vertical-align: middle; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.search-wrap { display: flex; align-items: center; gap: 8px; background: var(--surface-2); border: 1px solid transparent; border-radius: 999px; padding: 0 14px; height: 38px; }
.search-wrap:focus-within { border-color: var(--accent); background: var(--surface); }
.search-wrap .icon { width: 15px; height: 15px; color: var(--text-3); }
.search-wrap input { background: none; border: 0; outline: 0; width: 180px; font-size: 13px; }
.search-wrap input::placeholder { color: var(--text-3); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-size: 13px; white-space: nowrap; transition: transform .15s, box-shadow .15s, background .15s; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn .icon { width: 15px; height: 15px; }
.btn-primary { background: linear-gradient(135deg, var(--accent), #2575f0); border-color: transparent; color: #fff; font-weight: 600; box-shadow: 0 6px 16px rgba(48, 134, 255, .27); }
.btn-ghost { background: transparent; color: var(--text-2); }
.btn-danger { background: transparent; border-color: rgba(255, 90, 95, .35); color: var(--high); }
.btn-danger:hover { background: rgba(255, 90, 95, .1); }

/* ---------- 视图骨架 ---------- */
.view { padding: 28px 34px 60px; max-width: 1560px; margin: 0 auto; }
.view-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.view-head h1 { font-size: 27px; font-weight: 720; letter-spacing: -.8px; }
.sub { color: var(--text-3); font-size: 13px; margin-top: 5px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 24px; }
.stat { background: var(--surface); border: 1px solid var(--border-soft); border-radius: 18px; padding: 17px 20px; position: relative; overflow: hidden; box-shadow: var(--shadow-sm); }
.stat::after { content: ''; position: absolute; width: 76px; height: 76px; border-radius: 50%; right: -22px; top: -26px; background: var(--accent-soft); }
.stat:nth-child(2)::after { background: rgba(20, 192, 125, .11); }
.stat:nth-child(3)::after { background: rgba(124, 92, 255, .11); }
.stat:nth-child(4)::after { background: rgba(255, 99, 83, .11); }
.stat-label { color: var(--text-3); font-size: 12px; }
.stat-value { font-size: 28px; font-weight: 700; margin-top: 3px; letter-spacing: -.8px; position: relative; }
.stat-note { font-size: 11px; color: var(--text-3); margin-top: 2px; position: relative; }
.toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.tabs { display: flex; gap: 3px; background: var(--surface-2); border: 1px solid var(--border-soft); border-radius: 999px; padding: 4px; }
.tab { background: none; border: 0; border-radius: 999px; padding: 6px 14px; color: var(--text-2); font-size: 12px; }
.tab:hover { color: var(--text); }
.tab.active { background: var(--card); color: var(--accent); box-shadow: var(--shadow-sm); font-weight: 600; }

/* ---------- 工作台 Hero ---------- */
.hero {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px;
  background: var(--hero-bg); border: 1px solid var(--border); border-radius: 24px;
  padding: 30px 32px; margin-bottom: 24px; box-shadow: var(--shadow); overflow: hidden;
}
.hero::before { content: ''; position: absolute; width: 320px; height: 320px; border-radius: 50%; right: 110px; top: -190px; background: radial-gradient(circle, rgba(48,134,255,.16), transparent 70%); pointer-events: none; }
.hero-copy { position: relative; z-index: 1; }
.hero-eyebrow { display: flex; align-items: center; gap: 9px; color: var(--accent); font-size: 12px; font-weight: 650; letter-spacing: .4px; }
.hero-eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.hero h1 { font-size: 32px; line-height: 1.22; font-weight: 750; letter-spacing: -1.1px; margin-top: 11px; }
.hero-sub { color: var(--text-2); font-size: 13.5px; margin-top: 8px; }
.hero-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 19px; }
.hero-chip { display: inline-flex; align-items: center; gap: 7px; background: var(--card); border: 1px solid var(--border); border-radius: 999px; padding: 7px 13px; font-size: 12px; color: var(--text-2); box-shadow: var(--shadow-sm); }
.hero-chip b { color: var(--text); font-size: 13px; font-weight: 700; }
.hero-chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--chip, var(--accent)); }
.hero-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-content: center; position: relative; z-index: 1; }
.pulse-card { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 15px 16px; box-shadow: var(--shadow-sm); }
.pulse-label { display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--text-3); }
.pulse-icon { width: 26px; height: 26px; border-radius: 9px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.pulse-icon .icon { width: 14px; height: 14px; }
.pulse-value { font-size: 24px; font-weight: 720; letter-spacing: -.7px; margin-top: 9px; }
.pulse-foot { font-size: 11px; color: var(--text-3); margin-top: 1px; }
.spark { display: flex; align-items: flex-end; gap: 3px; height: 26px; margin-top: 7px; }
.spark i { flex: 1; background: var(--accent); opacity: .22; border-radius: 3px 3px 0 0; }
.spark i.on { opacity: .9; }
.dotmatrix { display: grid; grid-template-columns: repeat(7, 5px); gap: 3px; margin-top: 10px; }
.dotmatrix i { width: 5px; height: 5px; border-radius: 50%; background: var(--bean); opacity: .18; }
.dotmatrix i.on { opacity: 1; }
.section-title { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 14px; }
.section-title h2 { font-size: 16px; font-weight: 680; }
.section-title span { font-size: 12px; color: var(--text-3); }
.focus-strip { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 24px; box-shadow: var(--shadow-sm); }
.focus-head { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 650; color: var(--text-2); margin-bottom: 10px; }
.focus-head i { width: 18px; height: 18px; border-radius: 6px; background: rgba(255, 99, 83, .12); color: var(--bean); display: grid; place-items: center; font-style: normal; font-size: 11px; }
.focus-list { display: flex; gap: 8px; flex-wrap: wrap; }
.focus-pill { display: inline-flex; align-items: center; gap: 8px; border: 1px solid transparent; border-radius: 999px; padding: 7px 13px; font-size: 12px; cursor: pointer; color: var(--text); background: color-mix(in srgb, var(--pill) 9%, var(--card)); }
.focus-pill:hover { border-color: var(--pill); transform: translateY(-1px); }
.focus-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--pill); }
.focus-pill b { font-weight: 600; }
.focus-pill small { color: var(--text-3); }

/* ---------- 项目卡片 ---------- */
.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 16px; }
.project-card {
  background: var(--surface); border: 1px solid var(--border-soft); border-radius: 20px;
  padding: 20px; cursor: pointer; transition: transform .18s, box-shadow .18s, border-color .18s;
  box-shadow: var(--shadow-sm);
}
.project-card:hover { border-color: color-mix(in srgb, var(--pc) 40%, var(--border)); transform: translateY(-3px); box-shadow: var(--shadow); }
.pc-top { display: flex; align-items: flex-start; gap: 11px; }
.project-icon { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; flex: none; background: color-mix(in srgb, var(--pc) 14%, var(--card)); color: var(--pc); }
.project-icon .icon { width: 20px; height: 20px; }
.pc-title { min-width: 0; flex: 1; }
.pc-title h3 { font-size: 15px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.status-tag { display: inline-block; font-size: 11px; padding: 2px 10px; border-radius: 999px; margin-top: 4px; font-weight: 600; }
.s-active { background: rgba(48, 134, 255, .12); color: var(--accent); }
.s-planning { background: rgba(245, 165, 36, .14); color: var(--amber); }
.s-done { background: rgba(20, 192, 125, .13); color: var(--green); }
.pc-actions { display: flex; gap: 2px; opacity: 0; transition: opacity .15s; }
.project-card:hover .pc-actions { opacity: 1; }
.pc-actions .icon-btn { width: 27px; height: 27px; }
.pc-actions .icon-btn:hover { background: var(--surface-2); }
.pc-desc { color: var(--text-2); font-size: 12.5px; line-height: 1.65; margin: 15px 0 18px; min-height: 42px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.progress-label { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-3); margin-bottom: 8px; }
.progress-track { height: 7px; background: var(--surface-3); border-radius: 99px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 99px; transition: width .3s; }
.pc-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border-soft); }
.meta { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--text-3); white-space: nowrap; }
.meta .icon { width: 13px; height: 13px; }
.meta.overdue, .meta.risk { color: var(--high); }
.avatars { display: flex; padding-left: 6px; }
.avatar { width: 25px; height: 25px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; color: #fff; border: 2px solid var(--card); margin-left: -6px; flex: none; }
.avatar-me { width: 32px; height: 32px; margin: 0; border-color: var(--sidebar); background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.empty { grid-column: 1 / -1; text-align: center; padding: 60px 20px; color: var(--text-3); border: 1px dashed var(--border); border-radius: 18px; font-size: 13px; background: var(--surface); }

/* ---------- 看板 ---------- */
.board-head { align-items: center; }
.board-actions { display: flex; gap: 10px; }
.board-meta { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--border-soft); border-radius: 16px; padding: 14px 18px; margin-bottom: 20px; box-shadow: var(--shadow-sm); }
.board-meta .meta { font-size: 12px; }
.board-meta .progress-track { width: 120px; }
.board-meta .progress-wrap { display: flex; align-items: center; gap: 10px; }
.board-meta .progress-track { flex: 1; }
.board { display: grid; grid-template-columns: repeat(4, minmax(240px, 1fr)); gap: 14px; align-items: start; overflow-x: auto; padding-bottom: 10px; }
.board-col { background: var(--surface-2); border: 1px solid transparent; border-radius: 18px; padding: 12px; min-height: 260px; transition: border-color .15s, background .15s; }
.board-col.over { border-color: var(--accent); background: var(--accent-soft); }
.col-head { display: flex; align-items: center; gap: 8px; padding: 3px 3px 13px; }
.col-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--col); }
.col-name { font-size: 13px; font-weight: 650; }
.col-count { font-size: 11px; color: var(--text-2); background: var(--card); padding: 1px 8px; border-radius: 999px; }
.col-add { margin-left: auto; background: none; border: 0; color: var(--text-3); width: 24px; height: 24px; display: grid; place-items: center; border-radius: 7px; }
.col-add:hover { background: var(--surface-3); color: var(--text); }
.col-add .icon { width: 15px; height: 15px; }
.col-list { display: flex; flex-direction: column; gap: 9px; }
.task-card {
  background: var(--card); border: 1px solid var(--border-soft); border-left: 3px solid var(--prio);
  border-radius: 14px; padding: 12px; cursor: pointer; transition: box-shadow .15s, transform .15s;
  box-shadow: var(--shadow-sm);
}
.task-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.task-card.dragging { opacity: .45; }
.tc-top { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.prio { font-size: 10px; padding: 2px 9px; border-radius: 999px; background: color-mix(in srgb, var(--prio) 14%, var(--card)); color: var(--prio); font-weight: 600; }
.milestone { font-size: 10px; color: var(--text-3); background: var(--surface-2); padding: 2px 8px; border-radius: 999px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 120px; }
.tc-next { margin-left: auto; background: none; border: 0; color: var(--text-3); width: 22px; height: 22px; display: grid; place-items: center; border-radius: 6px; opacity: 0; }
.task-card:hover .tc-next { opacity: 1; }
.tc-next:hover { background: var(--surface-2); color: var(--accent); }
.tc-next .icon { width: 14px; height: 14px; }
.tc-title { font-size: 13px; font-weight: 600; line-height: 1.45; }
.tc-desc { font-size: 11.5px; color: var(--text-3); margin-top: 5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.tag { font-size: 10px; color: var(--text-2); background: var(--surface-2); border-radius: 999px; padding: 2px 8px; }
.tc-foot { display: flex; align-items: center; gap: 9px; margin-top: 11px; padding-top: 10px; border-top: 1px solid var(--border-soft); }
.tc-foot .avatar { width: 21px; height: 21px; font-size: 10px; border-color: var(--card); margin: 0; }
.tc-foot .meta { font-size: 10.5px; }

/* ---------- 弹窗 ---------- */
.modal-mask { position: fixed; inset: 0; z-index: 100; background: var(--mask); display: flex; align-items: center; justify-content: center; padding: 20px; backdrop-filter: blur(4px); }
.modal { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; width: 100%; max-width: 540px; max-height: 86vh; display: flex; flex-direction: column; box-shadow: 0 30px 90px rgba(15, 22, 45, .25); }
.modal.wide { max-width: 640px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 19px 24px; border-bottom: 1px solid var(--border-soft); }
.modal-head h2 { font-size: 17px; font-weight: 700; }
.modal-body { padding: 20px 24px; overflow-y: auto; }
.modal-foot { display: flex; justify-content: flex-end; gap: 9px; padding: 15px 24px; border-top: 1px solid var(--border-soft); }
.field { margin-bottom: 15px; }
.field label { display: block; font-size: 12px; color: var(--text-2); margin-bottom: 6px; font-weight: 500; }
.field input, .field textarea, .field select { width: 100%; background: var(--surface-2); border: 1px solid var(--border-soft); border-radius: 11px; padding: 10px 12px; outline: 0; font-size: 13px; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 3px var(--accent-soft); }
.field textarea { resize: vertical; min-height: 70px; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-3) 50%), linear-gradient(135deg, var(--text-3) 50%, transparent 50%); background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.color-picker { display: flex; gap: 8px; }
.color-dot { width: 24px; height: 24px; border-radius: 50%; border: 2px solid transparent; background: var(--dot); }
.color-dot.selected { border-color: var(--text); box-shadow: 0 0 0 2px var(--surface) inset; }
.detail-status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-2); background: var(--surface-2); border-radius: 999px; padding: 4px 10px; margin-top: 8px; }
.detail-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--col); }
.detail-desc { color: var(--text-2); font-size: 13px; line-height: 1.7; margin: 16px 0; white-space: pre-wrap; }
.detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; background: var(--surface-2); border-radius: 14px; padding: 15px; margin-bottom: 20px; }
.detail-grid div { font-size: 12px; }
.detail-grid span { color: var(--text-3); display: block; font-size: 11px; margin-bottom: 3px; }
.detail-section { margin-top: 20px; }
.detail-section h3 { font-size: 13px; font-weight: 650; margin-bottom: 11px; display: flex; align-items: center; gap: 8px; }
.detail-section h3 span { color: var(--text-3); font-weight: 400; font-size: 11px; }
.subtask { display: flex; align-items: center; gap: 9px; padding: 7px 0; font-size: 12.5px; }
.subtask input[type=checkbox] { accent-color: var(--accent); width: 15px; height: 15px; }
.subtask.done span { text-decoration: line-through; color: var(--text-3); }
.subtask button { margin-left: auto; background: none; border: 0; color: var(--text-3); }
.subtask button:hover { color: var(--high); }
.inline-add { display: flex; gap: 8px; margin-top: 8px; }
.inline-add input { flex: 1; background: var(--surface-2); border: 1px solid var(--border-soft); border-radius: 11px; padding: 8px 11px; outline: 0; font-size: 12px; }
.inline-add input:focus { border-color: var(--accent); }
.comment { display: flex; gap: 9px; padding: 10px 0; border-bottom: 1px solid var(--border-soft); }
.comment .avatar { margin: 0; width: 27px; height: 27px; font-size: 11px; }
.comment-body { flex: 1; min-width: 0; }
.comment-meta { display: flex; gap: 8px; font-size: 11px; color: var(--text-3); }
.comment-body p { font-size: 12.5px; margin-top: 4px; color: var(--text-2); white-space: pre-wrap; }
.no-data { color: var(--text-3); font-size: 12px; padding: 8px 0; }
.modal-foot .spacer { margin-right: auto; }
.toast { position: fixed; right: 26px; bottom: 26px; z-index: 200; background: var(--surface); border: 1px solid var(--border); color: var(--text); padding: 11px 16px; border-radius: 12px; font-size: 13px; box-shadow: var(--shadow); }
.toast.hidden { display: none; }

/* ---------- 甘特图 ---------- */
.project-select { height: 38px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 0 14px; font-size: 13px; color: var(--text); outline: 0; max-width: 190px; }
.project-select:focus { border-color: var(--accent); }
.field select[multiple] { min-height: 82px; padding: 5px; }
.field select[multiple] option { padding: 3px 5px; border-radius: 6px; }
.gantt-legend { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; font-size: 12px; color: var(--text-3); }
.gantt-legend-title { color: var(--text-2); }
.legend-item { display: inline-flex; align-items: center; gap: 6px; }
.legend-item i { width: 9px; height: 9px; border-radius: 50%; }
.legend-note { margin-left: auto; }
.gantt-range { font-size: 12px; color: var(--text-3); margin-bottom: 10px; }
.gantt { display: flex; border: 1px solid var(--border-soft); border-radius: 18px; background: var(--surface); overflow: hidden; box-shadow: var(--shadow-sm); }
.gantt-side { width: 220px; flex: none; border-right: 1px solid var(--border-soft); }
.gantt-side-head { height: 38px; display: flex; align-items: center; justify-content: space-between; padding: 0 12px; border-bottom: 1px solid var(--border-soft); font-size: 12px; color: var(--text-3); }
.gantt-side-head span { color: var(--text-2); }
.gantt-side-row { height: 44px; display: flex; align-items: center; gap: 8px; padding: 0 12px; border-bottom: 1px solid var(--border-soft); cursor: pointer; font-size: 12px; }
.gantt-side-row:hover { background: var(--surface-2); }
.gantt-row-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.gantt-row-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.gantt-row-owner { width: 21px; height: 21px; border-radius: 50%; background: var(--surface-2); color: var(--text-2); display: grid; place-items: center; font-size: 10px; flex: none; }
.gantt-scroll { flex: 1; min-width: 0; overflow-x: auto; }
.gantt-inner { position: relative; }
.gantt-head { display: flex; height: 38px; border-bottom: 1px solid var(--border-soft); }
.gantt-day { width: 30px; flex: none; text-align: center; line-height: 38px; font-size: 10px; color: var(--text-2); }
.gantt-day.weekend { color: var(--text-3); background: var(--surface-2); }
.gantt-day.today { color: var(--accent); font-weight: 700; background: var(--accent-soft); }
.gantt-body { position: relative; background-image: repeating-linear-gradient(to right, transparent 0 29px, var(--border-soft) 29px 30px); }
.gantt-row { position: absolute; left: 0; right: 0; height: 44px; border-bottom: 1px solid var(--border-soft); }
.gantt-bar { position: absolute; top: 9px; height: 26px; border-radius: 8px; border: 1px solid var(--bar); background: color-mix(in srgb, var(--bar) 24%, var(--surface)); display: flex; align-items: center; overflow: hidden; cursor: pointer; }
.gantt-bar:hover { filter: brightness(1.05); box-shadow: var(--shadow-sm); }
.gantt-bar-fill { position: absolute; top: 0; bottom: 0; left: 0; background: var(--bar); opacity: .55; }
.gantt-bar span { position: relative; padding: 0 8px; font-size: 11px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gantt-today { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--accent); opacity: .85; pointer-events: none; z-index: 3; }
.gantt-links { position: absolute; top: 0; left: 0; pointer-events: none; z-index: 1; }
.gantt-bar.critical { border-color: var(--high); box-shadow: 0 0 0 1px rgba(255, 90, 95, .5); }
.gantt-bar.critical .gantt-bar-fill { background: var(--high); }

/* ---------- 风险 / 图表 / 扩展模块 ---------- */
.risk-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; }
.risk-card { background: var(--surface); border: 1px solid var(--border-soft); border-left: 3px solid var(--lv); border-radius: 16px; padding: 17px; box-shadow: var(--shadow-sm); }
.risk-top { display: flex; align-items: center; gap: 9px; }
.risk-level { font-size: 11px; padding: 2px 9px; border-radius: 999px; background: color-mix(in srgb, var(--lv) 14%, var(--card)); color: var(--lv); font-weight: 600; }
.risk-status { font-size: 11px; color: var(--text-3); }
.risk-actions { margin-left: auto; display: flex; gap: 2px; }
.risk-card h3 { font-size: 14px; font-weight: 650; margin: 11px 0 6px; }
.risk-card p { font-size: 12px; color: var(--text-2); line-height: 1.65; }
.risk-foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border-soft); }
.risk-foot .avatar { width: 20px; height: 20px; font-size: 10px; margin: 0; border-color: var(--card); }
.chart-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 16px; }
.chart-card { background: var(--surface); border: 1px solid var(--border-soft); border-radius: 20px; padding: 20px; box-shadow: var(--shadow-sm); }
.chart-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.chart-head h2 { font-size: 15px; font-weight: 680; }
.chart-note { font-size: 11px; color: var(--text-3); }
.chart-card svg { display: block; width: 100%; height: auto; }
.chart-legend { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 10px; font-size: 11px; color: var(--text-3); }
.chart-legend .line-ideal, .chart-legend .line-actual, .chart-legend .line-daily { display: inline-block; width: 16px; height: 0; border-top: 2px dashed var(--chart-axis); margin-right: 5px; vertical-align: middle; }
.chart-legend .line-actual { border-top: 2px solid var(--accent); }
.chart-legend .line-daily { border-top: 2px dashed var(--green); }
.chart-empty { text-align: center; padding: 60px 10px; color: var(--text-3); font-size: 12px; }

.role-switch {
  display: flex; align-items: center; gap: 9px; width: 100%; padding: 9px 10px;
  background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.065);
  border-radius: 14px; color: inherit; text-align: left;
  transition: background .16s, border-color .16s;
}
.role-switch:hover { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.14); }
.role-switch:hover .me-name { color: #fff; }
.role-switch .icon { width: 15px; height: 15px; color: #8791a5; margin-left: auto; }
.role-switch .me-text { min-width: 0; }
.role-badge { font-size: 11px; padding: 4px 10px; border-radius: 999px; background: rgba(245, 165, 36, .13); color: var(--amber); border: 1px solid rgba(245, 165, 36, .28); white-space: nowrap; }
.role-option { display: flex; align-items: flex-start; gap: 11px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 14px; margin-bottom: 10px; cursor: pointer; transition: border-color .15s, background .15s; }
.role-option:hover { background: var(--surface-2); }
.role-option.selected { border-color: var(--accent); background: var(--accent-soft); }
.role-option input { margin-top: 3px; accent-color: var(--accent); }
.role-option-body b { display: block; font-size: 13px; font-weight: 650; }
.role-option-body small { display: block; font-size: 11.5px; color: var(--text-3); margin-top: 3px; line-height: 1.5; }
.export-note { font-size: 11.5px; color: var(--text-3); line-height: 1.6; background: var(--surface-2); border-radius: 10px; padding: 11px 13px; }
.bell-btn { position: relative; width: 38px; height: 38px; border-radius: 999px; }
.notif-count { position: absolute; top: -3px; right: -3px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 9px; background: var(--bean); color: #fff; font-size: 10px; line-height: 16px; text-align: center; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }
.entity-card { background: var(--surface); border: 1px solid var(--border-soft); border-left: 3px solid var(--pc, var(--accent)); border-radius: 16px; padding: 18px; box-shadow: var(--shadow-sm); }
.entity-card h3 { font-size: 14px; font-weight: 650; }
.card-head { display: flex; align-items: flex-start; gap: 10px; }
.card-actions { margin-left: auto; display: flex; gap: 2px; }
.card-meta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; padding-top: 11px; border-top: 1px solid var(--border-soft); }
.badge { display: inline-block; font-size: 10.5px; padding: 2px 9px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); }
.badge.warn { background: rgba(245,165,36,.13); color: var(--amber); }
.badge.bad { background: rgba(255,90,95,.12); color: var(--high); }
.badge.good { background: rgba(20,192,125,.12); color: var(--green); }
.ms-criteria { margin: 13px 0 4px; display: flex; flex-direction: column; gap: 6px; }
.criterion { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-2); }
.criterion.done { color: var(--text-3); text-decoration: line-through; }
.criterion input { accent-color: var(--accent); width: 14px; height: 14px; }
.workload-wrap { overflow-x: auto; border: 1px solid var(--border-soft); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-sm); }
.wl-table { border-collapse: collapse; width: 100%; min-width: 720px; }
.wl-table th, .wl-table td { border-bottom: 1px solid var(--border-soft); border-right: 1px solid var(--border-soft); padding: 9px 10px; text-align: center; font-size: 12px; }
.wl-table th { color: var(--text-3); font-size: 11px; font-weight: 500; }
.wl-table td:first-child, .wl-table th:first-child { text-align: left; white-space: nowrap; }
.wl-cell { border-radius: 8px; min-width: 46px; display: inline-block; padding: 5px 0; width: 100%; }
.wl-over { outline: 1px solid rgba(255, 90, 95, .6); }
.issue-sev { font-size: 10.5px; padding: 2px 9px; border-radius: 999px; background: color-mix(in srgb, var(--lv) 14%, var(--card)); color: var(--lv); }
.timeline { display: flex; flex-direction: column; }
.timeline-item { display: flex; gap: 13px; padding: 11px 4px; border-bottom: 1px solid var(--border-soft); }
.tl-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); margin-top: 6px; flex: none; }
.tl-body { flex: 1; min-width: 0; font-size: 13px; }
.tl-body p { color: var(--text-2); font-size: 12px; margin-top: 3px; }
.tl-date { font-size: 11px; color: var(--text-3); white-space: nowrap; }
.matrix { display: grid; grid-template-columns: 80px repeat(3, 1fr); gap: 6px; max-width: 780px; }
.matrix-cell { min-height: 120px; background: var(--surface); border: 1px solid var(--border-soft); border-radius: 12px; padding: 9px; font-size: 11px; }
.matrix-cell.axis { display: grid; place-items: center; color: var(--text-3); background: transparent; font-size: 11px; }
.matrix-cell.hot { background: rgba(255, 90, 95, .07); border-color: rgba(255, 90, 95, .3); }
.matrix-risk { display: block; padding: 4px 7px; border-radius: 7px; background: var(--surface-2); margin-bottom: 5px; cursor: pointer; font-size: 11px; }
.setting-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--border-soft); border-radius: 14px; margin-bottom: 8px; }
.setting-row .grow { flex: 1; min-width: 0; }
.setting-row small { display: block; color: var(--text-3); font-size: 11px; margin-top: 3px; }
.timer-pill { font-size: 11px; padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.hours-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.accept-list { display: flex; flex-direction: column; gap: 6px; }
.health-score { font-size: 32px; font-weight: 720; }
.health-part { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--text-2); padding: 5px 0; border-bottom: 1px solid var(--border-soft); }
.command-list { display: flex; flex-direction: column; gap: 5px; max-height: 340px; overflow-y: auto; }
.command-item { text-align: left; padding: 10px 12px; border-radius: 10px; border: 1px solid transparent; background: var(--surface-2); color: var(--text); font-size: 13px; }
.command-item:hover, .command-item.active { border-color: var(--accent); background: var(--accent-soft); }
.command-item small { color: var(--text-3); margin-left: 8px; }
.cmd-hint { font-size: 11px; color: var(--text-3); margin-top: 10px; }
.file-drop { border: 1px dashed var(--border); border-radius: 12px; padding: 26px; text-align: center; color: var(--text-3); font-size: 12px; background: var(--surface); }
.file-drop input { margin-top: 12px; width: 100%; font-size: 12px; }

/* ---------- 服务端版：账号面板与系统状态 ---------- */
.account-panel { display: flex; flex-direction: column; gap: 9px; }
.account-avatar { width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: #fff; display: grid; place-items: center; font-size: 19px; font-weight: 700; margin-bottom: 4px; }
.account-line { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px; background: var(--surface-2); font-size: 12.5px; }
.account-line span { color: var(--text-3); }
.account-line b { color: var(--text); font-weight: 600; text-align: right; word-break: break-all; }
.system-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; margin-top: 12px; max-height: 240px; overflow-y: auto; }
.system-stats .account-line { padding: 7px 10px; font-size: 11.5px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1180px) {
  .hero { grid-template-columns: 1fr; }
  .hero-panel { max-width: 520px; }
  .side-rail { display: none; }
}
@media (max-width: 1000px) {
  .side-panel { width: 76px; padding: 18px 9px 14px; align-items: center; }
  .side-panel .brand-mark { display: grid; }
  .side-panel .brand { border-left: 0; padding: 0 0 16px; }
  .brand-text, .nav-item span, .nav-group, .side-section, .me-text { display: none; }
  .nav { width: 100%; }
  .nav-item { justify-content: center; padding: 10px 0; }
  .nav-item.active:before { left: -9px; }
  .side-footer { width: 100%; }
  .role-switch { justify-content: center; padding: 9px 0; }
  .role-switch .icon { display: none; }
  .main .topbar, .view { padding-left: 22px; padding-right: 22px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .board { grid-template-columns: repeat(4, 260px); }
}
@media (max-width: 640px) {
  .topbar { height: auto; padding: 12px 16px; flex-wrap: wrap; gap: 10px; }
  .search-wrap input { width: 130px; }
  .view { padding: 22px 16px 40px; }
  .view-head { flex-direction: column; align-items: flex-start; }
  .hero { padding: 24px 20px; border-radius: 20px; }
  .hero h1 { font-size: 26px; }
  .hero-panel { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .gantt-side { width: 150px; }
  .legend-note { margin-left: 0; }
  .chart-grid { grid-template-columns: 1fr; }
  .matrix { grid-template-columns: 54px repeat(3, 1fr); }
  .card-grid { grid-template-columns: 1fr; }
}

/* ---------- 无障碍 ---------- */
.skip-link { position: fixed; left: -9999px; top: 10px; z-index: 999; background: var(--accent); color: #fff; padding: 9px 15px; border-radius: 10px; font-size: 13px; text-decoration: none; box-shadow: var(--shadow); }
.skip-link:focus { left: 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
button:focus:not(:focus-visible), input:focus:not(:focus-visible), select:focus:not(:focus-visible), textarea:focus:not(:focus-visible) { outline: none; }
[role="img"] { display: block; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- 项目大屏：深色指挥中心 ---------- */
.screen-view { max-width: none; padding: 0 0 40px; background: radial-gradient(1200px 600px at 15% -10%, #16294a 0%, transparent 60%), radial-gradient(900px 500px at 100% 0%, #1b1b46 0%, transparent 55%), #080d18; min-height: calc(100vh - 62px); color: #e8eefc; }
.screen-view:fullscreen { padding: 0 0 40px; }
.screen-bar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 30px; background: rgba(9, 14, 26, .88); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(120, 160, 230, .16); flex-wrap: wrap; }
.screen-brand { display: flex; align-items: center; gap: 12px; font-size: 14px; letter-spacing: .4px; color: #aab9d6; }
.screen-brand strong { font-size: 19px; color: #f2f6ff; letter-spacing: .2px; }
.screen-pulse { width: 10px; height: 10px; border-radius: 50%; background: #38e8a0; box-shadow: 0 0 0 4px rgba(56, 232, 160, .15), 0 0 14px #38e8a0; animation: screenPulse 1.8s ease-in-out infinite; }
@keyframes screenPulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
.screen-divider { width: 1px; height: 18px; background: rgba(150, 175, 220, .25); }
#screen-clock { font-variant-numeric: tabular-nums; font-size: 13px; color: #8fa2c4; }
.screen-tools { display: flex; align-items: center; gap: 10px; }
.screen-tools .project-select { background: rgba(255, 255, 255, .06); border-color: rgba(150, 175, 220, .22); color: #e8eefc; }
.screen-tools .btn { color: #c7d4ee; border-color: rgba(150, 175, 220, .22); background: rgba(255, 255, 255, .05); }
.screen-tools .btn:hover { background: rgba(255, 255, 255, .12); }
#screen-body { padding: 22px 30px 10px; }
.screen-empty { color: #7f91b2; font-size: 13px; padding: 26px 8px; text-align: center; }
.screen-kpis { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-bottom: 18px; }
.screen-kpi { position: relative; overflow: hidden; padding: 18px 18px 16px; border-radius: 16px; background: linear-gradient(150deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02)); border: 1px solid rgba(140, 175, 230, .14); display: flex; flex-direction: column; gap: 8px; }
.screen-kpi::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--tone, #4dd4ff); box-shadow: 0 0 16px var(--tone, #4dd4ff); }
.screen-kpi.blue { --tone: #4d8dff; } .screen-kpi.cyan { --tone: #4dd4ff; } .screen-kpi.green { --tone: #38e8a0; }
.screen-kpi.red { --tone: #ff6b72; } .screen-kpi.amber { --tone: #ffb84d; } .screen-kpi.violet { --tone: #9d7bff; }
.screen-kpi-label { font-size: 12px; color: #96a8c8; }
.screen-kpi strong { font-size: 32px; font-weight: 750; line-height: 1; color: #f4f8ff; font-variant-numeric: tabular-nums; }
.screen-kpi-sub { font-size: 11px; color: #7185a8; }
.screen-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.screen-panel { background: linear-gradient(160deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015)); border: 1px solid rgba(140, 175, 230, .13); border-radius: 18px; padding: 18px 20px 16px; min-height: 250px; }
.screen-panel.wide { grid-column: span 2; }
.screen-panel-title { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.screen-panel-title span { font-size: 15px; font-weight: 650; color: #eaf1ff; }
.screen-panel-title small { font-size: 11px; color: #7386a8; }
.screen-donut { display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; }
.screen-donut-legend { display: flex; flex-direction: column; gap: 10px; min-width: 96px; }
.screen-donut-legend div { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #a7b6d2; }
.screen-donut-legend i { width: 9px; height: 9px; border-radius: 3px; }
.screen-donut-legend b { margin-left: auto; color: #eaf1ff; font-variant-numeric: tabular-nums; }
.screen-load-row, .screen-ms-row { display: flex; align-items: center; gap: 10px; margin-bottom: 13px; font-size: 12px; }
.screen-load-name { width: 60px; flex: none; color: #c0cce4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.screen-load-track, .screen-ms-track { flex: 1; height: 7px; border-radius: 5px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.screen-load-track i { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, #4d8dff, #4dd4ff); }
.screen-load-val { width: 58px; text-align: right; color: #8fa2c4; font-variant-numeric: tabular-nums; }
.screen-ms-row > div:first-child { display: flex; flex-direction: column; width: 130px; flex: none; }
.screen-ms-row strong { color: #dbe5f8; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.screen-ms-row span { color: #7185a8; font-size: 11px; }
.screen-ms-track i { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, #9d7bff, #4dd4ff); }
.screen-ms-row b { width: 38px; text-align: right; color: #9fb2d4; font-variant-numeric: tabular-nums; }
.screen-risk { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid rgba(140, 175, 230, .09); font-size: 12px; }
.screen-risk-tag { flex: none; font-size: 10px; padding: 2px 7px; border-radius: 6px; background: rgba(255, 255, 255, .08); color: #c0cce4; }
.screen-risk.high .screen-risk-tag { background: rgba(255, 107, 114, .18); color: #ff8d93; }
.screen-risk.medium .screen-risk-tag { background: rgba(255, 184, 77, .18); color: #ffca7a; }
.screen-risk-title { flex: 1; color: #dbe5f8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.screen-risk-owner { color: #7185a8; }
.screen-activity { display: flex; align-items: baseline; gap: 9px; padding: 8px 0; border-bottom: 1px solid rgba(140, 175, 230, .08); font-size: 12px; }
.screen-activity > span { flex: none; color: #6fd7ff; }
.screen-activity p { flex: 1; margin: 0; color: #b9c6df; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.screen-activity time { flex: none; color: #66799c; font-size: 10px; font-variant-numeric: tabular-nums; }
@media (max-width: 1200px) {
  .screen-kpis { grid-template-columns: repeat(3, 1fr); }
  .screen-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .screen-bar, #screen-body { padding-left: 16px; padding-right: 16px; }
  .screen-kpis { grid-template-columns: repeat(2, 1fr); }
  .screen-grid { grid-template-columns: 1fr; }
  .screen-panel.wide { grid-column: auto; }
}

/* ===== v1.3.0 · 创意实验室 ===== */
#lab-tabs { flex-wrap: wrap; }
.weather-ticker { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 16px; margin: -4px 0 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-sm); font-size: 12px; }
.wt-label { flex: none; font-weight: 700; color: var(--text-3); letter-spacing: .04em; padding-right: 10px; border-right: 1px solid var(--border); }
.wt-item { --w: var(--accent); display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 8px; background: var(--surface-2); color: var(--w); font-weight: 600; }
.w-sun { --w: var(--green); } .w-cloud { --w: var(--amber); } .w-rain { --w: var(--accent); } .w-storm { --w: var(--bean); }
.weather-badge { display: inline-flex; align-items: center; margin-left: auto; padding: 3px 8px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--border); color: var(--w, var(--text-2)); font-size: 11px; font-weight: 650; white-space: nowrap; }
.lab-lead { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(280px, 1.1fr); gap: 18px; margin-bottom: 18px; }
.oracle-score { padding: 24px 26px; border-radius: var(--radius); background: linear-gradient(140deg, var(--surface), var(--surface-2)); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.oracle-score.good { --tone: var(--green); } .oracle-score.warn { --tone: var(--amber); } .oracle-score.bad { --tone: var(--bean); }
.os-num { font-size: 52px; font-weight: 780; line-height: 1; letter-spacing: -.04em; color: var(--tone); font-variant-numeric: tabular-nums; }
.os-num small { font-size: 22px; margin-left: 3px; }
.os-label { margin-top: 8px; font-size: 14px; font-weight: 650; color: var(--text); }
.os-sub { margin-top: 4px; font-size: 12px; color: var(--text-3); }
.oracle-meta { padding: 14px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.om-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--border-soft); font-size: 13px; color: var(--text-2); }
.om-row:last-child { border-bottom: 0; }
.om-row b { color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; }
.lab-panel { padding: 20px 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); margin-bottom: 18px; }
.lp-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.lp-head h3 { margin: 0; font-size: 16px; font-weight: 720; color: var(--text); }
.lp-head span { font-size: 12px; color: var(--text-3); }
.lab-svg { display: block; width: 100%; height: auto; max-height: 420px; }
.lab-note { padding: 12px 16px; border-radius: 10px; background: var(--surface-2); color: var(--text-2); font-size: 12px; line-height: 1.7; }
.replay-control { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.replay-control input[type=range] { flex: 1; min-width: 180px; accent-color: var(--accent); }
.replay-date { font-size: 14px; color: var(--accent); font-variant-numeric: tabular-nums; }
.replay-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 18px; }
.replay-cell { padding: 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border-soft); }
.replay-cell i { display: block; width: 20px; height: 4px; border-radius: 3px; background: var(--accent); margin-bottom: 8px; }
.replay-cell i.rc-none { background: var(--text-3); } .replay-cell i.rc-todo { background: var(--todo); }
.replay-cell i.rc-doing { background: var(--doing); } .replay-cell i.rc-review { background: var(--review); }
.replay-cell i.rc-done { background: var(--done); }
.replay-cell span { display: block; font-size: 11px; color: var(--text-3); }
.replay-cell b { display: block; font-size: 24px; font-weight: 740; color: var(--text); line-height: 1.3; }
.replay-cell small { font-size: 11px; color: var(--text-2); }
.replay-events { border-top: 1px solid var(--border-soft); padding-top: 12px; }
.re-events-title { font-size: 12px; font-weight: 700; color: var(--text-3); margin-bottom: 8px; }
.re-event { padding: 6px 0; font-size: 12px; color: var(--text-2); border-bottom: 1px dashed var(--border-soft); }
.bf-control { display: grid; grid-template-columns: 1.3fr 1.4fr auto; gap: 16px; align-items: end; margin-bottom: 18px; }
.bf-control .field label { font-size: 12px; color: var(--text-3); font-weight: 600; margin-bottom: 6px; display: block; }
.bf-control input[type=range] { width: 100%; accent-color: var(--accent); }
.bf-control b { font-size: 13px; color: var(--accent); font-variant-numeric: tabular-nums; }
.bf-ripple { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 18px; margin-bottom: 18px; border-radius: 14px; background: var(--surface-2); overflow: hidden; }
.ripple-core { flex: none; padding: 12px 18px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 13px; font-weight: 700; box-shadow: 0 0 0 6px var(--accent-soft); }
.ripple-node { position: relative; padding: 9px 14px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); font-size: 12px; color: var(--text-2); animation: rippleIn .45s ease both; animation-delay: calc(var(--i) * .07s); }
.ripple-node small { margin-left: 8px; color: var(--accent); font-weight: 700; }
@keyframes rippleIn { from { opacity: 0; transform: translateX(-10px) scale(.94); } to { opacity: 1; transform: none; } }
.lab-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.lab-table th { text-align: left; padding: 9px 10px; color: var(--text-3); font-weight: 600; border-bottom: 1px solid var(--border); }
.lab-table td { padding: 10px; color: var(--text-2); border-bottom: 1px solid var(--border-soft); }
.lab-table td:first-child { color: var(--text); font-weight: 600; }
.depth-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-right: 8px; opacity: calc(1 - var(--d) * .12); }
.shift-late { color: var(--bean) !important; font-weight: 700; } .shift-early { color: var(--green) !important; font-weight: 700; }
.ach-level { display: flex; align-items: center; gap: 18px; padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.al-ring { flex: none; width: 88px; height: 88px; border-radius: 50%; display: grid; place-content: center; text-align: center; background: conic-gradient(var(--accent) 0 68%, var(--surface-3) 68% 100%); color: var(--text); font-size: 24px; font-weight: 780; position: relative; }
.al-ring::after { content: ''; position: absolute; inset: 7px; border-radius: 50%; background: var(--surface); }
.al-num { position: relative; z-index: 1; }
.al-ring small { display: block; font-size: 10px; color: var(--text-3); position: relative; z-index: 1; }
.ach-level h3 { margin: 0 0 6px; font-size: 18px; }
.ach-level p { margin: 0; font-size: 12px; color: var(--text-2); }
.board-small { padding: 18px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.bs-title { font-size: 12px; font-weight: 700; color: var(--text-3); margin-bottom: 12px; }
.bs-row { display: flex; align-items: center; gap: 9px; padding: 7px 0; border-bottom: 1px solid var(--border-soft); font-size: 12px; }
.bs-row:last-child { border-bottom: 0; }
.bs-row b { color: var(--text); font-weight: 650; }
.bs-xp { margin-left: auto; color: var(--accent); font-weight: 700; font-variant-numeric: tabular-nums; }
.bs-rank { width: 18px; color: var(--text-3); font-weight: 700; } .bs-rank.r1 { color: var(--amber); } .bs-rank.r2 { color: var(--text-2); } .bs-rank.r3 { color: #b57b4a; }
.badge-wall { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.ach-badge { padding: 18px 14px; border-radius: 16px; text-align: center; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.ach-badge.locked { opacity: .5; filter: grayscale(1); }
.ab-icon { width: 50px; height: 50px; margin: 0 auto 10px; border-radius: 50%; display: grid; place-content: center; font-size: 22px; background: var(--accent-soft); color: var(--accent); }
.ach-badge.got .ab-icon { background: linear-gradient(140deg, var(--accent), var(--accent-2)); color: #fff; }
.ach-badge b { display: block; font-size: 14px; color: var(--text); }
.ach-badge small { display: block; margin: 5px 0 9px; font-size: 11px; color: var(--text-3); line-height: 1.5; min-height: 30px; }
.ach-badge span { display: inline-block; padding: 2px 9px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); font-size: 10px; }
.alchemy-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.draft-head { margin: 18px 0 8px; font-size: 13px; font-weight: 700; color: var(--text); }
.draft-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); margin-bottom: 6px; font-size: 12px; cursor: pointer; }
.draft-row b { flex: 1; color: var(--text); font-weight: 600; }
.draft-row > span { color: var(--text-2); }
.dna-list { display: grid; gap: 8px; margin-bottom: 18px; }
.dna-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); cursor: pointer; font-size: 13px; text-align: left; color: var(--text); }
.dna-item.active { border-color: var(--accent); background: var(--accent-soft); }
.dna-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.dna-bar { flex: 1; height: 7px; border-radius: 5px; background: var(--surface-3); overflow: hidden; }
.dna-bar i { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.dna-item em { width: 42px; text-align: right; font-style: normal; color: var(--accent); font-weight: 700; font-variant-numeric: tabular-nums; }
.dna-suggest { border-top: 1px solid var(--border-soft); padding-top: 16px; }
.dna-task { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border-soft); font-size: 12px; }
.dna-task b { flex: 1; color: var(--text); font-weight: 600; }
.dna-task small { color: var(--text-3); }
.graph-legend { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; font-size: 11px; color: var(--text-2); }
.graph-legend span { display: inline-flex; align-items: center; gap: 6px; }
.graph-legend i { width: 9px; height: 9px; border-radius: 3px; }
.graph-svg { max-height: 560px; }
.graph-node { cursor: pointer; outline: none; }
.graph-node circle { transition: opacity .15s, stroke .15s; }
.graph-node:hover circle, .graph-node:focus circle { stroke: var(--text); stroke-width: 2; opacity: 1; }
.graph-node:hover text, .graph-node:focus text { fill: var(--text) !important; }
.sentinel-list { display: grid; gap: 10px; }
.sentinel-item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); }
.si-icon { flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-content: center; font-weight: 800; background: var(--accent-soft); color: var(--accent); }
.sentinel-item.s-high .si-icon { background: rgba(255, 99, 83, .13); color: var(--bean); }
.sentinel-item.s-medium .si-icon { background: rgba(245, 165, 36, .14); color: var(--amber); }
.sentinel-item.s-good .si-icon { background: rgba(20, 192, 125, .13); color: var(--green); }
.si-body { flex: 1; }
.si-body b { font-size: 13px; color: var(--text); }
.si-body p { margin: 4px 0 0; font-size: 12px; color: var(--text-2); line-height: 1.6; }
.weather-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.weather-card { --w: var(--accent); display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 20px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--border); cursor: pointer; text-align: left; transition: transform .16s, box-shadow .16s; }
.weather-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.wc-icon { font-size: 34px; line-height: 1; color: var(--w); }
.weather-card b { font-size: 15px; color: var(--text); }
.weather-card span { font-size: 12px; color: var(--w); font-weight: 650; }
.weather-card small { font-size: 11px; color: var(--text-3); }
.pomo-btn { display: block; width: 100%; margin-top: 10px; padding: 6px 10px; border-radius: 8px; border: 1px dashed var(--border); background: var(--surface-2); color: var(--text-2); font-size: 11px; font-weight: 650; cursor: pointer; }
.pomo-btn:hover { border-color: var(--accent); color: var(--accent); }
.pomo-btn.running { border-style: solid; border-color: var(--accent); background: var(--accent-soft); color: var(--accent); font-variant-numeric: tabular-nums; }
.pomo-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border-soft); font-size: 13px; }
.pomo-row b { color: var(--text); font-weight: 600; }
.pomo-live { color: var(--accent); font-weight: 700; font-variant-numeric: tabular-nums; }
@media (max-width: 1100px) {
  .badge-wall { grid-template-columns: repeat(2, 1fr); }
  .bf-control { grid-template-columns: 1fr 1fr; }
  .weather-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .lab-lead { grid-template-columns: 1fr; }
  .replay-stats { grid-template-columns: repeat(2, 1fr); }
  .badge-wall, .weather-grid { grid-template-columns: 1fr; }
  .bf-control { grid-template-columns: 1fr; }
}

/* ===== v1.4.0 · 汇报中心 ===== */
.onepage { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 28px; box-shadow: var(--shadow-sm); }
.op-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding-bottom: 18px; border-bottom: 3px solid var(--accent); }
.op-eyebrow { font-size: 10px; font-weight: 750; letter-spacing: .16em; color: var(--accent); margin-bottom: 6px; }
.op-head h2 { margin: 0; font-size: 24px; font-weight: 780; letter-spacing: -.02em; color: var(--text); }
.op-head p { margin: 6px 0 0; font-size: 12px; color: var(--text-3); }
.op-kpis { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin: 20px 0 24px; }
.op-kpi { --tone: var(--accent); padding: 14px 12px; border-radius: 12px; background: var(--surface-2); border-top: 3px solid var(--tone); }
.op-kpi.t-red { --tone: var(--bean); } .op-kpi.t-green { --tone: var(--green); }
.op-kpi.t-amber { --tone: var(--amber); } .op-kpi.t-violet { --tone: var(--accent-2); }
.op-kpi span { display: block; font-size: 11px; color: var(--text-3); }
.op-kpi b { display: block; font-size: 24px; font-weight: 780; color: var(--tone); line-height: 1.35; font-variant-numeric: tabular-nums; }
.op-kpi small { font-size: 10px; color: var(--text-2); }
.op-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.op-col { padding: 16px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border-soft); }
.op-col h3 { margin: 0 0 14px; font-size: 13px; font-weight: 720; color: var(--text); padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.op-col h3 span { color: var(--bean); }
.op-project, .op-dec, .op-block, .op-gap { display: flex; align-items: center; gap: 9px; padding: 8px 0; border-bottom: 1px dashed var(--border-soft); font-size: 12px; }
.op-project:last-child, .op-dec:last-child { border-bottom: 0; }
.rag { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(20, 192, 125, .14); }
.rag.rag-amber { background: var(--amber); box-shadow: 0 0 0 3px rgba(245, 165, 36, .14); }
.rag.rag-red { background: var(--bean); box-shadow: 0 0 0 3px rgba(255, 99, 83, .14); }
.op-pr-main { flex: 1; min-width: 0; }
.op-pr-main b, .op-dec b, .op-block b { display: block; color: var(--text); font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.op-pr-main span, .op-dec small, .op-block small { display: block; font-size: 10px; color: var(--text-3); margin-top: 2px; }
.op-pr-score { color: var(--text-2); font-weight: 700; font-variant-numeric: tabular-nums; }
.op-dec { display: block; }
.op-kind { display: inline-block; padding: 1px 6px; border-radius: 5px; background: var(--accent-soft); color: var(--accent); font-size: 10px; font-weight: 650; margin-bottom: 3px; }
.op-gap-title { font-size: 11px; font-weight: 700; color: var(--text-3); margin: 12px 0 4px; }
.op-gap { display: flex; justify-content: space-between; }
.op-gap b { color: var(--text); } .op-gap span { color: var(--bean); font-size: 11px; }
.op-foot { margin-top: 20px; padding-top: 12px; border-top: 1px solid var(--border-soft); font-size: 10px; color: var(--text-3); }
.tpl-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.tpl-card { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; padding: 20px 16px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--border); text-align: left; cursor: pointer; transition: transform .16s, border-color .16s, box-shadow .16s; }
.tpl-card:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: var(--shadow); }
.tpl-icon { width: 38px; height: 38px; border-radius: 11px; display: grid; place-content: center; background: var(--accent-soft); color: var(--accent); font-size: 19px; font-weight: 700; }
.tpl-card b { font-size: 14px; color: var(--text); }
.tpl-card span { font-size: 11px; color: var(--text-2); line-height: 1.55; min-height: 34px; }
.tpl-card small { font-size: 10px; color: var(--text-3); }
.export-note { margin-top: 12px; padding: 10px 12px; border-radius: 8px; background: var(--surface-2); color: var(--text-3); font-size: 11px; line-height: 1.6; }
.cmp-select { display: grid; grid-template-columns: 1fr 1fr auto; gap: 14px; align-items: end; margin-bottom: 16px; }
.cmp-good { color: var(--green) !important; font-weight: 700; } .cmp-bad { color: var(--bean) !important; font-weight: 700; }
.archive-list { margin-top: 18px; border-top: 1px solid var(--border-soft); padding-top: 12px; }
.ar-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--border-soft); font-size: 12px; }
.ar-date { flex: none; color: var(--accent); font-variant-numeric: tabular-nums; }
.ar-row b { flex: 1; color: var(--text); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ar-row small { color: var(--text-3); }
.digest-form { display: grid; gap: 14px; }
.switch-row { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--text); cursor: pointer; }
.switch-row input { width: 17px; height: 17px; accent-color: var(--accent); }
.digest-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.digest-status { display: grid; grid-template-columns: 1fr 2fr; gap: 14px; padding: 14px; border-radius: 12px; background: var(--surface-2); }
.digest-status div { display: flex; flex-direction: column; gap: 4px; font-size: 12px; }
.digest-status b { color: var(--text-3); font-size: 11px; }
.digest-status span, .digest-status code { color: var(--text); word-break: break-all; }
@media (max-width: 1300px) {
  .op-kpis { grid-template-columns: repeat(3, 1fr); }
  .tpl-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  .op-cols, .op-kpis, .tpl-grid, .cmp-select, .digest-status { grid-template-columns: 1fr; }
}

/* ===== v1.5.0 · 商业中心 ===== */
.b-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.b-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.b-kpis > div { padding: 16px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); border-top: 3px solid var(--accent); }
.b-kpis span { display: block; font-size: 11px; color: var(--text-3); margin-bottom: 5px; }
.b-kpis b { font-size: 24px; font-weight: 780; color: var(--text); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.b-good { color: var(--green) !important; } .b-bad { color: var(--bean) !important; }
.b-muted { color: var(--text-3); font-size: 11px; }
.b-num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.lab-table td small, .lab-table th small { display: block; color: var(--text-3); font-size: 10px; margin-top: 2px; }
.b-inline { width: 92px; padding: 5px 7px; border: 1px solid var(--border); border-radius: 7px; background: var(--surface-2); color: var(--text); font-size: 12px; }
.b-inline:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
.b-actions { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 16px; }
.btn-sm { padding: 6px 11px; font-size: 11px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--accent); font-size: 11px; cursor: pointer; font-weight: 650; }
.link-btn:hover { text-decoration: underline; }
.b-total { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding: 14px 16px; border-radius: 12px; background: var(--accent-soft); }
.b-total span { font-size: 12px; color: var(--text-2); }
.b-total b { font-size: 19px; color: var(--accent); font-variant-numeric: tabular-nums; }
.b-pill { display: inline-block; padding: 3px 8px; border-radius: 20px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2); font-size: 10px; font-weight: 650; }
.b-pill.ok { background: rgba(20,192,125,.12); border-color: rgba(20,192,125,.3); color: var(--green); }
.b-pill.bad { background: rgba(255,99,83,.12); border-color: rgba(255,99,83,.3); color: var(--bean); }
.b-bar { height: 6px; min-width: 72px; border-radius: 6px; background: var(--surface-2); overflow: hidden; display: inline-block; vertical-align: middle; margin-right: 6px; }
.b-bar-i { display: block; height: 100%; border-radius: 6px; background: var(--accent); }
.b-bar-i.green { background: var(--green); } .b-bar-i.red { background: var(--bean); }
.b-bar-i.amber { background: var(--amber); } .b-bar-i.blue { background: var(--accent); }
.b-feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 18px; }
.b-feature-grid > div { padding: 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border-soft); }
.b-feature-grid b { display: block; font-size: 11px; color: var(--accent); margin-bottom: 4px; }
.b-feature-grid span { display: block; font-size: 10px; color: var(--text-3); line-height: 1.5; }
.b-flow-row { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--border-soft); font-size: 12px; }
.b-flow-row > span { color: var(--text-2); font-variant-numeric: tabular-nums; }
.b-flow-row b { color: var(--text); font-size: 11px; font-variant-numeric: tabular-nums; }
.b-asset-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.b-asset { border: 1px solid var(--border); border-radius: 14px; background: var(--surface-2); padding: 16px; display: flex; flex-direction: column; justify-content: space-between; gap: 14px; transition: transform .16s, border-color .16s; }
.b-asset:hover { transform: translateY(-3px); border-color: var(--accent); }
.b-asset-type { display: inline-block; padding: 2px 8px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); font-size: 10px; font-weight: 700; margin-bottom: 8px; }
.b-asset-top b { display: block; font-size: 14px; color: var(--text); }
.b-asset-top p { font-size: 11px; color: var(--text-3); line-height: 1.6; margin: 7px 0 0; }
.b-asset-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; border-top: 1px dashed var(--border); padding-top: 12px; }
.b-asset-foot span { font-size: 10px; color: var(--text-3); }
.b-asset-foot b { color: var(--text); font-size: 13px; }
.b-code { display: grid; gap: 10px; }
.b-code > div { padding: 10px 12px; border-radius: 9px; background: var(--surface-2); border: 1px solid var(--border-soft); }
.b-code span { display: block; font-size: 10px; color: var(--text-3); margin-bottom: 5px; }
.b-code code { font-size: 11px; color: var(--accent); word-break: break-all; }
.b-plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 14px; }
.b-plan { padding: 16px; border-radius: 13px; background: var(--surface-2); border: 1px solid var(--border); border-top: 3px solid var(--accent); }
.b-plan-name { font-size: 12px; font-weight: 750; color: var(--text-2); }
.b-plan b { display: block; font-size: 21px; color: var(--accent); margin: 7px 0; font-variant-numeric: tabular-nums; }
.b-plan b small { font-size: 10px; color: var(--text-3); font-weight: 500; }
.b-plan p { margin: 0; font-size: 10px; color: var(--text-3); line-height: 1.55; }
.b-note { margin-top: 14px; padding: 10px 12px; border-radius: 8px; background: var(--surface-2); color: var(--text-3); font-size: 11px; line-height: 1.6; }
.b-share { padding: 14px; border-radius: 10px; background: var(--surface-2); border: 1px dashed var(--accent); }
.b-share code { word-break: break-all; font-size: 12px; color: var(--accent); }
.b-json { max-height: 340px; overflow: auto; padding: 14px; border-radius: 10px; background: var(--surface-2); color: var(--text-2); font-size: 11px; }
.b-preview { border: 1px solid var(--border); border-radius: 16px; padding: 24px; background: linear-gradient(150deg, var(--surface), var(--surface-2)); }
.bp-head { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid var(--bcolor, var(--accent)); padding-bottom: 12px; }
.bp-head b { font-size: 16px; color: var(--bcolor, var(--accent)); }
.bp-head span { font-size: 10px; color: var(--text-3); }
.b-preview h2 { font-size: 22px; margin: 20px 0 4px; color: var(--text); }
.b-preview > p { color: var(--text-3); font-size: 12px; margin: 0 0 18px; }
@media (max-width: 1300px) {
  .b-grid, .b-asset-grid, .b-plan-grid { grid-template-columns: 1fr 1fr; }
  .b-feature-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .b-grid, .b-kpis, .b-asset-grid, .b-plan-grid, .b-feature-grid { grid-template-columns: 1fr; }
}
