:root {
  --bg: #f4f5f7;
  --panel: #ffffff;
  --panel-2: #f8f9fb;
  --text: #15191e;
  --muted: #5d6877;
  --faint: #98a1ae;
  --line: #e5e7eb;
  --line-strong: #d3d8de;
  --accent: #3657d6;
  --accent-soft: #ecf0ff;
  --accent-mid: #9fb1f0;
  --on-accent: #ffffff;
  --ok: #1d8656;
  --ok-soft: #e5f4ec;
  --warn: #b26f12;
  --warn-soft: #fcf1de;
  --bad: #c43c36;
  --bad-soft: #fbebea;
  --private: #7a4fd1;
  --private-soft: #f4effd;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0f12;
    --panel: #15181d;
    --panel-2: #1b1f25;
    --text: #e8eaed;
    --muted: #9ba5b3;
    --faint: #677181;
    --line: #242930;
    --line-strong: #323943;
    --accent: #8ba3ff;
    --accent-soft: #1b2340;
    --accent-mid: #4a5ea8;
    --on-accent: #0b1022;
    --ok: #4cc38a;
    --ok-soft: #13281e;
    --warn: #e2aa52;
    --warn-soft: #2d2313;
    --bad: #f07f78;
    --bad-soft: #321a19;
    --private: #b49cf5;
    --private-soft: #231c36;
    --shadow: none;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }

/* ---------- shell ---------- */

.shell { display: grid; grid-template-columns: 212px minmax(0, 1fr) auto; min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 18px; padding: 20px 12px; border-right: 1px solid var(--line); background: var(--panel); overflow-y: auto; z-index: 10; }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 8px; }
.brand-mark { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: #2b3444; color: #fff; font-weight: 700; }
.brand-name { font-weight: 700; letter-spacing: 0.01em; }
.brand-sub { font-size: 12px; color: var(--muted); }
nav { display: flex; flex-direction: column; gap: 1px; }
nav a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 10px; border-radius: 7px; color: var(--text); }
nav a:hover { background: var(--panel-2); text-decoration: none; }
nav a.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.nav-label { margin: 14px 10px 4px; font-size: 11.5px; font-weight: 600; color: var(--faint); letter-spacing: 0.06em; }
.count { font-size: 11.5px; font-weight: 600; min-width: 20px; padding: 0 6px; border-radius: 10px; background: var(--bad-soft); color: var(--bad); text-align: center; line-height: 18px; }
.count.soft { background: var(--panel-2); color: var(--muted); border: 1px solid var(--line); }
.count:empty { display: none; }
.sidebar-foot { margin-top: auto; font-size: 12px; color: var(--muted); display: flex; flex-direction: column; gap: 4px; padding: 0 8px; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; background: var(--faint); }
.dot.ok { background: var(--ok); }
.dot.bad { background: var(--bad); }
.dot.warn { background: var(--warn); }

main { padding: 30px 40px 80px; max-width: 1280px; width: 100%; min-width: 0; }
main.home { max-width: 1360px; }
main.fill { max-width: none; height: 100vh; display: flex; flex-direction: column; padding-bottom: 20px; }
main.fill > .two-pane { flex: 1; min-height: 0; }
main.plans-page { padding: 0; max-width: none; height: 100vh; display: flex; flex-direction: column; overflow: hidden; background: var(--bg); }
.shell.copilot-open ~ .job-panel { right: 416px; }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
h1 { font-size: 24px; line-height: 1.3; font-weight: 650; margin: 0; letter-spacing: -0.01em; }
.sub { color: var(--muted); font-size: 13px; margin-top: 4px; }
h2 { font-size: 16px; font-weight: 650; margin: 32px 0 12px; }
h3 { font-size: 14px; font-weight: 600; margin: 18px 0 6px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; padding: 0 13px; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--panel); cursor: pointer; white-space: nowrap; font-weight: 500; text-decoration: none; color: var(--text); }
.btn:hover { border-color: var(--faint); text-decoration: none; }
.btn:disabled { opacity: 0.45; cursor: default; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 600; }
.btn.primary:hover { filter: brightness(1.06); }
.btn.ok { color: var(--ok); }
.btn.bad { color: var(--bad); }
.btn.small { height: 26px; padding: 0 9px; font-size: 13px; }
.btn.ghost { border-color: transparent; background: transparent; color: var(--muted); }
.btn.ghost:hover { background: var(--panel-2); color: var(--text); }
.btn.icon { width: 32px; padding: 0; font-size: 18px; }
.link-btn { border: 0; background: none; padding: 0; cursor: pointer; color: var(--muted); }
.link-btn:hover { color: var(--accent); }
.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.spacer { flex: 1; }

input[type="text"], input[type="search"], input[type="date"], input[type="password"], input[type="number"], select, textarea {
  border: 1px solid var(--line-strong); border-radius: 8px; background: var(--panel); padding: 5px 10px; outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
textarea { width: 100%; resize: vertical; line-height: 1.6; }
textarea.code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; min-height: 60vh; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.card.link { cursor: pointer; }
.card.link:hover { border-color: var(--line-strong); }
.stat { font-size: 24px; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; }
.stat.bad { color: var(--bad); }
.stat.ok { color: var(--ok); }
.stat-label { color: var(--muted); font-size: 12.5px; margin-top: 4px; }
.warn-text { color: var(--warn); }
.ok-text { color: var(--ok); }
.bad-text { color: var(--bad); }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; box-shadow: var(--shadow); }
.panel + .panel { margin-top: 14px; }
.panel.reading { max-width: 920px; }
.split { display: grid; grid-template-columns: 240px 1fr; gap: 20px; align-items: start; }
.list { display: flex; flex-direction: column; gap: 2px; }
.list-item { display: flex; align-items: center; gap: 8px; padding: 6px 9px; border-radius: 7px; cursor: pointer; }
.list-item:hover { background: var(--panel); }
.list-item.active { background: var(--panel); font-weight: 600; box-shadow: inset 2px 0 0 var(--accent); }
.list-item .meta { margin-left: auto; color: var(--faint); font-size: 12px; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.tab { padding: 8px 12px; border-bottom: 2px solid transparent; cursor: pointer; color: var(--muted); }
.tab.active { border-color: var(--accent); color: var(--text); font-weight: 600; }
.tabs.scroll { overflow-x: auto; white-space: nowrap; scrollbar-width: thin; }
.tabs.scroll .tab { flex: none; }

.subnav { position: sticky; top: 0; z-index: 5; display: flex; gap: 2px; margin: -6px 0 18px; padding: 8px 0; background: var(--bg); border-bottom: 1px solid var(--line); }
.subnav button { border: 0; background: none; padding: 4px 10px; border-radius: 6px; color: var(--muted); cursor: pointer; }
.subnav button:hover { background: var(--panel); color: var(--text); }
.team-dept { margin: 20px 0 10px; }

.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 13.5px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 500; font-size: 12.5px; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
tr.clickable { cursor: pointer; }
tr.clickable:hover td { background: var(--panel-2); }
td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.nowrap { white-space: nowrap; }
.col-company { min-width: 150px; max-width: 220px; }
.col-need { min-width: 200px; }
.col-budget { min-width: 64px; max-width: 110px; }
.col-owner { min-width: 56px; max-width: 110px; }
.col-next { min-width: 180px; max-width: 260px; }
.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.clamp4 { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

.badge { display: inline-block; padding: 0 8px; border-radius: 10px; font-size: 12px; line-height: 20px; background: var(--panel-2); color: var(--muted); border: 1px solid var(--line); white-space: nowrap; }
.badge.ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.badge.warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.badge.bad { background: var(--bad-soft); color: var(--bad); border-color: transparent; }
.badge.accent { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.tag { display: inline-block; padding: 0 6px; margin-right: 4px; border-radius: 5px; font-size: 12px; line-height: 19px; }
.tag-urgent { background: var(--bad-soft); color: var(--bad); }
.tag-muted { background: var(--panel-2); color: var(--muted); }
.mini-tag { display: inline-block; padding: 0 6px; border-radius: 5px; font-size: 11.5px; line-height: 18px; background: var(--panel-2); color: var(--muted); border: 1px solid var(--line); white-space: nowrap; }
.mini-tag.accent { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.mini-tag.warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.mini-tag.bad { background: var(--bad-soft); color: var(--bad); border-color: transparent; }
.chip { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; margin: 0 6px 6px 0; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); color: var(--text); font-size: 13px; }
.basis-card .chip { background: var(--panel); }
.chip:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

.md { line-height: 1.7; }
.md h1 { font-size: 20px; margin: 4px 0 10px; }
.md h2 { font-size: 16px; margin: 22px 0 8px; padding-bottom: 4px; border-bottom: 1px solid var(--line); }
.md h3 { font-size: 14.5px; margin: 16px 0 6px; }
.md p { margin: 6px 0; }
.md ul, .md ol { margin: 4px 0 8px; padding-left: 22px; }
.md li { margin: 2px 0; }
.md td:first-child, .md th:first-child { white-space: nowrap; }
.md blockquote { margin: 8px 0; padding: 6px 12px; border-left: 3px solid var(--line); color: var(--muted); }
.md code { font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; background: var(--panel-2); padding: 1px 5px; border-radius: 4px; }
.md pre { background: var(--panel-2); padding: 12px; border-radius: 8px; overflow-x: auto; }
.md pre code { background: none; padding: 0; }
.md-section.private { background: var(--private-soft); border-radius: 8px; padding: 2px 14px 8px; margin: 14px -14px; }
.md-section.private > h2 { color: var(--private); border-color: transparent; }

.callout { display: block; padding: 10px 14px; border-radius: 10px; background: var(--warn-soft); color: var(--text); }
.callout.info { background: var(--accent-soft); }
.callout.bad { background: var(--bad-soft); }
a.callout:hover { text-decoration: none; filter: brightness(0.98); }
.empty { color: var(--muted); padding: 24px; text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.mono { font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; }

.log { font-family: ui-monospace, Menlo, monospace; font-size: 12px; background: var(--panel-2); border-radius: 8px; padding: 10px 12px; max-height: 320px; overflow-y: auto; white-space: pre-wrap; word-break: break-all; color: var(--muted); }
.steps { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.step { color: var(--muted); }
.step b { color: var(--text); font-weight: 600; }
.bar { height: 8px; border-radius: 4px; background: var(--accent); opacity: 0.75; }

.job-panel { position: fixed; right: 20px; bottom: 20px; width: 420px; max-height: 60vh; display: flex; flex-direction: column; gap: 8px; background: var(--panel); border: 1px solid var(--line-strong); border-radius: 14px; padding: 14px 16px; box-shadow: 0 12px 32px rgba(15, 23, 42, 0.16); z-index: 20; }
.job-panel .log { max-height: 240px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #1f2933; color: #fff; padding: 8px 16px; border-radius: 8px; z-index: 30; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2); }
.toast.bad { background: var(--bad); }
.login { max-width: 360px; margin: 18vh auto; }
.modal-backdrop { position: fixed; inset: 0; background: rgba(15, 23, 42, 0.45); display: grid; place-items: center; padding: 20px; z-index: 40; }
.modal { width: 100%; max-width: 560px; max-height: 85vh; overflow-y: auto; }

/* ---------- 今天 ---------- */

.home-head { max-width: 940px; margin-bottom: 28px; }
.eyebrow { font-size: 12.5px; color: var(--muted); margin-bottom: 10px; }
.headline { font-size: 20px; line-height: 1.6; font-weight: 600; letter-spacing: 0; }
.headline-rest { margin: 8px 0 0; font-size: 14px; line-height: 1.75; color: var(--muted); }
.home-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(320px, 1fr); gap: 28px; align-items: start; }
.home-main > section + section { margin-top: 34px; }
.section-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.section-head h2 { margin: 0; font-size: 17px; }
.section-head .btn { align-self: center; }

.agenda { list-style: none; margin: 0; padding: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.agenda-item { display: grid; grid-template-columns: 26px minmax(0, 1fr) 16px; gap: 12px; padding: 15px 18px; border-top: 1px solid var(--line); cursor: pointer; }
.agenda-item:first-child { border-top: 0; }
.agenda-item:hover { background: var(--panel-2); }
.agenda-num { font-size: 15px; font-weight: 650; color: var(--faint); font-variant-numeric: tabular-nums; line-height: 1.55; padding-top: 18px; }
.agenda-meta { font-size: 12px; color: var(--muted); }
.agenda-meta .cat { color: var(--accent); font-weight: 600; }
.agenda-title { font-size: 15.5px; font-weight: 600; line-height: 1.5; margin-top: 2px; }
.agenda-advice { font-size: 13px; color: var(--muted); margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.agenda-advice b { color: var(--text); font-weight: 600; margin-right: 6px; }
.chev { color: var(--faint); font-size: 20px; align-self: center; }

.big-num { font-size: 30px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.big-num span { font-size: 16px; color: var(--muted); font-weight: 500; }
.plan-card { display: flex; flex-direction: column; gap: 16px; }
.plan-card-top { display: flex; align-items: center; gap: 28px; }
.plan-card-stats { flex: 1; display: flex; flex-direction: column; gap: 3px; font-size: 13px; color: var(--muted); }
.plan-card-stats a { color: var(--muted); }
.plan-card-stats a:hover { color: var(--accent); }
.plan-card-stats b, .ps-stats b { color: var(--text); font-variant-numeric: tabular-nums; margin-right: 2px; }
.label-row { display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; font-weight: 600; margin-bottom: 8px; }
.label-row .muted { font-weight: 400; }

.seg { display: flex; height: 8px; border-radius: 4px; overflow: hidden; background: var(--line); gap: 2px; }
.seg span { display: block; height: 100%; }
.seg .ok { background: var(--ok); }
.seg .warn { background: var(--warn); }
.seg .pending { background: var(--line-strong); }

.alloc { display: grid; gap: 5px; }
.alloc-row { display: grid; grid-template-columns: 132px minmax(0, 1fr) 96px; gap: 10px; align-items: center; font-size: 12.5px; padding: 2px 6px; margin: 0 -6px; border-radius: 6px; }
.alloc-row[data-project] { cursor: pointer; }
.alloc-row:hover { background: var(--panel-2); }
.alloc-row.active { background: var(--accent-soft); }
.alloc-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.alloc-bar { display: flex; height: 10px; }
.alloc-bar .p0 { background: var(--accent); border-radius: 3px 0 0 3px; }
.alloc-bar .rest { background: var(--accent-mid); border-radius: 0 3px 3px 0; opacity: 0.7; }
.alloc-num { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }

.home-side { display: flex; flex-direction: column; gap: 14px; }
.side-block { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.side-block h3 { display: flex; align-items: center; gap: 6px; margin: 0 0 12px; font-size: 14px; }
.side-block h3 .dot { margin-right: 0; }
.flag-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.flag-list a { display: block; padding: 7px 10px; margin: 0 -10px; border-radius: 8px; color: var(--text); }
.flag-list a:hover { background: var(--panel-2); text-decoration: none; }
.flag-list b { display: block; font-weight: 600; font-size: 13.5px; line-height: 1.5; }
.flag-list span { font-size: 12.5px; color: var(--muted); line-height: 1.55; }
.stat-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.stat-chips span { font-size: 12px; padding: 1px 8px; border-radius: 6px; background: var(--panel-2); color: var(--muted); border: 1px solid var(--line); }
.stat-chips span.warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.side-sub { font-size: 12px; font-weight: 600; color: var(--muted); margin: 14px 0 6px; }
.help-item { font-size: 13px; line-height: 1.55; margin-bottom: 8px; }
.help-item b { display: block; font-weight: 600; }
.help-item span { color: var(--muted); }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mini-stats b { display: block; font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.2; }
.mini-stats span { font-size: 12px; color: var(--muted); }

/* ---------- two-pane workspaces ---------- */

.two-pane { display: grid; grid-template-columns: 380px minmax(0, 1fr); background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); min-height: 480px; }
.pane-list { border-right: 1px solid var(--line); overflow-y: auto; display: flex; flex-direction: column; background: var(--panel); }
.pane-tools { position: sticky; top: 0; z-index: 2; display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; background: var(--panel); border-bottom: 1px solid var(--line); }
.pane-tools input[type="search"] { width: 100%; }
.pane-detail { overflow-y: auto; }
.seg-tabs { display: flex; gap: 2px; padding: 2px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; }
.seg-tabs button { flex: 1; border: 0; background: none; padding: 4px 6px; border-radius: 6px; cursor: pointer; color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.seg-tabs button span { margin-left: 4px; font-variant-numeric: tabular-nums; color: var(--faint); }
.seg-tabs button.active { background: var(--panel); color: var(--text); font-weight: 600; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08); }
.filter-pill { align-self: flex-start; border: 0; background: var(--accent-soft); color: var(--accent); border-radius: 12px; padding: 1px 10px; font-size: 12.5px; cursor: pointer; }

.inbox-group { display: flex; justify-content: space-between; padding: 14px 16px 6px; font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: 0.02em; }
.inbox-group span { color: var(--faint); font-weight: 500; }
.inbox-item { display: grid; grid-template-columns: 8px minmax(0, 1fr); gap: 10px; padding: 9px 16px 9px 14px; border-left: 2px solid transparent; cursor: pointer; }
.inbox-item:hover { background: var(--panel-2); }
.inbox-item.active { background: var(--accent-soft); border-left-color: var(--accent); }
.inbox-item .t { font-size: 13.5px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.inbox-item.active .t { font-weight: 600; }
.inbox-item .m { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 3px; font-size: 12px; color: var(--muted); }
.inbox-item .m .mini-tag:first-child { margin-left: 0; }
.inbox-item.resolved .t { -webkit-line-clamp: 3; font-size: 12.5px; color: var(--muted); }
.udot { width: 6px; height: 6px; border-radius: 50%; margin-top: 8px; background: transparent; }
.udot.on { background: var(--bad); }

.detail { max-width: 820px; padding: 28px 40px 40px; }
.detail-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.detail-title { font-size: 22px; line-height: 1.45; font-weight: 650; margin: 14px 0 6px; }
.detail-meta { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.detail-body { font-size: 15px; line-height: 1.8; margin: 12px 0; }
.detail-empty { height: 100%; display: grid; place-content: center; text-align: center; color: var(--muted); padding: 40px; }
.detail-empty .big { font-size: 40px; color: var(--ok); }
.vs { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 12px; margin: 18px 0; }
.vs .side { background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font-size: 14.5px; line-height: 1.65; }
.vs .side label { display: block; font-size: 11.5px; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.vs-mark { align-self: center; font-size: 12px; font-weight: 700; color: var(--faint); }
.advice { display: flex; align-items: flex-start; gap: 16px; margin: 18px 0; padding: 14px 16px; border-radius: 10px; background: var(--accent-soft); font-size: 14.5px; line-height: 1.65; }
.advice > div { flex: 1; }
.advice label { display: block; font-size: 11.5px; font-weight: 600; color: var(--accent); margin-bottom: 2px; }
.facts { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 6px 12px; margin: 18px 0 0; font-size: 13px; }
.facts dt { color: var(--muted); padding-top: 2px; }
.facts dd { margin: 0; color: var(--muted); }
.sugg { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px 16px; margin: 18px 0; font-size: 14.5px; line-height: 1.75; }
.sugg dt { color: var(--muted); font-size: 13px; padding-top: 2px; }
.sugg dd { margin: 0; }
.sugg dd.strong { font-weight: 600; }
.evidence { font-size: 13px; color: var(--muted); }
.evidence summary, .basis summary { cursor: pointer; }
.composer { margin-top: 28px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--panel); transition: border-color 0.15s, box-shadow 0.15s; }
.composer:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.composer textarea { border: 0; box-shadow: none !important; padding: 12px 14px 4px; font-size: 14.5px; resize: none; background: transparent; }
.composer-actions { display: flex; align-items: center; gap: 8px; padding: 8px 10px 10px; }
.composer-hint { margin: 8px 2px 0; }

/* ---------- 周计划（一屏三栏多切面指挥台） ---------- */

.plans-top { background: var(--panel); border-bottom: 1px solid var(--line); padding: 14px 22px 0; flex-shrink: 0; display: flex; flex-direction: column; gap: 12px; }
.plans-top-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.plans-title-group { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.plans-title-group h1 { font-size: 20px; margin: 0; }
.week-nav { display: inline-flex; align-items: center; gap: 4px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; padding: 2px; }
.week-nav select { border: 0; background: transparent; padding: 2px 6px; font-size: 13px; font-weight: 600; box-shadow: none !important; cursor: pointer; }
.week-nav .btn.icon { width: 24px; height: 24px; border: 0; background: transparent; font-size: 15px; border-radius: 6px; }
.week-nav .btn.icon:hover:not(:disabled) { background: var(--panel); }

.plans-kpis { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.kpi-pill { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px; border-radius: 8px; background: var(--panel-2); border: 1px solid var(--line); font-size: 12.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kpi-pill .seg { width: 54px; height: 6px; }

.plans-nav-bar { display: flex; align-items: center; justify-content: flex-start; gap: 14px; min-height: 38px; overflow-x: auto; scrollbar-width: none; }
.nav-divider { width: 1px; height: 18px; background: var(--line-strong); flex-shrink: 0; margin-bottom: 6px; }
.lens-tabs { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.lens-tab { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 8px 12px 10px; border-bottom: 2px solid transparent; cursor: pointer; color: var(--muted); font-size: 13.5px; font-weight: 500; white-space: nowrap; transition: color 0.12s; }
.lens-tab:hover { color: var(--text); }
.lens-tab.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 650; }
.lens-tab .cnt { font-size: 11.5px; padding: 0 6px; border-radius: 10px; background: var(--panel-2); color: var(--muted); border: 1px solid var(--line); line-height: 17px; font-variant-numeric: tabular-nums; }
.lens-tab.active .cnt { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.lens-tab .cnt.warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; font-weight: 650; }
.lens-tab .cnt.bad { background: var(--bad-soft); color: var(--bad); border-color: transparent; }

.dept-switcher-strip { display: flex; align-items: stretch; gap: 8px; padding: 10px 22px; background: var(--panel-2); border-bottom: 1px solid var(--line); overflow-x: auto; flex-shrink: 0; scrollbar-width: thin; }
.dept-card-tab { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-width: 148px; padding: 7px 13px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--panel); color: var(--text); text-align: left; cursor: pointer; transition: all 0.12s; flex-shrink: 0; }
.dept-card-tab:hover { border-color: var(--accent); }
.dept-card-tab.active { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.dept-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13.5px; font-weight: 650; }
.dept-card-tab.active .dept-card-top { color: var(--accent); }
.dept-card-cnt { font-size: 11.5px; font-weight: 600; padding: 0 6px; border-radius: 8px; background: var(--panel-2); color: var(--muted); font-variant-numeric: tabular-nums; }
.dept-card-tab.active .dept-card-cnt { background: var(--accent); color: var(--on-accent); }
.dept-card-sub { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }

.dept-group-head { position: sticky; top: -6px; z-index: 4; display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 7px 12px; background: var(--panel-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 12.5px; cursor: pointer; user-select: none; }
.dept-group-head:first-child { border-top: 0; }
.dept-group-head:hover { background: var(--bg); }
.dept-group-title { display: flex; align-items: center; gap: 6px; font-weight: 700; color: var(--text); }
.dept-group-caret { font-size: 11px; color: var(--muted); width: 12px; text-align: center; }
.dept-group-meta { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.dept-focus-btn { border: 1px solid var(--line-strong); background: var(--panel); color: var(--muted); border-radius: 5px; padding: 0 6px; line-height: 18px; font-size: 11px; cursor: pointer; }
.dept-focus-btn:hover { border-color: var(--accent); color: var(--accent); }

.dept-summary-bar { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px; }
.dept-summary-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.dept-summary-title { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 650; }

.plans-workspace { flex: 1; min-height: 0; display: grid; grid-template-columns: 300px minmax(0, 1fr); overflow: hidden; }
.plans-workspace.single-col { grid-template-columns: minmax(0, 1fr); }
.plans-dir { border-right: 1px solid var(--line); background: var(--panel); display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.plans-dir-tools { padding: 10px 12px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; background: var(--panel); flex-shrink: 0; }
.plans-dir-search { display: flex; align-items: center; gap: 6px; }
.plans-dir-search input { flex: 1; min-width: 0; height: 30px; font-size: 13px; padding: 0 10px; background: var(--panel-2); border-color: var(--line); }
.plans-dir-search input:focus { background: var(--panel); border-color: var(--accent); }
.plans-dir-list { flex: 1; overflow-y: auto; padding: 6px 0 18px; }
.plans-dir-foot { border-top: 1px solid var(--line); padding: 6px 0; background: var(--panel-2); flex-shrink: 0; }

.proj-dir-item { display: flex; flex-direction: column; gap: 5px; padding: 9px 14px 9px 12px; border-left: 3px solid transparent; cursor: pointer; transition: background 0.1s; }
.proj-dir-item:hover { background: var(--panel-2); }
.proj-dir-item.active { background: var(--accent-soft); border-left-color: var(--accent); }
.proj-dir-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.proj-dir-name { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 6px; min-width: 0; }
.proj-dir-days { font-size: 12.5px; font-weight: 650; font-variant-numeric: tabular-nums; color: var(--text); white-space: nowrap; }
.proj-dir-sub { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.proj-dir-bar { flex: 1; height: 5px; border-radius: 3px; background: var(--line); display: flex; overflow: hidden; }
.proj-dir-bar .p0 { background: var(--accent); }
.proj-dir-bar .rest { background: var(--accent-mid); opacity: 0.7; }

.plans-canvas { overflow-y: auto; min-height: 0; padding: 22px 28px 64px; background: var(--bg); }
.plans-canvas > .detail { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 26px 32px 32px; max-width: 860px; }
.canvas-inner { max-width: 960px; display: flex; flex-direction: column; gap: 18px; }

.proj-hero { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; }
.proj-hero-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.proj-hero h2 { margin: 0; font-size: 20px; line-height: 1.35; }
.proj-goal-line { font-size: 13.5px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.proj-metrics { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.metric-chip { font-size: 12.5px; padding: 2px 10px; border-radius: 8px; background: var(--panel-2); border: 1px solid var(--line); color: var(--muted); font-variant-numeric: tabular-nums; }
.metric-chip b { color: var(--text); }

.canvas-section { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; box-shadow: var(--shadow); }
.canvas-sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; flex-wrap: wrap; }
.canvas-sec-head h3 { margin: 0; font-size: 15px; font-weight: 650; }

.task-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 11px 4px; border-bottom: 1px solid var(--line); }
.task-row:last-child { border-bottom: 0; padding-bottom: 4px; }
.task-row-title { font-size: 14px; font-weight: 600; line-height: 1.5; }
.task-row-crit { font-size: 13px; color: var(--muted); line-height: 1.55; margin-top: 2px; }
.task-row-ev { font-size: 12px; color: var(--faint); margin-top: 3px; }
.task-row-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; white-space: nowrap; }
.task-row-meta { display: flex; align-items: center; gap: 6px; }
.task-days-pill { font-size: 12.5px; font-weight: 650; font-variant-numeric: tabular-nums; color: var(--text); }
.task-row-actions { opacity: 0; transition: opacity 0.12s; display: flex; gap: 4px; }
.task-row:hover .task-row-actions { opacity: 1; }
.owner-chip { border: 1px solid var(--accent-mid); background: var(--accent-soft); color: var(--accent); border-radius: 10px; padding: 1px 8px; font-size: 12px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.owner-chip:hover { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }

.inline-editor-card { margin: 8px 0; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--accent-mid); background: var(--panel-2); box-shadow: 0 0 0 3px var(--accent-soft); display: flex; flex-direction: column; gap: 10px; }
.inline-editor-grid { display: grid; grid-template-columns: minmax(0, 1fr) 88px 96px; gap: 10px; align-items: start; }
.inline-editor-card label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 600; color: var(--muted); }
.inline-editor-card input, .inline-editor-card textarea, .inline-editor-card select { width: 100%; font-weight: 400; color: var(--text); font-size: 13.5px; }

/* 百人级容量感知负责人选择器 */
.owner-box { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--panel); min-height: 36px; }
.owner-sel-pill { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); font-size: 12.5px; font-weight: 600; }
.owner-sel-pill button { border: 0; background: none; padding: 0 2px; cursor: pointer; color: inherit; font-size: 14px; line-height: 1; opacity: 0.75; }
.owner-sel-pill button:hover { opacity: 1; }
.owner-add-btn { border: 1px dashed var(--line-strong); background: var(--panel-2); color: var(--muted); border-radius: 10px; padding: 2px 9px; font-size: 12px; cursor: pointer; }
.owner-add-btn:hover { border-color: var(--accent); color: var(--accent); }
.owner-popover { position: absolute; left: 0; top: calc(100% + 6px); width: 320px; max-height: 300px; background: var(--panel); border: 1px solid var(--line-strong); border-radius: 12px; box-shadow: 0 12px 32px rgba(15, 23, 42, 0.18); z-index: 35; display: flex; flex-direction: column; overflow: hidden; }
.owner-pop-search { padding: 8px; border-bottom: 1px solid var(--line); }
.owner-pop-list { overflow-y: auto; max-height: 240px; padding: 4px 0; }
.owner-pop-dept { padding: 6px 12px 3px; font-size: 11px; font-weight: 700; color: var(--faint); letter-spacing: 0.04em; background: var(--panel); position: sticky; top: 0; }
.owner-pop-item { width: 100%; border: 0; background: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 12px; font-size: 13px; cursor: pointer; text-align: left; }
.owner-pop-item:hover { background: var(--panel-2); }
.owner-pop-item.selected { background: var(--accent-soft); font-weight: 600; color: var(--accent); }
.cap-tag { font-size: 11.5px; font-variant-numeric: tabular-nums; padding: 0 6px; border-radius: 6px; background: var(--panel-2); color: var(--muted); }
.cap-tag.free { background: var(--ok-soft); color: var(--ok); }
.cap-tag.over { background: var(--bad-soft); color: var(--bad); }

/* 参战成员同屏负荷透视卡 */
.contrib-list { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.contrib-card { border: 1px solid var(--line); border-radius: 11px; padding: 12px 15px; background: var(--panel-2); display: flex; flex-direction: column; gap: 8px; transition: border-color 0.12s; }
.contrib-card:hover { border-color: var(--line-strong); }
.contrib-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.contrib-who { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.contrib-bar { position: relative; display: flex; height: 7px; border-radius: 4px; background: var(--line); overflow: visible; }
.contrib-bar .here { background: var(--accent); border-radius: 4px 0 0 4px; }
.contrib-bar .elsewhere { background: repeating-linear-gradient(-45deg, var(--accent-mid), var(--accent-mid) 4px, var(--accent-soft) 4px, var(--accent-soft) 8px); }
.contrib-bar.over { outline: 1px solid var(--bad); outline-offset: 1px; }
.contrib-items { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; }
.contrib-item { display: flex; align-items: baseline; gap: 6px; line-height: 1.5; }
.contrib-item.other { color: var(--muted); }
.contrib-proj-jump { border: 0; background: var(--panel); border: 1px solid var(--line); color: var(--muted); border-radius: 5px; padding: 0 6px; font-size: 11px; cursor: pointer; white-space: nowrap; }
.contrib-proj-jump:hover { border-color: var(--accent); color: var(--accent); }

.plan-row { display: grid; grid-template-columns: 8px minmax(0, 1fr); gap: 10px; padding: 9px 14px 9px 12px; border-left: 3px solid transparent; cursor: pointer; }
.plan-row:hover { background: var(--panel-2); }
.plan-row.active { background: var(--accent-soft); border-left-color: var(--accent); }
.plan-row-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.plan-row .m { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 5px; }
.plan-row .flags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.approved-fold-btn { width: 100%; border: 0; border-top: 1px solid var(--line); background: var(--panel-2); padding: 8px 14px; display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 600; color: var(--muted); cursor: pointer; margin-top: 6px; }
.approved-fold-btn:hover { color: var(--text); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 7px; border: 1.5px solid var(--faint); }
.status-dot.approved { background: var(--ok); border-color: var(--ok); }
.status-dot.revise { background: var(--warn); border-color: var(--warn); }

.cap { position: relative; display: flex; height: 5px; border-radius: 3px; background: var(--line); overflow: visible; }
.cap.big { height: 8px; border-radius: 4px; }
.cap span { display: block; height: 100%; }
.cap span:first-child { border-radius: 3px 0 0 3px; }
.cap .p0, .sw.p0 { background: var(--accent); }
.cap .p1, .sw.p1 { background: var(--accent-mid); }
.cap .p2, .sw.p2 { background: var(--line-strong); }
.cap.over { outline: 1px solid var(--bad); outline-offset: 1px; }
.cap i { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--bad); }
.sw { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 5px; }

.person-card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 22px 26px 26px; box-shadow: var(--shadow); }
.assessment { display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line); font-size: 13px; line-height: 1.6; color: var(--muted); margin-bottom: 16px; }
.confirm-card { margin: 0 0 18px; padding: 14px 16px; border-radius: 10px; background: var(--warn-soft); }
.confirm-card label { display: block; font-size: 11.5px; font-weight: 600; color: var(--warn); }
.confirm-card .q { font-size: 15px; font-weight: 600; line-height: 1.6; margin: 2px 0 10px; }
.confirm-card textarea { background: var(--panel); }
.confirm-card.answered { background: var(--panel-2); border: 1px solid var(--line); }
.confirm-card.answered label { color: var(--muted); }
.cap-line { margin: 4px 0 10px; }
.cap-nums { display: flex; gap: 14px; font-size: 13px; margin-bottom: 8px; color: var(--muted); flex-wrap: wrap; align-items: center; }
.cap-nums b { color: var(--text); font-variant-numeric: tabular-nums; }
.outcome-list { margin-top: 10px; }
.outcome { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 14px; padding: 13px 4px; border-top: 1px solid var(--line); align-items: start; }
.outcome:hover .task-row-actions { opacity: 1; }
.prio { height: 20px; line-height: 20px; border-radius: 5px; font-size: 11.5px; font-weight: 700; text-align: center; background: var(--panel-2); color: var(--muted); margin-top: 2px; }
.prio.P0 { background: var(--accent); color: var(--on-accent); }
.prio.P1 { background: var(--accent-soft); color: var(--accent); }
.o-title { font-size: 14.5px; font-weight: 600; line-height: 1.5; }
.o-criteria { font-size: 13.5px; color: var(--muted); line-height: 1.65; margin-top: 3px; }
.o-evidence { font-size: 12px; color: var(--faint); margin-top: 4px; }
.o-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; font-size: 13px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.basis { margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.basis p { margin: 8px 0 0; line-height: 1.7; }
.outcomes input, .outcomes select, .outcomes textarea { width: 100%; }
.outcomes td { padding: 6px; }

/* ---------- OKR ---------- */

.qclock { margin: 4px 0 22px; }
.qtrack { position: relative; height: 10px; border-radius: 5px; background: var(--line); }
.qfill { position: absolute; inset: 0 auto 0 0; border-radius: 5px; background: var(--accent-mid); opacity: 0.55; }
.qtrack > i { position: absolute; top: 2px; bottom: 2px; width: 1px; background: var(--panel); opacity: 0.8; }
.qnow { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--accent); }
.qnow span { position: absolute; top: -20px; left: 50%; transform: translateX(-50%); font-size: 11px; color: var(--accent); font-weight: 600; white-space: nowrap; }
.qpin { position: absolute; top: -3px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: var(--panel); border: 3px solid var(--warn); }
.qpin.done { border-color: var(--ok); background: var(--ok); }
.qpin.missed { border-color: var(--bad); }
.qmonths { position: relative; height: 18px; margin-top: 6px; font-size: 11.5px; color: var(--faint); }
.qmonths span { position: absolute; }

.board-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.board-tab { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; text-align: left; padding: 14px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); cursor: pointer; box-shadow: var(--shadow); }
.board-tab:hover { border-color: var(--line-strong); }
.board-tab.active { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.board-name { font-size: 16px; font-weight: 650; }
.board-status { font-size: 12px; padding: 0 8px; line-height: 20px; border-radius: 10px; background: var(--panel-2); color: var(--muted); border: 1px solid var(--line); }
.board-status.draft { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.board-status.confirmed { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.board-meta { grid-column: 1 / -1; font-size: 12.5px; color: var(--muted); }
.align-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; font-size: 12px; }
.align-chip { border: 0; padding: 1px 9px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); font-size: 12px; line-height: 20px; cursor: pointer; text-align: left; }
.align-chip.dept { background: var(--panel-2); color: var(--text); border: 1px solid var(--line); }
.align-chip:hover { filter: brightness(1.08); }
.kr-facts .align-chip { display: block; margin-bottom: 4px; }
.members-title { margin-top: 34px; }
.push-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-bottom: 4px; font-size: 12.5px; }
.push-row > span:first-child { margin-right: 4px; }
.member-stats { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.member-stats b { color: var(--text); font-variant-numeric: tabular-nums; }
.okr-empty { max-width: 860px; padding: 28px 32px; }
.okr-empty h2 { margin: 6px 0 10px; font-size: 21px; }
.okr-empty p { line-height: 1.75; }
.okr-draft-bar { margin-bottom: 18px; align-items: center; line-height: 1.7; }
.view-tabs { display: flex; gap: 4px; margin: 4px 0 16px; border-bottom: 1px solid var(--line); }
.view-tabs button { border: 0; background: none; padding: 8px 14px; margin-bottom: -1px; border-bottom: 2px solid transparent; color: var(--muted); cursor: pointer; font-weight: 500; }
.view-tabs button span { margin-left: 6px; font-size: 12px; color: var(--faint); }
.view-tabs button.active { color: var(--text); border-bottom-color: var(--accent); font-weight: 600; }

main.wide { max-width: 1560px; }
.okr-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.okr-main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.okr-side { position: sticky; top: 20px; max-height: calc(100vh - 40px); overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }
.side-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.side-card h3 { margin: 0 0 10px; font-size: 14px; }
.side-card h2 { font-size: 17px; line-height: 1.5; margin: 8px 0 10px; }
.kv { display: flex; justify-content: space-between; font-size: 13px; padding: 3px 0; }

.okr-context { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 18px; }
.okr-context summary { cursor: pointer; font-weight: 600; font-size: 13.5px; }
.okr-context-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 10px; font-size: 13.5px; line-height: 1.7; }
.okr-context-grid label { font-size: 12px; font-weight: 600; color: var(--muted); }
.okr-context-grid ul { margin: 4px 0 0; padding-left: 18px; }

.obj-card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.obj-card header { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto auto; gap: 12px; align-items: start; padding: 18px 20px 14px; }
.obj-num { font-size: 13px; font-weight: 700; color: var(--accent); background: var(--accent-soft); border-radius: 7px; text-align: center; line-height: 26px; }
.obj-head h3 { margin: 0; font-size: 16.5px; line-height: 1.5; }
.obj-head p { margin: 4px 0 0; font-size: 13px; color: var(--muted); line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.health-pill { display: inline-block; font-size: 12px; padding: 1px 9px; border-radius: 10px; background: var(--panel-2); color: var(--muted); border: 1px solid var(--line); white-space: nowrap; }
.health-pill.ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.health-pill.warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.health-pill.bad { background: var(--bad-soft); color: var(--bad); border-color: transparent; }
.kr-head, .kr-row { display: grid; grid-template-columns: 12px minmax(0, 1fr) 120px 108px 40px 56px; gap: 12px; align-items: center; padding: 0 18px; }
.kr-head { font-size: 11.5px; color: var(--faint); padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.kr-head span:nth-child(n + 5) { text-align: right; }
.legend-tick { display: inline-block; width: 2px; height: 10px; background: var(--text); vertical-align: -1px; }
.kr-row { padding-top: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); cursor: pointer; }
.kr-row:hover { background: var(--panel-2); }
.kr-row.active { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); }
.kr-row.static { cursor: default; grid-template-columns: 14px minmax(0, 1fr); }
.kr-title { font-size: 14px; line-height: 1.55; }
.kr-id { font-size: 11.5px; color: var(--faint); font-variant-numeric: tabular-nums; margin-right: 8px; }
.kr-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 3px; font-size: 12px; color: var(--muted); }
.kr-viz { display: flex; align-items: center; gap: 8px; }
.kr-num { font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kr-num .muted { font-size: 11.5px; }
.kr-conf, .kr-invest { text-align: right; font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kr-conf.ok { color: var(--ok); } .kr-conf.warn { color: var(--warn); } .kr-conf.bad { color: var(--bad); }
.obj-foot { padding: 10px 20px 12px; font-size: 13px; }
.krbar { position: relative; flex: 1; height: 8px; border-radius: 4px; background: var(--line); }
.krbar .fill { position: absolute; inset: 0 auto 0 0; border-radius: 4px; background: var(--faint); }
.krbar .fill.ok { background: var(--ok); } .krbar .fill.warn { background: var(--warn); } .krbar .fill.bad { background: var(--bad); }
.krbar i { position: absolute; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; background: var(--text); border-radius: 1px; }
.ms-pill { font-size: 12px; padding: 1px 8px; border-radius: 6px; background: var(--panel-2); color: var(--muted); border: 1px solid var(--line); white-space: nowrap; }
.ms-pill.on_track { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.ms-pill.at_risk { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.ms-pill.done { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.ms-pill.missed { background: var(--bad-soft); color: var(--bad); border-color: transparent; }
.hdot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); flex: none; }
.hdot.green, .hdot.done { background: var(--ok); }
.hdot.yellow { background: var(--warn); }
.hdot.red { background: var(--bad); }
.hdot.unset { background: transparent; border: 2px dashed var(--faint); }
.health-row { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; margin-bottom: 8px; }
.health-row .hdot { margin-right: 6px; vertical-align: -1px; }
.attn { display: grid; grid-template-columns: 10px minmax(0, 1fr); gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13px; cursor: pointer; }
.attn:first-of-type { border-top: 0; }
.attn:hover b { color: var(--accent); }
.attn .hdot { margin-top: 5px; }

.kr-detail .kr-big { margin: 14px 0; display: flex; flex-direction: column; gap: 8px; }
.kr-detail .kr-big .krbar { flex: none; width: 100%; }
.kr-facts { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 8px 10px; font-size: 13px; line-height: 1.65; margin: 0 0 6px; }
.kr-facts dt { color: var(--muted); }
.kr-facts dd { margin: 0; }
.checkin { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; padding-top: 4px; }
.checkin label { display: flex; flex-direction: column; gap: 2px; }
.spark { display: block; margin: 4px 0 2px; }
.spark polyline { fill: none; stroke: var(--accent); stroke-width: 2; vector-effect: non-scaling-stroke; }
.spark .ref { stroke: var(--ok); stroke-dasharray: 3 3; stroke-width: 1; opacity: 0.6; vector-effect: non-scaling-stroke; }
.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 13px; line-height: 1.6; }
.timeline li { padding-left: 12px; border-left: 2px solid var(--line); }
.editor { display: flex; flex-direction: column; gap: 10px; }
.editor label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--muted); }
.editor .row label { flex: 1; }
.editor .row input { width: 100%; }
.proj-pick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: -4px; }
.proj-pick .pick { flex-direction: row; align-items: center; gap: 4px; font-size: 12.5px; color: var(--text); padding: 2px 8px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.proj-pick .pick:has(input:checked) { background: var(--accent-soft); border-color: transparent; color: var(--accent); }
.proj-pick input { margin: 0; }

.team-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 10px; }
.team-okr td { font-size: 13px; }
.team-okr tr.group td { background: var(--panel-2); font-size: 12px; font-weight: 600; color: var(--muted); padding: 6px 10px; }
.team-okr summary { cursor: pointer; list-style: none; }
.team-okr summary::-webkit-details-marker { display: none; }
.fs-obj { line-height: 1.55; margin-bottom: 2px; }
.fs-detail { margin: 10px 0 4px; padding: 10px 12px; background: var(--panel-2); border-radius: 8px; }
.fs-detail ul { margin: 6px 0 0; padding-left: 18px; }
.home-obj { margin-bottom: 10px; }
.home-kr { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 4px 0 4px 8px; font-size: 12.5px; color: var(--text); }
.home-kr:hover { text-decoration: none; color: var(--accent); }
.home-kr .clamp { -webkit-line-clamp: 1; }

/* ---------- 战略 ---------- */

.st-strip { margin-bottom: 14px; align-items: center; line-height: 1.65; }
a.st-strip:hover, a.st-strip-ok:hover { text-decoration: none; }
.st-strip-ok { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -4px 0 14px; padding: 10px 14px; border: 1px dashed var(--line-strong); border-radius: 10px; color: var(--text); }
.bet-chip { display: inline-flex; align-items: center; gap: 6px; padding: 1px 10px; border-radius: 10px; background: var(--ok-soft); color: var(--ok); font-size: 12.5px; line-height: 22px; }
.bet-chip b { font-weight: 700; }
a.bet-chip:hover { text-decoration: none; filter: brightness(1.05); }
.principle { margin-top: 6px; font-size: 12.5px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.st-hero { padding: 24px 28px; margin-bottom: 14px; }
.st-diagnosis { font-size: 17px; line-height: 1.8; font-weight: 500; margin: 6px 0 0; }
.st-winning { font-size: 15px; line-height: 1.75; margin: 6px 0 0; }
.st-grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.st-grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-top: 14px; }

/* OKR & 战略 100vh 三栏工作台专属样式 */
.okr-dir-overview { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 14px 10px 12px; border-left: 3px solid transparent; border-bottom: 1px solid var(--line); cursor: pointer; font-size: 13.5px; font-weight: 650; }
.okr-dir-overview:hover { background: var(--panel-2); }
.okr-dir-overview.active { background: var(--accent-soft); border-left-color: var(--accent); color: var(--accent); }
.okr-dir-obj { display: flex; align-items: flex-start; gap: 7px; padding: 9px 12px 6px; background: var(--panel-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 12.5px; font-weight: 650; color: var(--text); cursor: pointer; }
.okr-dir-obj:hover { background: var(--bg); }
.okr-dir-obj.active { background: var(--accent-soft); color: var(--accent); }
.okr-dir-obj .obj-code { flex: none; padding: 0 6px; line-height: 19px; border-radius: 5px; background: var(--accent-soft); color: var(--accent); font-size: 11.5px; font-weight: 700; }
.okr-dir-obj .obj-t { flex: 1; min-width: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.45; }
.okr-dir-kr { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 8px; align-items: start; padding: 8px 12px 8px 16px; border-left: 3px solid transparent; border-bottom: 1px solid var(--line); cursor: pointer; }
.okr-dir-kr:hover { background: var(--panel-2); }
.okr-dir-kr.active { background: var(--accent-soft); border-left-color: var(--accent); }
.okr-dir-kr .hdot { margin-top: 5px; }
.okr-dir-kr-title { font-size: 13px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.okr-dir-kr-sub { font-size: 11.5px; color: var(--muted); margin-top: 2px; display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.okr-dir-kr-right { text-align: right; font-size: 11.5px; font-variant-numeric: tabular-nums; color: var(--muted); white-space: nowrap; }

.okr-kr-item { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 18px; border-top: 1px solid var(--line); cursor: pointer; }
.okr-kr-item:hover { background: var(--panel-2); }
.okr-kr-item-right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; min-width: 118px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.okr-kr-item-right .krbar { width: 112px; flex: none; }

.kr-exec-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.st-bet-exec { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line-strong); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; font-size: 12.5px; }
.board-status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); display: inline-block; }
.board-status-dot.confirmed { background: var(--ok); }
.board-status-dot.draft { background: var(--warn); }
.st-grid3 .panel + .panel, .st-grid2 .panel + .panel { margin-top: 0; }
.st-grid3 h3, .st-grid2 h3 { margin-top: 0; }
.st-list { margin: 0; padding-left: 18px; line-height: 1.75; font-size: 14px; }
.st-list li + li { margin-top: 4px; }
.st-bets { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; }
.st-bets .panel + .panel { margin-top: 0; }
.st-bet p { font-size: 14px; line-height: 1.75; }
.st-bet .kr-facts { grid-template-columns: 64px minmax(0, 1fr); }
.st-edit { display: flex; flex-direction: column; gap: 12px; }
.st-edit label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--muted); }
.st-edit .st-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.st-bet-edit { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; }
.research { padding: 10px 12px; border-bottom: 1px solid var(--line); }
.research:last-child { border-bottom: 0; }
.research summary { display: flex; justify-content: space-between; gap: 16px; cursor: pointer; font-size: 13.5px; }
.research[open] summary { margin-bottom: 8px; }
.playbook { margin-top: 18px; }
.playbook summary { cursor: pointer; }
.basis-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 6px 0 4px; }
.basis-card { padding: 10px 14px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line); font-size: 13.5px; line-height: 1.65; }
.basis-card label { display: block; font-size: 11.5px; font-weight: 600; color: var(--muted); margin-bottom: 2px; }
.basis-card p { margin: 0; }
.basis-card ul { margin: 0; padding-left: 16px; }

/* ---------- 右侧常驻 AI 参谋抽屉（Copilot Drawer） ---------- */

.copilot-drawer { width: 392px; position: sticky; top: 0; height: 100vh; border-left: 1px solid var(--line); background: var(--panel); display: flex; flex-direction: column; overflow: hidden; z-index: 18; }
@media (min-width: 1700px) { .copilot-drawer { width: 424px; } }
@media (max-width: 1260px) {
  .copilot-drawer { position: fixed; right: 0; top: 0; bottom: 0; box-shadow: -12px 0 36px rgba(15, 23, 42, 0.22); }
}

.copilot-head { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); flex-shrink: 0; background: var(--panel); }
.copilot-brand { display: flex; align-items: center; gap: 7px; font-weight: 650; font-size: 14px; white-space: nowrap; }
.copilot-spark { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 700; }
.copilot-head select { max-width: 150px; height: 26px; padding: 0 6px; font-size: 12px; border-color: var(--line); background: var(--panel-2); }

.copilot-body { flex: 1; min-height: 0; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 12px; background: var(--panel); }
.copilot-empty { margin: auto 0; padding: 12px 6px; display: flex; flex-direction: column; gap: 12px; }
.copilot-empty-lead { font-size: 13px; color: var(--muted); line-height: 1.65; background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.copilot-empty-lead b { color: var(--text); display: block; margin-bottom: 4px; font-size: 13.5px; }

.starters { display: flex; flex-direction: column; gap: 6px; }
.starter { text-align: left; border: 1px solid var(--line); background: var(--panel); border-radius: 10px; padding: 7px 11px; cursor: pointer; font-size: 12.5px; line-height: 1.45; color: var(--text); transition: border-color 0.12s, background 0.12s; }
.starter:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }

.copilot-foot { border-top: 1px solid var(--line); padding: 10px 12px 12px; background: var(--panel-2); display: flex; flex-direction: column; gap: 8px; flex-shrink: 0; }
.copilot-focus-bar { display: flex; align-items: center; justify-content: space-between; gap: 6px; flex-wrap: wrap; }
.focus-pill { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; padding: 2px 9px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 600; }
.focus-pill span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.focus-pill button { border: 0; background: none; padding: 0 2px; color: inherit; cursor: pointer; font-size: 13px; opacity: 0.75; }
.focus-pill button:hover { opacity: 1; }
.focus-pill.global { background: var(--panel); color: var(--muted); border: 1px solid var(--line); font-weight: 500; }
.quick-chips { display: flex; gap: 5px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.quick-chip { flex: none; border: 1px solid var(--line); background: var(--panel); border-radius: 12px; padding: 2px 9px; font-size: 11.5px; color: var(--muted); cursor: pointer; white-space: nowrap; }
.quick-chip:hover { border-color: var(--accent); color: var(--accent); }

.copilot-form { display: flex; flex-direction: column; gap: 6px; background: var(--panel); border: 1px solid var(--line-strong); border-radius: 10px; padding: 8px 10px; transition: border-color 0.15s, box-shadow 0.15s; }
.copilot-form:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.copilot-form textarea { border: 0; padding: 0; background: transparent; box-shadow: none !important; font-size: 13.5px; line-height: 1.55; resize: none; min-height: 44px; max-height: 140px; }
.copilot-form-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; }

.copilot-fab { position: fixed; right: 20px; bottom: 20px; height: 38px; padding: 0 14px; border-radius: 19px; border: 1px solid var(--accent-mid); background: var(--panel); color: var(--text); font-weight: 600; font-size: 13px; display: inline-flex; align-items: center; gap: 7px; cursor: pointer; box-shadow: 0 8px 24px rgba(15, 23, 42, 0.16); z-index: 22; }
.copilot-fab:hover { border-color: var(--accent); background: var(--accent-soft); }
.copilot-fab.running { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft), 0 8px 24px rgba(15, 23, 42, 0.16); }

.msg { display: flex; flex-direction: column; gap: 8px; max-width: 100%; }
.msg.user { align-items: flex-end; align-self: flex-end; max-width: 90%; }
.msg .bubble { max-width: 100%; padding: 9px 12px; border-radius: 12px; font-size: 13.5px; line-height: 1.65; }
.msg.user .bubble { background: var(--accent); color: var(--on-accent); border-bottom-right-radius: 4px; white-space: pre-wrap; }
.msg.ai .bubble { background: var(--panel-2); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg.ai .bubble.md p:first-child { margin-top: 0; }
.msg.ai .bubble.md p:last-child { margin-bottom: 0; }
.thinking { color: var(--muted); font-size: 13px; }
.chat-steps { margin-top: 6px; font-size: 12px; color: var(--faint); }
.dots { display: inline-flex; gap: 3px; margin-right: 6px; vertical-align: middle; }
.dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); animation: blink 1.2s infinite ease-in-out; }
.dots i:nth-child(2) { animation-delay: 0.2s; }
.dots i:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%, 80%, 100% { opacity: 0.25; } 40% { opacity: 1; } }

.proposal { border: 1px solid var(--accent-mid); border-radius: 11px; padding: 11px 12px; background: var(--panel); display: flex; flex-direction: column; gap: 8px; box-shadow: var(--shadow); }
.proposal.applied { border-color: var(--ok); opacity: 0.88; }
.proposal.dismissed, .proposal.superseded { border-color: var(--line); opacity: 0.55; }
.proposal.superseded .diff { display: none; }
.proposal-title { font-size: 13px; line-height: 1.45; flex: 1; }
.proposal p { margin: 0; line-height: 1.55; }
.diff { display: flex; flex-direction: column; gap: 8px; }
.diff-row { display: flex; flex-direction: column; gap: 4px; padding: 6px 8px; border-radius: 8px; background: var(--panel-2); border: 1px solid var(--line); }
.diff-row label { font-size: 11.5px; font-weight: 650; color: var(--text); }
.diff-row .before, .diff-row .after { font-size: 12px; line-height: 1.55; padding: 5px 8px; border-radius: 6px; white-space: pre-wrap; max-height: 11em; overflow-y: auto; }
.diff-row .before { background: var(--bad-soft); color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(196, 60, 54, 0.4); }
.diff-row .after { background: var(--ok-soft); color: var(--text); }

/* ---------- 需要你拍板 ---------- */

.tradeoffs { margin: 0 0 22px; }
.tradeoffs .section-head h2 { font-size: 17px; }
.tradeoff { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; box-shadow: var(--shadow); }
.tradeoff[open] { border-color: var(--warn); }
.tradeoff > summary { list-style: none; cursor: pointer; }
.tradeoff > summary::-webkit-details-marker { display: none; }
.t-row { display: flex; align-items: center; gap: 8px; padding: 12px 16px; }
.t-q-inline { font-size: 14.5px; line-height: 1.5; }
.t-rec-inline { font-size: 12.5px; color: var(--accent); white-space: nowrap; }
.t-body { padding: 0 16px 16px; display: flex; flex-direction: column; gap: 12px; }
.t-body.standalone { padding: 4px 0 0; }
.tradeoff.standalone-card { background: transparent; border: 0; box-shadow: none; margin: 0; }
.t-body p, .t-bg { margin: 0; font-size: 14.5px; line-height: 1.75; color: var(--text); }
.decision-ask { display: flex; align-items: baseline; gap: 10px; padding: 10px 14px; border-radius: 10px; background: var(--accent-soft); border-left: 3px solid var(--accent); margin: 4px 0; }
.decision-ask .ask-tag { font-size: 11.5px; font-weight: 700; color: var(--accent); background: var(--panel); border: 1px solid var(--accent-mid); border-radius: 6px; padding: 1px 7px; white-space: nowrap; flex-shrink: 0; }
.decision-ask .ask-text { font-size: 14.5px; font-weight: 600; line-height: 1.6; color: var(--text); }
.sugg-plan { margin: 10px 0; padding: 12px 14px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line); }
.sugg-plan label { display: block; font-size: 11.5px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.sugg-steps { font-size: 14px; line-height: 1.75; white-space: pre-line; }
.sugg-impact { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); line-height: 1.6; }
.basis-fold, .evidence-fold { margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.basis-fold > summary, .evidence-fold > summary { cursor: pointer; user-select: none; color: var(--muted); padding: 4px 0; }
.basis-fold > summary:hover, .evidence-fold > summary:hover { color: var(--accent); }
.evidence-fold ul { margin: 6px 0 0; padding-left: 18px; line-height: 1.6; }
.t-conflict { padding: 8px 12px; border-radius: 8px; background: var(--warn-soft); font-size: 13.5px; line-height: 1.65; }
.t-conflict label, .t-why label { display: block; font-size: 11.5px; font-weight: 600; color: var(--warn); margin-bottom: 2px; }
.t-why label { color: var(--muted); }
.t-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.t-opt { text-align: left; border: 1px solid var(--line-strong); background: var(--panel); border-radius: 10px; padding: 11px 14px; cursor: pointer; color: var(--text); display: flex; flex-direction: column; gap: 5px; }
.t-opt:hover { border-color: var(--accent); }
.t-opt.rec { border-color: var(--accent-mid); }
.t-opt.sel { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); background: var(--accent-soft); }
.t-opt-head { display: flex; align-items: baseline; gap: 8px; font-size: 14px; font-weight: 600; line-height: 1.45; }
.t-opt-head b { color: var(--accent); }
.rec-tag { margin-left: auto; font-size: 11px; font-weight: 600; color: var(--accent); white-space: nowrap; }
.t-cons { font-size: 12.5px; color: var(--muted); line-height: 1.6; font-weight: 400; }
.t-why { font-size: 13px; line-height: 1.7; padding: 8px 12px; border-radius: 8px; background: var(--panel-2); }
.t-act { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.t-act .t-note { flex: 1; min-width: 220px; }
.tradeoff.done { padding: 4px 0 10px; }
.tradeoff.done .t-decided, .tradeoff.done .row { padding: 0 16px; font-size: 13.5px; }
.t-recent { margin-top: 8px; }
.t-recent summary { cursor: pointer; margin-bottom: 8px; }
.t-strategy-link { display: block; margin: -12px 0 18px; }
.st-section-title { margin-top: 8px; }
.empty-block { margin-bottom: 18px; }

/* ---------- CRO 销售与营收 ---------- */
.cro-kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.cro-kpi-card { background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; }
.cro-kpi-card .k-label { font-size: 12px; color: var(--muted); }
.cro-kpi-card .k-val { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.2; }
.cro-kpi-card .k-sub { font-size: 11.5px; color: var(--muted); }
.gate-bar { height: 8px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 99px; overflow: hidden; }
.gate-fill { height: 100%; border-radius: 99px; background: var(--accent); transition: width 0.2s; }
.gate-fill.ok { background: var(--ok); }
.gate-fill.warn { background: var(--warn); }
.gate-fill.bad { background: var(--bad); }

.tier-stack-bar { display: flex; height: 12px; border-radius: 99px; overflow: hidden; background: var(--panel-2); border: 1px solid var(--line); gap: 1px; }
.tier-stack-seg { height: 100%; transition: width 0.2s; }
.tier-stack-seg.core { background: var(--ok); }
.tier-stack-seg.base { background: var(--accent); }
.tier-stack-seg.opp { background: var(--faint); }
.tier-stack-seg.noise { background: var(--bad); opacity: 0.85; }

.battle-card { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 12px 14px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line); transition: border-color 0.12s; }
.battle-card:hover { border-color: var(--accent); }
.battle-card.core { border-left: 3px solid var(--ok); }
.battle-card.base { border-left: 3px solid var(--accent); }
.battle-card.noise-bleed { border-left: 3px solid var(--bad); background: var(--bad-soft); }

.gate-scorecard { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); gap: 8px; margin-top: 10px; }
.gate-cell { padding: 9px 11px; border-radius: 9px; background: var(--panel-2); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 3px; }
.gate-cell.pass { border-color: rgba(25, 135, 84, 0.35); background: var(--ok-soft); }
.gate-cell.warn { border-color: rgba(217, 119, 6, 0.35); background: var(--warn-soft); }
.gate-cell.fail { border-color: rgba(196, 60, 54, 0.4); background: var(--bad-soft); }
.gate-cell .gc-head { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.gate-cell .gc-val { font-size: 13.5px; font-weight: 700; line-height: 1.3; }
.gate-cell .gc-sub { font-size: 11px; color: var(--muted); line-height: 1.35; }

.dual-bar-track { position: relative; flex: 1; height: 18px; background: var(--panel-2); border-radius: 5px; overflow: hidden; border: 1px solid var(--line); }
.dual-bar-raw { position: absolute; inset: 0 auto 0 0; background: var(--line-strong); opacity: 0.65; }
.dual-bar-true { position: absolute; inset: 0 auto 0 0; background: var(--ok); opacity: 0.9; }
.proj-dir-item.dimmed { opacity: 0.58; }

.exec-diagnosis-bar { padding: 11px 14px; border-radius: 10px; background: var(--accent-soft); border-left: 3px solid var(--accent); font-size: 14px; line-height: 1.6; color: var(--text); margin-top: 10px; }
.exec-agenda-list { display: flex; flex-direction: column; gap: 10px; }
.exec-agenda-card { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line); transition: border-color 0.12s; }
.exec-agenda-card:hover { border-color: var(--accent-mid); }
.exec-agenda-card.bad { border-left: 3px solid var(--bad); }
.exec-agenda-card.warn { border-left: 3px solid var(--warn); }
.exec-agenda-card.ok { border-left: 3px solid var(--ok); }
.exec-rank { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 6px; background: var(--panel); border: 1px solid var(--line-strong); font-size: 11.5px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.portfolio-card { display: flex; flex-direction: column; gap: 6px; padding: 11px 13px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line); cursor: pointer; transition: border-color 0.12s; }
.portfolio-card:hover { border-color: var(--accent); }
.portfolio-card.active-chan { border-left: 3px solid var(--ok); }
.portfolio-card.observing-chan { border-left: 3px solid var(--accent-mid); }
.sql-handshake-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line); }
.attn-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 8px; padding: 8px 12px; border-radius: 9px; background: var(--accent-soft); border: 1px solid var(--accent-mid); font-size: 12.5px; }
.attn-bar.stop_bleed { background: var(--bad-soft); border-color: rgba(196, 60, 54, 0.35); }
.attn-reason-line { font-size: 11.5px; color: var(--accent); margin-top: 3px; line-height: 1.4; }
.attn-reason-line.stop_bleed { color: var(--bad); }

/* ---------- 销售统一商机卡片（固定结构） ---------- */
.plans-workspace.sales-wide { grid-template-columns: 420px minmax(0, 1fr); }
.deal-list { display: flex; flex-direction: column; gap: 10px; }
.plans-dir-list .deal-list { padding: 8px 10px; }
.deal-card { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--line-strong); cursor: pointer; transition: border-color 0.12s, box-shadow 0.12s; }
.deal-card:hover { border-color: var(--accent-mid); box-shadow: var(--shadow); }
.deal-card.active { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.deal-card.core { border-left-color: var(--ok); }
.deal-card.base { border-left-color: var(--accent); }
.deal-card.noise { border-left-color: var(--faint); }
.deal-card.bleed { border-left-color: var(--bad); background: linear-gradient(0deg, var(--panel), var(--panel)), var(--bad-soft); }
.deal-card.sunk { opacity: 0.6; }
.dc-head { display: flex; align-items: flex-start; gap: 10px; }
.dc-head .exec-rank { margin-top: 2px; flex-shrink: 0; }
.dc-title { flex: 1; min-width: 0; }
.dc-title b { display: block; font-size: 15.5px; line-height: 1.35; }
.dc-sub { font-size: 12px; color: var(--muted); margin-top: 2px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.dc-amount { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
.dc-amount b { font-size: 16px; font-variant-numeric: tabular-nums; }
.dc-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.dc-owner { margin-left: auto; font-size: 12.5px; color: var(--muted); }
.dc-reason { font-size: 12.5px; line-height: 1.5; color: var(--accent); background: var(--accent-soft); padding: 5px 9px; border-radius: 7px; }
.dc-reason.bleed { color: var(--bad); background: var(--bad-soft); }
.dc-next { display: flex; align-items: baseline; gap: 8px; font-size: 13px; line-height: 1.5; }
.dc-next-text { flex: 1; min-width: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dc-due { flex-shrink: 0; font-size: 12px; white-space: nowrap; }
.dc-label { flex-shrink: 0; font-size: 11.5px; font-weight: 600; color: var(--faint); min-width: 48px; }
.dc-foot { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding-top: 8px; border-top: 1px dashed var(--line); }
.qual-chips { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.qual-chip { font-size: 11.5px; padding: 1px 7px; border-radius: 99px; border: 1px solid var(--line); background: var(--panel-2); color: var(--faint); white-space: nowrap; }
.qual-chip.ok { color: var(--ok); border-color: rgba(25, 135, 84, 0.35); background: var(--ok-soft); }
.qual-chip.bad { color: var(--bad); border-color: rgba(196, 60, 54, 0.35); background: var(--bad-soft); }
.sunk-banner { margin: 8px 10px 0; padding: 9px 12px; border-radius: 9px; background: var(--panel-2); border: 1px dashed var(--line-strong); font-size: 12.5px; line-height: 1.55; color: var(--muted); }
.dup-alert-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: var(--warn-soft); border: 1px solid rgba(217, 119, 6, 0.35); font-size: 12.5px; }
