/* 小禾装无忧 · 网页用户端样式（v2 仪表盘版）
   设计基调：浅灰绿底 + 白卡片 + 深绿侧边栏 + 绿色点缀。
   左侧固定侧边栏导航 + 顶部栏，内容区卡片化；参考「装修管家类」仪表盘风格。
   主题：<html data-theme="..."> 切换，色值集中在本文件，[data-theme=*] 只覆盖内容区变量，
   侧边栏固定深绿不随主题变（和参考图一致）。 */

:root,
[data-theme="default"] {
  --c-bg: #f4f4f1;
  --c-panel: #ffffff;
  --c-panel-2: #fafafa;
  --c-border: #e4ebe7;
  --c-border-soft: #eef2f0;
  --c-text: #1f2a27;
  --c-text-weak: #5d6b66;
  --c-text-faint: #93a39c;
  --c-primary: #1f8a5f;
  --c-primary-dark: #15623f;
  --c-primary-soft: #e4f1ea;
  --c-warn: #c08a2e;
  --c-warn-soft: #fbf1dd;
  --c-danger: #c0473a;
  --c-danger-soft: #fbeae8;
  --c-sidebar-bg: rgba(255,255,255,.70);
  --c-sidebar-fg: var(--c-text);
  --c-sidebar-muted: var(--c-text-faint);
  --c-sidebar-hover: rgba(31,42,39,.05);
  --c-sidebar-active-bg: var(--c-primary-soft);
  --c-sidebar-active-fg: var(--c-primary);
  --c-sidebar-logo-bg: var(--c-primary);
  --c-sidebar-logo-fg: #ffffff;
  --c-sidebar-divider: var(--c-border);
  --shadow: 0 1px 3px rgba(31,42,39,.06), 0 1px 2px rgba(31,42,39,.04);
  --shadow-hover: 0 6px 18px rgba(31,42,39,.10), 0 2px 6px rgba(31,42,39,.06);
  --radius: 12px; /* 文章详情/提示块等通用圆角，集中定义避免回退 0 */
}

[data-theme="fresh"] {
  --c-bg: #eef3f1;
  --c-panel: #ffffff;
  --c-panel-2: #f3fcf9;
  --c-border: #d6f0e7;
  --c-text: #16302a;
  --c-text-weak: #4f6f66;
  --c-text-faint: #84a89d;
  --c-primary: #14a374;
  --c-primary-dark: #0c7a54;
  --c-primary-soft: #d9f5ea;
  --c-warn: #cf8a23;
  --c-warn-soft: #fbf0d6;
  --c-danger: #cf463a;
  --c-danger-soft: #fbe7e4;
  --c-sidebar-bg: rgba(255,255,255,.70);
  --c-sidebar-fg: var(--c-text);
  --c-sidebar-muted: var(--c-text-faint);
  --c-sidebar-hover: rgba(22,48,42,.05);
  --c-sidebar-active-bg: var(--c-primary-soft);
  --c-sidebar-active-fg: var(--c-primary);
  --c-sidebar-logo-bg: var(--c-primary);
  --c-sidebar-logo-fg: #ffffff;
  --c-sidebar-divider: var(--c-border);
}

[data-theme="warm"] {
  --c-bg: #faf4ec;
  --c-panel: #ffffff;
  --c-panel-2: #fdf8f1;
  --c-border: #ece0d2;
  --c-text: #2c241c;
  --c-text-weak: #6e5e4d;
  --c-text-faint: #a08b76;
  --c-primary: #b06a3b;
  --c-primary-dark: #8a4f29;
  --c-primary-soft: #f6e6d8;
  --c-warn: #c2922e;
  --c-warn-soft: #fbf0d8;
  --c-danger: #bf4a3a;
  --c-danger-soft: #fbe7e2;
  --c-sidebar-bg: rgba(255,255,255,.72);
  --c-sidebar-fg: var(--c-text);
  --c-sidebar-muted: var(--c-text-faint);
  --c-sidebar-hover: rgba(44,36,28,.05);
  --c-sidebar-active-bg: var(--c-primary-soft);
  --c-sidebar-active-fg: var(--c-primary);
  --c-sidebar-logo-bg: var(--c-primary);
  --c-sidebar-logo-fg: #ffffff;
  --c-sidebar-divider: var(--c-border);
}

[data-theme="night"] {
  --c-bg: #14110f;
  --c-panel: #1e1b18;
  --c-panel-2: #24201c;
  --c-border: #322c27;
  --c-border-soft: #2a2521;
  --c-text: #ece6df;
  --c-text-weak: #a99f93;
  --c-text-faint: #7c7268;
  --c-primary: #58c79c;
  --c-primary-dark: #3fa67e;
  --c-primary-soft: #1f3a30;
  --c-warn: #d6a24a;
  --c-warn-soft: #33291a;
  --c-danger: #df6b5d;
  --c-danger-soft: #3a201d;
  --c-sidebar-bg: rgba(30,27,24,.66);
  --c-sidebar-fg: var(--c-text);
  --c-sidebar-muted: var(--c-text-faint);
  --c-sidebar-hover: rgba(255,255,255,.06);
  --c-sidebar-active-bg: var(--c-primary-soft);
  --c-sidebar-active-fg: var(--c-primary);
  --c-sidebar-logo-bg: var(--c-primary);
  --c-sidebar-logo-fg: #0e1a14;
  --c-sidebar-divider: var(--c-border);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font: 15px/1.7 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

a { color: var(--c-primary); text-decoration: none; }
a:hover { color: var(--c-primary-dark); }

img { max-width: 100%; }

/* ============ 首屏加载态 ============ */
.boot {
  display: flex; align-items: center; justify-content: center;
  min-height: 60vh; color: var(--c-text-faint); font-size: 15px;
}

/* ============ 应用骨架：侧边栏 + 内容列 ============ */
.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-w, 248px) minmax(0, 1fr);
  min-height: 100vh;
}

/* ---- 侧边栏（半透明毛玻璃，跟随主题） ---- */
.sidebar {
  position: sticky; top: 0;
  align-self: start;
  height: 100vh;
  background: var(--c-sidebar-bg);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  color: var(--c-sidebar-fg);
  border-right: 1px solid var(--c-sidebar-divider);
  display: flex; flex-direction: column;
  padding: 18px 14px;
  overflow-y: auto;
}
.sidebar-brand {
  display: flex; align-items: center; gap: 11px;
  padding: 6px 8px 18px;
  border-bottom: 1px solid var(--c-sidebar-divider);
  margin-bottom: 12px;
}
.sidebar-logo {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--c-sidebar-logo-bg);
  color: var(--c-sidebar-logo-fg);
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
}
.sidebar-logo svg { width: 20px; height: 20px; display: block; }
.sidebar-brand b { color: var(--c-sidebar-fg); font-size: 16px; font-weight: 600; display: block; line-height: 1.2; }
.sidebar-brand small { color: var(--c-sidebar-muted); font-size: 11px; }

.sidebar-nav { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.sidebar-group { margin-bottom: 14px; }
.sidebar-group-label {
  font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--c-sidebar-muted); padding: 6px 10px; font-weight: 600;
}
.sidebar-link {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 10px; border-radius: 9px;
  color: var(--c-sidebar-fg); font-size: 14px;
  cursor: pointer; margin-bottom: 2px;
}
.sidebar-link:hover { background: var(--c-sidebar-hover); color: var(--c-sidebar-fg); }
.sidebar-link.active { background: var(--c-sidebar-active-bg); color: var(--c-sidebar-active-fg); font-weight: 600; box-shadow: inset 3px 0 0 var(--c-sidebar-active-fg); }
.sidebar-link.active .ico { color: var(--c-sidebar-active-fg); }
.sidebar-link-inner { display: flex; align-items: center; gap: 11px; flex: 1; min-width: 0; }
.sidebar-link .ico { width: 20px; height: 20px; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; line-height: 0; color: var(--c-sidebar-fg); }
.sidebar-link .label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-foot { margin-top: auto; padding: 12px 10px 4px; font-size: 11px; color: var(--c-sidebar-muted); }

/* 侧边栏左下方：知识库后台入口（与导航分组视觉上独立，整页跳后台） */
.sidebar-admin { margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--c-sidebar-divider); }
.sidebar-admin-label { padding: 4px 10px; font-size: 11px; font-weight: 600; color: var(--c-sidebar-muted); letter-spacing: .04em; }
.sidebar-admin-entry {
  display: flex; align-items: center; gap: 11px;
  margin: 4px 6px 0; padding: 9px 10px;
  border-radius: 10px;
  background: var(--c-primary-soft);
  color: var(--c-primary);
  font-size: 14px; font-weight: 600; text-decoration: none;
  border: 1px solid transparent;
  transition: background .15s ease, color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.sidebar-admin-entry:hover { background: var(--c-primary); color: #fff; box-shadow: 0 2px 8px rgba(20,50,35,.18); }
.sidebar-admin-entry:active { transform: translateY(1px); }
.sidebar-admin-entry .ico {
  width: 20px; height: 20px; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center; line-height: 0; color: inherit;
}
.sidebar-admin-entry .ico svg { width: 20px; height: 20px; }
.sidebar-admin-entry .label { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-admin-entry .enter { flex: 0 0 auto; opacity: .65; color: inherit; transition: opacity .15s ease, transform .15s ease; }
.sidebar-admin-entry:hover .enter { opacity: 1; transform: translateX(2px); }
.sidebar-admin-entry .enter svg { width: 16px; height: 16px; }

/* 桌面折叠态（若未来启用 .app-shell.collapsed）：只留图标居中 */
.app-shell.collapsed .sidebar-admin-label { display: none; }
.app-shell.collapsed .sidebar-admin-entry { justify-content: center; padding: 9px 0; }
.app-shell.collapsed .sidebar-admin-entry .label,
.app-shell.collapsed .sidebar-admin-entry .enter { display: none; }

/* ---- 内容列 ---- */
.main-col { display: flex; flex-direction: column; min-width: 0; }

.topbar {
  position: sticky; top: 0; z-index: 30;
  height: 60px; display: flex; align-items: center; gap: 14px;
  padding: 0 22px;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--c-border);
}
.hamburger {
  display: none; flex-direction: column; gap: 4px; justify-content: center;
  width: 38px; height: 38px; border: 1px solid var(--c-border); border-radius: 9px;
  background: #fff; cursor: pointer; padding: 0 9px;
}
.hamburger span { height: 2px; background: var(--c-text); border-radius: 2px; }
.topbar-search {
  flex: 1; max-width: 460px; display: flex; gap: 8px;
}
.topbar-search input {
  flex: 1; min-width: 0; padding: 9px 14px; font: inherit;
  border: 1px solid var(--c-border); border-radius: 10px; background: #fff; color: var(--c-text);
}
.topbar-search input:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 3px var(--c-primary-soft); }
.topbar-search input::placeholder { color: var(--c-text-faint); }
.topbar-spacer { flex: 1; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }

.side-backdrop {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 40;
}

.content {
  flex: 1; width: 100%; max-width: var(--maxw, 1280px); margin: 0 auto;
  padding: 28px 28px 60px;
}

/* ============ 通用：按钮 ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 16px; border: 1px solid var(--c-border); border-radius: 10px;
  background: #fff; color: var(--c-text); cursor: pointer; font: inherit; white-space: nowrap;
  transition: border-color .12s ease, color .12s ease, background .12s ease;
}
.btn:hover:not([disabled]) { border-color: var(--c-primary); color: var(--c-primary); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn.primary { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.btn.primary:hover:not([disabled]) { background: var(--c-primary-dark); border-color: var(--c-primary-dark); color: #fff; }
.btn.ghost { background: #fff; border-color: var(--c-border); color: var(--c-text-weak); }
.btn.ghost:hover:not([disabled]) { color: var(--c-primary); border-color: var(--c-primary); background: var(--c-primary-soft); }
.btn.sm { padding: 6px 12px; font-size: 13px; border-radius: 8px; }
.btn.danger { background: var(--c-danger); border-color: var(--c-danger); color: #fff; }
.btn.danger:hover:not([disabled]) { filter: brightness(.94); }
.btn.ghost.danger { background: #fff; border-color: var(--c-danger); color: var(--c-danger); }
.btn.ghost.danger:hover:not([disabled]) { background: var(--c-danger-soft); border-color: var(--c-danger); color: var(--c-danger); }
.btn.full { width: 100%; }
a.btn { text-decoration: none; }

/* ============ 通用：区块 / 标题 ============ */
.page-head { margin-bottom: 22px; }
.page-title { margin: 0 0 6px; font-size: 24px; line-height: 1.35; }
.crumb { color: var(--c-text-faint); font-size: 13px; margin-bottom: 10px; }
.crumb a { color: var(--c-text-weak); }
.crumb a:hover { color: var(--c-primary); }
.muted { color: var(--c-text-weak); }
.list-count { margin: 0 0 12px; color: var(--c-text-faint); font-size: 13px; }
.more-line { margin-top: 20px; }

.section { margin-bottom: 30px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-title {
  margin: 0; font-size: 17px; font-weight: 600;
  display: flex; align-items: center; gap: 9px;
}
.section-title::before {
  content: ""; width: 4px; height: 16px; border-radius: 3px;
  background: var(--c-primary); display: inline-block;
}
.link-btn { color: var(--c-primary); font-size: 13px; font-weight: 600; white-space: nowrap; }

/* ============ 面板 / 卡片 ============ */
.panel {
  background: var(--c-panel); border: 1px solid var(--c-border);
  border-radius: 14px; padding: 20px; box-shadow: var(--shadow);
}
.card {
  display: block; background: var(--c-panel); border: 1px solid var(--c-border);
  border-radius: 14px; color: var(--c-text); box-shadow: var(--shadow);
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.card:hover { border-color: var(--c-primary); box-shadow: var(--shadow-hover); transform: translateY(-2px); color: var(--c-text); }
.card-inner { padding: 16px 18px; }
.card-title { margin: 0 0 6px; font-size: 16px; font-weight: 600; line-height: 1.5; }
.card-summary { margin: 0 0 10px; color: var(--c-text-weak); font-size: 13px; line-height: 1.65; }
.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }

.chip {
  display: inline-block; padding: 1px 9px; border-radius: 999px; font-size: 12px;
  background: var(--c-primary-soft); color: var(--c-primary-dark); white-space: nowrap;
}
.chip.ghost { background: var(--c-panel-2); color: var(--c-text-faint); }
.date { color: var(--c-text-faint); font-size: 12px; margin-left: auto; white-space: nowrap; }

.card-list { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

/* ============ 仪表盘首页 ============ */
.hero-dash {
  position: relative; overflow: hidden;
  color: var(--c-text); padding: 18px 4px 28px; margin-bottom: 18px;
  display: flex; flex-direction: column; justify-content: space-between; min-height: 220px;
}
.hero-main { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; }
.hero-left { flex: 1; min-width: 0; }
.hero-greet { font-size: 51px; font-weight: 700; margin: 0 0 12px; color: var(--c-text); letter-spacing: -.8px; }
.hero-slogan {
  font-size: 33px; color: var(--c-primary-dark); font-weight: 700;
  margin: 0 0 12px;
}
.hero-stage { font-size: 17px; color: var(--c-text-weak); margin: 0 0 18px; }
.hero-stage b { font-weight: 700; color: var(--c-primary-dark); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: auto; padding-top: 32px; }
.hero-actions .btn.solid { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.hero-actions .btn.solid:hover { background: var(--c-primary-dark); border-color: var(--c-primary-dark); }

/* 天气小组件（无边框无背景，位置左移） */
.weather-widget {
  flex: 0 0 auto;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; color: var(--c-text); padding-top: 8px;
  margin-left: auto; margin-right: 60px;
}
.weather-main { display: flex; align-items: center; gap: 8px; line-height: 1; }
.weather-icon { width: 52px; height: 52px; color: var(--c-primary); }
.weather-icon svg { width: 100%; height: 100%; }
.weather-temp { font-size: 30px; font-weight: 700; }
.weather-text { font-size: 13px; color: var(--c-text-weak); margin-top: 4px; }
.weather-city { font-size: 11px; color: var(--c-text-faint); margin-top: 2px; }

.stat-grid {
  display: grid; gap: 14px; margin-bottom: 24px;
  grid-template-columns: repeat(3, 1fr);
}

/* 顶部左右并排：概况 + 待办事件 */
.top-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  margin-bottom: 24px;
}
.top-row .hero-dash { margin-bottom: 0; }
.top-row .panel { height: 100%; display: flex; flex-direction: column; }
.top-row .panel > .section-head { flex: 0 0 auto; }
.top-row .panel > div:last-child { flex: 1; }
.stat-card {
  display: block; color: inherit; text-decoration: none;
  background: var(--c-panel); border: 1px solid var(--c-border); border-radius: 14px;
  padding: 16px 18px; box-shadow: var(--shadow);
  cursor: pointer; transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.stat-card:hover { border-color: var(--c-primary); box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.stat-card .stat-ico {
  width: 34px; height: 34px; border-radius: 9px; background: var(--c-primary-soft);
  color: var(--c-primary-dark); display: inline-flex; align-items: center; justify-content: center; font-size: 17px;
  margin-bottom: 10px;
}
.stat-card .stat-num { font-size: 24px; font-weight: 700; line-height: 1.1; }
.stat-card .stat-num small { font-size: 14px; font-weight: 600; color: var(--c-text-weak); }
.stat-card .stat-label { color: var(--c-text-faint); font-size: 13px; margin-top: 2px; }
.stat-card .stat-sub { color: var(--c-text-weak); font-size: 12px; margin-top: 6px; }

/* 两栏布局：主列 + 侧列 */
.dash-cols { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 18px; align-items: start; }

/* 当前施工节点（方案 B：横向流程条 + 节点透视） */
.home-dashboard > .panel { padding: 22px 24px; }
.flowbar {
  display: flex; gap: 0; overflow-x: auto; padding: 6px 0 12px; margin-bottom: 22px;
  scrollbar-width: thin;
}
.flow-step {
  flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 0;
  min-width: 110px; cursor: pointer; position: relative; padding: 10px 0 8px;
}
.flow-step::after {
  content: ""; position: absolute; top: 26px; right: -1px; width: 100%; height: 4px;
  background: var(--c-border-soft); z-index: 0;
}
.flow-step:last-child::after { display: none; }
.flow-no {
  width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; line-height: 1; z-index: 1;
  background: var(--c-panel); border: 2px solid var(--c-border); color: var(--c-text-faint);
}
.flow-name { font-size: 13px; color: var(--c-text-weak); margin-top: 8px; white-space: nowrap; }
.flow-step.done .flow-no { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.flow-step.doing .flow-no { background: var(--c-warn); border-color: var(--c-warn); color: #fff; box-shadow: 0 0 0 4px var(--c-warn-soft); }
.flow-step.doing .flow-name { color: var(--c-warn); font-weight: 600; }
.flow-step.done .flow-no { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.flow-step::after { background: var(--c-border-soft); }
.flow-step.done::after { background: var(--c-primary); }

/* 真实当前节点：底部小圆点标记 */
.flow-step.cur .flow-no { position: relative; }
.flow-step.cur .flow-no::after {
  content: ""; position: absolute; bottom: -5px; left: 50%; transform: translateX(-50%);
  width: 5px; height: 5px; border-radius: 50%; background: var(--c-warn);
}
/* 用户手动选中的节点：主色描边 + 柔和背景 */
.flow-step.sel .flow-no {
  border-color: var(--c-primary); background: var(--c-primary-soft); color: var(--c-primary-dark);
  box-shadow: 0 0 0 4px var(--c-primary-soft);
}
.flow-step.sel .flow-name { color: var(--c-primary); font-weight: 700; }

.node-detail { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px; align-items: stretch; }
.nd-left { min-width: 0; }
.nd-right { min-width: 0; }

/* 流程示意图：上一步 → 当前 → 下一步 */
.nd-flow { display: flex; align-items: stretch; gap: 12px; margin-bottom: 22px; flex-wrap: wrap; }
.nd-flow-node {
  flex: 1 1 0; min-width: 0; border-radius: 12px; padding: 16px 18px;
  background: var(--c-panel-2); border: 1px solid var(--c-border);
}
.nd-flow-node.cur { background: var(--c-primary-soft); border-color: var(--c-primary); }
.nd-flow-node.focus { background: var(--c-panel); border-color: var(--c-primary); box-shadow: 0 0 0 1px var(--c-primary-soft); }
.nd-flow-node.done { background: var(--c-panel-2); border-style: dashed; }
.nd-flow-tag { font-size: 12px; color: var(--c-text-faint); margin-bottom: 6px; }
.nd-flow-node.cur .nd-flow-tag { color: var(--c-primary-dark); font-weight: 700; }
.nd-flow-node.focus .nd-flow-tag { color: var(--c-primary); font-weight: 700; }
.nd-flow-name { font-size: 18px; font-weight: 700; color: var(--c-text); }
.nd-flow-days { font-size: 13px; color: var(--c-text-weak); margin-top: 5px; }
.nd-arrow { flex: 0 0 26px; align-self: center; color: var(--c-text-faint); display: inline-flex; align-items: center; justify-content: center; }
.nd-arrow svg { width: 20px; height: 20px; }

.nd-sub { font-size: 14px; color: var(--c-text-weak); font-weight: 600; margin: 4px 0 14px; }
.nd-checks { display: grid; gap: 10px; }
.nd-check { display: flex; align-items: flex-start; gap: 11px; }
.nd-check-ico {
  flex: 0 0 20px; width: 20px; height: 20px; margin-top: 1px; color: var(--c-text-faint);
}
.nd-check-ico svg { width: 20px; height: 20px; display: block; }
.nd-check.on .nd-check-ico { color: var(--c-primary); }
.nd-check-text { font-size: 14px; color: var(--c-text-weak); line-height: 1.6; }
.nd-check.on .nd-check-text { color: var(--c-text); }
.nd-edit-btn { margin-top: 10px; align-self: flex-start; }

/* 右栏：进度环 + 位置条 + 工期（整栏做成视觉卡片，拉伸后与左栏等高，避免大片留白） */
.nd-right {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  background: var(--c-panel-2); border: 1px solid var(--c-border); border-radius: 14px; padding: 24px;
}
.nd-ring { position: relative; width: 132px; height: 132px; display: flex; align-items: center; justify-content: center; }
.nd-ring-num {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 30px; font-weight: 800; color: var(--c-primary-dark);
}
/* 进度环下方统一文案容器：三段文案 + 17 段进度条按一致间距排列 */
.nd-meta { width: 100%; display: flex; flex-direction: column; gap: 8px; }
.nd-meta-row { font-size: 14px; line-height: 1.5; text-align: center; color: var(--c-text-weak); }
/* 主信息（整体进度）更深，辅助信息（阶段标签 / 工期）更浅 */
.nd-meta-row.overall { color: var(--c-text); font-weight: 600; }
.nd-meta-row.stage,
.nd-meta-row.days { color: var(--c-text-faint); font-size: 13px; }
.nd-pos { display: flex; gap: 4px; height: 12px; }
.nd-pos-seg {
  flex: 1 1 0; min-width: 0; border-radius: 4px; background: var(--c-border-soft);
}
.nd-pos-seg.done { background: var(--c-primary); }
.nd-pos-seg.doing { background: var(--c-warn); }

/* 线性图标容器尺寸约束（svgIcon 注入的 SVG 节点） */
.sidebar-link .ico { width: 20px; height: 20px; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; line-height: 0; align-self: center; }
.sidebar-link .label { align-self: center; }
.sidebar-link .ico svg,
.stat-ico svg,
.cat-icon svg,
.sidebar-logo svg,
.topbar-actions .btn svg { display: block; }
.sidebar-link .ico svg { width: 20px; height: 20px; }
.stat-ico svg { width: 18px; height: 18px; }
.cat-icon svg { width: 26px; height: 26px; margin: 0 auto; }
.sidebar-logo svg { width: 20px; height: 20px; }
.topbar-actions .btn svg { width: 16px; height: 16px; }

/* 待办清单 */
.todo-item {
  display: flex; align-items: flex-start; gap: 10px; padding: 11px 0;
  border-bottom: 1px dashed var(--c-border-soft);
}
.todo-item:last-child { border-bottom: none; }
.todo-box {
  flex: 0 0 18px; width: 18px; height: 18px; margin-top: 2px; border-radius: 5px;
  border: 1.5px solid var(--c-primary); cursor: pointer; display: inline-flex;
  align-items: center; justify-content: center; color: #fff; font-size: 11px;
}
.todo-box.on { background: var(--c-primary-soft); border-color: var(--c-primary); color: var(--c-primary-dark); }
.todo-text { flex: 1; min-width: 0; }
.todo-text.done { color: var(--c-text-faint); text-decoration: line-through; }
.todo-src { font-size: 11px; color: var(--c-text-faint); }

/* 最近动态 */
.activity-item { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--c-border-soft); }
.activity-item:last-child { border-bottom: none; }
.activity-dot { flex: 0 0 8px; width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; background: var(--c-primary); }
.activity-main { flex: 1; min-width: 0; }
.activity-title { font-size: 14px; font-weight: 500; }
.activity-title a { color: var(--c-text); }
.activity-title a:hover { color: var(--c-primary); }
.activity-meta { font-size: 12px; color: var(--c-text-faint); margin-top: 1px; }

/* ============ 分类网格 / 工具入口 ============ */
.cat-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.cat-item {
  display: block; background: var(--c-panel); border: 1px solid var(--c-border);
  border-radius: 14px; padding: 18px 14px; text-align: center; color: var(--c-text);
  box-shadow: var(--shadow); transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.cat-item:hover { border-color: var(--c-primary); box-shadow: var(--shadow-hover); transform: translateY(-2px); color: var(--c-text); }
.cat-icon { font-size: 26px; line-height: 1.2; }
.cat-name { margin-top: 8px; font-size: 15px; font-weight: 600; }
.cat-desc { margin-top: 4px; font-size: 12px; color: var(--c-text-faint); }

.home-tool-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.home-progress { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.bar { flex: 1; height: 8px; background: var(--c-border-soft); border-radius: 999px; overflow: hidden; }
.bar.slim { height: 6px; }
.bar-fill { height: 100%; background: linear-gradient(90deg, var(--c-primary), var(--c-primary-dark)); border-radius: 999px; }
.home-progress-txt { font-size: 12px; color: var(--c-text-weak); white-space: nowrap; }

/* ============ 搜索框（首页 hero 内） ============ */
.search-box { display: flex; gap: 10px; max-width: 560px; }
.search-input {
  flex: 1; min-width: 0; padding: 11px 15px; font: inherit;
  border: 1px solid var(--c-border); border-radius: 10px; background: #fff; color: var(--c-text);
}
.search-input:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 3px var(--c-primary-soft); }
.search-input::placeholder { color: var(--c-text-faint); }

/* ============ 表单 / 字段 ============ */
.field {
  margin-bottom: 16px;
  width: 100%;
  padding: 10px 13px;
  font: inherit;
  border: 1px solid var(--c-border);
  border-radius: 10px;
  background: #fff;
  color: var(--c-text);
}
.field:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 3px var(--c-primary-soft); }
.field > label { display: block; font-size: 13px; color: var(--c-text-weak); margin-bottom: 6px; font-weight: 600; }
.input, input.input, textarea.input, select.input {
  width: 100%; padding: 10px 13px; font: inherit;
  border: 1px solid var(--c-border); border-radius: 10px; background: #fff; color: var(--c-text);
}
.input:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 3px var(--c-primary-soft); }
textarea.input { resize: vertical; min-height: 84px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.row > .field { flex: 1; min-width: 200px; }

/* ============ 表格 ============ */
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th, .tbl td { padding: 11px 12px; text-align: left; border-bottom: 1px solid var(--c-border-soft); }
.tbl th { color: var(--c-text-weak); font-weight: 600; font-size: 13px; background: var(--c-panel-2); }
.tbl tbody tr:hover { background: var(--c-panel-2); }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }

/* ============ 通用列表 ============ */
.list { list-style: none; margin: 0; padding: 0; }
.list-item {
  display: flex; align-items: center; gap: 12px; padding: 13px 4px;
  border-bottom: 1px solid var(--c-border-soft);
}
.list-item:last-child { border-bottom: none; }
.list-item .li-main { flex: 1; min-width: 0; }
.list-item .li-title { font-weight: 500; }
.list-item .li-sub { font-size: 12px; color: var(--c-text-faint); }

/* ---- 状态类（被 checklist / stage / vision 等视图复用） ---- */
/* 勾选完成态：弱化 + 绿色左边线，用于验收清单 / 阶段项 */
.checked { opacity: .66; }
.checked .li-title, .checked .st-name { text-decoration: line-through; }
.checked .st-dot { background: var(--c-primary); }
/* 风险/问题标签：红色 */
.bad {
  display: inline-block; padding: 2px 9px; border-radius: 999px;
  font-size: 12px; font-weight: 600;
  color: #b23b3b; background: #fdecec; border: 1px solid #f3c9c9;
}

/* ============ 进度条（通用） ============ */
.bar-line { display: flex; align-items: center; gap: 10px; }
.bar-line .pct { font-size: 13px; color: var(--c-text-weak); white-space: nowrap; }

/* ============ 骨架屏 / 空状态 ============ */
.skeleton { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.sk-card { background: var(--c-panel); border: 1px solid var(--c-border-soft); border-radius: 14px; padding: 16px; }
.sk-line { height: 12px; border-radius: 6px; margin-bottom: 10px; background: linear-gradient(90deg, #eee 25%, #f6f6f6 37%, #eee 63%); background-size: 400% 100%; animation: sk-shine 1.4s ease infinite; }
.sk-line:last-child { margin-bottom: 0; }
.sk-line.w40 { width: 40%; }
.sk-line.w60 { width: 60%; }
.sk-line.w90 { width: 90%; }
@keyframes sk-shine { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
@media (prefers-reduced-motion: reduce) { .sk-line { animation: none; } .card, .cat-item { transition: none; } }

.empty {
  background: var(--c-panel); border: 1px dashed var(--c-border);
  border-radius: 14px; padding: 40px 20px; text-align: center; color: var(--c-text-weak);
}
.empty p { margin: 0 0 14px; }

/* ============ 文章详情 ============ */
.article { background: var(--c-panel); border: 1px solid var(--c-border); border-radius: 16px; padding: 30px 32px 34px; box-shadow: var(--shadow); }
.article-title { margin: 0 0 12px; font-size: 25px; line-height: 1.45; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 18px; }
.article-summary { margin: 0 0 22px; padding: 13px 16px; border-left: 3px solid var(--c-primary); background: var(--c-panel-2); border-radius: 0 var(--radius) var(--radius) 0; color: var(--c-text-weak); font-size: 14px; }
.article-body { font-size: 15.5px; line-height: 1.9; }
.blk-h { margin: 30px 0 12px; font-size: 18px; font-weight: 600; }
.blk-h:first-child { margin-top: 0; }
.blk-p { margin: 0 0 15px; }
.blk-tip, .blk-warn { display: flex; gap: 9px; align-items: flex-start; margin: 0 0 15px; padding: 12px 15px; border-radius: var(--radius); font-size: 14.5px; }
.blk-tip { background: var(--c-primary-soft); color: var(--c-primary-dark); }
.blk-warn { background: var(--c-warn-soft); color: var(--c-warn); }
.blk-ico { flex: 0 0 auto; line-height: 1.6; display: inline-flex; }
.blk-ico svg { width: 18px; height: 18px; }
.blk-step { display: flex; gap: 11px; align-items: flex-start; margin: 0 0 13px; }
.step-no { flex: 0 0 24px; width: 24px; height: 24px; margin-top: 3px; border-radius: 50%; background: var(--c-primary); color: #fff; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; }
.step-txt { flex: 1; min-width: 0; }
.blk-check { display: flex; gap: 9px; align-items: flex-start; margin: 0 0 10px; }
.check-box { flex: 0 0 auto; width: 19px; height: 19px; margin-top: 5px; border-radius: 4px; border: 1px solid var(--c-primary); color: var(--c-primary); font-size: 12px; display: inline-flex; align-items: center; justify-content: center; }
.blk-qa { margin: 0 0 15px; padding: 14px 16px; border: 1px solid var(--c-border-soft); border-radius: var(--radius); background: var(--c-panel-2); }
.qa-q { font-weight: 600; margin-bottom: 6px; }
.qa-a { color: var(--c-text-weak); }
.blk-img-wrap { margin: 0 0 18px; }
.blk-img { display: block; width: 100%; border-radius: var(--radius); border: 1px solid var(--c-border-soft); }
.blk-cap { margin-top: 7px; text-align: center; color: var(--c-text-faint); font-size: 12.5px; }
.related { list-style: none; margin: 0; padding: 0; }
.related li { padding: 9px 0; border-bottom: 1px dashed var(--c-border-soft); }
.related li:last-child { border-bottom: none; }

/* ============ 分页 ============ */
.pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 26px; }
.pager-info { color: var(--c-text-weak); font-size: 13px; }

/* ============ 移动端：侧边栏变抽屉 ============ */
@media (max-width: 980px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed; left: 0; top: 0; bottom: 0; width: 260px; z-index: 50;
    transform: translateX(-100%); transition: transform .22s ease;
  }
  .app-shell.nav-open .sidebar { transform: none; }
  .app-shell.nav-open .side-backdrop { display: block; }
  .hamburger { display: flex; }
  .topbar { padding: 0 14px; }
  .topbar-search { max-width: none; }
  .content { padding: 18px 16px 44px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-cols { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .top-row { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .stat-grid { grid-template-columns: 1fr; }
  .hero-dash { padding: 16px 0 24px; min-height: auto; }
  .hero-main { flex-direction: column; align-items: stretch; gap: 14px; }
  .hero-greet { font-size: 39px; }
  .hero-slogan { font-size: 26px; margin-bottom: 8px; }
  .hero-stage { font-size: 15px; }
  .weather-widget { align-self: flex-end; flex-direction: row; gap: 10px; padding-top: 0; margin-left: 0; margin-right: 0; }
  .weather-main { flex-direction: row-reverse; }
  .weather-icon { width: 40px; height: 40px; }
  .weather-temp { font-size: 24px; }
  .weather-text, .weather-city { margin-top: 0; text-align: left; }
  .hero-actions { padding-top: 20px; }
  .home-dashboard > .panel { padding: 18px 16px; }
  .node-detail { grid-template-columns: 1fr; gap: 20px; }
  .nd-right { flex-direction: column; flex-wrap: nowrap; align-items: center; justify-content: center; padding: 16px; gap: 14px; }
  .nd-right > * { flex: 0 0 auto; width: 100%; }
  .nd-meta { flex: 0 0 auto; min-width: 0; }
  .nd-ring { width: 112px; height: 112px; }
  .nd-ring-num { font-size: 26px; }
  .flow-step { min-width: 86px; padding: 8px 0 6px; }
  .flow-step::after { top: 22px; height: 3px; }
  .flow-no { width: 28px; height: 28px; font-size: 12px; }
  .flow-name { font-size: 12px; margin-top: 6px; }
  .nd-flow { gap: 8px; }
  .nd-flow-node { padding: 12px 14px; }
  .nd-flow-name { font-size: 16px; }
  .nd-arrow { flex: 0 0 22px; }
  .nd-arrow svg { width: 18px; height: 18px; }
  .card-list, .skeleton, .cat-grid, .home-tool-grid { grid-template-columns: 1fr; }
  .page-title { font-size: 21px; }
  .article { padding: 20px 16px 24px; border-radius: 12px; }
  .article-title { font-size: 21px; }
}

/* ============================================================
   页面专属样式补全（v2 重皮：旧版 layout 类被整段删掉，这里用新设计
   系统统一补齐，保证「全站」视觉一致。命名与视图 h() 调用一一对应）
   ============================================================ */

/* —— 页面骨架 / 通用块 —— */
.page { max-width: 980px; margin: 0 auto; }
.page-sub { color: var(--c-text-weak); margin: -4px 0 18px; font-size: 14px; }
.block { background: var(--c-panel); border: 1px solid var(--c-border); border-radius: 14px; padding: 18px; margin-bottom: 18px; box-shadow: 0 1px 3px rgba(20,50,35,.05); }
.block-title { font-size: 16px; font-weight: 600; margin: 0 0 14px; display: flex; align-items: center; gap: 8px; }
.wide { max-width: none; }
.muted { color: var(--c-text-faint); }
.more-line { margin-top: 14px; }
.more-line a { font-size: 13px; color: var(--c-primary); }
.sub { color: var(--c-text-weak); font-size: 13px; }
.line-links { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.line-links a { color: var(--c-primary); font-size: 13.5px; }
.chart-note { color: var(--c-text-faint); font-size: 12.5px; margin-top: 8px; }
.crumb { font-size: 13px; color: var(--c-text-faint); margin-bottom: 12px; }
.crumb a { color: var(--c-text-weak); }

/* —— 表单 —— */
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.form-cell { display: flex; flex-direction: column; gap: 7px; }
.form-label { font-size: 13px; font-weight: 600; color: var(--c-text-weak); }
.form-cell .field, .row > .field, .detail-days .field { margin-bottom: 0; }
.detail-days .field { width: auto; flex: 0 0 auto; }
/* 输入框脚注：左边字数统计，右边提交按钮，一行搞定 */
.field-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-size: 12px; color: var(--c-text-faint); margin-top: 10px;
}
.field-foot > .btn { flex: 0 0 auto; }
.field-counter { font-size: 12px; color: var(--c-text-faint); font-variant-numeric: tabular-nums; }
.amount-field { font-size: 22px; font-weight: 700; padding: 10px 12px; }
.days-label { font-size: 13px; font-weight: 600; color: var(--c-text-weak); }
.days-hint { font-size: 12px; color: var(--c-text-faint); margin-top: 4px; }
.disabled { opacity: .5; pointer-events: none; }

/* —— 危险 / 错误 / 确认 / Toast —— */
.danger { color: var(--c-danger); }
.danger-zone { border-top: 1px dashed var(--c-border); padding-top: 16px; margin-top: 22px; text-align: right; }
.danger-panel { border: 1px solid var(--c-danger-soft); background: var(--c-danger-soft); border-radius: 14px; padding: 16px; }
.danger-title { font-weight: 600; color: var(--c-danger); margin-bottom: 8px; display: flex; gap: 6px; align-items: center; }
.error-panel { border: 1px solid var(--c-danger-soft); background: var(--c-danger-soft); border-radius: 14px; padding: 22px 18px; text-align: center; }
.error-head { font-weight: 600; color: var(--c-danger); margin-bottom: 8px; }
.error-ico { display: inline-flex; }
.error-ico svg { width: 34px; height: 34px; }
.error-msg { color: var(--c-text-weak); margin-bottom: 12px; }
.error-hint { font-size: 13px; color: var(--c-text-faint); margin-top: 8px; }
.error-actions { display: flex; gap: 10px; justify-content: center; margin-top: 6px; }
.confirm-mask { position: fixed; inset: 0; background: rgba(20,40,30,.45); display: none; align-items: center; justify-content: center; z-index: 200; padding: 20px; }
.confirm-mask.show { display: flex; }
.confirm-box { background: var(--c-panel); border-radius: 14px; padding: 22px; max-width: 340px; width: 100%; box-shadow: 0 14px 40px rgba(0,0,0,.22); }
.confirm-title { font-weight: 600; margin-bottom: 8px; }
.confirm-msg { color: var(--c-text-weak); margin-bottom: 16px; font-size: 14px; }
.confirm-actions { display: flex; gap: 10px; justify-content: flex-end; }
.toast-host { position: fixed; left: 50%; bottom: 42px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 10px; z-index: 300; pointer-events: none; }
.toast-host .toast, .toast-host { } /* 容器本身透明，子项才是气泡 */
.toast-ico { margin-right: 6px; }
.toast-txt { font-size: 14px; }
.show { display: flex !important; }
.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--c-primary-soft); color: var(--c-primary-dark); }
.ok { color: var(--c-primary); font-weight: 600; }
.warn { color: var(--c-warn); font-weight: 600; }

/* —— AI 问答 / 历史 —— */
.answer-panel { background: var(--c-panel); border: 1px solid var(--c-border); border-radius: 14px; padding: 18px; margin-bottom: 16px; box-shadow: 0 1px 3px rgba(20,50,35,.05); }
.answer-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-weight: 600; }
.answer-body { font-size: 15px; line-height: 1.8; }
.answer-foot { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--c-border-soft); display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.answer-li { padding: 10px 0; border-bottom: 1px solid var(--c-border-soft); }
.answer-li:last-child { border-bottom: none; }
.answer-q { font-weight: 600; margin-bottom: 6px; }
.answer-refs { font-size: 13px; color: var(--c-text-weak); }
.result-box { background: var(--c-panel); border: 1px solid var(--c-border); border-radius: 14px; padding: 18px; margin: 16px 0; box-shadow: 0 1px 3px rgba(20,50,35,.05); }
/* 快捷问题：整行标签 + 自动换行的 chip，条目再长也不会横向溢出 */
.suggest-box { margin: 12px 0 4px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.suggest-box .suggest-label { flex: 0 0 100%; width: 100%; margin: 0 0 2px; }
.suggest-box .btn { flex: 0 0 auto; max-width: 100%; white-space: normal; text-align: left; }
.suggest-list { display: flex; flex-direction: column; gap: 8px; }
.suggest-item { padding: 11px 14px; border: 1px solid var(--c-border); border-radius: 10px; background: var(--c-panel-2); cursor: pointer; }
.suggest-item:hover { border-color: var(--c-primary); }
.suggest-label { font-size: 12px; color: var(--c-text-faint); margin-bottom: 3px; }
.suggest-no { color: var(--c-text-faint); font-size: 14px; padding: 10px 0; }
.thinking { display: flex; align-items: center; gap: 8px; color: var(--c-text-weak); padding: 10px 0; }
.thinking-dots::after { content: '···'; letter-spacing: 2px; animation: blink 1.2s steps(4) infinite; }
@keyframes blink { 0% { opacity: .2; } 50% { opacity: 1; } 100% { opacity: .2; } }
/* 历史区：标题行与「清空」按钮基线对齐，条目里问题文本占满、删除键钉在右侧 */
.history-head { font-size: 13px; font-weight: 600; color: var(--c-text-weak); margin: 0 0 4px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.history-head .block-title { margin: 0; font-size: 15px; }
.history-head .btn { flex: 0 0 auto; }
.history-item { padding: 10px 13px; border: 1px solid var(--c-border); border-radius: 10px; background: var(--c-panel); margin: 0; transition: border-color .12s ease, background .12s ease; }
.history-item:hover { border-color: var(--c-primary); }
.history-q { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.history-q > .btn { flex: 0 0 auto; align-self: center; }
.history-answer { font-size: 13px; color: var(--c-text-weak); margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--c-border-soft); }
/* 问题文本占满剩余宽度并允许换行，删除键才不会被顶走
   （选择器写两级是为了压过下面 button.link-btn 的 0-1-1 权重） */
.history-q .history-toggle { flex: 1 1 auto; min-width: 0; font-size: 14px; line-height: 1.6; color: var(--c-primary); cursor: pointer; text-align: left; white-space: normal; }
.history-toggle-inner, .line-link-inner { display: inline-flex; align-items: center; gap: 6px; }
.history-toggle .history-toggle-inner { display: flex; align-items: center; }
.history-toggle .history-toggle-inner > span { min-width: 0; }
.history-toggle-inner svg, .line-link-inner svg { width: 15px; height: 15px; flex: 0 0 auto; }
/* <button class="link-btn"> 不重置的话会带一层浏览器默认按钮外框，排版立刻歪 */
button.link-btn { background: none; border: 0; padding: 0; margin: 0; font: inherit; font-weight: 600; color: var(--c-primary); cursor: pointer; }
button.link-btn:hover { color: var(--c-primary-dark); }
.todo { display: flex; gap: 8px; align-items: flex-start; padding: 6px 0; }
.li-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--c-primary); flex: 0 0 auto; margin-top: 8px; }
.refs-list { list-style: none; margin: 8px 0 0; padding: 0; }
.refs-title { font-size: 13px; font-weight: 600; color: var(--c-text-weak); margin-top: 10px; }

/* —— 记账 / 预算 —— */
.account-overview { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.account-form { background: var(--c-panel); border: 1px solid var(--c-border); border-radius: 14px; padding: 18px; }
.account-list { display: flex; flex-direction: column; }
.account-cats { margin-top: 6px; }
.account-trend { margin-top: 6px; }
.ov-cell { background: var(--c-panel-2); border: 1px solid var(--c-border); border-radius: 12px; padding: 14px; }
.ov-label { font-size: 13px; color: var(--c-text-weak); }
.ov-main { }
.ov-num { font-size: 24px; font-weight: 700; color: var(--c-text); font-variant-numeric: tabular-nums; margin-top: 4px; }
.ov-sub { font-size: 12px; color: var(--c-text-faint); margin-top: 2px; }
.ov-links { display: flex; gap: 12px; margin-top: 8px; }
.ov-links a { font-size: 13px; color: var(--c-primary); }
.cat-bar { display: flex; align-items: center; gap: 8px; margin: 8px 0; }
.cat-dot { width: 14px; height: 14px; border-radius: 50%; flex: 0 0 auto; background: var(--c-primary-soft); color: var(--c-primary); font-size: 9px; line-height: 1; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; }
.cat-bar-fill { flex: 1; height: 8px; border-radius: 999px; background: var(--c-border-soft); overflow: hidden; }
.cat-bar-fill > i, .cat-bar-fill > span { display: block; height: 100%; background: var(--c-primary); border-radius: 999px; }
.cat-stat-row { display: flex; align-items: center; gap: 10px; }
.cat-stat-name { flex: 1; min-width: 0; font-size: 14px; }
.cat-stat-num { font-variant-numeric: tabular-nums; font-weight: 600; }
.cat-stat-pct { color: var(--c-text-faint); font-size: 12px; width: 44px; text-align: right; }
.txn-row { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--c-border-soft); }
.txn-row:last-child { border-bottom: none; }
.txn-main { flex: 1; min-width: 0; }
.txn-title { font-weight: 500; }
.txn-meta { font-size: 12px; color: var(--c-text-faint); }
.txn-amount { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.trend-canvas { width: 100%; height: 160px; display: block; }
.usage-box { background: var(--c-panel-2); border-radius: 12px; padding: 14px; }
.usage-row { display: flex; align-items: center; gap: 10px; margin: 8px 0; }
.usage-label { flex: 1; min-width: 0; font-size: 14px; }
.usage-num { font-weight: 600; font-variant-numeric: tabular-nums; }
.usage-fill { flex: 0 0 120px; height: 8px; border-radius: 999px; background: var(--c-border-soft); overflow: hidden; }
.usage-fill > i, .usage-fill > span { display: block; height: 100%; background: var(--c-primary); border-radius: 999px; }
.usage-tip { font-size: 12px; color: var(--c-text-faint); }
.budget-plan { background: var(--c-panel); border: 1px solid var(--c-border); border-radius: 14px; padding: 18px; }
.budget-form { background: var(--c-panel); border: 1px solid var(--c-border); border-radius: 14px; padding: 18px; }
.budget-compare { display: grid; gap: 12px; margin-top: 6px; }
.plan-meta { color: var(--c-text-faint); font-size: 13px; }
.plan-name { font-weight: 600; }
.plan-price { font-weight: 700; font-variant-numeric: tabular-nums; }
.plan-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--c-border-soft); }
.plan-row:last-child { border-bottom: none; }
.plan-total { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; padding-top: 12px; border-top: 2px solid var(--c-border); font-weight: 600; }
.plan-total-num { font-size: 20px; font-weight: 700; color: var(--c-primary); font-variant-numeric: tabular-nums; }
.cmp-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--c-border-soft); }
.cmp-row:last-child { border-bottom: none; }
.cmp-name { flex: 1; min-width: 0; }
.cmp-num { font-weight: 700; font-variant-numeric: tabular-nums; }
.cmp-rate { font-size: 12px; color: var(--c-text-faint); }
.cmp-summary { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--c-border-soft); color: var(--c-text-weak); font-size: 14px; }

/* —— 验收清单 / 阶段 —— */
.checklist-groups { display: flex; flex-direction: column; gap: 14px; }
.checklist-summary { display: flex; align-items: center; gap: 14px; background: var(--c-panel-2); border: 1px solid var(--c-border); border-radius: 12px; padding: 14px 16px; margin-bottom: 14px; }
.checklist-summary .summary-head { flex: 1; min-width: 0; }
.checklist-summary .summary-meta { flex: 1 1 auto; display: flex; align-items: center; justify-content: flex-end; gap: 12px; min-width: 0; }
.cl-group { background: var(--c-panel); border: 1px solid var(--c-border); border-radius: 14px; overflow: hidden; box-shadow: 0 1px 3px rgba(20,50,35,.05); }
.cl-head { display: flex; align-items: center; gap: 11px; padding: 14px 16px; cursor: pointer; }
.cl-ico { width: 22px; height: 22px; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; color: var(--c-primary); }
.cl-ico svg { width: 18px; height: 18px; }
.cl-name { font-weight: 600; flex: 1; min-width: 0; }
.cl-count { font-size: 13px; color: var(--c-text-faint); flex: 0 0 auto; }
.cl-arrow { width: 18px; height: 18px; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; color: var(--c-text-faint); transition: transform .2s; }
.cl-arrow svg { width: 16px; height: 16px; }
.cl-group.open .cl-arrow { transform: rotate(180deg); }
.cl-body { padding: 0 16px 14px; }
.cl-body-foot { padding-top: 10px; margin-top: 6px; border-top: 1px dashed var(--c-border-soft); display: flex; justify-content: flex-end; }
.check-row { display: flex; align-items: flex-start; gap: 11px; padding: 11px 0; border-bottom: 1px solid var(--c-border-soft); cursor: pointer; border-radius: 8px; transition: background .12s ease; }
.check-row:hover { background: var(--c-panel-2); margin: 0 -10px; padding-left: 10px; padding-right: 10px; }
.check-row:last-child { border-bottom: none; }
.check-row input[type=checkbox] { appearance: none; -webkit-appearance: none; width: 18px; height: 18px; flex: 0 0 auto; margin: 2px 0 0; border: 1.6px solid var(--c-border); border-radius: 5px; background: #fff; cursor: pointer; position: relative; transition: background .12s ease, border-color .12s ease; }
.check-row input[type=checkbox]:checked { background: var(--c-primary); border-color: var(--c-primary); }
.check-row input[type=checkbox]:checked::after { content: ""; position: absolute; left: 5px; top: 1.5px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.check-row.checked .check-txt { color: var(--c-text-faint); text-decoration: line-through; }
.check-txt { flex: 1; min-width: 0; }
.check-list { list-style: none; margin: 0; padding: 0; }
.bar { height: 10px; border-radius: 999px; background: var(--c-border-soft); overflow: hidden; flex: 1; }
.bar-fill { height: 100%; background: var(--c-primary); border-radius: 999px; transition: width .3s; }
/* ---- 装修进度页：顶部固定总览 + 左侧阶段导航 + 右侧详情 ----
   三处 sticky（总览卡 / 阶段条 / 分项标题）的偏移量必须互相对得上，
   所以集中成变量放在 .stage-page 上，改一个数三处一起动。
   总览卡写死高度也是为这个：高度一浮动，下面两处就会被它盖住或者悬空。 */
.stage-page {
  --stage-top: 86px;        /* .topbar 60px + .content padding-top 26px */
  --stage-summary-h: 104px; /* 总览卡固定高度 */
  --stage-stick: 198px;     /* = top + summary-h + 8px 呼吸位 */
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.stage-summary {
  position: sticky;
  top: var(--stage-top);
  z-index: 20;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 9px;
  height: var(--stage-summary-h);
  padding: 0 18px;
  margin: 0;
  overflow: hidden; /* 内容再长也不许撑高，否则吸顶偏移量算不准 */
}
.stage-summary .summary-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.stage-summary .summary-text { min-width: 0; }
.stage-summary .page-title { margin: 0; font-size: 19px; line-height: 1.4; }
.stage-summary .page-sub { margin: 1px 0 0; font-size: 12.5px; line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stage-summary .summary-num { flex: 0 0 auto; font-size: 20px; line-height: 1; color: var(--c-primary); }
.stage-summary .summary-num span { font-size: 13px; margin-left: 1px; }
.stage-summary .summary-line { display: flex; align-items: center; gap: 14px; }
.stage-summary .bar { flex: 1 1 auto; height: 8px; }
.stage-summary .summary-meta { flex: 0 0 auto; display: flex; gap: 14px; font-size: 12.5px; line-height: 1.4; white-space: nowrap; }

.stage-body { display: flex; gap: 14px; align-items: flex-start; }

.stage-strip {
  position: sticky;
  top: var(--stage-stick);
  align-self: flex-start;
  width: 140px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  /* 17 颗阶段在小屏上放不下，兜一层自身滚动，别让底下几个够不着 */
  max-height: calc(100vh - var(--stage-stick) - 24px);
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
}
.stage-chip {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 100%;
  padding: 6px 9px;
  border-radius: 9px;
  font-size: 12.5px;
  line-height: 1.45;
  border: 1px solid var(--c-border);
  background: var(--c-panel);
  color: var(--c-text-weak);
  cursor: pointer;
  white-space: nowrap;
  transition: background .12s ease, color .12s ease, border-color .12s ease;
}
.stage-chip:hover { border-color: var(--c-primary); color: var(--c-text); }
.stage-chip.active { background: var(--c-primary); color: #fff; border-color: var(--c-primary); box-shadow: 0 2px 8px var(--c-primary-soft); }
.stage-chip.done:not(.active) { border-color: var(--c-primary); color: var(--c-primary); background: var(--c-primary-soft); }
.chip-ico { display: inline-flex; align-items: center; line-height: 0; flex: 0 0 auto; }
.chip-ico svg { width: 16px; height: 16px; }
.chip-name { font-weight: 500; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.chip-num { font-size: 12px; opacity: .7; font-variant-numeric: tabular-nums; flex: 0 0 auto; }

.stage-detail {
  flex: 1;
  min-width: 0;
  background: var(--c-panel);
  border: 1px solid var(--c-border);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(20,50,35,.05);
  /* 这里绝对不能加 overflow，任何一层 overflow 都会让里面的 sticky 直接失效 */
  overflow: visible;
}
/* 分项标题：滚动时吸顶停在总览卡正下方，不随内容滚走。
   左右负 margin 抵掉 .stage-detail 的 16px padding，吸顶条铺满整张卡，
   底下的条目才不会从标题两侧的缝里透出来。 */
.stage-section { scroll-margin-top: calc(var(--stage-stick) + 12px); }
.stage-section + .stage-section { margin-top: 18px; }
.stage-section > .block-title {
  position: sticky;
  top: var(--stage-stick);
  z-index: 6;
  margin: 0 -16px 10px;
  padding: 9px 16px;
  background: var(--c-panel);
  border-bottom: 1px solid var(--c-border-soft);
}
.stage-brief { background: var(--c-panel-2); border-radius: 12px; padding: 14px; flex: 1; min-width: 200px; }
.detail-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.detail-head > .btn { margin-left: auto; flex: 0 0 auto; }
.detail-ico { width: 30px; height: 30px; flex: 0 0 auto; border-radius: 9px; background: var(--c-primary-soft); color: var(--c-primary); display: inline-flex; align-items: center; justify-content: center; }
.detail-ico svg { width: 18px; height: 18px; }
.detail-title { font-size: 18px; font-weight: 600; display: flex; align-items: center; gap: 10px; min-width: 0; }
/* h2 自带 0.83em 上下 margin，不清掉标题行会比图标高出一截 */
.detail-title h2 { margin: 0; font-size: 18px; font-weight: 600; line-height: 1.4; }
.detail-days { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; color: var(--c-text-faint); font-size: 13px; }
.detail-days .days-hint { margin-top: 0; }
.detail-actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.btn-inner { display: inline-flex; align-items: center; gap: 7px; }
.btn-inner svg { width: 16px; height: 16px; }
.custom-box { margin-top: 14px; }
.custom-list { list-style: none; margin: 0; padding: 0; }
.custom-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--c-border-soft); }
.custom-main { flex: 1; min-width: 0; }
.custom-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 22px 14px; text-align: center; color: var(--c-text-faint); }
.custom-empty-ico { width: 34px; height: 34px; border-radius: 50%; background: var(--c-primary-soft); color: var(--c-primary); display: inline-flex; align-items: center; justify-content: center; }
.custom-empty-ico svg { width: 18px; height: 18px; }
.custom-empty-text { font-size: 14px; margin: 0; }
.custom-empty-hint { font-size: 12px; margin: 0; color: var(--c-text-faint); }
.custom-add { display: flex; gap: 10px; align-items: stretch; margin-top: 10px; }
.custom-add .field { flex: 1; min-width: 0; margin: 0; }
.custom-add .btn { flex: 0 0 auto; }
.danger-zone { display: flex; justify-content: flex-end; align-items: center; gap: 10px; border-top: 1px dashed var(--c-border); padding-top: 16px; margin-top: 22px; }
.summary-head { font-weight: 600; }
.summary-meta { color: var(--c-text-faint); font-size: 13px; }
.summary-num { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.slim { padding-top: 6px; padding-bottom: 6px; }
.head-actions { margin-left: auto; display: flex; gap: 8px; }

@media (max-width: 860px) {
  .stage-page { flex-direction: column; }
  /* 手机上不吸顶：屏幕本来就矮，再钉一张卡就没地方看内容了 */
  .stage-summary { position: relative; top: auto; height: auto; min-height: auto; padding: 16px 18px; overflow: visible; }
  .stage-summary .page-sub { white-space: normal; }
  .stage-summary .summary-line { flex-wrap: wrap; }
  .stage-summary .summary-meta { flex-wrap: wrap; white-space: normal; }
  .stage-body { flex-direction: column; }
  .stage-strip { position: relative; top: auto; width: 100%; max-height: none; flex-direction: row; overflow-x: auto; overflow-y: hidden; padding-bottom: 6px; padding-right: 0; }
  .stage-chip { width: auto; flex: 0 0 auto; }
  .stage-section > .block-title { position: static; top: auto; margin: 0 0 10px; padding: 0 0 8px; background: transparent; }
}

/* —— 工具箱 / 我的 —— */
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.tool-group { margin-bottom: 22px; }
.tool-item { display: block; background: var(--c-panel); border: 1px solid var(--c-border); border-radius: 14px; padding: 16px; text-align: center; box-shadow: 0 1px 3px rgba(20,50,35,.05); transition: transform .12s, border-color .12s; }
.tool-item:hover { border-color: var(--c-primary); transform: translateY(-2px); }
.tool-ico { font-size: 26px; margin-bottom: 8px; }
.tool-name { font-weight: 600; font-size: 14px; }
.tool-sub { font-size: 12px; color: var(--c-text-faint); margin-top: 3px; }
.tool-badge { display: inline-block; font-size: 11px; padding: 1px 7px; border-radius: 999px; background: var(--c-warn-soft); color: var(--c-warn); margin-top: 6px; }
.my-entries { display: flex; flex-direction: column; }
.my-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; margin-bottom: 18px; }
.entry-inner { display: flex; align-items: center; gap: 12px; padding: 13px 4px; border-bottom: 1px solid var(--c-border-soft); }
.entry-ico { font-size: 20px; flex: 0 0 auto; }
.entry-arrow { margin-left: auto; color: var(--c-text-faint); }
.entry-name { font-weight: 500; }
.entry-sub { font-size: 12px; color: var(--c-text-faint); }
.entry-text { flex: 1; min-width: 0; }
.banner { display: flex; gap: 12px; align-items: center; background: var(--c-panel); border: 1px solid var(--c-border); border-left: 4px solid var(--c-primary); color: var(--c-text); border-radius: 14px; padding: 16px 18px; margin-bottom: 18px; }
.banner-ico { font-size: 26px; color: var(--c-primary); }
.banner-usage { font-size: 13px; color: var(--c-text-weak); }
.data-banner { background: var(--c-panel-2); border: 1px solid var(--c-border); border-radius: 12px; padding: 12px 14px; color: var(--c-text-weak); font-size: 13px; }
.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
.theme-item { border: 1px solid var(--c-border); border-radius: 12px; padding: 12px; cursor: pointer; text-align: center; background: var(--c-panel); }
.theme-item.active { border-color: var(--c-primary); box-shadow: 0 0 0 2px var(--c-primary-soft); }
.theme-swatch { height: 42px; border-radius: 8px; margin-bottom: 8px; border: 1px solid var(--c-border-soft); }
.theme-dot { width: 14px; height: 14px; border-radius: 50%; display: inline-block; margin-right: 6px; vertical-align: middle; }
.theme-name { font-weight: 600; font-size: 14px; }
.theme-desc { font-size: 12px; color: var(--c-text-faint); margin-top: 3px; }

/* —— 报价 / 工期 —— */
.quote-result { background: var(--c-panel); border: 1px solid var(--c-border); border-radius: 14px; padding: 18px; box-shadow: 0 1px 3px rgba(20,50,35,.05); }
.quote-head { font-weight: 600; margin-bottom: 12px; }
.quote-name { font-weight: 600; }
.quote-price { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--c-primary); }
.quote-note { font-size: 13px; color: var(--c-text-weak); }
.quote-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--c-border-soft); }
.quote-row:last-child { border-bottom: none; }
.quote-total { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; padding-top: 10px; border-top: 2px solid var(--c-border); font-weight: 700; }
.schedule-timeline { position: relative; padding-left: 24px; }
.schedule-timeline::before { content: ''; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--c-border); }
.tl-row { position: relative; padding: 10px 0; }
.tl-row .tl-dot { position: absolute; left: -21px; top: 14px; width: 12px; height: 12px; border-radius: 50%; background: var(--c-primary); border: 2px solid var(--c-panel); }
.tl-head { display: flex; align-items: center; gap: 10px; }
.tl-name { font-weight: 600; }
.tl-date { font-size: 13px; color: var(--c-text-faint); }
.tl-days { font-size: 12px; color: var(--c-primary); }
.tl-desc { color: var(--c-text-weak); font-size: 14px; margin-top: 2px; }
.tl-axis, .tl-line { }
.brief-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--c-border-soft); }
.brief-name { font-weight: 500; }
.brief-desc { color: var(--c-text-weak); font-size: 13px; }
.brief-days { margin-left: auto; color: var(--c-text-faint); font-size: 13px; white-space: nowrap; }

/* —— 收藏 —— */
.fav-list { display: flex; flex-direction: column; gap: 10px; }
.fav-item { display: flex; align-items: center; gap: 12px; background: var(--c-panel); border: 1px solid var(--c-border); border-radius: 12px; padding: 13px 15px; box-shadow: 0 1px 3px rgba(20,50,35,.05); }
.fav-main { flex: 1; min-width: 0; }
.fav-label { font-size: 12px; color: var(--c-text-faint); }
.fav-del { color: var(--c-danger); cursor: pointer; flex: 0 0 auto; }
.fav-star { color: var(--c-warn); flex: 0 0 auto; }

/* —— 搜索 / 列表 —— */
.list-count { color: var(--c-text-weak); font-size: 13px; margin-bottom: 12px; }
.search-box { display: flex; gap: 10px; margin-bottom: 16px; }
.search-input { flex: 1; }

/* —— 拍照诊断 —— */
.vision-upload { border: 2px dashed var(--c-border); border-radius: 14px; padding: 26px; text-align: center; color: var(--c-text-weak); background: var(--c-panel-2); cursor: pointer; }
.vision-preview { margin-top: 14px; }
.preview-img { max-width: 100%; border-radius: 12px; border: 1px solid var(--c-border-soft); }
.preview-empty { color: var(--c-text-faint); padding: 18px; text-align: center; }
.preview-hint { font-size: 12px; color: var(--c-text-faint); margin-top: 6px; }
.preview-ico { font-size: 30px; }
.vision-summary { margin-top: 14px; }
.vision-verdict { display: flex; align-items: center; gap: 8px; font-weight: 600; margin-bottom: 10px; }
.evidence-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin-top: 10px; }
.ev-item { border: 1px solid var(--c-border); border-radius: 10px; overflow: hidden; background: var(--c-panel); }
.ev-img { width: 100%; display: block; }
.ev-cap { padding: 6px 8px; font-size: 12px; color: var(--c-text-weak); }
.ev-cap-top { display: flex; justify-content: space-between; align-items: center; padding: 6px 8px; }
.ev-cap-text { font-size: 12px; color: var(--c-text-weak); padding: 0 8px 6px; }
.ev-del { color: var(--c-danger); cursor: pointer; font-size: 12px; }
.problem-list { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.problem-item { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--c-border); border-radius: 12px; background: var(--c-panel); }
.problem-ico { font-size: 18px; flex: 0 0 auto; }
.problem-title { font-weight: 600; }
.problem-desc { color: var(--c-text-weak); font-size: 14px; margin-top: 3px; }
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.ask-input { width: 100%; min-height: 92px; margin-bottom: 0; resize: vertical; transition: border-color .12s ease, box-shadow .12s ease; }
.ask-input:focus { border-color: var(--c-primary); box-shadow: 0 0 0 3px var(--c-primary-soft); outline: none; }

/* —— 骨架屏 —— */
.w40, .w60, .w90 { display: block; height: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--c-panel-2), var(--c-border-soft), var(--c-panel-2)); background-size: 200% 100%; animation: sk 1.2s infinite; margin: 6px 0; }
.w40 { width: 40%; } .w60 { width: 60%; } .w90 { width: 90%; }
@keyframes sk { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* —— 收尾：页面包裹类与小修饰（保证 352 个类名零缺失） —— */
.about-page, .account-page, .ask-page, .budget-page, .checklist-page,
.favorite-page, .my-page, .quote-page, .schedule-page,
.tools-page, .vision-page { max-width: 980px; margin: 0 auto; }
/* 进度页是三栏结构（阶段条 + 详情），沿用 980px 会把两边空出一大片，放宽一档 */
.stage-page { width: 100%; max-width: 1160px; }
.summary-text { min-width: 0; }
.summary-line { display: flex; align-items: center; gap: 14px; }
.article-title-row { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.article-cta { margin-top: 24px; display: flex; gap: 10px; flex-wrap: wrap; }
.clickable { cursor: pointer; }
.cmp-cell { } .cmp-main { flex: 1; min-width: 0; }
.days-field { }
.entry-list { display: flex; flex-direction: column; }
.evidence-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin-top: 10px; }
.fav-btn { background: none; border: none; cursor: pointer; font-size: 18px; color: var(--c-warn); padding: 4px; }
.history-box { display: flex; flex-direction: column; gap: 8px; }
.theme-box { }
.tip-list { list-style: none; margin: 10px 0 0; padding: 0; }
.tip-list li { padding: 8px 0; border-bottom: 1px dashed var(--c-border-soft); }
.tip-list li:last-child { border-bottom: none; }
.tl-body { flex: 1; min-width: 0; }
.tool-inner { }
