.cnpl-valuation {
  --pv-ink: #19334d;
  --pv-muted: #51687d;
  --pv-line: #dbe4ed;
  --pv-surface: #fff;
  --pv-wash: #f4f7fb;
  --pv-blue: #204b79;
  --pv-rise: #08704b;
  --pv-fall: #a12d42;
  --pv-error-bg: #fff2f4;
  --pv-success-bg: #edf9f3;
  box-sizing: border-box;
  color: var(--pv-ink);
  font-variant-numeric: tabular-nums;
  min-width: 0;
}
.cnpl-valuation *, .cnpl-valuation *::before, .cnpl-valuation *::after { box-sizing: border-box; }
.cnpl-valuation h1, .cnpl-valuation h2, .cnpl-valuation p, .cnpl-valuation dl, .cnpl-valuation dd { margin: 0; }
.cnpl-valuation h1 { font-size: clamp(23px, 4vw, 34px); line-height: 1.2; color: var(--pv-ink); }
.cnpl-valuation h2 { font-size: 19px; line-height: 1.3; color: var(--pv-ink); }
.cnpl-valuation p { line-height: 1.55; color: var(--pv-muted); }
.pv-admin {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(14px, 3vw, 28px);
  border: 1px solid var(--pv-line);
  border-radius: 16px;
  background: var(--pv-surface);
}
.pv-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 20px;
}
.pv-heading > div { min-width: 0; }
.pv-heading p { margin-top: 6px; overflow-wrap: anywhere; }
.pv-fields input {
  width: 100%;
  min-height: 42px;
  font: inherit;
  color: var(--pv-ink);
  background: var(--pv-surface);
  border: 1px solid #a9bdd0;
  border-radius: 7px;
  padding: 8px 11px;
}
.cnpl-valuation :is(input, button, a):focus-visible { outline: 3px solid #346aab; outline-offset: 2px; }
.pv-table-wrap { border: 1px solid var(--pv-line); border-radius: 9px; overflow: hidden; }
.pv-table { width: 100%; border-collapse: collapse; table-layout: auto; font-size: 14px; line-height: 1.35; }
.pv-table th, .pv-table td { padding: 9px 12px; text-align: left; }
.pv-table thead th { background: #1d3a5d; color: #fff; font-weight: 700; white-space: nowrap; }
.pv-table tbody tr + tr { border-top: 1px solid var(--pv-line); }
.pv-table tbody tr:nth-child(even) { background: var(--pv-wash); }
.pv-table tbody tr:hover { background: #eaf2fa; }
.pv-rank, .pv-amount { color: var(--pv-ink); white-space: nowrap; }
.pv-rank strong, .pv-amount strong { font-weight: 750; }
.pv-player { overflow-wrap: anywhere; }
.pv-player-link, .pv-external { color: var(--pv-blue); font-weight: 700; text-decoration: none; }
.pv-player-link:hover, .pv-external:hover { text-decoration: underline; }
.pv-player small { color: var(--pv-muted); display: block; margin-top: 1px; font-size: 12px; font-weight: 500; }
.pv-change { color: var(--pv-muted); font-weight: 650; white-space: nowrap; }
.pv-rise { color: var(--pv-rise); }
.pv-fall { color: var(--pv-fall); }
.pv-mobile-change { display: none; }
.pv-button {
  border: 1px solid var(--pv-blue);
  border-radius: 8px;
  padding: 9px 14px;
  min-height: 42px;
  background: var(--pv-blue);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.pv-button:disabled { opacity: .52; cursor: not-allowed; }
.pv-button:not(:disabled):hover { filter: brightness(1.12); }
.cnpl-valuation .pv-error, .cnpl-valuation .pv-success {
  margin-block: 12px;
  padding: 10px 12px;
  background: var(--pv-error-bg);
  border-left: 3px solid var(--pv-fall);
  color: var(--pv-fall);
  border-radius: 5px;
  overflow-wrap: anywhere;
}
.cnpl-valuation .pv-success {
  background: var(--pv-success-bg);
  border-color: var(--pv-rise);
  color: var(--pv-rise);
}
.pv-form {
  background: var(--pv-wash);
  border: 1px solid var(--pv-line);
  border-radius: 10px;
  padding: clamp(12px, 3vw, 22px);
  margin-top: 18px;
}
.pv-form > p { margin-top: 6px; }
.pv-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  margin-top: 16px;
}
.pv-fields label { display: grid; gap: 6px; min-width: 0; color: var(--pv-ink); font-weight: 700; }
.pv-fields input::file-selector-button {
  background: var(--pv-wash);
  color: var(--pv-blue);
  border: 1px solid var(--pv-line);
  border-radius: 4px;
  margin-inline-end: 8px;
  font: inherit;
  padding: 2px 6px;
}
.pv-actions { margin-top: 14px; }
.pv-preview { margin-top: 22px; }
.pv-preview-heading { margin-bottom: 12px; }
.cnpl-valuation .pv-sample { margin-bottom: 6px; font-size: 13px; }
.pv-profile {
  margin-block: 14px;
  padding: clamp(12px, 2.4vw, 20px);
  background: var(--pv-surface);
  border: 1px solid var(--pv-line);
  border-radius: 12px;
}
.pv-profile-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  padding: 1px;
  margin-top: 12px !important;
  border-radius: 7px;
  background: var(--pv-line);
  overflow: hidden;
}
.pv-profile-grid > div { padding: 8px 11px; background: var(--pv-wash); }
.pv-profile-grid dt { color: var(--pv-muted); font-size: 12px; }
.pv-profile-grid dd { font-weight: 750; margin-top: 3px; font-size: 15px; }
.player-value-container :is(.rank-cell, .price-cell, .card-rank, .card-price):has(> .pv-board-delta) {
  flex-wrap: wrap;
  row-gap: 1px;
}
.player-value-container .card-rank:has(> .pv-board-delta) { max-width: 24%; }
.player-value-container .card-price:has(> .pv-board-delta) { max-width: 42%; justify-content: flex-end; }
.pv-board-delta {
  --pv-rise: #8ce892;
  --pv-fall: #ffa3aa;
  display: block;
  flex: 0 0 100%;
  min-width: 0;
  color: #edf3f8;
  font-size: 11px;
  line-height: 1.35;
  text-align: center;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.card-price > .pv-board-delta { text-align: right; }
.pv-board-delta .pv-change { color: inherit; white-space: normal; }
.pv-board-delta .pv-rise { color: var(--pv-rise); }
.pv-board-delta .pv-fall { color: var(--pv-fall); }
body.cnpl-local-light .player-value-container .pv-board-delta {
  --pv-rise: #147152;
  --pv-fall: #a12d42;
  color: #34546b;
}
@media (max-width: 650px) {
  .pv-table th, .pv-table td { padding: 8px 7px; font-size: 13px; }
  .pv-table th:nth-child(3), .pv-table th:nth-child(5), .pv-desktop-change { display: none; }
  .pv-mobile-change { display: block; margin-top: 3px; font-size: 11px; }
  .pv-fields, .pv-profile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 450px) {
  .pv-fields { grid-template-columns: minmax(0, 1fr); }
  .pv-preview-heading .pv-button { width: 100%; }
}

