/* ============================================================
   计划看板 · AI 能力建设 — 视觉层
   方向：工业实用（B 端仪表盘）+ 克制现代质感
   令牌：靛蓝主色 / 语义状态色 / 三级阴影 / 8-12px 圆角 / 等宽数字
   注意：所有连接线几何（19px 偏移、min-height、gap 公式）与
        app.js drawGraphLines 的画线常量耦合，禁止改动数值。
   ============================================================ */
:root {
  color-scheme: light;
  font-family: "Segoe UI Variable Text", "Segoe UI", "Microsoft YaHei UI", "PingFang SC", sans-serif;
  font-size: 15px;
  font-synthesis: none;
  /* 色板 */
  --ink: #1c2a48;
  --muted: #5d6c86;
  --faint: #8b99b0;
  --line: #e2e8f2;
  --line-strong: #cdd7e6;
  --canvas: #f3f6fb;
  --surface: #ffffff;
  --surface-soft: #f7f9fd;
  --accent: #3358d4;
  --accent-strong: #2543ae;
  --accent-soft: #edf2ff;
  --accent-wash: #f5f8ff;
  --accent-ring: rgba(51, 88, 212, .22);
  --connector: #b9c7dd;
  /* 语义状态色 */
  --todo: #98a6bd;
  --doing: #c08a2e;
  --done: #2f8f80;
  /* 圆角与阴影 */
  --radius-sm: 6px;
  --radius-control: 8px;
  --radius-panel: 12px;
  --shadow-1: 0 1px 2px rgba(28, 42, 72, .05), 0 1px 3px rgba(28, 42, 72, .04);
  --shadow-2: 0 2px 6px rgba(28, 42, 72, .06), 0 8px 24px rgba(28, 42, 72, .08);
  --shadow-3: 0 16px 48px rgba(20, 32, 58, .18);
  --panel-shadow: 0 1px 2px rgba(28, 42, 72, .04), 0 4px 14px rgba(28, 42, 72, .05);
  /* 间距与节奏 */
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --gutter: clamp(18px, 2.4vw, 38px);
  /* 动效 */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --dur-fast: 160ms;
  --dur-base: 300ms;
  color: var(--ink);
  background: var(--canvas);
  line-height: 1.5;
}
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  min-width: 0;
  /* 氛围层：两团极淡的角落渐变，避免整页纯色平铺 */
  background:
    radial-gradient(56rem 34rem at 6% -8%, rgba(51, 88, 212, .055), transparent 55%),
    radial-gradient(50rem 30rem at 98% -6%, rgba(47, 143, 128, .05), transparent 52%),
    var(--canvas);
  background-attachment: fixed;
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button, a, select, input[type="color"] { cursor: pointer; }
button { touch-action: manipulation; }
h1, h2, h3, p, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
strong, b { font-weight: 650; }
::selection { background: rgba(51, 88, 212, .16); }
:focus-visible { outline: 2.5px solid #5c82ee; outline-offset: 2px; }
h1[tabindex="-1"]:focus, main[tabindex="-1"]:focus { outline: none; }
[hidden] { display: none !important; }
.icon { display: inline-block; flex: 0 0 auto; width: 20px; height: 20px; vertical-align: middle; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 20; padding: 10px 16px; border-radius: 8px; color: white; background: var(--accent); box-shadow: var(--shadow-2); transform: translateY(-150%); }
.skip-link:focus { transform: none; }

/* ---------- 头部：吸顶 + 毛玻璃 ---------- */
.app-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  min-height: 66px;
  padding: 8px var(--gutter);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  backdrop-filter: blur(10px) saturate(1.2);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
  box-shadow: 0 1px 0 rgba(28, 42, 72, .02);
  position: sticky;
  top: 0;
  z-index: 10;
}
.brand { display: inline-flex; align-items: center; justify-self: start; gap: 11px; min-height: 44px; white-space: nowrap; }
.brand strong { font-size: 18px; letter-spacing: -.01em; }
.brand > span:last-child { margin-left: 1px; padding-left: 11px; border-left: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.brand-mark { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; width: 27px; height: 27px; }
.brand-mark i { border-radius: 3.5px; background: var(--accent); }
.brand-mark i:nth-child(2) { background: #6f8adf; }
.brand-mark i:nth-child(3) { background: #a8b9ec; }
.brand-mark i:last-child { border: 1px solid #bccbf5; background: #e9effd; }
.main-nav { display: flex; align-items: center; gap: 5px; }
.main-nav a {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 9px 15px;
  border-radius: 9px;
  color: var(--muted); font-size: 14px; font-weight: 600;
  transition: background-color var(--dur-fast), color var(--dur-fast), box-shadow var(--dur-fast);
}
.main-nav a .icon { width: 17px; height: 17px; }
.main-nav a:hover { color: var(--accent); background: var(--accent-wash); }
.main-nav a.active { color: var(--accent-strong); background: var(--accent-soft); box-shadow: inset 0 0 0 1px #d3ddfc; }
.app-header { grid-template-columns: auto minmax(0, 1fr) auto; }
.main-nav { min-width: 0; overflow-x: auto; }
.main-nav a { flex-shrink: 0; white-space: nowrap; }
#team-settings { justify-self: end; }
.header-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; justify-self: end; }
.save-status { min-height: 18px; color: var(--muted); font-size: 12px; white-space: nowrap; }

/* ---------- 按钮 ---------- */
.button {
  display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 9px 15px;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  font-size: 14px; font-weight: 600; line-height: 1.4; white-space: nowrap;
  transition: background-color var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast), box-shadow var(--dur-fast), transform var(--dur-fast);
}
.button .icon { width: 17px; height: 17px; }
.button-quiet { border-color: var(--line-strong); background: var(--surface); box-shadow: var(--shadow-1); }
.button-quiet:hover { border-color: #a9bcdf; background: var(--accent-wash); color: var(--accent-strong); }
.button-quiet:active { transform: translateY(1px); }
.button-primary {
  color: white;
  background: linear-gradient(180deg, #4066df, var(--accent) 52%, #2e50c6);
  box-shadow: 0 1px 2px rgba(37, 67, 174, .38), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.button-primary:hover { background: linear-gradient(180deg, #375cdc, #2a4cba); box-shadow: 0 2px 8px rgba(37, 67, 174, .38), inset 0 1px 0 rgba(255, 255, 255, .16); }
.button-primary:active { transform: translateY(1px); box-shadow: 0 1px 2px rgba(37, 67, 174, .3); }

.page-shell { width: min(100%, 1800px); margin: 0 auto; padding: 0 var(--gutter) var(--space-6); }
.page-location { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; padding-block: 8px; }
.page-location > .button { font-size: 13px; }
.breadcrumbs { min-height: 42px; padding-block: 12px 8px; color: var(--muted); font-size: 13px; }
.breadcrumbs ol, .breadcrumbs li { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 8px; }
.breadcrumbs .icon { width: 12px; height: 12px; color: var(--faint); }
.breadcrumbs [aria-current] { color: var(--ink); font-weight: 600; }
.breadcrumbs a:hover { text-decoration: underline; text-underline-offset: 4px; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; padding: 8px 0 22px; }
.page-heading > div:first-child { min-width: 0; }
.heading-actions { display: flex; flex: 0 0 auto; flex-wrap: wrap; gap: 8px; }
h1 { font-size: 30px; line-height: 1.3; font-weight: 700; letter-spacing: -.015em; }
.page-description { max-width: 760px; margin-top: 8px; color: var(--muted); font-size: 14px; line-height: 1.65; }

/* ---------- 面板与区块标题 ---------- */
.panel { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius-panel); background: var(--surface); box-shadow: var(--panel-shadow); }
.section-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--space-3) var(--space-5); padding: var(--space-4) var(--space-5); }
.section-heading h2 { display: flex; align-items: center; gap: 9px; font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
/* 签名元素：区块标题前的竖向色标 */
.section-heading h2::before { content: ""; flex: 0 0 auto; width: 4px; height: 15px; border-radius: 2px; background: linear-gradient(180deg, var(--accent), #82a0f0); }
.section-heading h2 > span { padding: 2px 9px; border-radius: 999px; color: var(--accent-strong); background: var(--accent-wash); box-shadow: inset 0 0 0 1px #dbe5fb; font-size: 12px; font-weight: 650; }
.project-pulse, .architecture, .function-map, .breakdown-panel, .document-diagram, .board-controls, .load-panel, .allocation-panel, .member-graph { box-shadow: var(--panel-shadow); }

/* ---------- 进度环与进度条 ---------- */
.progress-ring { position: relative; display: inline-grid; flex: 0 0 88px; place-items: center; width: 88px; height: 88px; color: var(--member, var(--accent)); }
.progress-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; transform: rotate(-90deg); }
.progress-ring circle { fill: none; stroke-width: 5; }
.ring-track { stroke: #e7edf6; }
.ring-fill { stroke: currentColor; stroke-linecap: round; transition: stroke-dasharray var(--dur-base) var(--ease-out); }
.progress-ring > strong { color: var(--ink); font-size: 25px; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.progress-ring strong small { padding-left: 1px; font-size: .48em; font-weight: 600; color: var(--muted); }
.progress-ring.compact { flex-basis: 41px; width: 41px; height: 41px; }
.progress-ring.compact > strong { font-size: 13px; }
.progress-ring.compact strong small { color: inherit; font-weight: 650; }
.progress-ring.compact circle { stroke-width: 4; }
.progress { display: block; overflow: hidden; height: 5px; border-radius: 9px; background: #e7ecf4; }
.progress > span { display: block; height: 100%; border-radius: inherit; background: var(--member, var(--accent)); transition: width var(--dur-base) var(--ease-out); }

/* ---------- 项目脉搏（沿用区块） ---------- */
.project-pulse { display: grid; grid-template-columns: minmax(190px, .8fr) minmax(220px, .9fr) minmax(280px, 1.3fr); margin-bottom: var(--space-5); }
.project-pulse > div { min-width: 0; margin-block: 18px; padding-inline: 22px; }
.project-pulse > div + div { border-left: 1px solid var(--line); }
.pulse-progress { display: grid; align-content: start; gap: 5px; }
.pulse-progress > .pulse-percent { color: var(--accent-strong); font-size: 42px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.pulse-progress > .progress { max-width: 250px; height: 6px; margin-block: var(--space-2); }
.pulse-progress p { color: var(--muted); font-size: 13px; }
.pulse-label { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; font-weight: 600; }
.pulse-label a { display: flex; align-items: center; gap: 2px; color: var(--accent); font-size: 13px; font-weight: 500; }
.pulse-label a .icon { width: 12px; height: 12px; }
.status-numbers { display: flex; justify-content: space-between; gap: 12px; margin: 14px 0 15px; }
.status-numbers > div { display: grid; grid-template-columns: 7px auto; align-items: center; gap: 1px 7px; }
.status-numbers strong { font-size: 23px; font-variant-numeric: tabular-nums; line-height: 1.3; }
.status-numbers span { grid-column: 2; color: var(--muted); font-size: 13px; }
.state-dot { display: inline-block; flex: 0 0 auto; width: 7px; height: 7px; border-radius: 50%; }
.state-todo { background: var(--todo); }
.state-doing { background: var(--doing); }
.state-done { background: var(--done); }
.status-strip { display: flex; gap: 3px; overflow: hidden; height: 6px; border-radius: 10px; }
.status-strip i { min-width: 0; border-radius: 2px; }
.strip-todo { background: #ccd6e5; }
.strip-doing { background: #e2b767; }
.strip-done { background: #5aa294; }

/* ---------- 工作量条（沿用区块） ---------- */
.workload-bars { display: grid; gap: 9px; margin-top: 12px; }
.workload-row { display: grid; grid-template-columns: 75px minmax(25px, 1fr) 58px; align-items: center; gap: 12px; min-width: 0; font-variant-numeric: tabular-nums; }
.workload-person { display: flex; align-items: center; gap: 6px; min-width: 0; }
.workload-person > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.workload-row > strong { color: var(--ink); text-align: right; font-size: 13px; font-weight: 600; white-space: nowrap; }
.workload-row > strong small { color: var(--muted); font-size: 13px; font-weight: 400; }
.workload-track { display: block; height: 8px; border-radius: 4px; background: #f0f3f9; }
.workload-track > .workload-plan { display: block; overflow: hidden; height: 100%; border-radius: 4px; background: color-mix(in srgb, var(--member) 25%, white); }
.workload-track .workload-complete { display: block; height: 100%; border-radius: 3px; background: var(--member); }
.workload-row:hover .workload-track { outline: 1px solid color-mix(in srgb, var(--member) 40%, white); outline-offset: 3px; }
.workload-legend { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 13px; }
.workload-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.workload-legend i { display: block; width: 14px; height: 9px; border-radius: 3px; }
.workload-legend-plan { background: #ccd7ec; }
.workload-legend-complete { background: var(--accent); }
.pulse-workload .workload-legend { margin-top: var(--space-2); }

/* ---------- 成员筛选 / 头像 ---------- */
.member-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.filter-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 44px; padding: 8px 12px;
  border: 1px solid transparent; border-radius: 9px;
  color: var(--muted); background: transparent; font-size: 13px; font-weight: 550;
  transition: background-color var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast), box-shadow var(--dur-fast);
}
.filter-button:hover { background: #f0f4fb; color: var(--ink); }
.filter-button.selected { border-color: #cdd9f5; color: var(--accent-strong); background: var(--accent-soft); box-shadow: var(--shadow-1); }
.filter-button.selected[style] { border-color: color-mix(in srgb, var(--member) 42%, white); color: var(--ink); background: color-mix(in srgb, var(--member) 10%, white); }
.member-dot { flex: 0 0 auto; width: 7px; height: 7px; border-radius: 50%; background: var(--member); box-shadow: 0 0 0 2.5px color-mix(in srgb, var(--member) 18%, transparent); }
.avatar {
  display: inline-grid; flex: 0 0 34px; place-items: center;
  width: 34px; height: 34px;
  border: 1px solid color-mix(in srgb, var(--member) 30%, white);
  border-radius: 9px;
  color: color-mix(in srgb, var(--member) 75%, #14223d);
  background: linear-gradient(160deg, color-mix(in srgb, var(--member) 14%, white), color-mix(in srgb, var(--member) 7%, white));
  font-size: 14px; font-weight: 650;
}
.avatar.small { flex-basis: 30px; width: 30px; height: 30px; border-radius: 8px; font-size: 13px; }
.avatar.tiny { flex-basis: 20px; width: 20px; height: 20px; border-radius: 6px; font-size: 11px; }
.avatar.large { flex-basis: 45px; width: 45px; height: 45px; border-radius: 12px; font-size: 18px; }
.avatar-group { display: flex; align-items: center; gap: 2px; }
.color-band { display: flex; overflow: hidden; height: 3px; }
.color-band > span { min-width: 1px; background: var(--member); }

/* ---------- 架构图（通用） ---------- */
.architecture > .section-heading { padding-block: 17px; }
.architecture > .member-filters { justify-content: flex-end; margin: 0 22px 12px; }
.architecture-canvas, .breakdown-canvas, .member-graph { --map-gap: 14px; position: relative; background: var(--surface); }
.architecture-canvas { margin: 0 var(--space-3) var(--space-3); padding: var(--space-5) var(--space-4) var(--space-6); border: 1px solid var(--line); border-radius: var(--radius-control); background: var(--surface-soft); }
.map-root, .graph-root {
  position: relative;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: max-content; max-width: 100%; min-height: 48px;
  margin: 0 auto; padding: 10px 20px;
  border: 1px solid var(--accent-strong);
  border-radius: 10px;
  color: white; background: linear-gradient(135deg, #4066df, var(--accent-strong));
  font-size: 15px;
  box-shadow: 0 6px 18px rgba(37, 67, 174, .26);
}
.map-root > .icon, .graph-root > .icon { width: 19px; height: 19px; }
.map-root > span:last-child { padding-left: 10px; border-left: 1px solid #5f77c9; color: #dde6ff; font-size: 13px; }
.map-root::after, .graph-root::after { content: ""; position: absolute; top: 100%; left: 50%; width: 1px; height: 19px; background: var(--connector); }
.map-columns { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: start; gap: var(--map-gap); margin-top: 38px; }
.map-columns::before { content: ""; position: absolute; top: -19px; left: calc((100% - 4 * var(--map-gap)) / 10); right: calc((100% - 4 * var(--map-gap)) / 10); height: 1px; background: var(--connector); }
.agent-branch { position: relative; min-width: 0; }
.agent-branch::before { content: ""; position: absolute; top: -19px; left: 50%; width: 1px; height: 19px; background: var(--connector); }
.agent-node {
  display: flex; align-items: center; gap: 9px;
  min-height: 65px; padding: 10px;
  border: 1px solid #d4def5; border-radius: var(--radius-control);
  background: var(--accent-soft);
  transition: border-color var(--dur-fast), background-color var(--dur-fast), box-shadow var(--dur-fast);
}
.agent-node:hover { border-color: var(--accent); box-shadow: var(--shadow-1); }
.agent-symbol {
  display: inline-grid; flex: 0 0 30px; place-items: center;
  width: 30px; height: 32px;
  border: 1px solid #dbe4f9; border-radius: 8px;
  color: var(--accent); background: linear-gradient(160deg, #f2f6ff, #e9efff);
}
.agent-symbol .icon { width: 18px; height: 18px; }
.agent-node > span:nth-child(2) { min-width: 0; }
.agent-node strong { display: block; font-size: 16px; letter-spacing: -.01em; }
.agent-node small { display: block; margin-top: 3px; color: var(--muted); font-size: 13px; font-weight: 400; }
.agent-node .progress-ring { margin-left: auto; }
.agent-node .progress-ring small { display: inline; color: var(--ink); }
.agent-branch > ul { position: relative; display: grid; gap: 8px; margin: 11px 0 0; padding-left: 11px; }
.agent-branch > ul::before { content: ""; position: absolute; top: -11px; bottom: 36px; left: 3px; width: 1px; background: var(--connector); }
.agent-branch li { position: relative; min-width: 0; }
.agent-branch li::before { content: ""; position: absolute; top: 34px; left: -8px; width: 8px; height: 1px; background: var(--connector); }
.map-node {
  position: relative; display: block; overflow: hidden;
  min-height: 66px; padding: 9px 10px 8px 14px;
  border: 1px solid #e0e6f0; border-radius: 8px;
  background: var(--surface);
  transition: border-color var(--dur-fast), background-color var(--dur-fast), box-shadow var(--dur-fast);
}
.map-node:hover { border-color: var(--member); box-shadow: 0 2px 8px rgba(28, 42, 72, .07); }
.map-node > .color-band { position: absolute; top: 4px; bottom: 4px; left: 3px; flex-direction: column; width: 3px; height: auto; border-radius: 5px; }
.map-node > strong { display: block; font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; letter-spacing: -.005em; }
.map-node-meta { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-top: 5px; }
.map-node-owners { display: inline-flex; align-items: center; gap: 4px; }
.map-node-owners > i { width: 7px; height: 7px; border-radius: 50%; background: var(--member); }
.map-node-meta > span:last-child { color: var(--muted); font-size: 13px; white-space: nowrap; }
.map-node > .progress { height: 3px; margin-top: 6px; background: #edf0f5; }
.map-node.unmatched { opacity: .4; }
.map-node[data-matched="true"] { border-color: var(--member); }

/* ---------- 阶段明细 / 矩阵 ---------- */
.phase-panel { margin-top: 22px; overflow: hidden; }
.phase-details { margin-top: 18px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-panel); background: var(--surface); }
.phase-details > summary { display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 10px 18px; cursor: pointer; list-style: none; transition: background-color var(--dur-fast); }
.phase-details > summary::-webkit-details-marker { display: none; }
.phase-details > summary:hover { background: var(--surface-soft); }
.phase-details > summary > strong { font-size: 15px; }
.phase-details > summary > span { color: var(--muted); font-size: 13px; }
.phase-details > summary > .icon { width: 16px; height: 16px; margin-left: auto; color: var(--muted); transition: transform var(--dur-fast); }
.phase-details[open] > summary { border-bottom: 1px solid var(--line); }
.phase-details[open] > summary > .icon { transform: rotate(90deg); }
.phase-details-content { padding-top: 12px; }
.phase-details-content > .pip-legend { justify-content: flex-end; padding: 0 18px 8px; }
.pip-legend { display: flex; align-items: center; gap: 13px; color: var(--muted); font-size: 13px; }
.pip-legend > span { display: flex; align-items: center; gap: 6px; }
.pip-legend i, .task-pips i { display: inline-block; flex: 0 0 auto; width: 8px; height: 8px; border-radius: 2.5px; --member: #5265ba; }
.pip-done { border: 1px solid var(--member); background: var(--member); }
.pip-doing { border: 1px solid var(--member); background: linear-gradient(135deg, var(--member) 50%, white 50%); }
.pip-todo { border: 1px solid color-mix(in srgb, var(--member) 40%, white); background: color-mix(in srgb, var(--member) 12%, white); }
.pip-empty { border: 1px dashed #c5cfdf; background: transparent; }
.phase-matrix { padding: 0 16px 17px; overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--connector) transparent; }
.phase-matrix-head, .phase-matrix-row { display: grid; grid-template-columns: 112px repeat(5, minmax(125px, 1fr)); align-items: stretch; gap: 8px; min-width: 785px; }
.phase-matrix-head { padding-bottom: 10px; }
.phase-matrix-head > span { align-self: center; color: var(--muted); font-size: 13px; }
.phase-matrix-head > div { position: relative; padding-left: 10px; }
.phase-matrix-head > div:not(:last-child)::after { content: "›"; position: absolute; top: 0; right: -4px; color: var(--faint); }
.phase-matrix-head strong { display: block; font-size: 14px; }
.phase-matrix-head small { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }
.phase-matrix-row + .phase-matrix-row { margin-top: 7px; }
.matrix-agent { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; transition: color var(--dur-fast); }
.matrix-agent:hover { color: var(--accent); }
.matrix-agent .icon { width: 17px; height: 17px; color: var(--accent); }
.phase-cell {
  display: block; height: 100%; min-height: 65px;
  padding: 10px 12px;
  border: 1px solid #e0e6f0; border-radius: var(--radius-control);
  background: var(--surface-soft);
  transition: border-color var(--dur-fast), background-color var(--dur-fast), box-shadow var(--dur-fast);
}
.phase-cell:hover { border-color: #a7badd; background: var(--accent-wash); box-shadow: var(--shadow-1); }
.phase-cell > span:first-child { display: flex; align-items: baseline; justify-content: space-between; }
.phase-cell strong { font-size: 16px; font-variant-numeric: tabular-nums; }
.phase-cell strong small { font-size: 13px; font-weight: 400; }
.phase-cell > span > small { color: var(--muted); font-size: 13px; }
.task-pips { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 6px; }
.phase-empty { color: var(--faint); background: #fbfcfe; }
.phase-empty:hover { border-color: #cdd6e4; background: #fbfcfe; box-shadow: none; }

/* ---------- Agent 标签页 ---------- */
.agent-tabs { display: flex; flex-wrap: wrap; gap: 5px; margin: 3px 0 17px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.agent-tabs a {
  display: flex; align-items: center; gap: 7px;
  min-height: 44px; padding: 8px 16px;
  border: 1px solid transparent; border-radius: 9px;
  color: var(--muted); font-size: 14px; font-weight: 600;
  transition: background-color var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast), box-shadow var(--dur-fast);
}
.agent-tabs .icon { width: 17px; height: 17px; }
.agent-tabs a:hover { color: var(--accent); background: var(--accent-wash); }
.agent-tabs .active { border-color: #cdd9f5; color: var(--accent-strong); background: var(--surface); box-shadow: var(--shadow-1); }

/* ---------- 功能架构（Agent 页） ---------- */
.function-canvas { position: relative; padding: var(--space-4) var(--space-5) var(--space-6); border-top: 1px solid var(--line); border-radius: 0 0 var(--radius-panel) var(--radius-panel); background: linear-gradient(180deg, var(--surface-soft), #f3f6fb); }
.function-canvas .graph-root { min-width: 210px; padding: 6px 15px; border-color: #d4def5; color: var(--ink); background: var(--accent-soft); box-shadow: none; }
.function-canvas .graph-root > .progress-ring { margin-left: auto; }
.module-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6) var(--space-5); margin-top: 36px; }
.module-card {
  position: relative; display: flex; flex-direction: column; overflow: visible;
  border-color: #d9e1ee;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.module-card:hover { border-color: color-mix(in srgb, var(--member) 45%, #e4e9f2); box-shadow: var(--shadow-2); }
.module-card::before { content: ""; position: absolute; top: -19px; left: 50%; width: 1px; height: 18px; background: var(--connector); }
.module-card::after { content: ""; position: absolute; top: -20px; left: -14px; right: -14px; height: 1px; background: var(--connector); }
.module-card > .color-band { height: 4px; border-radius: var(--radius-panel) var(--radius-panel) 0 0; }
.module-card > header { padding: 15px 17px 12px; }
.module-card > header > a { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.module-card h3 { font-size: 16px; line-height: 1.45; letter-spacing: -.005em; }
.module-card > header > p { margin-top: 5px; color: var(--muted); font-size: 13px; }
.module-percent { display: grid; flex: 0 0 auto; justify-items: end; gap: 1px; color: var(--accent); font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.module-percent small { color: var(--muted); font-size: 10px; font-weight: 400; }
.module-card > header > a:hover h3 { color: var(--accent); }
.module-contributions { position: relative; display: grid; gap: 0; margin: 0 16px 8px; }
.module-contributions > a { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 8px; min-width: 0; padding: 10px 0; border-bottom: 1px solid var(--line); background: transparent; transition: color var(--dur-fast); }
.module-contributions > a:last-child { border-bottom: 0; }
.module-contributions > a:hover { color: var(--accent); }
.contribution-name { display: flex; align-items: center; gap: 8px; min-width: 0; }
.contribution-name > span:last-child { font-size: 13px; overflow-wrap: anywhere; }
.contribution-name small { display: block; color: var(--muted); font-size: 13px; }
.module-contributions > a > span:nth-child(2) { flex-shrink: 0; color: var(--muted); font-size: 13px; }
.module-contributions > a > span:nth-child(2) strong { color: var(--ink); font-size: 14px; font-variant-numeric: tabular-nums; }
.contribution-bar { position: absolute; bottom: -1px; left: 0; height: 2.5px; border-radius: 2px; background: var(--member); transition: width var(--dur-base) var(--ease-out); }
.module-card > footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-top: auto; padding: 9px 16px; border-top: 1px solid var(--line); color: var(--muted); background: #fbfcfe; font-size: 13px; border-radius: 0 0 calc(var(--radius-panel) - 1px) calc(var(--radius-panel) - 1px); }
.module-card footer a { display: flex; align-items: center; gap: 2px; min-height: 32px; color: var(--accent); font-weight: 600; }
.module-card footer a .icon { width: 11px; height: 11px; transition: transform var(--dur-fast); }
.module-card footer a:hover .icon { transform: translateX(2px); }

/* ---------- 工作拆解（板块页） ---------- */
.breakdown-canvas { padding: var(--space-6); border-top: 1px solid var(--line); border-radius: 0 0 var(--radius-panel) var(--radius-panel); background: linear-gradient(180deg, var(--surface-soft), #f3f6fb); }
.module-root { padding: 13px 18px; border-color: #b9c8e8; color: var(--ink); background: var(--surface); border-radius: 10px; box-shadow: var(--shadow-1); }
.module-root > .color-band { position: absolute; top: 0; left: 0; right: 0; border-radius: 9px 9px 0 0; }
.module-root > span:nth-of-type(2) small { display: block; color: var(--muted); font-size: 13px; }
.module-root .progress-ring { margin-left: 10px; }
.person-branches { position: relative; display: grid; grid-template-columns: repeat(var(--branches), minmax(0, 1fr)); align-items: start; gap: 22px; margin-top: 38px; }
.person-branches::before { content: ""; position: absolute; top: -19px; left: calc((100% - (var(--branches) - 1) * 22px) / var(--branches) / 2); right: calc((100% - (var(--branches) - 1) * 22px) / var(--branches) / 2); height: 1px; background: var(--connector); }
.person-branch { position: relative; min-width: 0; }
.person-branch::before { content: ""; position: absolute; top: -19px; left: 50%; width: 1px; height: 19px; background: var(--connector); }
.person-node {
  display: flex; align-items: center; gap: 10px;
  min-height: 77px; padding: 13px 15px;
  border: 1px solid color-mix(in srgb, var(--member) 38%, #e4e9f2);
  border-radius: 10px;
  background: color-mix(in srgb, var(--member) 7%, white);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.person-node:hover { border-color: var(--member); box-shadow: 0 3px 12px color-mix(in srgb, var(--member) 22%, transparent); }
.person-node > span:nth-child(2) { min-width: 0; }
.person-node strong { display: block; font-size: 14px; overflow-wrap: anywhere; letter-spacing: -.005em; }
.person-node small { display: block; margin-top: 3px; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.person-node > .progress-ring { margin-left: auto; }
.person-node > .progress-ring small { display: inline; color: var(--ink); }
.work-nodes { position: relative; display: grid; gap: 14px; margin-top: 14px; padding-left: 15px; }
.work-nodes::before { content: ""; position: absolute; top: -14px; bottom: 52px; left: 5px; width: 1px; background: color-mix(in srgb, var(--member) 40%, white); }
.work-nodes > .work-node::before { content: ""; position: absolute; top: 48px; left: -11px; width: 10px; height: 1px; background: color-mix(in srgb, var(--member) 40%, white); }
.work-node {
  position: relative; min-width: 0;
  border: 1px solid var(--line); border-left: 3px solid var(--member);
  border-radius: var(--radius-control);
  background: var(--surface);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.work-node:hover { border-color: color-mix(in srgb, var(--member) 55%, var(--line)); box-shadow: 0 3px 12px rgba(28, 42, 72, .09); }
.work-node-open { display: block; width: 100%; min-height: 108px; padding: 13px 14px 12px; border: 0; border-radius: 5px; color: var(--ink); background: transparent; text-align: left; transition: background-color var(--dur-fast); }
.work-node-open:hover { background: color-mix(in srgb, var(--member) 4%, transparent); }
.work-node-phase { display: block; margin-bottom: 6px; color: var(--muted); font-size: 12px; letter-spacing: .01em; }
.work-node-open > strong { display: block; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; letter-spacing: -.005em; }
.work-node-description { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; margin-top: 7px; color: var(--muted); font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.sortable-task > .work-node-open { padding-left: 56px; }
.task-sort { position: absolute; z-index: 2; top: 8px; left: 5px; }
.task-drag-handle { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 7px; color: var(--muted); background: transparent; cursor: grab; touch-action: none; }
.task-drag-handle:hover, .task-drag-handle[aria-expanded="true"] { color: var(--accent); background: var(--accent-soft); }
.task-drag-handle:active { cursor: grabbing; }
.task-sort-actions { position: absolute; top: 44px; left: 0; display: flex; flex-direction: column; width: 70px; padding: 4px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); box-shadow: var(--shadow-2); }
.task-sort-actions button { min-height: 44px; border: 0; border-radius: 5px; background: transparent; font-size: 13px; }
.task-sort-actions button:hover { color: var(--accent); background: var(--accent-soft); }
.work-node.task-dragging { z-index: 100; pointer-events: none; opacity: .97; border-color: var(--accent); box-shadow: 0 14px 36px rgba(28, 42, 72, .22); transform: scale(1.012); transition: none; }
.task-dragging::before { display: none; }
.task-drop-placeholder { min-width: 0; border: 2px dashed #a5b7ed; border-radius: var(--radius-control); background: var(--accent-soft); }
.sorting-tasks { cursor: grabbing; user-select: none; }
.task-sort-hint { margin: 0 20px 14px; color: var(--muted); font-size: 12px; }
.work-node-bottom { display: flex; align-items: center; justify-content: space-between; gap: 7px; margin-top: 13px; }
.work-node-bottom > span:first-child { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 13px; }
.work-node-bottom > span:last-child { color: var(--muted); font-size: 13px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.work-node-bottom b { color: var(--ink); font-size: 15px; font-weight: 700; }

/* ---------- 状态标签 ---------- */
.status {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 26px; padding: 3px 10px;
  border: 1px solid #dce4f0; border-radius: 999px;
  color: var(--muted); background: #f1f4f9;
  font-size: 12px; font-weight: 600; line-height: 1.3; white-space: nowrap;
}
.status i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status .icon { width: 11px; height: 11px; }
.status-doing { border-color: #ecd9b0; color: #8a6116; background: #fdf6e7; }
.status-doing i { box-shadow: 0 0 0 2px rgba(192, 138, 46, .18); }
.status-done { border-color: #bfe0d6; color: #1f6e5f; background: #e9f6f2; }
.status-done .icon { stroke-width: 2.4; }

/* ---------- 负载与分配（沿用区块） ---------- */
.load-panel { padding-bottom: 24px; }
.workload-bars.large { gap: 22px; margin: 0; padding: 5px 28px 0; }
.large .workload-row { grid-template-columns: 105px minmax(20px, 1fr) 75px 100px; gap: 22px; }
.large .workload-person { gap: 10px; }
.large .avatar.tiny { width: 27px; height: 27px; flex-basis: 27px; border-radius: 7px; font-size: 12px; }
.large .workload-person > span:last-child { font-size: 13px; }
.large .workload-track { height: 24px; border-radius: 6px; }
.large .workload-track > span { border-radius: 6px; }
.large .workload-row > strong { font-size: 19px; }
.large .workload-row > strong small { font-size: 13px; }
.workload-detail { color: var(--muted); font-size: 13px; text-align: right; }
.allocation-panel { margin-top: 22px; padding-bottom: 18px; }
.allocation-matrix { padding: 0 22px; overflow-x: auto; }
.allocation-head, .allocation-row { display: grid; grid-template-columns: 125px repeat(4, minmax(135px, 1fr)); align-items: center; gap: 11px; min-width: 709px; }
.allocation-head { padding-bottom: 15px; color: var(--muted); font-size: 13px; }
.allocation-head > a { display: flex; align-items: center; gap: 9px; font-size: 13px; }
.allocation-row + .allocation-row { margin-top: 10px; }
.allocation-cell { display: block; padding: 15px; border: 1px solid color-mix(in srgb, var(--member) 25%, #e3e9f2); border-radius: var(--radius-control); color: var(--muted); background: color-mix(in srgb, var(--member) 6%, white); font-size: 13px; transition: border-color var(--dur-fast); }
.allocation-cell:hover { border-color: var(--member); }
.allocation-cell-person { display: none; }
.allocation-cell-data { display: block; }
.allocation-cell strong { color: var(--ink); font-size: 22px; font-variant-numeric: tabular-nums; }
.allocation-cell small { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }
.allocation-cell .progress { margin-top: 10px; background: color-mix(in srgb, var(--member) 15%, white); }

/* ---------- 任务看板 ---------- */
.board-completion { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; white-space: nowrap; }
.board-controls { padding: 16px 20px 14px; margin-bottom: 20px; }
.board-filters { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px 18px; }
.board-filters > label, .task-filters label { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 13px; }
.board-filters select, .task-filters select { min-height: 44px; padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-control); background: var(--surface); font-size: 14px; transition: border-color var(--dur-fast), box-shadow var(--dur-fast); }
.phase-ribbon { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-3); padding-top: var(--space-3); border-top: 1px solid var(--line); }
.phase-ribbon button { position: relative; display: flex; align-items: center; gap: 9px; min-height: 40px; padding: 8px 11px; border: 1px solid transparent; border-radius: var(--radius-control); color: var(--muted); background: transparent; font-size: 13px; transition: background-color var(--dur-fast), color var(--dur-fast); }
.phase-ribbon button > span { display: grid; place-items: center; min-width: 22px; height: 22px; padding-inline: 5px; border-radius: 6px; color: #63738f; background: #ecf0f7; font-size: 12px; font-variant-numeric: tabular-nums; }
.phase-ribbon button:hover { background: #f0f4fb; }
.phase-ribbon button.active { color: var(--accent-strong); background: var(--accent-soft); }
.phase-ribbon button.active > span { color: var(--accent); background: white; box-shadow: inset 0 0 0 1px #dbe5fb; }
.kanban { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 20px; }
.kanban-column { min-width: 0; padding: 0 var(--space-3) var(--space-3); border: 1px solid var(--line); border-top: 3px solid var(--column-accent); border-radius: var(--radius-panel); background: #f0f4fa; box-shadow: var(--shadow-1); }
.column-todo { --column-accent: #8b9bb5; }
.column-doing { --column-accent: #cf9434; }
.column-done { --column-accent: #2f8f80; }
.kanban-column > header { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 59px; padding: 7px 3px; }
.kanban-column h2 { display: flex; align-items: center; gap: 8px; font-size: 15px; letter-spacing: -.005em; }
.kanban-column h2 > span { display: grid; place-items: center; min-width: 24px; height: 24px; padding-inline: 6px; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); background: var(--surface); font-size: 12px; font-variant-numeric: tabular-nums; }
.kanban-column > header > span { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.kanban-cards { display: grid; gap: 12px; }
.work-context { display: flex; align-items: center; gap: 7px; min-height: 42px; padding: 8px 12px; border-bottom: 1px solid color-mix(in srgb, var(--member) 15%, #edf0f7); color: var(--muted); font-size: 13px; transition: color var(--dur-fast); }
.work-context > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.work-context > .icon { flex: 0 0 auto; width: 11px; height: 11px; margin-left: auto; transition: transform var(--dur-fast); }
.work-context:hover { color: var(--accent); }
.work-context:hover > .icon { transform: translateX(2px); }
.work-node-actions { display: flex; align-items: center; justify-content: space-between; padding: 0 11px 9px; }
.work-node-actions select { min-height: 42px; padding: 7px 9px; border: 1px solid var(--line-strong); border-radius: var(--radius-control); color: var(--muted); background: var(--surface); font-size: 13px; transition: border-color var(--dur-fast), box-shadow var(--dur-fast); }
.work-node-actions > a { display: grid; place-items: center; width: 31px; height: 31px; border: 1px solid var(--line-strong); border-radius: 7px; color: var(--muted); background: white; transition: border-color var(--dur-fast), color var(--dur-fast), background-color var(--dur-fast); }
.work-node-actions > a .icon { width: 14px; height: 14px; }
.work-node-actions > a:hover { border-color: #a9bcdf; color: var(--accent); background: var(--accent-wash); }
.show-more { display: flex; justify-content: center; align-items: center; gap: 6px; width: 100%; min-height: 44px; margin-top: 10px; border: 1px dashed var(--connector); border-radius: var(--radius-control); color: #4a6396; background: rgba(255, 255, 255, .6); font-size: 13px; font-weight: 550; transition: border-color var(--dur-fast), color var(--dur-fast), background-color var(--dur-fast); }
.show-more .icon { width: 13px; height: 13px; }
.show-more:hover { border-color: var(--accent); color: var(--accent); background: white; }
.column-empty { padding: 35px 10px; margin: 0 2px; border: 1px dashed var(--line-strong); border-radius: var(--radius-control); color: var(--muted); text-align: center; font-size: 13px; }
.personal-summary { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-2) var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-panel); background: var(--surface); box-shadow: var(--panel-shadow); }
.personal-summary > .progress-ring { width: 68px; height: 68px; flex-basis: 68px; }
.personal-summary > span:last-child > strong { display: block; font-size: 21px; font-variant-numeric: tabular-nums; }
.personal-summary > span:last-child > small { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; }
.personal-toolbar { padding: 0 0 15px; }
.task-filters { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- 成员工作图 ---------- */
.member-graph { padding: 24px 20px; }
.member-graph .graph-root { border-color: color-mix(in srgb, var(--member) 35%, white); color: var(--ink); background: white; box-shadow: 0 4px 14px color-mix(in srgb, var(--member) 20%, transparent); }
.member-graph .graph-root > span:last-child { padding-left: 5px; color: var(--muted); font-size: 13px; }
.member-agent-columns { position: relative; display: grid; grid-template-columns: repeat(var(--branches), minmax(0, 1fr)); align-items: start; gap: 16px; margin-top: 38px; }
.member-agent-columns::before { content: ""; position: absolute; top: -19px; left: calc((100% - (var(--branches) - 1) * 16px) / var(--branches) / 2); right: calc((100% - (var(--branches) - 1) * 16px) / var(--branches) / 2); height: 1px; background: var(--connector); }
.member-agent-branch { position: relative; min-width: 0; }
.member-agent-branch::before { content: ""; position: absolute; top: -19px; left: 50%; width: 1px; height: 19px; background: var(--connector); }
.member-agent-node { display: flex; align-items: center; gap: 8px; min-height: 72px; padding: 11px 12px; border: 1px solid #c9d5eb; border-radius: var(--radius-control); background: var(--surface); transition: border-color var(--dur-fast), box-shadow var(--dur-fast); }
.member-agent-node:hover { border-color: var(--accent); box-shadow: var(--shadow-1); }
.member-agent-node > .icon { width: 18px; height: 18px; color: var(--accent); }
.member-agent-node strong { display: block; font-size: 14px; }
.member-agent-node small { display: block; margin-top: 3px; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.member-agent-node .progress-ring { margin-left: auto; }
.member-agent-node .progress-ring small { display: inline; color: var(--ink); }
.member-work-nodes { position: relative; display: grid; gap: 14px; margin-top: 14px; padding-left: 9px; }
.member-work-nodes::before { content: ""; position: absolute; top: -14px; left: 2px; bottom: 80px; width: 1px; background: var(--connector); }
.member-work-nodes .work-node::before { content: ""; position: absolute; top: 80px; left: -8px; width: 7px; height: 1px; background: var(--connector); }
.member-work-nodes .work-node-open { padding-inline: 10px; }
.member-work-nodes .work-context { padding-inline: 9px; font-size: 13px; }
.member-work-nodes .work-context > span { white-space: normal; }
.member-work-nodes .work-node-open > strong { font-size: 14px; }
.empty-state { padding: 30px; color: var(--muted); text-align: center; font-size: 14px; }
.module-grid > .empty-state { grid-column: 1 / -1; border: 1px dashed var(--line-strong); border-radius: var(--radius-control); background: var(--surface-soft); }

/* ---------- 架构与流程文档页 ---------- */
.document-diagram { min-width: 0; overflow: hidden; }
.document-diagram > .section-heading { padding-block: 16px; }
.diagram-tabs { display: flex; width: max-content; max-width: 100%; gap: 4px; margin: 0 0 13px; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: #e9edf4; }
.diagram-tabs a { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 8px 18px; border-radius: 7px; color: var(--muted); font-size: 13px; font-weight: 600; transition: background-color var(--dur-fast), color var(--dur-fast), box-shadow var(--dur-fast); }
.diagram-tabs a:hover { color: var(--ink); }
.diagram-tabs a.active { color: var(--ink); background: var(--surface); box-shadow: 0 1px 3px rgba(28, 42, 72, .14); }
.diagram-scroll { max-height: none; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; border-top: 1px solid var(--line); background: var(--surface-soft); scrollbar-color: var(--connector) #eef2f8; }
.relationship-svg { display: block; width: 100%; height: auto; min-width: 980px; }
.diagram-legend { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 17px; margin: 0 0 13px; padding: 5px 1px; }
.diagram-legend > span { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
.diagram-legend .diagram-legend-label { color: var(--ink); font-weight: 600; }
.diagram-legend i { display: block; width: 22px; height: 0; border-top: 2px solid #3a5cb8; }
.diagram-legend .legend-data { border-color: #2a7f74; }
.diagram-legend .legend-guard { border-color: #7d5fa8; border-top-style: dashed; }
.diagram-legend .legend-state { border-color: #647694; border-top-style: dotted; }
.diagram-legend .legend-feedback { border-color: #b07a2a; border-top-width: 3px; }
.diagram-legend .legend-separator { width: 1px; height: 16px; border: 0; background: var(--line); }
.diagram-legend .diagram-owner { gap: 5px; }
.diagram-owner > i { width: 8px; height: 8px; border: 0; border-radius: 50%; background: var(--member); box-shadow: 0 0 0 2px color-mix(in srgb, var(--member) 18%, transparent); }

/* ---------- 编辑弹窗 ---------- */
.editor { width: min(100% - 30px, 690px); max-height: min(90dvh, 850px); margin: auto; padding: 0; overflow: hidden; border: 1px solid #cdd8ee; border-radius: 14px; color: var(--ink); background: var(--surface); box-shadow: var(--shadow-3); }
.editor.wide { width: min(100% - 30px, 850px); }
.editor::backdrop { background: rgba(20, 30, 54, .45); backdrop-filter: blur(6px); }
.editor form { display: flex; flex-direction: column; max-height: min(90dvh - 2px, 848px); }
.editor-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); background: var(--surface-soft); }
.editor-heading h2 { font-size: 19px; letter-spacing: -.01em; }
.editor-heading h2 small { display: inline-block; margin-left: 8px; padding: 2px 9px; border-radius: 999px; color: var(--accent-strong); background: var(--accent-wash); font-size: 12px; font-weight: 600; }
.icon-button { display: grid; place-items: center; min-width: 40px; min-height: 40px; padding: 7px; border: 1px solid var(--line-strong); border-radius: var(--radius-control); color: var(--muted); background: var(--surface); transition: border-color var(--dur-fast), color var(--dur-fast), background-color var(--dur-fast), transform var(--dur-fast); }
.icon-button .icon { width: 17px; height: 17px; }
.icon-button:hover { border-color: #a9bcdf; color: var(--accent); background: var(--accent-wash); transform: rotate(90deg); }
.editor-body { min-height: 0; padding: 20px 22px 24px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--connector) transparent; }
.editor-actions { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 22px; border-top: 1px solid var(--line); background: var(--surface-soft); }
.editor label { display: block; min-width: 0; color: var(--muted); font-size: 13px; font-weight: 550; }
.editor input, .editor select, .editor textarea { display: block; width: 100%; min-width: 0; min-height: 44px; margin-top: 6px; padding: 9px 11px; border: 1px solid var(--line-strong); border-radius: var(--radius-control); color: var(--ink); background: var(--surface); font-size: 14px; transition: border-color var(--dur-fast), box-shadow var(--dur-fast); }
.editor textarea { resize: vertical; font-family: inherit; }
/* 表单控件聚焦环（替代默认 outline，键盘鼠标一致） */
.editor input:focus, .editor select:focus, .editor textarea:focus,
.board-filters select:focus, .task-filters select:focus, .work-node-actions select:focus,
.editor input:focus-visible, .editor select:focus-visible, .editor textarea:focus-visible,
.board-filters select:focus-visible, .task-filters select:focus-visible, .work-node-actions select:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-ring);
}
.edit-members { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.edit-member { min-width: 0; padding: 16px; border: 1px solid color-mix(in srgb, var(--member) 25%, #e2e8f3); border-top: 3px solid var(--member); border-radius: 10px; background: color-mix(in srgb, var(--member) 4%, white); }
.edit-member h3 { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.edit-member p { min-height: 64px; margin: 10px 0 14px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.edit-member > div { display: grid; grid-template-columns: minmax(0, 1fr) 96px; gap: 10px; }
.edit-member > label, .edit-member > div { margin-top: 12px; }
.button:disabled { opacity: .65; cursor: wait; }
.color-label > span { display: flex; align-items: center; margin-top: 5px; }
.editor .member-color { flex: 0 0 35px; width: 35px; margin: 0; padding: 4px; }
.color-label code { margin-left: 4px; font-family: inherit; font-size: 12px; font-weight: 400; color: var(--faint); }
.bulk-edit { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; padding: 11px 14px; border: 1px solid #d5e0f3; border-radius: 10px; background: var(--accent-wash); }
.bulk-edit select { width: 225px; max-width: 62%; margin: 0; }
.edit-task-list { display: grid; gap: 12px; }
.edit-task { padding: 16px; border: 1px solid color-mix(in srgb, var(--member) 25%, #e3e9f2); border-left: 3px solid var(--member); border-radius: 10px; background: color-mix(in srgb, var(--member) 3%, white); }
.edit-task h3 { font-size: 15px; letter-spacing: -.005em; }
.edit-task > p { margin-top: 7px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.editor-deliverable { display: flex; align-items: baseline; gap: 10px; margin-top: 12px; padding: 8px 11px; border: 1px solid color-mix(in srgb, var(--member) 16%, #e3e9f2); border-radius: 7px; background: white; }
.editor-deliverable > span { flex: 0 0 auto; color: var(--muted); font-size: 13px; }
.editor-deliverable > strong { font-size: 14px; font-weight: 550; }
.edit-fields { display: grid; grid-template-columns: minmax(0, 2fr) minmax(75px, .8fr) minmax(95px, 1fr); gap: 10px; margin-top: 14px; }
.form-error { padding-top: 10px; color: #b03a3d; font-size: 13px; }
.task-toolbar { display: flex; flex-wrap: wrap; gap: 10px; }
.task-content-fields { display: grid; gap: 14px; }
.task-delete { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.task-delete > span { color: var(--muted); font-size: 13px; }
.button-danger { color: #a12f35; border-color: #e1b3b6; background: #fff5f5; }
.button-danger:hover { color: #81252a; border-color: #c47d82; background: #fde9eb; }
.deleted-tasks { margin-top: 20px; padding: 18px 22px; }
.deleted-tasks summary { cursor: pointer; color: var(--muted); font-weight: 600; }
.deleted-task { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-top: 14px; }
.deleted-task > span { min-width: 0; overflow-wrap: anywhere; }

/* ---------- Toast ---------- */
.toast { position: fixed; bottom: 20px; right: 20px; z-index: 2; max-width: calc(100% - 40px); padding: 13px 18px; border: 1px solid #c3d1ee; border-left: 3px solid var(--accent); border-radius: 12px; color: #29478b; background: var(--surface); box-shadow: var(--shadow-3); font-size: 14px; font-weight: 550; pointer-events: none; }
.toast:empty { display: none; }

/* ---------- 连线（JS 绘制） ---------- */
.graph-lines { position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.graph-lines path { fill: none; stroke-width: 1.4; stroke-linejoin: round; }
[data-graph] > :not(.graph-lines) { position: relative; z-index: 1; }
[data-graph] .map-root::after, [data-graph] .graph-root::after,
[data-graph] .map-columns::before, [data-graph] .agent-branch::before,
[data-graph] .agent-branch > ul::before, [data-graph] .agent-branch li::before,
[data-graph] .module-card::before, [data-graph] .module-card::after,
[data-graph] .person-branches::before, [data-graph] .person-branch::before,
[data-graph] .work-nodes::before, [data-graph] .work-nodes > .work-node::before,
[data-graph] .member-agent-columns::before, [data-graph] .member-agent-branch::before,
[data-graph] .member-work-nodes::before, [data-graph] .member-work-nodes .work-node::before { display: none; }

/* ---------- 页面切换：错峰淡入（纯透明度，不位移，
            避免影响 drawGraphLines 的测量） ---------- */
@media (prefers-reduced-motion: no-preference) {
  #main-content > * { animation: page-in 420ms ease-out backwards; }
  #main-content > *:nth-child(2) { animation-delay: 55ms; }
  #main-content > *:nth-child(3) { animation-delay: 110ms; }
  #main-content > *:nth-child(4) { animation-delay: 165ms; }
  #main-content > *:nth-child(5) { animation-delay: 220ms; }
  #main-content > *:nth-child(6) { animation-delay: 275ms; }
  .editor[open] { animation: editor-in 260ms var(--ease-out); }
  .editor[open]::backdrop { animation: fade-in 260ms ease-out; }
  .toast:not(:empty) { animation: toast-in 300ms var(--ease-out); }
}
@keyframes page-in { from { opacity: 0; } }
@keyframes editor-in { from { opacity: 0; transform: translateY(12px) scale(.985); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

@media (max-width: 1200px) {
  .brand > span:last-child { display: none; }
  .project-pulse > div { padding-inline: 18px; }
  .pulse-progress { gap: 5px; }
  .pulse-progress > .progress-ring { flex-basis: 72px; width: 72px; height: 72px; }
  .agent-node { gap: 7px; padding-inline: 8px; }
  .agent-symbol { flex-basis: 24px; width: 24px; height: 28px; border: 0; background: none; }
  .agent-node > .progress-ring { flex-basis: 33px; width: 33px; height: 33px; }
  .agent-node strong { font-size: 14px; }
  .agent-node small { font-size: 13px; }
  .map-node-meta { flex-wrap: nowrap; }
  .member-agent-node { gap: 6px; padding-inline: 9px; }
  .member-agent-node > .icon { display: none; }
  .person-node { gap: 7px; padding-inline: 11px; }
}
@media (max-width: 950px) {
  .app-header { gap: 12px; }
  .brand strong { font-size: 16px; }
  .main-nav a { gap: 5px; padding-inline: 10px; font-size: 12px; }
  #team-settings { padding-inline: 10px; font-size: 12px; }
  .project-pulse { grid-template-columns: 1fr 1fr; }
  .project-pulse > .pulse-workload { grid-column: 1 / -1; margin: 0; padding-block: 16px; border-top: 1px solid var(--line); border-left: 0; }
  .pulse-workload .workload-bars { grid-template-columns: 1fr 1fr; gap: 11px 24px; }
  .architecture-canvas { padding-inline: 10px; --map-gap: 9px; }
  .agent-symbol { display: none; }
  .agent-node > .progress-ring { flex-basis: 31px; width: 31px; height: 31px; }
  .agent-node .progress-ring > strong { font-size: 10px; }
  .map-node { padding-inline: 10px 7px; }
  .map-node > strong { font-size: 13px; }
  .map-node-meta b { margin-left: 3px; }
  .avatar.tiny { flex-basis: 20px; width: 20px; height: 20px; font-size: 11px; }
  .module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .person-branches { gap: 14px; }
  .person-branches::before { left: calc((100% - (var(--branches) - 1) * 14px) / var(--branches) / 2); right: calc((100% - (var(--branches) - 1) * 14px) / var(--branches) / 2); }
  .person-node { flex-wrap: wrap; }
  .person-node > .progress-ring { display: none; }
  .person-node > .avatar { flex-basis: 27px; width: 27px; height: 27px; font-size: 12px; }
  .person-node strong { font-size: 14px; }
  .person-node small { font-size: 13px; }
  .breakdown-canvas { padding-inline: 16px; }
  .member-agent-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 18px; }
  .member-agent-columns::before { display: none; }
  .member-agent-node > .icon { display: block; }
  .kanban { gap: 12px; }
  .kanban-column { padding-inline: 8px; }
  .kanban-column > header { flex-wrap: wrap; gap: 4px; padding-block: 12px; }
  .kanban-column h2 { font-size: 15px; }
}
@media (max-width: 680px) {
  .app-header { grid-template-columns: 1fr auto; gap: 8px; padding-block: 10px 0; position: static; backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--surface); }
  .main-nav { grid-column: 1 / -1; grid-row: 2; width: 100%; gap: 4px; }
  .main-nav a { flex: 1; min-height: 43px; gap: 0; padding-inline: 2px; border-bottom: 2px solid transparent; border-radius: 5px 5px 0 0; font-size: 12px; white-space: nowrap; }
  .main-nav a .icon { display: none; }
  .main-nav a.active { border-bottom-color: var(--accent); }
  #team-settings { grid-column: 2; grid-row: 1; min-height: 38px; }
  .header-actions { grid-column: 2; grid-row: 1; }
  .brand strong { font-size: 16px; }
  .brand-mark { width: 23px; height: 23px; }
  .breadcrumbs { min-height: 39px; font-size: 12px; }
  .page-heading { flex-wrap: wrap; align-items: start; gap: 12px; padding-bottom: 17px; }
  .heading-actions { width: 100%; }
  .heading-actions .button { flex: 1; padding-inline: 8px; font-size: 13px; }
  .relationship-svg { min-width: 1040px; }
  .document-diagram > .section-heading { padding: 14px; }
  .diagram-legend { gap: 8px 12px; }
  .diagram-legend > span { gap: 5px; font-size: 12px; }
  .diagram-tabs { margin-bottom: 12px; }
  .diagram-tabs a { min-height: 42px; padding-inline: 12px; }
  h1 { font-size: 26px; }
  .page-description { font-size: 14px; }
  .page-heading > .button { min-height: 44px; padding: 8px 12px; font-size: 13px; }
  .project-pulse { grid-template-columns: minmax(0, 1fr); }
  .project-pulse > div { margin: 0; padding: 14px; }
  .project-pulse > div + div { border-top: 1px solid var(--line); border-left: 0; }
  .pulse-progress { gap: 5px; }
  .pulse-progress > .pulse-percent { font-size: 36px; }
  .pulse-progress p { font-size: 13px; }
  .pulse-label { font-size: 14px; }
  .pulse-label a { font-size: 13px; }
  .status-numbers { margin-block: 10px; gap: 6px; }
  .status-numbers > div { gap: 2px 5px; }
  .status-numbers strong { font-size: 20px; }
  .status-numbers span { font-size: 13px; }
  .project-pulse > .pulse-workload { grid-column: auto; padding-block: 14px; }
  .pulse-workload .workload-bars { grid-template-columns: minmax(0, 1fr); gap: 9px; }
  .workload-row { grid-template-columns: 72px minmax(15px, 1fr) 70px; gap: 10px; }
  .workload-row > strong small { display: inline; }
  .workload-person { gap: 4px; }
  .workload-person > span:last-child { font-size: 13px; }
  .workload-row > strong { font-size: 13px; }
  .section-heading { padding: 16px; gap: 9px; }
  .section-heading h2 { font-size: 17px; }
  .architecture > .section-heading { align-items: flex-start; }
  .architecture > .section-heading .member-filters { justify-content: flex-start; margin: 4px 0 0; }
  .filter-button { min-height: 44px; padding-inline: 9px; font-size: 13px; }
  .architecture-canvas { margin: 0 8px 8px; padding: 18px 11px 20px; }
  .map-root { margin-left: 0; min-height: 43px; padding-inline: 12px; font-size: 13px; }
  .map-root::after { left: 12px; }
  .map-columns { grid-template-columns: minmax(0, 1fr); gap: 24px; margin-top: 22px; padding-left: 21px; }
  .map-columns::before { top: -3px; bottom: 45px; left: 12px; right: auto; width: 1px; height: auto; }
  .agent-branch::before { top: 30px; left: -9px; width: 9px; height: 1px; }
  .agent-node { min-height: 62px; padding: 10px 12px; }
  .agent-symbol { display: grid; }
  .agent-node strong { font-size: 15px; }
  .agent-node small { font-size: 13px; }
  .agent-branch > ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 11px; padding-left: 10px; }
  .agent-branch > ul::before { bottom: 38px; }
  .agent-branch li::before { top: 37px; left: -7px; width: 7px; }
  .agent-branch li:nth-child(even)::before { left: -9px; width: 9px; }
  .map-node { min-height: 80px; padding: 9px 8px 8px 11px; }
  .map-node > strong { min-height: 32px; font-size: 13px; }
  .map-node-meta { margin-top: 5px; gap: 4px; }
  .map-node-meta > span:last-child { font-size: 13px; }
  .map-node > .progress { margin-top: 6px; }
  .phase-matrix { padding-inline: 14px; }
  .agent-tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 3px; margin-bottom: 13px; }
  .agent-tabs a { justify-content: center; min-height: 44px; padding-inline: 2px; font-size: 13px; }
  .agent-tabs .icon { display: none; }
  .function-canvas { padding: 18px 15px 23px; }
  .function-canvas .graph-root { margin-left: 0; }
  .function-canvas .module-grid { padding-left: 22px; margin-top: 24px; }
  .module-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; margin-top: 30px; }
  .module-card::after { left: -6px; right: -6px; }
  .breakdown-canvas { padding: 18px 13px 22px; }
  .module-root { width: 100%; padding: 10px 12px; gap: 8px; }
  .module-root > span:nth-of-type(2) { min-width: 0; }
  .module-root > span:nth-of-type(2) strong { font-size: 14px; }
  .module-root > span:nth-of-type(2) small { font-size: 13px; }
  .module-root > .progress-ring { flex-basis: 35px; width: 35px; height: 35px; margin-left: auto; }
  .module-root::after { left: 12px; }
  .person-branches { grid-template-columns: minmax(0, 1fr); gap: 24px; margin-top: 22px; padding-left: 22px; }
  .person-branches::before { top: -3px; bottom: 40px; left: 12px; right: auto; width: 1px; height: auto; }
  .person-branch::before { top: 34px; left: -10px; width: 10px; height: 1px; }
  .person-node { min-height: 68px; padding: 10px 13px; }
  .person-node strong { font-size: 14px; }
  .person-node > .progress-ring { display: inline-grid; }
  .person-node small { font-size: 13px; }
  .work-nodes { margin-top: 12px; padding-left: 12px; }
  .work-nodes > .work-node::before { left: -8px; width: 7px; }
  .large .workload-row { grid-template-columns: 76px minmax(20px, 1fr) 68px; gap: 10px; }
  .large .workload-person { gap: 6px; }
  .large .workload-person > span:last-child { font-size: 13px; }
  .large .workload-detail { display: none; }
  .large .workload-track { height: 18px; }
  .large .workload-row > strong { font-size: 17px; }
  .workload-bars.large { gap: 21px; padding-inline: 17px; }
  .allocation-matrix { padding-inline: var(--space-4); overflow: visible; }
  .allocation-head { display: none; }
  .allocation-row { grid-template-columns: repeat(2, minmax(0, 1fr)); min-width: 0; gap: 8px; }
  .allocation-row > .matrix-agent { grid-column: 1 / -1; min-height: 44px; padding: 4px 0 8px; border-bottom: 1px solid var(--line); }
  .allocation-row + .allocation-row { margin-top: var(--space-4); }
  .allocation-cell { display: grid; gap: 5px; padding: 10px; }
  .allocation-cell-person { display: flex; align-items: center; gap: 6px; color: var(--ink); font-size: 13px; overflow-wrap: anywhere; }
  .allocation-cell-data { font-size: 13px; }
  .allocation-cell strong { font-size: 19px; }
  .allocation-cell .progress { grid-column: 1 / -1; margin-top: 0; }
  .board-completion { font-size: 13px; }
  .board-controls { padding: 12px; }
  .board-filters { gap: 10px; }
  .board-filters > label { width: 100%; }
  .board-filters select { flex: 1; }
  .phase-ribbon { gap: 5px 13px; }
  .phase-ribbon button { gap: 5px; padding: 7px; font-size: 12px; }
  .kanban { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .kanban-column { padding-inline: 11px; }
  .kanban-column > header { min-height: 55px; }
  .kanban-column h2 { font-size: 14px; }
  .work-node-actions select { min-height: 44px; }
  .work-node-actions > a { width: 44px; height: 44px; }
  .personal-summary { gap: 10px; }
  .personal-summary > .progress-ring { flex-basis: 54px; width: 54px; height: 54px; }
  .personal-summary > span:last-child > strong { font-size: 18px; }
  .personal-summary > span:last-child > small { font-size: 13px; }
  .personal-toolbar { gap: 12px; }
  .task-filters { flex-wrap: nowrap; width: 100%; gap: 12px; }
  .task-filters label { flex: 1; min-width: 0; gap: 6px; font-size: 13px; }
  .task-filters select { width: 100%; min-width: 0; font-size: 13px; }
  .member-graph { padding: 20px 13px; }
  .member-graph .graph-root { margin-left: 0; }
  .member-graph .graph-root::after { left: 12px; }
  .member-agent-columns { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-left: 21px; margin-top: 22px; }
  .member-agent-columns::before { display: block; top: -3px; bottom: 40px; left: 12px; right: auto; width: 1px; height: auto; }
  .member-agent-branch::before { top: 34px; left: -9px; width: 9px; height: 1px; }
  .member-agent-node > .icon { display: block; }
  .member-agent-node { min-height: 68px; padding: 10px 12px; }
  .member-work-nodes .work-node-open > strong { font-size: 14px; }
  .member-work-nodes .work-context { font-size: 13px; }
  .editor-heading, .editor-body, .editor-actions { padding-inline: 15px; }
  .editor-heading h2 { font-size: 17px; }
  .editor-heading h2 small { display: block; margin: 3px 0 0; width: max-content; font-size: 13px; }
  .edit-members { grid-template-columns: minmax(0, 1fr); }
  .edit-member p { min-height: 0; }
  .edit-task { padding: 12px; }
  .edit-task h3 { font-size: 14px; }
  .edit-fields { grid-template-columns: 1fr 1fr; }
  .edit-fields > label:first-child { grid-column: 1 / -1; }
  .editor input, .editor select { min-height: 44px; }
  .editor-deliverable { align-items: start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ============================================================
   三大主页（总览 / 看板 / 成员）
   ============================================================ */
.overview-page, .board-page, .team-page { display: grid; gap: 22px; padding-bottom: 10px; }
.overview-page > .page-heading, .board-page > .page-heading, .team-page > .page-heading { padding: 8px 0 0; }
.overview-metrics, .board-summary, .team-summary {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius-panel);
  background: var(--surface);
  box-shadow: var(--panel-shadow);
}
.overview-metric, .board-summary > div, .team-summary > div { display: grid; align-content: center; gap: 4px; min-width: 0; min-height: 108px; padding: 16px 24px; }
.overview-metric + .overview-metric, .board-summary > div + div, .team-summary > div + div { border-left: 1px solid var(--line); }
.overview-metric > span:first-child, .board-summary > div > span, .team-summary > div > span { color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: .01em; }
.overview-metric > strong, .board-summary strong, .team-summary strong { color: var(--ink); font-size: 28px; font-variant-numeric: tabular-nums; line-height: 1.2; letter-spacing: -.01em; }
.overview-metric > strong small, .board-summary strong small, .team-summary strong small { color: var(--muted); font-size: 14px; font-weight: 500; }
.overview-metric > small { color: var(--muted); font-size: 13px; }
.overview-metric-primary { grid-template-columns: 1fr auto; align-content: center; background: linear-gradient(135deg, var(--accent-wash), var(--surface) 60%); }
.overview-metric-primary > span:first-child { grid-column: 1 / -1; color: var(--accent-strong); }
.overview-metric-primary > strong { grid-column: 1 / -1; }
.overview-metric-track { grid-column: 1 / -1; display: block; overflow: hidden; height: 5px; margin-top: 3px; border-radius: 5px; background: #e4eaf5; }
.overview-metric-track > i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #5b82ea, var(--accent)); }

/* ---------- 总览：能力架构 ---------- */
.overview-architecture { overflow: hidden; box-shadow: var(--panel-shadow); }
.overview-architecture > .section-heading { min-height: 66px; }
.overview-architecture > .section-heading .member-filters { justify-content: flex-end; }
.overview-architecture .architecture-canvas { margin: 0; padding: 21px 18px 26px; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: linear-gradient(180deg, var(--surface-soft), #f2f5fb); }
.overview-architecture .map-root { min-height: 48px; border-color: var(--accent-strong); border-radius: 10px; }
.overview-architecture .map-columns { --map-gap: 12px; gap: var(--map-gap); margin-top: 37px; }
.overview-architecture .agent-branch { padding: 0 8px 8px; border-left: 1px solid #e3e9f4; }
.overview-architecture .agent-branch:first-child { border-left: 0; }
.overview-architecture .agent-branch > h3 { margin: 0; }
.overview-architecture .agent-node { display: grid; grid-template-columns: 29px minmax(0, 1fr) auto; gap: 8px; min-height: 70px; padding: 9px; border: 1px solid #dde5f2; border-radius: 8px; color: var(--ink); background: var(--surface); }
.overview-architecture .agent-node:hover { border-color: var(--accent); background: var(--surface); box-shadow: var(--shadow-1); }
.overview-architecture .agent-symbol { width: 28px; height: 28px; flex-basis: 28px; border-color: #e2e9f6; border-radius: 7px; color: var(--accent); background: linear-gradient(160deg, #f2f6ff, #e9efff); }
.overview-agent-copy { min-width: 0; }
.overview-agent-copy strong { font-size: 15px; letter-spacing: -.005em; }
.overview-agent-copy small { margin-top: 4px; font-size: 12px; line-height: 1.4; }
.overview-architecture .agent-node > b { align-self: start; color: var(--accent); font-size: 13px; font-variant-numeric: tabular-nums; }
.overview-agent-progress { display: grid; justify-items: end; gap: 1px; white-space: nowrap; }
.overview-agent-progress small, .map-node-title > span small { color: var(--muted); font-size: 11px; font-weight: 400; line-height: 1.2; }
.overview-architecture .agent-branch > ul { display: grid; gap: 0; margin: 10px 0 0; padding: 0; }
.overview-architecture .map-node { min-height: 99px; padding: 9px 8px 9px 13px; border: 0; border-bottom: 1px solid #e6ebf4; border-radius: 8px; background: transparent; }
.overview-architecture .map-node:hover, .overview-architecture .map-node[data-matched="true"] { border-color: color-mix(in srgb, var(--member) 30%, transparent); background: color-mix(in srgb, var(--member) 5%, white); }
.overview-architecture .map-node > .color-band { top: 8px; bottom: 8px; left: 2px; width: 3px; }
.map-node-title { display: flex; align-items: start; justify-content: space-between; gap: 7px; }
.map-node-title > strong { font-size: 13px; line-height: 1.4; letter-spacing: -.005em; }
.map-node-title > span { display: grid; flex: 0 0 auto; justify-items: end; color: var(--ink); font-size: 12px; font-variant-numeric: tabular-nums; line-height: 1.2; white-space: nowrap; font-weight: 650; }
.map-node-count { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.map-node-owners { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.owner-name {
  display: inline-flex; align-items: center; gap: 4px;
  min-height: 22px; padding: 1px 8px 1px 2px;
  border: 1px solid color-mix(in srgb, var(--member) 28%, white);
  border-radius: 999px;
  color: color-mix(in srgb, var(--member) 78%, #17232d);
  background: color-mix(in srgb, var(--member) 9%, white);
  font-size: 12px; white-space: nowrap;
}
.owner-name .avatar { width: 17px; height: 17px; flex-basis: 17px; border: 0; border-radius: 50%; font-size: 10px; }
.overview-architecture .map-node > .progress { height: 3px; margin-top: 7px; }

/* ---------- 任务看板页 ---------- */
.board-summary { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.board-summary > div { min-height: 90px; }
.board-controls { padding: 16px 19px 13px; margin: 0; box-shadow: var(--panel-shadow); }
.board-filters { justify-content: flex-start; gap: 14px 24px; }
.board-filters > label { gap: 9px; color: var(--ink); font-size: 14px; font-weight: 600; }
.board-filters select { min-width: 150px; }
.board-member-filter { min-width: 0; }
.board-member-filter .member-filters { gap: 4px; }
.board-phase-filter { display: grid; grid-template-columns: 82px minmax(0, 1fr); align-items: center; gap: 9px; margin-top: 12px; padding-top: 11px; border-top: 1px solid var(--line); }
.board-phase-filter > span { color: var(--muted); font-size: 13px; }
.board-phase-filter .phase-ribbon { flex-wrap: nowrap; min-width: 0; gap: 4px; margin: 0; padding: 0; border: 0; overflow-x: auto; scrollbar-width: thin; }
.board-phase-filter .phase-ribbon button { flex: 0 0 auto; min-height: 40px; }
.board-page .kanban { align-items: stretch; gap: 14px; }
.board-page .kanban-column { padding: 0 10px 12px; border-color: #dde5f1; border-top: 3px solid var(--column-accent); border-radius: 10px; background: #f1f4fa; }
.board-page .kanban-column > header { min-height: 58px; padding-inline: 4px; }
.board-page .kanban-column h2 { font-size: 15px; }
.board-page .kanban-column h2 > span { border-radius: 6px; }
.board-page .kanban-cards { gap: 9px; }
.board-page .work-node { overflow: hidden; border: 1px solid #dce3f0; border-left: 3px solid var(--member); border-radius: 8px; background: white; }
.board-page .work-node:hover { border-color: color-mix(in srgb, var(--member) 55%, #dce3f0); box-shadow: 0 2px 10px rgba(28, 42, 72, .09); }
.board-page .work-context { min-height: 37px; padding: 6px 10px; border-color: #eef1f7; font-size: 12px; }
.board-page .work-node-open { min-height: 98px; padding: 10px 11px 9px; }
.board-page .work-node-phase { margin-bottom: 4px; font-size: 12px; }
.board-page .work-node-open > strong { font-size: 14px; line-height: 1.4; }
.board-page .work-node-bottom { margin-top: 9px; }
.board-page .work-node-actions { padding: 0 10px 8px; }

/* ---------- 成员投入页 ---------- */
.team-summary > div { min-height: 88px; }
.team-summary strong { font-size: 24px; }
.team-effort-panel, .allocation-panel { overflow: hidden; box-shadow: var(--panel-shadow); }
.team-effort-panel > .section-heading, .allocation-panel > .section-heading { min-height: 62px; border-bottom: 1px solid var(--line); }
.team-chart-legend { display: flex; align-items: center; gap: 15px; color: var(--muted); font-size: 13px; }
.team-chart-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.team-chart-legend i { width: 13px; height: 9px; border-radius: 2.5px; }
.team-legend-plan { background: #ccd7ea; }
.team-legend-done { background: var(--accent); }
.team-effort-chart { display: grid; gap: 0; padding: 4px 21px 9px; }
.team-effort-row { display: grid; grid-template-columns: minmax(190px, 1.1fr) minmax(120px, 3fr) 84px 112px; align-items: center; gap: 20px; min-height: 79px; border-bottom: 1px solid #e7ebf3; transition: background-color var(--dur-fast); }
.team-effort-row:last-child { border-bottom: 0; }
.team-effort-row:hover { background: var(--surface-soft); }
.team-effort-person { display: flex; align-items: center; gap: 11px; min-width: 0; }
.team-effort-person > span:last-child { display: grid; gap: 2px; min-width: 0; }
.team-effort-person strong { font-size: 14px; letter-spacing: -.005em; }
.team-effort-person small { overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.team-effort-track { display: block; height: 12px; border-radius: 6px; background: #edf1f7; }
.team-effort-plan { display: block; height: 100%; overflow: hidden; border-radius: inherit; background: color-mix(in srgb, var(--member) 25%, white); }
.team-effort-plan > b { display: block; height: 100%; border-radius: inherit; background: var(--member); }
.team-effort-total { display: flex; align-items: baseline; justify-content: end; gap: 5px; color: var(--muted); white-space: nowrap; }
.team-effort-total strong { color: var(--ink); font-size: 18px; font-variant-numeric: tabular-nums; }
.team-effort-total small, .team-effort-done { color: var(--muted); font-size: 13px; }
.team-effort-done { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.allocation-matrix { padding: 18px 20px 21px; }
.allocation-head, .allocation-row { grid-template-columns: minmax(145px, 1.05fr) repeat(4, minmax(116px, 1fr)); gap: 9px; min-width: 0; }
.allocation-head { align-items: end; padding-bottom: 12px; }
.allocation-head > a { min-height: 48px; gap: 8px; transition: opacity var(--dur-fast); }
.allocation-head > a:hover { opacity: .8; }
.allocation-head > a > span:last-child { display: grid; gap: 1px; min-width: 0; }
.allocation-head > a strong { font-size: 13px; }
.allocation-head > a small { overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.allocation-row + .allocation-row { margin-top: 8px; }
.allocation-row > .matrix-agent { min-height: 72px; padding: 10px; border: 1px solid #e4eaf4; border-radius: 8px; background: var(--surface-soft); }
.allocation-cell { min-height: 72px; padding: 10px 11px; border-radius: 8px; background: color-mix(in srgb, var(--member) 7%, white); }
.allocation-cell-data { color: var(--muted); font-size: 12px; }
.allocation-cell strong { display: block; font-size: 18px; line-height: 1.3; font-variant-numeric: tabular-nums; }
.allocation-cell small { margin-top: 2px; font-size: 11px; }
.allocation-cell .progress { height: 4px; margin-top: 8px; background: color-mix(in srgb, var(--member) 17%, white); }
.allocation-cell-empty { display: flex; align-items: center; justify-content: center; min-height: 72px; border: 1px dashed #d3dcea; color: var(--faint); background: transparent; font-size: 19px; }
@media (max-width: 1100px) {
  .overview-architecture .map-columns { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 25px; }
  .overview-architecture .agent-branch:nth-child(4) { border-left: 0; }
  .board-page .kanban { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .board-page .kanban-column:last-child { grid-column: 1 / -1; }
  .allocation-head, .allocation-row { grid-template-columns: minmax(132px, 1fr) repeat(4, minmax(104px, 1fr)); }
  .team-effort-row { grid-template-columns: minmax(165px, 1.2fr) minmax(100px, 2fr) 76px 100px; gap: 14px; }
}
@media (max-width: 760px) {
  .overview-page, .board-page, .team-page { gap: 15px; }
  .overview-metrics, .board-summary, .team-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .overview-metric, .board-summary > div, .team-summary > div { min-height: 82px; padding: 12px 14px; }
  .overview-metric:nth-child(3), .board-summary > div:nth-child(3), .team-summary > div:nth-child(3) { border-left: 0; }
  .overview-metric:nth-child(n + 3), .board-summary > div:nth-child(n + 3), .team-summary > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .overview-metric > strong, .board-summary strong { font-size: 23px; }
  .team-summary strong { font-size: 21px; }
  .overview-architecture > .section-heading { align-items: flex-start; }
  .overview-architecture > .section-heading .member-filters { justify-content: flex-start; }
  .overview-architecture .architecture-canvas { padding: 17px 12px 19px; }
  .overview-architecture .map-root { margin-left: 0; }
  .overview-architecture .map-root::after { left: 15px; }
  .overview-architecture .map-columns { grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 24px; padding-left: 22px; }
  .overview-architecture .map-columns::before { top: -5px; bottom: 45px; left: 12px; right: auto; width: 1px; height: auto; }
  .overview-architecture .agent-branch, .overview-architecture .agent-branch:nth-child(4) { padding: 0 0 0 8px; border-left: 0; }
  .overview-architecture .agent-node { grid-template-columns: 30px minmax(0, 1fr) auto; }
  .overview-architecture .agent-branch > ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 9px; }
  .overview-architecture .map-node { min-height: 105px; padding-inline: 10px 6px; }
  .board-summary > div { min-height: 76px; }
  .board-controls { padding: 12px; }
  .board-filters { display: grid; gap: 10px; }
  .board-filters > label { justify-content: space-between; width: 100%; }
  .board-filters select { flex: 1; }
  .board-member-filter .member-filters { gap: 2px; }
  .board-member-filter .filter-button { padding-inline: 7px; font-size: 12px; }
  .board-phase-filter { grid-template-columns: 1fr; gap: 4px; }
  .board-phase-filter .phase-ribbon { margin-inline: -2px; }
  .board-phase-filter .phase-ribbon button { min-height: 42px; padding-inline: 9px; font-size: 12px; }
  .board-page .kanban { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .board-page .kanban-column:last-child { grid-column: auto; }
  .team-effort-panel > .section-heading { align-items: flex-start; }
  .team-effort-chart { padding-inline: 13px; }
  .team-effort-row { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; padding: 12px 0; }
  .team-effort-person { grid-column: 1 / 2; }
  .team-effort-total { grid-column: 2 / 3; grid-row: 1; }
  .team-effort-track { grid-column: 1 / 3; grid-row: 2; height: 12px; }
  .team-effort-done { grid-column: 1 / 3; grid-row: 3; text-align: left; }
  .allocation-panel .section-heading { padding: 14px; }
  .allocation-matrix { padding: 12px; }
  .allocation-head { display: none; }
  .allocation-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .allocation-row > .matrix-agent { grid-column: 1 / -1; min-height: 46px; padding: 6px 2px 8px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; }
  .allocation-row + .allocation-row { margin-top: 15px; }
  .allocation-cell { display: grid; align-content: start; gap: 5px; min-height: 83px; padding: 9px; }
  .allocation-cell-person { display: flex; align-items: center; gap: 5px; font-size: 12px; }
  .allocation-cell-data { font-size: 12px; }
  .allocation-cell strong { font-size: 18px; }
  .allocation-cell-empty { align-items: start; justify-content: start; min-height: 83px; padding: 9px; }
  .allocation-cell-empty .allocation-cell-person { display: flex; }
}

/* ============================================================
   看板阶段步骤条 / Agent 投入分布（增量区块）
   ============================================================ */
.overview-architecture .agent-node > .status-strip { grid-column: 1 / -1; width: 100%; height: 5px; margin-top: -1px; }
.overview-architecture .map-node > .status-strip { height: 5px; margin-top: 7px; }
.overview-architecture .map-node { min-height: 99px; }
.board-phase-filter { grid-template-columns: 112px minmax(0, 1fr); align-items: start; }
.board-phase-heading { display: grid; align-content: start; justify-items: start; gap: 7px; }
.board-phase-heading > span { padding-top: 5px; color: var(--muted); font-size: 13px; }
.board-phase-heading > button { display: flex; align-items: center; gap: 8px; min-height: 34px; padding: 5px 10px; border: 1px solid var(--line-strong); border-radius: 7px; color: var(--muted); background: var(--surface); font-size: 12px; transition: border-color var(--dur-fast), color var(--dur-fast), background-color var(--dur-fast), box-shadow var(--dur-fast); }
.board-phase-heading > button.active { border-color: #b9c8e8; color: var(--accent-strong); background: var(--accent-soft); box-shadow: var(--shadow-1); }
.board-phase-heading > button b { min-width: 20px; color: var(--ink); font-variant-numeric: tabular-nums; }
.board-phase-filter .phase-ribbon { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; overflow: visible; }
.board-phase-filter .phase-step { position: relative; display: grid; align-content: center; gap: 8px; min-width: 0; min-height: 61px; padding: 8px 10px; border: 1px solid #e0e7f2; border-radius: 8px; color: var(--ink); background: var(--surface); text-align: left; transition: border-color var(--dur-fast), background-color var(--dur-fast), box-shadow var(--dur-fast); }
.board-phase-filter .phase-step:not(:last-child)::after { content: ""; position: absolute; top: 18px; right: -13px; width: 12px; height: 1px; background: var(--connector); }
.board-phase-filter .phase-step:hover { border-color: #aebfdd; background: #fbfcfe; }
.board-phase-filter .phase-step.active { border-color: color-mix(in srgb, var(--accent) 55%, white); background: var(--accent-wash); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 55%, white); }
.board-phase-filter .phase-step.active .phase-step-head > strong { color: var(--accent); }
.phase-step-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-width: 0; }
.phase-step-head > span { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.phase-step-head > strong { flex: 0 0 auto; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; transition: color var(--dur-fast); }
.phase-step-track { display: flex; overflow: hidden; gap: 1px; height: 6px; border-radius: 4px; background: #e9eef6; }
.phase-step-track > i { display: block; min-width: 0; height: 100%; border-radius: inherit; }
.team-summary > div { min-height: 78px; }
.allocation-panel > .section-heading { border-bottom: 0; }
.allocation-scale { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.allocation-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 9px 18px; padding: 0 21px 17px; border-bottom: 1px solid var(--line); }
.allocation-legend-item { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding-inline: 10px; margin-inline: -10px; border-radius: 9px; transition: background-color var(--dur-fast); }
.allocation-legend-item:hover { background: color-mix(in srgb, var(--member) 7%, transparent); }
.allocation-legend-item > span:last-child { display: grid; gap: 1px; color: var(--ink); font-size: 12px; }
.allocation-legend-item small { color: var(--muted); font-size: 11px; }
.allocation-chart { display: grid; gap: 0; padding: 9px 21px 15px; }
.allocation-chart-row { display: grid; grid-template-columns: minmax(150px, .8fr) minmax(150px, 2.7fr) 78px; align-items: center; gap: 18px; min-height: 65px; border-bottom: 1px solid #e7ebf3; transition: background-color var(--dur-fast); }
.allocation-chart-row:last-child { border-bottom: 0; }
.allocation-agent { display: flex; align-items: center; gap: 9px; min-width: 0; transition: opacity var(--dur-fast); }
.allocation-agent:hover { opacity: .78; }
.allocation-agent > .icon { width: 18px; height: 18px; color: var(--accent); }
.allocation-agent > span { display: grid; gap: 2px; font-size: 13px; font-weight: 600; }
.allocation-agent small { color: var(--muted); font-size: 11px; font-weight: 400; font-variant-numeric: tabular-nums; }
.allocation-chart-track { display: block; overflow: hidden; height: 14px; border-radius: 7px; background: #edf1f7; }
.allocation-chart-fill { display: flex; overflow: hidden; height: 100%; border-radius: inherit; }
.allocation-chart-fill > i { display: block; min-width: 0; height: 100%; flex: var(--segment-weight) 1 0%; background: var(--member); }
.allocation-chart-row > strong { color: var(--ink); font-size: 15px; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.allocation-chart-row > strong small { margin-left: 4px; color: var(--muted); font-size: 11px; font-weight: 400; }
.allocation-details { border-top: 1px solid var(--line); }
.allocation-details > summary { position: relative; display: flex; align-items: center; min-height: 46px; padding: 0 21px; color: var(--muted); cursor: pointer; list-style: none; font-size: 12px; font-weight: 550; transition: color var(--dur-fast), background-color var(--dur-fast); }
.allocation-details > summary::-webkit-details-marker { display: none; }
.allocation-details > summary::after { content: ""; margin-left: 8px; width: 7px; height: 7px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform var(--dur-fast); }
.allocation-details[open] > summary::after { transform: rotate(-135deg) translateY(-2px); }
.allocation-details > summary:hover { color: var(--accent); background: var(--surface-soft); }
.allocation-details[open] > summary { border-bottom: 1px solid var(--line); color: var(--ink); }
.allocation-details .allocation-matrix { padding-top: 15px; }
@media (max-width: 1100px) {
  .board-phase-filter { grid-template-columns: 95px minmax(0, 1fr); }
  .board-phase-filter .phase-ribbon { gap: 8px; }
  .board-phase-filter .phase-step:not(:last-child)::after { right: -9px; width: 8px; }
  .allocation-chart-row { grid-template-columns: minmax(130px, .9fr) minmax(120px, 2.4fr) 78px; gap: 12px; }
}
@media (max-width: 760px) {
  .board-phase-filter { grid-template-columns: 1fr; gap: 8px; }
  .board-phase-heading { display: flex; align-items: center; justify-content: space-between; }
  .board-phase-heading > span { padding: 0; }
  .board-phase-filter .phase-ribbon { display: flex; gap: 9px; margin: 0 -3px; padding: 2px 3px 7px; overflow-x: auto; }
  .board-phase-filter .phase-step { flex: 0 0 135px; min-height: 62px; }
  .board-phase-filter .phase-step:not(:last-child)::after { right: -10px; width: 9px; }
  .allocation-legend { gap: 6px 12px; padding: 0 13px 12px; }
  .allocation-legend-item { gap: 5px; min-height: 36px; }
  .allocation-legend-item > span:last-child { font-size: 11px; }
  .allocation-legend-item small { display: none; }
  .allocation-chart { padding: 5px 13px 9px; }
  .allocation-chart-row { grid-template-columns: minmax(82px, .9fr) minmax(90px, 2fr) 66px; gap: 9px; min-height: 57px; }
  .allocation-agent { gap: 5px; }
  .allocation-agent > .icon { width: 15px; height: 15px; }
  .allocation-agent > span { font-size: 11px; }
  .allocation-agent small { font-size: 10px; }
  .allocation-chart-track { height: 12px; }
  .allocation-chart-row > strong { font-size: 13px; }
  .allocation-chart-row > strong small { display: block; margin: 1px 0 0; font-size: 10px; }
  .allocation-details > summary { padding-inline: 13px; }
}

.module-boundary { margin-top: 8px; line-height: 1.7; }
.module-scope { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 20px; margin: -7px 0 20px; color: var(--muted); font-size: 13px; }
.module-scope > p:first-child { flex: 1 1 320px; }
.module-scope > a { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; color: var(--accent); }
.retained-note { flex-basis: 100%; }
.previous-tasks { margin-top: 18px; padding: 16px 20px; }
.previous-tasks > summary { min-height: 44px; cursor: pointer; }
.previous-tasks > article { padding: 14px 0; border-top: 1px solid var(--line); }
.previous-tasks h3 { font-size: 14px; }
.previous-tasks p { margin-top: 6px; color: var(--muted); font-size: 13px; }
.board-filters > label { min-width: 0; }
.board-filters select { min-width: 0; max-width: 100%; }
@media (min-width: 1101px) {
  .main-nav { justify-content: center; }
}
@media (max-width: 1100px) {
  .app-header { grid-template-columns: minmax(0, 1fr) auto; }
  .main-nav { grid-column: 1 / -1; grid-row: 2; width: 100%; }
}
@media (max-width: 760px) {
  .main-nav a { flex: 1 0 auto; min-height: 44px; padding-inline: 10px; }
  .page-location { column-gap: 10px; }
  .breadcrumbs { padding-block: 5px; }
  .board-filters > label > select { width: 0; }
  .heading-actions { flex-wrap: wrap; }
  .module-scope { margin-top: 0; }
}
