:root {
  --bg: #f5f6fa;
  --card: #ffffff;
  --line: #e8eaf1;
  --text: #1b1f2a;
  --text-2: #6b7280;
  --text-3: #9aa1ae;
  --primary: #3b5bfd;
  --primary-d: #2c46d6;
  --primary-l: #eef1ff;
  --green: #12b76a;
  --green-l: #e7f8f0;
  --amber: #f79009;
  --amber-l: #fef4e6;
  --red: #ef4444;
  --red-l: #fdeeee;
  --violet: #7c5cfc;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px rgba(16, 24, 40, .06);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: var(--bg); color: var(--text); font-size: 14px; -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font-family: inherit; font-size: 14px; }
::placeholder { color: #aab0bd; }
.hidden { display: none !important; }
a { color: var(--primary); text-decoration: none; }

/* ---------- 登录 ---------- */
.login-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px;
  background:
    radial-gradient(1000px 500px at 10% -10%, #e6ebff 0%, rgba(230,235,255,0) 60%),
    radial-gradient(800px 400px at 100% 0%, #eaf7f1 0%, rgba(234,247,241,0) 55%),
    var(--bg);
}
.login-card {
  width: 460px; max-width: 100%; background: var(--card); border-radius: 20px; padding: 34px 34px 28px;
  box-shadow: 0 20px 60px rgba(16,24,40,.10);
}
.login-brand { display: flex; gap: 14px; align-items: center; margin-bottom: 26px; }
.brand-mark {
  width: 46px; height: 46px; border-radius: 12px; background: linear-gradient(135deg, #3b5bfd, #7c5cfc);
  color: #fff; font-size: 22px; font-weight: 700; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 18px rgba(59,91,253,.28); flex: none;
}
.brand-mark.sm { width: 30px; height: 30px; font-size: 15px; border-radius: 8px; box-shadow: none; }
.login-brand h1 { font-size: 20px; margin: 0 0 4px; letter-spacing: .5px; }
.login-brand p { margin: 0; font-size: 12.5px; color: var(--text-3); }
.login-form label { display: block; margin-bottom: 14px; font-size: 13px; color: var(--text-2); }
.login-form input {
  width: 100%; margin-top: 7px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px;
  outline: none; transition: .15s; background: #fbfbfd;
}
.login-form input:focus { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px rgba(59,91,253,.10); }
.login-err { color: var(--red); font-size: 12.5px; min-height: 18px; margin-bottom: 6px; }
.login-demo { margin-top: 18px; font-size: 12.5px; color: var(--text-3); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.login-tip { margin-top: 14px; font-size: 12px; color: var(--text-3); line-height: 1.6; border-top: 1px dashed var(--line); padding-top: 12px; }

/* ---------- 通用控件 ---------- */
.btn {
  border: 1px solid transparent; border-radius: 9px; padding: 9px 16px; cursor: pointer;
  background: #fff; color: var(--text); transition: .15s; font-weight: 500;
}
.btn:hover { background: #f7f8fc; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-d); }
.btn-ghost { border-color: var(--line); color: var(--text-2); }
.btn-ding { background: #1677ff; color: #fff; margin-top: 10px; }
.btn-danger { background: var(--red-l); color: var(--red); border-color: #f7c9c9; }
.btn-sm { padding: 6px 11px; font-size: 12.5px; border-radius: 8px; }
.btn-xs { padding: 3px 9px; font-size: 12px; border-radius: 7px; }
.btn-block { width: 100%; padding: 11px; margin-top: 8px; font-size: 15px; }
.chip {
  border: 1px solid var(--line); background: #fafbfe; border-radius: 999px; padding: 4px 11px;
  font-size: 12px; color: var(--text-2); cursor: pointer;
}
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip.active { border-color: var(--primary); color: var(--primary); background: var(--primary-l); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

.input, select.input, textarea.input {
  width: 100%; padding: 8px 11px; border: 1px solid var(--line); border-radius: 9px; outline: none; background: #fbfbfd;
  transition: .15s;
}
.input:focus { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px rgba(59,91,253,.08); }
textarea.input { resize: vertical; min-height: 68px; line-height: 1.6; }

/* ---------- 布局 ---------- */
.app-bottomless { }
.topbar {
  height: 58px; background: #fff; border-bottom: 1px solid var(--line); display: flex;
  align-items: center; justify-content: space-between; padding: 0 20px; position: sticky; top: 0; z-index: 20;
}
.topbar-left { display: flex; align-items: center; gap: 10px; }
.org-name { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 300px; }
.topbar-right { display: flex; align-items: center; gap: 14px; }
.cycle-pick { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--text-2); }
.cycle-pick select {
  border: 1px solid var(--line); border-radius: 8px; padding: 6px 9px; background: #fbfbfd; outline: none;
}
.user-chip { display: flex; align-items: center; gap: 9px; padding-left: 14px; border-left: 1px solid var(--line); }
.avatar {
  width: 32px; height: 32px; border-radius: 9px; background: var(--primary-l); color: var(--primary);
  display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 13px;
}
.user-meta b { font-size: 13px; }
.user-meta span { display: block; font-size: 11.5px; color: var(--text-3); }

.sidebar {
  position: fixed; left: 0; top: 58px; bottom: 0; width: 196px; background: #fff; border-right: 1px solid var(--line);
  padding: 14px 10px; overflow-y: auto;
}
.nav-group { font-size: 11px; color: var(--text-3); padding: 12px 12px 6px; letter-spacing: .5px; }
.nav-item {
  display: flex; align-items: center; gap: 9px; padding: 9px 12px; border-radius: 9px; cursor: pointer;
  color: var(--text-2); font-size: 13.5px; margin-bottom: 2px; user-select: none;
}
.nav-item:hover { background: #f6f7fb; color: var(--text); }
.nav-item.active { background: var(--primary-l); color: var(--primary); font-weight: 600; }
.nav-item .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); opacity: .5; }
.nav-item.active .dot { opacity: 1; }
.view { margin-left: 196px; padding: 22px 26px 60px; min-height: calc(100vh - 58px); }
.view-inner { max-width: 1180px; margin: 0 auto; }

/* ---------- 卡片 ---------- */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; margin-bottom: 16px; }
.card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; gap: 12px; }
.card-title { font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.card-sub { font-size: 12.5px; color: var(--text-3); margin-top: 3px; font-weight: 400; }
.card-actions { display: flex; gap: 8px; align-items: center; }

.page-head { margin-bottom: 18px; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.page-title { font-size: 20px; font-weight: 650; letter-spacing: .3px; }
.page-sub { font-size: 12.5px; color: var(--text-3); margin-top: 5px; }

.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.g5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1100px) { .g4, .g5 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) {
  .topbar { padding: 0 12px; height: 54px; }
  .org-name { display: none; }
  .user-meta { display: none; }
  .topbar-right { gap: 8px; }
  .cycle-pick span { display: none; }
  .sidebartext { display: none; }
  .sidebar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; top: auto; width: 100%; height: auto;
    border-right: none; border-top: 1px solid var(--line); padding: 6px 8px; overflow-x: auto; z-index: 30;
    gap: 2px; box-shadow: 0 -4px 18px rgba(16,24,40,.06);
  }
  .nav-group { display: none; }
  .nav-item { flex: none; margin: 0; padding: 8px 11px; font-size: 12.5px; white-space: nowrap; }
  .view { margin-left: 0; padding: 16px 14px 88px; }
  .page-head { flex-direction: column; align-items: flex-start; }
  .g2, .g3, .g4, .g5 { grid-template-columns: repeat(2, 1fr); }
  .kr-row { grid-template-columns: 1fr 1fr !important; }
  .kr-row > *:first-child { grid-column: 1 / -1; }
  .kr-row > .flex, .kr-row > .kr-bar, .kr-row > button { grid-column: 1 / -1; }
  .kr-row > .score-input, .kr-row > .weight-edit { justify-self: end; }
  .kr-editor { border-top: 1px solid #f1f2f6; padding: 12px 0; }
  .table { display: block; overflow-x: auto; }
}
@media (max-width: 520px) { .g2, .g3, .g4, .g5 { grid-template-columns: 1fr; } }

.kpi { background: var(--card); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.kpi .k-label { font-size: 12.5px; color: var(--text-3); display: flex; align-items: center; gap: 6px; }
.kpi .k-value { font-size: 28px; font-weight: 680; margin-top: 6px; letter-spacing: -.5px; }
.kpi .k-value small { font-size: 13px; font-weight: 500; color: var(--text-3); margin-left: 3px; }
.kpi .k-foot { font-size: 12px; color: var(--text-3); margin-top: 4px; }
.kpi.accent { background: linear-gradient(135deg, #3b5bfd, #6a5cfc); color: #fff; }
.kpi.accent .k-label, .kpi.accent .k-foot { color: rgba(255,255,255,.78); }
.kpi .k-bar { height: 4px; border-radius: 4px; background: #eef0f6; margin-top: 12px; overflow: hidden; }
.kpi .k-bar i { display: block; height: 100%; background: var(--primary); border-radius: 4px; }

/* ---------- 标签 ---------- */
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 6px; font-size: 11.5px; font-weight: 500; }
.tag.gray { background: #f1f2f6; color: var(--text-2); }
.tag.blue { background: var(--primary-l); color: var(--primary); }
.tag.green { background: var(--green-l); color: var(--green); }
.tag.amber { background: var(--amber-l); color: #b26a00; }
.tag.red { background: var(--red-l); color: var(--red); }
.tag.violet { background: #f2eeff; color: var(--violet); }
.level { width: 26px; height: 26px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12.5px; }
.level.A { background: #f2eeff; color: #6a3ff0; }
.level.B { background: var(--primary-l); color: var(--primary); }
.level.C { background: var(--green-l); color: var(--green); }
.level.D { background: var(--amber-l); color: #b26a00; }
.level.E { background: var(--red-l); color: var(--red); }

/* ---------- 表格 ---------- */
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 12px; color: var(--text-3); font-weight: 500; padding: 9px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 11px 10px; border-bottom: 1px solid #f3f4f8; font-size: 13px; vertical-align: middle; }
.table tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: #fafbfe; }
.table .num { font-variant-numeric: tabular-nums; }
.name-cell { display: flex; align-items: center; gap: 9px; }
.name-cell .avatar { width: 28px; height: 28px; font-size: 12px; }

.progress { height: 6px; background: #eef0f6; border-radius: 6px; overflow: hidden; min-width: 60px; }
.progress i { display: block; height: 100%; border-radius: 6px; background: var(--primary); }
.progress.green i { background: var(--green); }
.progress.amber i { background: var(--amber); }

/* ---------- 目标卡 ---------- */
.goal {
  border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; margin-bottom: 12px; background: #fff;
}
.goal-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.goal-title { font-weight: 600; font-size: 14.5px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.goal-desc { font-size: 12.5px; color: var(--text-3); margin: 6px 0 12px; }
.kr-row { display: grid; grid-template-columns: 1fr 190px 90px; gap: 10px; align-items: center; padding: 9px 0; border-top: 1px dashed var(--line); }
.kr-row > button { justify-self: end; }
.kr-row .flex { flex-wrap: wrap; }
.kr-desc { font-size: 13px; }
.kr-meta { font-size: 11.5px; color: var(--text-3); margin-top: 3px; }
.kr-bar { display: flex; align-items: center; gap: 8px; }
.kr-bar .progress { flex: 1; }
.kr-bar span { font-size: 12px; color: var(--text-2); width: 38px; text-align: right; font-variant-numeric: tabular-nums; }
.goal-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--text-3); }
.weight-edit { width: 62px; text-align: center; padding: 5px 6px; }
.score-input { width: 66px; text-align: center; padding: 5px 6px; }

.empty { text-align: center; padding: 38px 10px; color: var(--text-3); font-size: 13px; }
.empty b { display: block; color: var(--text-2); font-size: 14px; margin-bottom: 6px; }

.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.tab { padding: 9px 14px; cursor: pointer; font-size: 13.5px; color: var(--text-2); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }

.note { background: #f8f9fd; border-left: 3px solid var(--primary); border-radius: 8px; padding: 10px 13px; font-size: 12.5px; color: var(--text-2); line-height: 1.65; }
.alert { border-radius: 10px; padding: 11px 14px; font-size: 13px; display: flex; gap: 9px; align-items: flex-start; }
.alert.amber { background: var(--amber-l); color: #8a5200; }
.alert.red { background: var(--red-l); color: #b42318; }
.alert.green { background: var(--green-l); color: #067647; }
.alert b { font-weight: 600; }

.todo-item { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.todo-item:last-child { border-bottom: none; }
.todo-item .tdot { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); flex: none; }
.todo-item.urgent .tdot { background: var(--red); }

/* ---------- 图表 ---------- */
.chart { width: 100%; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--text-2); margin-top: 8px; }
.legend i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; margin-right: 5px; }

/* ---------- 弹窗 / 提示 ---------- */
.toast {
  position: fixed; left: 50%; bottom: 34px; transform: translateX(-50%) translateY(20px); background: #1f2430; color: #fff;
  padding: 11px 18px; border-radius: 10px; font-size: 13px; opacity: 0; pointer-events: none; transition: .25s; z-index: 60;
  max-width: 80vw;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.err { background: #b42318; }

.modal { position: fixed; inset: 0; background: rgba(16,24,40,.45); display: flex; align-items: center; justify-content: center; z-index: 50; padding: 20px; }
.modal-card { background: #fff; border-radius: 16px; padding: 22px; width: 520px; max-width: 100%; max-height: 88vh; overflow-y: auto; }
.modal-title { font-size: 16px; font-weight: 600; margin-bottom: 14px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 18px; }

.form-row { margin-bottom: 12px; }
.form-row label { display: block; font-size: 12.5px; color: var(--text-2); margin-bottom: 6px; }

.perm-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px dashed var(--line); }
.perm-row:last-child { border-bottom: none; }
.perm-row b { font-size: 13.5px; }
.perm-row p { margin: 4px 0 0; font-size: 12.5px; color: var(--text-3); line-height: 1.55; }

.switch { position: relative; width: 42px; height: 24px; flex: none; cursor: pointer; }
.switch input { display: none; }
.switch .track { position: absolute; inset: 0; background: #dfe2ec; border-radius: 99px; transition: .2s; }
.switch .track:before { content: ''; position: absolute; width: 18px; height: 18px; border-radius: 50%; background: #fff; top: 3px; left: 3px; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch input:checked + .track { background: var(--primary); }
.switch input:checked + .track:before { transform: translateX(18px); }
.switch input:disabled + .track { opacity: .5; cursor: not-allowed; }

.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.muted { color: var(--text-3); }
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; }
.flex { display: flex; align-items: center; gap: 8px; }
.right { margin-left: auto; }
.wrap { flex-wrap: wrap; }

/* ---- 评分依据（季度自评） ---- */
.kr-block { border-top: 1px dashed var(--line); padding-top: 4px; }
.kr-block .kr-row { border-top: 0; }
.kr-ev { background: #f8f9fc; border: 1px solid var(--line); border-radius: 9px; padding: 9px 11px; margin: 2px 0 12px; display: flex; flex-direction: column; gap: 7px; }
.ev-title { font-size: 12px; font-weight: 600; color: var(--text); }
.ev-title .muted { font-weight: 400; }
.kr-ev .input { font-size: 12.5px; padding: 6px 9px; }
.ev-imgs { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.ev-thumb { position: relative; width: 62px; height: 62px; border-radius: 7px; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.ev-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ev-del { position: absolute; top: 2px; right: 2px; width: 16px; height: 16px; line-height: 14px; text-align: center; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; font-style: normal; font-size: 11px; cursor: pointer; }
.ev-view { margin-top: 6px; display: flex; flex-direction: column; gap: 4px; font-size: 12px; }
.ev-view a { color: var(--primary); word-break: break-all; }
.ev-thumbs { display: flex; flex-wrap: wrap; gap: 6px; }
.ev-thumbs img { width: 52px; height: 52px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }
@media (max-width: 760px) { .kr-ev { padding: 8px; } .ev-thumb { width: 54px; height: 54px; } }

/* ---- KPI 表格式编辑器 ---- */
.kpi-table { min-width: 980px; }
.kpi-table td { vertical-align: top; }
.kpi-table textarea.input { width: 100%; resize: vertical; line-height: 1.5; height: auto; font-size: 12.5px; }
.kpi-table .cat-cell { background: #fafbfe; }
.kpi-table .cat-cell .input { font-weight: 600; }
.cat-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.kpi-table .kweight, .kpi-table .kr-prog { text-align: center; }

.kr-std-text { font-size: 11.5px; color: var(--muted); margin-top: 4px; white-space: pre-line; line-height: 1.5; }


/* 类别列：完整显示 + 高亮 */
.kpi-table .cat-cell { background: var(--primary-l); border-right: 2px solid rgba(59,91,253,.16); }
.kpi-table .cat-name {
  width: 100%; border: 1px solid rgba(59,91,253,.35); border-radius: 8px; background: #fff;
  color: var(--primary-d); font-weight: 700; font-size: 13.5px; line-height: 1.4;
  padding: 7px 9px; resize: none; overflow: hidden; white-space: pre-wrap; word-break: break-word;
}
.kpi-table .cat-name:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(59,91,253,.12); }
.kpi-table .cat-sum { margin-top: 6px; font-size: 11.5px; color: var(--text-2); line-height: 1.55; white-space: pre-wrap; word-break: break-word; }
.kpi-table .cat-weight { display: flex; align-items: center; gap: 5px; margin-top: 8px; font-size: 12px; font-weight: 600; color: var(--text); }
.kpi-table .cat-weight .cw { width: 62px; text-align: center; }

/* 类别说明：放大、置顶、可编辑 */
.kpi-table .cat-sum-input {
  width: 100%; border: 1px dashed rgba(59,91,253,.3); border-radius: 8px; background: #fff;
  color: var(--text); font-size: 14px; font-weight: 600; line-height: 1.55; padding: 8px 9px;
  margin-bottom: 8px; resize: vertical; white-space: pre-wrap; word-break: break-word;
}
.kpi-table .cat-sum-input::placeholder { font-weight: 400; color: var(--text-3); }
.kpi-table .cat-sum-input:focus { outline: none; border-style: solid; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(59,91,253,.12); }

/* ==== KPI 表美化：表头加粗放大、列间距统一、类别卡更清爽 ==== */
.kpi-table { width: 100%; min-width: 1080px; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.kpi-table col.cat { width: 270px; }
.kpi-table col.ind { width: 300px; }
.kpi-table col.std { width: auto; }
.kpi-table col.prog { width: 178px; }
.kpi-table col.op { width: 70px; }
.kpi-table thead th {
  font-size: 15px; font-weight: 700; color: #1b1f2a; letter-spacing: .4px;
  background: #eef1fc; padding: 14px 16px; text-align: left;
  border-bottom: 2px solid rgba(59,91,253,.18); position: sticky; top: 0; z-index: 3;
  white-space: nowrap;
}
.kpi-table thead th:last-child { text-align: center; }
.kpi-table tbody td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; background: #fff; }
.kpi-table tbody tr:hover td { background: #fbfcff; }
.kpi-table .cat-cell {
  background: #f4f6ff !important; vertical-align: top;
  border-right: 1px solid #e2e7fb;
}
.kpi-table .cat-cell > * + * { margin-top: 8px; }
.kpi-table .cat-sum-input {
  width: 100%; border: 0; background: transparent; padding: 0;
  color: var(--text); font-size: 13.5px; font-weight: 600; line-height: 1.6;
  resize: none; overflow: hidden; white-space: pre-wrap; word-break: break-word;
  border-bottom: 1px dashed transparent;
}
.kpi-table .cat-sum-input:focus { outline: none; border-bottom-color: var(--primary); }
.kpi-table .cat-name {
  width: 100%; padding: 7px 10px; border-radius: 8px; border: 1px solid rgba(59,91,253,.3);
  background: #fff; color: var(--primary-d); font-size: 15px; font-weight: 700; line-height: 1.4;
  resize: none; overflow: hidden; white-space: pre-wrap; word-break: break-word;
}
.kpi-table .cat-name:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(59,91,253,.12); }
.kpi-table .cat-weight { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--text-2); }
.kpi-table .cat-weight .cw { width: 58px; height: 30px; text-align: center; font-weight: 700; color: var(--text); }
.kpi-table .cat-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.kpi-table .cat-actions .btn { padding: 4px 9px; }
.kpi-table textarea.input { width: 100%; font-size: 13px; line-height: 1.6; padding: 9px 11px; border-radius: 8px; }
.kpi-table textarea.input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(59,91,253,.1); }
.kpi-table .prog-cell { vertical-align: middle; }
.kpi-table .prog-cell .flex { gap: 6px; }
.kpi-table .prog-cell .kr-prog { width: 64px; height: 32px; text-align: center; font-weight: 700; }
.kpi-table .prog-cell .kr-note { font-size: 12px; }
.kpi-table .kr-del { color: var(--text-3); }
.kpi-table .kr-del:hover { color: var(--red, #e5484d); background: #fdf2f2; }

/* 类别单元格底部信息行 */
.kpi-table .cat-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.kpi-table .cat-meta .tag { font-size: 11.5px; }
.kpi-table tbody td { padding: 16px; }
.kpi-table tbody tr:first-child td { border-top: 0; }
.kpi-table .cat-cell .cat-actions { margin-top: 2px; }
