/* ==========================================================
   开锐项目中枢 · Design System
   ========================================================== */

:root {
  --bg: #F6F7F9;
  --surface: #FFFFFF;
  --surface-2: #FAFBFC;
  --surface-3: #F1F3F7;
  --border: #E8EAEF;
  --border-strong: #DCE0E8;

  --text: #0E1524;
  --text-2: #59637A;
  --text-3: #8D97AB;

  --brand: #2D5AF0;
  --brand-hover: #1E46D2;
  --brand-soft: #EDF1FE;
  --brand-line: #C9D6FB;

  --green: #0B9E63;
  --green-soft: #E8F8F0;
  --amber: #C97A06;
  --amber-soft: #FDF5E5;
  --red: #DE3B40;
  --red-soft: #FDEDED;
  --purple: #7350E8;
  --purple-soft: #F1EDFE;
  --cyan: #0C93A8;
  --cyan-soft: #E6F6F8;

  --radius-lg: 16px;
  --radius: 12px;
  --radius-sm: 8px;

  --shadow-xs: 0 1px 2px rgba(14, 21, 36, .05);
  --shadow-sm: 0 1px 3px rgba(14, 21, 36, .06), 0 1px 2px rgba(14, 21, 36, .04);
  --shadow: 0 2px 6px rgba(14, 21, 36, .05), 0 12px 28px -16px rgba(14, 21, 36, .18);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: "SF Mono", "JetBrains Mono", ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; }
::selection { background: #D6E1FF; }

/* 图标基准尺寸：所有内联 SVG 默认 16px，局部规则按需覆盖 */
svg { width: 16px; height: 16px; flex: none; }
.kpi-spark svg { width: 64px; height: 26px; }
.empty svg { width: 30px; height: 30px; }

.num { font-variant-numeric: tabular-nums; }

/* ---------------- Layout ---------------- */
.shell { display: flex; min-height: 100vh; }

.sidebar {
  width: 232px;
  flex: 0 0 232px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 40;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 18px 14px;
}
.brand-mark {
  width: 30px; height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, #2D5AF0, #5B7CFF);
  display: grid; place-items: center;
  color: #fff; font-weight: 700; font-size: 14px;
  box-shadow: 0 4px 10px -3px rgba(45, 90, 240, .55);
  letter-spacing: -.5px;
}
.brand-text { line-height: 1.2; }
.brand-text b { font-size: 14px; font-weight: 650; letter-spacing: -.2px; }
.brand-text span { display: block; font-size: 11px; color: var(--text-3); letter-spacing: .3px; }

.nav { flex: 1; overflow-y: auto; padding: 4px 10px 20px; }
.nav-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
  letter-spacing: .6px;
  padding: 14px 10px 6px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--text-2);
  font-size: 13.5px;
  font-weight: 500;
  position: relative;
  transition: background .15s, color .15s;
}
.nav-item:hover { background: var(--surface-3); color: var(--text); }
.nav-item.active { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.nav-item.active svg { stroke: var(--brand); }
.nav-item svg { width: 17px; height: 17px; stroke: var(--text-3); stroke-width: 1.7; fill: none; flex: none; }
.nav-item:hover svg { stroke: var(--text-2); }
.nav-item.active svg { stroke: var(--brand); }
.nav-badge {
  margin-left: auto;
  font-size: 11px;
  font-weight: 600;
  background: var(--red-soft);
  color: var(--red);
  padding: 1px 6px;
  border-radius: 20px;
  min-width: 18px;
  text-align: center;
}
.nav-item.active .nav-badge { background: #fff; }

.sidebar-foot {
  border-top: 1px solid var(--border);
  padding: 12px 14px;
  display: flex; align-items: center; gap: 10px;
}
.avatar {
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 600;
  background: var(--brand-soft); color: var(--brand);
  flex: none;
  letter-spacing: -.2px;
}
.avatar.g1 { background: #E8F8F0; color: #0B9E63; }
.avatar.g2 { background: #F1EDFE; color: #7350E8; }
.avatar.g3 { background: #FDF5E5; color: #C97A06; }
.avatar.g4 { background: #E6F6F8; color: #0C93A8; }
.avatar.g5 { background: #FDEDED; color: #DE3B40; }
.avatar.sm { width: 24px; height: 24px; font-size: 10.5px; }
.avatar.lg { width: 40px; height: 40px; font-size: 14px; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  height: 58px;
  flex: none;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 26px;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 30;
}
.crumb { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text-3); }
.crumb b { color: var(--text); font-weight: 600; font-size: 13.5px; }
.crumb .sep { color: var(--border-strong); }

.search-trigger {
  margin-left: auto;
  display: flex; align-items: center; gap: 8px;
  height: 32px; padding: 0 8px 0 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text-3);
  font-size: 12.5px;
  width: 236px;
  overflow: hidden;
  transition: all .15s;
}
.search-trigger > span:first-of-type {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
}
.search-trigger:hover { border-color: var(--border-strong); background: #fff; }
.search-trigger svg { width: 14px; height: 14px; stroke: var(--text-3); fill: none; stroke-width: 1.8; }
.kbd {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 10.5px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 4px;
  padding: 1px 5px;
  color: var(--text-3);
}

.btn {
  display: inline-flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 12px;
  border-radius: 8px;
  font-size: 13px; font-weight: 550;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-2);
  transition: all .15s;
  white-space: nowrap;
}
.btn:hover { border-color: var(--border-strong); color: var(--text); background: var(--surface-2); }
.btn svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.btn.primary {
  background: var(--brand); border-color: var(--brand); color: #fff;
  box-shadow: 0 1px 2px rgba(45, 90, 240, .3);
}
.btn.primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); color: #fff; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--surface-3); }
.btn.sm { height: 27px; padding: 0 9px; font-size: 12px; border-radius: 7px; }
.btn.sm svg { width: 13px; height: 13px; }

.content { padding: 26px 26px 60px; max-width: 1560px; width: 100%; }

/* ---------------- Page head ---------------- */
.page-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 20px; }
.page-head h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -.4px;
  line-height: 1.3;
}
.page-head .sub { color: var(--text-2); font-size: 13px; margin-top: 3px; }
.page-head .actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }

/* ---------------- Card ---------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
}
.card-head {
  display: flex; align-items: center; gap: 10px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--border);
}
.card-head h3 { margin: 0; font-size: 13.5px; font-weight: 620; letter-spacing: -.1px; }
.card-head .hint { font-size: 12px; color: var(--text-3); }
.card-head .more { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.link {
  font-size: 12.5px; color: var(--brand); font-weight: 550;
  display: inline-flex; align-items: center; gap: 3px;
}
.link:hover { color: var(--brand-hover); }
.link svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2; }
.card-body { padding: 16px 18px; }

/* ---------------- KPI ---------------- */
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 16px; }
.kpi {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  box-shadow: var(--shadow-xs);
  position: relative;
  overflow: hidden;
}
.kpi-label { font-size: 12.5px; color: var(--text-2); display: flex; align-items: center; gap: 6px; }
.kpi-label svg { width: 14px; height: 14px; stroke: var(--text-3); fill: none; stroke-width: 1.8; }
.kpi-value { font-size: 30px; font-weight: 650; letter-spacing: -1px; margin-top: 6px; line-height: 1.1; }
.kpi-value small { font-size: 14px; font-weight: 550; color: var(--text-3); margin-left: 2px; letter-spacing: 0; }
.kpi-foot { margin-top: 8px; display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--text-3); }
.chip-delta {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 11px; font-weight: 600;
  padding: 1px 6px; border-radius: 20px;
  background: var(--green-soft); color: var(--green);
}
.chip-delta.warn { background: var(--amber-soft); color: var(--amber); }
.chip-delta.bad { background: var(--red-soft); color: var(--red); }
.kpi-spark { position: absolute; right: 14px; bottom: 14px; opacity: .9; }

/* ---------------- Progress ---------------- */
.bar { height: 6px; border-radius: 20px; background: var(--surface-3); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 20px; background: var(--brand); transition: width .4s cubic-bezier(.2,.8,.2,1); }
.bar.green > i { background: var(--green); }
.bar.amber > i { background: var(--amber); }
.bar.red > i { background: var(--red); }
.bar.lg { height: 8px; }

/* ---------------- Pills ---------------- */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 600; letter-spacing: .1px;
  padding: 3px 9px;
  border: 1px solid transparent;
  border-radius: 6px;
  white-space: nowrap;
  line-height: 1.45;
}
.pill::before {
  content: ''; width: 6px; height: 6px; flex: none;
  border-radius: 50%; background: currentColor;
}
/* 未启动：空心点 + 描边白底，与「已启动」的实心点形成语义对比 */
.pill.no-dot::before { display: none; }
.pill.done { background: var(--green-soft); color: var(--green); }
.pill.doing { background: var(--brand-soft); color: var(--brand); }
.pill.idle { background: #fff; color: var(--text-2); border-color: var(--border-strong); }
.pill.idle::before { box-sizing: border-box; background: transparent; border: 1.5px solid var(--text-3); }
.pill.late { background: var(--red-soft); color: var(--red); }
.pill.block { background: var(--amber-soft); color: var(--amber); }
.pill.purple { background: var(--purple-soft); color: var(--purple); }
.pill.cyan { background: var(--cyan-soft); color: var(--cyan); }
.tag {
  display: inline-flex; align-items: center;
  font-size: 11px; font-weight: 550;
  padding: 1px 7px;
  border-radius: 6px;
  background: var(--surface-3);
  color: var(--text-2);
  white-space: nowrap;
}
.tag.mono { font-family: var(--mono); font-size: 10.5px; letter-spacing: -.2px; }
.tag.line { background: transparent; border: 1px solid var(--border); color: var(--text-3); }

/* ---------------- Dashboard grid ---------------- */
.dash-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 16px; }

/* Project health rows */
.p-row {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--border);
  transition: background .13s;
  cursor: pointer;
}
.p-row:last-child { border-bottom: none; }
.p-row:hover { background: var(--surface-2); }
.p-row .name { font-weight: 600; font-size: 13.5px; letter-spacing: -.1px; }
.p-row .meta { font-size: 11.5px; color: var(--text-3); margin-top: 2px; display: flex; gap: 8px; align-items: center; }
.p-row .prog { width: 158px; flex: none; }
.p-row .prog .bar { margin-bottom: 5px; }
.p-row .prog .pct { font-size: 11px; color: var(--text-3); display: flex; justify-content: space-between; gap: 10px; white-space: nowrap; }
.p-row .prog .pct b { color: var(--text); font-weight: 600; }
.p-row .next { width: 150px; flex: none; font-size: 11.5px; color: var(--text-2); }
.p-row .next span { display: block; color: var(--text-3); font-size: 10.5px; margin-bottom: 1px; }

/* Feed */
.feed { padding: 6px 0; }
.feed-item {
  display: flex; gap: 12px;
  padding: 10px 18px;
  position: relative;
}
.feed-item:hover { background: var(--surface-2); }
.feed-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--brand); margin-top: 7px; flex: none;
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.feed-dot.done { background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.feed-dot.late { background: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.feed-body { min-width: 0; flex: 1; }
.feed-body .t { font-size: 13px; color: var(--text); line-height: 1.45; }
.feed-body .m { font-size: 11.5px; color: var(--text-3); margin-top: 3px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.feed-line { position: absolute; left: 21.5px; top: 20px; bottom: -10px; width: 1px; background: var(--border); }
.feed-item:last-child .feed-line { display: none; }

/* Risk card */
.risk-item {
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--red);
  margin-bottom: 10px;
}
.risk-item:last-child { margin-bottom: 0; }
.risk-item.warn { border-left-color: var(--amber); }
.risk-item .t { font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.risk-item .d { font-size: 12px; color: var(--text-2); margin-top: 4px; line-height: 1.5; }
.risk-item .f { margin-top: 8px; display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--text-3); }

/* Quick note */
.quick textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
  font-size: 13px;
  resize: vertical;
  min-height: 74px;
  background: var(--surface-2);
  outline: none;
  transition: border-color .15s, background .15s;
  line-height: 1.6;
}
.quick textarea:focus { border-color: var(--brand-line); background: #fff; box-shadow: 0 0 0 3px rgba(45,90,240,.08); }
.quick textarea::placeholder { color: var(--text-3); }
.quick-foot { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.quick-foot .hint { font-size: 11.5px; color: var(--text-3); margin-left: auto; }

/* ---------------- Toolbar / filters ---------------- */
.toolbar { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.seg {
  display: inline-flex;
  background: var(--surface-3);
  border-radius: 9px;
  padding: 2px;
  gap: 2px;
}
.seg button {
  font-size: 12.5px; font-weight: 550;
  padding: 5px 11px;
  border-radius: 7px;
  color: var(--text-2);
  transition: all .15s;
}
.seg button:hover { color: var(--text); }
.seg button.on { background: #fff; color: var(--text); box-shadow: var(--shadow-xs); font-weight: 600; }
.seg button .cnt { color: var(--text-3); margin-left: 4px; font-size: 11px; }

.field {
  display: flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  font-size: 12.5px;
  color: var(--text-2);
}
.field svg { width: 14px; height: 14px; stroke: var(--text-3); fill: none; stroke-width: 1.8; }
.field select { border: none; outline: none; background: none; font-size: 12.5px; color: var(--text-2); cursor: pointer; }
.toolbar .right { margin-left: auto; display: flex; gap: 8px; }

/* ---------------- Project cards ---------------- */
.pcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.pcard {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 17px;
  box-shadow: var(--shadow-xs);
  transition: all .18s;
  cursor: pointer;
  display: flex; flex-direction: column; gap: 12px;
}
.pcard:hover {
  border-color: var(--brand-line);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.pcard-top { display: flex; align-items: flex-start; gap: 8px; }
.pcard-top .id { font-family: var(--mono); font-size: 10.5px; color: var(--text-3); letter-spacing: -.2px; }
.pcard h4 { margin: 3px 0 0; font-size: 15px; font-weight: 620; letter-spacing: -.25px; line-height: 1.35; }
.pcard .client { font-size: 12px; color: var(--text-2); display: flex; align-items: center; gap: 5px; }
.pcard .client svg { width: 13px; height: 13px; stroke: var(--text-3); fill: none; stroke-width: 1.8; }
.pcard-prog .bar { margin-bottom: 5px; }
.pcard-prog .lbl { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--text-3); }
.pcard-prog .lbl b { color: var(--text); font-weight: 600; }
.pcard-foot {
  display: flex; align-items: center; gap: 8px;
  padding-top: 12px; border-top: 1px solid var(--border);
  font-size: 11.5px; color: var(--text-3);
}
.pcard-foot .due { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.pcard-foot svg { width: 13px; height: 13px; stroke: var(--text-3); fill: none; stroke-width: 1.8; }
.stack-av { display: flex; }
.stack-av .avatar { margin-left: -6px; border: 2px solid #fff; }
.stack-av .avatar:first-child { margin-left: 0; }

/* ---------------- Table ---------------- */
.table-wrap { overflow: hidden; border-radius: var(--radius-lg); }
table.data { width: 100%; border-collapse: collapse; font-size: 13px; table-layout: fixed; }
table.data th {
  text-align: left;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-3);
  letter-spacing: .2px;
  padding: 10px 14px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  position: sticky; top: 0; z-index: 2;
}
table.data td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  color: var(--text-2);
  line-height: 1.45;
  overflow-wrap: break-word;
}
table.data tbody tr { transition: background .12s; }
table.data tbody tr:hover { background: var(--surface-2); }
table.data tbody tr:last-child td { border-bottom: none; }
table.data td.strong { color: var(--text); font-weight: 550; }
table.data .c { text-align: center; }
table.data .r { text-align: right; }

/* ---------------- Tabs ---------------- */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); margin-bottom: 18px; }
.tabs button {
  padding: 9px 13px 10px;
  font-size: 13px;
  font-weight: 550;
  color: var(--text-2);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all .15s;
  display: flex; align-items: center; gap: 6px;
}
.tabs button:hover { color: var(--text); }
.tabs button.on { color: var(--brand); border-bottom-color: var(--brand); font-weight: 620; }
.tabs button .cnt {
  font-size: 11px; background: var(--surface-3); color: var(--text-3);
  padding: 0 5px; border-radius: 20px; min-width: 17px; text-align: center;
}
.tabs button.on .cnt { background: var(--brand-soft); color: var(--brand); }

/* ---------------- Project hero ---------------- */
.hero {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-xs);
}
.hero-top { display: flex; align-items: flex-start; gap: 16px; }
.hero h1 { margin: 0; font-size: 21px; font-weight: 650; letter-spacing: -.4px; }
.hero .sub { display: flex; align-items: center; gap: 10px; margin-top: 6px; font-size: 12.5px; color: var(--text-2); flex-wrap: wrap; }
.hero .sub > span { display: inline-flex; align-items: center; gap: 6px; }
.hero .sub .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--border-strong); }
.hero-stats { display: flex; gap: 26px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); }
.hero-stat .k { font-size: 11.5px; color: var(--text-3); }
.hero-stat .v { font-size: 16px; font-weight: 620; margin-top: 2px; letter-spacing: -.3px; }
.hero-stat .v small { font-size: 11.5px; font-weight: 500; color: var(--text-3); }

/* Phase stepper */
.phases { display: flex; gap: 0; margin-top: 18px; }
.phase {
  flex: 1; position: relative;
  padding-top: 26px;
}
.phase::before {
  content: ''; position: absolute; top: 9px; left: 0; right: 0; height: 2px;
  background: var(--border);
}
.phase:first-child::before { left: 50%; }
.phase:last-child::before { right: 50%; }
.phase .dot {
  position: absolute; top: 4px; left: calc(50% - 6px);
  width: 12px; height: 12px; border-radius: 50%;
  background: #fff; border: 2px solid var(--border-strong);
  z-index: 1;
}
.phase.done .dot { background: var(--green); border-color: var(--green); }
.phase.done::before { background: var(--green); opacity: .45; }
.phase.doing .dot { background: #fff; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.phase.doing::before { background: var(--brand); opacity: .4; }
.phase .nm { font-size: 12px; color: var(--text-3); text-align: center; font-weight: 550; }
.phase.done .nm, .phase.doing .nm { color: var(--text); }
.phase .st { font-size: 10.5px; color: var(--text-3); text-align: center; margin-top: 2px; }

/* ---------------- Milestones list ---------------- */
.ms-group { margin-bottom: 18px; }
.ms-group-head {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; color: var(--text-2);
  margin-bottom: 8px; padding-left: 2px;
}
.ms-group-head .line { flex: 1; height: 1px; background: var(--border); }
.ms {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 13px 15px;
  margin-bottom: 8px;
  transition: all .15s;
}
.ms:hover { border-color: var(--border-strong); box-shadow: var(--shadow-xs); }
.ms .check {
  width: 17px; height: 17px; border-radius: 50%;
  border: 1.6px solid var(--border-strong);
  flex: none; cursor: pointer; transition: all .15s;
  display: grid; place-items: center;
}
.ms .check:hover { border-color: var(--brand); }
.ms .check.on { background: var(--green); border-color: var(--green); }
.ms .check.on::after {
  content: ''; width: 8px; height: 4.5px;
  border-left: 1.8px solid #fff; border-bottom: 1.8px solid #fff;
  transform: rotate(-45deg) translateY(-1px);
}
.ms .mid { flex: 1; min-width: 0; }
.ms .mid .t { font-size: 13.5px; font-weight: 550; }
.ms .mid .d { font-size: 11.5px; color: var(--text-3); margin-top: 3px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ms .dates { font-size: 11.5px; color: var(--text-3); width: 168px; flex: none; text-align: right; font-variant-numeric: tabular-nums; }
.ms .dates b { color: var(--text-2); font-weight: 550; }

/* ---------------- Vertical timeline ---------------- */
.vtl { position: relative; padding-left: 26px; }
.vtl::before {
  content: ''; position: absolute; left: 7px; top: 10px; bottom: 14px;
  width: 1.5px; background: var(--border-strong);
}
.vtl-item { position: relative; padding-bottom: 20px; }
.vtl-item:last-child { padding-bottom: 0; }
.vtl-item .node {
  position: absolute; left: -26px; top: 3px;
  width: 15px; height: 15px; border-radius: 50%;
  background: #fff; border: 2px solid var(--border-strong);
  display: grid; place-items: center;
}
.vtl-item.done .node { border-color: var(--green); background: var(--green); }
.vtl-item.done .node::after {
  content: ''; width: 6px; height: 3.5px;
  border-left: 1.5px solid #fff; border-bottom: 1.5px solid #fff;
  transform: rotate(-45deg) translateY(-.5px);
}
.vtl-item.doing .node { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.vtl-item.late .node { border-color: var(--red); background: var(--red); }
.vtl-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 13px 15px;
}
.vtl-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.vtl-head .date { font-size: 11.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.vtl-head .ttl { font-size: 13.5px; font-weight: 550; }
.vtl-desc { font-size: 12.5px; color: var(--text-2); margin-top: 5px; line-height: 1.55; }
.vtl-foot { display: flex; align-items: center; gap: 10px; margin-top: 9px; font-size: 11.5px; color: var(--text-3); flex-wrap: wrap; }
.vtl-foot .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--border-strong); }

/* ---------------- Gantt ---------------- */
.gantt { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-xs); }
.gantt-scroll { overflow-x: auto; }
.gantt-inner { min-width: 980px; }
.g-head {
  display: grid; grid-template-columns: 250px 1fr;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
  position: sticky; top: 0; z-index: 5;
}
.g-head .lbl { padding: 9px 16px; font-size: 11.5px; font-weight: 600; color: var(--text-3); display: flex; align-items: center; }
.g-weeks { display: grid; grid-template-columns: repeat(10, 1fr); }
.g-week {
  padding: 7px 0 6px;
  text-align: center;
  font-size: 11px;
  color: var(--text-3);
  border-left: 1px solid var(--border);
  line-height: 1.35;
}
.g-week b { display: block; color: var(--text-2); font-weight: 600; font-size: 11.5px; }
.g-week.now { background: var(--brand-soft); }
.g-week.now b, .g-week.now { color: var(--brand); }

.g-proj {
  display: grid; grid-template-columns: 250px 1fr;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  border-top: 1px solid var(--border);
}
.g-proj .lbl { padding: 8px 16px; display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 620; white-space: nowrap; overflow: hidden; }
.g-proj .lbl .dotc { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.g-row { display: grid; grid-template-columns: 250px 1fr; border-bottom: 1px solid var(--border); }
.g-row:hover { background: var(--surface-2); }
.g-row:last-child { border-bottom: none; }
.g-name { padding: 9px 16px; display: flex; flex-direction: column; justify-content: center; gap: 1px; border-right: 1px solid var(--border); }
.g-name .t { font-size: 12.5px; font-weight: 550; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-name .m { font-size: 10.5px; color: var(--text-3); display: flex; gap: 6px; align-items: center; }
.g-track { position: relative; display: grid; grid-template-columns: repeat(10, 1fr); align-items: center; min-height: 42px; }
.g-cell { border-left: 1px solid var(--border); height: 100%; grid-row: 1; }
.g-cell.now { background: rgba(45,90,240,.035); }
.g-bar {
  grid-row: 1;
  height: 22px;
  border-radius: 6px;
  display: flex; align-items: center;
  padding: 0 7px;
  font-size: 10.5px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  margin: 0 2px;
  position: relative;
  z-index: 2;
  cursor: pointer;
  transition: filter .15s;
}
.g-bar:hover { filter: brightness(1.06); }
.g-bar.done { background: linear-gradient(90deg, #12B76A, #0B9E63); }
.g-bar.doing { background: linear-gradient(90deg, #4C74FF, #2D5AF0); }
.g-bar.todo { background: #C3CAD8; color: #4A5568; }
.g-bar.late { background: linear-gradient(90deg, #F0656A, #DE3B40); }
.g-bar.undated {
  background: repeating-linear-gradient(45deg, #EEF0F4, #EEF0F4 5px, #E4E7ED 5px, #E4E7ED 10px);
  color: var(--text-3);
  grid-column: 1 / 2 !important;
  font-weight: 550;
}
.g-today {
  position: absolute; top: 0; bottom: 0; width: 2px;
  background: var(--brand); opacity: .45; z-index: 3; pointer-events: none;
}
.g-legend { display: flex; gap: 16px; padding: 11px 16px; border-top: 1px solid var(--border); font-size: 11.5px; color: var(--text-3); align-items: center; }
.g-legend i { width: 12px; height: 8px; border-radius: 3px; display: inline-block; margin-right: 5px; vertical-align: middle; }

/* ---------------- Archives ---------------- */
.arch-grid { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 16px; align-items: start; }
.arch-nav { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 8px; box-shadow: var(--shadow-xs); }
.arch-nav button {
  width: 100%; display: flex; align-items: center; gap: 8px;
  padding: 7px 10px; border-radius: 8px;
  font-size: 13px; color: var(--text-2); text-align: left;
  transition: all .13s;
}
.arch-nav button:hover { background: var(--surface-3); color: var(--text); }
.arch-nav button.on { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.arch-nav button .n { margin-left: auto; font-size: 11px; color: var(--text-3); }
.arch-nav button.on .n { color: var(--brand); }
.arch-nav button span { flex: 1; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.arch-nav .hdr { font-size: 11px; font-weight: 600; color: var(--text-3); padding: 8px 10px 4px; letter-spacing: .4px; }

.doc-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  transition: background .13s;
}
.doc-row:last-child { border-bottom: none; }
.doc-row:hover { background: var(--surface-2); }
.doc-ico {
  width: 32px; height: 32px; border-radius: 8px;
  display: grid; place-items: center; flex: none;
  font-size: 9.5px; font-weight: 700; letter-spacing: -.3px;
  background: var(--surface-3); color: var(--text-2);
}
.doc-ico.pdf { background: var(--red-soft); color: var(--red); }
.doc-ico.xlsx { background: var(--green-soft); color: var(--green); }
.doc-ico.docx { background: var(--brand-soft); color: var(--brand); }
.doc-ico.png { background: var(--purple-soft); color: var(--purple); }
.doc-main { flex: 1; min-width: 0; }
.doc-main .t { font-size: 13px; font-weight: 550; }
.doc-main .m { font-size: 11.5px; color: var(--text-3); margin-top: 2px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.doc-main .m .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--border-strong); }
.ver { font-family: var(--mono); font-size: 10px; padding: 1px 5px; border-radius: 4px; background: var(--surface-3); color: var(--text-2); font-weight: 600; }
.ver.v2 { background: var(--amber-soft); color: var(--amber); }

/* ---------------- Notes ---------------- */
.notes-layout { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 16px; align-items: start; }
.note-list { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-xs); }
.note-item {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background .13s;
  border-left: 2px solid transparent;
}
.note-item:last-child { border-bottom: none; }
.note-item:hover { background: var(--surface-2); }
.note-item.on { background: var(--brand-soft); border-left-color: var(--brand); }
.note-item .t { font-size: 13px; font-weight: 600; line-height: 1.4; letter-spacing: -.1px; display: flex; align-items: flex-start; gap: 6px; }
.note-item .t .note-more { opacity: 0; flex: none; margin-left: auto; margin-top: -2px; transition: opacity .12s; }
.note-item:hover .t .note-more, .note-item.on .t .note-more { opacity: 1; }
.note-item.on .t { color: var(--brand); }
.note-item .x { font-size: 11.5px; color: var(--text-2); margin-top: 5px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.note-item .m { margin-top: 7px; display: flex; align-items: center; gap: 7px; font-size: 11px; color: var(--text-3); }

/* 纪要落地进度：n/m 行动项已转台账 */
.note-prog { margin-top: 9px; }
.np-top { display: flex; align-items: baseline; justify-content: space-between; font-size: 10px; color: var(--text-3); letter-spacing: .1px; }
.np-top .np-num { font-variant-numeric: tabular-nums; color: var(--text-2); }
.np-top .np-num b { font-size: 11.5px; font-weight: 700; color: var(--brand); }
.np-top .np-num.full b { color: var(--green); }
.np-bar { height: 3px; margin-top: 4px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.np-bar i { display: block; height: 100%; border-radius: 3px; background: var(--brand); transition: width .25s ease; }
.np-bar.full i { background: var(--green); }
.note-item.on .np-bar { background: rgba(45, 90, 240, .14); }

.note-detail { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-xs); }
.note-head { padding: 20px 24px 16px; border-bottom: 1px solid var(--border); }
.note-head h2 { margin: 0 0 8px; font-size: 19px; font-weight: 650; letter-spacing: -.4px; }
.note-meta { display: flex; align-items: center; gap: 9px; font-size: 12px; color: var(--text-3); flex-wrap: wrap; }
.note-body { padding: 20px 24px; font-size: 13.5px; line-height: 1.85; color: var(--text-2); }
.note-body h4 {
  font-size: 12px; font-weight: 650; color: var(--text-3);
  letter-spacing: .5px; margin: 22px 0 9px;
}
.note-body h4:first-child { margin-top: 0; }
.note-body p { margin: 0 0 11px; }
.note-body ul { margin: 0 0 11px; padding-left: 18px; }
.note-body li { margin-bottom: 5px; }
.note-body b { color: var(--text); font-weight: 600; }

.todo-list { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.todo {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 13px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  transition: background .13s;
}
.todo:last-child { border-bottom: none; }
.todo:hover { background: var(--surface-2); }
.todo .cb {
  width: 16px; height: 16px; border-radius: 5px;
  border: 1.6px solid var(--border-strong);
  flex: none; cursor: pointer; display: grid; place-items: center;
  transition: all .15s;
}
.todo .cb:hover { border-color: var(--brand); }
.todo .cb.on { background: var(--brand); border-color: var(--brand); }
.todo .cb.on::after {
  content: ''; width: 7px; height: 4px;
  border-left: 1.8px solid #fff; border-bottom: 1.8px solid #fff;
  transform: rotate(-45deg) translateY(-1px);
}
.todo.done .txt { color: var(--text-3); text-decoration: line-through; }
.todo .txt { flex: 1; color: var(--text); }
.todo .act {
  font-size: 11.5px; color: var(--brand); font-weight: 550; opacity: .5;
  transition: opacity .15s, background .13s, border-color .13s;
  display: inline-flex; align-items: center; gap: 3px;
  border: 1px solid transparent; border-radius: 999px; padding: 2px 8px;
  white-space: nowrap; flex: none;
}
.todo .act svg { width: 11px; height: 11px; }
.todo:hover .act { opacity: 1; }
.todo .act:hover { background: var(--brand-soft); border-color: rgba(45, 90, 240, .22); }
.todo .act.linked {
  opacity: 1; color: var(--green);
  background: var(--green-soft, rgba(11, 158, 99, .08));
  border-color: rgba(11, 158, 99, .2);
}
.todo .act.linked:hover { background: rgba(11, 158, 99, .14); }
.todo.done .act.linked { opacity: .75; }

/* 台账详情里的「来源纪要」溯源块 */
.src-note {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 13px; margin-bottom: 16px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
}
.src-note .sn-ico {
  width: 30px; height: 30px; border-radius: 8px; flex: none;
  display: grid; place-items: center;
  background: var(--purple-soft); color: var(--purple);
}
.src-note .sn-ico svg { width: 15px; height: 15px; }
.src-note .sn-k { font-size: 10.5px; color: var(--text-3); font-weight: 600; letter-spacing: .3px; }
.src-note .sn-t {
  font-size: 12.5px; font-weight: 600; color: var(--text); line-height: 1.35;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.src-note .sn-m { font-size: 10.5px; color: var(--text-3); margin-top: 1px; }

/* ---------------- Team ---------------- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 14px; }
.member {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 16px 17px; box-shadow: var(--shadow-xs);
}
.member-top { display: flex; align-items: center; gap: 11px; }
.member-top .nm { font-size: 14px; font-weight: 620; }
.member-top .rl { font-size: 11.5px; color: var(--text-3); margin-top: 1px; }
.member-stats { display: flex; gap: 18px; margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--border); }
.member-stats div { font-size: 11px; color: var(--text-3); }
.member-stats b { display: block; font-size: 15px; font-weight: 620; color: var(--text); letter-spacing: -.3px; }
.load-bar { margin-top: 12px; }

/* ---------------- Design system page ---------------- */
.ds-section { margin-bottom: 22px; }
.ds-section > h3 { font-size: 13px; font-weight: 650; color: var(--text-3); letter-spacing: .5px; margin: 0 0 12px; }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.swatch { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.swatch .c { height: 52px; }
.swatch .i { padding: 8px 10px; }
.swatch .i b { display: block; font-size: 12px; font-weight: 600; }
.swatch .i span { font-family: var(--mono); font-size: 10.5px; color: var(--text-3); }
.type-row { display: flex; align-items: baseline; gap: 16px; padding: 9px 0; border-bottom: 1px dashed var(--border); }
.type-row .k { width: 118px; font-family: var(--mono); font-size: 11px; color: var(--text-3); flex: none; }
.type-row .sample { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; }
.type-row .spec { font-family: var(--mono); font-size: 10.5px; color: var(--text-3); flex: none; }
.comp-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.ds-note { font-size: 12.5px; color: var(--text-2); line-height: 1.7; }
.ds-note b { color: var(--text); }

/* ---------------- Empty ---------------- */
.empty { padding: 40px 20px; text-align: center; color: var(--text-3); font-size: 13px; }
.empty svg { width: 30px; height: 30px; stroke: var(--border-strong); fill: none; stroke-width: 1.5; margin-bottom: 8px; }

/* ---------------- Command palette ---------------- */
.overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(14, 21, 36, .35);
  backdrop-filter: blur(3px);
  display: none;
  align-items: flex-start; justify-content: center;
  padding-top: 13vh;
}
.overlay.show { display: flex; }
.palette {
  width: 560px; max-width: 92vw;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 24px 70px -20px rgba(14, 21, 36, .45);
  overflow: hidden;
  border: 1px solid var(--border);
  animation: pop .18s cubic-bezier(.2,.9,.3,1.1);
}
@keyframes pop { from { transform: translateY(-8px) scale(.98); opacity: 0; } }
.palette-input {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px; border-bottom: 1px solid var(--border);
}
.palette-input svg { width: 17px; height: 17px; stroke: var(--text-3); fill: none; stroke-width: 1.8; }
.palette-input input { flex: 1; border: none; outline: none; font-size: 14.5px; background: none; }
.palette-list { max-height: 340px; overflow-y: auto; padding: 6px; }
.palette-group { font-size: 10.5px; font-weight: 650; color: var(--text-3); letter-spacing: .5px; padding: 8px 10px 4px; }
.palette-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 8px;
  font-size: 13px; cursor: pointer;
}
.palette-item:hover, .palette-item.on { background: var(--brand-soft); color: var(--brand); }
.palette-item .k { margin-left: auto; font-size: 10.5px; color: var(--text-3); font-family: var(--mono); }
.palette-foot { padding: 9px 14px; border-top: 1px solid var(--border); font-size: 11px; color: var(--text-3); display: flex; gap: 14px; background: var(--surface-2); }

/* ---------------- Toast ---------------- */
.toast-wrap { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast {
  background: #0E1524; color: #fff;
  padding: 10px 16px; border-radius: 9px;
  font-size: 13px; font-weight: 500;
  box-shadow: 0 10px 30px -8px rgba(0,0,0,.4);
  display: flex; align-items: center; gap: 8px;
  animation: rise .22s cubic-bezier(.2,.9,.3,1.1);
}
@keyframes rise { from { transform: translateY(10px); opacity: 0; } }
.toast svg { width: 15px; height: 15px; stroke: #4ADE80; fill: none; stroke-width: 2.2; }

/* ---------------- Misc ---------------- */
.row { display: flex; align-items: center; gap: 8px; }
.grow { flex: 1; }
.muted { color: var(--text-3); }
.divider { height: 1px; background: var(--border); margin: 14px 0; }
.kv { display: flex; gap: 10px; font-size: 12.5px; padding: 7px 0; }
.kv .k { width: 84px; color: var(--text-3); flex: none; }
.kv .v { color: var(--text); }
.scroll-y { overflow-y: auto; }
.hidden { display: none !important; }

@media (max-width: 1280px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-grid { grid-template-columns: 1fr; }
}

/* ==========================================================
   v2 · 登录 / 抽屉 / 表单 / 弹层
   ========================================================== */

/* ---------------- 通用小控件 ---------------- */
.icon-btn {
  width: 28px; height: 28px; border-radius: 7px;
  display: inline-grid; place-items: center;
  color: var(--text-3);
  transition: all .15s;
  flex: none;
}
.icon-btn:hover { background: var(--surface-3); color: var(--text); }
.icon-btn svg { width: 15px; height: 15px; }
.icon-btn.sm { width: 24px; height: 24px; border-radius: 6px; }
.icon-btn.sm svg { width: 13.5px; height: 13.5px; }

.btn.danger { color: var(--red); border-color: #F6D5D6; background: #fff; }
.btn.danger:hover { background: var(--red-soft); border-color: #EFB9BB; color: var(--red); }
.btn:disabled { opacity: .6; cursor: not-allowed; }

/* ---------------- 启动态 ---------------- */
.boot {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 14px;
  background: var(--bg);
}
.boot-mark {
  width: 46px; height: 46px; border-radius: 13px;
  background: linear-gradient(135deg, #2D5AF0, #5B7CFF);
  color: #fff; font-weight: 700; font-size: 20px;
  display: grid; place-items: center;
  box-shadow: 0 10px 24px -8px rgba(45, 90, 240, .6);
  animation: breathe 1.4s ease-in-out infinite;
}
@keyframes breathe { 0%,100% { transform: scale(1); opacity: 1 } 50% { transform: scale(.94); opacity: .8 } }
.boot-txt { font-size: 13px; color: var(--text-3); text-align: center; line-height: 1.8; }

/* ---------------- 登录页 ---------------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr; }

.auth-left {
  background: linear-gradient(158deg, #101E42 0%, #1B3064 46%, #2A4E9E 100%);
  color: #fff;
  padding: 52px 56px;
  display: flex; flex-direction: column;
  position: relative; overflow: hidden;
}
.auth-left::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 82% 12%, rgba(120, 160, 255, .34), transparent 46%),
    radial-gradient(circle at 12% 88%, rgba(90, 200, 255, .18), transparent 42%);
}
.auth-left::after {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle at 40% 40%, #000 20%, transparent 78%);
}
.auth-left > * { position: relative; z-index: 1; }

.auth-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 54px; }
.auth-brand .brand-mark {
  width: 34px; height: 34px; border-radius: 10px; font-size: 15px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: none; backdrop-filter: blur(6px);
}
.auth-brand b { display: block; font-size: 15px; font-weight: 650; letter-spacing: -.2px; }
.auth-brand em { display: block; font-style: normal; font-size: 10.5px; letter-spacing: 1.4px; opacity: .55; margin-top: 1px; }

.auth-left h1 {
  margin: 0 0 16px;
  font-size: 38px; line-height: 1.24; font-weight: 680; letter-spacing: -1.2px;
}
.auth-sub { font-size: 14px; line-height: 1.75; color: rgba(255,255,255,.72); max-width: 400px; margin: 0 0 38px; }

.auth-points { list-style: none; padding: 0; margin: 0 0 auto; display: flex; flex-direction: column; gap: 18px; max-width: 430px; }
.auth-points li { display: flex; gap: 13px; align-items: flex-start; }
.auth-points i {
  width: 32px; height: 32px; border-radius: 9px; flex: none;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.16);
  display: grid; place-items: center;
}
.auth-points i svg { width: 15px; height: 15px; stroke: #A9C0FF; }
.auth-points b { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 2px; }
.auth-points span { font-size: 12px; color: rgba(255,255,255,.58); line-height: 1.5; }

.auth-quote {
  margin-top: 44px; padding: 16px 18px;
  border-radius: 12px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(8px);
  max-width: 430px;
}
.auth-quote .aq-k { font-size: 10.5px; letter-spacing: .8px; color: rgba(255,255,255,.5); margin-bottom: 5px; }
.auth-quote .aq-v { font-size: 13px; color: rgba(255,255,255,.86); }
.auth-quote .aq-v b { font-size: 16px; font-weight: 650; color: #fff; }

.auth-right { display: flex; align-items: center; justify-content: center; padding: 40px 28px; background: var(--surface); }
.auth-card { width: 100%; max-width: 372px; }

.auth-tabs { display: inline-flex; background: var(--surface-3); border-radius: 9px; padding: 3px; gap: 2px; margin-bottom: 26px; }
.auth-tabs button { font-size: 13px; font-weight: 550; padding: 6px 18px; border-radius: 7px; color: var(--text-2); transition: all .15s; }
.auth-tabs button.on { background: #fff; color: var(--text); box-shadow: var(--shadow-xs); font-weight: 620; }

.auth-card h2 { margin: 0 0 6px; font-size: 23px; font-weight: 660; letter-spacing: -.5px; }
.auth-tip { margin: 0 0 24px; font-size: 12.5px; color: var(--text-3); line-height: 1.6; }

.af { display: block; margin-bottom: 14px; }
.af span { display: block; font-size: 12px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.af input {
  width: 100%; height: 42px; padding: 0 13px;
  border: 1px solid var(--border); border-radius: 10px;
  font-size: 13.5px; background: #fff; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.af input:focus { border-color: var(--brand-line); box-shadow: 0 0 0 3px rgba(45,90,240,.1); }
.af input::placeholder { color: #B4BCCA; }

.auth-err { min-height: 18px; font-size: 12px; color: var(--red); margin-bottom: 4px; }
.auth-submit { width: 100%; height: 42px; justify-content: center; font-size: 13.5px; border-radius: 10px; }

.auth-or { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--text-3); font-size: 11.5px; }
.auth-or::before, .auth-or::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.auth-demo { width: 100%; height: 40px; justify-content: center; border-radius: 10px; font-size: 13px; }
.auth-foot { margin-top: 22px; font-size: 11.5px; color: var(--text-3); text-align: center; line-height: 1.6; }

@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .auth-left { display: none; }
}

/* ---------------- 新建下拉 ---------------- */
.create-wrap { position: relative; }
.create-menu {
  position: absolute; right: 0; top: 40px;
  width: 268px; padding: 6px;
  background: #fff; border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 16px 40px -12px rgba(14,21,36,.28);
  display: none; z-index: 60;
}
.create-menu.show { display: block; animation: pop .16s cubic-bezier(.2,.9,.3,1.1); }
.create-menu button {
  width: 100%; display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 8px; text-align: left;
  transition: background .13s;
}
.create-menu button:hover { background: var(--brand-soft); }
.create-menu i {
  width: 30px; height: 30px; border-radius: 8px; flex: none;
  background: var(--surface-3); display: grid; place-items: center;
}
.create-menu button:hover i { background: #fff; }
.create-menu i svg { width: 15px; height: 15px; stroke: var(--text-2); }
.create-menu b { display: block; font-size: 13px; font-weight: 550; color: var(--text); }
.create-menu span { display: block; font-size: 11px; color: var(--text-3); margin-top: 1px; }

/* ---------------- 抽屉 ---------------- */
.drawer-mask {
  position: fixed; inset: 0; z-index: 120;
  background: rgba(14,21,36,.34);
  backdrop-filter: blur(2px);
  display: flex; justify-content: flex-end;
  animation: fadeIn .18s ease;
}
@keyframes fadeIn { from { opacity: 0 } }
.drawer {
  width: 540px; max-width: 96vw; height: 100%;
  background: #fff;
  display: flex; flex-direction: column;
  box-shadow: -28px 0 70px -24px rgba(14,21,36,.4);
  animation: slideIn .24s cubic-bezier(.2,.8,.2,1);
}
@keyframes slideIn { from { transform: translateX(26px); opacity: .6 } }
.drawer-head {
  padding: 17px 22px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px; flex: none;
}
.drawer-head .di {
  width: 34px; height: 34px; border-radius: 9px; flex: none;
  background: var(--brand-soft); display: grid; place-items: center;
}
.drawer-head .di svg { width: 16px; height: 16px; stroke: var(--brand); }
.drawer-head .dt { font-size: 15px; font-weight: 620; letter-spacing: -.2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drawer-head .ds { font-size: 11.5px; color: var(--text-3); margin-top: 2px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 20px 22px; }
.drawer-foot {
  padding: 13px 22px; border-top: 1px solid var(--border);
  display: flex; align-items: center; gap: 8px;
  background: var(--surface-2); flex: none;
}

/* 详情表 */
.dl { display: flex; flex-direction: column; }
.dl-row {
  display: grid; grid-template-columns: 104px 1fr; gap: 14px;
  padding: 10px 0; border-bottom: 1px dashed var(--border);
  font-size: 13px;
}
.dl-row:last-child { border-bottom: none; }
.dl-row dt { color: var(--text-3); font-size: 12.5px; }
.dl-row dd { margin: 0; color: var(--text); line-height: 1.6; word-break: break-word; }
.dl-row dd .pill, .dl-row dd .tag { display: inline-flex; width: auto; }
.dl-row.tall { align-items: flex-start; }
.dl-sub { font-size: 11.5px; font-weight: 600; color: var(--text-3); letter-spacing: .4px; margin-bottom: 8px; }
.dl-meta { margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--border); font-size: 11px; color: var(--text-3); }

.mini-stats { display: flex; gap: 22px; margin-bottom: 10px; }
.mini-stats div { font-size: 11.5px; color: var(--text-3); }
.mini-stats b { display: block; font-size: 19px; font-weight: 650; color: var(--text); letter-spacing: -.5px; }

/* 表单 */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 14px; }
.fg { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.fg.full { grid-column: 1 / -1; }
.fg label { font-size: 12px; font-weight: 600; color: var(--text-2); display: flex; align-items: center; gap: 3px; }
.fg label em { color: var(--red); font-style: normal; }
.fg input, .fg select, .fg textarea {
  width: 100%; height: 36px; padding: 0 11px;
  border: 1px solid var(--border); border-radius: 8px;
  font-size: 13px; background: #fff; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.fg textarea { height: auto; min-height: 76px; padding: 9px 11px; line-height: 1.65; resize: vertical; }
.fg input:focus, .fg select:focus, .fg textarea:focus {
  border-color: var(--brand-line);
  box-shadow: 0 0 0 3px rgba(45,90,240,.09);
}
.fg input.bad, .fg select.bad, .fg textarea.bad { border-color: #F0A9AB; background: #FFFAFA; }
.fg .err { font-size: 11px; color: var(--red); min-height: 0; }
.fg .fg-hint { font-size: 10.5px; color: var(--text-3); line-height: 1.45; margin-top: -2px; }
.fg input[type="date"] { padding-right: 6px; }

/* ---------------- 确认弹层 ---------------- */
.modal-mask {
  position: fixed; inset: 0; z-index: 140;
  background: rgba(14,21,36,.4); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: fadeIn .16s ease;
}
.modal {
  width: 380px; max-width: 100%;
  background: #fff; border-radius: 16px; padding: 24px;
  box-shadow: 0 30px 80px -24px rgba(14,21,36,.5);
  animation: pop .2s cubic-bezier(.2,.9,.3,1.1);
  text-align: center;
}
.modal-ico {
  width: 44px; height: 44px; border-radius: 12px; margin: 0 auto 14px;
  background: var(--red-soft); display: grid; place-items: center;
}
.modal-ico svg { width: 20px; height: 20px; stroke: var(--red); }
.modal h3 { margin: 0 0 8px; font-size: 16px; font-weight: 650; letter-spacing: -.3px; }
.modal p { margin: 0 0 20px; font-size: 12.5px; color: var(--text-2); line-height: 1.65; }
.modal-foot { display: flex; gap: 8px; }
.modal-foot .btn { flex: 1; justify-content: center; height: 36px; }

/* ---------------- 补充 ---------------- */
.note-li { position: relative; padding-left: 15px; margin: 0 0 6px; color: var(--text-2); }
.note-li::before {
  content: ''; position: absolute; left: 3px; top: 9px;
  width: 4px; height: 4px; border-radius: 50%; background: var(--brand-line);
}
.toast.err svg { stroke: #FCA5A5; }
.member:hover { border-color: var(--brand-line); box-shadow: var(--shadow); }
.p-row, .feed-item, .doc-row, .ms .mid { transition: background .13s; }

/* ==========================================================
   v3 · 交付与运维
   ========================================================== */

/* 维护中：青色，区别于进行中（蓝）与已完成（绿） */
.pill.maint { background: var(--cyan-soft); color: var(--cyan); }

/* 字段多，明细表横向滚动 */
.dl-scroll { overflow-x: auto; }
.dl-scroll .dl-table { min-width: 1260px; }
.dl-table a svg { width: 11px; height: 11px; stroke: currentColor; fill: none; stroke-width: 2; }

/* 建设类型标签 */
.dl-stage {
  display: inline-flex; align-items: center;
  font-size: 11px; font-weight: 600;
  padding: 2px 8px; border-radius: 6px;
  white-space: nowrap;
  background: var(--surface-3); color: var(--text-2);
}
.dl-stage.new { background: var(--brand-soft); color: var(--brand); }
.dl-stage.p2 { background: var(--purple-soft); color: var(--purple); }
.dl-stage.up { background: var(--amber-soft); color: var(--amber); }
.dl-stage.mnt { background: var(--cyan-soft); color: var(--cyan); }

/* 在保标记 */
.maint-on, .maint-off {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10.5px; font-weight: 600;
  padding: 1px 7px; border-radius: 20px;
}
.maint-on { background: var(--green-soft); color: var(--green); }
.maint-on::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.maint-off { background: var(--surface-3); color: var(--text-3); }

/* 维护期提示条 */
.maint-banner {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; margin-bottom: 16px;
  background: linear-gradient(90deg, var(--cyan-soft), rgba(230,246,248,.4));
  border: 1px solid rgba(12,147,168,.18);
  border-radius: var(--radius);
}
.maint-banner .mb-ico {
  width: 32px; height: 32px; border-radius: 9px; flex: none;
  display: grid; place-items: center;
  background: #fff; color: var(--cyan);
}
.maint-banner .mb-ico svg { width: 16px; height: 16px; }
.maint-banner .mb-txt { flex: 1; min-width: 0; line-height: 1.5; }
.maint-banner .mb-txt b { display: block; font-size: 12.5px; font-weight: 620; color: var(--text); }
.maint-banner .mb-txt span { display: block; font-size: 11.5px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 密码遮罩 */
.secret-mask {
  font-family: var(--mono); font-size: 13px; letter-spacing: 1.5px;
  color: var(--text-2); user-select: none;
}
.secret-eye {
  display: inline-grid; place-items: center;
  width: 24px; height: 24px; margin-left: 4px;
  border-radius: 6px; vertical-align: middle;
  color: var(--text-3);
  transition: all .14s;
}
.secret-eye:hover { background: var(--surface-3); color: var(--brand); }
.secret-eye.on { background: var(--brand-soft); color: var(--brand); }
.secret-eye svg { width: 14px; height: 14px; }
.secret-eye.sm { width: 20px; height: 20px; margin-left: 2px; }
.secret-eye.sm svg { width: 12px; height: 12px; }

/* 列表密码 */
.ls-pwd-row { display: flex; align-items: center; margin-top: 2px; }
.ls-pwd {
  font-family: var(--mono); font-size: 12px; letter-spacing: 1px;
  color: var(--text-2); user-select: none;
}

/* 安全提示 */
.dl-security {
  display: flex; align-items: flex-start; gap: 8px;
  margin-top: 14px; padding: 11px 14px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface-2);
  font-size: 11.5px; color: var(--text-3); line-height: 1.6;
}
.dl-security svg { width: 14px; height: 14px; stroke: var(--amber); flex: none; margin-top: 2px; }

@media (max-width: 1280px) {
  .maint-banner { flex-wrap: wrap; }
}

/* ==========================================================
   v4 · 附件上传区（档案库 / 交付运维）
   ========================================================== */
.attach {
  margin: 0 0 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  overflow: hidden;
}
.attach-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 13px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.attach-title {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 620; color: var(--text);
}
.attach-title svg { width: 15px; height: 15px; color: var(--brand); }
.attach-count {
  display: inline-grid; place-items: center;
  min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 20px;
  background: var(--brand-soft); color: var(--brand);
  font-size: 10.5px; font-weight: 650;
}
.attach-hint { font-size: 11px; color: var(--text-3); }
.attach-head .btn.sm { padding: 4px 9px; font-size: 11px; }
.attach-head .btn.sm svg { width: 12px; height: 12px; margin-right: 4px; }
.attach-pct { margin-left: 6px; font-size: 11px; color: var(--brand); font-weight: 600; display: none; }
.attach-list { padding: 4px 0; }
.attach-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 13px;
  transition: background .13s;
}
.attach-item:hover { background: var(--surface); }
.ai-ico {
  width: 30px; height: 30px; flex: none;
  display: grid; place-items: center;
  border-radius: 8px;
  background: var(--brand-soft); color: var(--brand);
}
.ai-ico svg { width: 15px; height: 15px; }
.ai-main { flex: 1; min-width: 0; }
.ai-name {
  font-size: 12px; font-weight: 550; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ai-meta {
  display: flex; align-items: center; gap: 5px;
  font-size: 10.5px; color: var(--text-3); margin-top: 1px;
}
.ai-act {
  width: 26px; height: 26px; flex: none;
  display: grid; place-items: center;
  border-radius: 6px;
  color: var(--text-3); opacity: .65;
  transition: all .13s;
}
.ai-act:hover { opacity: 1; background: var(--surface-3); color: var(--brand); }
.ai-act.danger:hover { background: var(--red-soft); color: var(--red); }
.ai-act svg { width: 13px; height: 13px; }
.attach-empty {
  padding: 18px 13px; text-align: center;
  font-size: 11.5px; color: var(--text-3);
}
.attach-foot {
  padding: 7px 13px;
  border-top: 1px dashed var(--border);
  font-size: 10.5px; color: var(--text-3);
}
