/* 华天燃烧组工作看板 —— 界面样式 */

:root {
  --bg: #f2efe9;
  --panel: #ffffff;
  --panel-2: #faf8f4;
  --ink: #1b1d21;
  --ink-2: #3d434c;
  --muted: #6d7581;
  --line: #ddd8cd;
  --line-2: #ebe6dc;
  --steel: #2c3440;
  --steel-2: #3b4654;
  --ember: #c14a24;
  --ember-soft: #fbeee8;
  --brick: #a8542f;
  --amber: #a3711a;
  --amber-soft: #fbf2df;
  --red: #a3332a;
  --red-soft: #f9e7e5;
  --green: #3c6f52;
  --green-soft: #e9f2ec;
  --blue: #3c5d78;
  --blue-soft: #e8eff5;
  --radius: 6px;
  --shadow: 0 1px 2px rgba(28, 25, 20, .06), 0 6px 18px rgba(28, 25, 20, .06);
  --font: "Segoe UI", "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
  --mono: "Cascadia Mono", "Consolas", "SFMono-Regular", monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: .2px; }
button { font-family: inherit; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }

/* ---------------- 登录 ---------------- */
.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr;
  background: var(--bg);
}

.login-art {
  background: var(--steel);
  color: #f3efe8;
  padding: 32px 26px;
  display: flex;
  align-items: center;
}
.login-art-inner { max-width: 460px; margin: 0 auto; width: 100%; }
.logo-row { display: flex; align-items: center; gap: 12px; }
.brand-mark { margin-bottom: 22px; }
.login-art h1 {
  font-size: 27px;
  line-height: 1.3;
  margin-bottom: 10px;
  letter-spacing: 1px;
}
.login-sub { color: #bcbfc6; font-size: 14px; margin: 0 0 22px; letter-spacing: 2px; }
.login-points { list-style: none; padding: 0; margin: 0; border-top: 1px solid rgba(255,255,255,.14); }
.login-points li {
  padding: 11px 0;
  border-bottom: 1px solid rgba(255,255,255,.14);
  font-size: 14px;
  color: #dcdfe4;
  position: relative;
  padding-left: 20px;
}
.login-points li::before {
  content: "";
  position: absolute;
  left: 2px; top: 19px;
  width: 7px; height: 7px;
  background: var(--ember);
  transform: rotate(45deg);
}
.login-foot { margin-top: 26px; font-size: 12px; color: #8f959e; letter-spacing: 1px; }

.login-form-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 34px 22px 46px;
  background: var(--bg);
}
.login-form {
  width: 100%;
  max-width: 380px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 26px 24px 22px;
  box-shadow: var(--shadow);
}
.login-form h2 { font-size: 21px; margin-bottom: 6px; }
.login-form .muted { font-size: 13px; margin: 0 0 20px; }
.field { display: block; margin-bottom: 14px; }
.field > span {
  display: block;
  font-size: 13px;
  color: var(--ink-2);
  margin-bottom: 6px;
  letter-spacing: .5px;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 10px 11px;
  font-size: 16px;
  font-family: inherit;
  color: var(--ink);
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: none;
  transition: border-color .15s, background .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--ember);
  background: #fff;
}
.field textarea { min-height: 72px; resize: vertical; font-size: 15px; }
.login-error { color: var(--red); font-size: 13px; min-height: 20px; margin-top: 8px; }
.login-note {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 15px;
  min-height: 36px;
  font-size: 14px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
  white-space: nowrap;
}
.btn:hover { background: var(--panel-2); border-color: #cbc5b8; }
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--ember);
  border-color: var(--ember);
  color: #fff;
}
.btn-primary:hover { background: #a83f1d; border-color: #a83f1d; }
.btn-quiet { border-color: transparent; background: transparent; color: #c9ced6; }
.btn-quiet:hover { background: rgba(255,255,255,.09); color: #fff; border-color: transparent; }
.btn-ghost { background: var(--ember-soft); border-color: #f0d3c6; color: var(--ember); }
.btn-ghost:hover { background: #f7e3da; border-color: #e6c1b0; }
.btn-danger { color: var(--red); border-color: #eccfcb; background: var(--red-soft); }
.btn-sm { min-height: 30px; padding: 4px 10px; font-size: 13px; }
.btn-block { width: 100%; min-height: 42px; font-size: 15px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* ---------------- 顶栏 ---------------- */
.topbar {
  background: var(--steel);
  color: #f4f1eb;
  padding: 0 18px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  position: sticky;
  top: 0;
  z-index: 40;
}
.topbar-left { display: flex; align-items: center; gap: 11px; min-width: 0; }
.topbar-mark { display: flex; }
.org-name { font-size: 17px; font-weight: 600; letter-spacing: 1px; line-height: 1.2; }
.org-sub { font-size: 11px; color: #99a0ab; letter-spacing: 2px; margin-top: 3px; }
.topbar-right { display: flex; align-items: center; gap: 10px; }
.cloud-state {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #b9bfc8;
  padding: 4px 9px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 20px;
  white-space: nowrap;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: #7d848f; flex: none; }
.dot.ok { background: #4f9d6d; box-shadow: 0 0 0 3px rgba(79,157,109,.18); }
.dot.bad { background: #cf5a48; box-shadow: 0 0 0 3px rgba(207,90,72,.2); }
.user-chip { display: flex; align-items: center; gap: 9px; }
.avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: #48525f;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  border: 1px solid rgba(255,255,255,.18);
  flex: none;
}
.user-meta { line-height: 1.25; }
.user-name { font-size: 14px; display: flex; align-items: center; gap: 6px; }
.user-info { font-size: 11px; color: #99a0ab; letter-spacing: .3px; }
.role-badge {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 3px;
  letter-spacing: 1px;
  border: 1px solid rgba(255,255,255,.22);
  color: #e8e3d9;
}
.role-badge.leader { background: var(--ember); border-color: var(--ember); color: #fff; }

/* ---------------- 发布 / 通知条 ---------------- */
.publish-bar { padding: 0 18px; }
.publish-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 10px 0 0;
  padding: 9px 12px;
  border: 1px solid #d8c3a8;
  border-left: 3px solid var(--brick);
  border-radius: 6px;
  background: #fdf6e9;
  font-size: 13px;
  color: #4a3418;
}
.publish-inner.info { border-color: #b9cbdc; border-left-color: #2c6076; background: #eff5f8; color: #23404f; }
.pb-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 2px 6px;
  border-radius: 3px;
  background: var(--brick);
  color: #fff;
}
.pb-tag.info { background: #2c6076; }
.pb-text { min-width: 0; }

/* ---------------- 变更通知 ---------------- */
.notice-list { display: flex; flex-direction: column; gap: 6px; }
.notice-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  background: #fff;
  text-align: left;
  width: 100%;
}
.notice-row.notice-link { cursor: pointer; }
.notice-row.notice-link:hover { border-color: var(--brick); background: #fdf7f2; }
.notice-main { min-width: 0; flex: 1; }
.notice-title { font-weight: 600; color: var(--ink); word-break: break-word; }
.notice-block { margin-bottom: 16px; }
.notice-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }

/* ---------------- 预警条 ---------------- */
.alarm-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 9px 18px;
  background: #3a2119;
  color: #f6e6df;
  font-size: 13px;
  border-bottom: 1px solid rgba(0,0,0,.2);
}
.alarm-bar .alarm-icon { font-weight: 700; color: #ff9c74; letter-spacing: 1px; }
.alarm-bar .alarm-item { cursor: pointer; }
.alarm-bar .alarm-item:hover { text-decoration: underline; }
.alarm-bar.danger { background: #5a1f19; }
.alarm-bar.warn { background: #4a3418; color: #f7ecd5; }

/* ---------------- 标签页 ---------------- */
.tabbar {
  display: flex;
  gap: 4px;
  padding: 0 18px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 62px;
  z-index: 30;
  overflow-x: auto;
}
.tab {
  appearance: none;
  border: none;
  background: transparent;
  padding: 13px 18px 11px;
  font-size: 15px;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  letter-spacing: 1px;
  white-space: nowrap;
}
.tab:hover { color: var(--ink); }
.tab.is-active { color: var(--ink); font-weight: 600; border-bottom-color: var(--ember); }
.tab .tab-dot {
  display: inline-block;
  min-width: 17px;
  height: 17px;
  line-height: 17px;
  border-radius: 9px;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  text-align: center;
  margin-left: 5px;
  padding: 0 5px;
  font-weight: 500;
}

/* ---------------- 布局 ---------------- */
.page { max-width: 1340px; margin: 0 auto; padding: 18px 18px 60px; }
/* 面板直接显示：不使用淡入动画，避免后台标签页/截图工具把整页停在半透明状态 */
.tab-pane { animation: none; }

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 9px;
  margin-bottom: 16px;
  overflow: hidden;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line-2);
  background: var(--panel-2);
}
.panel-title { display: flex; align-items: baseline; gap: 10px; }
.panel-title h2 { font-size: 16px; letter-spacing: 1px; }
.panel-title .sub { font-size: 12px; color: var(--muted); }
.panel-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.panel-body { padding: 16px; }

.section-gap { height: 14px; }

/* 折叠组件 */
.collapse { border-bottom: 1px solid var(--line-2); }
.collapse:last-child { border-bottom: none; }
.collapse-head {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 14px;
  color: var(--ink);
}
.collapse-head:hover { background: var(--panel-2); }
.caret {
  width: 14px;
  display: inline-flex;
  justify-content: center;
  color: var(--muted);
  transition: transform .16s;
  font-size: 12px;
}
.collapse.open .caret { transform: rotate(90deg); }
.collapse-head .collapse-label { font-weight: 600; }
.collapse-head .collapse-hint { font-size: 12px; color: var(--muted); margin-left: auto; }
.collapse-body { padding: 4px 16px 16px; }
.collapse.open .collapse-body { display: block; }
.collapse:not(.open) .collapse-body { display: none; }

/* 统计卡 */
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(158px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.stat {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 13px;
  background: var(--panel-2);
}
.stat .k { font-size: 12px; color: var(--muted); letter-spacing: .5px; }
.stat .v { font-size: 24px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.25; }
.stat .v small { font-size: 13px; font-weight: 400; color: var(--muted); margin-left: 2px; }
.stat .n { font-size: 11px; color: var(--muted); margin-top: 2px; }
.stat.warn { background: var(--amber-soft); border-color: #eeddba; }
.stat.warn .v { color: var(--amber); }
.stat.bad { background: var(--red-soft); border-color: #eccdca; }
.stat.bad .v { color: var(--red); }
.stat.good { background: var(--green-soft); border-color: #cfe2d7; }
.stat.good .v { color: var(--green); }

.team-bar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

/* 进度条 */
.progress {
  height: 7px;
  background: #e8e4da;
  border-radius: 4px;
  overflow: hidden;
  min-width: 60px;
}
.progress > i { display: block; height: 100%; background: var(--green); border-radius: 4px; transition: width .3s; }
.progress > i.low { background: var(--amber); }
.progress > i.zero { background: #c9c3b6; }

/* 成员卡 */
.member-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 10px;
  align-items: start;
}
.member-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  overflow: hidden;
}
.member-card .mc-head {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 13px;
  cursor: pointer;
  background: var(--panel-2);
  border: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
}
.member-card .mc-head:hover { background: #f5f2ea; }
.mc-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--steel-2); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; flex: none;
}
.mc-id { min-width: 0; flex: 1; }
.mc-name { font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.mc-duty { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-num { text-align: right; font-size: 12px; color: var(--muted); white-space: nowrap; }
.mc-num b { font-size: 18px; color: var(--ink); font-variant-numeric: tabular-nums; }
.mc-progress { padding: 0 13px 11px; display: flex; align-items: center; gap: 9px; }
.mc-progress .progress { flex: 1; }
.mc-progress span { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 42px; text-align: right; }
.mc-body { border-top: 1px solid var(--line-2); padding: 10px 13px 13px; }
.mc-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.tag {
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 3px;
  background: #f0ece4;
  color: var(--ink-2);
  letter-spacing: .3px;
}
.tag.red { background: var(--red-soft); color: var(--red); }
.tag.amber { background: var(--amber-soft); color: var(--amber); }
.tag.green { background: var(--green-soft); color: var(--green); }
.tag.blue { background: var(--blue-soft); color: var(--blue); }

/* 计划列表 */
.plan {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel);
  margin-bottom: 8px;
  position: relative;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}
.plan:hover { border-color: #c8c1b3; box-shadow: 0 2px 8px rgba(30,26,20,.07); }
.plan::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  border-radius: 7px 0 0 7px;
  background: var(--line);
}
.plan.s-doing::before { background: var(--blue); }
.plan.s-done::before { background: var(--green); }
.plan.s-overdue::before { background: var(--red); }
.plan.s-paused::before { background: #a8a294; }
.plan.s-delay::before { background: var(--blue); }
.plan.s-cancel::before { background: #9aa5b1; }
.plan-top { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 6px 10px; }
.plan-content { font-size: 14.5px; font-weight: 600; line-height: 1.45; flex: 1 1 260px; min-width: 0; }
.plan.s-done .plan-content { color: var(--ink-2); text-decoration: line-through; text-decoration-color: #b9c6bd; }
.plan-badge { display: flex; gap: 5px; flex-wrap: wrap; flex: 0 0 auto; justify-content: flex-end; margin-left: auto; }
.plan-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  font-size: 12px;
  color: var(--muted);
}
.plan-meta .kv { display: flex; gap: 4px; }
.plan-meta .remark-kv { flex-basis: 100%; }
.plan-meta .remark-kv b { font-weight: 400; color: var(--ink); }
.plan-meta b { color: var(--ink-2); font-weight: 500; }
.plan-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.plan-actions { display: flex; gap: 6px; align-items: center; }
.plan-pick {
  font-size: 13px;
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  min-height: 30px;
}
.plan-pick:focus { outline: 1px solid var(--ember); }
.days-note { font-size: 12px; }
.days-note.red { color: var(--red); font-weight: 600; }
.days-note.amber { color: var(--amber); font-weight: 600; }

.group-title {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 8px 4px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  color: var(--ink-2);
  border-bottom: 1px solid var(--line-2);
  margin-bottom: 9px;
}
.group-title:hover { color: var(--ink); }
.group-title .g-label { font-weight: 600; letter-spacing: .5px; }
.group-title .g-count { font-size: 11px; color: var(--muted); }
.group-title .g-bar { margin-left: auto; display: flex; align-items: center; gap: 7px; font-size: 11px; color: var(--muted); }
.group-title .g-bar .progress { width: 64px; }
.group-body { padding-bottom: 6px; }

/* 表格 */
.table-wrap { overflow-x: auto; }
table.grid-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  table-layout: fixed;
}
.grid-table th, .grid-table td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--line-2);
  text-align: left;
  vertical-align: middle;
  overflow: hidden;
  text-overflow: ellipsis;
}
.grid-table th {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
  background: var(--panel-2);
  letter-spacing: .5px;
  white-space: nowrap;
}
.grid-table td { color: var(--ink-2); }
.grid-table td.strong { color: var(--ink); font-weight: 600; }
.grid-table.compact { font-size: 12.5px; }
.grid-table.compact th, .grid-table.compact td { padding: 7px 8px; white-space: nowrap; }
.grid-table.compact td:nth-child(3) { white-space: normal; }
.grid-table tr.overdue-row td { background: #fdf6f4; }
.grid-table .num { font-variant-numeric: tabular-nums; }

/* 提示与空态 */
.empty {
  padding: 22px 14px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: var(--panel-2);
}

/* 年度矩阵 */
.matrix-wrap { overflow-x: auto; }
table.matrix { border-collapse: collapse; font-size: 12px; width: 100%; }
table.matrix th, table.matrix td { border: 1px solid var(--line-2); padding: 6px 5px; text-align: center; white-space: nowrap; }
table.matrix th { background: var(--panel-2); color: var(--ink-2); font-weight: 600; }
table.matrix td.name-cell { text-align: left; font-weight: 600; background: var(--panel-2); }
table.matrix td .cell-ratio { font-variant-numeric: tabular-nums; }
table.matrix td .cell-num { display: block; font-size: 10px; color: var(--muted); }
.cell-good { background: var(--green-soft); color: var(--green); }
.cell-mid { background: var(--amber-soft); color: var(--amber); }
.cell-low { background: var(--red-soft); color: var(--red); }
.cell-none { color: #b7b1a4; }

/* 编辑板块 */
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.inline-field { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inline-field label { font-size: 13px; color: var(--ink-2); }
.inline-field select, .inline-field input {
  padding: 7px 9px;
  font-size: 14px;
  font-family: inherit;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
  min-height: 34px;
}

.cloud-check-list { display: grid; gap: 8px; }
.cloud-check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 13px;
  background: var(--panel-2);
}
.cloud-check .st { font-weight: 700; flex: none; width: 46px; }
.cloud-check.ok .st { color: var(--green); }
.cloud-check.bad .st { color: var(--red); }
.cloud-check .ck-name { font-weight: 600; }
.cloud-check .ck-detail { color: var(--muted); font-size: 12px; word-break: break-all; }

/* 模态 */
.modal-layer {
  position: fixed;
  inset: 0;
  background: rgba(22, 20, 17, .48);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 90;
  overflow-y: auto;
}
.modal {
  background: var(--panel);
  border-radius: 10px;
  width: 100%;
  max-width: 640px;
  box-shadow: 0 18px 50px rgba(20,18,14,.28);
  max-height: calc(100vh - 40px);
  display: flex;
  flex-direction: column;
}
.modal.wide { max-width: 860px; }
.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 18px 12px;
  border-bottom: 1px solid var(--line-2);
}
.modal-head h3 { font-size: 17px; }
.modal-head .sub { font-size: 12px; color: var(--muted); margin-top: 3px; }
.modal-close {
  border: none;
  background: transparent;
  font-size: 20px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
}
.modal-close:hover { background: var(--panel-2); color: var(--ink); }
.modal-body { padding: 16px 18px; overflow-y: auto; }
.modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  padding: 12px 18px 16px;
  border-top: 1px solid var(--line-2);
  flex-wrap: wrap;
}

/* 详情 */
.detail-grid { display: grid; grid-template-columns: 1fr; gap: 0; }
.detail-row {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line-2);
  font-size: 14px;
}
.detail-row .dk { color: var(--muted); font-size: 13px; }
.detail-row .dv { color: var(--ink); word-break: break-word; }
.detail-row:last-child { border-bottom: none; }
.readonly-hint {
  margin-top: 12px;
  padding: 9px 11px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: var(--blue-soft);
  color: var(--ink-2);
  font-size: 12.5px;
  line-height: 1.6;
}

/* toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%) translateY(12px);
  background: var(--steel);
  color: #fff;
  padding: 10px 17px;
  border-radius: 6px;
  font-size: 13.5px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
  z-index: 120;
  max-width: 86vw;
  text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.bad { background: #6d271f; }

/* 断点 */
@media (min-width: 620px) {
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid .full { grid-column: 1 / -1; }
  .plan { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-row { border-bottom: 1px dashed var(--line-2); }
}

@media (min-width: 900px) {
  .login-shell { grid-template-columns: 0.95fr 1.05fr; }
  .login-art { padding: 48px 40px; }
  .form-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .page { padding: 22px 24px 70px; }
}

@media (min-width: 1180px) {
  .stat-row { grid-template-columns: repeat(auto-fit, minmax(158px, 1fr)); }
}

@media (max-width: 619px) {
  .org-sub { display: none; }
  .org-name { font-size: 15px; }
  .topbar { height: 56px; padding: 0 12px; }
  .cloud-state { display: none; }
  .user-info { display: none; }
  .tabbar { top: 56px; padding: 0 10px; }
  .tab { padding: 12px 12px 10px; font-size: 14px; }
  .page { padding: 12px 12px 50px; }
  .panel-body { padding: 12px; }
  .panel-head { padding: 11px 12px; }
  .login-art { padding: 24px 18px; }
  .login-art h1 { font-size: 22px; }
  .login-form { max-width: 100%; }
  .detail-row { grid-template-columns: 84px 1fr; }
  .modal { max-height: calc(100vh - 24px); }
  .modal-layer { padding: 12px; align-items: flex-start; }
  .pt-tags { max-width: 100%; justify-content: flex-start; margin-top: 2px; }
  .pt-kids { margin-left: 8px; padding-left: 6px; }
  .proj-card-tags, .sp-line { justify-content: flex-start; }
}

@media print {
  .topbar, .tabbar, .alarm-bar, .panel-tools, .btn { display: none !important; }
  body { background: #fff; }
}

.project-sum { margin: 2px 0 10px; padding: 7px 10px; background: var(--blue-soft); border-left: 3px solid var(--blue); border-radius: 4px; font-size: 13px; color: var(--ink-2); }
.project-sum b { font-size: 14px; color: var(--ink); }

/* 项目卡片（任务 - 项目计划） */
.proj-card-list { display: flex; flex-direction: column; gap: 10px; }
.proj-card { border: 1px solid var(--line); border-radius: 8px; background: var(--panel); overflow: hidden; }
.proj-card.open { border-color: #c3d3e2; box-shadow: 0 1px 3px rgba(60, 93, 120, .1); }
.proj-card-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; width: 100%; padding: 12px 14px; background: none; border: 0; text-align: left; cursor: pointer; font: inherit; }
.proj-card-head:hover { background: var(--panel-2); }
.proj-card-name { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 220px; }
.proj-title { font-weight: 600; font-size: 14px; color: var(--ink); }
.proj-card-tags { display: flex; gap: 5px; flex-wrap: wrap; justify-content: flex-end; flex: 0 0 auto; margin-left: auto; }
.proj-card-body { display: none; padding: 0 14px 12px; }
.proj-card.open .proj-card-body { display: block; }

/* 计划多级列表 */
.pt-node { border-top: 1px dashed transparent; }
.pt-node.pt-root { border-top: 1px solid var(--line-2); padding-top: 6px; }
.pt-node.pt-root:first-child { border-top: 0; padding-top: 0; }
.pt-row { display: flex; align-items: flex-start; gap: 6px; padding: 5px 2px; border-radius: 6px; }
.pt-row:hover { background: var(--panel-2); }
.pt-caret { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 8px; line-height: 1; padding: 0; border: 1px solid var(--line); border-radius: 4px; background: var(--panel); color: var(--muted); cursor: pointer; font-size: 11px; }
.pt-caret.open { background: var(--blue-soft); border-color: #c3d3e2; color: var(--blue); }
.pt-caret-space { flex: 0 0 18px; width: 18px; }
.pt-main { flex: 1; min-width: 0; cursor: pointer; }
.pt-title { font-size: 13px; font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: 6px; }
.pt-title:hover { color: var(--blue); }
.pt-lv { flex: 0 0 auto; font-size: 11px; font-weight: 500; color: var(--blue); background: var(--blue-soft); border-radius: 3px; padding: 0 5px; }
.pt-brief { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 3px; font-size: 12px; color: var(--muted); }
.pt-brief b { color: var(--ink-2); font-weight: 500; }
.pt-delay { color: var(--blue); }
.pt-tags { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; flex: 0 0 auto; max-width: 42%; }
.pt-kids { margin-left: 14px; border-left: 2px solid var(--line-2); padding-left: 8px; }

/* 总结 - 项目卡片 */
.sum-proj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); grid-auto-flow: row dense; gap: 10px; align-items: start; }
.sum-proj { border: 1px solid var(--line); border-radius: 8px; background: var(--panel); overflow: hidden; }
.sum-proj.open { border-color: #c3d3e2; box-shadow: 0 1px 3px rgba(60, 93, 120, .12); }
.sum-proj-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; width: 100%; padding: 11px 12px; background: none; border: 0; text-align: left; cursor: pointer; font: inherit; }
.sum-proj-head:hover { background: var(--panel-2); }
.sum-proj-name { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 160px; }
.sum-proj-pill { flex: 0 0 auto; font-size: 12px; font-weight: 600; color: var(--blue); background: var(--blue-soft); border-radius: 999px; padding: 2px 9px; }
.sum-proj-pill.good { color: var(--green); background: var(--green-soft); }
.sum-proj-body { display: none; padding: 0 12px 12px; }
.sum-proj.open .sum-proj-body { display: block; }
.sp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sp-cell { background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 6px; padding: 8px 10px; }
.sp-cell .k { font-size: 11px; color: var(--muted); }
.sp-cell .v { font-size: 17px; font-weight: 600; color: var(--ink); margin-top: 2px; }
.sp-cell .v small { font-size: 11px; font-weight: 400; color: var(--muted); margin-left: 3px; }
.sp-line { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 9px; font-size: 12px; color: var(--muted); }
.sp-line b { color: var(--ink-2); }
.sp-line .red, .sp-line .red b { color: var(--red); }

/* 已延期 / 已取消 状态样式 */
.plan.s-cancel { opacity: .62; }
.plan.s-cancel .plan-content { text-decoration: line-through; }
.pt-brief .red { color: var(--red); }

/* ================= v1.6 项目卡片 + 项目详情 ================= */
.proj-intro {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  padding: 0 0 14px;
  border-bottom: 1px solid var(--line-2);
  margin-bottom: 16px;
}
.proj-intro-title { font-size: 17px; font-weight: 600; letter-spacing: .5px; }
.proj-intro-copy { flex: 1 1 360px; font-size: 12.5px; color: var(--muted); line-height: 1.7; }

.proj-tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.proj-tile {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  min-width: 0;
  padding: 15px 16px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(180deg, #fff 0%, #fdfcf9 100%);
  box-shadow: 0 1px 2px rgba(28, 25, 20, .04);
  text-align: left;
  font: inherit;
  color: var(--ink);
  cursor: pointer;
  transition: border-color .16s, box-shadow .16s, transform .16s;
}
.proj-tile:hover {
  border-color: #b9cbd9;
  box-shadow: 0 8px 22px rgba(60, 93, 120, .12);
  transform: translateY(-2px);
}
.proj-tile.is-done { border-left: 3px solid var(--green); }
.proj-tile-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.proj-code {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .5px;
  color: var(--blue);
  background: var(--blue-soft);
  border-radius: 3px;
  padding: 1px 7px;
}
.proj-tile-title { font-size: 16px; font-weight: 600; letter-spacing: .3px; line-height: 1.4; }
.proj-tile-owner { font-size: 12px; color: var(--muted); }
.proj-tile-owner b { color: var(--ink-2); font-weight: 500; }
.proj-tile-stats {
  display: grid;
  grid-template-columns: 1fr 1.25fr 1fr;
  gap: 1px;
  margin-top: 2px;
  background: var(--line-2);
  border: 1px solid var(--line-2);
  border-radius: 6px;
  overflow: hidden;
}
.proj-tile-stats > span {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  padding: 7px 9px;
  background: var(--panel-2);
  min-width: 0;
}
.proj-tile-stats b {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.proj-tile-stats small { font-size: 10px; color: var(--muted); }
.proj-tile-bar { height: 5px; border-radius: 4px; background: #e8e4da; overflow: hidden; }
.proj-tile-bar > i { display: block; height: 100%; border-radius: 4px; background: var(--blue); transition: width .3s; }
.proj-tile.is-done .proj-tile-bar > i { background: var(--green); }
.proj-tile-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11.5px;
  color: var(--muted);
}
.proj-tile-foot em { font-style: normal; color: var(--red); margin-left: 6px; }
.proj-enter { color: var(--blue); font-weight: 600; white-space: nowrap; }

.proj-detail { animation: pdIn .18s ease-out; }
@keyframes pdIn { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }
.pd-back-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 12px; margin-bottom: 12px; }
.btn-back { background: var(--panel-2); border-color: var(--line); color: var(--ink-2); }
.btn-back:hover { background: var(--blue-soft); border-color: #c3d3e2; color: var(--blue); }
.pd-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 10px 10px 0 0;
  background: linear-gradient(135deg, #36536b 0%, #2c3440 100%);
  color: #f3efe8;
}
.pd-hero-main { min-width: 0; }
.pd-kicker { font-size: 10.5px; letter-spacing: 3px; color: #a9b8c6; margin-bottom: 5px; }
.pd-hero h2 { font-size: 22px; letter-spacing: 1px; line-height: 1.35; }
.pd-sub { font-size: 12px; color: #c3cbd3; margin-top: 5px; }
.pd-ratio { flex: 0 0 auto; text-align: right; }
.pd-ratio b { display: block; font-size: 26px; line-height: 1.1; font-variant-numeric: tabular-nums; color: #fff; }
.pd-ratio span { font-size: 10.5px; color: #a9b8c6; letter-spacing: .5px; }
.pd-progress { height: 6px; background: #e8e4da; overflow: hidden; margin-bottom: 14px; }
.pd-progress > i { display: block; height: 100%; background: var(--blue); transition: width .3s; }
.pd-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.pd-stat {
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
}
.pd-stat .k { font-size: 11.5px; color: var(--muted); }
.pd-stat .v { font-size: 21px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.3; }
.pd-stat .v small { font-size: 12px; font-weight: 400; color: var(--muted); margin-left: 2px; }
.pd-stat.bad { background: var(--red-soft); border-color: #eccdca; }
.pd-stat.bad .v { color: var(--red); }
.pd-note {
  font-size: 11.5px;
  color: var(--muted);
  background: var(--blue-soft);
  border-left: 3px solid var(--blue);
  border-radius: 4px;
  padding: 7px 11px;
  margin-bottom: 16px;
}
.pd-tree-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 0 7px;
  border-top: 1px solid var(--line-2);
}
.pd-tree-head h3 { font-size: 14px; letter-spacing: .5px; }
.pd-tree-head span { font-size: 11.5px; color: var(--muted); }
.pd-tree { padding: 2px 0 4px; }

/* ================= v1.6 年度总结分栏 ================= */
.annual-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.annual-period { font-size: 13px; color: var(--muted); }
.annual-period b { color: var(--ink); font-size: 14px; }
.annual-note {
  font-size: 11.5px;
  color: var(--muted);
  background: var(--panel-2);
  border: 1px dashed var(--line);
  border-radius: 6px;
  padding: 7px 11px;
  margin-bottom: 14px;
  line-height: 1.7;
}
.annual-block {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 14px;
  margin-bottom: 14px;
  background: var(--panel);
}
.annual-block.project { border-top: 3px solid var(--steel); }
.annual-block.monthly { border-top: 3px solid var(--ember); }
.annual-block-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.annual-block-head h3 { font-size: 15px; letter-spacing: .8px; }
.annual-block-head .sub { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.annual-pill {
  flex: 0 0 auto;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--blue);
  background: var(--blue-soft);
  border-radius: 999px;
  padding: 2px 10px;
}
.annual-block.monthly .annual-pill { color: var(--ember); background: var(--ember-soft); }
.annual-stat-row { margin-bottom: 12px; }
.annual-proj-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 285px));
  justify-content: start;
  gap: 9px;
  margin: 0 0 13px;
}
.annual-proj {
  border: 1px solid var(--line-2);
  border-radius: 7px;
  background: var(--panel-2);
  padding: 9px 11px;
}
.annual-proj-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.annual-proj-name { font-size: 13px; font-weight: 600; margin-top: 5px; line-height: 1.4; }
.annual-proj-meta { font-size: 11px; color: var(--muted); margin-top: 1px; }
.annual-proj-stats { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; font-size: 10.5px; color: var(--muted); }
.annual-proj-stats b { display: block; font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.annual-proj-foot { font-size: 10.5px; color: var(--muted); margin-top: 5px; }
.annual-proj-foot em { font-style: normal; color: var(--red); margin-left: 6px; }
.annual-empty-note {
  padding: 10px 12px;
  margin: 0 0 12px;
  border: 1px dashed var(--line);
  border-radius: 6px;
  color: var(--muted);
  font-size: 12px;
  background: var(--panel-2);
}

/* ---------- v1.7 卡片化 ---------- */
.task-stat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 9px;
  margin-bottom: 12px;
}
.task-stat-card {
  position: relative;
  overflow: hidden;
  padding: 11px 13px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(160deg, #fff 0%, var(--panel-2) 100%);
  box-shadow: 0 1px 0 rgba(30,26,20,.03);
}
.task-stat-card::after {
  content: "";
  position: absolute;
  right: -18px; top: -22px;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--line-2);
  opacity: .55;
}
.task-stat-card.good { border-color: #c7d9cc; }
.task-stat-card.good::after { background: var(--green-soft); }
.task-stat-card.bad { border-color: #e0c3bf; }
.task-stat-card.bad::after { background: var(--red-soft); }
.task-stat-card small { display: block; font-size: 11px; color: var(--muted); letter-spacing: .3px; }
.task-stat-card b { display: block; font-size: 25px; line-height: 1.15; margin-top: 4px; font-variant-numeric: tabular-nums; }
.task-stat-card b em { font-style: normal; font-size: 11px; font-weight: 500; color: var(--muted); margin-left: 2px; }
.task-stat-card > span { display: block; font-size: 11px; color: var(--muted); margin-top: 3px; }
.task-stat-card .progress { display: block; width: 100%; margin-top: 7px; height: 5px; }
.task-status-card {
  margin-bottom: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--panel);
}
.task-status-card .collapse-head { padding: 10px 12px; background: var(--panel-2); }
.task-status-card .collapse-body { padding: 9px 10px 11px; }
.task-plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 8px;
  align-items: stretch;
}
.task-plan-grid .plan { margin-bottom: 0; height: 100%; }
.section-kicker {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 15px 0 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line-2);
}
.section-kicker span { font-size: 13px; font-weight: 600; letter-spacing: .4px; }
.section-kicker small { font-size: 11px; color: var(--muted); }
.my-sum-card {
  margin: 12px 0 2px;
  padding: 12px 13px 13px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--ember);
  border-radius: 8px;
  background: linear-gradient(150deg, #fff 0%, #fbf5ed 100%);
}
.my-sum-card.has-overdue { border-left-color: var(--red); background: linear-gradient(150deg,#fff 0%,#fbf1ef 100%); }
.my-sum-head { display: flex; align-items: center; gap: 9px; }
.my-sum-head > div:nth-child(2) { flex: 1; min-width: 0; }
.my-sum-title { font-size: 13.5px; font-weight: 600; letter-spacing: .4px; }
.my-sum-sub { font-size: 11px; color: var(--muted); margin-top: 2px; }
.my-sum-stats { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 10px 0 8px; }
.my-sum-stats span small { display: block; font-size: 10.5px; color: var(--muted); }
.my-sum-stats span b { display: block; font-size: 17px; line-height: 1.2; font-variant-numeric: tabular-nums; }

.edit-lib-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 13px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  border-radius: 8px;
  background: var(--panel-2);
  font-size: 12px;
  color: var(--ink-2);
  line-height: 1.55;
}
.edit-lib-note b { font-size: 13px; color: var(--ink); }
.edit-proj-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
}
.edit-proj-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel);
  overflow: hidden;
  transition: border-color .15s, box-shadow .15s;
}
.edit-proj-card:hover { border-color: #c4bbab; box-shadow: 0 4px 14px rgba(30,26,20,.08); }
.edit-proj-open {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 3px;
  padding: 12px 13px 10px;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.edit-proj-open:hover { background: var(--panel-2); }
.edit-proj-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.edit-proj-name { font-size: 15px; font-weight: 600; line-height: 1.4; margin-top: 4px; }
.edit-proj-owner { font-size: 11.5px; color: var(--muted); }
.edit-proj-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 5px; margin-top: 8px; }
.edit-proj-stats span { min-width: 0; padding: 5px 6px; border-radius: 5px; background: var(--panel-2); }
.edit-proj-stats b { display: block; font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.edit-proj-stats small { display: block; font-size: 10px; color: var(--muted); margin-top: 1px; }
.edit-proj-enter { margin-top: 8px; font-size: 11.5px; color: var(--blue); font-weight: 500; }
.edit-proj-foot { display: flex; gap: 6px; padding: 8px 10px; border-top: 1px solid var(--line-2); background: var(--panel-2); }
.edit-workspace { border-top: 1px solid var(--line-2); padding-top: 10px; }
.edit-ws-back { margin-bottom: 8px; }
.edit-ws-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--steel);
  border-radius: 8px;
  background: linear-gradient(150deg,#fff 0%,var(--panel-2) 100%);
}
.edit-ws-id h3 { font-size: 17px; margin: 4px 0 2px; }
.edit-ws-id .sub { font-size: 11.5px; color: var(--muted); line-height: 1.5; }
.edit-ws-actions { display: flex; gap: 7px; flex-wrap: wrap; justify-content: flex-end; }
.edit-ws-stats { margin: 10px 0 12px; }
.edit-tree-panel { padding: 10px 12px 6px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.edit-tree-row {
  display: grid;
  grid-template-columns: auto minmax(180px,1fr) auto auto;
  align-items: center;
  gap: 7px;
  padding: 6px 2px;
  border-radius: 6px;
}
.edit-tree-row:hover { background: var(--panel-2); }
.edit-tree-tags { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; }
.edit-tree-actions { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; }
.edit-tree-actions .btn { padding: 4px 7px; font-size: 11.5px; }
.static-field {
  min-height: 34px;
  display: flex;
  align-items: center;
  padding: 7px 10px;
  border: 1px solid var(--line-2);
  border-radius: 5px;
  background: var(--panel-2);
  font-size: 12.5px;
  color: var(--ink-2);
}

/* ---------- v1.8 任务预警 / 总结折叠 ---------- */
.alarm-bar .alarm-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
}
.alarm-bar .alarm-link:hover { text-decoration: underline; }
.task-alert {
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--steel);
  border-radius: 9px;
  background: linear-gradient(150deg,#fff 0%,var(--panel-2) 100%);
  overflow: hidden;
}
.task-alert.has-alert { border-left-color: var(--red); background: linear-gradient(150deg,#fff 0%,#fbf2ef 100%); }
.task-alert-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px 9px;
}
.task-alert-title { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.task-alert-title h3 { font-size: 14px; letter-spacing: .4px; }
.task-alert-title .sub { font-size: 11.5px; color: var(--muted); }
.ta-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.task-alert:not(.has-alert) .ta-mark { background: var(--green); }
.task-alert-tools { flex: 0 0 auto; }
.task-alert-body { padding: 0 12px 11px; }
.ta-stats { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 7px; margin-bottom: 8px; }
.ta-stat {
  padding: 7px 9px;
  border: 1px solid var(--line-2);
  border-radius: 7px;
  background: rgba(255,255,255,.7);
}
.ta-stat span { display: block; font-size: 10.5px; color: var(--muted); }
.ta-stat b { display: block; font-size: 20px; line-height: 1.15; margin-top: 2px; font-variant-numeric: tabular-nums; }
.ta-stat b em { font-style: normal; font-size: 10.5px; font-weight: 500; color: var(--muted); margin-left: 1px; }
.ta-stat.bad { border-color: #e0c3bf; }
.ta-stat.warn { border-color: #ecd4ae; }
.ta-calm { padding: 10px 4px 4px; font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.ta-calm-icon { display: inline-flex; align-items: center; justify-content: center; width: 17px; height: 17px; border-radius: 50%; background: var(--green-soft); color: var(--green); font-size: 11px; font-weight: 700; }
.task-alert .collapse { border-top: 1px solid var(--line-2); border-bottom: none; }
.task-alert .collapse-head { padding: 7px 4px; }
.task-alert .collapse-body { padding: 6px 0 2px; }
.task-alert .plan { margin-bottom: 0; }
.panel-fold .collapse { border-bottom: none; }
.panel-fold .collapse-body { padding-top: 4px; }
.panel-fold .panel-tools { gap: 7px; }
.plan.alert-focus {
  outline: 2px solid var(--ember);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--ember-soft);
  transition: outline .2s, box-shadow .2s;
}
.pt-main.alert-focus {
  outline: 2px solid var(--ember);
  outline-offset: 1px;
  background: var(--ember-soft);
  border-radius: 5px;
  transition: background .2s, outline .2s;
}
.sum-proj-sub {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: var(--ink-2);
  letter-spacing: .2px;
}

@media (max-width: 720px) {
  .proj-tile-grid { grid-template-columns: 1fr; }
  .pd-hero { flex-direction: column; align-items: flex-start; padding: 15px 16px; }
  .pd-ratio { text-align: left; }
  .pd-ratio b { display: inline; font-size: 22px; margin-right: 8px; }
  .proj-intro { display: block; }
  .proj-intro-title { margin-bottom: 4px; }
  .annual-block { padding: 12px; }
  .task-plan-grid { grid-template-columns: 1fr; }
  .edit-lib-note { display: block; }
  .edit-lib-note .btn { margin-top: 8px; }
  .edit-proj-grid { grid-template-columns: 1fr; }
  .edit-ws-head { display: block; }
  .edit-ws-actions { justify-content: flex-start; margin-top: 9px; }
  .edit-tree-row { grid-template-columns: auto minmax(0,1fr); }
  .edit-tree-tags,
  .edit-tree-actions { grid-column: 2; justify-content: flex-start; }
}


