/* ==========================================================================
   众好物业 · 业绩能力
   PERFORMANCE CAPABILITY / CONTRACT ASSET LEDGER
   All selectors are scoped to the .performance- namespace.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Page & loading
   -------------------------------------------------------------------------- */

.performance-page {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 4px;
}

.performance-loading-page {
  min-height: 58vh;
}

.performance-loading-head {
  padding: 6px 0 24px;
  border-bottom: 1px solid var(--line);
}

.performance-loading-kicker {
  display: block;
  color: var(--gold-600);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 2px;
}

.performance-loading-head h1 {
  margin-top: 9px;
  color: var(--ink-900);
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: 0.8px;
}

.performance-loading-head p {
  margin-top: 7px;
  color: var(--text-muted);
  font-size: 11px;
}

.performance-loading-panel {
  display: flex;
  min-height: 190px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  text-align: center;
  box-shadow: var(--shadow-xs);
}

.performance-loading-panel strong {
  margin-top: 5px;
  color: var(--ink-900);
  font-size: 12px;
  font-weight: 600;
}

.performance-loading-panel p {
  color: var(--text-muted);
  font-size: 9.5px;
}

.performance-loading-blocks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.performance-loading-blocks span {
  height: 86px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  background: linear-gradient(90deg, #eef2f4 25%, #f8fafb 50%, #eef2f4 75%);
  background-size: 200% 100%;
  animation: performance-shimmer 1.6s linear infinite;
}

.performance-load-error {
  display: flex;
  min-height: 340px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  text-align: center;
  box-shadow: var(--shadow-xs);
}

.performance-load-error-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 12px;
  background: var(--danger-bg);
  color: var(--danger);
}

.performance-load-error-mark .icon {
  width: 22px;
  height: 22px;
}

.performance-load-error h2 {
  margin-top: 13px;
  color: var(--ink-900);
  font-size: 15px;
  font-weight: 600;
}

.performance-load-error p {
  max-width: 440px;
  margin: 5px 0 18px;
  color: var(--text-muted);
  font-size: 10.5px;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Page head / actions
   -------------------------------------------------------------------------- */

.performance-head .page-head {
  margin-bottom: 0;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.performance-head .page-title {
  letter-spacing: 1.4px;
}

.performance-head .page-desc {
  max-width: 620px;
}

.performance-head .page-actions {
  padding-bottom: 2px;
}

.performance-head .btn {
  height: 37px;
}

.performance-ai-button {
  position: relative;
  overflow: hidden;
  border-color: #a88445 !important;
  background: linear-gradient(115deg, #b48d4d 0%, #c9a66b 48%, #ad8444 100%) !important;
  color: #fffdf8 !important;
  box-shadow: 0 8px 22px rgba(184, 148, 88, 0.22);
}

.performance-ai-button::after {
  position: absolute;
  top: -40%;
  left: -20%;
  width: 32px;
  height: 180%;
  background: rgba(255, 255, 255, 0.22);
  content: "";
  transform: rotate(22deg);
  transition: left 500ms var(--ease);
}

.performance-ai-button:hover::after {
  left: 120%;
}

.performance-ai-chip {
  display: inline-grid;
  min-width: 22px;
  height: 16px;
  place-items: center;
  margin-left: 1px;
  padding: 0 5px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 4px;
  background: rgba(7, 21, 33, 0.17);
  color: #fff8e9;
  font-family: var(--font-number);
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 1px;
}

/* --------------------------------------------------------------------------
   Portfolio summary
   -------------------------------------------------------------------------- */

.performance-portfolio {
  position: relative;
  overflow: hidden;
  padding: 20px 24px 22px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 87% 0%, rgba(201, 166, 107, 0.15), transparent 31%),
    radial-gradient(circle at 8% 105%, rgba(88, 132, 152, 0.12), transparent 35%),
    linear-gradient(118deg, #071521 0%, #0b2033 54%, #102b41 100%);
  color: #f2ede4;
  box-shadow: 0 16px 38px rgba(7, 21, 33, 0.13);
}

.performance-portfolio::before {
  position: absolute;
  top: -110px;
  right: -45px;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(220, 192, 140, 0.08);
  border-radius: 50%;
  box-shadow:
    0 0 0 38px rgba(220, 192, 140, 0.018),
    0 0 0 80px rgba(220, 192, 140, 0.012);
  content: "";
  pointer-events: none;
}

.performance-portfolio-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to right, transparent, black 30%, black 82%, transparent);
  opacity: 0.7;
  pointer-events: none;
}

.performance-portfolio-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.performance-portfolio-kicker {
  display: block;
  color: rgba(220, 192, 140, 0.62);
  font-family: var(--font-number);
  font-size: 7.5px;
  font-weight: 600;
  letter-spacing: 2.1px;
}

.performance-portfolio-head h2 {
  margin-top: 3px;
  color: #f6f1e8;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 1.1px;
}

.performance-portfolio-sync {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px 10px;
  max-width: 55%;
  padding-top: 4px;
  color: rgba(242, 237, 228, 0.46);
  font-size: 8.5px;
}

.performance-portfolio-sync b {
  color: var(--gold-300);
  font-family: var(--font-number);
  font-size: 10px;
  font-weight: 500;
}

.performance-portfolio-sync i {
  max-width: 360px;
  overflow: hidden;
  color: rgba(242, 237, 228, 0.27);
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.performance-pulse {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold-300);
  box-shadow: 0 0 0 4px rgba(220, 192, 140, 0.09);
  animation: performance-pulse 2.4s ease-in-out infinite;
}

.performance-portfolio-metrics {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.performance-summary-metric {
  min-width: 0;
  padding: 0 19px;
  border-right: 1px solid rgba(255, 255, 255, 0.075);
}

.performance-summary-metric:first-child {
  padding-left: 0;
}

.performance-summary-metric:last-child {
  padding-right: 0;
  border-right: 0;
}

.performance-summary-metric-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.performance-summary-metric-top > span {
  overflow: hidden;
  color: rgba(242, 237, 228, 0.37);
  font-family: var(--font-number);
  font-size: 7.5px;
  letter-spacing: 1px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.performance-summary-metric-top i {
  display: flex;
  color: rgba(220, 192, 140, 0.42);
}

.performance-summary-metric-top .icon {
  width: 13px;
  height: 13px;
}

.performance-summary-value {
  display: flex;
  align-items: baseline;
  gap: 3px;
  min-height: 36px;
  margin-top: 7px;
  color: #f8f2e8;
  font-family: var(--font-number);
  font-size: 29px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.6px;
}

.performance-summary-value > span {
  display: inline;
}

.performance-summary-value > b {
  margin-left: 3px;
  font-weight: 500;
}

.performance-summary-value small {
  margin-left: 2px;
  color: rgba(242, 237, 228, 0.39);
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0;
}

.performance-summary-money {
  color: var(--gold-300) !important;
  font-size: 24px;
  letter-spacing: -0.3px;
}

.performance-summary-restricted {
  display: inline-flex !important;
  align-items: center;
  gap: 5px;
  color: rgba(242, 237, 228, 0.46) !important;
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0;
}

.performance-summary-restricted .icon {
  width: 13px;
  height: 13px;
}

.performance-summary-metric.is-gold .performance-summary-metric-top i {
  color: var(--gold-300);
}

.performance-summary-metric.is-primary .performance-summary-value {
  color: #fffdf8;
}

.performance-summary-metric.is-restricted .performance-summary-value {
  min-height: 36px;
}

.performance-summary-metric p {
  overflow: hidden;
  margin-top: 4px;
  color: rgba(242, 237, 228, 0.3);
  font-size: 8.5px;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Filter card
   -------------------------------------------------------------------------- */

.performance-filter-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--card);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
}

.performance-filter-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 18px 14px;
  border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(120deg, #fefdfa 0%, #fff 58%, #fbfcfc 100%);
}

.performance-filter-kicker {
  display: block;
  color: var(--gold-700);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.8px;
}

.performance-filter-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 3px;
}

.performance-filter-title-row h2 {
  color: var(--ink-900);
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.7px;
}

.performance-filter-and {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  background: #f7f9fa;
  color: var(--text-faint);
  font-size: 8px;
  letter-spacing: 0.2px;
}

.performance-filter-and .icon {
  width: 10px;
  height: 10px;
  color: var(--gold-600);
}

.performance-filter-heading > p {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 9px;
  line-height: 1.6;
}

.performance-filter-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
  padding-top: 2px;
}

.performance-filter-count {
  margin-right: 3px;
  color: var(--text-faint);
  font-family: var(--font-number);
  font-size: 8.5px;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.performance-filter-count::before {
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 5px;
  border-radius: 50%;
  background: var(--gold-400);
  content: "";
  vertical-align: 1px;
}

.performance-filter-form {
  padding: 14px 18px 0;
}

.performance-filter-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px 11px;
}

.performance-filter-field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

.performance-filter-field > span:first-child {
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1px;
}

.performance-filter-field .input {
  height: 34px;
  padding: 0 9px;
  border-color: #e2e8ec;
  border-radius: 6px;
  background: #fbfcfc;
  font-size: 12px;
}

.performance-filter-field .select {
  padding-right: 26px;
  background-position: right 8px center;
}

.performance-filter-field .input:hover {
  border-color: #cbd6de;
}

.performance-filter-field .input:focus {
  border-color: var(--gold-400);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(184, 148, 88, 0.085);
}

.performance-filter-keyword {
  grid-column: span 2;
}

/* ── 更多条件（默认折叠） ──────────────────────────────────────────────
   首行常驻 4 个高频条件（关键词 / 省份 / 地市 / 履约状态），其余条件收进
   折叠区，避免 13 个字段把首屏占满、把数据表挤到视口之外。
   折叠区作为整行栅格项，内部自带 6 列栅格与虚线分隔。 */
.performance-filter-more {
  grid-column: 1 / -1;
}

.performance-filter-more-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px 11px;
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}

.performance-filter-toggle .icon {
  transition: transform var(--motion-fast) var(--ease-standard);
}

.performance-filter-toggle[aria-expanded='true'] .icon {
  transform: rotate(180deg);
}

/* 折叠时把「已选条件」条贴近筛选区，避免出现大片空白 */
.performance-filter-card.is-collapsed .performance-active-bar {
  border-top: 0;
}

.performance-search-wrap {
  position: relative;
  display: block;
}

.performance-search-wrap > .icon {
  position: absolute;
  top: 50%;
  left: 9px;
  z-index: 1;
  width: 13px;
  height: 13px;
  color: var(--text-faint);
  pointer-events: none;
  transform: translateY(-50%);
}

.performance-search-wrap .input {
  padding-right: 29px;
  padding-left: 28px;
}

.performance-search-clear {
  position: absolute;
  top: 50%;
  right: 6px;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--text-faint);
  transform: translateY(-50%);
}

.performance-search-clear:hover {
  background: #f1f4f5;
  color: var(--text-secondary);
}

.performance-search-clear .icon {
  width: 10px;
  height: 10px;
}

.performance-filter-locked {
  display: flex;
  grid-column: span 2;
  align-items: center;
  gap: 6px;
  min-height: 33px;
  align-self: end;
  padding: 0 10px;
  border: 1px dashed var(--warning-line);
  border-radius: 6px;
  background: #fffaf2;
  color: var(--warning);
  font-size: 8.5px;
  line-height: 1.45;
}

.performance-filter-locked .icon {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
}

.performance-filter-logic {
  display: flex;
  grid-column: span 4;
  align-items: center;
  gap: 8px;
  min-height: 33px;
  align-self: end;
  padding: 6px 10px;
  border: 1px dashed var(--line);
  border-radius: 6px;
  background: #fcfdfd;
}

.performance-filter-logic > span {
  display: flex;
  color: var(--gold-600);
}

.performance-filter-logic .icon {
  width: 14px;
  height: 14px;
}

.performance-filter-logic p {
  color: var(--text-faint);
  font-size: 8.5px;
  line-height: 1.55;
}

.performance-filter-logic strong {
  margin-right: 5px;
  color: var(--text-secondary);
  font-weight: 600;
}

.performance-active-bar {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 12px;
  padding: 10px 0 12px;
  border-top: 1px dashed var(--line);
}

.performance-active-chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 0;
}

.performance-active-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-right: 2px;
  color: var(--text-faint);
  font-size: 8px;
  letter-spacing: 0.2px;
}

.performance-active-label .icon {
  width: 10px;
  height: 10px;
  color: var(--gold-600);
}

.performance-active-empty {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--text-faint);
  font-size: 8.5px;
}

.performance-active-empty .icon {
  width: 11px;
  height: 11px;
  color: var(--gold-600);
}

.performance-chip {
  gap: 3px;
  padding: 4px 6px;
  border-color: var(--gold-200);
  background: #fdf9f1;
  color: #8b6a35;
  font-size: 8.5px;
}

.performance-chip-label {
  display: inline-block;
}

.performance-chip button {
  display: grid;
  width: 15px;
  height: 15px;
  place-items: center;
  border-radius: 3px;
  color: #b9a075;
}

.performance-chip button:hover {
  background: #f1e7d4;
  color: var(--gold-600);
}

.performance-chip .icon {
  width: 9px;
  height: 9px;
}

.performance-clear-all {
  padding: 2px 5px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--text-faint);
  font-size: 8px;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.performance-clear-all:hover {
  color: var(--danger);
}

/* --------------------------------------------------------------------------
   Results / table
   -------------------------------------------------------------------------- */

.performance-results {
  position: relative;
  min-height: 160px;
}

.performance-results.is-loading::before {
  position: absolute;
  z-index: 5;
  inset: 0;
  border-radius: var(--radius-md);
  background: rgba(248, 250, 251, 0.46);
  content: "";
}

.performance-results.is-loading::after {
  position: absolute;
  z-index: 6;
  top: 150px;
  left: calc(50% - 13px);
  width: 26px;
  height: 26px;
  border: 2px solid rgba(11, 31, 51, 0.12);
  border-top-color: var(--gold-500);
  border-radius: 50%;
  content: "";
  animation: performance-spin 700ms linear infinite;
}

.performance-results.is-loading .performance-table-card {
  opacity: 0.62;
  pointer-events: none;
}

.performance-results.is-loading .performance-mobile-list {
  pointer-events: none;
}

.performance-table-card {
  overflow: hidden;
  transition: opacity 180ms var(--ease);
}

.performance-table-card-head {
  align-items: flex-start;
  gap: 24px;
  padding: 17px 20px 15px;
}

.performance-table-kicker {
  display: block;
  color: var(--gold-700);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.8px;
}

.performance-table-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 3px;
}

.performance-table-title-row h2 {
  color: var(--ink-900);
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.performance-result-count {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 7px;
  border: 1px solid var(--gold-200);
  border-radius: 4px;
  background: var(--gold-050);
  color: var(--gold-600);
  font-family: var(--font-number);
  font-size: 9px;
  letter-spacing: 0.3px;
}

.performance-result-filtered {
  color: var(--text-faint);
  font-size: 8px;
}

.performance-table-heading > p {
  margin-top: 3px;
  color: var(--text-muted);
  font-size: 9px;
}

.performance-table-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
  padding-top: 1px;
}

.performance-sort-control {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-faint);
  font-size: 8.5px;
  white-space: nowrap;
}

.performance-sort-control .select {
  width: 178px;
  height: 31px;
  padding: 0 26px 0 8px;
  background-color: #fbfcfc;
  background-position: right 8px center;
  font-size: 9.5px;
}

.performance-page-size {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 31px;
  padding: 2px 3px 2px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fafb;
  color: var(--text-faint);
  font-size: 8.5px;
}

.performance-page-size button {
  display: grid;
  min-width: 27px;
  height: 24px;
  place-items: center;
  padding: 0 5px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-number);
  font-size: 9px;
  transition:
    color var(--speed),
    background var(--speed);
}

.performance-page-size button:hover {
  color: var(--ink-800);
}

.performance-page-size button.is-active {
  background: #fff;
  color: var(--ink-900);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(11, 31, 51, 0.1);
}

.performance-table-scroll {
  overflow-x: auto;
  scrollbar-width: thin;
}

.performance-table {
  width: 100%;
  min-width: 1040px;
  table-layout: fixed;
}

.performance-table thead th {
  padding-top: 10px;
  padding-bottom: 10px;
  font-size: 8.5px;
  letter-spacing: 0.4px;
}

.performance-table tbody td {
  padding-top: 14px;
  padding-bottom: 14px;
  border-color: #f0f3f5;
  font-size: 10px;
  vertical-align: middle;
}

.performance-table thead th:nth-child(1) { width: 26%; }
.performance-table thead th:nth-child(2) { width: 8%; }
.performance-table thead th:nth-child(3) { width: 9%; }
.performance-table thead th:nth-child(4) { width: 10%; }
.performance-table thead th:nth-child(5) { width: 13%; }
.performance-table thead th:nth-child(6) { width: 12%; }
.performance-table thead th:nth-child(7) { width: 8%; }
.performance-table thead th:nth-child(8) { width: 5%; }
.performance-table thead th:nth-child(9) { width: 9%; }

.performance-table tbody tr {
  position: relative;
}

.performance-table tbody tr:hover {
  background: #fcfbf8;
}

.performance-table tbody tr:hover td:first-child {
  box-shadow: inset 2px 0 0 var(--gold-400);
}

.performance-contract-cell {
  min-width: 0;
}

.performance-contract-name {
  display: block;
  width: 100%;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink-900);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.55;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color var(--speed);
}

.performance-contract-name:hover {
  color: var(--gold-600);
}

.performance-contract-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 3px;
}

.performance-contract-no {
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: -0.15px;
  line-height: 1.5;
}

.performance-source-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1.5px 5px;
  border: 1px solid #e5d7bd;
  border-radius: 3px;
  background: #fdf8ee;
  color: #9b773d;
  font-size: 7px;
  font-weight: 500;
  line-height: 1.5;
  white-space: nowrap;
}

.performance-source-tag .icon {
  width: 9px;
  height: 9px;
}

.performance-location {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.5;
}

.performance-location > span {
  overflow: hidden;
  color: var(--text-faint);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.performance-location > strong {
  overflow: hidden;
  color: var(--text-secondary);
  font-size: 10.5px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.performance-type {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  overflow: hidden;
  padding: 2px 6px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 8px;
  line-height: 1.55;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.performance-type.is-residential {
  border-color: #cfe5d9;
  background: #eef7f2;
  color: #38745a;
}

.performance-type.is-commercial {
  border-color: #eddfc3;
  background: #fcf7ed;
  color: #987039;
}

.performance-type.is-office {
  border-color: #d2e2ec;
  background: #eff6fa;
  color: #376b88;
}

.performance-type.is-hospital {
  border-color: #efd6d2;
  background: #fcf1ef;
  color: #a65649;
}

.performance-type.is-school {
  border-color: #d8e3e6;
  background: #f1f7f7;
  color: #477578;
}

.performance-type.is-park {
  border-color: #d7dfe8;
  background: #f3f6f9;
  color: #506a83;
}

.performance-type.is-venue {
  border-color: #e3d9e8;
  background: #f8f4fa;
  color: #785f86;
}

.performance-type.is-government {
  border-color: #dce3e8;
  background: #f4f7f8;
  color: #5a6f7d;
}

.performance-type.is-transit {
  border-color: #d1e6e4;
  background: #f0f8f7;
  color: #3e7772;
}

.performance-type.is-other {
  border-color: #e6eaed;
  background: #f6f8f9;
  color: var(--text-muted);
}

.performance-amount {
  color: var(--ink-900);
  font-family: var(--font-number);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.1px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.performance-amount-restricted {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--text-faint);
  font-size: 8.5px;
  white-space: nowrap;
}

.performance-amount-restricted .icon {
  width: 11px;
  height: 11px;
}

.performance-term {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.45;
}

.performance-term > span {
  color: var(--text-secondary);
  font-family: var(--font-number);
  font-size: 11px;
  letter-spacing: -0.15px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.performance-term > span i {
  margin: 0 4px;
  color: var(--gold-500);
  font-style: normal;
  font-size: 10px;
}

.performance-term > small {
  color: var(--gold-700);
  font-size: 10.5px;
}

/* 到期风险色阶：>90 天 中性金；≤90 天 警示橙；≤30 天或已过期 危险红。
   与人员资质页的证书到期色阶保持一致。 */
.performance-term > small.is-warning {
  color: var(--warning-text);
  font-weight: 600;
}

.performance-term > small.is-urgent {
  color: var(--danger-text);
  font-weight: 600;
}

.performance-term.is-ended > span {
  color: var(--text-faint);
}

.performance-term.is-ended > span i {
  color: var(--line-strong);
}

.performance-term.is-ended > small {
  color: var(--text-faint);
  font-weight: 400;
}

.performance-staff-cell {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
  line-height: 1.4;
}

.performance-staff-cell > span {
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 9px;
  white-space: nowrap;
}

.performance-staff-cell b {
  color: var(--ink-900);
  font-family: var(--font-number);
  font-size: 12px;
  font-weight: 600;
}

.performance-staff-cell small {
  overflow: hidden;
  color: var(--text-faint);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.performance-file-quick {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 23px;
  padding: 0 5px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fbfcfc;
  color: var(--text-muted);
  font-family: var(--font-number);
  font-size: 9px;
  transition: all var(--speed);
}

.performance-file-quick:hover {
  border-color: var(--gold-300);
  background: var(--gold-050);
  color: var(--gold-600);
}

.performance-file-quick .icon {
  width: 11px;
  height: 11px;
}

.performance-file-quick small {
  color: var(--text-faint);
  font-size: 7px;
}

.performance-file-count {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--text-faint);
  font-size: 8.5px;
}

.performance-file-count .icon {
  width: 11px;
  height: 11px;
}

.performance-cell-muted {
  color: var(--text-faint);
  font-size: 9px;
}

.performance-row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1px;
}

.performance-row-actions .icon-btn {
  width: 27px;
  height: 27px;
  border-radius: 6px;
}

.performance-row-actions .icon-btn .icon {
  width: 13px;
  height: 13px;
}

.performance-row-actions .icon-btn:hover {
  border-color: var(--line);
  background: #fff;
}

.performance-table-footer {
  padding: 11px 20px;
}

.performance-empty-wrap {
  padding: 22px 20px 30px;
}

.performance-empty-wrap .empty-state {
  min-height: 260px;
}

.performance-inline-error {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 18px 20px;
  border: 1px solid var(--danger-line);
  border-radius: var(--radius-md);
  background: #fffaf9;
}

.performance-inline-error-icon {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  background: var(--danger-bg);
  color: var(--danger);
}

.performance-inline-error-icon .icon {
  width: 17px;
  height: 17px;
}

.performance-inline-error > div:nth-child(2) {
  flex: 1;
  min-width: 0;
}

.performance-inline-error h3 {
  color: var(--ink-900);
  font-size: 11.5px;
  font-weight: 600;
}

.performance-inline-error p {
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 9.5px;
}

/* Mobile cards */

.performance-mobile-list {
  display: none;
  flex-direction: column;
  gap: 9px;
}

.performance-mobile-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.performance-mobile-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.performance-mobile-card-head > div {
  min-width: 0;
}

.performance-mobile-index {
  display: block;
  margin-bottom: 2px;
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: -0.1px;
}

.performance-mobile-title {
  display: block;
  width: 100%;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink-900);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.55;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.performance-mobile-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}

.performance-location-inline {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--text-muted);
  font-size: 8.5px;
}

.performance-location-inline .icon {
  width: 10px;
  height: 10px;
  color: var(--gold-600);
}

.performance-mobile-stats {
  display: grid;
  grid-template-columns: 1.25fr 0.8fr 0.65fr;
  gap: 8px;
  margin-top: 11px;
  padding: 9px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  background: #fafcfc;
}

.performance-mobile-stats > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.performance-mobile-stats > div + div {
  padding-left: 8px;
  border-left: 1px solid var(--line-soft);
}

.performance-mobile-stats > div > span {
  color: var(--text-faint);
  font-size: 7.5px;
}

.performance-mobile-stats > div > strong {
  overflow: hidden;
  color: var(--text-secondary);
  font-family: var(--font-number);
  font-size: 10.5px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.performance-mobile-stats > div > strong small {
  color: var(--text-faint);
  font-family: var(--font-sans);
  font-size: 7.5px;
}

.performance-mobile-term {
  margin-top: 8px;
}

.performance-mobile-term .performance-term {
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.performance-mobile-term .performance-term > small {
  padding-left: 7px;
  border-left: 1px solid var(--line);
}

.performance-mobile-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px dashed var(--line-soft);
}

.performance-mobile-card-foot > span {
  overflow: hidden;
  color: var(--text-faint);
  font-size: 8.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.performance-mobile-actions {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 3px;
}

.performance-mobile-actions .btn {
  height: 27px;
  padding: 0 8px;
  font-size: 9px;
}

.performance-mobile-actions .icon-btn {
  width: 27px;
  height: 27px;
}

/* Page footnote */

.performance-page-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 7px 18px;
  padding: 1px 4px 0;
  color: var(--text-faint);
  font-size: 8px;
  line-height: 1.6;
}

.performance-page-note span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.performance-page-note .icon {
  width: 10px;
  height: 10px;
  color: var(--gold-600);
}

/* --------------------------------------------------------------------------
   Shared form additions for this page
   -------------------------------------------------------------------------- */

.performance-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px 14px;
}

.performance-form-field {
  gap: 5px;
}

.performance-form-field .field-label {
  font-size: 9.5px;
}

.performance-form-field .input {
  height: 36px;
  font-size: 11px;
}

.performance-form-field .textarea {
  min-height: 74px;
  height: auto;
  padding: 9px 10px;
  line-height: 1.65;
}

.performance-form-field .select {
  padding-right: 28px;
  background-position: right 9px center;
}

.performance-span-2 {
  grid-column: span 2;
}

.performance-span-3 {
  grid-column: span 3;
}

.performance-form-section {
  margin-top: 19px;
}

.performance-form-section:first-of-type {
  margin-top: 17px;
}

.performance-form-section-title {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 11px;
}

.performance-form-section-title > span {
  color: var(--gold-600);
  font-family: var(--font-number);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.6px;
}

.performance-form-section-title > strong {
  color: var(--ink-900);
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.4px;
}

.performance-form-section-title > i {
  flex: 1;
  height: 1px;
  background: var(--line-soft);
}

.performance-form-section-title > em {
  color: var(--text-faint);
  font-family: var(--font-number);
  font-size: 7.5px;
  font-style: normal;
  letter-spacing: 0.8px;
}

.performance-form-alert {
  margin-bottom: 3px;
  padding: 9px 11px;
  border: 1px solid var(--danger-line);
  border-radius: 7px;
  background: var(--danger-bg);
  color: var(--danger);
  font-size: 10px;
  line-height: 1.65;
}

.performance-form-summary {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 12px;
  border: 1px solid var(--line-soft);
  border-radius: 9px;
  background: linear-gradient(112deg, #fbfaf6, #fcfdfd);
}

.performance-form-summary-icon {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--gold-200);
  border-radius: 8px;
  background: var(--gold-050);
  color: var(--gold-600);
}

.performance-form-summary-icon .icon {
  width: 15px;
  height: 15px;
}

.performance-form-summary > div:nth-child(2) {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 1px;
}

.performance-form-summary strong {
  color: var(--ink-900);
  font-size: 10.5px;
  font-weight: 600;
}

.performance-form-summary span {
  color: var(--text-muted);
  font-size: 8.5px;
  line-height: 1.55;
}

.performance-form-source-current {
  flex: 0 0 auto;
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: var(--text-faint) !important;
  font-size: 7.5px !important;
}

.performance-form-locked {
  display: flex;
  grid-column: span 3;
  align-items: center;
  gap: 5px;
  padding: 8px 10px;
  border: 1px dashed var(--warning-line);
  border-radius: 6px;
  background: #fffaf2;
  color: var(--warning);
  font-size: 8.5px;
}

.performance-form-locked .icon {
  width: 12px;
  height: 12px;
}

.performance-form-source-locked {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--gold-200);
  border-radius: 7px;
  background: var(--gold-050);
  color: var(--gold-600);
}

.performance-form-source-locked .icon {
  width: 14px;
  height: 14px;
}

.performance-form-source-locked > span {
  display: flex;
  flex-direction: column;
  gap: 0;
  color: #8d6c35;
  font-size: 9.5px;
  line-height: 1.3;
}

.performance-form-source-locked small {
  color: #b09a78;
  font-size: 7px;
}

.performance-form-caption {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  align-self: end;
  min-height: 36px;
  padding: 7px 9px;
  border: 1px dashed var(--line);
  border-radius: 6px;
  background: #fcfdfd;
}

.performance-form-caption > span {
  display: flex;
  margin-top: 2px;
  color: var(--gold-600);
}

.performance-form-caption .icon {
  width: 11px;
  height: 11px;
}

.performance-form-caption p {
  color: var(--text-faint);
  font-size: 8px;
  line-height: 1.55;
}

/* Staff editor */

.performance-staff-editor {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fcfdfd;
}

.performance-staff-table-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px 34px;
  gap: 8px;
  padding: 7px 10px;
  border-bottom: 1px solid var(--line-soft);
  background: #f7f9fa;
  color: var(--text-faint);
  font-size: 8px;
}

.performance-staff-rows {
  display: flex;
  flex-direction: column;
}

.performance-staff-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px 34px;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-bottom: 1px solid var(--line-soft);
}

.performance-staff-row:last-child {
  border-bottom: 0;
}

.performance-staff-row .input {
  height: 31px;
  border-color: #e2e8ec;
  background: #fff;
  font-size: 10px;
}

.performance-staff-row .icon-btn {
  width: 27px;
  height: 27px;
}

.performance-staff-row .icon-btn .icon {
  width: 13px;
  height: 13px;
}

.performance-staff-editor-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-top: 1px dashed var(--line);
  background: #fafcfc;
}

.performance-staff-editor-foot .btn {
  height: 27px;
  padding: 0 8px;
  font-size: 9px;
}

.performance-staff-editor-total {
  color: var(--text-faint);
  font-size: 8.5px;
}

.performance-staff-editor-total b {
  margin: 0 2px;
  color: var(--gold-600);
  font-family: var(--font-number);
  font-size: 11px;
  font-weight: 600;
}

.performance-form-modal .modal-body {
  padding-top: 17px;
}

.performance-form-modal .modal-foot {
  gap: 8px;
}

/* --------------------------------------------------------------------------
   PDF intelligence modal
   -------------------------------------------------------------------------- */

.performance-pdf-modal {
  max-width: 1080px;
}

.performance-pdf-modal .modal-head {
  padding-top: 19px;
  padding-bottom: 15px;
  background:
    radial-gradient(circle at 88% 0%, rgba(201, 166, 107, 0.1), transparent 30%),
    linear-gradient(118deg, #fdfbf7, #fff);
}

.performance-pdf-modal .modal-head h2 {
  font-size: 23px;
}

.performance-pdf-modal .modal-head p {
  max-width: 660px;
}

.performance-pdf-modal .modal-body {
  padding: 20px 24px 22px;
  background: #f7f9fa;
}

.performance-pdf-modal .modal-foot {
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 13px;
  padding-bottom: 13px;
  background: #fff;
}

.performance-pdf-footnote {
  flex: 1;
  color: var(--text-faint);
  font-size: 8.5px;
  line-height: 1.5;
  text-align: right;
}

.performance-pdf-modal .modal-foot .btn-ghost {
  order: 0;
}

.performance-pdf-shell {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.performance-pdf-hero {
  position: relative;
  display: flex;
  overflow: hidden;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 168px;
  padding: 22px 25px;
  border-radius: 12px;
  background:
    radial-gradient(circle at 87% 12%, rgba(201, 166, 107, 0.18), transparent 33%),
    linear-gradient(118deg, #081725 0%, #0b2033 55%, #15354d 100%);
  color: #f2ede4;
}

.performance-pdf-hero::before {
  position: absolute;
  top: -65px;
  right: 8%;
  width: 240px;
  height: 240px;
  border: 1px solid rgba(220, 192, 140, 0.11);
  border-radius: 50%;
  box-shadow:
    0 0 0 26px rgba(220, 192, 140, 0.02),
    0 0 0 54px rgba(220, 192, 140, 0.015);
  content: "";
}

.performance-pdf-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 670px;
}

.performance-pdf-kicker {
  display: block;
  color: rgba(220, 192, 140, 0.62);
  font-family: var(--font-number);
  font-size: 7.5px;
  font-weight: 600;
  letter-spacing: 1.9px;
}

.performance-pdf-hero h3 {
  margin-top: 7px;
  color: #f8f2e7;
  font-family: var(--font-serif);
  font-size: 23px;
  font-weight: 500;
  letter-spacing: 0.7px;
  line-height: 1.35;
}

.performance-pdf-hero-copy > p {
  max-width: 600px;
  margin-top: 6px;
  color: rgba(242, 237, 228, 0.46);
  font-size: 9.5px;
  line-height: 1.7;
}

.performance-pdf-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 13px;
}

.performance-pdf-hero-tags span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 7px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(242, 237, 228, 0.56);
  font-size: 7.5px;
}

.performance-pdf-hero-tags .icon {
  width: 10px;
  height: 10px;
  color: var(--gold-300);
}

.performance-pdf-hero-art {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
  color: rgba(220, 192, 140, 0.38);
}

.performance-pdf-hero-art > span {
  display: grid;
  width: 58px;
  height: 72px;
  place-items: center;
  border: 1px solid rgba(220, 192, 140, 0.2);
  border-radius: 7px;
  background:
    linear-gradient(135deg, rgba(220, 192, 140, 0.11), rgba(220, 192, 140, 0.025)),
    rgba(255, 255, 255, 0.035);
  color: rgba(242, 237, 228, 0.8);
  font-family: var(--font-number);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.3px;
}

.performance-pdf-hero-art > span.is-word {
  width: 67px;
  height: 82px;
  border-color: rgba(201, 166, 107, 0.35);
  background:
    linear-gradient(140deg, rgba(201, 166, 107, 0.24), rgba(201, 166, 107, 0.05)),
    rgba(255, 255, 255, 0.05);
  color: var(--gold-200);
}

.performance-pdf-hero-art > i {
  color: rgba(220, 192, 140, 0.4);
  font-style: normal;
  font-size: 12px;
}

.performance-pdf-hero-art small {
  position: absolute;
  right: 0;
  bottom: -17px;
  color: rgba(242, 237, 228, 0.2);
  font-family: var(--font-number);
  font-size: 5.5px;
  letter-spacing: 1.6px;
}

.performance-pdf-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(270px, 0.9fr);
  gap: 14px;
}

.performance-pdf-upload-column {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.performance-pdf-upload-column > .performance-pdf-dropzone {
  flex: 1;
}

.performance-pdf-dropzone {
  display: flex;
  min-height: 256px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 22px;
  border: 1.5px dashed #cfd9df;
  border-radius: 11px;
  background:
    radial-gradient(circle at 50% 40%, rgba(184, 148, 88, 0.035), transparent 45%),
    #fff;
  color: var(--text-muted);
  text-align: center;
  cursor: pointer;
  transition:
    border-color 180ms var(--ease),
    background 180ms var(--ease),
    transform 180ms var(--ease);
}

.performance-pdf-dropzone:hover {
  border-color: var(--gold-400);
  background: #fffdf9;
}

.performance-pdf-dropzone.is-dragging {
  border-color: var(--gold-500);
  background: #fdf8ee;
  transform: scale(1.006);
}

.performance-pdf-dropzone.has-file {
  align-items: stretch;
  justify-content: center;
  border-style: solid;
  border-color: #dbe3e7;
  background: #fff;
  cursor: default;
}

.performance-pdf-dropzone.has-error {
  border-color: var(--danger-line);
}

.performance-pdf-drop-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  margin-bottom: 3px;
  border: 1px solid var(--gold-200);
  border-radius: 13px;
  background: linear-gradient(145deg, #fdf8ee, #f7efdf);
  color: var(--gold-600);
  box-shadow: 0 5px 16px rgba(184, 148, 88, 0.08);
}

.performance-pdf-drop-icon .icon {
  width: 21px;
  height: 21px;
}

.performance-pdf-dropzone > strong {
  color: var(--ink-900);
  font-size: 12px;
  font-weight: 600;
}

.performance-pdf-dropzone > span {
  color: var(--text-faint);
  font-size: 8.5px;
}

.performance-pdf-dropzone > .btn {
  margin-top: 7px;
  pointer-events: none;
}

.performance-pdf-drop-hint {
  margin-top: 4px;
  color: var(--text-faint) !important;
  font-size: 7.5px !important;
  letter-spacing: 0.15px;
}

.performance-pdf-selected {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: linear-gradient(115deg, #fcfdfd, #fafbfb);
  text-align: left;
}

.performance-pdf-selected-icon {
  display: grid;
  width: 42px;
  height: 50px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #efd9d4;
  border-radius: 7px;
  background: #fbf0ed;
  color: var(--danger);
}

.performance-pdf-selected-icon .icon {
  width: 20px;
  height: 20px;
}

.performance-pdf-selected-copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 3px;
}

.performance-pdf-selected-copy strong {
  overflow: hidden;
  color: var(--ink-900);
  font-size: 11.5px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.performance-pdf-selected-copy span {
  color: var(--text-faint);
  font-size: 8.5px;
}

.performance-pdf-selected-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  margin-top: 13px;
}

.performance-pdf-selected-actions .btn {
  height: 36px;
}

.performance-pdf-brief {
  display: flex;
  flex-direction: column;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
}

.performance-pdf-brief-head {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line-soft);
}

.performance-pdf-brief-head span {
  color: var(--gold-600);
  font-family: var(--font-number);
  font-size: 6.5px;
  letter-spacing: 1.5px;
}

.performance-pdf-brief-head strong {
  color: var(--ink-900);
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 600;
}

.performance-pdf-capabilities {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 7px;
  padding: 11px 0 12px;
}

.performance-pdf-capabilities li {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 9px;
  line-height: 1.5;
}

.performance-pdf-capabilities .icon {
  width: 11px;
  height: 11px;
  margin-top: 2px;
  color: var(--success);
}

.performance-pdf-ocr-note {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  padding: 9px 10px;
  border: 1px solid var(--warning-line);
  border-radius: 7px;
  background: #fffaf2;
}

.performance-pdf-ocr-note > .icon {
  width: 13px;
  height: 13px;
  margin-top: 2px;
  flex: 0 0 auto;
  color: var(--warning);
}

.performance-pdf-ocr-note p {
  color: #8d6a3d;
  font-size: 8px;
  line-height: 1.6;
}

.performance-pdf-ocr-note strong {
  display: block;
  margin-bottom: 1px;
  color: var(--warning);
  font-size: 8.5px;
}

.performance-pdf-error {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 13px;
  border: 1px solid var(--danger-line);
  border-radius: 9px;
  background: #fff9f8;
}

.performance-pdf-error-icon {
  display: grid;
  width: 31px;
  height: 31px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 7px;
  background: var(--danger-bg);
  color: var(--danger);
}

.performance-pdf-error-icon .icon {
  width: 15px;
  height: 15px;
}

.performance-pdf-error > div:nth-child(2) {
  flex: 1;
  min-width: 0;
}

.performance-pdf-error strong {
  color: var(--danger);
  font-size: 10px;
  font-weight: 600;
}

.performance-pdf-error p {
  margin-top: 2px;
  color: var(--text-secondary);
  font-size: 9px;
  line-height: 1.6;
}

.performance-pdf-error span {
  display: block;
  margin-top: 2px;
  color: var(--text-faint);
  font-size: 8px;
  line-height: 1.5;
}

.performance-pdf-error .btn {
  flex: 0 0 auto;
}

/* PDF progress */

.performance-pdf-progress-shell {
  display: flex;
  min-height: 420px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    radial-gradient(circle at 50% 15%, rgba(184, 148, 88, 0.07), transparent 35%),
    #fff;
  text-align: center;
}

.performance-pdf-progress-emblem {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  margin-bottom: 17px;
  border: 1px solid var(--gold-200);
  border-radius: 18px;
  background: linear-gradient(145deg, #fdf9f1, #f5ead7);
  color: var(--gold-600);
  box-shadow: 0 12px 28px rgba(184, 148, 88, 0.12);
  animation: performance-float 2.8s ease-in-out infinite;
}

.performance-pdf-progress-emblem .icon {
  width: 27px;
  height: 27px;
}

.performance-pdf-progress-shell .performance-pdf-kicker {
  color: var(--gold-600);
}

.performance-pdf-progress-shell h3 {
  margin-top: 8px;
  color: var(--ink-900);
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
}

.performance-pdf-progress-shell > p {
  max-width: 430px;
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 9.5px;
  line-height: 1.7;
}

.performance-pdf-progress {
  width: min(400px, 100%);
  margin-top: 22px;
}

.performance-pdf-progress-bar {
  height: 5px;
  overflow: hidden;
  border-radius: 99px;
  background: #eef2f4;
}

.performance-pdf-progress-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #b89458, #d4b77f);
  transition: width 240ms var(--ease);
}

.performance-pdf-progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 7px;
}

.performance-pdf-progress-meta span {
  color: var(--text-muted);
  font-size: 8.5px;
  text-align: left;
}

.performance-pdf-progress-meta strong {
  color: var(--gold-600);
  font-family: var(--font-number);
  font-size: 10px;
  font-weight: 500;
}

.performance-pdf-progress-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
}

.performance-pdf-progress-steps span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--text-faint);
  font-size: 8px;
}

.performance-pdf-progress-steps span.is-active {
  color: var(--ink-700);
}

.performance-pdf-progress-steps .icon {
  width: 11px;
  height: 11px;
}

.performance-pdf-progress-file {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  margin-top: 18px;
  padding: 4px 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fbfcfc;
  color: var(--text-faint);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.performance-pdf-progress-file .icon {
  width: 11px;
  height: 11px;
  color: var(--danger);
}

/* PDF result */

.performance-pdf-result {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.performance-pdf-result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background:
    radial-gradient(circle at 88% 0%, rgba(201, 166, 107, 0.1), transparent 33%),
    linear-gradient(115deg, #fffdf9, #fff);
}

.performance-pdf-result-copy {
  min-width: 0;
}

.performance-pdf-result-copy .performance-pdf-kicker {
  color: var(--gold-600);
}

.performance-pdf-result-copy h3 {
  margin-top: 4px;
  color: var(--ink-900);
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.performance-pdf-result-copy > p {
  margin-top: 3px;
  overflow: hidden;
  color: var(--text-muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.performance-pdf-result-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.performance-confidence {
  position: relative;
  display: grid;
  width: 96px;
  height: 96px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(
    var(--gold-500) var(--performance-confidence, 0%),
    rgba(11, 31, 51, 0.075) 0
  );
}

.performance-confidence::before {
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  background: #fffdfa;
  content: "";
}

.performance-confidence > div {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.performance-confidence strong {
  color: var(--ink-900);
  font-family: var(--font-number);
  font-size: 25px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.8px;
}

.performance-confidence strong small {
  margin-left: 1px;
  color: var(--text-muted);
  font-size: 9px;
}

.performance-confidence span {
  color: var(--text-faint);
  font-size: 7px;
  letter-spacing: 0.2px;
}

.performance-confidence.is-high {
  background: conic-gradient(
    var(--success) var(--performance-confidence, 0%),
    rgba(11, 31, 51, 0.075) 0
  );
}

.performance-confidence.is-medium {
  background: conic-gradient(
    var(--gold-500) var(--performance-confidence, 0%),
    rgba(11, 31, 51, 0.075) 0
  );
}

.performance-confidence.is-low {
  background: conic-gradient(
    var(--warning) var(--performance-confidence, 0%),
    rgba(11, 31, 51, 0.075) 0
  );
}

.performance-pdf-result-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.88fr);
  align-items: start;
  gap: 14px;
}

.performance-pdf-result-main {
  min-width: 0;
}

.performance-pdf-form {
  padding: 17px 18px 19px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
}

.performance-pdf-form .performance-form-section {
  margin-top: 0;
}

.performance-pdf-form .performance-form-section + .performance-form-section {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
}

.performance-pdf-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px 12px;
}

.performance-pdf-form .performance-span-2 {
  grid-column: span 2;
}

.performance-pdf-form .performance-span-3 {
  grid-column: span 2;
}

.performance-pdf-form .performance-form-field .input {
  height: 34px;
  font-size: 10.5px;
}

.performance-pdf-form .performance-form-field .textarea {
  min-height: 66px;
}

.performance-pdf-form .performance-form-locked {
  grid-column: span 2;
}

.performance-pdf-form .performance-form-summary {
  display: none;
}

.performance-pdf-form .performance-staff-table-head,
.performance-pdf-form .performance-staff-row {
  grid-template-columns: minmax(0, 1fr) 88px 30px;
}

.performance-pdf-insights {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.performance-pdf-insight-card {
  padding: 13px 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
}

.performance-pdf-insight-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.performance-pdf-insight-title > span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--text-secondary);
  font-size: 9px;
  font-weight: 600;
}

.performance-pdf-insight-title .icon {
  width: 12px;
  height: 12px;
  color: var(--gold-600);
}

.performance-pdf-insight-title > b {
  padding: 1px 5px;
  border-radius: 3px;
  background: var(--warning-bg);
  color: var(--warning);
  font-size: 7px;
  font-weight: 500;
}

.performance-pdf-warnings {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 9px;
}

.performance-pdf-warnings li {
  position: relative;
  padding: 6px 7px 6px 20px;
  border: 1px solid #f1e3ca;
  border-radius: 5px;
  background: #fffaf1;
  color: #846340;
  font-size: 8px;
  line-height: 1.55;
}

.performance-pdf-warnings li::before {
  position: absolute;
  top: 9px;
  left: 8px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold-500);
  content: "";
}

.performance-pdf-clean {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-top: 9px;
  padding: 8px 9px;
  border: 1px solid var(--success-line);
  border-radius: 6px;
  background: var(--success-bg);
}

.performance-pdf-clean .icon {
  width: 14px;
  height: 14px;
  margin-top: 1px;
  color: var(--success);
}

.performance-pdf-clean p {
  color: #3f705c;
  font-size: 8px;
  line-height: 1.55;
}

.performance-pdf-clean strong {
  display: block;
  color: var(--success);
  font-size: 8.5px;
}

.performance-pdf-file-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 9px;
}

.performance-pdf-file-row {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.performance-pdf-file-icon {
  display: grid;
  width: 24px;
  height: 27px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 4px;
  background: #f7f2ea;
  color: var(--gold-600);
}

.performance-pdf-file-icon .icon {
  width: 13px;
  height: 13px;
}

.performance-pdf-file-row > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.performance-pdf-file-row strong {
  overflow: hidden;
  color: var(--text-secondary);
  font-size: 8px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.performance-pdf-file-row small {
  color: var(--text-faint);
  font-size: 7px;
}

.performance-permission-note,
.performance-permission-ok {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  margin-top: 9px;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
  color: var(--text-faint);
  font-size: 7.5px;
  line-height: 1.55;
}

.performance-permission-note .icon,
.performance-permission-ok .icon {
  width: 10px;
  height: 10px;
  margin-top: 1px;
  flex: 0 0 auto;
}

.performance-permission-note {
  color: var(--warning);
}

.performance-permission-ok {
  color: var(--success);
}

.performance-pdf-preview-card {
  padding: 0;
  overflow: hidden;
}

.performance-text-preview summary {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 12px 13px;
  color: var(--text-secondary);
  font-size: 9px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

.performance-text-preview summary::-webkit-details-marker {
  display: none;
}

.performance-text-preview summary::after {
  margin-left: auto;
  color: var(--text-faint);
  content: "+";
  font-size: 12px;
  font-weight: 400;
}

.performance-text-preview[open] summary::after {
  content: "−";
}

.performance-text-preview summary .icon {
  width: 12px;
  height: 12px;
  color: var(--gold-600);
}

.performance-text-preview summary span {
  margin-left: auto;
  margin-right: 5px;
  color: var(--text-faint);
  font-size: 7px;
  font-weight: 400;
}

.performance-text-preview pre {
  max-height: 225px;
  margin: 0;
  padding: 10px 12px 12px;
  overflow: auto;
  border-top: 1px solid var(--line-soft);
  background: #fbfcfc;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 7.5px;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
}

.performance-pdf-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  padding: 2px 3px;
  color: var(--text-faint);
  font-size: 7.5px;
  line-height: 1.55;
}

.performance-pdf-disclaimer .icon {
  width: 10px;
  height: 10px;
  margin-top: 1px;
  flex: 0 0 auto;
  color: var(--gold-600);
}

/* --------------------------------------------------------------------------
   Detail drawer
   -------------------------------------------------------------------------- */

.performance-detail-drawer .drawer-head {
  padding-bottom: 16px;
}

.performance-detail-drawer .drawer-head h2 {
  font-size: 21px;
  line-height: 1.4;
}

.performance-detail-drawer .drawer-body {
  padding-top: 18px;
}

.performance-detail-cover {
  position: relative;
  display: flex;
  overflow: hidden;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
  padding: 17px 18px;
  border-radius: 11px;
  background:
    radial-gradient(circle at 92% 5%, rgba(201, 166, 107, 0.15), transparent 35%),
    linear-gradient(118deg, #081725, #0d253b 60%, #123149);
  color: #f2ede4;
}

.performance-detail-cover-main {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.performance-detail-kicker {
  color: rgba(220, 192, 140, 0.54);
  font-family: var(--font-number);
  font-size: 6.5px;
  letter-spacing: 1.7px;
}

.performance-detail-amount-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 5px;
}

.performance-detail-amount {
  color: #f8f1e4;
  font-family: var(--font-number);
  font-size: 25px;
  font-weight: 500;
  letter-spacing: -0.5px;
}

.performance-detail-amount.is-restricted {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: rgba(242, 237, 228, 0.52);
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0;
}

.performance-detail-amount.is-restricted .icon {
  width: 14px;
  height: 14px;
}

.performance-detail-amount-row .badge {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.08);
  color: #d9e7dc;
}

.performance-detail-subline {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 12px;
  margin-top: 7px;
}

.performance-detail-subline > span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: rgba(242, 237, 228, 0.46);
  font-size: 8px;
}

.performance-detail-subline .icon {
  width: 11px;
  height: 11px;
  color: rgba(220, 192, 140, 0.6);
}

.performance-detail-subline .performance-detail-source {
  color: var(--gold-300);
}

.performance-detail-cover-mark {
  position: absolute;
  right: 15px;
  bottom: -18px;
  color: rgba(242, 237, 228, 0.055);
  font-family: var(--font-number);
  font-size: 76px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -4px;
  pointer-events: none;
}

.performance-detail-grid {
  gap: 13px 17px;
}

.performance-detail-grid .detail-value {
  font-size: 10.5px;
}

.performance-detail-grid .detail-value.is-muted {
  color: var(--text-faint);
}

.performance-detail-grid .detail-value .icon {
  display: inline-block;
  width: 11px;
  height: 11px;
  vertical-align: -2px;
}

.performance-extraction-card {
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(115deg, #fbfaf6, #fcfdfd);
}

.performance-extraction-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.performance-extraction-confidence {
  flex: 1;
  min-width: 0;
}

.performance-confidence-bar {
  width: 100%;
  max-width: 220px;
  height: 4px;
  overflow: hidden;
  border-radius: 99px;
  background: #edf1f2;
}

.performance-confidence-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-300));
}

.performance-extraction-confidence > span {
  display: block;
  margin-top: 5px;
  color: var(--text-muted);
  font-size: 8px;
}

.performance-extraction-confidence b {
  color: var(--ink-900);
  font-family: var(--font-number);
  font-size: 11px;
  font-weight: 500;
}

.performance-extraction-source {
  max-width: 55%;
  overflow: hidden;
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: var(--text-faint);
  font-size: 7.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.performance-extraction-source .icon {
  width: 10px;
  height: 10px;
  color: var(--danger);
  vertical-align: -1px;
}

.performance-extraction-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
}

.performance-extraction-meta span {
  color: var(--text-faint);
  font-size: 8px;
}

.performance-extraction-meta b {
  color: var(--text-secondary);
  font-weight: 500;
}

.performance-detail-staff-total {
  color: var(--gold-600);
  font-family: var(--font-number);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.2px;
}

.performance-detail-table-wrap {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.performance-mini-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 9px;
}

.performance-mini-table th {
  padding: 7px 11px;
  border-bottom: 1px solid var(--line);
  background: #f8fafb;
  color: var(--text-faint);
  font-size: 8px;
  font-weight: 500;
  text-align: left;
}

.performance-mini-table td {
  padding: 8px 11px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--text-secondary);
}

.performance-mini-table tr:last-child td {
  border-bottom: 0;
}

.performance-mini-table th:nth-child(2),
.performance-mini-table td:nth-child(2) {
  width: 85px;
  text-align: right;
}

.performance-mini-table th:nth-child(3),
.performance-mini-table td:nth-child(3) {
  width: 80px;
  text-align: right;
  color: var(--text-faint);
}

.performance-mini-table .performance-mini-table-total td {
  border-top: 1px solid var(--line);
  background: #fcfbf8;
  color: var(--ink-900);
  font-weight: 600;
}

.performance-mini-table .performance-mini-table-total td:first-child {
  color: var(--gold-600);
  font-size: 8px;
  letter-spacing: 0.4px;
}

.performance-inline-empty {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 13px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--text-faint);
  font-size: 9px;
}

.performance-inline-empty .icon {
  width: 13px;
  height: 13px;
}

.performance-detail-drawer .drawer-section-title {
  letter-spacing: 1.2px;
}

.performance-detail-drawer .drawer-section-title .btn {
  height: 24px;
  padding: 0 7px;
  font-size: 8px;
  letter-spacing: 0;
  text-transform: none;
}

.performance-detail-drawer .attachment-row {
  padding: 8px 9px;
}

.performance-detail-drawer .drawer-foot {
  align-items: center;
}

.performance-detail-delete {
  margin-right: auto;
  color: var(--danger) !important;
  border-color: transparent !important;
}

.performance-detail-delete:hover {
  background: var(--danger-bg) !important;
  border-color: var(--danger-line) !important;
}

.performance-upload-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 7px;
  color: var(--text-muted);
  font-size: 8px;
}

.performance-upload-progress > i {
  display: block;
  width: 90px;
  height: 3px;
  overflow: hidden;
  border-radius: 99px;
  background: #edf1f2;
}

.performance-upload-progress > i::after {
  display: block;
  width: 45%;
  height: 100%;
  border-radius: inherit;
  background: var(--gold-500);
  content: "";
  animation: performance-progress 1.2s ease-in-out infinite;
}

.performance-detail-drawer .performance-source-tag {
  vertical-align: -1px;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1320px) {
  .performance-portfolio {
    padding: 18px 20px 20px;
  }

  .performance-summary-metric {
    padding: 0 14px;
  }

  .performance-summary-value {
    font-size: 26px;
  }

  .performance-summary-money {
    font-size: 21px;
  }

  .performance-filter-grid,
  .performance-filter-more-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .performance-filter-keyword {
    grid-column: span 2;
  }

  .performance-filter-locked {
    grid-column: span 2;
  }

  .performance-filter-logic {
    grid-column: span 2;
  }

  .performance-table {
    min-width: 1000px;
  }

  .performance-pdf-result-grid {
    grid-template-columns: minmax(0, 1.45fr) minmax(270px, 0.9fr);
  }
}

@media (max-width: 1120px) {
  .performance-portfolio-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .performance-portfolio-sync {
    max-width: 100%;
    justify-content: flex-start;
    padding-top: 0;
  }

  .performance-portfolio-metrics {
    margin-top: 13px;
    padding-top: 13px;
  }

  .performance-summary-metric {
    padding: 0 11px;
  }

  .performance-summary-value {
    font-size: 23px;
  }

  .performance-summary-value small {
    font-size: 8px;
  }

  .performance-summary-money {
    font-size: 18px;
  }

  .performance-summary-metric p {
    font-size: 7.5px;
  }

  .performance-summary-restricted {
    font-size: 10px;
  }

  .performance-filter-head {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .performance-filter-actions {
    justify-content: flex-start;
    padding-top: 0;
  }

  .performance-table-tools {
    gap: 6px;
  }

  .performance-sort-control .select {
    width: 165px;
  }

  .performance-pdf-workspace {
    grid-template-columns: minmax(0, 1.4fr) minmax(250px, 0.9fr);
  }

  .performance-pdf-result-head {
    align-items: flex-start;
  }

  .performance-confidence {
    width: 86px;
    height: 86px;
  }

  .performance-confidence strong {
    font-size: 22px;
  }
}

@media (max-width: 960px) {
  .performance-head .page-head {
    padding-bottom: 16px;
  }

  .performance-head .page-actions {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 3px;
  }

  .performance-head .page-actions .btn {
    flex: 0 0 auto;
  }

  .performance-filter-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .performance-filter-keyword {
    grid-column: span 2;
  }

  .performance-filter-logic {
    grid-column: span 1;
  }

  .performance-filter-locked {
    grid-column: span 1;
  }

  .performance-table-card-head {
    flex-direction: column;
    gap: 11px;
  }

  .performance-table-tools {
    width: 100%;
    justify-content: flex-start;
  }

  .performance-pdf-workspace {
    grid-template-columns: 1fr;
  }

  .performance-pdf-brief {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.8fr);
    align-items: start;
    gap: 0 15px;
  }

  .performance-pdf-brief-head {
    grid-column: 1 / -1;
  }

  .performance-pdf-capabilities {
    padding-bottom: 0;
  }

  .performance-pdf-result-grid {
    grid-template-columns: 1fr;
  }

  .performance-pdf-insights {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .performance-pdf-preview-card,
  .performance-pdf-disclaimer {
    grid-column: 1 / -1;
  }

  .performance-pdf-result-head {
    gap: 12px;
  }
}

@media (max-width: 720px) {
  .performance-page {
    gap: 12px;
  }

  .performance-loading-head {
    padding-bottom: 18px;
  }

  .performance-loading-head h1 {
    font-size: 26px;
  }

  .performance-loading-blocks {
    grid-template-columns: 1fr;
  }

  .performance-loading-blocks span {
    height: 64px;
  }

  .performance-head .page-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 14px;
  }

  .performance-head .page-title {
    font-size: 27px;
  }

  .performance-head .page-desc {
    font-size: 10px;
  }

  .performance-head .page-actions {
    width: 100%;
    gap: 7px;
  }

  .performance-head .page-actions .btn {
    height: 35px;
    padding: 0 11px;
    font-size: 10px;
  }

  .performance-ai-chip {
    min-width: 20px;
    height: 15px;
    font-size: 6px;
  }

  .performance-portfolio {
    padding: 16px 16px 15px;
    border-radius: 13px;
  }

  .performance-portfolio-head h2 {
    font-size: 18px;
  }

  .performance-portfolio-sync {
    flex-wrap: nowrap;
    gap: 5px 7px;
    width: 100%;
    font-size: 7.5px;
  }

  .performance-portfolio-sync i {
    max-width: 100%;
    font-size: 7.5px;
  }

  .performance-portfolio-metrics {
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin-top: 12px;
    padding-top: 3px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .performance-summary-metric {
    padding: 12px 9px 10px;
    border-right: 1px solid rgba(255, 255, 255, 0.07);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .performance-summary-metric:nth-child(odd) {
    padding-left: 0;
  }

  .performance-summary-metric:nth-child(even) {
    border-right: 0;
    padding-right: 0;
  }

  .performance-summary-metric:nth-child(3),
  .performance-summary-metric:nth-child(4) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .performance-summary-metric:last-child {
    grid-column: 1 / -1;
    border-bottom: 0;
    padding-bottom: 2px;
    padding-left: 0;
    border-right: 0;
  }

  .performance-summary-value {
    min-height: 30px;
    margin-top: 5px;
    font-size: 25px;
  }

  .performance-summary-money {
    font-size: 21px;
  }

  .performance-summary-restricted {
    font-size: 11px;
  }

  .performance-summary-metric p {
    margin-top: 2px;
    font-size: 7.5px;
  }

  .performance-filter-head {
    padding: 14px 14px 12px;
  }

  .performance-filter-title-row {
    gap: 6px;
  }

  .performance-filter-title-row h2 {
    font-size: 17px;
  }

  .performance-filter-heading > p {
    font-size: 8.5px;
  }

  .performance-filter-actions {
    gap: 5px;
    width: 100%;
  }

  .performance-filter-count {
    margin-right: auto;
    font-size: 8px;
  }

  .performance-filter-actions .btn {
    height: 28px;
    padding: 0 8px;
    font-size: 9px;
  }

  .performance-filter-form {
    padding: 12px 14px 0;
  }

  .performance-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px 9px;
  }

  .performance-filter-keyword {
    grid-column: span 2;
  }

  .performance-filter-field > span:first-child {
    font-size: 8px;
  }

  .performance-filter-field .input {
    height: 34px;
    font-size: 10px;
  }

  .performance-filter-logic {
    grid-column: span 2;
    min-height: 32px;
  }

  .performance-filter-locked {
    grid-column: span 2;
    min-height: 34px;
  }

  .performance-active-bar {
    margin-top: 9px;
    padding: 9px 0 10px;
  }

  .performance-active-chips {
    gap: 4px;
  }

  .performance-chip {
    font-size: 8px;
  }

  .performance-filter-and {
    display: none;
  }

  .performance-table-card-head {
    padding: 14px;
  }

  .performance-table-title-row h2 {
    font-size: 17px;
  }

  .performance-table-heading > p {
    font-size: 8.5px;
  }

  .performance-table-tools {
    align-items: stretch;
    flex-direction: column;
    gap: 7px;
  }

  .performance-sort-control {
    justify-content: space-between;
    width: 100%;
  }

  .performance-sort-control .select {
    width: calc(100% - 34px);
    height: 33px;
  }

  .performance-page-size {
    width: max-content;
    align-self: flex-end;
  }

  .performance-table-scroll {
    display: none;
  }

  .performance-mobile-list {
    display: flex;
    padding: 12px;
    background: #f8fafb;
  }

  .performance-table-footer {
    padding: 10px 12px;
  }

  .performance-table-footer .pagination {
    gap: 6px;
  }

  .performance-table-footer .pagination-total,
  .performance-table-footer .pagination-meta {
    font-size: 8.5px;
  }

  .performance-empty-wrap {
    padding: 8px 10px 20px;
  }

  .performance-empty-wrap .empty-state {
    min-height: 230px;
  }

  .performance-inline-error {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .performance-inline-error .btn {
    margin-left: 49px;
  }

  .performance-page-note {
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    font-size: 7.5px;
  }

  .performance-page-note span:last-child {
    display: none;
  }

  .performance-results.is-loading::after {
    top: 105px;
  }

  /* Forms */
  .performance-form-summary {
    align-items: flex-start;
    padding: 10px;
  }

  .performance-form-source-current {
    display: none;
  }

  .performance-form-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .performance-form-field.performance-span-2,
  .performance-form-field.performance-span-3,
  .performance-form-locked,
  .performance-form-caption {
    grid-column: span 1;
  }

  .performance-form-caption {
    min-height: 30px;
  }

  .performance-form-section {
    margin-top: 15px;
  }

  .performance-form-section-title > em {
    display: none;
  }

  .performance-staff-table-head,
  .performance-staff-row {
    grid-template-columns: minmax(0, 1fr) 82px 30px;
    gap: 5px;
    padding-right: 8px;
    padding-left: 8px;
  }

  .performance-staff-row .input {
    height: 30px;
  }

  .performance-staff-editor-foot {
    padding: 7px 8px;
  }

  .performance-form-modal .modal-foot {
    flex-wrap: nowrap;
  }

  .performance-form-modal .modal-foot .btn {
    flex: 1;
  }

  /* PDF modal */
  .performance-pdf-modal {
    max-height: 95vh;
  }

  .performance-pdf-modal .modal-head {
    padding: 16px 16px 12px;
  }

  .performance-pdf-modal .modal-head h2 {
    font-size: 20px;
  }

  .performance-pdf-modal .modal-head p {
    font-size: 9px;
  }

  .performance-pdf-modal .modal-body {
    padding: 12px;
  }

  .performance-pdf-modal .modal-foot {
    align-items: stretch;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  }

  .performance-pdf-modal .modal-foot .btn {
    flex: 1;
    height: 34px;
    padding: 0 9px;
    font-size: 9.5px;
  }

  .performance-pdf-footnote {
    display: none;
  }

  .performance-pdf-hero {
    min-height: 0;
    padding: 16px;
    border-radius: 10px;
  }

  .performance-pdf-hero h3 {
    font-size: 19px;
  }

  .performance-pdf-hero-copy > p {
    font-size: 8.5px;
  }

  .performance-pdf-hero-art {
    display: none;
  }

  .performance-pdf-hero-tags {
    margin-top: 10px;
  }

  .performance-pdf-hero-tags span {
    font-size: 7px;
  }

  .performance-pdf-dropzone {
    min-height: 215px;
    padding: 17px 13px;
  }

  .performance-pdf-dropzone > strong {
    font-size: 11px;
  }

  .performance-pdf-selected {
    padding: 10px;
  }

  .performance-pdf-selected-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .performance-pdf-selected-actions .btn {
    width: 100%;
  }

  .performance-pdf-brief {
    display: block;
    padding: 13px;
  }

  .performance-pdf-capabilities {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px 10px;
    padding: 9px 0 11px;
  }

  .performance-pdf-capabilities li {
    font-size: 8px;
  }

  .performance-pdf-error {
    flex-wrap: wrap;
  }

  .performance-pdf-error .btn {
    margin-left: 41px;
  }

  .performance-pdf-progress-shell {
    min-height: 390px;
    padding: 30px 15px;
  }

  .performance-pdf-progress-steps {
    gap: 8px;
  }

  .performance-pdf-progress-steps span {
    font-size: 7px;
  }

  .performance-pdf-result-head {
    flex-direction: column;
    padding: 14px;
  }

  .performance-pdf-result-copy h3 {
    font-size: 18px;
  }

  .performance-pdf-result-copy > p {
    white-space: normal;
    line-height: 1.5;
  }

  .performance-confidence {
    width: 78px;
    height: 78px;
    align-self: flex-end;
    margin-top: -61px;
  }

  .performance-confidence strong {
    font-size: 20px;
  }

  .performance-pdf-result-copy {
    padding-right: 72px;
  }

  .performance-pdf-result-actions {
    margin-top: 8px;
  }

  .performance-pdf-form {
    padding: 13px;
  }

  .performance-pdf-form-grid {
    grid-template-columns: 1fr;
  }

  .performance-pdf-form .performance-span-2,
  .performance-pdf-form .performance-span-3,
  .performance-pdf-form .performance-form-locked {
    grid-column: span 1;
  }

  .performance-pdf-form .performance-staff-table-head,
  .performance-pdf-form .performance-staff-row {
    grid-template-columns: minmax(0, 1fr) 76px 28px;
  }

  .performance-pdf-insights {
    display: flex;
    flex-direction: column;
  }

  .performance-pdf-insight-card {
    padding: 11px;
  }

  .performance-text-preview pre {
    max-height: 190px;
  }

  /* Detail drawer */
  .performance-detail-drawer .drawer-head {
    padding: 17px 16px 12px;
  }

  .performance-detail-drawer .drawer-head h2 {
    font-size: 19px;
  }

  .performance-detail-drawer .drawer-body {
    padding: 14px 16px;
  }

  .performance-detail-cover {
    padding: 14px;
  }

  .performance-detail-amount {
    font-size: 22px;
  }

  .performance-detail-subline {
    gap: 4px 9px;
  }

  .performance-detail-grid {
    gap: 12px;
  }

  .performance-detail-drawer .drawer-foot {
    flex-wrap: wrap;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  }

  .performance-detail-drawer .drawer-foot .btn {
    flex: 1;
    height: 34px;
    padding: 0 9px;
    font-size: 9.5px;
  }

  .performance-detail-drawer .drawer-foot .performance-detail-delete {
    flex: 0 0 36px;
    margin-right: auto;
    padding: 0;
    font-size: 0;
  }

  .performance-detail-drawer .drawer-foot .performance-detail-delete .icon {
    width: 15px;
    height: 15px;
  }

  .performance-extraction-top {
    flex-direction: column;
    gap: 7px;
  }

  .performance-extraction-source {
    max-width: 100%;
  }

  .performance-extraction-meta {
    flex-direction: column;
    gap: 4px;
  }
}

@media (max-width: 420px) {
  .performance-summary-metric {
    padding-top: 10px;
    padding-bottom: 9px;
  }

  .performance-summary-value {
    font-size: 23px;
  }

  .performance-summary-money {
    font-size: 19px;
  }

  .performance-summary-metric-top > span {
    letter-spacing: 0.55px;
  }

  .performance-summary-metric p {
    overflow: visible;
    line-height: 1.45;
    text-overflow: clip;
    white-space: normal;
  }

  .performance-mobile-stats {
    grid-template-columns: 1.15fr 0.8fr 0.6fr;
    gap: 5px;
    padding: 8px;
  }

  .performance-mobile-stats > div + div {
    padding-left: 6px;
  }

  .performance-mobile-title {
    font-size: 11.5px;
  }

  .performance-pdf-result-copy {
    padding-right: 65px;
  }

  .performance-confidence {
    width: 72px;
    height: 72px;
    margin-top: -56px;
  }

  .performance-confidence strong {
    font-size: 18px;
  }

  .performance-pdf-result-actions .btn {
    height: 30px;
    padding: 0 8px;
    font-size: 8.5px;
  }

  .performance-detail-amount-row {
    gap: 6px;
  }
}

/* --------------------------------------------------------------------------
   Motion
   -------------------------------------------------------------------------- */

@keyframes performance-spin {
  to { transform: rotate(360deg); }
}

@keyframes performance-shimmer {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

@keyframes performance-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(220, 192, 140, 0.09); }
  50% { box-shadow: 0 0 0 6px rgba(220, 192, 140, 0.035); }
}

@keyframes performance-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes performance-progress {
  0% { transform: translateX(-100%); }
  60%, 100% { transform: translateX(240%); }
}

@media (prefers-reduced-motion: reduce) {
  .performance-pulse,
  .performance-pdf-progress-emblem,
  .performance-results.is-loading::after,
  .performance-loading-blocks span,
  .performance-upload-progress > i::after {
    animation: none;
  }
}

/* ==========================================================================
   可读性保底（2026-10 视觉优化）
   --------------------------------------------------------------------------
   表格与摘要区里承载信息的元文字提高字号；金额、人数、日期统一等宽数字，
   便于纵向比大小。
   ========================================================================== */
.performance-staff-cell small,
.performance-amount-restricted,
.performance-type,
.performance-cell-muted,
.performance-file-count {
  font-size: 10.5px;
}

.performance-staff-cell > span b,
.performance-summary-value,
.performance-summary-money,
.performance-portfolio-metric b {
  font-variant-numeric: tabular-nums;
}
