* { box-sizing: border-box; }
body {
  margin: 0; padding: 0 20px 40px;
  font-family: -apple-system, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  background: #f5f6f8; color: #202124; font-size: 14px; line-height: 1.6;
}
h1, h2 { margin: 0; font-weight: 600; }

.top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 18px 0 14px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.brand h1 { font-size: 19px; }
.badge {
  font-size: 12px; padding: 3px 10px; border-radius: 20px;
  background: #e8f0fe; color: #1967d2; border: 1px solid #d2e3fc; white-space: nowrap;
}
.badge.warn { background: #fef7e0; color: #b06000; border-color: #feefc3; }
.badge.live { background: #e6f4ea; color: #137333; border-color: #ceead6; }

.btn {
  border: 1px solid #dadce0; background: #fff; color: #202124;
  padding: 7px 14px; border-radius: 6px; cursor: pointer; font-size: 13px;
}
.btn:hover { background: #f1f3f4; }
.btn.ghost { background: transparent; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.toolbar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 12px; background: #fff; border: 1px solid #e3e5e8;
  border-radius: 10px; margin-bottom: 16px;
}
.spacer { flex: 1; }
.seg { display: inline-flex; border: 1px solid #dadce0; border-radius: 6px; overflow: hidden; }
.seg button {
  border: 0; background: #fff; padding: 6px 14px; cursor: pointer;
  font-size: 13px; color: #5f6368; border-right: 1px solid #e3e5e8;
}
.seg button:last-child { border-right: 0; }
.seg button.on { background: #1a73e8; color: #fff; }
select {
  padding: 6px 10px; border: 1px solid #dadce0; border-radius: 6px;
  background: #fff; font-size: 13px; color: #202124; min-width: 130px;
}

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin-bottom: 16px; }
.card { background: #fff; border: 1px solid #e3e5e8; border-radius: 10px; padding: 14px 16px; }
.card .k { font-size: 12px; color: #5f6368; }
.card .v { font-size: 26px; font-weight: 600; margin: 4px 0 2px; letter-spacing: -.5px; }
.card .s { font-size: 12px; color: #80868b; }
.card .s em { font-style: normal; color: #c5221f; }
.card.good .v { color: #137333; }
.card.warnv .v { color: #b06000; }
.card.bad .v { color: #c5221f; }

.panel { background: #fff; border: 1px solid #e3e5e8; border-radius: 10px; padding: 14px 16px; margin-bottom: 16px; }
.panel-hd { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.panel-hd h2 { font-size: 15px; }
.hint { font-size: 12px; color: #80868b; }

.trend { width: 100%; overflow-x: auto; }
.trend svg { display: block; }

.list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px; }
.item { border: 1px solid #e8eaed; border-radius: 8px; padding: 12px 14px; background: #fafbfc; }
.item .t { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.item .name { font-weight: 600; font-size: 14px; }
.item .rate { font-size: 13px; color: #137333; font-weight: 600; }
.item .rate.mid { color: #b06000; }
.item .rate.low { color: #c5221f; }
.item .meta { font-size: 12px; color: #5f6368; margin-top: 4px; }
.item .bar { height: 5px; background: #e8eaed; border-radius: 3px; margin-top: 8px; overflow: hidden; }
.item .bar i { display: block; height: 100%; background: #1a73e8; }
.item .bar i.mid { background: #f9ab00; }
.item .bar i.low { background: #d93025; }
.item .tags { margin-top: 6px; font-size: 12px; color: #80868b; }
.item .tags b { color: #c5221f; font-weight: 600; }

.tablewrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 13px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid #eef0f2; white-space: nowrap; }
th { color: #5f6368; font-weight: 500; background: #fafbfc; }
td.n { color: #c5221f; font-weight: 600; }
td.d { color: #80868b; }

/* ---- 进度模块：阶段标签 ---- */
.phase {
  display: inline-block; font-size: 11px; padding: 1px 8px; border-radius: 10px;
  border: 1px solid #dadce0; color: #5f6368; background: #f1f3f4; font-weight: 500;
}
.phase.ph-run { background: #e8f0fe; color: #1967d2; border-color: #d2e3fc; }
.phase.ph-done { background: #e6f4ea; color: #137333; border-color: #ceead6; }
.phase.ph-wait { background: #fef7e0; color: #b06000; border-color: #feefc3; }
.phase.ph-stop { background: #fce8e6; color: #c5221f; border-color: #f6c7c3; }

.sep { color: #dadce0; margin: 0 2px; }
.item.clickable { cursor: pointer; transition: box-shadow .12s, border-color .12s; }
.item.clickable:hover { border-color: #1a73e8; box-shadow: 0 1px 6px rgba(26,115,232,.14); }
.item .rate.none { color: #9aa0a6; font-weight: 500; font-size: 12px; }
.trackmeta { font-size: 12px; color: #80868b; margin-top: 4px; }
.trackmeta b { color: #1967d2; }

/* ---- 预警 ---- */
.alerts { display: flex; flex-direction: column; gap: 6px; }
.alert {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 8px 12px; border-radius: 8px; background: #fafbfc;
  border: 1px solid #e8eaed; border-left-width: 3px; border-left-color: #dadce0; font-size: 13px;
}
.alert.lv-high { border-left-color: #d93025; background: #fef7f7; }
.alert.lv-mid { border-left-color: #f9ab00; background: #fffdf5; }
.alert.lv-low { border-left-color: #9aa0a6; }
.alert .lv { font-size: 11px; color: #fff; background: #9aa0a6; border-radius: 3px; padding: 0 5px; }
.alert.lv-high .lv { background: #d93025; }
.alert.lv-mid .lv { background: #f9ab00; }
.alert .kind { font-weight: 600; font-size: 12px; color: #5f6368; white-space: nowrap; }
.alert .pj { color: #202124; max-width: 42%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.alert .dt { color: #5f6368; font-size: 12px; }
.alert[data-project] { cursor: pointer; }
.alert[data-project]:hover { background: #f1f3f4; }
.empty { padding: 18px; text-align: center; color: #137333; background: #fafbfc; border-radius: 8px; font-size: 13px; }

/* ---- 标签 ---- */
.tags .tag {
  display: inline-block; font-size: 11px; padding: 1px 8px; border-radius: 10px;
  background: #f1f3f4; color: #5f6368; border: 1px solid #e3e5e8; margin: 3px 4px 0 0;
}
.tags .tag.lv-high { background: #fce8e6; color: #c5221f; border-color: #f6c7c3; }
.tags .tag.lv-mid { background: #fef7e0; color: #b06000; border-color: #feefc3; }
.tags .tag.lv-low { background: #f1f3f4; color: #5f6368; }
.tags .tag.ok { background: #e6f4ea; color: #137333; border-color: #ceead6; }
.tags.clickable { cursor: pointer; color: #1967d2; }
.tags.clickable:hover { text-decoration: underline; }

/* ---- 抽屉 ---- */
.drawer-mask {
  position: fixed; inset: 0; background: rgba(32,33,36,.32);
  opacity: 0; pointer-events: none; transition: opacity .18s; z-index: 40;
}
.drawer-mask.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: min(680px, 92vw);
  background: #fff; box-shadow: -4px 0 20px rgba(0,0,0,.14); z-index: 50;
  transform: translateX(100%); transition: transform .22s ease;
  display: flex; flex-direction: column;
}
.drawer.open { transform: translateX(0); }
.drawer-hd {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 10px;
  padding: 16px 18px; border-bottom: 1px solid #e8eaed;
}
.drawer-hd h3 { margin: 0; font-size: 15px; line-height: 1.5; }
.iconbtn {
  border: 0; background: transparent; font-size: 16px; cursor: pointer;
  color: #5f6368; padding: 2px 6px; border-radius: 4px; flex-shrink: 0;
}
.iconbtn:hover { background: #f1f3f4; }
.drawer-bd { padding: 14px 18px 40px; overflow-y: auto; flex: 1; }
.dw-sec { margin-bottom: 18px; }
.dw-sec h4 { margin: 0 0 8px; font-size: 13px; color: #5f6368; font-weight: 600; }
.dw-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 6px 16px; font-size: 13px; }
.dw-meta label { color: #80868b; font-size: 12px; margin-right: 6px; }
.dw-src {
  margin-top: 8px; padding: 8px 10px; background: #f8f9fa; border-left: 3px solid #1a73e8;
  border-radius: 4px; font-size: 12px; color: #3c4043; word-break: break-all;
}

/* ---- 协调事项 / 质量安全 ---- */
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  font-size: 12px; padding: 2px 10px; border-radius: 12px; cursor: pointer;
  background: #f1f3f4; color: #5f6368; border: 1px solid #e3e5e8;
}
.chip:hover { background: #e8eaed; }
.chip.on { background: #1a73e8; color: #fff; border-color: #1a73e8; }

/* 处室筛选态标签（可点 ✕ 清除） */
.fchip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; padding: 3px 8px 3px 10px; border-radius: 12px;
  background: #e8f0fe; color: #1967d2; border: 1px solid #d2e3fc;
}
/* ★ 坑：作者样式里的 display 会盖掉 UA 的 [hidden]{display:none}，必须显式补一条 */
.fchip[hidden] { display: none; }
.fchip b { font-weight: 600; }
.fchip .x { cursor: pointer; font-size: 11px; opacity: .7; padding: 0 2px; }
.fchip .x:hover { opacity: 1; }

.issues { display: grid; grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); gap: 8px; }
.issue {
  border: 1px solid #e8eaed; border-left-width: 3px; border-left-color: #dadce0;
  border-radius: 8px; padding: 9px 12px; background: #fafbfc; cursor: pointer;
  transition: box-shadow .12s, border-color .12s;
}
.issue:hover { box-shadow: 0 1px 6px rgba(32,33,36,.1); }
.issue.st-open { border-left-color: #d93025; background: #fffafa; }
.issue.st-new { border-left-color: #1a73e8; background: #fafcff; }
.issue.st-closed { border-left-color: #bdc1c6; opacity: .72; }
.issue.on { background: #fff; box-shadow: 0 1px 8px rgba(32,33,36,.14); }

.is-hd { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-bottom: 4px; }
.is-hd .st { font-size: 11px; padding: 0 7px; border-radius: 10px; font-weight: 600; white-space: nowrap; }
.st.st-open { background: #fce8e6; color: #c5221f; }
.st.st-new { background: #e8f0fe; color: #1967d2; }
.st.st-closed { background: #f1f3f4; color: #80868b; }
.sev { font-size: 11px; padding: 0 7px; border-radius: 10px; background: #c5221f; color: #fff; font-weight: 600; }
.cat {
  font-size: 11px; padding: 0 7px; border-radius: 4px;
  background: #eef3fd; color: #1967d2; border: 1px solid #d2e3fc; white-space: nowrap;
}
.is-pj { font-weight: 600; font-size: 13px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.is-span { font-size: 11px; color: #80868b; white-space: nowrap; }
.is-tx { font-size: 13px; color: #3c4043; white-space: pre-wrap; word-break: break-word; line-height: 1.55; }
.issue:not(.on) .is-tx {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.is-at { font-size: 12px; color: #b06000; margin-top: 4px; }
.is-more { display: none; }
.issue.on .is-more { display: block; font-size: 11px; color: #9aa0a6; margin-top: 5px; text-align: right; }

.toggler { font-size: 12px; color: #5f6368; display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }

/* ---- 项目卡：摘要与分轨 ---- */
.item .brief {
  font-size: 12px; color: #3c4043; margin-top: 6px; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.item .brief label, .fd-txt label {
  display: inline-block; font-size: 10px; color: #80868b; background: #f1f3f4;
  border-radius: 3px; padding: 0 5px; margin-right: 5px; vertical-align: 1px;
}
.item .tracks { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 5px; }
.item .tracks .tk {
  font-size: 11px; background: #fff; border: 1px solid #e3e5e8; border-radius: 10px;
  padding: 1px 8px; color: #5f6368;
}
.item .tracks .tk b { color: #1967d2; }

/* ---- 进度阶梯 ---- */
.ladderwrap { background: #fafbfc; border: 1px solid #eef0f2; border-radius: 8px; padding: 8px 6px 4px; }
.ladder { width: 100%; display: block; }
.ladderwrap .lg { display: flex; gap: 14px; flex-wrap: wrap; padding: 2px 10px 6px; font-size: 11px; color: #5f6368; }
.ladderwrap .lg i { display: inline-block; width: 10px; height: 3px; border-radius: 2px; margin-right: 5px; vertical-align: 2px; }

/* ---- 抽屉：头部概览 ---- */
.dw-hero { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; }
.dw-hero .hero-v { font-size: 32px; font-weight: 700; letter-spacing: -1px; color: #137333; }
.dw-hero .hero-s { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12px; color: #5f6368; }
.dw-hero .hero-s b { color: #1967d2; }
.h4hint { font-size: 11px; color: #9aa0a6; font-weight: 400; margin-left: 8px; }

/* ---- 日报流：摘要一行，点开看原文 ---- */
.feed { display: flex; flex-direction: column; gap: 4px; }
.fd { border: 1px solid #eef0f2; border-radius: 7px; padding: 6px 10px; background: #fafbfc; cursor: pointer; }
.fd:hover { border-color: #dadce0; background: #fff; }
.fd.on { background: #fff; border-color: #d2e3fc; box-shadow: 0 1px 6px rgba(26,115,232,.1); }
.fd-hd { display: flex; align-items: baseline; gap: 8px; }
.fd-d { font-size: 11px; color: #1967d2; font-weight: 600; font-variant-numeric: tabular-nums; }
.fd-who { font-size: 11px; color: #80868b; }
.fd-pct { font-size: 12px; font-weight: 600; color: #137333; }
.fd-non { font-size: 11px; color: #9aa0a6; }
.fd-b {
  font-size: 12px; color: #5f6368; margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.fd.on .fd-b { display: none; }
.fd-full { display: none; }
.fd.on .fd-full { display: block; margin-top: 6px; }
.fd-txt { font-size: 13px; color: #3c4043; margin-top: 4px; white-space: pre-wrap; word-break: break-word; }
.fd-txt.coord { color: #c5221f; }
.fd-txt.coord label { background: #fce8e6; color: #c5221f; }

/* ---- 时间线（旧版样式，保留备用） ---- */
.tl-date {
  font-size: 12px; color: #1967d2; font-weight: 600; margin: 12px 0 6px;
  padding-bottom: 3px; border-bottom: 1px dashed #e3e5e8;
}
.tl-item { padding: 8px 0 8px 12px; border-left: 2px solid #e8eaed; margin-left: 2px; }
.tl-hd { display: flex; align-items: baseline; gap: 8px; }
.tl-who { font-size: 12px; color: #5f6368; font-weight: 600; }
.tl-pct { font-size: 13px; font-weight: 600; color: #137333; }
.tl-non { font-size: 11px; color: #9aa0a6; }
.tl-txt { font-size: 13px; color: #3c4043; margin-top: 3px; white-space: pre-wrap; word-break: break-word; }
.tl-txt label {
  display: inline-block; font-size: 11px; color: #80868b; background: #f1f3f4;
  border-radius: 3px; padding: 0 5px; margin-right: 6px;
}
.tl-txt.coord { color: #c5221f; }

.foot { color: #9aa0a6; font-size: 12px; padding-top: 6px; }

/* ---- 人员详情（2026-09-12）：可点的人名 / 项目名 ---- */
.plink { color: #1967d2; cursor: pointer; border-bottom: 1px dashed #d2e3fc; }
.plink:hover { border-bottom-style: solid; background: #eef3fd; }
.dw-hero .hero-u {
  font-size: 14px; font-weight: 500; color: #5f6368; margin-left: 5px; letter-spacing: 0;
}
/* 人员详情里表格首列是名字，允许换行，别撑出横向滚动 */
.dw-sec td .plink { white-space: normal; }
/* ★ 坑：table th/td 默认 white-space:nowrap，但人员抽屉的「在报项目」有 9 列，
   放开换行后首列会被压成一字一行。必须给首列兜一个最小宽度。 */
.dw-sec .pj-cell { white-space: normal; min-width: 128px; }
.warn { color: #c5221f; font-weight: 600; }

/* ---- 协调事项：基线说明 / 催办 / 闭环（2026-09-12） ---- */
.note {
  font-size: 12px; color: #5f6368; background: #f8f9fa; border: 1px solid #eef0f2;
  border-radius: 7px; padding: 7px 11px; margin-bottom: 8px; line-height: 1.6;
}
.note b { color: #1967d2; }
.empty-sub { margin-top: 5px; font-size: 12px; color: #80868b; line-height: 1.6; }

.issue.st-urged { border-left-color: #e8710a; background: #fffdf8; }
.st.st-urged { background: #fef7e0; color: #b06000; }
.tag.lv-high { background: #fce8e6; color: #c5221f; border-color: #f6c7c4; }

.is-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 5px; }
.is-urged { font-size: 11px; color: #b06000; }
.is-acts { display: flex; align-items: center; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.is-acts .is-more { display: inline; font-size: 11px; color: #9aa0a6; margin-left: auto; }

.btn.xs { padding: 3px 10px; font-size: 12px; border-radius: 6px; }
.btn.xs.ghost { color: #5f6368; }

.is-reply { margin-top: 6px; border-top: 1px dashed #e3e5e8; padding-top: 6px; }
.is-reply label {
  display: inline-block; font-size: 10px; color: #137333; background: #e6f4ea;
  border-radius: 3px; padding: 0 5px; margin-right: 6px;
}
.is-reply .rp { display: inline; font-size: 13px; color: #3c4043; }
.is-reply .rp-who { font-weight: 600; font-size: 12px; color: #137333; margin-right: 6px; }

/* ---- 弹窗：催办文案 / 录入回复 ---- */
.modal-mask {
  position: fixed; inset: 0; background: rgba(32,33,36,.34); opacity: 0;
  pointer-events: none; transition: opacity .16s; z-index: 40;
}
.modal-mask.open { opacity: 1; pointer-events: auto; }
.modal {
  position: fixed; z-index: 41; top: 50%; left: 50%;
  transform: translate(-50%, -46%) scale(.98); opacity: 0; pointer-events: none;
  width: min(680px, calc(100vw - 32px)); max-height: 86vh; display: flex; flex-direction: column;
  background: #fff; border-radius: 12px; box-shadow: 0 12px 40px rgba(32,33,36,.24);
  transition: opacity .16s, transform .16s;
}
.modal.open { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%) scale(1); }
.modal-hd {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px;
  border-bottom: 1px solid #eef0f2;
}
.modal-hd h3 { margin: 0; font-size: 15px; flex: 1; }
.modal-bd { padding: 14px 16px; overflow-y: auto; flex: 1; }
.modal-ft {
  display: flex; align-items: center; gap: 8px; padding: 11px 16px;
  border-top: 1px solid #eef0f2; background: #fafbfc; border-radius: 0 0 12px 12px;
}
.m-note { font-size: 12px; color: #5f6368; background: #f8f9fa; border-radius: 6px; padding: 7px 10px; margin-bottom: 10px; line-height: 1.6; }
.m-lab { display: block; font-size: 12px; color: #80868b; margin: 10px 0 4px; }
.m-ta, .m-in {
  width: 100%; box-sizing: border-box; font-size: 13px; color: #3c4043; font-family: inherit;
  border: 1px solid #dadce0; border-radius: 7px; padding: 8px 10px; line-height: 1.6;
  background: #fff; resize: vertical;
}
.m-ta { white-space: pre-wrap; }
.m-ta:focus, .m-in:focus { outline: none; border-color: #1a73e8; box-shadow: 0 0 0 2px rgba(26,115,232,.12); }
.m-hint { flex: 1; font-size: 12px; color: #b06000; }
.m-target { font-size: 13px; color: #3c4043; background: #f8f9fa; border-radius: 7px; padding: 8px 11px; line-height: 1.6; }
.m-target label { display: inline-block; font-size: 10px; color: #80868b; background: #f1f3f4; border-radius: 3px; padding: 0 5px; margin-right: 6px; }

@media (max-width: 640px) {
  body { padding: 0 12px 30px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .card .v { font-size: 22px; }
  .toolbar { gap: 8px; }
  .btn { padding: 6px 10px; }
}
