.performance-shell { min-height: 100vh; padding: 16px; background: #f5f7fa; }
.performance-topbar { margin-bottom: 12px; }
.performance-page { min-height: calc(100vh - 108px); overflow: hidden; border: 1px solid #dde5ef; border-radius: 15px; background: #f8fafc; box-shadow: 0 12px 34px rgba(29,45,78,.06); }
.performance-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 30px 32px 26px; color: #fff; background: linear-gradient(125deg, #243252 0%, #34466f 68%, #4b5f92 100%); }
.performance-kicker { margin: 0 0 8px; color: #9bb4ff; font: 14px "DM Mono", monospace; letter-spacing: .14em; }
.performance-hero h1 { margin: 0; font-size: 29px; letter-spacing: -.05em; }
.performance-hero-copy { max-width: 650px; margin: 9px 0 0; color: #c3cde1; font-size: 14px; line-height: 1.75; }
.performance-hero-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.performance-month { display: grid; gap: 5px; color: #b9c6dc; font-size: 14px; }
.performance-month input { padding: 8px 10px; color: #253351; border: 0; border-radius: 7px; background: #fff; font: 14px "DM Mono", monospace; }
.performance-button { padding: 8px 11px; color: #dfe8ff; border: 1px solid rgba(255,255,255,.26); border-radius: 7px; background: rgba(255,255,255,.08); cursor: pointer; font-size: 14px; }
.performance-button:hover { color: #fff; border-color: #9fb6ff; background: rgba(255,255,255,.15); }
.performance-button.primary { color: #273759; border-color: #ffd29f; background: #ffd29f; font-weight: 700; }
.performance-overview { display: grid; grid-template-columns: minmax(230px, 1.45fr) repeat(4, minmax(120px, .7fr)); gap: 1px; background: #dfe6ef; border-bottom: 1px solid #dfe6ef; }
.performance-stat { min-height: 105px; padding: 20px; background: #fff; }
.performance-stat span { display: block; color: #8591a4; font-size: 14px; }
.performance-stat b { display: block; margin: 7px 0 3px; color: #273651; font: 500 24px "DM Mono", monospace; }
.performance-stat small { color: #a0a9b8; font-size: 14px; }
.performance-stat.is-highlight b { color: #d37a34; }
.performance-body { display: grid; gap: 14px; padding: 20px 24px 34px; }
.performance-section { overflow: hidden; border: 1px solid #dfe6ef; border-radius: 12px; background: #fff; }
.performance-section-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 16px; border-bottom: 1px solid #e7ecf2; }
.performance-section-head h2 { margin: 3px 0 0; color: #263550; font-size: 14px; }
.performance-section-head p { margin: 0; color: #8793a6; font-size: 14px; }
.performance-section-head .performance-section-tag { padding: 4px 7px; color: #a26520; border-radius: 5px; background: #fff1dd; font-size: 14px; }
.performance-list { display: grid; gap: 8px; padding: 12px; }
.performance-card { overflow: hidden; border: 1px solid #e2e8f0; border-radius: 10px; background: #fbfcfe; }
.performance-card > summary { display: flex; align-items: center; gap: 11px; padding: 12px 14px; list-style: none; cursor: pointer; }
.performance-card > summary::-webkit-details-marker { display: none; }
.performance-card > summary:hover { background: #f5f8fd; }
.performance-avatar { width: 31px; height: 31px; display: grid; flex: 0 0 auto; place-items: center; color: #fff; border-radius: 9px; background: #718ac7; font-size: 14px; font-weight: 700; }
.performance-identity { min-width: 150px; flex: 1; }
.performance-name-line { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.performance-name-line strong { color: #2d3b57; font-size: 14px; }
.performance-role { display: block; margin-top: 3px; overflow: hidden; color: #929dad; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.performance-group { padding: 3px 6px; color: #6076b5; border-radius: 5px; background: #edf2ff; font-size: 14px; }
.performance-score { display: flex; align-items: center; gap: 7px; min-width: 120px; }
.performance-stars { color: #e9a04b; font-size: 14px; letter-spacing: 1px; white-space: nowrap; }
.performance-score-number { color: #34415d; font: 600 14px "DM Mono", monospace; }
.performance-grade { min-width: 58px; padding: 4px 6px; color: #66748a; border-radius: 5px; background: #edf1f6; font-size: 14px; text-align: center; }
.performance-grade.a-plus { color: #a45712; background: #fff0d9; }
.performance-grade.a { color: #47705a; background: #eaf7ef; }
.performance-grade.a-minus { color: #64718a; background: #edf1f6; }
.performance-summary { max-width: 230px; overflow: hidden; color: #7d899b; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.performance-chevron { color: #9aa5b5; font-size: 16px; transition: transform .16s ease; }
.performance-card[open] .performance-chevron { transform: rotate(90deg); }
.performance-detail { display: grid; grid-template-columns: minmax(250px, 1fr) minmax(200px, .8fr); gap: 16px; padding: 14px 16px 16px 56px; border-top: 1px solid #e8edf3; background: #fff; }
.performance-dimensions { display: grid; gap: 9px; }
.performance-dimension { display: grid; grid-template-columns: 80px minmax(80px, 1fr) 34px; align-items: center; gap: 8px; color: #7b879a; font-size: 14px; }
.performance-meter { height: 5px; overflow: hidden; border-radius: 5px; background: #edf1f6; }
.performance-meter i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #8fa9f1, #477cff); }
.performance-dimension b { color: #53627c; font: 14px "DM Mono", monospace; text-align: right; }
.performance-evidence { display: grid; gap: 8px; }
.performance-evidence h3 { margin: 0; color: #7c899c; font-size: 14px; font-weight: 700; }
.performance-evidence p { min-height: 34px; margin: 0; color: #627087; font-size: 14px; line-height: 1.65; white-space: pre-wrap; }
.performance-links { display: flex; gap: 5px; flex-wrap: wrap; }
.performance-links a { padding: 4px 6px; color: #4771d2; border: 1px solid #d8e2f8; border-radius: 5px; background: #f7f9ff; font-size: 14px; text-decoration: none; }
.performance-edit { width: max-content; padding: 5px 8px; color: #5a72b5; border: 1px solid #d8e2f7; border-radius: 6px; background: white; cursor: pointer; font-size: 14px; }
.performance-edit:hover { color: #fff; border-color: #477cff; background: #477cff; }
.performance-lead { border-color: #ebd8bd; background: #fffcf7; }
.performance-lead > summary { background: #fffaf1; }
.performance-lead .performance-avatar { background: #c2844a; }
.performance-note { padding: 12px 16px; color: #8b96a7; border-top: 1px solid #edf1f5; background: #fafbfd; font-size: 14px; line-height: 1.7; }
.performance-empty { padding: 32px; color: #8b96a7; text-align: center; font-size: 14px; }
.performance-modal { width: min(680px, calc(100vw - 32px)); }
.performance-form { display: grid; gap: 12px; }
.performance-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.performance-form label { display: grid; gap: 5px; color: #657289; font-size: 14px; font-weight: 600; }
.performance-form input, .performance-form textarea { width: 100%; padding: 8px 9px; color: #293750; border: 1px solid #d8e1eb; border-radius: 7px; outline: 0; background: #fff; font: 14px "Noto Sans SC", sans-serif; }
.performance-form textarea { min-height: 82px; resize: vertical; line-height: 1.6; }
.performance-form input:focus, .performance-form textarea:focus { border-color: #477cff; box-shadow: 0 0 0 3px rgba(71,124,255,.1); }
.performance-form .is-wide { grid-column: 1 / -1; }
.performance-form-hint { margin: -3px 0 0; color: #939dad; font-size: 14px; line-height: 1.6; }
body.workspace-performance-view { background: #f5f7fa; }
@media (max-width: 900px) {
  .performance-overview { grid-template-columns: repeat(2, 1fr); }
  .performance-stat:first-child { grid-column: 1 / -1; }
  .performance-detail { grid-template-columns: 1fr; padding-left: 56px; }
  .performance-summary { display: none; }
}
@media (max-width: 650px) {
  .performance-shell { padding: 10px; }
  .performance-hero { align-items: flex-start; flex-direction: column; padding: 25px 20px 21px; }
  .performance-hero-actions { width: 100%; }
  .performance-month { flex: 1; }
  .performance-month input { width: 100%; }
  .performance-body { padding: 14px 12px 28px; }
  .performance-card > summary { align-items: flex-start; flex-wrap: wrap; }
  .performance-identity { min-width: calc(100% - 45px); }
  .performance-score { min-width: 0; margin-left: 42px; }
  .performance-grade { margin-left: auto; }
  .performance-detail { padding: 12px; }
  .performance-form-grid { grid-template-columns: 1fr; }
  .performance-form .is-wide { grid-column: auto; }
}

/* 旧版绩效结构只做可读性优化，不改变评分字段或数据逻辑。 */
.performance-hero { padding: 36px 38px 31px; }
.performance-hero h1 { font-size: 32px; }
.performance-hero-copy { font-size: 15px; }
.performance-month, .performance-month input, .performance-button { font-size: 15px; }
.performance-month input { min-height: 42px; padding: 9px 11px; }
.performance-button { min-height: 42px; padding: 9px 13px; }
.performance-stat { min-height: 116px; padding: 23px; }
.performance-stat span, .performance-stat small { font-size: 15px; }
.performance-body { gap: 17px; padding: 24px 30px 40px; }
.performance-section-head { padding: 17px 20px; }
.performance-section-head h2 { font-size: 16px; }
.performance-section-head p, .performance-section-head .performance-section-tag { font-size: 15px; }
.performance-list { gap: 10px; padding: 15px; }
.performance-card > summary { min-height: 64px; padding: 15px 17px; }
.performance-avatar { width: 36px; height: 36px; font-size: 15px; }
.performance-name-line strong, .performance-role, .performance-group, .performance-stars, .performance-score-number, .performance-grade, .performance-summary { font-size: 15px; }
.performance-detail { gap: 20px; padding: 18px 20px 20px 65px; }
.performance-dimension, .performance-evidence h3, .performance-evidence p, .performance-links a, .performance-edit { font-size: 15px; }
.performance-dimension { grid-template-columns: 92px minmax(90px, 1fr) 38px; }
.performance-note, .performance-empty { font-size: 15px; }
.performance-form label, .performance-form input, .performance-form textarea, .performance-form-hint { font-size: 15px; }
.performance-form input, .performance-form textarea { min-height: 42px; padding: 10px 11px; }
@media (max-width: 650px) {
  .performance-hero { padding: 28px 22px 24px; }
  .performance-body { padding: 17px 15px 32px; }
  .performance-card > summary { padding: 14px 15px; }
  .performance-detail { padding: 15px; }
}
