/* Player profile — performance / statistics tab */

.pl-panel-tabs {
  display: flex;
  gap: 2px;
  padding: 0 12px 10px;
  border-bottom: 0.5px solid var(--pb);
  background: white;
  flex-shrink: 0;
}
.pl-panel-tabs-bar .pl-panel-tabs {
  padding: 0;
  border-bottom: none;
  background: transparent;
}
.pl-panel-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 7px 6px;
  font-size: 10px;
  font-weight: 500;
  color: #455A64;
  background: #F5F7FA;
  border: 0.5px solid #D9E2EC;
  border-radius: var(--prs);
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.pl-panel-tab:hover { background: #EAF2FF; color: #1E3A8A; border-color: #93C5FD; }
.pl-panel-tab.on {
  background: #DBEAFE;
  color: #1D4ED8;
  border-color: #60A5FA;
  font-weight: 700;
  box-shadow: inset 0 -2px 0 #2563EB;
}
.pl-panel-tab i { font-size: 12px; }

#plPanel .panel-body { padding-top: 12px; }

.ps-delta {
  font-size: 9px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.ps-delta.up { background: rgba(255, 255, 255, 0.2); color: #A5D6A7; }
.ps-delta.dn { background: rgba(255, 255, 255, 0.15); color: #FFAB91; }
.ps-delta.flat { background: rgba(255, 255, 255, 0.12); color: rgba(255, 255, 255, 0.6); }

.ps-perf-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  min-width: 76px;
  max-width: 100px;
}
.ps-perf-ring-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-right: 6px;
}
.ps-perf-ring {
  position: relative;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: transparent;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.22);
}
.ps-perf-ring-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  overflow: visible;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.18));
}
.ps-perf-ring-track,
.ps-perf-ring-fill {
  fill: none;
  stroke-width: 14;
}
.ps-perf-ring-track {
  stroke: rgba(255, 255, 255, 0.22);
}
.ps-perf-ring-fill {
  stroke: #ffca28;
  stroke-linecap: round;
  transition: stroke-dasharray 0.35s ease;
}
.ps-perf-block--pending .ps-perf-ring-fill {
  stroke: rgba(255, 202, 40, 0.35);
}
.ps-perf-ring-inner {
  position: relative;
  z-index: 1;
  width: 66%;
  height: 66%;
  border-radius: 50%;
  background: linear-gradient(145deg, #1e3a8a 0%, #152a6e 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.ps-perf-num {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.03em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}
.ps-perf-range-lbl {
  font-size: 9px;
  font-weight: 700;
  color: var(--py, #f9a825);
  letter-spacing: 0.35px;
  line-height: 1;
  opacity: 0.95;
}
.ps-perf-caption {
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  text-align: center;
  line-height: 1.25;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}
.ps-perf-ring-wrap .ps-perf-help-btn {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 22px;
  height: 22px;
  font-size: 13px;
  background: #fff;
  color: var(--pn);
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
}
.ps-perf-ring-wrap .ps-perf-help-btn:hover,
.ps-perf-ring-wrap .ps-perf-help-btn:focus-visible {
  background: var(--py, #f9a825);
  color: #1e3a8a;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.28), 0 0 0 2px rgba(255, 255, 255, 0.4);
}

.ps-card {
  background: white;
  border: 0.5px solid var(--pb);
  border-radius: var(--pr);
  padding: 12px;
  margin-bottom: 12px;
}
.ps-card-compact { padding: 10px 12px; }
.ps-card-hd {
  font-size: 12px;
  font-weight: 700;
  color: var(--pn);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.ps-card-hd i { color: var(--pg); font-size: 14px; }
.ps-muted { font-weight: 500; color: #475569; font-size: 10px; margin-left: 4px; }

.ps-spark-wrap {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  margin-bottom: 6px;
}
.ps-spark-bar {
  border-radius: 3px 3px 0 0;
  min-width: 4px;
  opacity: 0.9;
  transition: opacity 0.15s;
}
.ps-spark-bar:hover { opacity: 1; }
.ps-spark-labels {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 500;
  color: #64748B;
}

.ps-inline-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 11px;
  color: #475569;
  margin-top: 8px;
}
.ps-inline-metrics strong { color: var(--ps); }

.ps-form-row {
  background: white;
  border: 0.5px solid var(--pb);
  border-radius: var(--pr);
  padding: 10px 12px;
  margin-bottom: 12px;
}
.ps-form-lbl {
  font-size: 10px;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  display: block;
  margin-bottom: 6px;
}
.ps-form-pills { display: flex; gap: 5px; margin-bottom: 4px; }
.ps-pill {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
}
.ps-pill-w { background: var(--success-bg); color: var(--success-fg); }
.ps-pill-l { background: #FFEBEE; color: #C62828; }
.ps-form-meta { font-size: 10px; font-weight: 500; color: #64748B; }

.ps-hint {
  font-size: 11px;
  color: #64748B;
  line-height: 1.45;
  padding: 8px 10px;
  background: var(--psu);
  border-radius: var(--prs);
}
.ps-hint i { vertical-align: -2px; margin-right: 4px; }

.ps-section { margin-bottom: 16px; }
.ps-section-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--pn);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.ps-section-title i { font-size: 13px; color: var(--pg); }
.ps-section-title--split {
  justify-content: flex-start;
  gap: 10px;
}
.ps-section-identity-hd {
  margin-bottom: 10px;
  flex-wrap: nowrap;
}
.ps-identity-collapse-hd {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}
.ps-identity-collapse-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.ps-identity-collapse-trigger.ps-section-title {
  margin-bottom: 0;
}
.ps-identity-collapse.is-open .ps-identity-collapse-hd {
  margin-bottom: 8px;
}
.ps-identity-collapse:not(.is-open) .ps-identity-collapse-hd {
  margin-bottom: 0;
}
.ps-identity-collapse-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
}
.ps-identity-collapse-body[hidden] {
  display: none !important;
}
.ps-section-identity .mugshot-ach-chevron .ti,
.ps-section-identity .mugshot-ach-chevron i {
  font-size: 20px;
  line-height: 1;
  color: #fff;
  -webkit-text-stroke: 0.35px rgba(255, 255, 255, 0.35);
}
.ps-identity-collapse-trigger:hover .mugshot-ach-chevron,
.ps-identity-collapse-trigger:focus-visible .mugshot-ach-chevron {
  background: linear-gradient(180deg, #7986cb 0%, #3949ab 100%);
  box-shadow: 0 3px 10px rgba(57, 73, 171, 0.55);
}
.ps-identity-collapse.is-open .mugshot-ach-chevron {
  transform: rotate(180deg);
  background: linear-gradient(180deg, #66bb6a 0%, #2e7d32 100%);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 2px 8px rgba(46, 125, 50, 0.45);
  color: #fff;
}
.ps-identity-collapse.is-open .mugshot-ach-chevron .ti,
.ps-identity-collapse.is-open .mugshot-ach-chevron i {
  color: #fff;
}
.ps-section-title-main {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.ps-identity-collapse-hd .ps-identity-tip-chip {
  margin-left: auto;
  flex-shrink: 0;
}
.ps-section-identity-hd .ps-identity-tip-chip {
  margin-left: auto;
  flex-shrink: 0;
}
.ps-section-identity-hd .ps-section-help-btn,
.ps-section-title-main .ps-section-help-btn {
  flex-shrink: 0;
}
.ps-section-help-btn.ps-metric-tip-btn {
  position: static;
  width: 20px;
  height: 20px;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid rgba(57, 73, 171, 0.22);
  background: #f8fafc;
  color: #3949ab;
  font-family: 'Outfit', sans-serif;
}
.ps-section-help-btn.ps-metric-tip-btn:hover,
.ps-section-help-btn.ps-metric-tip-btn:focus-visible {
  background: #eef2ff;
  color: #283593;
}
.ps-identity-tip-sep {
  opacity: 0.45;
  font-weight: 800;
  padding: 0 1px;
}
.ps-identity-tip-chip.ps-metric-tip-btn {
  position: static;
  display: inline-flex;
  align-items: center;
  width: auto;
  height: auto;
  min-height: 0;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(57, 73, 171, 0.22);
  background: linear-gradient(135deg, #eef2ff 0%, #f8fafc 55%, #e8eaf6 100%);
  color: #3949ab;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.02em;
  gap: 4px;
  box-shadow: 0 2px 8px rgba(57, 73, 171, 0.1);
  font-family: 'Outfit', sans-serif;
  text-transform: none;
  cursor: pointer;
}
.ps-identity-tip-chip.ps-metric-tip-btn:hover {
  background: linear-gradient(135deg, #e8edff 0%, #f1f5f9 55%, #dfe4f7 100%);
}
.ps-identity-tip-chip.ps-metric-tip-btn:focus-visible {
  outline: 2px solid rgba(57, 73, 171, 0.45);
  outline-offset: 2px;
}
.ps-identity-tip-chip.ps-metric-tip-btn i {
  font-size: 11px;
}
.ps-identity-private-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: #1565C0;
  background: #E3F2FD;
  border: 0.5px solid #90CAF9;
  border-radius: 999px;
  padding: 3px 8px;
}
.ps-identity-privacy-hint {
  margin: -4px 0 10px;
  font-size: 11px;
  line-height: 1.45;
  color: #475569;
  font-weight: 500;
}
.ps-identity-contact-hd {
  display: flex;
  justify-content: flex-end;
  margin: 2px 0 6px;
}
.ps-identity-grid--contact {
  margin-top: 0;
}
.pl-profile-contact-privacy-note {
  margin: 0 0 12px;
}

.ps-identity-grid {
  display: grid;
  gap: 8px;
  background: white;
  border: 1px solid var(--psb, #e8edf2);
  border-radius: var(--prs, 10px);
  padding: 10px 12px;
  margin-bottom: 4px;
}
.ps-identity-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 12px;
}
.ps-identity-lbl {
  color: var(--pm, #607D8B);
  font-weight: 600;
  flex-shrink: 0;
}
.ps-identity-lbl i { margin-right: 4px; vertical-align: -1px; }
.ps-identity-val {
  color: var(--pn, #263238);
  font-weight: 500;
  text-align: right;
  word-break: break-word;
}

.ps-metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}
.ps-metric-grid-4 { grid-template-columns: repeat(3, 1fr); }

.ps-metric {
  position: relative;
  background: white;
  border: 0.5px solid var(--pb);
  border-radius: var(--prs);
  padding: 9px 8px;
  text-align: center;
}
.ps-metric-accent {
  border-color: var(--pg);
  background: var(--pgl);
}
.ps-metric-v {
  font-size: 16px;
  font-weight: 700;
  color: var(--pn);
  line-height: 1.2;
}
.ps-metric-l {
  font-size: 11px;
  font-weight: 700;
  color: #334155;
  text-transform: uppercase;
  letter-spacing: 0.35px;
  margin-top: 5px;
}
.ps-metric-sub {
  font-size: 10px;
  font-weight: 600;
  color: #475569;
  margin-top: 4px;
  line-height: 1.4;
}

.ps-metric-tip-btn {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 22px;
  height: 22px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--pnl);
  color: var(--pn);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  line-height: 1;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}
.ps-metric-tip-btn:hover,
.ps-metric-tip-btn:focus-visible {
  background: var(--pg);
  color: white;
  outline: none;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.35);
}
.ps-hint-metric {
  margin-bottom: 8px;
  color: #475569;
  font-size: 11px;
  font-weight: 500;
}
.ps-metric-legend {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 11px;
  color: #475569;
  margin: 0 0 12px;
  line-height: 1.45;
  font-weight: 500;
}
.ps-metric-legend-swatch {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  margin-top: 1px;
  border-radius: 4px;
  border: 0.5px solid var(--pg);
  background: var(--pgl);
}

.ps-chart-card {
  margin-top: 4px;
  margin-bottom: 10px;
}
.ps-chart-hd-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 2px;
}
.ps-chart-card-title {
  margin-bottom: 0 !important;
  flex: 1;
  min-width: 0;
}
.ps-chart-card .ps-chart-tip-btn {
  position: static;
  flex-shrink: 0;
  margin-top: -2px;
}
.ps-chart-lead {
  font-size: 10px;
  font-weight: 500;
  color: #64748B;
  line-height: 1.45;
  margin: 0 0 10px;
}
.ps-chart-bars {
  margin-top: 2px;
}

.ps-chart-summary {
  margin: 0 0 12px;
  padding: 12px 13px;
  background: #ffffff;
  border: 1px solid #93c5fd;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(30, 58, 138, 0.06);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ps-chart-summary-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.ps-chart-summary-lbl {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #1e3a8a;
}
.ps-chart-summary-val {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.55;
  color: #1e293b;
}
.ps-chart-summary-val strong {
  font-weight: 800;
  color: #1e3a8a;
}
.ps-chart-summary-other {
  padding-top: 10px;
  border-top: 1px solid #dbeafe;
}
.ps-chart-summary-other .ps-chart-summary-lbl {
  color: #475569;
}
.ps-chart-summary-other .ps-chart-summary-val {
  font-size: 12px;
  font-weight: 600;
  color: #334155;
}
.ps-chart-summary-empty {
  font-size: 12px;
  font-weight: 500;
  color: #475569;
  margin: 0 0 10px;
}

.ps-chart-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 0.5px dashed var(--pb);
  font-size: 10px;
  font-weight: 500;
  color: #475569;
}
.ps-chart-legend-wrap {
  gap: 8px 12px;
}
.ps-chart-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.ps-chart-legend-item strong {
  font-weight: 700;
  color: #334155;
}
.ps-chart-legend-note {
  flex: 1 1 100%;
  color: #64748B;
  font-size: 10px;
  line-height: 1.45;
}
.ps-chart-legend-note i {
  font-size: 11px;
  vertical-align: -2px;
  margin-right: 2px;
}
.ps-chart-legend-warn {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  flex: 1 1 100%;
  margin-top: 4px;
  padding: 10px 11px;
  border-radius: 8px;
  border: 1px solid #f59e0b;
  background: #fff7ed;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  color: #7c2d12;
}
.ps-chart-legend-warn i {
  flex-shrink: 0;
  font-size: 16px;
  color: #ea580c;
  margin-top: 1px;
}
.ps-chart-legend-warn-text {
  flex: 1;
  min-width: 0;
}
.ps-chart-legend-warn-text strong {
  font-weight: 800;
  color: #1e3a8a;
}
.ps-chart-legend-warn-text em {
  font-style: normal;
  font-weight: 800;
  color: #b91c1c;
}
.ps-leg-swatch {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  flex-shrink: 0;
  border: 0.5px solid rgba(0, 0, 0, 0.08);
}
.ps-leg-win {
  background: var(--pg);
}
.ps-leg-loss {
  background: #e53935;
}

/* Floating metric help — fixed overlay; does not resize stat tiles */
@keyframes ps-metric-tip-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.ps-metric-tip-float {
  display: none;
  position: fixed;
  z-index: 1305;
  width: min(300px, calc(100vw - 24px));
  pointer-events: auto;
  filter: drop-shadow(0 18px 40px rgba(30, 58, 138, 0.28));
}
.ps-metric-tip-float.open {
  display: block;
}
.ps-metric-tip-float.open .ps-metric-tip-float-inner {
  animation: ps-metric-tip-in 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}
.ps-metric-tip-float-inner {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(30, 58, 138, 0.12);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.6) inset,
    0 12px 36px rgba(30, 58, 138, 0.2);
}
.ps-metric-tip-float-hd {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 12px 10px;
  background: linear-gradient(135deg, var(--pn, #1e3a8a) 0%, #283593 52%, #3949ab 100%);
  border-bottom: 2px solid var(--py, #f9a825);
}
.ps-metric-tip-float-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #ffca28 0%, #f9a825 100%);
  color: var(--pn, #1e3a8a);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  font-size: 18px;
}
.ps-metric-tip-float-title-wrap {
  flex: 1;
  min-width: 0;
  padding-top: 2px;
  padding-right: 4px;
}
.ps-metric-tip-float-title {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 0;
}
.ps-metric-tip-float-badge {
  display: inline-block;
  margin-top: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--pn, #1e3a8a);
  background: linear-gradient(90deg, #ffe082 0%, #ffca28 55%, #f9a825 100%);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.18);
}
.ps-metric-tip-float-badge[hidden] {
  display: none;
}
.ps-metric-tip-float-close {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: background 0.15s, color 0.15s, transform 0.15s;
}
.ps-metric-tip-float-close[hidden] {
  display: none;
}
.ps-metric-tip-float-close:hover,
.ps-metric-tip-float-close:focus-visible {
  background: rgba(255, 255, 255, 0.28);
  color: #fff;
  outline: none;
  transform: scale(1.05);
}
.ps-metric-tip-float-body {
  padding: 12px 14px 14px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.55;
  color: #475569;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 28%);
}
.ps-metric-tip-float-body p {
  margin: 0 0 8px;
}
.ps-metric-tip-float-body p:last-child {
  margin-bottom: 0;
}
.ps-metric-tip-lead {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--pn, #1e3a8a);
}
.ps-metric-tip-detail {
  font-size: 12px;
  font-weight: 500;
  color: #546e7a;
  padding-left: 10px;
  border-left: 3px solid rgba(249, 168, 37, 0.65);
}

.ps-metric-tip-float--compact .ps-metric-tip-float-hd {
  padding: 10px 10px 8px;
  background: linear-gradient(135deg, #e8eaf6 0%, #c5cae9 100%);
  border-bottom-color: var(--pn, #1e3a8a);
}
.ps-metric-tip-float--compact .ps-metric-tip-float-icon {
  width: 30px;
  height: 30px;
  font-size: 15px;
  background: #fff;
  color: var(--pn, #1e3a8a);
  box-shadow: 0 1px 6px rgba(30, 58, 138, 0.15);
}
.ps-metric-tip-float--compact .ps-metric-tip-float-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--pn, #1e3a8a);
}
.ps-metric-tip-float--compact .ps-metric-tip-float-body {
  padding: 10px 12px 12px;
  font-size: 11px;
}

.ps-metric-tip-float-wide {
  width: min(360px, calc(100vw - 24px));
}
.ps-metric-tip-float-wide .ps-metric-tip-float-body {
  font-size: 12px;
  line-height: 1.58;
}

.ps-metric-tip-float--prominent {
  width: min(380px, calc(100vw - 24px));
  filter: drop-shadow(0 22px 48px rgba(30, 58, 138, 0.35));
}
.ps-metric-tip-float--prominent .ps-metric-tip-float-inner {
  border-radius: 16px;
  border-width: 0;
  box-shadow:
    0 0 0 2px rgba(249, 168, 37, 0.45),
    0 20px 50px rgba(30, 58, 138, 0.32);
}
.ps-metric-tip-float--prominent .ps-metric-tip-float-hd {
  padding: 14px 14px 12px;
}
.ps-metric-tip-float--prominent .ps-metric-tip-float-icon {
  width: 42px;
  height: 42px;
  font-size: 22px;
  border-radius: 12px;
}
.ps-metric-tip-float--prominent .ps-metric-tip-float-title {
  font-size: 16px;
}
.ps-metric-tip-float--prominent .ps-metric-tip-float-body {
  padding: 14px 16px 16px;
}
.ps-metric-tip-float--prominent .ps-metric-tip-lead {
  font-size: 14px;
}
.ps-metric-tip-float--prominent .ps-metric-tip-detail {
  font-size: 13px;
}

.ps-note {
  font-size: 10px;
  color: #64748B;
  line-height: 1.45;
  margin-top: 6px;
  padding: 8px;
  background: var(--psu);
  border-radius: 6px;
}

.ps-bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 10px;
}
.ps-bar-lbl { width: 72px; color: var(--ps); flex-shrink: 0; }
.ps-bar-trk {
  flex: 1;
  height: 6px;
  background: #ECEFF1;
  border-radius: 3px;
  overflow: hidden;
}
.ps-bar-fill { height: 100%; border-radius: 3px; }
.ps-bar-val { width: 20px; text-align: right; font-weight: 600; color: var(--pn); }

.ps-format-split {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 11px;
  color: #475569;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 0.5px dashed var(--pb);
}
.ps-format-split i { font-size: 12px; vertical-align: -2px; margin-right: 2px; }

.ps-h2h-list { display: flex; flex-direction: column; gap: 6px; }
.ps-h2h-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: white;
  border: 0.5px solid var(--pb);
  border-radius: var(--prs);
  font-size: 11px;
}
.ps-h2h-name { flex: 1; font-weight: 500; color: var(--ps); }
.ps-h2h-record { font-weight: 600; color: var(--pn); }
.ps-h2h-wr { font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 8px; }
.ps-h2h-wr.up { background: var(--success-bg); color: var(--success-fg); }
.ps-h2h-wr.dn { background: #FFEBEE; color: #C62828; }

.ps-month-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  justify-content: space-between;
  padding: 8px 4px 0;
  min-height: 56px;
}
.ps-month-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.ps-month-bar {
  width: 100%;
  max-width: 28px;
  background: var(--pg);
  border-radius: 4px 4px 0 0;
  opacity: 0.85;
}
.ps-month-col span { font-size: 9px; font-weight: 500; color: #64748B; }

.ps-opp-dupr {
  font-size: 9px;
  font-weight: 600;
  color: #64748B;
  background: var(--pnl);
  padding: 1px 5px;
  border-radius: 6px;
  margin-left: 4px;
}
.ps-opp-self {
  font-size: 9px;
  font-weight: 600;
  color: #5D4037;
  background: #FFF3E0;
  padding: 1px 5px;
  border-radius: 6px;
  margin-left: 4px;
}

.ps-banner {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 10px;
  margin: 0 0 10px;
  border-radius: var(--prs);
  font-size: 10px;
  line-height: 1.4;
  color: var(--ps);
}
.ps-banner i { font-size: 14px; flex-shrink: 0; margin-top: 1px; }
.ps-banner-neutral { background: #ECEFF1; color: #455A64; }
.ps-banner-warn { background: #FFF8E1; color: #6D4C41; }
.ps-banner-warn i { color: #F9A825; }

.pp-dupr-badge.ps-skill-self { background: #FFF3E0; color: #E65100; }
.pp-dupr-badge.ps-skill-nr { background: #ECEFF1; color: #607D8B; }

.ps-match-tag {
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 1px 5px;
  border-radius: 4px;
  vertical-align: middle;
}
.ps-match-dupr { background: #E8F5E9; color: #2E7D32; }
.ps-match-rec { background: #ECEFF1; color: #607D8B; }

/* Shared filters for Overview / Performance / Matches */
.pl-panel-filter-wrap {
  margin: 0 12px 10px;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
}
.pl-panel-filter-tools {
  display: flex;
  align-items: stretch;
  gap: 4px;
}
.pl-panel-filter-trigger {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 6px 10px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  color: #fff;
  transition: transform 0.15s, box-shadow 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.pl-panel-filter-trigger:hover {
  transform: translateY(-1px);
}
.pl-panel-filter-trigger--stats {
  flex: 1;
  min-width: 0;
  text-align: left;
  background: linear-gradient(145deg, #9575cd 0%, #7e57c2 45%, #5e35b1 100%);
  box-shadow: 0 3px 10px rgba(94, 53, 177, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}
.pl-panel-filter-trigger--stats.is-open,
.pl-panel-filter-trigger--stats.has-active.is-open {
  background: linear-gradient(145deg, #5e35b1 0%, #4527a0 100%);
}
.pl-panel-filter-trigger--stats.has-active:not(.is-open) {
  box-shadow: 0 3px 10px rgba(94, 53, 177, 0.4), inset 0 0 0 2px rgba(255, 255, 255, 0.4);
}
.pl-panel-filter-trigger--clear {
  flex-shrink: 0;
  width: 40px;
  min-width: 40px;
  justify-content: center;
  padding: 0;
  background: linear-gradient(145deg, #f9a825 0%, #ff6d00 55%, #e65100 100%);
  box-shadow: 0 3px 10px rgba(230, 81, 0, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}
.pl-panel-filter-trigger--clear[hidden] {
  display: none !important;
}
.pl-panel-filter-trigger-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 15px;
  flex-shrink: 0;
}
.pl-panel-filter-trigger-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.pl-panel-filter-trigger-label {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}
.pl-panel-filter-trigger-meta {
  font-size: 10px;
  opacity: 0.88;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pl-panel-filter-active-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 1.5px #5e35b1;
  flex-shrink: 0;
}
.pl-panel-filter-active-dot[hidden] {
  display: none !important;
}
.pl-panel-filter-extra {
  display: none;
  margin-top: 8px;
  padding: 10px;
  border: 0.5px solid var(--pb);
  border-radius: var(--prs);
  background: #f8fafc;
}
.pl-panel-filter-extra.is-open {
  display: block;
  animation: pl-panel-filter-in 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.pl-panel-filter-extra[hidden] {
  display: none !important;
}
@keyframes pl-panel-filter-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.pl-panel-filter-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.pl-panel-filter-item {
  min-width: 0;
}
.pl-panel-filter-label {
  display: block;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748B;
  margin-bottom: 4px;
}
.pl-panel-filter-input {
  margin-bottom: 0;
  font-size: 11px;
  min-height: 34px;
}

@media (max-width: 900px) {
  .pl-panel-filter-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .pl-panel-filter-row {
    grid-template-columns: 1fr;
  }
}

.ps-form-spark { gap: 2px; }

@media (max-width: 440px) {
  .ps-metric-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Profile tab privacy */
.pl-panel-tab-lock { font-size: 10px; opacity: 0.75; margin-left: 2px; }
.pl-panel-tab.restricted:not(.on) { opacity: 0.88; }

.pl-profile-privacy-dropdown {
  flex-shrink: 0;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border-bottom: 0.5px solid rgba(30, 58, 138, 0.1);
}
.pl-profile-privacy-dropdown[open] {
  background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.pl-profile-privacy-summary {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 12px 14px;
  min-height: 48px;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  user-select: none;
  transition: background 0.2s;
}
.pl-profile-privacy-summary:hover {
  background: rgba(255, 255, 255, 0.45);
}
.pl-profile-privacy-summary::-webkit-details-marker { display: none; }
.pl-profile-privacy-summary-main {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.01em;
}
.pl-profile-privacy-summary-main i {
  color: #2563eb;
  font-size: 17px;
}
.pl-profile-privacy-summary-meta {
  flex: 1 1 180px;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  line-height: 1.4;
  min-width: 0;
}
.pl-profile-privacy-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  font-size: 16px;
  color: #64748b;
  background: rgba(255, 255, 255, 0.85);
  border: 0.5px solid rgba(148, 163, 184, 0.45);
  border-radius: 50%;
  transition: transform 0.22s ease, background 0.2s, color 0.2s;
  flex-shrink: 0;
}
.pl-profile-privacy-dropdown[open] .pl-profile-privacy-chevron {
  transform: rotate(180deg);
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
}
.pl-profile-privacy-dropdown-body {
  padding: 4px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Player panel is height-capped; scroll open privacy block so invite search is not clipped */
#plPanel #pl-panel-privacy-wrap .pl-profile-privacy-dropdown[open] {
  max-height: min(48vh, 360px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.pl-invite-search-privacy-dropdown {
  border-bottom: 0.5px solid rgba(37, 99, 235, 0.15);
  background: linear-gradient(180deg, #f0f7ff 0%, #f8fafc 100%);
}
.pl-invite-search-privacy-dropdown[open] {
  background: linear-gradient(180deg, #e8f1ff 0%, #f8fafc 100%);
}
.pl-invite-search-lead {
  margin: 0 0 8px;
  font-size: 11px;
  color: #475569;
  line-height: 1.4;
}
.pl-invite-search-dropdown-body {
  padding-top: 2px;
}
.pl-privacy-level-caption--section {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.pl-invite-search-privacy-panel--panel {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
  padding-bottom: 10px;
  border-bottom: 1px solid #E2E8F0;
}
.pl-privacy-tabs-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pl-invite-search-privacy-panel {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #ECEFF1;
}
.pl-invite-search-privacy-hint { margin: 4px 0 8px !important; }
.pl-privacy-edit-block--invite { margin-top: 12px; }

/* Segmented tab pills inside dropdown */
.pl-privacy-pill-track {
  display: flex;
  gap: 5px;
  padding: 5px;
  background: rgba(15, 23, 42, 0.06);
  border-radius: 14px;
  border: 0.5px solid rgba(148, 163, 184, 0.35);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.06);
}
.pl-privacy-pill {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 8px 9px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: #334155;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, border-color 0.2s, transform 0.15s;
}
.pl-privacy-pill:hover:not(.is-active) {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(148, 163, 184, 0.4);
  color: #0f172a;
}
.pl-privacy-pill.is-active {
  background: #fff;
  color: #0f172a;
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow:
    0 4px 14px rgba(30, 58, 138, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.95);
  transform: translateY(-1px);
}
.pl-privacy-pill-icon {
  font-size: 18px;
  line-height: 1;
  color: #64748b;
}
.pl-privacy-pill.is-active .pl-privacy-pill-icon {
  color: #2563eb;
}
.pl-privacy-pill-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  min-width: 0;
  width: 100%;
}
.pl-privacy-pill-name {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  color: #0f172a;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.pl-privacy-pill:not(.is-active) .pl-privacy-pill-name {
  color: #334155;
  font-weight: 600;
}
.pl-privacy-pill-status {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.02em;
}
.pl-privacy-pill-status--public {
  color: #14532d;
  background: rgba(34, 197, 94, 0.18);
  border: 0.5px solid rgba(34, 197, 94, 0.35);
}
.pl-privacy-pill-status--friends {
  color: #1e3a8a;
  background: rgba(59, 130, 246, 0.16);
  border: 0.5px solid rgba(59, 130, 246, 0.32);
}
.pl-privacy-pill-status--private {
  color: #7f1d1d;
  background: rgba(148, 163, 184, 0.22);
  border: 0.5px solid rgba(100, 116, 139, 0.4);
}
.pl-privacy-pill.is-active .pl-privacy-pill-status--public {
  color: #14532d;
  background: rgba(34, 197, 94, 0.22);
}
.pl-privacy-pill.is-active .pl-privacy-pill-status--friends {
  color: #1e40af;
  background: rgba(59, 130, 246, 0.22);
}
.pl-privacy-pill.is-active .pl-privacy-pill-status--private {
  color: #991b1b;
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.28);
}

/* Visibility row for active pill */
.pl-privacy-level-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.72);
  border: 0.5px solid rgba(148, 163, 184, 0.4);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}
.pl-privacy-level-caption {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  text-align: center;
}
.pl-privacy-level-host .pl-privacy-seg {
  display: flex;
  gap: 5px;
  padding: 5px;
  background: rgba(15, 23, 42, 0.06);
  border-radius: 12px;
  border: 0.5px solid rgba(148, 163, 184, 0.3);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.05);
}
.pl-privacy-level-host .pl-privacy-seg-btn {
  flex: 1;
  min-height: 40px;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 12px;
  border-radius: 9px;
  border: none;
  background: transparent;
  color: #475569;
  letter-spacing: -0.01em;
}
.pl-privacy-level-host .pl-privacy-seg-btn:hover {
  background: rgba(255, 255, 255, 0.75);
  color: #0f172a;
}
.pl-privacy-level-host .pl-privacy-seg-btn.on {
  background: #fff;
  color: #1d4ed8;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.15);
}

/* Legacy bar layout (edit profile form) */
.pl-profile-privacy-bar {
  padding: 10px 12px 12px;
  background: #F7F9FC;
  border-bottom: 0.5px solid var(--pb);
  flex-shrink: 0;
}
.pl-profile-privacy-rows { display: flex; flex-direction: column; gap: 6px; }
.pl-profile-privacy-row {
  display: grid;
  grid-template-columns: 88px 1fr;
  align-items: center;
  gap: 8px;
}
.pl-profile-privacy-row-lbl {
  font-size: 10px;
  font-weight: 600;
  color: #607D8B;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.ps-section-overview { margin-bottom: 4px; }
.ps-metric-grid-overview { margin-bottom: 10px; }

#plPanel .pl-panel-actions-own {
  justify-content: stretch;
}

.pl-privacy-seg {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.pl-privacy-seg-btn {
  flex: 1;
  min-width: 0;
  border: 0.5px solid #CFD8DC;
  background: white;
  color: #546E7A;
  font-size: 10px;
  font-weight: 600;
  padding: 5px 6px;
  border-radius: 6px;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.pl-privacy-seg-btn:hover { background: #EAF2FF; border-color: #93C5FD; color: #1D4ED8; }
.pl-privacy-seg-btn.on {
  background: #DBEAFE;
  border-color: #60A5FA;
  color: #1D4ED8;
  box-shadow: inset 0 -2px 0 #2563EB;
}

.pl-privacy-seg--invite .pl-privacy-seg-option {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.pl-privacy-seg--invite .pl-privacy-seg-btn {
  flex: 1;
  min-width: 0;
}
.pl-privacy-seg--invite .tip-btn-seg {
  flex-shrink: 0;
  padding: 0 3px;
  font-size: 12px;
  line-height: 1;
  color: #90A4AE;
  background: transparent;
  border: none;
  cursor: pointer;
}
.pl-privacy-seg--invite .tip-btn-seg:hover { color: #1976D2; }
.pl-privacy-level-caption--with-tip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.pl-privacy-edit-block--invite .fl-with-tip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.pl-privacy-edit-block {
  margin: 0 0 14px;
  padding: 12px;
  background: #F7F9FC;
  border: 0.5px solid var(--pb);
  border-radius: var(--prs);
}
.pl-privacy-edit-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}
.pl-privacy-edit-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--pn);
  display: flex;
  align-items: center;
  gap: 6px;
}
.pl-privacy-edit-label i { color: var(--pg); font-size: 13px; }

.pl-privacy-locked {
  text-align: center;
  padding: 28px 20px 32px;
  background: #F7F9FC;
  border: 0.5px dashed #CFD8DC;
  border-radius: var(--pr);
  margin-top: 4px;
}
.pl-privacy-locked-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: #ECEFF1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #607D8B;
  font-size: 20px;
}
.pl-privacy-locked-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--pn);
  margin-bottom: 6px;
}
.pl-privacy-locked-msg {
  font-size: 12px;
  color: #607D8B;
  line-height: 1.5;
  max-width: 320px;
  margin: 0 auto;
}
.pl-privacy-locked-note {
  font-size: 11px;
  color: #90A4AE;
  margin-top: 10px;
}

@media (max-width: 560px) {
  .pl-profile-privacy-summary-meta {
    flex-basis: 100%;
    padding-left: 26px;
    font-size: 13px;
  }
  .pl-privacy-pill-track {
    flex-direction: column;
  }
  .pl-privacy-pill {
    flex-direction: row;
    justify-content: flex-start;
    padding: 12px 14px;
    gap: 12px;
    transform: none;
  }
  .pl-privacy-pill.is-active { transform: none; }
  .pl-privacy-pill-text {
    align-items: flex-start;
    flex: 1;
  }
  .pl-privacy-pill-name { font-size: 14px; }
  .pl-privacy-pill-status { font-size: 12px; padding: 4px 10px; }
  .pl-privacy-level-host .pl-privacy-seg-btn {
    min-height: 44px;
    font-size: 14px;
  }
  .pl-profile-privacy-row,
  .pl-privacy-edit-row {
    grid-template-columns: 1fr;
  }
}
