:root {
  --navy: #17324f;
  --navy2: #24507c;
  --blue: #2e75b6;
  --blue-dark: #1f5d99;
  --blue-soft: #e9f1fa;
  --bg: #f2f5f9;
  --card: #ffffff;
  --line: #dfe7f1;
  --line-strong: #c9d6e6;
  --text: #22303f;
  --muted: #70829a;
  --green: #2e9e5b;
  --green-soft: #e8f5ec;
  --orange: #d98a1f;
  --orange-soft: #fdf3e1;
  --red: #c0392b;
  --red-soft: #fbecea;
  --radius: 14px;
  --shadow: 0 4px 18px rgba(23, 50, 79, 0.07);
  --shadow-lg: 0 14px 44px rgba(23, 50, 79, 0.18);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Microsoft YaHei", "PingFang SC", -apple-system, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
a { color: var(--blue); text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.mono { font-variant-numeric: tabular-nums; }

/* ---------- 基础控件 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--text);
  border-radius: 9px;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 13.5px;
  line-height: 1.2;
  transition: all .15s;
  white-space: nowrap;
}
.btn:hover { border-color: var(--blue); color: var(--blue); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: linear-gradient(180deg, var(--blue), var(--blue-dark)); border-color: var(--blue-dark); color: #fff; }
.btn.primary:hover { filter: brightness(1.06); color: #fff; }
.btn.danger { color: var(--red); border-color: #e8bdb7; }
.btn.danger:hover { background: var(--red-soft); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { background: #eef2f8; color: var(--navy); }
.btn.sm { padding: 5px 10px; font-size: 12.5px; border-radius: 7px; }
.btn.block { width: 100%; }
.btn.warn { color: var(--orange); border-color: #efd3a2; }
.btn.warn:hover { background: var(--orange-soft); }

.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 12.5px; color: var(--muted); }
input[type=text], input[type=password], input[type=number], select, textarea {
  border: 1px solid var(--line-strong);
  background: #fbfcfe;
  border-radius: 9px;
  padding: 8px 11px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  width: 100%;
}
input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(46, 117, 182, .12); background: #fff; }
textarea { resize: vertical; min-height: 64px; line-height: 1.6; }
select { cursor: pointer; }
.check { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; font-size: 13px; }
.check input { accent-color: var(--blue); width: 15px; height: 15px; }

.badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--blue-soft); color: var(--blue-dark);
  border-radius: 999px; padding: 3px 10px; font-size: 12px; white-space: nowrap;
}
.badge.green { background: var(--green-soft); color: #257a47; }
.badge.orange { background: var(--orange-soft); color: #9a6a12; }
.badge.red { background: var(--red-soft); color: var(--red); }
.badge.ghost { background: rgba(255,255,255,.12); color: #dce8f6; }
.badge.gray { background: #eef1f6; color: var(--muted); }

.chip {
  display: inline-flex; align-items: center; gap: 4px;
  border-radius: 999px; padding: 2px 9px; font-size: 12px; line-height: 1.6;
  background: #eef3fa; border: 1px solid #d5e1f0; color: #2a3d55;
}
.chip.g { background: var(--green-soft); border-color: #bfe3cd; color: #257a47; }
.chip.o { background: var(--orange-soft); border-color: #f0d6a8; color: #9a6a12; }
.chip.r { background: var(--red-soft); border-color: #ecc4bd; color: var(--red); }
.chip.b { background: var(--blue-soft); border-color: #c7dbf1; color: var(--blue-dark); }

/* ---------- 登录 ---------- */
.login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 30px 18px;
  background:
    radial-gradient(1100px 520px at 12% -10%, rgba(46, 117, 182, .18), transparent 60%),
    radial-gradient(900px 500px at 100% 110%, rgba(23, 50, 79, .12), transparent 60%),
    var(--bg);
}
.login-card {
  width: min(980px, 100%);
  min-height: 540px;
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
}
.login-brand {
  background: linear-gradient(140deg, #17324f 0%, #234b74 55%, #2e6ba3 100%);
  color: #fff;
  padding: 46px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}
.login-brand::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.09) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
}
.brand-mark {
  width: 52px; height: 52px; border-radius: 15px;
  background: linear-gradient(160deg, #5ea2e0, #2e75b6);
  display: grid; place-items: center;
  font-size: 24px; font-weight: 700; color: #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,.22);
  margin-bottom: 24px;
}
.brand-mark.sm { width: 34px; height: 34px; border-radius: 10px; font-size: 16px; margin: 0; box-shadow: none; }
.login-brand h1 { font-size: 28px; letter-spacing: 1px; font-weight: 700; }
.login-sub { margin-top: 8px; color: #c3d7ea; font-size: 14px; }
.login-points { margin: 30px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; position: relative; z-index: 1; }
.login-points li { font-size: 13px; color: #dbe7f3; padding-left: 20px; position: relative; }
.login-points li::before { content: ""; position: absolute; left: 0; top: 7px; width: 8px; height: 8px; border-radius: 50%; background: #5ea2e0; box-shadow: 0 0 0 4px rgba(94,162,224,.18); }
.login-form { padding: 56px 54px; display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.login-form h2 { font-size: 22px; color: var(--navy); }
.login-form .field { gap: 7px; }
.login-form input { padding: 11px 13px; font-size: 14px; }
.login-foot { text-align: center; color: var(--muted); font-size: 12px; margin-top: 6px; }
.form-error { color: var(--red); background: var(--red-soft); border-radius: 8px; padding: 8px 12px; font-size: 12.5px; }

/* ---------- 顶栏 ---------- */
.topbar {
  height: 64px;
  background: linear-gradient(100deg, #16304b 0%, #234d78 62%, #2f6ba5 100%);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: 0 2px 12px rgba(20, 45, 72, .22);
}
.brand { display: flex; align-items: center; gap: 11px; min-width: 200px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text b { font-size: 16px; letter-spacing: .5px; }
.brand-text small { color: #b9cfe5; font-size: 11px; letter-spacing: .6px; }
.topbar-mid { display: flex; align-items: center; gap: 10px; flex: 1; }
.cycle-pick { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: #c6d8ea; }
.cycle-pick select {
  width: auto; min-width: 190px; background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.2); color: #fff; padding: 6px 10px; border-radius: 8px;
}
.cycle-pick select option { color: var(--text); background: #fff; }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.user-btn {
  display: flex; align-items: center; gap: 8px; background: transparent;
  border: 1px solid rgba(255,255,255,.18); color: #fff; border-radius: 999px;
  padding: 4px 12px 4px 4px; cursor: pointer;
}
.user-btn:hover { background: rgba(255,255,255,.08); }
.avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255,255,255,.2); display: grid; place-items: center;
  font-size: 12px; font-weight: 700;
}
.caret { font-size: 10px; opacity: .7; }
.usermenu { position: relative; }
.usermenu-pop {
  position: absolute; right: 0; top: calc(100% + 8px);
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: var(--shadow-lg); padding: 6px; min-width: 180px; z-index: 60;
}
.usermenu-pop button {
  display: block; width: 100%; text-align: left; border: 0; background: transparent;
  padding: 8px 10px; border-radius: 7px; cursor: pointer; font-size: 13px; color: var(--text);
}
.usermenu-pop button:hover { background: #f0f5fb; }
.usermenu-account {
  padding: 7px 10px 8px; margin-bottom: 4px; border-bottom: 1px solid var(--line);
  font-size: 11.5px; color: var(--muted); line-height: 1.45; white-space: nowrap;
}
.usermenu-account b { display: block; color: var(--navy); font-size: 13px; }

/* ---------- 布局 ---------- */
.layout { display: flex; align-items: flex-start; min-height: calc(100vh - 64px); }
.sidenav {
  width: 208px;
  flex: 0 0 208px;
  padding: 18px 12px;
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
  background: #fff;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nav-group { font-size: 11px; color: #9aa9bb; padding: 12px 12px 6px; letter-spacing: .5px; }
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 9px; cursor: pointer;
  color: #43546a; font-size: 13.5px; border: 0; background: transparent;
  text-align: left; width: 100%; position: relative;
}
.nav-item:hover { background: #f2f6fb; color: var(--navy); }
.nav-item.on { background: var(--blue-soft); color: var(--blue-dark); font-weight: 600; }
.nav-item.on::before {
  content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px;
  width: 3px; border-radius: 0 3px 3px 0; background: var(--blue);
}
.nav-dot { width: 7px; height: 7px; border-radius: 50%; background: #b9c8db; flex: 0 0 7px; }
.nav-item.on .nav-dot { background: var(--blue); }
.main { flex: 1; min-width: 0; padding: 20px 24px 60px; max-width: 1560px; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.page-title { font-size: 20px; color: var(--navy); font-weight: 700; }
.page-sub { color: var(--muted); font-size: 12.5px; margin-top: 4px; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 16px 18px; margin-bottom: 16px;
}
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.card-title { font-size: 14.5px; font-weight: 700; color: var(--navy); display: flex; align-items: center; gap: 8px; }
.card-title .bar { width: 4px; height: 15px; border-radius: 2px; background: var(--blue); }
.card-sub { color: var(--muted); font-size: 12px; }

.kpi-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-bottom: 16px; }
.kpi {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; box-shadow: var(--shadow);
}
.kpi .v { font-size: 24px; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; }
.kpi .l { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.kpi.g .v { color: var(--green); }
.kpi.o .v { color: var(--orange); }
.kpi.r .v { color: var(--red); }
.kpi.b .v { color: var(--blue); }

.kpi .s { font-size: 10.5px; color: var(--muted); margin-top: 3px; line-height: 1.4; }
.kpi.r .s { color: var(--red); }
.kpi-note { grid-column: 1/-1; font-size: 11px; color: var(--muted); line-height: 1.6; margin-top: -8px; }

.toolbar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 9px 12px; box-shadow: var(--shadow); margin-bottom: 14px;
}
.toolbar .spacer { flex: 1; }
.toolbar input[type=text] { width: 220px; }
.toolbar select { width: auto; }
.seg { display: inline-flex; background: #f0f4f9; border-radius: 9px; padding: 3px; gap: 2px; }
.seg button {
  border: 0; background: transparent; padding: 5px 11px; border-radius: 7px;
  font-size: 12.5px; color: var(--muted); cursor: pointer;
}
.seg button.on { background: #fff; color: var(--navy); box-shadow: 0 1px 4px rgba(23,50,79,.12); font-weight: 600; }

/* ---------- 表格 ---------- */
.table-wrap { overflow: auto; border-radius: 10px; border: 1px solid var(--line); }
table.table { width: 100%; border-collapse: collapse; font-size: 13px; background: #fff; }
.table th {
  background: #f5f8fc; color: #4c6178; font-weight: 600; font-size: 12px;
  text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); white-space: nowrap;
  position: sticky; top: 0; z-index: 1;
}
.table td { padding: 9px 12px; border-bottom: 1px solid #edf1f7; vertical-align: middle; }
.table tbody tr:hover { background: #f8fbfe; }
.table tr:last-child td { border-bottom: 0; }
.table .name { font-weight: 600; color: var(--navy); cursor: pointer; }
.table .name:hover { color: var(--blue); text-decoration: underline; }
.table .num { font-variant-numeric: tabular-nums; }
.table .row-actions { display: flex; gap: 6px; justify-content: flex-end; }
.table .empty-row td { text-align: center; color: var(--muted); padding: 34px 0; }
.progress { height: 6px; background: #edf1f7; border-radius: 999px; overflow: hidden; min-width: 70px; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), #5ea2e0); border-radius: 999px; }
.progress.g i { background: linear-gradient(90deg, #35a867, #66c68c); }
.score-mini { font-weight: 600; font-variant-numeric: tabular-nums; }
.score-mini.g { color: var(--green); }
.score-mini.r { color: var(--red); }
.score-mini.o { color: var(--orange); }

/* ---------- 九宫格 ---------- */
.ninebox-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; }
.ninebox-scroll { overflow-x: auto; }
.ninebox-scroll:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.ninebox-scroll-hint { display: none; }
.ninebox { display: grid; grid-template-columns: 46px repeat(3, 1fr); grid-template-rows: repeat(3, minmax(160px, auto)) auto; gap: 8px; }
.axis-y {
  writing-mode: vertical-rl; display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: var(--navy); letter-spacing: 2px;
  background: linear-gradient(180deg, #f4f8fd, #eaf1f9); border-radius: 10px;
}
.axis-x { grid-column: 2 / 5; text-align: center; font-size: 13px; font-weight: 700; color: var(--navy); letter-spacing: 3px; padding-top: 4px; }
.nb-cell {
  --c: #cfd6e0;
  border: 2px solid color-mix(in srgb, var(--c) 55%, #ffffff);
  background: color-mix(in srgb, var(--c) 6%, #ffffff);
  border-radius: 12px; padding: 10px 11px; min-height: 150px;
  display: flex; flex-direction: column; gap: 5px; transition: box-shadow .15s, transform .15s;
}
.nb-cell:hover { box-shadow: 0 5px 16px rgba(23,50,79,.09); transform: translateY(-1px); }
.nb-top { display: flex; align-items: center; gap: 7px; }
.nb-num {
  width: 22px; height: 22px; border-radius: 50%; background: var(--c); color: #fff;
  display: grid; place-items: center; font-size: 11.5px; font-weight: 700; flex: 0 0 22px;
}
.nb-name { font-weight: 700; font-size: 13.5px; color: var(--navy); }
.nb-count { margin-left: auto; font-size: 11.5px; color: var(--muted); background: rgba(255,255,255,.75); border-radius: 999px; padding: 1px 8px; }
.nb-action { font-size: 11px; color: #6b7c92; line-height: 1.5; min-height: 30px; }
.nb-names { display: flex; flex-wrap: wrap; gap: 5px; margin-top: auto; align-content: flex-start; }
.nb-person {
  border: 1px solid color-mix(in srgb, var(--c) 35%, #ffffff);
  background: rgba(255,255,255,.85); border-radius: 999px; padding: 1px 9px;
  font-size: 12px; cursor: pointer; color: #2b3c51;
}
.nb-person:hover { background: #fff; border-color: var(--c); }
.nb-person .t { color: var(--muted); font-size: 10.5px; margin-left: 3px; }
.nb-person[draggable="true"] { cursor: grab; }
.nb-person.dragging { opacity: .35; cursor: grabbing; }
.nb-cell.drag-over {
  outline: 2px dashed var(--blue); outline-offset: -4px;
  background: color-mix(in srgb, var(--c) 13%, #ffffff);
}
.nb-empty { color: #a8b5c5; font-size: 12px; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-top: 12px; }
.legend i { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }

.ratio-bar { display: flex; height: 10px; border-radius: 999px; overflow: hidden; background: #edf1f7; margin: 8px 0 4px; }
.ratio-bar span { display: block; height: 100%; }
.ratio-bar .t { background: var(--green); }
.ratio-bar .m { background: var(--orange); }
.ratio-bar .l { background: var(--red); }
.ratio-legend { display: flex; gap: 14px; font-size: 11.5px; color: var(--muted); flex-wrap: wrap; }

/* ---------- 抽屉 ---------- */
.drawer-mask {
  position: fixed; inset: 0; background: rgba(15, 30, 48, .38);
  z-index: 80; animation: fade .18s ease;
}
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(620px, 94vw);
  background: #fff; z-index: 90; box-shadow: -14px 0 44px rgba(15,30,48,.18);
  display: flex; flex-direction: column; animation: slideIn .22s ease;
}
@keyframes slideIn { from { transform: translateX(30px); opacity: .4; } to { transform: none; opacity: 1; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.drawer-head { padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; }
.drawer-head .who { flex: 1; min-width: 0; }
.drawer-head h3 { font-size: 18px; color: var(--navy); display: flex; align-items: center; gap: 8px; }
.drawer-head .sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.drawer-close { border: 0; background: #f0f4f9; width: 32px; height: 32px; border-radius: 8px; cursor: pointer; font-size: 16px; color: #5b6c82; }
.drawer-close:hover { background: #e3eaf3; }
.drawer-body { flex: 1; overflow: auto; padding: 16px 20px 24px; background: #f7f9fc; }
.drawer-foot {
  border-top: 1px solid var(--line); padding: 12px 20px; display: flex; align-items: center; gap: 10px;
  background: #fff;
}
.drawer-foot .save-state { flex: 1; font-size: 12px; color: var(--muted); }
.drawer-stats {
  flex: 0 0 auto; font-size: 11.5px; color: #40536a; background: #f0f5fb;
  border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; white-space: nowrap;
}
.drawer-foot .save-state.ok { color: var(--green); }
.drawer-foot .save-state.err { color: var(--red); }

.form-sec { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 12px; }
.form-sec h4 { font-size: 13.5px; color: var(--navy); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.form-sec h4 .bar { width: 4px; height: 14px; border-radius: 2px; background: var(--blue); }
.ref-sec { border-left: 3px solid var(--orange); background: linear-gradient(180deg, #fffdf8, #ffffff); }
.ref-sec h4 .bar { background: var(--orange); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid .field > span { font-size: 12px; }

.score-dim { padding: 10px 0; border-bottom: 1px dashed #e8eef6; }
.score-dim:last-child { border-bottom: 0; padding-bottom: 0; }
.score-dim-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.score-dim-head b { color: var(--navy); font-size: 13.5px; }
.score-dim-head span { color: var(--muted); font-size: 11.5px; }
.score-btns { display: flex; gap: 6px; margin-top: 8px; }
.score-btn {
  flex: 1; border: 1px solid var(--line-strong); background: #fbfcfe; border-radius: 8px;
  padding: 6px 0; cursor: pointer; font-size: 12.5px; color: #5b6c82; transition: all .12s;
}
.score-btn:hover { border-color: var(--blue); color: var(--blue); }
.score-btn.on { color: #fff; border-color: transparent; font-weight: 700; }
.score-btn.on[data-v="1"] { background: #c0392b; }
.score-btn.on[data-v="2"] { background: #d98a1f; }
.score-btn.on[data-v="3"] { background: #7a8aa0; }
.score-btn.on[data-v="4"] { background: #2e75b6; }
.score-btn.on[data-v="5"] { background: #2e9e5b; }
.anchor { margin-top: 6px; font-size: 11.5px; color: #60738a; background: #f4f8fd; border-radius: 7px; padding: 6px 9px; line-height: 1.55; }
.anchor b { color: var(--navy); }

.force-block { margin-bottom: 12px; }
.force-head { display: flex; align-items: center; gap: 8px; margin: 6px 0; }
.force-head b { color: var(--navy); font-size: 13px; }
.force-def { font-size: 11.5px; color: var(--muted); margin: -2px 0 5px; line-height: 1.5; }
.force-head .pts { margin-left: auto; font-size: 12px; color: var(--muted); }
.force-head .pts b { color: var(--blue); font-size: 14px; }
.q-row { display: flex; gap: 10px; align-items: flex-start; padding: 5px 0; }
.q-no { flex: 0 0 26px; font-size: 11.5px; color: #9aa9bb; padding-top: 2px; }
.q-text { flex: 1; font-size: 12.5px; line-height: 1.55; color: #40536a; }
.q-toggle { display: flex; gap: 4px; flex: 0 0 76px; }
.q-toggle button {
  flex: 1; border: 1px solid var(--line-strong); background: #fff; border-radius: 6px;
  font-size: 11.5px; padding: 3px 0; cursor: pointer; color: var(--muted);
}
.q-toggle button.yes.on { background: var(--green); border-color: var(--green); color: #fff; }
.q-toggle button.no.on { background: #c0392b; border-color: #c0392b; color: #fff; }
.q-toggle button:hover { border-color: var(--blue); }

.req { color: var(--red); font-style: normal; font-weight: 600; margin-left: 2px; }
.field.missing input, .field.missing select, .field.missing textarea,
input.missing, select.missing, textarea.missing { border-color: #e8bdb7; background: #fff8f6; }
.score-dim.missing { border-left: 3px solid var(--orange); padding-left: 9px; background: #fffdf8; }
.req-banner { background: var(--red-soft); border: 1px solid #ecc4bd; border-radius: 9px; padding: 9px 11px; margin-bottom: 12px; color: var(--red); font-size: 12px; line-height: 1.7; }
.req-banner b { display: block; }
.req-banner span { color: #8d3a31; }
.locked-note { background: var(--blue-soft); color: #35516f; border-radius: 8px; padding: 7px 10px; font-size: 11.5px; line-height: 1.7; margin-bottom: 10px; }
.basic-actions { display: flex; justify-content: flex-end; margin-top: 8px; }
.kp-hint { background: #f7fafd; border: 1px dashed var(--line-strong); border-radius: 9px; padding: 9px 11px; font-size: 11.5px; line-height: 1.75; color: #4c6178; display: grid; gap: 3px; }
.kp-hint b { color: var(--navy); }
.q-row.optional { background: #f5f7fa; border-radius: 8px; padding: 6px 8px; }
.q-row.optional .q-text { color: var(--muted); }
.q-row.optional .q-toggle button { opacity: .68; }
.q-row.optional .q-toggle button.on { opacity: 1; }
.q-opt-tag { flex: none; font-size: 10px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 1px 6px; margin-top: 2px; }

.switch-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 4px 0; }
.switch-row .hint { font-size: 11.5px; color: var(--muted); }

/* ---------- 模态 / 提示 ---------- */
.modal-mask {
  position: fixed; inset: 0; background: rgba(15,30,48,.42); z-index: 110;
  display: grid; place-items: center; padding: 20px; animation: fade .16s ease;
}
.modal {
  background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg);
  width: min(560px, 100%); max-height: 88vh; display: flex; flex-direction: column;
  animation: pop .18s ease;
}
@keyframes pop { from { transform: scale(.97); opacity: .5; } to { transform: none; opacity: 1; } }
.modal-head { padding: 18px 20px 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.modal-head h3 { font-size: 17px; color: var(--navy); }
.modal-body { padding: 14px 20px; overflow: auto; }
.modal-foot { padding: 12px 20px 18px; display: flex; justify-content: flex-end; gap: 8px; }
.modal-close { border: 0; background: #f0f4f9; width: 30px; height: 30px; border-radius: 8px; cursor: pointer; }
.issue-list { margin: 0; padding-left: 18px; color: var(--red); font-size: 12.5px; max-height: 220px; overflow: auto; }
.issue-list.warn { color: var(--orange); }

.toast-root { position: fixed; top: 78px; right: 22px; z-index: 200; display: flex; flex-direction: column; gap: 8px; }
.toast {
  background: #1f3a5f; color: #fff; border-radius: 10px; padding: 10px 14px; font-size: 13px;
  box-shadow: var(--shadow-lg); animation: slideIn .2s ease; max-width: 360px;
}
.toast.ok { background: #257a47; }
.toast.err { background: #a93226; }
.toast.warn { background: #9a6a12; }

/* ---------- 规则页 ---------- */
.rule-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; align-items: start; }
.rule-card.span-2 { grid-column: 1 / -1; }
.anchor-dims { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 20px; }
.rule-card { min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; }
.rule-table-wrap { overflow-x: auto; }
.rule-card h3 { font-size: 15px; color: var(--navy); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.rule-card h3 .tag { margin-left: auto; font-size: 11px; color: var(--muted); font-weight: 400; }
.rule-card table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.rule-card th { background: #f5f8fc; color: #4c6178; font-size: 11.5px; padding: 7px 9px; text-align: left; border-bottom: 1px solid var(--line); }
.rule-card td { padding: 7px 9px; border-bottom: 1px solid #eef2f7; vertical-align: top; }
.rule-card tr:last-child td { border-bottom: 0; }
.rule-card .tip { font-size: 12px; color: #60738a; background: #f4f8fd; border-radius: 8px; padding: 8px 10px; margin-top: 8px; line-height: 1.6; }
.rule-card .tip.warn { color: #9a6a12; background: var(--orange-soft); }
.rule-card .tip.danger { color: var(--red); background: var(--red-soft); }
.anchor-list { display: grid; gap: 4px; }
.anchor-item { display: grid; grid-template-columns: 34px 1fr; gap: 8px; font-size: 12px; padding: 4px 0; border-bottom: 1px dashed #eef2f7; }
.anchor-item:last-child { border-bottom: 0; }
.anchor-item .lv { font-weight: 700; color: var(--navy); }
.anchor-item .lv.s5 { color: var(--green); }
.anchor-item .lv.s1 { color: var(--red); }
.pot-dim-row { display: grid; grid-template-columns: 64px 1fr; gap: 10px; padding: 8px 0; border-bottom: 1px dashed #eef2f7; }
.pot-dim-row:last-child { border-bottom: 0; }
.pot-dim-row b { color: var(--navy); font-size: 12.5px; }
.pot-dim-row ol { margin: 0; padding-left: 18px; font-size: 12px; color: #40536a; line-height: 1.6; }
.pot-def { font-size: 11.5px; color: var(--muted); margin-bottom: 4px; line-height: 1.5; }
.anchor-tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 8px; }
.anchor-tab {
  border: 1px solid var(--line); background: #f7fafd; border-radius: 999px;
  padding: 3px 11px; font-size: 11.5px; color: var(--muted); cursor: pointer;
}
.anchor-tab:hover { border-color: var(--blue); color: var(--blue); }
.anchor-tab.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.matrix-table { table-layout: fixed; }
.matrix-table th, .matrix-table td { font-size: 11px; padding: 6px 7px; line-height: 1.5; }
.matrix-table th:first-child, .matrix-table td:first-child { width: 64px; }
.rule-hero { background: linear-gradient(120deg, #17324f, #2e6ba3); color: #fff; border-radius: var(--radius); padding: 18px 20px; margin-bottom: 16px; box-shadow: var(--shadow); }
.rules-switch {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 10px 14px; margin-bottom: 14px; box-shadow: var(--shadow);
}
.rules-switch label { font-size: 12.5px; color: var(--muted); }
.rules-switch select { width: auto; min-width: 190px; }
.rules-switch-tip { flex-basis: 100%; font-size: 11.5px; color: var(--orange); background: var(--orange-soft); border-radius: 8px; padding: 7px 10px; line-height: 1.6; }
.rule-hero h2 { font-size: 17px; margin-bottom: 6px; }
.rule-hero p { color: #c9dbec; font-size: 12.5px; line-height: 1.65; }

/* ---------- 管理 ---------- */
.dept-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 12px; }
.dept-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; box-shadow: var(--shadow); }
.dept-card .top { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.dept-card .name { font-weight: 700; color: var(--navy); font-size: 14px; }
.dept-card .meta { font-size: 11.5px; color: var(--muted); }
.dept-card .stat { display: flex; gap: 14px; margin: 10px 0 8px; font-size: 12px; color: #4c6178; }
.dept-card .stat b { color: var(--navy); font-size: 15px; }
.dept-card .actions { display: flex; gap: 6px; justify-content: flex-end; }
.timeline { display: grid; gap: 8px; }
.timeline-item { display: grid; grid-template-columns: 150px 1fr auto; gap: 10px; font-size: 12.5px; padding: 7px 0; border-bottom: 1px dashed #eef2f7; }
.timeline-item:last-child { border-bottom: 0; }
.timeline-item .t { color: var(--muted); font-variant-numeric: tabular-nums; }

.empty-state { text-align: center; padding: 46px 16px; color: var(--muted); }
.empty-state h3 { color: #4c6178; font-size: 15px; margin-bottom: 6px; }

/* ---------- 操作指引 ---------- */
.guide { max-width: 1080px; margin: 0 auto; }
.guide-hero {
  background: linear-gradient(120deg, #17324f 0%, #2a5a8c 70%, #3474b3 100%);
  color: #fff; border-radius: var(--radius); padding: 24px 26px; margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.guide-kicker { font-size: 11.5px; letter-spacing: 1px; color: #a9c6e2; margin-bottom: 6px; }
.guide-hero h1 { font-size: 22px; margin-bottom: 8px; letter-spacing: .5px; }
.guide-hero p { color: #d3e3f2; font-size: 13px; line-height: 1.7; max-width: 760px; }
.guide-steps { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.guide-step {
  display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line);
  background: #fff; border-radius: 999px; padding: 6px 13px 6px 6px; cursor: pointer;
  font-size: 12.5px; color: var(--muted); box-shadow: var(--shadow);
}
.guide-step .si {
  width: 22px; height: 22px; border-radius: 50%; background: #eef2f8; color: #6b7c92;
  display: grid; place-items: center; font-size: 11.5px; font-weight: 700;
}
.guide-step:hover { border-color: var(--blue); color: var(--blue); }
.guide-step.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.guide-step.on .si { background: rgba(255,255,255,.22); color: #fff; }
.guide-body { min-height: 320px; }
.guide-page { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 24px; }
.guide-page h2 { font-size: 18px; color: var(--navy); margin-bottom: 14px; }
.guide-page h3 { font-size: 14px; color: var(--navy); margin: 14px 0 8px; }
.guide-flow { display: flex; align-items: stretch; gap: 10px; margin: 4px 0 18px; }
.guide-flow.four .gflow-card { padding: 12px 13px; }
.gflow-card {
  flex: 1; background: linear-gradient(180deg, #f7fafd, #f1f6fc);
  border: 1px solid var(--line); border-radius: 12px; padding: 14px 15px; position: relative;
}
.gflow-card .gnum {
  display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  background: var(--blue); color: #fff; font-size: 12px; font-weight: 700; margin-bottom: 8px;
}
.gflow-card h3 { font-size: 14px; margin: 0 0 5px; color: var(--navy); }
.gflow-card p { font-size: 12px; color: #5b6c82; line-height: 1.6; }
.gflow-arrow { display: grid; place-items: center; color: #b4c4d8; font-size: 18px; flex: 0 0 12px; }
.guide-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.guide-grid.three { grid-template-columns: repeat(3, 1fr); }
.gcard { background: #f9fbfe; border: 1px solid var(--line); border-radius: 12px; padding: 13px 15px; }
.gcard h3, .gcard h4 { font-size: 13.5px; color: var(--navy); margin-bottom: 6px; }
.gcard p { font-size: 12px; color: #5b6c82; line-height: 1.65; }
.gcard ol, .gcard ul { margin: 6px 0 6px 18px; padding: 0; font-size: 12.5px; color: #40536a; line-height: 1.8; }
.guide-list { margin: 0 0 8px 18px; padding: 0; font-size: 12.5px; line-height: 1.8; color: #40536a; }
.guide-table { width: 100%; border-collapse: collapse; font-size: 12.5px; margin: 6px 0 10px; }
.guide-table th { background: #f2f6fb; color: #4c6178; text-align: left; font-size: 11.5px; padding: 7px 9px; border-bottom: 1px solid var(--line); }
.guide-table td { padding: 7px 9px; border-bottom: 1px solid #eef2f7; vertical-align: top; line-height: 1.6; }
.guide-note { background: var(--blue-soft); color: #2f4a68; border-radius: 9px; padding: 9px 12px; font-size: 12.5px; line-height: 1.7; margin: 10px 0; }
.guide-note.warn { background: var(--orange-soft); color: #8a5c10; }
.guide-status {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px;
  background: #f4f8fd; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 14px 0;
}
.guide-status .gs-item { display: flex; flex-direction: column; gap: 3px; }
.guide-status .gs-item span { font-size: 11px; color: var(--muted); }
.guide-status .gs-item b { font-size: 14px; color: var(--navy); }
.guide-cta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.guide-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.guide-dots { display: flex; gap: 6px; }
.guide-dots span { width: 7px; height: 7px; border-radius: 50%; background: #d3dded; }
.guide-dots span.on { background: var(--blue); width: 18px; border-radius: 4px; }
.guide-mini-grid { width: 100%; border-collapse: separate; border-spacing: 5px; table-layout: fixed; margin: 8px 0 4px; }
.guide-mini-grid td { border: 2px solid #ccc; border-radius: 8px; padding: 8px; font-size: 11px; color: #5b6c82; vertical-align: top; height: 64px; }
.guide-mini-grid td b { display: block; color: var(--navy); font-size: 12px; margin-bottom: 3px; }
.guide-faq { margin-top: 14px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; background: #fbfcfe; }
.guide-faq summary { cursor: pointer; font-weight: 600; color: var(--navy); font-size: 13px; }
.guide-faq dl { margin: 10px 0 0; }
.guide-faq dt { font-size: 12.5px; font-weight: 600; color: #34495e; margin-top: 10px; }
.guide-faq dd { font-size: 12px; color: #5b6c82; line-height: 1.7; margin: 3px 0 0 0; }

/* ---------- 人才卡 ---------- */
.talent-card { font-size: 13px; }
.tc-head { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.tc-avatar {
  width: 46px; height: 46px; border-radius: 14px; flex: 0 0 46px;
  background: linear-gradient(160deg, #5ea2e0, #2e75b6); color: #fff;
  display: grid; place-items: center; font-size: 20px; font-weight: 700;
}
.tc-who { min-width: 0; }
.tc-who h2 { font-size: 19px; color: var(--navy); }
.tc-sub { font-size: 12px; color: var(--muted); margin-top: 3px; }
.tc-cell { margin-left: auto; border: 1.5px solid #cfd6e0; border-radius: 999px; padding: 4px 12px; font-size: 12.5px; font-weight: 700; background: #fff; white-space: nowrap; }
.tc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0; }
.tc-stats > div { background: #f7fafd; border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; }
.tc-stats span { display: block; font-size: 11px; color: var(--muted); }
.tc-stats b { font-size: 13.5px; color: var(--navy); font-weight: 700; }
.tc-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tc-section { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; background: #fff; }
.tc-section h4 { font-size: 12.5px; color: var(--navy); margin-bottom: 8px; }
.tc-radar-svg { width: 100%; max-width: 250px; display: block; margin: 0 auto; }
.tc-no-radar { text-align: center; color: var(--muted); font-size: 12px; padding: 30px 0; }
.tc-forces { margin-top: 6px; }
.tc-force { display: grid; grid-template-columns: 54px 1fr 36px; gap: 8px; align-items: center; font-size: 11.5px; color: #40536a; padding: 2px 0; }
.tc-force-bar { height: 6px; background: #edf1f7; border-radius: 4px; overflow: hidden; }
.tc-force-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), #5ea2e0); border-radius: 4px; }
.tc-force b { text-align: right; color: var(--navy); }
.tc-dims { display: grid; gap: 8px; }
.tc-dim { display: grid; grid-template-columns: 64px 1fr 20px; gap: 8px; align-items: center; font-size: 12px; color: #40536a; }
.tc-bars { display: flex; gap: 3px; }
.tc-bars i { flex: 1; height: 8px; border-radius: 3px; background: #edf1f7; }
.tc-bars i.on { background: linear-gradient(90deg, var(--blue), #5ea2e0); }
.tc-dim b { text-align: right; color: var(--navy); }
.tc-perf-total { margin-top: 8px; font-size: 12px; color: var(--muted); text-align: right; }
.tc-perf-total b { color: var(--blue); font-size: 16px; }
.tc-ref { background: #f4f8fd; border-radius: 8px; padding: 8px 10px; margin-bottom: 6px; }
.tc-ref.warn { background: var(--orange-soft); }
.tc-ref span { font-size: 11px; color: var(--muted); display: block; margin-bottom: 2px; }
.tc-ref p { font-size: 12.5px; color: #40536a; line-height: 1.7; white-space: pre-wrap; }
.tc-empty { font-size: 12px; color: var(--muted); line-height: 1.7; }
.tc-risks { display: flex; flex-wrap: wrap; gap: 5px; }
.tc-action { font-size: 12.5px; color: #40536a; line-height: 1.7; }

/* ---------- 结果应用 ---------- */
.app-tabs { display: flex; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 5px; margin-bottom: 14px; box-shadow: var(--shadow); width: fit-content; }
.app-tab { border: 0; background: transparent; padding: 7px 16px; border-radius: 8px; font-size: 13px; color: var(--muted); cursor: pointer; }
.app-tab:hover { background: #f2f6fb; color: var(--navy); }
.app-tab.on { background: var(--blue); color: #fff; font-weight: 600; }
.cal-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 16px; align-items: start; }
.cal-side { position: sticky; top: 80px; }
.cal-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.cal-summary > div { background: #f7fafd; border: 1px solid var(--line); border-radius: 8px; padding: 7px 9px; }
.cal-summary span { display: block; font-size: 10.5px; color: var(--muted); }
.cal-summary b { font-size: 13px; color: var(--navy); }
.cal-changes { display: grid; gap: 7px; max-height: 280px; overflow: auto; }
.cal-change { background: #f8fafd; border: 1px solid var(--line); border-radius: 8px; padding: 7px 9px; }
.cal-change-top { display: flex; justify-content: space-between; gap: 8px; font-size: 11.5px; color: #4c6178; }
.cal-change-top b { color: var(--navy); }
.cal-reason { width: 100%; margin-top: 5px; padding: 4px 7px; font-size: 11px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.cal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 12px; }
.cal-confirmed { margin-top: 10px; font-size: 11.5px; color: #257a47; background: var(--green-soft); border-radius: 7px; padding: 7px 9px; }
.report-page { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.report-cover { background: linear-gradient(120deg, #17324f, #2e6ba3); color: #fff; border: 0; padding: 20px 22px; }
.report-kicker { font-size: 11px; color: #a9c6e2; letter-spacing: .5px; }
.report-cover h2 { font-size: 22px; margin: 5px 0 6px; color: #fff; }
.report-meta { font-size: 12px; color: #d3e3f2; }
.report-grid { width: 100%; border-collapse: separate; border-spacing: 6px; table-layout: fixed; }
.report-grid td { border: 2px solid var(--line); border-radius: 9px; padding: 9px 10px; height: 64px; vertical-align: top; }
.report-grid td b { display: block; font-size: 12px; color: var(--navy); margin-bottom: 5px; }
.report-grid td span { font-size: 17px; font-weight: 700; color: var(--blue); }
.report-actions { display: grid; gap: 8px; }
.report-action { display: grid; grid-template-columns: 150px 1fr; gap: 10px; align-items: start; padding: 7px 0; border-bottom: 1px dashed #eef2f7; }
.report-action:last-child { border-bottom: 0; }
.report-action p { font-size: 12px; color: #4c6178; line-height: 1.6; }
@media (max-width: 1180px) { .cal-wrap { grid-template-columns: minmax(0, 1fr); } .cal-side { position: static; } }
@media print {
  .app-tabs, .report-toolbar, .cal-side, .page-actions, .toolbar, .topbar, .sidenav { display: none !important; }
  .cal-wrap { display: block; }
  .report-page { gap: 10px; }
  .report-cover { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .report-grid td, .report-action { break-inside: avoid; }
}

/* ---------- 人才发展 ---------- */
.chip.gray { background: #eef1f6; border-color: #dde3eb; color: var(--muted); }
.dev-name { border: 0; background: none; padding: 0; color: var(--navy); font-weight: 600; font-size: 13px; cursor: pointer; }
.dev-name:hover { color: var(--blue); text-decoration: underline; }
.dev-person { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; padding: 2px 0 12px; border-bottom: 1px solid var(--line); }
.dev-person-name { font-size: 18px; font-weight: 700; color: var(--navy); display: flex; align-items: center; gap: 8px; }
.dev-person-sub { font-size: 12px; color: var(--muted); margin-top: 3px; }
.dev-chips { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.dev-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 12px 0; }
.dev-summary > div { background: #f7fafd; border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; }
.dev-summary span { display: block; font-size: 10.5px; color: var(--muted); }
.dev-summary b { font-size: 13px; color: var(--navy); }
.dev-risk { display: flex; gap: 10px; align-items: flex-start; background: #fbfcfe; border: 1px dashed var(--line-strong); border-radius: 9px; padding: 8px 10px; }
.dev-section { margin-top: 16px; }
.dev-sec-title { font-size: 13px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.dev-sec-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.dev-sec-head .dev-sec-title { margin: 0; }
.dev-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.dev-three { display: grid; grid-template-columns: 170px 1fr 1fr; gap: 10px; align-items: start; }
.idp-goals { display: grid; gap: 10px; }
.idp-goal { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: #fbfcfe; }
.idp-goal-head { display: grid; grid-template-columns: 1fr 120px auto; gap: 8px; margin-bottom: 8px; align-items: center; }
.idp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px; }
.idp-grid .span2 { grid-column: 1/-1; }
.succ-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.succ-card { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--green); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; }
.succ-card.risk { border-top-color: var(--red); }
.succ-card.warn { border-top-color: var(--orange); }
.succ-note { border-radius: 7px; padding: 6px 9px; font-size: 11.5px; line-height: 1.6; }
.succ-note.red { background: var(--red-soft); color: var(--red); }
.succ-note.amber { background: var(--orange-soft); color: #9a6a12; }
.succ-note.gray { background: #eef2f7; color: var(--muted); }
.table select.status-select { width: auto; min-width: 88px; padding: 4px 8px; font-size: 12px; border-radius: 7px; }
.table tbody tr.row-overdue { background: #fff8f6; }
.table tbody tr.row-overdue:hover { background: #fff2ee; }
.track-goal { font-weight: 600; color: var(--navy); }
.lan-list { display: grid; gap: 8px; margin: 12px 0; }
.lan-item { display: flex; align-items: center; gap: 10px; background: #f7fafd; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.lan-item > div { flex: 1; min-width: 0; }
.lan-item code { display: block; font-size: 14px; color: var(--blue-dark); font-weight: 600; word-break: break-all; }
.lan-item span { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }
.mobile-tip { background: var(--orange-soft); color: #6d4d12; border-radius: 10px; padding: 10px 12px; font-size: 12.5px; line-height: 1.8; }
.mobile-tip ol { margin: 4px 0 0; padding-left: 18px; }
.mobile-tip li { margin: 2px 0; }
.succ-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.succ-role { font-size: 15px; font-weight: 700; color: var(--navy); }
.succ-incumbent { font-size: 12px; color: #4c6178; margin-top: 3px; }
.succ-meta { display: flex; gap: 12px; flex-wrap: wrap; font-size: 11.5px; color: var(--muted); border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); padding: 7px 0; }
.succ-risk { display: flex; gap: 6px; flex-wrap: wrap; }
.succ-risk span { background: var(--red-soft); color: var(--red); border-radius: 6px; padding: 3px 8px; font-size: 11px; }
.succ-cands-title { font-size: 12px; font-weight: 600; color: var(--navy); margin-bottom: 6px; display: flex; justify-content: space-between; }
.succ-cands-title span { color: var(--muted); font-weight: 400; }
.succ-cand { display: flex; gap: 8px; align-items: flex-start; padding: 7px 0; border-bottom: 1px dashed #eef2f7; }
.succ-cand:last-child { border-bottom: 0; }
.succ-avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--blue-soft); color: var(--blue-dark); display: grid; place-items: center; font-size: 11px; font-weight: 600; flex: none; }
.succ-cand-main { flex: 1; min-width: 0; }
.succ-cand-main b { font-size: 12.5px; color: var(--navy); }
.succ-cand-main span { display: block; font-size: 11px; color: var(--muted); }
.succ-cand-main em { display: block; font-size: 11px; color: #4c6178; font-style: normal; margin-top: 2px; }
.succ-empty { border: 1px dashed var(--line-strong); border-radius: 8px; padding: 12px; font-size: 12px; color: var(--muted); background: #fbfcfe; }
.succ-foot { display: flex; justify-content: flex-end; margin-top: auto; }
.succ-tip { background: var(--blue-soft); color: #35516f; border-radius: 8px; padding: 8px 10px; font-size: 12px; line-height: 1.7; margin: 12px 0; }
.succ-rows { display: grid; gap: 8px; }
.succ-row { display: grid; grid-template-columns: 1.7fr 110px 1fr auto; gap: 8px; align-items: center; }
.succ-add { display: flex; align-items: center; gap: 10px; margin-top: 10px; }

.dist-wrap { display: grid; gap: 9px; }
.dist-row { display: grid; grid-template-columns: 132px minmax(160px, 1fr) 270px; gap: 12px; align-items: center; }
.dist-label b { display: block; color: var(--navy); font-size: 12.5px; }
.dist-label span { display: block; color: var(--muted); font-size: 10.5px; }
.dist-bar { height: 12px; border-radius: 999px; overflow: hidden; display: flex; background: #eef3f9; }
.dist-bar .h { background: var(--green); }
.dist-bar .m { background: var(--blue); }
.dist-bar .l { background: var(--red); }
.dist-nums { display: flex; gap: 10px; flex-wrap: wrap; font-size: 11.5px; color: var(--muted); }
.dist-nums .over { color: var(--red); font-weight: 600; }
.dist-groups { display: flex; flex-wrap: wrap; gap: 6px; }
.dist-group { font-size: 11px; background: #f2f6fb; border: 1px solid var(--line); border-radius: 6px; padding: 3px 7px; color: #4c6178; }
.dist-group.over { border-color: #ecc4bd; background: var(--red-soft); color: var(--red); }
.dist-message { border-radius: 8px; padding: 8px 10px; font-size: 11.5px; line-height: 1.7; }
.dist-message.ok { background: var(--green-soft); color: #257a47; }
.dist-message.warn { background: var(--orange-soft); color: #7a5512; }
.dist-message ul { margin: 2px 0 2px 16px; padding: 0; }
.dist-message span { display: block; opacity: .85; }
.dist-notes { font-size: 11px; color: var(--muted); }
.dist-foot { font-size: 10.5px; color: var(--muted); }
.questionnaire-review, .import-warning { background: var(--orange-soft); border: 1px solid #efd3a2; border-radius: 10px; padding: 12px; color: #735017; font-size: 12px; line-height: 1.7; margin-bottom: 14px; }
.questionnaire-review h4 { margin-bottom: 6px; }
.questionnaire-review ol { margin: 8px 0; padding-left: 20px; }
.questionnaire-review li { margin-bottom: 5px; }
.questionnaire-review .btn { white-space: normal; }
.import-rules-confirm { margin-top: 12px; }
/* ---------- 独立单轴评价 ---------- */
.dimension-page, .dimension-layout > *, .dimension-editor, .dimension-fields { min-width: 0; }
.dimension-toolbar label { display: flex; align-items: center; gap: 8px; min-width: 0; }
.dimension-toolbar select { max-width: 100%; min-width: 0; }
.dimension-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.dimension-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 16px; align-items: start; }
.dimension-person-list { display: grid; gap: 5px; max-height: 560px; overflow: auto; margin-top: 10px; }
.dimension-person { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; border: 1px solid transparent; border-radius: 8px; padding: 10px; background: #f6f9fd; text-align: left; cursor: pointer; }
.dimension-person > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.dimension-person b, .dimension-person small { display: block; }
.dimension-person small { color: var(--muted); font-size: 11px; }
.dimension-person.selected { border-color: var(--blue); background: var(--blue-soft); }
.dimension-person-title { color: var(--navy); font-size: 18px; }
.dimension-progress { font-size: 12px; color: var(--blue-dark); padding: 9px 0; }
.dimension-fields { display: grid; gap: 14px; border: 0; padding: 0; margin: 0; }
.dimension-score-field { display: grid; grid-template-columns: minmax(0, 1fr) 100px; gap: 8px 12px; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.dimension-score-field label { font-weight: 600; color: var(--navy); }
.dimension-anchor { grid-column: 1 / -1; color: var(--muted); font-size: 12px; line-height: 1.7; }
.dimension-force { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; min-width: 0; }
.dimension-force legend { color: var(--navy); font-weight: 600; padding: 0 5px; }
.dimension-force .q-text { min-width: 0; overflow-wrap: anywhere; }
.dimension-force .q-row { padding: 9px 0; }
.dimension-force .q-toggle button { min-height: 36px; }
.dimension-check { align-items: flex-start; line-height: 1.7; }
.dimension-check input { flex: 0 0 15px; margin-top: 5px; }
.dimension-actions, .dimension-save-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 12px 0; }
.dimension-save-state { color: var(--muted); font-size: 12px; flex: 1; min-width: 0; }
.dimension-message { background: var(--orange-soft); color: #765016; border: 1px solid #efd3a2; border-radius: 9px; padding: 10px 12px; margin-bottom: 14px; font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
.dimension-message.error { background: var(--red-soft); color: var(--red); border-color: #ecc4bd; }
.dimension-results { max-width: 100%; }
.dimension-results td { min-width: 90px; }
.dimension-submitted { font-size: 12px; color: var(--green); line-height: 1.7; margin-bottom: 12px; }
.dimension-distribution h3 { color: var(--navy); font-size: 14px; margin-bottom: 8px; }
.dimension-distribution p, .dimension-removed p { font-size: 12px; line-height: 1.8; }
.dimension-preview { margin-bottom: 16px; min-width: 0; }
.dimension-preview h2 { font-size: 16px; color: var(--navy); margin-bottom: 7px; }
.dimension-preview-group { margin-top: 14px; min-width: 0; }
.dimension-preview-group h3 { font-size: 13px; color: var(--navy); margin-bottom: 8px; }
.dimension-band-board { display: grid; gap: 9px; min-width: 0; }
.dimension-band-board.performance { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dimension-band-board.potential { grid-template-columns: minmax(0, 1fr); }
.dimension-band { border: 1px solid var(--line); border-radius: 9px; padding: 10px; min-width: 0; background: #f7f9fc; }
.dimension-band.high { border-color: #9bc3e6; background: #edf5fd; }
.dimension-band.mid { border-color: #bdd6c3; background: #f2f8f3; }
.dimension-band.low { border-color: #e4c8ac; background: #fcf6ed; }
.dimension-band h4 { font-size: 13px; line-height: 1.6; color: var(--navy); }
.dimension-band p { overflow-wrap: anywhere; line-height: 1.6; }
.dimension-band-people { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 9px; }
.dimension-preview-person { border: 1px solid var(--line); background: white; padding: 7px 9px; border-radius: 7px; min-height: 36px; max-width: 100%; overflow-wrap: anywhere; cursor: pointer; color: var(--blue-dark); font: inherit; font-size: 12px; }
.dimension-preview-person:hover { border-color: var(--blue); }
.dimension-preview-person:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.dimension-preview-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; font-size: 12px; margin-top: 12px; line-height: 1.7; }
.dimension-filter { margin-top: 10px; font-size: 12px; }
.dimension-editor { scroll-margin-top: 150px; }
.dimension-legacy { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; min-width: 0; }
.dimension-legacy summary { color: var(--navy); font-size: 13px; cursor: pointer; line-height: 1.7; }
.dimension-legacy p { margin: 8px 0; line-height: 1.7; }
.dimension-legacy td { min-width: 110px; max-width: 360px; white-space: normal; overflow-wrap: anywhere; }
.dimension-legacy-different { background: var(--orange-soft); }
.dimension-legacy .btn { margin-top: 10px; white-space: normal; }
.dimension-questionnaire-review h3 { font-size: 14px; }
/* ---------- 响应式 ---------- */
@media (max-width: 1180px) {
  .dist-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .kpi-row { grid-template-columns: repeat(3, 1fr); }
  .rule-grid { grid-template-columns: 1fr; }
  .anchor-dims { grid-template-columns: 1fr; }
  .succ-grid { grid-template-columns: 1fr; }
  .dev-summary { grid-template-columns: repeat(2, 1fr); }
  .dev-three { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .dimension-layout { grid-template-columns: minmax(0, 1fr); }
  .dimension-person-list { max-height: 210px; }
  .dimension-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topbar { height: auto; padding: 10px 14px; flex-wrap: wrap; gap: 10px; }
  .brand { min-width: 0; }
  .topbar-mid { order: 3; width: 100%; }
  .cycle-pick { width: 100%; }
  .cycle-pick select { flex: 1; }
  .layout { flex-direction: column; }
  .sidenav {
    position: static; width: 100%; height: auto; flex: none;
    flex-direction: row; overflow-x: auto; padding: 8px 10px; border-right: 0; border-bottom: 1px solid var(--line);
  }
  .nav-group { display: none; }
  .nav-item { width: auto; white-space: nowrap; }
  .nav-item.on::before { display: none; }
  .main { width: 100%; padding: 14px 12px 50px; }
  .app-tabs { max-width: 100%; overflow-x: auto; }
  .login-card { grid-template-columns: 1fr; min-height: 0; }
  .login-brand { padding: 30px 28px; }
  .login-points { display: none; }
  .login-form { padding: 28px; }
  .kpi-row { grid-template-columns: repeat(2, 1fr); }
  .ninebox { grid-template-columns: 34px repeat(3, minmax(0, 1fr)); }
  .nb-cell { min-width: 0; padding: 8px 6px; }
  .nb-top { flex-wrap: wrap; gap: 4px; }
  .nb-person { max-width: 100%; overflow-wrap: anywhere; }
  .form-grid { grid-template-columns: 1fr; }
  .drawer { width: 100vw; }
  .toolbar input[type=text] { width: 100%; }
  .guide { max-width: none; }
  .guide-hero { padding: 18px; }
  .guide-hero h1 { font-size: 19px; }
  .guide-steps { flex-wrap: wrap; overflow: visible; padding-bottom: 4px; }
  .guide-step { flex: 0 0 auto; }
  .guide-page { padding: 16px; }
  .guide-flow { flex-direction: column; }
  .gflow-arrow { display: none; }
  .guide-grid, .guide-grid.three { grid-template-columns: 1fr; }
  .guide-status { grid-template-columns: repeat(2, 1fr); }
  .guide-cta .btn { flex: 1 1 auto; }
  .guide-foot .btn { flex: 1; }
  .guide-mini-grid td { height: auto; }
  .tc-two { grid-template-columns: 1fr; }
  .tc-stats { grid-template-columns: repeat(2, 1fr); }
  .tc-head { flex-wrap: wrap; }
  .tc-cell { margin-left: 0; }
  .dev-two { grid-template-columns: 1fr; }
  .idp-grid { grid-template-columns: 1fr; }
  .idp-goal-head { grid-template-columns: 1fr; }
  .succ-row { grid-template-columns: 1fr; }
  .dev-person { flex-direction: column; }
  .report-action { grid-template-columns: 1fr; }
  .cal-actions { flex-wrap: wrap; }
}
@media (max-width: 600px) {
  .drawer-foot { flex-wrap: wrap; }
  .drawer-foot .drawer-stats { flex: 1 1 100%; margin-right: 0; }
  .drawer-foot .save-state { flex: 1; min-width: 0; }
  .ninebox { min-width: 480px; }
  .ninebox-scroll-hint { display: block; color: var(--muted); font-size: 12px; margin: 0 0 8px; }
}
@media print {
  .topbar, .sidenav, .toolbar, .page-actions, .drawer, .drawer-mask, .toast-root { display: none !important; }
  .layout { display: block; }
  .main { padding: 0; }
  .card, .ninebox-wrap { box-shadow: none; border-color: #ccc; break-inside: avoid; }
  .ninebox-scroll { overflow: visible; }
  .ninebox-scroll-hint { display: none; }
  .ninebox { min-width: 0; }
  body { background: #fff; }
}
