/* B1 · 绩效三件套，V4.1 H3/L1/L2/S3 规范层 */
#page-performance-review,#page-performance{--perf-green:#16a34a;--perf-yellow:#d97706;--perf-red:#dc2626;--perf-violet:#6b5ce7}
.performance-workspace{display:grid;gap:16px;margin-top:16px}
.performance-section{background:var(--bg-surface);border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow-sm);overflow:hidden}
.performance-section-head{display:flex;align-items:center;gap:9px;margin:0 18px;padding:16px 0 12px;border-bottom:1px solid var(--line75)}
.performance-section-head:before{content:"";width:4px;height:16px;border-radius:3px;background:var(--primary);flex:none}
.performance-section-head h2{font-size:15px;line-height:1.2}
.performance-section-head p{font-size:11px;color:var(--txt-3)}
.performance-section-actions{display:flex;gap:8px;align-items:center;margin-left:auto;flex-wrap:wrap}
.performance-stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;padding:16px 18px 18px}
.performance-stat-card{display:flex;flex-direction:column;justify-content:space-between;min-height:98px;padding:16px;border-radius:15px;background:var(--bg-soft);color:var(--txt-3);font-size:12px}
.performance-stat-card b{color:var(--txt-1);font-size:26px;line-height:1;font-variant-numeric:tabular-nums}
#page-performance-review .performance-section-head{min-height:67px;margin:0;padding:16px 18px;border-bottom:1px solid var(--line);gap:12px}
#page-performance-review .performance-section-head:before{height:20px;background:var(--seed-primary)}
#page-performance-review .performance-section-head h2{font-size:17px;font-weight:750;line-height:1.3}
#page-performance-review .performance-section-head p{display:none}
#page-performance-review .performance-stats-grid{padding:16px 18px 20px}
.performance-review-stat{--performance-stat-color:var(--txt-2);gap:8px;min-height:124px;padding:14px 16px;border-radius:16px}
.performance-review-stat-1{--performance-stat-color:var(--yellow)}
.performance-review-stat-2{--performance-stat-color:var(--violet)}
.performance-review-stat-3{--performance-stat-color:var(--green)}
html[data-theme="light"] .performance-review-stat-0{background:#F7F7FA}
html[data-theme="light"] .performance-review-stat-1{background:#FFF7EC;--performance-stat-color:#A66A17}
html[data-theme="light"] .performance-review-stat-2{background:#F1F0FE}
html[data-theme="light"] .performance-review-stat-3{background:#EFF8F4}
.performance-stat-label{display:flex;align-items:center;gap:8px;color:var(--txt-2);font-size:12px;font-weight:600}
.performance-stat-label i{display:grid;place-items:center;flex:none;width:28px;height:28px;border-radius:9px;background:color-mix(in srgb,var(--performance-stat-color) 12%,var(--bg-surface));color:var(--performance-stat-color)}
.performance-stat-label svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.performance-review-stat strong{margin-top:auto;color:var(--performance-stat-color);font-size:25px;line-height:1.15;font-weight:800;font-variant-numeric:tabular-nums}
.performance-review-stat small{margin-left:5px;color:var(--txt-3);font-size:11px;font-weight:400}
.performance-stat-period{margin-left:auto;color:var(--txt-3);font-size:11px;white-space:nowrap}
.performance-stat-hint{color:var(--txt-3);font-size:10px;line-height:1.25;white-space:nowrap}
#page-performance-review .performance-month-field{display:flex;align-items:center;gap:8px;color:var(--txt-2);font-size:12px;white-space:nowrap}
#page-performance-review .performance-month-field .input{height:34px;min-height:34px;width:160px;padding:6px 10px;font-size:12px}
#page-performance-review .performance-toolbar{gap:8px;padding:16px 18px}
#page-performance-review .performance-review-toolbar{align-items:flex-end;justify-content:space-between;gap:12px}
#page-performance-review .performance-scope-tabs{flex:none}
#page-performance-review .performance-filter-fields{display:flex;align-items:flex-end;gap:8px;flex-wrap:wrap;margin-left:auto}
#page-performance-review .performance-toolbar .performance-field{display:block;min-width:145px}
#page-performance-review .performance-filter-fields .performance-field:last-child{min-width:180px}
#page-performance-review .performance-toolbar .input{height:34px;min-height:34px;width:100%;padding:6px 10px;font-size:12px}
#page-performance-review .performance-template-card{background:var(--bg-soft)}
#page-performance .performance-section-head{min-height:67px;margin:0;padding:16px 18px;border-bottom:1px solid var(--line)}
#page-performance .performance-section-head:before{height:20px;background:var(--seed-primary)}
#page-performance .performance-section-head h2{font-size:17px;font-weight:750}
#page-performance .performance-section-head p{margin-top:4px}
#page-performance .performance-month-field{display:flex;align-items:center;gap:8px;white-space:nowrap}
#page-performance .performance-month-field .input{width:160px;min-height:34px;padding:6px 10px}
.performance-assessment-stats-grid{gap:10px;padding:18px 18px 14px}
.performance-assessment-stat{--assessment-accent:var(--seed-primary);min-height:130px;gap:8px;padding:15px 16px;border:1px solid color-mix(in srgb,var(--assessment-accent) 15%,var(--line));background:color-mix(in srgb,var(--assessment-accent) 6%,var(--bg-surface))}
.performance-assessment-stat-1{--assessment-accent:var(--yellow)}
.performance-assessment-stat-2{--assessment-accent:var(--violet)}
.performance-assessment-stat-3{--assessment-accent:var(--green)}
.performance-assessment-stat-label{display:flex;align-items:center;gap:7px;min-width:0;color:var(--txt-2);font-size:12px;font-weight:650}
.performance-assessment-stat-label i{width:7px;height:7px;flex:none;border-radius:50%;background:var(--assessment-accent)}
.performance-assessment-stat strong{margin-top:auto;font-size:30px;line-height:1;color:var(--assessment-accent);font-variant-numeric:tabular-nums;font-weight:750}
.performance-assessment-stat small{margin-left:5px;font-size:11px;font-weight:500;color:var(--txt-3)}
.performance-assessment-stat-hint{color:var(--txt-3);font-size:10px;line-height:1.3}
.performance-assessment-overview-foot{display:flex;justify-content:flex-end;gap:22px;margin:0 18px;padding:12px 0 16px;border-top:1px solid var(--line75);color:var(--txt-3);font-size:11px}
.performance-assessment-overview-foot strong{margin:0 3px;color:var(--txt-1);font-variant-numeric:tabular-nums}
@media(max-width:1100px){.performance-assessment-stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.performance-assessment-overview-foot{justify-content:flex-start;flex-wrap:wrap;gap:6px 18px}}
.performance-assessment-toolbar{gap:10px;padding:16px 18px}
.performance-assessment-toolbar .performance-field{flex:1 1 190px;max-width:260px}
.performance-assessment-toolbar .input{width:100%;min-height:38px}
.performance-assessment-table{width:100%;min-width:1720px;border-collapse:collapse;text-align:left}
.performance-assessment-table th,.performance-assessment-table td{padding:15px 12px;border-bottom:1px solid var(--line);font-size:12px;vertical-align:middle;white-space:nowrap}
.performance-assessment-table th{background:var(--bg-soft);color:var(--txt-3);font-weight:600}
.performance-assessment-table th:first-child,.performance-assessment-table td:first-child{padding-left:18px}
.performance-assessment-table tbody tr:last-child td{border-bottom:0}
.performance-assessment-table tbody tr:hover{background:color-mix(in srgb,var(--bg-primary-soft) 45%,var(--bg-surface))}
.performance-assessment-table .performance-assessment-number{font-weight:750;font-variant-numeric:tabular-nums;color:var(--txt-1)}
.performance-assessment-table .performance-assessment-empty{text-align:center;color:var(--txt-3);padding:36px 18px}
.performance-assessment-progress{display:flex;align-items:flex-start;list-style:none;margin:0;padding:0;min-width:165px;color:var(--txt-3)}
.performance-assessment-progress li{position:relative;display:flex;flex:1;align-items:center;flex-direction:column;gap:5px;font-size:11px;line-height:1.2;white-space:nowrap}
.performance-assessment-progress li:not(:last-child):after{position:absolute;content:"";left:calc(50% + 8px);top:6px;width:calc(100% - 16px);height:2px;background:var(--line)}
.performance-assessment-progress li.done:not(:last-child):after{background:var(--seed-primary)}
.performance-assessment-dot{display:block;width:12px;height:12px;border:2px solid var(--line);border-radius:50%;background:var(--bg-surface)}
.performance-assessment-progress li.done,.performance-assessment-progress li.current{color:var(--seed-primary);font-weight:700}
.performance-assessment-progress li.done .performance-assessment-dot{border-color:var(--seed-primary);background:var(--seed-primary)}
.performance-assessment-progress li.current .performance-assessment-dot{border-color:var(--seed-primary);background:var(--bg-surface)}
.performance-signature-field{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-width:98px;min-height:38px;padding:5px 9px;border:1px dashed var(--line);border-radius:10px;color:var(--txt-3);background:var(--bg-soft);font:inherit;font-size:11px;white-space:nowrap}
.performance-signature-field.signed{border-style:solid;border-color:var(--green);background:var(--bg-green-soft);color:var(--green);font-weight:700}
.performance-signature-field.actionable{border-color:var(--seed-primary);background:var(--bg-primary-soft);color:var(--seed-primary);font-weight:700;cursor:pointer}
.performance-signature-field.actionable:hover{background:var(--seed-primary);color:#fff}
.performance-signature-field.pending{cursor:pointer}
.performance-signature-field.pending:hover{border-color:var(--seed-primary);color:var(--seed-primary)}
.performance-signature-field:focus-visible{outline:2px solid var(--seed-primary);outline-offset:2px}
.performance-name-button{border:0;background:transparent;padding:0;color:var(--txt-1);font:inherit;font-weight:750;cursor:pointer}
.performance-name-button:hover,.performance-name-button:focus-visible{color:var(--seed-primary);text-decoration:underline;text-underline-offset:3px}
.performance-assessment-detail-meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px 16px;color:var(--txt-2);font-size:12px}
.performance-template-grid{display:grid;grid-template-columns:repeat(4,minmax(180px,1fr));gap:10px;padding:14px 18px 18px}
.performance-template-card{display:flex;flex-direction:column;min-height:156px;padding:15px;border:1px solid color-mix(in srgb,var(--line) 55%,transparent);border-radius:15px;background:var(--bg-soft)}
.performance-template-card h3{font-size:13.5px;display:flex;gap:8px;align-items:center;min-width:0}
.performance-template-card h3 span:first-child{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.performance-version{padding:2px 8px;border-radius:99px;background:var(--bg-primary-soft);color:var(--primary);font-size:10px;white-space:nowrap}
.performance-template-card .meta{color:var(--txt-3);font-size:10.5px;margin-top:5px}
.performance-weight-bar{display:flex;height:12px;margin:13px 0 8px;border-radius:99px;background:var(--bg-surface);overflow:hidden}
.performance-weight-bar i{height:100%;min-width:0}
.performance-weight-bar i:nth-child(1){background:#6b5ce7}.performance-weight-bar i:nth-child(2){background:#8b7cf0}.performance-weight-bar i:nth-child(3){background:#b7adff}.performance-weight-bar i:nth-child(4){background:#d7d1ff}
.performance-weight-legend{display:flex;gap:7px;flex-wrap:wrap;font-size:9.5px;color:var(--txt-3)}
.performance-weight-legend span.off{opacity:.42;text-decoration:line-through}
.performance-template-card footer{display:flex;align-items:center;gap:7px;margin-top:auto;padding-top:12px}
.performance-template-empty{border:1.5px dashed color-mix(in srgb,var(--primary) 45%,var(--line));background:color-mix(in srgb,var(--bg-primary-soft) 38%,var(--bg-surface));align-items:center;justify-content:center;text-align:center;color:var(--txt-3);cursor:pointer}
.performance-template-empty b{display:block;color:var(--primary);font-size:13px;margin-bottom:5px}
.performance-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:12px 18px}
.performance-toolbar .input{min-height:36px;padding:7px 10px}
.performance-alignment{width:100%;min-width:1480px;border-collapse:collapse;text-align:left}
.performance-alignment caption{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.performance-table-scroll{overflow:auto;max-width:100%}
.performance-table-scroll:focus-visible{outline:2px solid var(--seed-primary);outline-offset:-2px}
.performance-alignment th,.performance-alignment td{padding:14px 10px;border-bottom:1px solid var(--line);font-size:12px;vertical-align:middle}
.performance-alignment th{background:var(--bg-soft);color:var(--txt-3);font-weight:500;white-space:nowrap}
.performance-alignment thead tr:first-child th[colspan]{text-align:center;border-bottom:1px solid var(--line)}
.performance-alignment th:nth-child(1),.performance-alignment td:nth-child(1){padding-left:18px;white-space:nowrap}
.performance-alignment td:nth-child(2),.performance-alignment td:nth-child(13){white-space:nowrap;color:var(--txt-2)}
.performance-alignment td:nth-child(3),.performance-alignment td:nth-child(4),.performance-alignment td:nth-child(5),.performance-alignment td:nth-child(6){min-width:100px}
.performance-alignment td:nth-child(7){min-width:130px}
.performance-alignment td:nth-child(8){min-width:198px}
.performance-alignment td:nth-child(9),.performance-alignment td:nth-child(10){min-width:150px}
.performance-alignment td:nth-child(11),.performance-alignment td:nth-child(12){min-width:94px;white-space:nowrap}
.performance-alignment tbody tr:last-child td{border-bottom:0}
.performance-plan-cell{display:flex;align-items:center;gap:7px;flex-wrap:nowrap;white-space:nowrap}
.performance-plan-cell .btn{white-space:nowrap}
.performance-plan-cell .btn:disabled{opacity:.45;cursor:not-allowed}
.performance-progress-axis{display:flex;align-items:flex-start;margin:0;padding:0;list-style:none;white-space:nowrap}
.performance-progress-axis li{position:relative;display:grid;justify-items:center;gap:4px;min-width:47px;color:var(--txt-3);font-size:10px}
.performance-progress-axis li:not(:last-child):after{content:"";position:absolute;top:5px;left:calc(50% + 7px);width:calc(100% - 14px);height:2px;background:var(--line)}
.performance-progress-axis li.linked:not(:last-child):after{background:var(--seed-primary)}
.performance-progress-dot{width:12px;height:12px;border:2px solid var(--line);border-radius:50%;background:var(--bg-surface)}
.performance-progress-axis li.done,.performance-progress-axis li.current{color:var(--seed-primary);font-weight:700}
.performance-progress-axis li.done .performance-progress-dot{background:var(--seed-primary);border-color:var(--seed-primary)}
.performance-progress-axis li.current .performance-progress-dot{border-color:var(--seed-primary);box-shadow:0 0 0 3px var(--bg-violet-soft)}
.performance-alignment td.performance-empty{margin:0;border:0;border-bottom:1px solid var(--line);border-radius:0}
.performance-person{display:flex;align-items:center;gap:8px;font-weight:700;min-width:0}
.performance-person-label{display:grid;gap:2px;min-width:0}.performance-person-label b{overflow:hidden;text-overflow:ellipsis}.performance-person-label small{font-size:10px;font-weight:500;color:var(--txt-3)}
.performance-avatar{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:var(--bg-primary-soft);color:var(--primary);font-size:10px;font-weight:800;flex:none;overflow:hidden}
.performance-avatar img{width:100%;height:100%;object-fit:cover}
.performance-pill{display:inline-flex;align-items:center;gap:4px;padding:4px 9px;border-radius:99px;font-size:10px;font-weight:700;white-space:nowrap}
.performance-pill.green{background:var(--bg-green-soft);color:var(--green)}.performance-pill.yellow{background:var(--bg-yellow-soft);color:var(--yellow)}.performance-pill.red{background:var(--bg-red-soft);color:var(--red)}.performance-pill.violet{background:var(--bg-primary-soft);color:var(--primary)}.performance-pill.gray{background:var(--bg-soft);color:var(--txt-3);border:1px solid var(--line)}
.performance-sign-action{font:inherit;cursor:pointer}.performance-sign-action:hover,.performance-sign-action:focus-visible{color:var(--primary);border-color:var(--primary);background:var(--bg-primary-soft);outline-offset:2px}
.performance-empty{margin:14px 18px 18px;border:1px dashed var(--line);border-radius:14px;padding:30px;text-align:center;color:var(--txt-3)}
.performance-counts{display:flex;gap:8px;flex-wrap:wrap;padding:0 18px 14px;color:var(--txt-3);font-size:10.5px}
.performance-counts b{color:var(--txt-1)}
.performance-list-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;padding:10px 18px 14px}
.performance-list-footer .performance-counts{padding:0}
.performance-pagination{display:flex;align-items:center;gap:8px;margin-left:auto;color:var(--txt-3);font-size:11px;white-space:nowrap}

/* Excel 感模板模态 */
.template-modal{width:min(1120px,calc(100vw - 32px));height:min(790px,calc(100dvh - 32px));max-height:calc(100dvh - 32px);margin:auto;padding:0;border:1px solid var(--line);border-radius:20px;background:var(--bg-surface);color:var(--txt-1);box-shadow:var(--shadow-lg)}
.template-modal::backdrop{background:rgba(20,16,48,.58);backdrop-filter:blur(2px)}
.template-modal-card{display:flex;flex-direction:column;height:100%;max-height:calc(100dvh - 34px)}
.template-modal-head{display:flex;align-items:flex-start;gap:12px;padding:22px 28px;border-bottom:1px solid var(--line);background:linear-gradient(135deg,var(--bg-primary-soft),var(--bg-surface))}
.template-modal-head h2{font-size:21px;margin-top:7px}.template-modal-head p{font-size:12px;color:var(--txt-3);margin-top:5px}.template-modal-head .close-x{margin-left:auto}
.template-modal-body{padding:22px 28px 28px;overflow:auto;flex:1}
.template-form-section{padding:18px 20px 20px;border:1px solid var(--line);border-radius:16px;background:var(--bg-surface);margin-bottom:16px}
.template-form-heading{display:flex;align-items:center;gap:11px;margin-bottom:16px}.template-form-heading>span{display:grid;place-items:center;width:32px;height:32px;border-radius:9px;background:var(--bg-primary-soft);color:var(--primary);font-size:12px;font-weight:800}.template-form-heading h3{font-size:15px}.template-form-heading p{font-size:11px;color:var(--txt-3);margin-top:3px}
.template-meta-grid{display:grid;grid-template-columns:minmax(220px,1.6fr) minmax(180px,1fr) minmax(140px,.65fr);gap:14px}
.template-meta-grid label,.performance-field,.template-form-options label{display:grid;gap:7px;color:var(--txt-2);font-size:11px;font-weight:650}.template-meta-grid .input,.template-form-options .input{height:42px}
.template-meta-status{display:flex;align-items:center;gap:8px;flex-wrap:wrap;color:var(--txt-2);font-size:11px}.template-meta-status>span{width:100%;font-weight:650}.template-meta-status strong{padding:5px 10px;border-radius:99px;background:var(--bg-primary-soft);color:var(--primary)}.template-meta-status small{color:var(--txt-3)}
.template-sheet{min-width:1080px;border:1px solid var(--line);border-radius:12px;overflow:hidden}
.template-sheet-row{display:grid;grid-template-columns:58px minmax(160px,1.3fr) minmax(175px,1.4fr) minmax(125px,1fr) 110px minmax(115px,1fr) minmax(110px,.85fr) minmax(125px,1fr);align-items:stretch}
.template-sheet-row .template-target-merged{grid-column:span 2}
.template-sheet-row[hidden]{display:none}
.template-sheet-row>*{min-height:64px;padding:10px 12px;border-right:1px solid var(--line);border-bottom:1px solid var(--line);display:flex;align-items:center}
.template-sheet-row>*:last-child{border-right:0}.template-sheet-row.head>*{min-height:46px;background:var(--bg-soft);font-size:11px;color:var(--txt-3);font-weight:700}.template-sheet-row:last-child>*{border-bottom:0}
.template-sheet-row:not(.head):nth-child(even){background:color-mix(in srgb,var(--bg-soft) 45%,var(--bg-surface))}.template-sheet-row strong{font-size:12px}.template-row-index{color:var(--txt-3);font-size:11px;font-weight:750}
.template-sheet-row input,.template-sheet-row select{width:100%;height:36px;border:1px solid var(--line);background:var(--bg-surface);color:var(--txt-1);padding:6px 9px;border-radius:8px;font:inherit;font-size:12px}.template-sheet-row input:focus,.template-sheet-row select:focus{outline:2px solid color-mix(in srgb,var(--primary) 25%,transparent);border-color:var(--primary)}
.template-sheet-row .template-check{gap:5px;font-size:11px}.template-sheet-row .template-check input{width:16px;height:16px;accent-color:var(--primary)}.template-weight{gap:4px}.template-weight span{color:var(--txt-3)}
.template-source{display:flex;flex-direction:column;justify-content:center;gap:4px;min-width:0}.template-source small,.template-source-hint{font-size:10px;color:var(--txt-3);line-height:1.5}.template-source-hint{align-self:stretch}.template-sheet-row.summary .template-source-hint{font-size:10px}
.template-sheet-row.sheet-disabled{opacity:.52;background:var(--bg-soft)}.template-sheet-row.summary{background:var(--bg-primary-soft)}.template-sheet-row.summary strong{color:var(--primary)}.template-sheet-note{grid-column:span 3;color:var(--txt-3);font-size:11px}
.template-form-options{display:flex;align-items:end;gap:16px;margin-top:16px}.template-form-options label{width:220px}.template-form-options p{font-size:11px;color:var(--txt-3);padding-bottom:2px}
.template-audit-meta{display:flex;gap:26px;align-items:center;padding:0 4px;color:var(--txt-3);font-size:11px}.template-audit-meta strong{margin-left:8px;color:var(--txt-2)}
.template-modal-foot{display:flex;align-items:center;gap:9px;padding:15px 28px;border-top:1px solid var(--line);background:var(--bg-surface)}
.performance-record-modal{width:min(1180px,calc(100vw - 32px));height:min(820px,calc(100dvh - 32px))}
.performance-record-modal .template-modal-body{display:grid;align-content:start;gap:12px}
.performance-record-modal .performance-drawer-section{margin:0}
.performance-record-modal .performance-draft-plan{order:2}
.performance-record-modal .performance-item-table{border:1px solid var(--line);border-radius:12px}
.performance-record-modal .performance-item-row{gap:0;grid-template-columns:50px minmax(145px,1.15fr) minmax(160px,1.25fr) minmax(120px,.9fr) 90px minmax(145px,1.1fr) 80px minmax(135px,1fr);min-width:980px;padding:0;border:0}
.performance-record-modal .performance-item-row>*{height:100%;min-height:58px;padding:9px 10px;border-right:1px solid var(--line);border-bottom:1px solid var(--line);display:flex;align-items:center}
.performance-record-modal .performance-item-row>*:last-child{border-right:0}
.performance-record-modal .performance-item-row:last-child>*{border-bottom:0}
.performance-record-modal .performance-item-row.head>*{min-height:42px}
.performance-record-modal .performance-item-row input,.performance-record-modal .performance-item-row textarea{width:100%;font-size:11px}
.performance-record-modal .performance-item-row .performance-cell-wrap{max-height:none}
.performance-record-modal.performance-draft-modal{width:min(1180px,calc(100vw - 32px));height:min(840px,calc(100dvh - 32px));background:var(--bg-page);background-image:var(--diffuse)}
.performance-draft-modal .template-modal-head{min-height:86px;align-items:center;padding:18px 24px;background:var(--glass);backdrop-filter:blur(12px)}
html[data-theme="light"] .performance-draft-modal .template-modal-head{background:radial-gradient(ellipse 46% 125% at 100% 0%,#f5e9fa 0%,transparent 78%),#fefdff;backdrop-filter:none}
.performance-draft-modal .template-modal-head>div{display:grid;grid-template-columns:5px minmax(0,1fr);column-gap:12px;align-items:center}
.performance-draft-modal .template-modal-head>div::before{content:"";grid-row:1/3;width:5px;height:30px;border-radius:3px;background:var(--seed-primary)}
.performance-draft-modal .template-modal-head .inst-chip{display:none}
.performance-draft-modal .template-modal-head h2{grid-column:2;margin:0;font-size:22px;line-height:1.25;font-weight:800}
.performance-draft-modal .template-modal-head p{grid-column:2;margin:3px 0 0;font-size:12px;line-height:1.5}
.performance-draft-modal .template-modal-head .close-x{align-self:center}
.performance-draft-modal .template-modal-body{grid-template-columns:minmax(0,1fr);padding:20px 24px 28px;gap:16px}
.performance-draft-modal .performance-drawer-section{min-width:0;padding:20px;border:1px solid var(--line);border-radius:16px;background:var(--bg-surface);box-shadow:none}
.performance-draft-modal .performance-drawer-section h4{gap:10px;padding-bottom:13px;margin-bottom:16px;border-bottom:1px solid var(--line);font-size:15px;line-height:1.3;font-weight:750}
.performance-draft-modal .performance-drawer-section h4:before{flex:none;width:3.5px;height:18px;background:var(--seed-primary)}
.performance-draft-modal .performance-draft-heading{display:flex;align-items:flex-start;gap:12px}
.performance-draft-modal .performance-draft-heading h4{flex:1}
.performance-draft-modal .performance-draft-heading .performance-pill{margin-top:1px}
.performance-draft-modal .performance-draft-details{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.performance-draft-modal .performance-draft-details>div{display:flex;min-width:0;min-height:86px;flex-direction:column;justify-content:center;gap:5px;padding:12px 14px;border-radius:12px;background:var(--bg-soft)}
.performance-draft-modal .performance-draft-details small{color:var(--txt-3);font-size:11px;font-weight:600}
.performance-draft-modal .performance-draft-details strong{overflow:hidden;color:var(--txt-1);font-size:13px;text-overflow:ellipsis;white-space:nowrap}
.performance-draft-modal .performance-draft-details span{overflow:hidden;color:var(--txt-3);font-size:11px;text-overflow:ellipsis;white-space:nowrap}
.performance-draft-modal .performance-source-note{margin:0 0 14px;color:var(--txt-3);font-size:12px;line-height:1.6}
.performance-draft-modal .performance-item-table{border:0;border-radius:0}
.performance-draft-modal .performance-item-row{font-size:12px}
.performance-draft-modal .performance-item-row>*{border-right:0;border-bottom:1px solid var(--line);padding:10px;min-height:60px}
.performance-draft-modal .performance-item-row.head>*{min-height:42px;background:var(--bg-soft);color:var(--txt-3);font-size:12px;font-weight:700}
.performance-draft-modal .performance-item-row input,.performance-draft-modal .performance-item-row textarea{min-height:36px;border:1px solid var(--line);border-radius:9px;background:var(--bg-surface);color:var(--txt-1);font-size:12px}
.performance-draft-modal .performance-item-row textarea{min-height:48px}
.performance-draft-modal .performance-counts{gap:14px;padding:14px 0 0;color:var(--txt-3);font-size:11px}
.performance-draft-modal .performance-review-note{min-height:88px}
.performance-draft-audit-head{margin-bottom:20px;padding-bottom:14px;border-bottom:1px solid var(--line)}
.performance-draft-audit-head h4{margin-bottom:6px}
.performance-drawer-section.performance-draft-audit .performance-draft-audit-head h4{margin-bottom:6px;padding-bottom:0;border-bottom:0}
.performance-draft-audit-head p{margin:0;color:var(--txt-3);font-size:12px;line-height:1.5}
.performance-draft-audit-list{display:grid;gap:20px;margin:0 0 0 6px;padding:3px 0 3px 27px;border-left:2px solid var(--line);list-style:none}
.performance-draft-audit-item{position:relative;min-width:0}
.performance-draft-audit-item:before{content:"";position:absolute;top:5px;left:-34px;width:11px;height:11px;border-radius:50%;background:var(--seed-primary);box-shadow:0 0 0 3px var(--bg-surface)}
.performance-draft-audit-item strong{display:block;color:var(--txt-1);font-size:14px;line-height:1.4}
.performance-draft-audit-item span,.performance-draft-audit-item p{display:block;margin:5px 0 0;color:var(--txt-3);font-size:12px;line-height:1.55;overflow-wrap:anywhere}
.performance-draft-audit-empty{margin:0;color:var(--txt-3);font-size:12px}
.performance-draft-modal .template-modal-foot{min-height:70px;justify-content:flex-end;padding:14px 24px;background:var(--glass);backdrop-filter:blur(12px)}
@media(max-width:900px){.performance-draft-modal .performance-draft-details{grid-template-columns:repeat(2,minmax(0,1fr))}.performance-draft-modal .performance-draft-details>div:last-child{grid-column:1/-1;min-height:70px}}
@media(max-width:700px){.performance-record-modal.performance-draft-modal{width:calc(100vw - 16px);height:calc(100dvh - 16px)}.performance-draft-modal .template-modal-head,.performance-draft-modal .template-modal-body,.performance-draft-modal .template-modal-foot{padding-left:16px;padding-right:16px}.performance-draft-modal .performance-drawer-section{padding:16px}.performance-draft-modal .performance-draft-details{grid-template-columns:1fr}.performance-draft-modal .performance-draft-details>div:last-child{grid-column:auto}}
.performance-record-modal .template-modal-foot{justify-content:flex-end;flex-wrap:wrap}
.performance-record-modal .performance-drawer-error{margin-right:auto}
@media(max-width:700px){.performance-record-modal{width:calc(100vw - 16px);height:calc(100dvh - 16px)}.performance-record-modal .template-modal-foot{gap:6px}}
.template-modal-foot [hidden]{display:none}.template-modal-foot #performanceTemplateDelete{margin-right:auto}.template-total{margin-right:auto;font-size:12px;font-weight:750;color:var(--green)}.template-modal-foot:has(#performanceTemplateDelete:not([hidden])) .template-total{margin-right:0}.template-total.invalid{color:var(--red)}.template-modal-error{color:var(--red);font-size:11px}
@media(max-width:700px){.template-modal{width:calc(100vw - 16px);height:calc(100dvh - 16px)}.template-modal-head,.template-modal-body,.template-modal-foot{padding-left:16px;padding-right:16px}.template-meta-grid{grid-template-columns:1fr}.template-form-section{padding:14px}.template-modal-foot{flex-wrap:wrap}.template-total{width:100%}.template-form-options{display:block}.template-form-options p{padding-top:8px}.template-audit-meta{display:grid;gap:8px}}

/* 绩效模板沿用月度计划二级页的页头、分区和信息字段视觉，计分框架仍为表格。 */
#performanceTemplateModal{width:min(1180px,calc(100vw - 32px));height:min(840px,calc(100dvh - 32px));background:var(--bg-page);background-image:var(--diffuse)}
#performanceTemplateModal .template-modal-head{min-height:86px;align-items:center;padding:18px 24px;background:var(--glass);backdrop-filter:blur(12px)}
html[data-theme="light"] #performanceTemplateModal .template-modal-head{background:radial-gradient(ellipse 46% 125% at 100% 0%,#f5e9fa 0%,transparent 78%),#fefdff;backdrop-filter:none}
#performanceTemplateModal .template-modal-head>div{display:grid;grid-template-columns:5px minmax(0,1fr);column-gap:12px;align-items:center}
#performanceTemplateModal .template-modal-head>div::before{content:"";grid-row:1/3;width:5px;height:30px;border-radius:3px;background:var(--seed-primary)}
#performanceTemplateModal .template-modal-head .inst-chip{display:none}
#performanceTemplateModal .template-modal-head h2{grid-column:2;margin:0;font-size:22px;line-height:1.25;font-weight:800}
#performanceTemplateModal .template-modal-head p{grid-column:2;margin:3px 0 0;font-size:12px;line-height:1.5}
#performanceTemplateModal .template-modal-head .close-x{align-self:center}
#performanceTemplateModal .template-modal-body{padding:20px 24px 28px}
#performanceTemplateModal .template-form-section{padding:20px;margin-bottom:16px;background:var(--bg-surface);box-shadow:none}
#performanceTemplateModal .template-form-heading{gap:10px;padding-bottom:13px;margin-bottom:16px;border-bottom:1px solid var(--line)}
#performanceTemplateModal .template-form-heading::before{content:"";flex:none;width:3.5px;height:18px;border-radius:2px;background:var(--seed-primary)}
#performanceTemplateModal .template-form-heading>span{display:none}
#performanceTemplateModal .template-form-heading h3{font-size:15px;line-height:1.3;font-weight:750}
#performanceTemplateModal .template-form-heading p{margin-top:3px;font-size:12px}
#performanceTemplateModal .template-meta-grid{grid-template-columns:minmax(0,1.35fr) minmax(0,1fr) minmax(150px,.55fr);gap:12px}
#performanceTemplateModal .template-meta-grid>label,#performanceTemplateModal .template-post-type-field,#performanceTemplateModal .template-meta-status{display:flex;min-width:0;min-height:84px;flex-direction:column;justify-content:center;align-items:stretch;gap:7px;padding:12px 14px;border-radius:12px;background:var(--bg-soft)}
#performanceTemplateModal .template-meta-grid>label,#performanceTemplateModal .template-post-type-field>span,#performanceTemplateModal .template-meta-status>span{font-size:11px;color:var(--txt-3);font-weight:600}
#performanceTemplateModal .template-meta-grid .input{height:36px;min-width:0;padding:7px 10px;font-size:13px;color:var(--txt-1);background:var(--bg-surface)}
#performanceTemplateModal .template-post-type-select{position:relative;min-width:0}
#performanceTemplateModal .template-post-type-trigger{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;text-align:left;cursor:pointer;border-radius:10px}
#performanceTemplateModal .template-post-type-trigger>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#performanceTemplateModal .template-post-type-trigger svg{width:16px;height:16px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;transition:transform .15s}
#performanceTemplateModal .template-post-type-trigger[aria-expanded="true"] svg{transform:rotate(180deg)}
#performanceTemplateModal .template-post-type-trigger:focus-visible{outline:2px solid var(--seed-primary);outline-offset:2px}
#performanceTemplateModal .template-post-type-trigger:disabled{opacity:.55;cursor:not-allowed}
#performanceTemplateModal .template-post-type-options{position:absolute;z-index:12;top:calc(100% + 6px);left:0;right:0;max-height:278px;overflow:auto;padding:6px;border:1px solid var(--line);border-radius:12px;background:var(--bg-surface);box-shadow:var(--shadow-lg);overscroll-behavior:contain}
#performanceTemplateModal .template-post-type-options.above{top:auto;bottom:calc(100% + 6px)}
#performanceTemplateModal .template-post-type-options[hidden]{display:none}
#performanceTemplateModal .template-post-type-options button{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:40px;padding:8px 11px;border:0;border-radius:8px;background:transparent;color:var(--txt-1);font:inherit;font-size:12px;text-align:left;cursor:pointer}
#performanceTemplateModal .template-post-type-options button:hover,#performanceTemplateModal .template-post-type-options button:focus-visible{background:var(--bg-primary-soft);outline:none}
#performanceTemplateModal .template-post-type-options button[aria-selected="true"]{background:var(--bg-primary-soft);color:var(--primary);font-weight:700}
#performanceTemplateModal .template-post-type-options button[aria-selected="true"]::after{content:"✓";margin-left:8px}
#performanceTemplateModal .template-meta-status{flex-direction:row;align-items:center;justify-content:flex-start;flex-wrap:wrap;gap:5px 8px}
#performanceTemplateModal .template-meta-status>span{width:100%}
#performanceTemplateModal .template-meta-status strong{padding:0;background:none;color:var(--txt-1);font-size:14px}
#performanceTemplateModal .template-meta-status small{font-size:10px}
#performanceTemplateModal .template-sheet{border:0;border-radius:0}
#performanceTemplateModal .template-sheet-row>*{border-right:0;border-bottom:1px solid var(--line)}
#performanceTemplateModal .template-sheet-row.head>*{min-height:42px;padding:10px;background:var(--bg-soft);font-size:12px}
#performanceTemplateModal .template-sheet-row:not(.head):nth-child(even){background:transparent}
#performanceTemplateModal .template-sheet-row>*{padding:10px}
#performanceTemplateModal .template-source{align-items:flex-start;text-align:left}
#performanceTemplateModal .template-sheet-row.summary{background:var(--bg-violet-soft)}
#performanceTemplateModal .template-form-options{margin-top:14px}
#performanceTemplateModal .template-form-options p{line-height:1.6}
#performanceTemplateModal .template-coefficient-audience{padding:11px 14px;margin-bottom:12px;border-radius:12px;background:var(--bg-soft);color:var(--txt-1);font-size:13px;font-weight:700}
#performanceTemplateModal .template-coefficient-table{width:100%;min-width:420px;border-collapse:collapse;text-align:left;font-size:12px}
#performanceTemplateModal .template-coefficient-table th,#performanceTemplateModal .template-coefficient-table td{padding:11px 14px;border-bottom:1px solid var(--line)}
#performanceTemplateModal .template-coefficient-table th{background:var(--bg-soft);color:var(--txt-3);font-weight:650}
#performanceTemplateModal .template-coefficient-table td:last-child{color:var(--primary);font-weight:750;font-variant-numeric:tabular-nums}
#performanceTemplateModal .template-coefficient-table tbody tr:last-child td{border-bottom:0}
#performanceTemplateModal .template-coefficient-note{margin-top:12px;color:var(--txt-3);font-size:11px;line-height:1.6}
#performanceTemplateModal .template-modal-foot{min-height:70px;padding:14px 24px;background:var(--glass);backdrop-filter:blur(12px)}
@media(max-width:900px){#performanceTemplateModal .template-meta-grid{grid-template-columns:repeat(2,minmax(0,1fr))}#performanceTemplateModal .template-meta-status{grid-column:1/-1;min-height:60px}}
@media(max-width:700px){#performanceTemplateModal{width:calc(100vw - 16px);height:calc(100dvh - 16px)}#performanceTemplateModal .template-modal-head,#performanceTemplateModal .template-modal-body,#performanceTemplateModal .template-modal-foot{padding-left:16px;padding-right:16px}#performanceTemplateModal .template-meta-grid{grid-template-columns:1fr}#performanceTemplateModal .template-meta-status{grid-column:auto}#performanceTemplateModal .template-form-section{padding:16px}}

/* S3 两抽屉 */
#performanceLayer.s3-drawer{width:min(820px,100vw)!important}
.performance-identity{display:flex;align-items:center;gap:11px;padding:14px 16px;border-radius:14px;background:linear-gradient(135deg,var(--bg-primary-soft),color-mix(in srgb,#ff7eb3 7%,var(--bg-surface)));margin-bottom:12px}
.performance-identity h3{font-size:16px}.performance-identity p{font-size:11px;color:var(--txt-3);margin-top:2px}.performance-identity .performance-pill{margin-left:auto}
.performance-basis{display:inline-flex;align-items:center;padding:5px 11px;border-radius:99px;background:var(--bg-primary-soft);color:var(--primary);font-size:10.5px;font-weight:700;margin-bottom:12px}
.performance-drawer-section{border:1px solid color-mix(in srgb,var(--line) 52%,transparent);border-radius:13px;background:var(--bg-surface);padding:13px 14px;margin-bottom:10px}
.performance-drawer-section h4{display:flex;align-items:center;gap:7px;font-size:12.5px;margin-bottom:10px}.performance-drawer-section h4:before{content:"";width:3px;height:12px;border-radius:2px;background:var(--primary)}
.performance-onepage-preview .pf-section{box-shadow:none}
.performance-onepage-preview .pf-section:last-child{margin-bottom:0}
.performance-item-table{overflow:auto}
.performance-item-row{display:grid;grid-template-columns:38px minmax(125px,1.1fr) minmax(140px,1.15fr) minmax(110px,.9fr) 74px minmax(140px,1.1fr) 70px minmax(115px,1fr);gap:8px;align-items:center;padding:9px 8px;border-bottom:1px solid color-mix(in srgb,var(--line) 48%,transparent);font-size:11px;min-width:900px}
.performance-item-row.head{background:var(--bg-soft);color:var(--txt-3);font-size:10px;border-radius:9px 9px 0 0}
.performance-item-row input{width:100%;text-align:center;padding:6px}.performance-item-row textarea{width:100%;min-height:52px;resize:vertical;padding:6px}.performance-item-row textarea[readonly]{background:var(--bg-soft)}.performance-cell-wrap{white-space:pre-wrap;overflow-wrap:anywhere;max-height:90px;overflow:auto}.performance-source-note{font-size:11px;color:var(--txt-3);margin:-2px 0 10px}
.tri-state{display:flex;gap:4px;align-items:center}.tri-opt{height:28px;border:1px solid var(--line);border-radius:99px;padding:0 10px;background:transparent;color:var(--txt-3);font-size:10px;font-weight:700;cursor:pointer}.tri-opt.on[data-value="achieved"]{background:var(--bg-green-soft);border-color:transparent;color:var(--green)}.tri-opt.on[data-value="partial"]{background:var(--bg-yellow-soft);border-color:transparent;color:var(--yellow)}.tri-opt.on[data-value="missed"]{background:var(--bg-soft);border-color:var(--line);color:var(--txt-1)}
.performance-registration{display:grid;grid-template-columns:1fr 1fr;gap:10px}.performance-registration .wide{grid-column:1/-1}
.performance-registration.has-grade{grid-template-columns:repeat(3,minmax(0,1fr))}
.performance-coefficient-rule{margin:-2px 0 2px;color:var(--txt-3);font-size:11px;line-height:1.5}
.performance-timeline{border-left:2px solid var(--line);margin-left:7px;padding-left:16px;display:grid;gap:12px}.performance-timeline-item{position:relative;font-size:11px;color:var(--txt-2)}.performance-timeline-item:before{content:"";position:absolute;left:-21px;top:4px;width:8px;height:8px;border-radius:50%;background:var(--primary);box-shadow:0 0 0 3px var(--bg-primary-soft)}.performance-timeline-item b{display:block;color:var(--txt-1);font-size:11.5px}.performance-timeline-item time{color:var(--txt-3);font-size:10px}
.performance-review-note{min-height:74px;width:100%}
.performance-drawer-error{color:var(--red);font-size:11px;margin-right:auto}

/* #11 漏斗与 L1 */
.funnel-bar{display:flex;min-height:72px;margin:0 18px 14px;border-radius:15px;overflow:hidden;background:var(--bg-soft);border:1px solid var(--line)}
.funnel-segment{min-width:68px;flex:var(--count,1);border:0;border-right:1px solid color-mix(in srgb,var(--bg-surface) 72%,transparent);padding:11px 13px;text-align:left;color:var(--txt-2);cursor:pointer;background:var(--bg-soft)}.funnel-segment:last-child{border-right:0}.funnel-segment:nth-child(2){background:var(--bg-primary-soft)}.funnel-segment:nth-child(3){background:color-mix(in srgb,var(--primary) 72%,var(--bg-surface));color:#fff}.funnel-segment:nth-child(4){background:var(--bg-green-soft);color:var(--green)}.funnel-segment.on{outline:2px solid var(--primary);outline-offset:-3px}.funnel-segment span{display:block;font-size:10px}.funnel-segment b{display:block;font-size:19px;margin-top:3px}.funnel-review-date{align-self:center;padding:0 14px;color:var(--txt-3);font-size:10px;white-space:nowrap}
.performance-group{padding:0 18px 14px}.performance-group-title{display:flex;align-items:center;gap:8px;padding:9px 4px 6px;font-size:12.5px;font-weight:750}.performance-group-title span{font-size:10.5px;color:var(--txt-3);font-weight:500}
.performance-l1-row{display:grid;grid-template-columns:minmax(150px,1.2fr) 1fr 110px 74px 74px minmax(190px,auto);gap:12px;align-items:center;margin:6px 0;padding:12px 14px;border-radius:13px;background:var(--bg-soft);font-size:11.5px}.performance-l1-row.is-missing{opacity:.58}.performance-l1-row .actions{display:flex;justify-content:flex-end;gap:6px}.performance-score{font-size:15px;font-weight:800;font-variant-numeric:tabular-nums}.performance-coefficient{font-weight:750;font-variant-numeric:tabular-nums}
.performance-member-card{padding:22px}.performance-member-hero{display:grid;grid-template-columns:1fr auto;gap:20px;align-items:center;padding:24px;border-radius:17px;background:linear-gradient(135deg,var(--bg-primary-soft),color-mix(in srgb,#ff7eb3 7%,var(--bg-surface)))}.performance-member-score{display:flex;align-items:baseline;gap:6px}.performance-member-score b{font-size:54px;line-height:1;color:var(--primary)}.performance-member-score span{font-size:13px;color:var(--txt-3)}.performance-member-meta{font-size:12px;color:var(--txt-2);line-height:1.8;margin-top:8px}.performance-member-state{text-align:right}.performance-member-state strong{display:block;font-size:22px}.performance-member-card .performance-item-table{margin-top:16px}
.performance-member-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.performance-member-stats .performance-stat-card b{font-size:20px}

/* 全屏签字浮层 */
.sigpad{position:fixed;inset:0;z-index:2200;display:grid;place-items:center;padding:20px;background:rgba(18,14,42,.65);backdrop-filter:blur(4px)}
.sigpad.hidden,.sigpad [hidden]{display:none!important}
.sigpad-card{width:min(560px,100%);border:1px solid #dcd9ee;border-radius:20px;background:#fff;color:#241e4e;padding:24px;box-shadow:0 28px 70px rgba(15,10,40,.35)}
.sigpad-head{display:flex;gap:10px;align-items:flex-start}.sigpad-head h2{font-size:20px;line-height:1.3;margin-top:6px}.sigpad-head p{font-size:12px;color:#8d89a6;margin-top:5px}.sigpad-head .close-x{margin-left:auto}
.sigpad-kicker{font-size:11px;color:var(--seed-primary);font-weight:750}
.sigpad-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-top:20px}.sigpad-facts>div{display:flex;flex-direction:column;gap:6px;padding:12px 14px;border-radius:12px;background:#f7f7fb}.sigpad-facts span{color:#8d89a6;font-size:11px}.sigpad-facts strong{font-size:17px;font-variant-numeric:tabular-nums}
.sigpad-status{margin-top:16px;padding:12px 14px;border-radius:12px;background:#f1f0fe;color:#5f55bf;font-size:12px;line-height:1.6}
.sigpad-canvas-label{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-top:18px;font-size:12px}.sigpad-canvas-label span{color:#8d89a6;font-size:11px}
.sigpad canvas{display:block;width:100%;height:180px;margin-top:9px;border:1.5px dashed #bcb5e8;border-radius:13px;background:#fff;touch-action:none;cursor:crosshair}.sigpad-hint{font-size:11px;color:#8b869b;margin-top:9px;line-height:1.5}.sigpad-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:22px}
@media(max-width:560px){.sigpad-card{padding:18px}.sigpad-facts{gap:6px}.sigpad-facts>div{padding:10px}.sigpad-actions{flex-wrap:wrap}.sigpad-actions .btn{flex:1}}

@media(max-width:1180px){.performance-template-grid{grid-template-columns:repeat(2,minmax(210px,1fr))}.performance-section{border-radius:16px}.performance-l1-row{grid-template-columns:minmax(140px,1.2fr) .9fr 104px 66px 66px minmax(178px,auto)}}
@media(max-width:760px){.performance-template-grid{grid-template-columns:1fr}.performance-stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.performance-toolbar{align-items:stretch}.performance-toolbar>*{flex:1 1 140px}.performance-registration{grid-template-columns:1fr}.performance-registration .wide{grid-column:auto}.funnel-bar{overflow:auto}.funnel-review-date{display:none}.performance-l1-row{grid-template-columns:1fr 1fr}.performance-l1-row .actions{grid-column:1/-1;justify-content:flex-start}.performance-member-hero{grid-template-columns:1fr}.performance-member-state{text-align:left}.template-meta-grid{grid-template-columns:1fr}}
@media(max-width:760px){.performance-registration.has-grade{grid-template-columns:1fr}}
@media(max-width:760px){#page-performance .performance-section-head{height:auto;min-height:67px;overflow:visible;flex-wrap:wrap}#page-performance .performance-section-actions{width:100%;margin-left:0}#page-performance .performance-month-field{width:100%}#page-performance .performance-month-field .input{flex:1;width:auto;min-width:0}.performance-assessment-toolbar .performance-field{max-width:none}.performance-assessment-detail-meta{grid-template-columns:1fr}}
/* Embedded monthly plan uses the same read-only cards as plan preview. */
.performance-onepage-preview .mpc-item-main{grid-template-columns:repeat(2,minmax(0,1fr))}
.performance-onepage-preview .mpc-item-field{min-width:0}
.performance-onepage-preview .mpc-item-card-title{flex-wrap:wrap}
.performance-onepage-preview .mpv-value{display:block;min-width:0;min-height:36px;padding:8px 10px;border:1px solid var(--line);border-radius:9px;background:var(--bg-surface);color:var(--txt-1);font-size:12px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}
.performance-onepage-preview .mpc-item-results-table{min-width:650px}
.performance-onepage-preview .mpc-item-results-table th:first-child,.performance-onepage-preview .mpc-item-results-table td:first-child{width:48px}
.performance-onepage-preview .mpc-item-results-table th:nth-child(2),.performance-onepage-preview .mpc-item-results-table td:nth-child(2),.performance-onepage-preview .mpc-item-results-table th:nth-child(3),.performance-onepage-preview .mpc-item-results-table td:nth-child(3){width:30%}
.performance-onepage-preview .mpc-item-results-table th:nth-child(4),.performance-onepage-preview .mpc-item-results-table td:nth-child(4){width:20%}
.performance-onepage-preview .mpc-item-results-table th:nth-child(5),.performance-onepage-preview .mpc-item-results-table td:nth-child(5){width:110px}
.performance-onepage-preview .mpc-table td .mpv-value,.performance-onepage-preview .mpc-item-results-table td .mpv-value{min-height:0;padding:0;border:0;background:transparent}
@media(max-width:760px){.performance-onepage-preview .mpc-item-main{grid-template-columns:1fr}}
@media(max-width:980px){#page-performance-review .performance-review-toolbar{align-items:stretch}#page-performance-review .performance-filter-fields{margin-left:0;width:100%}#page-performance-review .performance-filter-fields .performance-field{flex:1 1 145px}}
@media(max-width:760px){#page-performance-review .performance-section-head{flex-wrap:wrap}#page-performance-review .performance-section-actions{width:100%;margin-left:0}#page-performance-review .performance-month-field{width:100%}#page-performance-review .performance-month-field .input{flex:1;width:auto;min-width:0}}

/* Weight values stay numeric; percentage is a display-only suffix. */
.performance-weight-field{position:relative;display:block;min-width:0}.performance-item-row .performance-weight-field .input{padding-right:28px}.performance-weight-unit{position:absolute;right:10px;top:50%;transform:translateY(-50%);color:var(--txt-2);font-size:12px;pointer-events:none}
