* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Microsoft YaHei", Arial, sans-serif;
  color: #18202a;
  background: #f6f7f9;
}
button, select, input, textarea { font: inherit; }
.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.login-panel {
  width: min(920px, 100%);
  background: #fff;
  border: 1px solid #e5e8ef;
  border-radius: 8px;
  padding: 24px;
}
.login-panel h1 {
  margin: 0 0 8px;
  font-size: 24px;
}
.login-subtitle {
  margin: 0 0 14px;
  font-size: 18px;
  color: #344054;
}
.login-channels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 16px 0;
}
.login-channel {
  border: 1px solid #e5e8ef;
  border-radius: 8px;
  padding: 14px;
  background: #fbfcfe;
}
.login-channel h2 {
  margin: 0 0 8px;
  font-size: 17px;
}
.login-channel label {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}
.login-channel select,
.form select {
  width: 100%;
  padding: 9px;
  border: 1px solid #d6dbe1;
  border-radius: 6px;
  background: #fff;
}
.login-brand {
  color: #202a36;
  margin-bottom: 16px;
}
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 240px 1fr; }
.sidebar { background: #202a36; color: #fff; padding: 20px 16px; }
.brand { font-size: 20px; font-weight: 700; margin-bottom: 24px; }
.login-card {
  display: grid;
  gap: 6px;
  margin-bottom: 10px;
  padding: 10px;
  border: 1px solid #465568;
  border-radius: 8px;
  background: #273443;
}
.login-card span {
  color: #b8c4d2;
  font-size: 12px;
}
.login-card a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.role-select { width: 100%; padding: 8px; border-radius: 6px; border: 1px solid #d6dbe1; }
.nav { display: grid; gap: 8px; margin-top: 18px; }
.nav button { border: 0; border-radius: 6px; padding: 10px; text-align: left; color: #dfe6ef; background: transparent; cursor: pointer; }
.nav button.active { background: #3a4859; color: #fff; }
.main { padding: 22px; min-width: 0; }
.topbar { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 18px; }
.title h1 { margin: 0 0 4px; font-size: 24px; }
.title p { margin: 0; color: #667085; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(280px, 1.25fr) repeat(2, minmax(240px, 1fr)); gap: 16px; align-items: stretch; }
.panel { background: #fff; border: 1px solid #e5e8ef; border-radius: 8px; padding: 16px; }
.panel h2 { margin: 0 0 12px; font-size: 17px; }
.section-space { margin-top: 14px; }
.metric { font-size: 28px; font-weight: 700; }
.muted { color: #667085; }
.workbench-hero {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  padding: 18px 20px;
}
.workbench-primary { min-height: 240px; }
.hero-status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  max-width: 360px;
}
.todo-list,
.notice-line {
  display: grid;
  gap: 8px;
}
.todo-item {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 8px 0;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.notice-line {
  margin: 8px 0;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.timeline { display: grid; grid-template-columns: repeat(6, minmax(110px, 1fr)); gap: 10px; }
.node { border: 1px solid #d9dee8; border-radius: 8px; padding: 12px; background: #fff; min-height: 96px; }
.node.done { border-color: #2f9e44; }
.node.active { border-color: #1c7ed6; background: #eef6ff; }
.node.incomplete { border-color: #e03131; background: #fff5f5; }
.performance-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid #e5e8ef;
  border-radius: 8px;
}
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 10px; border-bottom: 1px solid #edf0f5; text-align: left; vertical-align: top; }
.selected-row { background: #eef6ff; }
.performance-table { min-width: 1180px; }
.performance-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f2f5f8;
  color: #344054;
}
.performance-table .growth-row { background: #f7fbff; }
.performance-table .custom-row { background: #fbfcff; }
.performance-table .summary-row { background: #f6fff8; font-weight: 600; }
.member-summary-row { background: #f6fff8; font-weight: 600; }
.performance-table .summary-merged { color: #667085; line-height: 1.5; }
.summary-merged { color: #667085; line-height: 1.5; }
.row-type {
  display: inline-flex;
  align-items: center;
  min-width: 74px;
  padding: 4px 8px;
  border-radius: 6px;
  background: #eef1f5;
  color: #344054;
  font-size: 12px;
}
.badge { display: inline-flex; border-radius: 999px; padding: 3px 8px; background: #eef1f5; font-size: 12px; }
.badge.good { background: #e7f5ec; color: #157347; }
.badge.warn { background: #fff4db; color: #8a5a00; }
.badge.danger { background: #ffe3e3; color: #c92a2a; }
.status-chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 6px;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 700;
}
.status-chip.good { background: #e7f5ec; color: #157347; }
.status-chip.warn { background: #fff4db; color: #8a5a00; }
.status-chip.danger { background: #ffe3e3; color: #c92a2a; }
.status-chip.active { background: #eef6ff; color: #1864ab; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.button { border: 0; border-radius: 6px; padding: 9px 12px; background: #1c7ed6; color: #fff; cursor: pointer; }
.button.secondary { background: #e9edf3; color: #202a36; }
.button:disabled {
  background: #c8ced8;
  color: #667085;
  cursor: not-allowed;
}
.tabs-row, .toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin: 0 0 14px;
}
.toolbar { justify-content: space-between; }
.member-detail {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #edf0f5;
}
.attention-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0;
}
.attention-item {
  border-radius: 8px;
  padding: 10px 12px;
  border: 1px solid #e5e8ef;
}
.attention-item span {
  display: block;
  margin-bottom: 4px;
  color: #667085;
  font-size: 12px;
}
.attention-item strong {
  display: block;
  color: #18202a;
  font-size: 18px;
  overflow-wrap: anywhere;
}
.attention-item.blue { background: #eef6ff; border-color: #d0ebff; }
.attention-item.slate { background: #f2f5f8; border-color: #d9dee8; }
.attention-item.green { background: #e7f5ec; border-color: #c3ead1; }
.attention-item.red { background: #ffe3e3; border-color: #ffc9c9; }
.callout {
  margin: 10px 0;
  border-radius: 8px;
  padding: 10px 12px;
  line-height: 1.5;
  font-weight: 600;
}
.callout.success {
  background: #e7f5ec;
  color: #157347;
  border: 1px solid #c3ead1;
}
.callout.danger {
  background: #ffe3e3;
  color: #c92a2a;
  border: 1px solid #ffc9c9;
}
.member-management-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 10px;
  border: 1px solid #edf0f5;
  border-radius: 8px;
  background: #fbfcfe;
}
.member-management-bar strong {
  margin-right: auto;
}
.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 12px 0;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(24, 32, 42, 0.38);
}
.modal {
  width: min(520px, 100%);
  border: 1px solid #e5e8ef;
  border-radius: 8px;
  background: #fff;
  padding: 18px;
  box-shadow: 0 18px 48px rgba(16, 24, 40, 0.18);
}
.modal h2 {
  margin: 0 0 14px;
  font-size: 18px;
}
.evidence-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
  line-height: 1.5;
}
.evidence-hint {
  max-width: 220px;
  margin: 8px 0 0;
  color: #c92a2a;
}
.grade-pie {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0 12px;
}
.pie-slice {
  min-height: 54px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #18202a;
  font-weight: 700;
}
.grade-A { background: #d3f9d8; }
.grade-B { background: #d0ebff; }
.grade-C { background: #fff3bf; }
.grade-D { background: #ffe3e3; }
.settings-panel {
  max-width: 760px;
}
.compact-form {
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  align-items: end;
}
.compact-form label {
  display: grid;
  gap: 6px;
}
.compact-table th,
.compact-table td {
  font-size: 13px;
}
.member-detail h3 { margin: 0 0 10px; font-size: 15px; }
.compact-timeline { grid-template-columns: repeat(3, minmax(130px, 1fr)); }
.distribution-bars { display: grid; gap: 10px; }
.bar-row {
  display: grid;
  grid-template-columns: 32px minmax(120px, 1fr) 56px;
  gap: 10px;
  align-items: center;
}
.bar-track {
  height: 12px;
  border-radius: 999px;
  background: #edf0f5;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  border-radius: 999px;
  background: #1c7ed6;
}
.form { display: grid; gap: 10px; }
.form textarea, .form input { width: 100%; padding: 9px; border: 1px solid #d6dbe1; border-radius: 6px; }
.table-input,
.table-textarea {
  width: 100%;
  min-width: 120px;
  border: 1px solid #d6dbe1;
  border-radius: 6px;
  padding: 7px 8px;
  background: #fff;
}
.table-textarea {
  min-width: 220px;
  resize: vertical;
}
.score-input { min-width: 84px; }
.progress-list {
  margin: 0;
  padding-left: 20px;
}
.progress-list li {
  margin: 8px 0;
  line-height: 1.55;
}
.permission-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
@media (max-width: 900px) {
  .app-shell { grid-template-columns: 1fr; }
  .grid, .dashboard-grid, .timeline { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .main { padding: 14px; }
  .topbar { align-items: flex-start; flex-direction: column; }
  .workbench-hero { flex-direction: column; }
  .hero-status { justify-content: flex-start; max-width: none; }
  .toolbar { align-items: stretch; }
  .toolbar > * { width: 100%; }
  .table { min-width: 680px; }
  .panel { overflow-x: auto; }
  .login-channels,
  .compact-form { grid-template-columns: 1fr; }
  .attention-strip { grid-template-columns: 1fr; }
  .member-management-bar { justify-content: flex-start; }
  .member-management-bar strong { width: 100%; }
}
