/* ── Players module ── */

.pl-layout { display: grid; grid-template-columns: 200px minmax(0,1fr); gap: 14px; align-items: start; min-height: 0; }

#view-players .pg { padding-bottom: 20px; }

@media (max-width: 1023px) {
  .pl-layout { grid-template-columns: 1fr; }
}

/* Profile card */
.prof-card { background: white; border-radius: var(--pr); border: 0.5px solid var(--pb); overflow: hidden; }
.prof-top  { background: var(--pn); padding: 18px 14px 14px; text-align: center; }
.prof-top[role="button"] { cursor: pointer; }
.prof-top[role="button"]:hover { background: #123F8F; }
.prof-top[role="button"]:focus-visible { outline: 2px solid #93C5FD; outline-offset: -2px; }
.prof-av   { width: 50px; height: 50px; border-radius: 50%; background: var(--pg); display: flex; align-items: center; justify-content: center; color: white; font-size: 16px; font-weight: 700; margin: 0 auto 8px; border: 3px solid rgba(255,255,255,0.15); }
.prof-name { color: white; font-size: 14px; font-weight: 600; }
.prof-hdl  { color: rgba(255,255,255,0.45); font-size: 10px; margin-top: 1px; }
.dupr-b    { display: inline-flex; align-items: center; gap: 4px; background: var(--py); color: var(--pn); font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 20px; margin-top: 8px; }
.prof-top-tags { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.prof-top-tags .pt { font-size: 10px; }
.prof-body { padding: 12px 14px; }
.ps-row    { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 12px; }
.pst       { background: #F7F9F7; border-radius: 7px; padding: 8px; text-align: center; }
.pst-v     { font-size: 16px; font-weight: 700; color: var(--pn); }
.pst-l     { font-size: 9px; color: #90A4AE; margin-top: 1px; text-transform: uppercase; letter-spacing: 0.4px; }
.pm-row    { display: flex; align-items: center; gap: 7px; font-size: 11px; color: #607D8B; margin-bottom: 7px; }
.pm-row i  { font-size: 13px; color: #90A4AE; }
.sk-pill   { display: inline-flex; align-items: center; gap: 3px; font-size: 10px; font-weight: 600; padding: 2px 8px; border-radius: 20px; background: #FFF3E0; color: #E65100; }
.pdiv      { height: 0.5px; background: var(--pb); margin: 10px 0; }
.ue-lbl    { font-size: 9px; font-weight: 600; color: #90A4AE; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 5px; }
.ue        { display: flex; align-items: center; gap: 7px; padding: 5px 0; border-bottom: 0.5px solid var(--pb); }
.ue:last-child { border-bottom: none; }
.ue-dot    { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.ue-n      { font-size: 11px; color: var(--ps); font-weight: 500; flex: 1; }
.ue-d      { font-size: 9px; color: #90A4AE; }
.prof-invite-search-privacy-host { margin-top: 10px; }
.prof-invite-search-card {
  padding: 10px;
  border-radius: var(--prs);
  border: 0.5px solid rgba(37, 99, 235, 0.25);
  background: linear-gradient(180deg, #f0f7ff 0%, #fff 100%);
}
.prof-invite-search-hd {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}
.prof-invite-search-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
  flex: 1 1 auto;
}
.prof-invite-search-title i { color: #2563eb; font-size: 14px; }
.prof-invite-search-pill {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  flex-shrink: 0;
}
.prof-invite-search-pill--public { background: rgba(34, 197, 94, 0.18); color: #14532d; }
.prof-invite-search-pill--friends { background: rgba(59, 130, 246, 0.15); color: #1e40af; }
.prof-invite-search-pill--private { background: rgba(148, 163, 184, 0.25); color: #334155; }
.prof-invite-search-hint { margin: 0 0 8px !important; font-size: 10px !important; }
.prof-invite-search-card .pl-privacy-seg--invite { margin-top: 2px; }

.edit-b    { width: 100%; margin-top: 10px; justify-content: center; background: var(--psu); color: var(--ps); border: 0.5px solid var(--pb); display: flex; align-items: center; gap: 5px; padding: 7px; border-radius: var(--prs); font-size: 11px; cursor: pointer; font-family: 'Outfit', sans-serif; }
.edit-b + .edit-b { margin-top: 6px; }
.prof-rail-action-row {
  display: flex;
  gap: 6px;
  align-items: stretch;
  margin-top: 6px;
}
.prof-rail-action-row .prof-rail-action-btn {
  flex: 1;
  margin-top: 0;
}
.prof-rail-tip-btn {
  flex-shrink: 0;
  width: 36px;
  min-height: 36px;
  margin-top: 0;
  padding: 0;
  border: 0.5px solid var(--pb);
  border-radius: var(--prs);
  background: #F7F9F7;
  color: #607D8B;
  cursor: help;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.prof-rail-tip-btn i { font-size: 16px; }
.prof-rail-tip-btn:hover,
.prof-rail-tip-btn:focus-visible {
  color: var(--pgd);
  border-color: #9FA8DA;
  background: #E8EAF6;
  outline: none;
}
.edit-b:hover { background: #ECEFF1; }

.prof-dupr-connect {
  margin-top: 12px;
  padding: 10px;
  background: #E8EAF6;
  border-radius: var(--prs);
  border: 0.5px solid #C5CAE9;
}
.prof-dupr-connect.dupr-connect-highlight {
  box-shadow: 0 0 0 2px var(--pg);
  animation: dupr-connect-pulse 1.1s ease 2;
}
@keyframes dupr-connect-pulse {
  0%, 100% { box-shadow: 0 0 0 2px var(--pg); }
  50% { box-shadow: 0 0 0 4px rgba(46, 125, 50, 0.35); }
}
.prof-dupr-connect-msg {
  margin: 0 0 8px;
  font-size: 11px;
  color: #1A237E;
  line-height: 1.35;
}
.prof-dupr-connect .connect-dupr-btn { width: 100%; margin: 0; }
.prof-dupr-connected {
  margin-top: 10px;
  font-size: 11px;
  font-weight: 600;
  color: var(--pgd);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Directory */
.pl-right  { display: flex; flex-direction: column; gap: 12px; }
.sb-bar    { background: white; border-radius: var(--pr); border: 0.5px solid var(--pb); padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.sb-bar-top { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.filter-toggle-btn-inline {
  flex-shrink: 0;
  padding: 6px 12px;
  font-size: 11px;
}
.filter-toggle-short { display: none; }
@media (min-width: 480px) {
  .filter-toggle-short { display: inline; }
}
.pl-filters-panel.open {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 4px;
  border-top: 0.5px dashed var(--pb);
  margin-top: 2px;
}
.pl-filters-panel.module-filters-panel {
  border: none;
  border-radius: 0;
  margin-bottom: 0;
  background: transparent;
}
.pl-filters-panel.module-filters-panel:not(.open) { display: none; }
.sb-bar .filter-toggle-btn.expanded {
  border-radius: var(--prs);
  background: var(--pnl);
}
.sw        { display: flex; align-items: center; gap: 7px; flex: 1; background: #F7F9F7; border: 0.5px solid #ECEFF1; border-radius: var(--prs); padding: 6px 10px; }
.sw input  { border: none; background: transparent; outline: none; font-size: 12px; color: var(--ps); flex: 1; font-family: 'Outfit', sans-serif; }
.sw i      { color: #90A4AE; font-size: 14px; }
.tier-row  { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.tier-lbl  { font-size: 10px; color: #90A4AE; font-weight: 500; white-space: nowrap; }
.pl-filter-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 8px;
  border-bottom: 0.5px dashed #ECEFF1;
}
.pl-filter-section:last-of-type { border-bottom: none; }
.pl-filter-lbl {
  font-size: 9px;
  font-weight: 600;
  color: #90A4AE;
  text-transform: uppercase;
  letter-spacing: 0.35px;
}
.pl-gender-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.pl-gender-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  border: 1.5px solid #CFD8DC;
  background: #fff;
  color: #546E7A;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}
.pl-gender-pill i { font-size: 13px; opacity: 0.85; }
.pl-gender-pill:hover {
  border-color: #90A4AE;
  background: #F7F9F7;
}
.pl-gender-pill.on {
  border-color: var(--pg);
  background: var(--pgl);
  color: var(--pgd);
  box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.18);
}
.pl-gender-pill.on#pl-gc-both {
  border-color: #455A64;
  background: #455A64;
  color: #fff;
  box-shadow: 0 0 0 2px rgba(69, 90, 100, 0.22);
}
.pl-gender-pill.on#pl-gc-female {
  border-color: #C2185B;
  background: #FCE4EC;
  color: #AD1457;
  box-shadow: 0 0 0 2px rgba(194, 24, 91, 0.16);
}
.pl-gender-pill.on#pl-gc-male {
  border-color: #1565C0;
  background: #E3F2FD;
  color: #0D47A1;
  box-shadow: 0 0 0 2px rgba(21, 101, 192, 0.16);
}
.pl-location-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.pl-filter-location-input {
  flex: 1;
  min-width: 140px;
  margin-bottom: 0;
  font-size: 11px;
}
.pl-loc-btn {
  flex-shrink: 0;
  padding: 5px 8px;
  font-size: 10px;
  white-space: nowrap;
}
.pl-filter-hint {
  font-size: 10px;
  color: #607D8B;
  line-height: 1.35;
}
.pl-distance-section .pl-filter-distance-select {
  width: 100%;
  max-width: 220px;
  font-size: 11px;
  margin-bottom: 0;
}

/* DUPR range slider */
.dupr-row      { display: flex; align-items: center; gap: 10px; }
.dupr-range-lbl { font-size: 10px; color: #90A4AE; white-space: nowrap; }
.pl-trk-wrap   { position: relative; flex: 1; height: 6px; background: #ECEFF1; border-radius: 3px; }
.pl-fill { position: absolute; height: 6px; background: var(--pg); border-radius: 3px; top: 0; transition: left 0.15s, width 0.15s; }
.pl-th   { position: absolute; width: 14px; height: 14px; border-radius: 50%; background: white; border: 2px solid var(--pg); top: 50%; transform: translate(-50%,-50%); cursor: pointer; z-index: 2; transition: left 0.15s; }
.dupr-val-lbl { font-size: 11px; font-weight: 700; color: var(--pn); white-space: nowrap; min-width: 64px; }
.scale-row { display: flex; justify-content: space-between; font-size: 9px; color: #CFD8DC; padding: 0 2px; }

/* Player grid */
.dir-hd { display: flex; align-items: center; justify-content: space-between; }
.dir-t  { font-size: 12px; font-weight: 600; color: var(--ps); }
.dir-c  { font-size: 10px; color: #90A4AE; }
.pg {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  gap: 9px;
}
#pl-grid.pg {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
@media (min-width: 768px) {
  #pl-grid.pg {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
  }
}
@media (min-width: 1024px) {
  #pl-grid.pg {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
  }
}
@media (min-width: 1440px) {
  #pl-grid.pg {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  }
}
@media (max-width: 767px) {
  .pl-right .sb-bar-top { flex-direction: column; align-items: stretch; }
  .pl-filters-panel.open { width: 100%; }
}
.pc     {
  background: white;
  border-radius: var(--pr);
  border: 0.5px solid var(--pb);
  padding: 12px;
  cursor: pointer;
  transition: all 0.15s;
  overflow: hidden;
  min-width: 0;
}
.pc:hover { border-color: var(--pg); transform: translateY(-1px); }
.pc.dim   { opacity: 0.25; pointer-events: none; }
.pc-top   {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  column-gap: 9px;
  row-gap: 2px;
  align-items: start;
  margin-bottom: 8px;
}
.pc-av    {
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 12px;
  font-weight: 700;
}
.pc-info {
  grid-column: 2;
  grid-row: 1 / span 2;
  min-width: 0;
}
.pc-scores {
  grid-column: 3;
  grid-row: 1;
  text-align: right;
  line-height: 1.2;
  white-space: nowrap;
  justify-self: end;
  align-self: center;
}
.pc-dupr {
  grid-column: 3;
  grid-row: 1;
  text-align: right;
  line-height: 1.2;
  white-space: nowrap;
  justify-self: end;
}
.pc-top .coach-card-badge {
  grid-column: 3;
  grid-row: 2;
  justify-self: end;
}
#pl-grid .pc-n {
  color: #455a64;
  font-weight: 600;
}
#pl-grid .pc-h {
  font-size: 12px;
  font-weight: 500;
  color: #607d8b;
  line-height: 1.4;
  white-space: normal;
  overflow-wrap: break-word;
}
.pc-n     { font-size: 13px; font-weight: 600; color: var(--pn); line-height: 1.35; }
.pc-h     { font-size: 10px; color: #90A4AE; margin-top: 1px; line-height: 1.35; }
.pc-dv    { font-size: 15px; font-weight: 700; color: var(--pn); white-space: nowrap; }
.pc-dl    { font-size: 8px; color: #90A4AE; text-transform: uppercase; letter-spacing: 0.4px; white-space: nowrap; }
.pc-tags  {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 8px;
  max-width: 100%;
  min-width: 0;
}
.pc-tags .pt {
  max-width: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.pt    { font-size: 9px; font-weight: 500; padding: 2px 7px; border-radius: 20px; }
.pt-i  { background: var(--info-bg); color: var(--info-fg); }
.pt-a  { background: #FFF3E0; color: #E65100; }
.pt-b  { background: var(--success-bg); color: var(--success-fg); }
.pt-p  { background: #FCE4EC; color: #AD1457; }
.pt-privacy-demo {
  background: #EDE7F6;
  color: #4527A0;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.pt-photo-mugshot-demo {
  background: #E3F2FD;
  color: #1565C0;
  font-weight: 600;
}
.pt-privacy-sample {
  background: #E8EAF6;
  color: #3949AB;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.35px;
  font-size: 8px;
}
.pc-privacy-demo {
  border-color: rgba(69, 39, 160, 0.22);
  box-shadow: 0 0 0 1px rgba(69, 39, 160, 0.06);
}
.pt-tier-links-demo {
  background: #E8F5E9;
  color: #2E7D32;
  font-weight: 600;
}
.pc-tier-links-demo {
  border-color: rgba(46, 125, 50, 0.22);
  box-shadow: 0 0 0 1px rgba(46, 125, 50, 0.06);
}
.pc-meta { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
/* Directory: events / win rate only on profile Overview & Performance tabs */
#pl-grid .pc-meta .pmi:has(.ti-calendar),
#pl-grid .pc-meta .pmi:has(.ti-trophy) {
  display: none !important;
}
#pl-grid .pc-meta:not(:has(.pmi)) {
  display: none;
}
.pmi     { display: flex; align-items: center; gap: 3px; font-size: 10px; color: #78909C; }
.pmi i   { font-size: 11px; }
.pc-acts { display: flex; gap: 5px; margin-top: 9px; padding-top: 9px; border-top: 0.5px solid var(--pb); }
.pc-acts .btn { min-height: 32px; border-radius: 8px; }

/* Profile panel header — name row + skill tier pill */
.pl-panel-hd {
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px 10px;
}
.pl-panel-hd-text {
  flex: 1;
  min-width: 0;
}
.pl-panel-hd-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.pl-panel-hd-av-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pl-panel-hd-av-wrap:empty {
  display: none;
}
.pl-panel-hd-av,
.pl-panel-hd-av-wrap .pl-panel-hd-av.user-av {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  overflow: hidden;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.14);
}
.pl-panel-hd-title-row .panel-title {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pl-panel-hd-coach {
  flex-shrink: 0;
}
.pl-panel-coach-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.35px;
  text-transform: uppercase;
  color: #3949AB;
  background: linear-gradient(135deg, #E8EAF6 0%, #C5CAE9 55%, #E8EAF6 100%);
  border: 1px solid rgba(57, 73, 171, 0.35);
  box-shadow: 0 2px 8px rgba(57, 73, 171, 0.18);
  white-space: nowrap;
}
.pl-panel-coach-pill i {
  font-size: 12px;
}
.pl-panel-hd-tier {
  margin-top: 7px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.pl-panel-hd-tier[hidden],
.pl-panel-hd-coach[hidden] {
  display: none;
}
.pl-panel-tier-row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.pl-panel-hd .pl-panel-tier-pill {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 0;
  width: max-content;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  line-height: 1.2;
  white-space: nowrap;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
}
.pl-panel-tier-line {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0;
  min-width: 0;
  white-space: nowrap;
}
.pl-panel-dplus-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: max-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffe082 0%, #ffca28 55%, #f9a825 100%);
  color: #1e3a8a;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  border: 1px solid rgba(249, 168, 37, 0.45);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  white-space: nowrap;
}
.pl-panel-dplus-pill--pending {
  background: linear-gradient(135deg, rgba(255, 224, 130, 0.55) 0%, rgba(255, 202, 40, 0.45) 100%);
  color: rgba(30, 58, 138, 0.72);
  border-color: rgba(255, 202, 40, 0.35);
}
.pl-panel-dplus-mark {
  font-size: 0.72em;
  font-weight: 800;
  letter-spacing: 0.04em;
  opacity: 0.88;
}
.pl-panel-dplus-val {
  font-size: 1.05em;
  font-variant-numeric: tabular-nums;
}
.pl-panel-tier-title {
  font-size: inherit;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
  flex-shrink: 0;
}
.pl-panel-tier-dash {
  font-size: inherit;
  font-weight: 700;
  opacity: 0.55;
  padding: 0 4px;
  flex-shrink: 0;
}
.pl-panel-tier-ratings {
  font-size: 0.92em;
  font-weight: 600;
  letter-spacing: 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pl-panel-tier-ratings-brace {
  display: none;
}
.pl-panel-tier-ratings-sep {
  opacity: 0.85;
}
.pl-panel-tier-val {
  font-weight: 800;
}
.pl-panel-tier-val--empty {
  opacity: 0.55;
  font-weight: 700;
}
.pl-panel-hd .pl-panel-tier-link {
  font-size: inherit;
  font-weight: 800;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  white-space: nowrap;
  flex-shrink: 0;
}
.pl-panel-tier-rating-link {
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
}
.pl-panel-hd .pl-panel-tier-link:hover,
.pl-panel-hd .pl-panel-tier-link:focus-visible {
  opacity: 0.85;
  outline: 2px solid rgba(30, 58, 138, 0.35);
  outline-offset: 2px;
  border-radius: 4px;
}
.pl-panel-tier-pill.pl-skill-tier--u {
  background: linear-gradient(135deg, #f5f5f5 0%, #eceff1 100%);
  color: #546e7a;
  border-color: rgba(120, 144, 156, 0.4);
}
.pl-panel-tier-pill.pl-skill-tier--s {
  background: linear-gradient(135deg, #e8eaf6 0%, #d1c4e9 100%);
  color: #3949ab;
  border-color: rgba(57, 73, 171, 0.35);
}
.pl-panel-tier-pill.pl-skill-tier--b {
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  color: #1b5e20;
  border-color: rgba(46, 125, 50, 0.35);
}
.pl-panel-tier-pill.pl-skill-tier--i {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  color: #0d47a1;
  border-color: rgba(21, 101, 192, 0.35);
}
.pl-panel-tier-pill.pl-skill-tier--a {
  background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
  color: #bf360c;
  border-color: rgba(230, 81, 0, 0.35);
}
.pl-panel-tier-pill.pl-skill-tier--p {
  background: linear-gradient(135deg, #fce4ec 0%, #f8bbd0 100%);
  color: #880e4f;
  border-color: rgba(173, 20, 87, 0.35);
}
@media (min-width: 768px) {
  .pl-panel-hd .pl-panel-tier-pill {
    font-size: 16px;
    padding: 10px 18px;
  }
  .pl-panel-tier-ratings {
    font-size: 0.94em;
  }
  .pl-panel-dplus-pill {
    padding: 10px 14px;
    font-size: 16px;
  }
}

@media (max-width: 767px) {
  .pl-panel-hd .pl-panel-tier-pill {
    font-size: 13px;
    padding: 8px 12px;
  }
  .pl-panel-tier-ratings {
    font-size: 0.94em;
  }
  .pl-panel-dplus-pill {
    padding: 8px 11px;
    font-size: 13px;
  }
}

/* Skill rating modal (tier pill links) */
#pl-skill-rating-overlay.open {
  display: flex;
}
.pl-skill-rating-modal {
  width: min(420px, calc(100vw - 24px));
  max-height: calc(100vh - 32px);
  overflow-y: auto;
}
.pl-skill-rating-hint {
  margin: 0 0 14px;
  font-size: 12px;
  line-height: 1.45;
  color: #607D8B;
}
.pl-skill-rating-section {
  margin-bottom: 16px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #E8EDF2;
  background: linear-gradient(180deg, #fafbff 0%, #fff 100%);
}
.pl-skill-rating-section--focus {
  border-color: rgba(57, 73, 171, 0.45);
  box-shadow: 0 0 0 3px rgba(57, 73, 171, 0.12);
}
.pl-skill-field-wrap {
  position: relative;
  margin-bottom: 10px;
}
.pl-skill-field-wrap .fi {
  width: 100%;
  padding-right: 72px;
}
.pl-skill-field-badge {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.35px;
  text-transform: uppercase;
  color: #3949AB;
  background: #E8EAF6;
  border-radius: 999px;
  padding: 3px 8px;
}
.pl-skill-field-badge--official {
  color: #1B5E20;
  background: #E8F5E9;
}
.pl-skill-save-btn,
.pl-skill-connect-btn,
.pl-skill-disconnect-btn {
  width: 100%;
  justify-content: center;
  margin: 0;
}
.pl-skill-disconnect-btn {
  margin-top: 8px;
}
.pl-skill-dupr-linked-note {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 10px 0 0;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #1565C0;
  background: #E3F2FD;
  border: 1px solid #90CAF9;
  border-radius: 8px;
}
.pl-skill-dupr-linked-note .ti-check {
  font-size: 14px;
  color: var(--pg, #2E7D32);
}
.pl-skill-dupr-linked-note[hidden],
.pl-skill-disconnect-btn[hidden],
.pl-skill-connect-btn[hidden] {
  display: none !important;
}

/* Skill tier block — profile overview hero */
.pl-skill-tier {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  gap: 3px;
  padding: 8px 12px;
  min-width: 0;
  max-width: 132px;
  border-radius: 10px;
  background: #fff3e0;
  color: #bf360c;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16);
  text-align: center;
  line-height: 1.2;
}
.pl-skill-tier--b {
  background: #e8f5e9;
  color: #1b5e20;
  border-color: rgba(46, 125, 50, 0.35);
}
.pl-skill-tier--i {
  background: #e3f2fd;
  color: #0d47a1;
  border-color: rgba(21, 101, 192, 0.35);
}
.pl-skill-tier--a {
  background: #fff3e0;
  color: #bf360c;
  border-color: rgba(230, 81, 0, 0.35);
}
.pl-skill-tier--p {
  background: #fce4ec;
  color: #880e4f;
  border-color: rgba(173, 20, 87, 0.35);
}
.pl-skill-tier-title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.pl-skill-tier-range {
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.pl-skill-tier-range:empty {
  display: none;
}

/* Player profile panel */
.pp-top {
  background: var(--pn);
  border-radius: var(--pr);
  padding: 18px 16px;
  margin-bottom: 14px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 12px;
  row-gap: 8px;
  min-width: 0;
}
.pp-top-main  { min-width: 0; align-self: center; }
.pp-hero-stats {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  flex-shrink: 0;
  align-self: center;
}
.pp-hero-stats .pp-dupr-row {
  margin-top: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}
.pp-mugshot-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.pp-mugshot-inline {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 2.5px solid rgba(255, 255, 255, 0.95);
  box-shadow:
    0 3px 12px rgba(0, 0, 0, 0.32),
    0 0 0 1px rgba(15, 23, 42, 0.12);
}
.pp-mugshot-inline .user-av-mugshot {
  width: 92%;
  height: 92%;
}
.pp-av        { width: 96px; height: 96px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 17px; font-weight: 700; color: white; flex-shrink: 0; border: 3px solid rgba(255,255,255,0.28); box-shadow: 0 4px 18px rgba(0,0,0,0.22); overflow: hidden; }
#plPanel .pp-top {
  --pp-hero-disc: 96px;
}
#plPanel .pp-av-wrap {
  position: relative;
  flex-shrink: 0;
  width: var(--pp-hero-disc);
  height: var(--pp-hero-disc);
  align-self: center;
}
#plPanel .pp-av-wrap > .pp-av,
#plPanel .pp-av-wrap > .user-av.pp-av {
  width: 100%;
  height: 100%;
}
#plPanel .pp-av-edit-btn {
  position: absolute;
  right: -3px;
  bottom: -3px;
  z-index: 3;
  width: clamp(28px, 7.5vw, 36px);
  height: clamp(28px, 7.5vw, 36px);
  border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, 0.96);
  background: linear-gradient(145deg, #fff8e7 0%, #ffd54f 42%, #ffb300 100%);
  color: #1e3a8a;
  box-shadow:
    0 2px 10px rgba(0, 0, 0, 0.38),
    0 0 0 1px rgba(30, 58, 138, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
#plPanel .pp-av-edit-btn:hover,
#plPanel .pp-av-edit-btn:focus-visible {
  transform: scale(1.06);
  background: linear-gradient(145deg, #fffde7 0%, #ffe082 40%, #ffc107 100%);
  box-shadow:
    0 3px 14px rgba(0, 0, 0, 0.42),
    0 0 0 2px rgba(255, 255, 255, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
  outline: none;
}
#plPanel .pp-av-edit-btn i {
  font-size: clamp(14px, 3.8vw, 17px);
  line-height: 1;
  color: #1e3a8a;
  -webkit-text-stroke: 0.2px rgba(255, 255, 255, 0.35);
}
#plPanel .pp-av {
  width: var(--pp-hero-disc);
  height: var(--pp-hero-disc);
  border-width: 2.5px;
}
#plPanel .pp-av .user-av-mugshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  transform: scale(1.14);
  transform-origin: center center;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.42));
}
#plPanel .pp-av .user-av-svg,
#plPanel .pp-av svg {
  width: 100%;
  height: 100%;
  transform: scale(1.12);
  transform-origin: center center;
}
#plPanel .pp-av.user-av--mugshot.user-av--animal {
  background: radial-gradient(circle at 50% 36%, rgba(255, 255, 255, 0.1) 0%, transparent 68%) !important;
}
#plPanel .pp-mugshot-inline {
  width: calc(var(--pp-hero-disc) * 0.8);
  height: calc(var(--pp-hero-disc) * 0.8);
  border-width: 2.5px;
}
#plPanel .pp-mugshot-inline .user-av-mugshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  transform: scale(1.12);
  transform-origin: center center;
}
#plPanel .pp-mugshot-inline .user-av-svg,
#plPanel .pp-mugshot-inline svg {
  width: 100%;
  height: 100%;
  transform: scale(1.1);
  transform-origin: center center;
}
#plPanel .pp-top .ps-perf-block {
  flex: 0 0 auto;
  align-self: center;
  justify-self: end;
  min-width: 0;
  max-width: none;
  width: max-content;
  gap: 4px;
  padding-top: 0;
  margin-left: auto;
  margin-right: 0;
}
#plPanel .pp-top .ps-perf-ring-wrap {
  padding-right: 0;
  padding-top: 0;
  width: fit-content;
  margin-inline: 0 0;
  margin-left: auto;
}
#plPanel .pp-top .ps-perf-ring {
  width: var(--pp-hero-disc);
  height: var(--pp-hero-disc);
}
#plPanel .pp-top .ps-perf-ring-inner {
  width: 66%;
  height: 66%;
}
#plPanel .pp-top .ps-perf-num {
  font-size: 30px;
}
#plPanel .pp-top .ps-perf-range-lbl {
  font-size: 10px;
}
#plPanel .pp-top .ps-perf-caption {
  font-size: 12px;
  line-height: 1.15;
  max-width: none;
  white-space: nowrap;
}
#plPanel .pp-top .ps-perf-ring-wrap .ps-perf-help-btn {
  top: 0;
  right: 0;
  width: 22px;
  height: 22px;
  font-size: 13px;
}
.pp-av.user-av {
  font-size: 0;
  font-weight: normal;
  color: transparent;
  padding: 0;
}
.pp-name      { color: white; font-size: 15px; font-weight: 600; }
.pp-hdl       { color: rgba(255,255,255,0.5); font-size: 10px; margin-top: 2px; }
.pp-dupr-row  { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
#plPanel .pp-dupr-row .pl-skill-tier {
  max-width: 140px;
  padding: 9px 14px;
}
#plPanel .pp-dupr-row .pl-skill-tier-title {
  font-size: 14px;
}
#plPanel .pp-dupr-row .pl-skill-tier-range {
  font-size: 12px;
}
.pp-stats     { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; margin-bottom: 14px; }
.pp-stat      { background: white; border-radius: 8px; padding: 9px; text-align: center; border: 0.5px solid var(--pb); }
.pp-stat-v    { font-size: 16px; font-weight: 700; color: var(--pn); }
.pp-stat-l    { font-size: 11px; font-weight: 700; color: #334155; margin-top: 3px; text-transform: uppercase; letter-spacing: 0.4px; }
.match-hist-item { display: flex; align-items: center; gap: 9px; padding: 8px 10px; background: white; border-radius: var(--prs); border: 0.5px solid var(--pb); margin-bottom: 6px; }
.mhi-result   { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; flex-shrink: 0; }
.mhi-w        { background: var(--success-bg); color: var(--success-fg); }
.mhi-l        { background: #FFEBEE; color: #C62828; }
.mhi-info     { flex: 1; }
.mhi-name     { font-size: 12px; font-weight: 500; color: var(--ps); }
.mhi-sub      { font-size: 11px; font-weight: 500; color: #64748B; margin-top: 2px; }
.mhi-dupr     { text-align: right; }
.mhi-change   { font-size: 11px; font-weight: 600; }
.mhi-up       { color: var(--pg); }
.mhi-dn       { color: #E53935; }

/* Player profile as modal overlay (always above module view) */
#plPanelOverlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 210px;
  z-index: var(--z-modal-overlay);
  background: rgba(17, 24, 39, 0.42);
  backdrop-filter: blur(1px);
}
@media (max-width: 1023px) {
  #plPanelOverlay { left: 0; }
}
#plPanel {
  position: fixed;
  top: 50%;
  left: 50%;
  right: auto;
  width: min(1020px, calc(100vw - 32px));
  height: min(88vh, 860px);
  max-height: min(88vh, 860px);
  border-radius: 14px;
  box-shadow: 0 18px 56px rgba(0, 0, 0, 0.3);
  transform: translate(-50%, -48%) scale(0.985);
  transition: transform 0.22s ease, opacity 0.22s ease;
  opacity: 0;
  z-index: var(--z-modal-panel);
}
#plPanel.open {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}
/* Player profile opened from full-screen live session (z-index 1330) */
body.pl-panel-above-live-session #plPanelOverlay.open {
  z-index: calc(var(--z-live-session, 1330) + 10);
}
body.pl-panel-above-live-session #plPanel.open {
  z-index: calc(var(--z-live-session, 1330) + 11);
}
#plPanel .panel-hd { order: 0; }
#plPanel .pl-panel-tabs-bar {
  order: 1;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 0 12px 10px;
  border-bottom: 0.5px solid var(--pb);
  background: white;
  flex-shrink: 0;
  position: relative;
  z-index: 4;
  overflow: visible;
}
#plPanel #pl-panel-tabs {
  flex: 1;
  min-width: 0;
}
#plPanel #pl-panel-privacy-wrap { order: 2; }
#plPanel #plPanelActions.pl-panel-actions-inline {
  flex-shrink: 0;
  align-self: flex-end;
  position: relative;
  width: auto;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  pointer-events: auto;
}
#plPanel #plPanelActions.pl-panel-actions-inline .pl-panel-actions-toggle {
  width: auto;
  margin: 0;
  padding: 8px 12px 8px 10px;
  gap: 8px;
  border: 1px solid #283593;
  border-radius: 10px;
  background: linear-gradient(135deg, #3949ab 0%, #5c6bc0 45%, #536dfe 100%);
  color: #fff;
  box-shadow:
    0 4px 14px rgba(57, 73, 171, 0.38),
    0 1px 3px rgba(26, 35, 126, 0.22);
  white-space: nowrap;
}
#plPanel #plPanelActions.pl-panel-actions-inline .pl-panel-actions-toggle:hover {
  background: linear-gradient(135deg, #303f9f 0%, #536dfe 45%, #651fff 100%);
  border-color: #1a237e;
  box-shadow:
    0 6px 18px rgba(57, 73, 171, 0.45),
    0 2px 6px rgba(26, 35, 126, 0.25);
}
#plPanel #plPanelActions.pl-panel-actions-inline.is-expanded .pl-panel-actions-toggle {
  border-color: #ffd54f;
  background: linear-gradient(135deg, #303f9f 0%, #5c6bc0 40%, #536dfe 100%);
  box-shadow:
    0 0 0 2px rgba(255, 213, 79, 0.45),
    0 6px 18px rgba(57, 73, 171, 0.45);
}
#plPanel #plPanelActions.pl-panel-actions-inline .pl-panel-actions-toggle-sub {
  display: none;
}
#plPanel #plPanelActions.pl-panel-actions-inline .pl-panel-actions-toggle-lead {
  width: 26px;
  height: 26px;
  margin-top: 0;
  border-radius: 7px;
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
#plPanel #plPanelActions.pl-panel-actions-inline .pl-panel-actions-toggle-lead i {
  font-size: 15px;
}
#plPanel #plPanelActions.pl-panel-actions-inline .pl-panel-actions-toggle-copy {
  flex: 0 1 auto;
}
#plPanel #plPanelActions.pl-panel-actions-inline .pl-panel-actions-toggle-title {
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
#plPanel #plPanelActions.pl-panel-actions-inline .pl-panel-actions-chevron-btn {
  width: 22px;
  height: 22px;
  margin-left: 2px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 2px 6px rgba(26, 35, 126, 0.2);
}
#plPanel #plPanelActions.pl-panel-actions-inline .pl-panel-actions-chevron {
  font-size: 15px;
  color: #3949ab;
}
#plPanel #plPanelActions.pl-panel-actions-inline .pl-panel-actions-body {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  left: auto;
  width: min(280px, calc(100vw - 40px));
  padding: 0;
  z-index: 30;
}
#plPanel #plPanelActions.pl-panel-actions-shell {
  display: flex;
  flex-direction: column;
}
#plPanel #plPanelActions .pl-panel-actions-toggle {
  display: flex;
  align-items: center;
  color: #1e3a8a;
  font-family: 'Outfit', sans-serif;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
#plPanel #plPanelActions .pl-panel-actions-toggle:focus-visible {
  outline: 2px solid rgba(57, 73, 171, 0.45);
  outline-offset: -2px;
}
#plPanel #plPanelActions .pl-panel-actions-toggle-lead {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #3949ab;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(57, 73, 171, 0.18);
  box-shadow: 0 2px 8px rgba(57, 73, 171, 0.12);
}
#plPanel #plPanelActions .pl-panel-actions-toggle-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
#plPanel #plPanelActions .pl-panel-actions-toggle-title {
  letter-spacing: 0.02em;
  line-height: 1.2;
}
#plPanel #plPanelActions .pl-panel-actions-toggle-sub {
  font-size: 10px;
  font-weight: 600;
  color: #5c6bc0;
  line-height: 1.35;
  white-space: normal;
}
#plPanel #plPanelActions .pl-panel-actions-chevron-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(57, 73, 171, 0.22);
  box-shadow: 0 2px 8px rgba(57, 73, 171, 0.14);
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
#plPanel #plPanelActions .pl-panel-actions-toggle:hover .pl-panel-actions-chevron-btn {
  background: #fff;
  border-color: rgba(57, 73, 171, 0.35);
  box-shadow: 0 3px 10px rgba(57, 73, 171, 0.18);
}
#plPanel #plPanelActions .pl-panel-actions-chevron {
  color: #3949ab;
  transition: transform 0.24s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s ease;
}
#plPanel #plPanelActions.is-expanded .pl-panel-actions-chevron {
  transform: rotate(180deg);
  color: #283593;
}
#plPanel #plPanelActions .pl-panel-actions-body {
  pointer-events: auto;
}
#plPanel #plPanelActions .pl-panel-actions-body[hidden] {
  display: none !important;
}
#plPanel #plPanelActions.is-expanded .pl-panel-actions-body:not([hidden]) {
  animation: pl-panel-actions-drop 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes pl-panel-actions-drop {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
#plPanel #plPanelActions .pl-panel-actions-menu {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid rgba(207, 216, 220, 0.85);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow:
    0 10px 28px rgba(26, 35, 126, 0.12),
    0 2px 8px rgba(57, 73, 171, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}
#plPanel #plPanelActions .pl-panel-action-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 40px;
  margin: 0;
  padding: 9px 12px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #334155;
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
#plPanel #plPanelActions .pl-panel-action-item i {
  font-size: 15px;
  color: #5c6bc0;
  flex-shrink: 0;
}
#plPanel #plPanelActions .pl-panel-action-item span {
  flex: 1;
  min-width: 0;
}
#plPanel #plPanelActions .pl-panel-action-item:hover:not(:disabled),
#plPanel #plPanelActions .pl-panel-action-item:focus-visible:not(:disabled) {
  background: linear-gradient(135deg, #eef2ff 0%, #f5f7ff 100%);
  color: #1e3a8a;
  outline: none;
}
#plPanel #plPanelActions .pl-panel-action-item--primary {
  background: linear-gradient(135deg, #3949ab 0%, #5c6bc0 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(57, 73, 171, 0.28);
}
#plPanel #plPanelActions .pl-panel-action-item--primary i {
  color: rgba(255, 255, 255, 0.92);
}
#plPanel #plPanelActions .pl-panel-action-item--primary:hover:not(:disabled),
#plPanel #plPanelActions .pl-panel-action-item--primary:focus-visible:not(:disabled) {
  background: linear-gradient(135deg, #303f9f 0%, #536dfe 100%);
  color: #fff;
}
#plPanel #plPanelActions .pl-panel-action-item:disabled {
  opacity: 0.55;
  cursor: default;
}
#plPanel #plPanelActions[hidden] {
  display: none !important;
  padding: 0;
  border: none;
}
#plPanel #plPanelBody {
  order: 3;
  min-height: 0;
  overflow-y: auto;
}

/* Desktop — prominent Connect CTA beside tabs */
@media (min-width: 768px) {
  #plPanel .pl-panel-tabs-bar {
    align-items: stretch;
    gap: 10px;
    padding: 0 14px 12px;
  }
  #plPanel #plPanelActions.pl-panel-actions-inline {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: stretch;
  }
  #plPanel #plPanelActions.pl-panel-actions-inline .pl-panel-actions-toggle {
    flex: 1;
    min-height: 46px;
    padding: 12px 22px 12px 14px;
    gap: 12px;
    border-radius: 11px;
  }
  #plPanel #plPanelActions.pl-panel-actions-inline .pl-panel-actions-toggle-title {
    font-size: 16px;
    letter-spacing: 0.05em;
  }
  #plPanel #plPanelActions.pl-panel-actions-inline .pl-panel-actions-toggle-lead {
    width: 36px;
    height: 36px;
    border-radius: 9px;
  }
  #plPanel #plPanelActions.pl-panel-actions-inline .pl-panel-actions-toggle-lead i {
    font-size: 19px;
  }
  #plPanel #plPanelActions.pl-panel-actions-inline .pl-panel-actions-chevron-btn {
    width: 30px;
    height: 30px;
  }
  #plPanel #plPanelActions.pl-panel-actions-inline .pl-panel-actions-chevron {
    font-size: 18px;
  }
  #plPanel #plPanelActions.pl-panel-actions-inline .pl-panel-actions-body {
    width: min(300px, calc(100vw - 48px));
    top: calc(100% + 8px);
  }
}

@media (min-width: 768px) {
  #plPanel .pp-top {
    padding: 22px 20px;
    column-gap: 18px;
    --pp-hero-disc: 128px;
  }
  #plPanel .pp-av {
    width: var(--pp-hero-disc);
    height: var(--pp-hero-disc);
  }
  #plPanel .pp-av-wrap {
    width: var(--pp-hero-disc);
    height: var(--pp-hero-disc);
  }
  #plPanel .pp-av-edit-btn {
    width: 38px;
    height: 38px;
    right: -2px;
    bottom: -2px;
  }
  #plPanel .pp-av-edit-btn i {
    font-size: 18px;
  }
  #plPanel .pp-name {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
  }
  #plPanel .pp-hdl {
    font-size: 16px;
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.72);
  }
  #plPanel .pp-dupr-row {
    gap: 10px;
  }
  #plPanel .pp-hero-stats .pp-dupr-row {
    margin-top: 0;
  }
  #plPanel .pp-dupr-row .pl-skill-tier {
    max-width: none;
    width: max-content;
    padding: 12px 18px;
    gap: 4px;
    border-radius: 12px;
  }
  #plPanel .pp-hero-stats .pl-skill-tier-title {
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
  }
  #plPanel .pp-dupr-row .pl-skill-tier-title {
    font-size: 20px;
  }
  #plPanel .pp-dupr-row .pl-skill-tier-range {
    font-size: 15px;
  }
  #plPanel .pp-dupr-row .ps-delta {
    font-size: 14px;
    font-weight: 700;
    padding: 5px 12px;
    gap: 4px;
    border-radius: 12px;
  }
  #plPanel .pp-top .ps-perf-block {
    max-width: none;
    gap: 5px;
  }
  #plPanel .pp-top .ps-perf-ring {
    width: var(--pp-hero-disc);
    height: var(--pp-hero-disc);
  }
  #plPanel .pp-top .ps-perf-ring-inner {
    width: 66%;
    height: 66%;
  }
  #plPanel .pp-top .ps-perf-num {
    font-size: 40px;
  }
  #plPanel .pp-top .ps-perf-range-lbl {
    font-size: 11px;
  }
  #plPanel .pp-top .ps-perf-caption {
    font-size: 14px;
    font-weight: 700;
    max-width: none;
  }
  #plPanel .pp-top .ps-perf-ring-wrap .ps-perf-help-btn {
    width: 26px;
    height: 26px;
    font-size: 15px;
  }
}

@media (min-width: 1024px) {
  #plPanel .pp-top {
    padding: 24px 22px;
    column-gap: 20px;
    --pp-hero-disc: 148px;
  }
  #plPanel .pp-av {
    width: var(--pp-hero-disc);
    height: var(--pp-hero-disc);
  }
  #plPanel .pp-av-wrap {
    width: var(--pp-hero-disc);
    height: var(--pp-hero-disc);
  }
  #plPanel .pp-av-edit-btn {
    width: 42px;
    height: 42px;
  }
  #plPanel .pp-av-edit-btn i {
    font-size: 19px;
  }
  #plPanel .pp-mugshot-inline {
    border-width: 3px;
  }
  #plPanel .pp-name {
    font-size: 30px;
  }
  #plPanel .pp-hdl {
    font-size: 17px;
  }
  #plPanel .pp-dupr-row .pl-skill-tier-title {
    font-size: 22px;
  }
  #plPanel .pp-dupr-row .pl-skill-tier-range {
    font-size: 16px;
  }
  #plPanel .pp-dupr-row .ps-delta {
    font-size: 15px;
    padding: 6px 14px;
  }
  #plPanel .pp-top .ps-perf-ring {
    width: var(--pp-hero-disc);
    height: var(--pp-hero-disc);
  }
  #plPanel .pp-top .ps-perf-ring-inner {
    width: 66%;
    height: 66%;
  }
  #plPanel .pp-top .ps-perf-num {
    font-size: 46px;
  }
  #plPanel .pp-top .ps-perf-caption {
    font-size: 15px;
    max-width: none;
  }
}

@media (max-width: 767px) {
  #plPanel {
    width: calc(100vw - 10px);
    height: calc(100vh - 18px);
    max-height: calc(100vh - 18px);
    border-radius: 12px;
  }
  #plPanel .pp-top {
    column-gap: 8px;
    row-gap: 6px;
    padding: 12px 8px 12px 10px;
    align-items: center;
    grid-template-columns: auto 1fr auto;
    --pp-hero-disc: clamp(100px, 28vw, 118px);
  }
  #plPanel .pp-top-main {
    width: max-content;
    min-width: 0;
  }
  #plPanel .pp-top .pp-name,
  #plPanel .pp-top .pp-hdl {
    display: none;
  }
  #plPanel .pp-av {
    width: var(--pp-hero-disc);
    height: var(--pp-hero-disc);
  }
  #plPanel .pp-mugshot-row {
    margin-top: 0;
  }
  #plPanel .pp-hero-stats {
    align-self: center;
  }
  #plPanel .pp-hero-stats .pp-dupr-row {
    gap: 5px;
  }
  #plPanel .pp-hero-stats .pl-skill-tier {
    max-width: none;
    width: max-content;
  }
  #plPanel .pp-hero-stats .pl-skill-tier-title {
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
  }
  #plPanel .pp-dupr-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    row-gap: 4px;
  }
  #plPanel .pp-dupr-row .pl-skill-tier {
    flex-shrink: 0;
    padding: 6px 10px;
    max-width: none;
    width: max-content;
  }
  #plPanel .pp-dupr-row .pl-skill-tier-title {
    font-size: 11px;
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
  }
  #plPanel .pp-dupr-row .pl-skill-tier-range {
    font-size: 9px;
  }
  #plPanel .pp-dupr-row .ps-delta {
    flex: 0 1 auto;
    max-width: none;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 9px;
    white-space: nowrap;
  }
  #plPanel .pp-top .ps-perf-block {
    max-width: none;
    gap: 3px;
    justify-self: end;
    margin-left: auto;
    margin-right: 0;
  }
  #plPanel .pp-top .ps-perf-ring {
    width: var(--pp-hero-disc);
    height: var(--pp-hero-disc);
  }
  #plPanel .pp-top .ps-perf-ring-inner {
    width: 66%;
    height: 66%;
  }
  #plPanel .pp-top .ps-perf-num {
    font-size: clamp(26px, 7vw, 34px);
  }
  #plPanel .pp-top .ps-perf-range-lbl {
    font-size: clamp(8px, 2.2vw, 10px);
  }
  #plPanel .pp-top .ps-perf-caption {
    font-size: clamp(10px, 2.8vw, 12px);
    line-height: 1.15;
    max-width: none;
    white-space: nowrap;
  }
  #plPanel .pp-top .ps-perf-ring-wrap .ps-perf-help-btn {
    width: clamp(18px, 5vw, 22px);
    height: clamp(18px, 5vw, 22px);
    font-size: clamp(11px, 3vw, 13px);
  }
}

@media (max-width: 767px) {
  #plPanel .pl-panel-tabs-bar {
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 5px;
    padding: 8px 8px 10px;
  }
  #plPanel #pl-panel-tabs {
    flex: 1 1 auto;
    min-width: 0;
  }
  #plPanel #pl-panel-tabs .pl-panel-tabs {
    gap: 3px;
    height: 100%;
  }
  #plPanel #pl-panel-tabs .pl-panel-tab {
    padding: 8px 4px;
    font-size: 11px;
    font-weight: 600;
    gap: 3px;
    min-width: 0;
    line-height: 1.2;
  }
  #plPanel #pl-panel-tabs .pl-panel-tab > i:not(.pl-panel-tab-lock) {
    display: none;
  }
  #plPanel #pl-panel-tabs .pl-panel-tab.on {
    font-weight: 700;
  }
  #plPanel #pl-panel-tabs .pl-panel-tab-lock {
    display: none;
  }
  #plPanel #plPanelActions.pl-panel-actions-inline {
    flex: 0 0 auto;
    align-self: stretch;
  }
  #plPanel #plPanelActions.pl-panel-actions-inline .pl-panel-actions-toggle {
    width: auto;
    height: 100%;
    min-height: 0;
    justify-content: center;
    padding: 7px 10px 7px 8px;
    gap: 6px;
  }
  #plPanel #plPanelActions.pl-panel-actions-inline .pl-panel-actions-toggle-title {
    font-size: 10px;
  }
  #plPanel #plPanelActions.pl-panel-actions-inline .pl-panel-actions-toggle-lead {
    width: 24px;
    height: 24px;
  }
  #plPanel #plPanelActions.pl-panel-actions-inline .pl-panel-actions-toggle-lead i {
    font-size: 14px;
  }
  #plPanel #plPanelActions.pl-panel-actions-inline .pl-panel-actions-chevron-btn {
    width: 20px;
    height: 20px;
  }
  #plPanel #plPanelActions.pl-panel-actions-inline .pl-panel-actions-body {
    left: auto;
    right: 0;
    width: min(280px, calc(100vw - 24px));
  }
}

@media (max-width: 479px) {
  #plPanel #pl-panel-tabs .pl-panel-tab {
    font-size: 11px;
    padding: 7px 2px;
  }
  #plPanel #plPanelActions.pl-panel-actions-inline .pl-panel-actions-toggle {
    padding: 6px 8px 6px 7px;
    gap: 4px;
  }
  #plPanel #plPanelActions.pl-panel-actions-inline .pl-panel-actions-toggle-title {
    display: none;
  }
  #plPanel #plPanelActions.pl-panel-actions-inline .pl-panel-actions-toggle-lead {
    width: 22px;
    height: 22px;
  }
  #plPanel #plPanelActions.pl-panel-actions-inline .pl-panel-actions-toggle-lead i {
    font-size: 13px;
  }
  #plPanel #plPanelActions .pl-panel-actions-menu {
    padding: 5px;
  }
  #plPanel #plPanelActions .pl-panel-action-item {
    min-height: 38px;
    padding: 8px 10px;
    font-size: 11px;
  }
}
