body.is-player-profile-modal-open{overflow:hidden}
#playerProfileOverlay[aria-hidden="true"]{display:none}
#playerProfileOverlay{position:fixed;inset:0;z-index:99999;display:none;align-items:center;justify-content:center;padding:4px;background:rgba(2,8,18,.78);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
#playerProfileOverlay.is-open,#playerProfileOverlay[aria-hidden="false"]{display:flex}

#playerProfileOverlay .player-profile-modal[data-profile-v3="1"]{
  width:min(1600px,calc(100vw - 8px));
  height:min(1040px,calc(100dvh - 8px));
  max-width:none;
  max-height:none;
  min-height:0;
  border-radius:26px;
  border:1px solid rgba(255,255,255,.11);
  box-shadow:0 30px 90px rgba(0,0,0,.58);
  overflow:hidden;
  position:relative;
  display:flex;
  flex-direction:column;
  background:linear-gradient(160deg,#081728,#061220);
}
#playerProfileOverlay .ppv3-scroll{
  height:100%;
  min-height:0;
  overflow:hidden;
  padding:0;
  gap:0;
}
#playerProfileOverlay .ppv3-panel{
  display:grid;
  grid-template-rows:auto minmax(0,1fr);
  gap:0;
  height:100%;
  min-height:0;
  padding:0;
  margin:0;
  background:transparent;
  border:0;
}
#playerProfileOverlay .ppv3-panel>.section-head{
  margin:0;
  padding:10px 18px 9px;
  min-height:58px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  border-bottom:1px solid rgba(255,255,255,.07);
}
#playerProfileOverlay .ppv3-panel>.section-head>div:first-child{min-width:0}
#playerProfileOverlay .ppv3-panel>.section-head .section-title{margin:0;font-size:25px;line-height:1.08;letter-spacing:-.02em}
#playerProfileOverlay .ppv3-panel>.section-head .profile-return{flex:0 0 auto;display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}
#playerProfileOverlay .ppv3-panel>.section-head .profile-return .btn{min-height:40px;padding:0 16px;border-radius:14px;background:rgba(255,255,255,.075);border-color:rgba(255,255,255,.13)}
#playerProfileOverlay .ppv3-panel>.section-head #exportPlayerDataBtn{background:linear-gradient(180deg,rgba(34,197,94,.24),rgba(22,163,74,.16));border-color:rgba(34,197,94,.28);color:#edfff3}
#playerProfileOverlay .ppv3-kicker{font-size:10px;font-weight:900;letter-spacing:.14em;color:#26d875;text-transform:uppercase;line-height:1.25}

#playerProfileOverlay .ppv3-body{
  min-height:0;
  height:100%;
  display:grid;
  grid-template-columns:260px minmax(0,1fr);
  gap:8px;
  padding:4px 10px 8px;
  overflow:hidden;
}
#playerProfileOverlay .ppv3-aside{
  min-height:0;
  display:flex;
  flex-direction:column;
  padding:11px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:20px;
  background:rgba(255,255,255,.025);
  overflow:hidden;
}
#playerProfileOverlay .ppv3-preview{display:flex;flex-direction:column;min-height:0;overflow:hidden}
#playerProfileOverlay .ppv3-preview .photo-box{height:150px;min-height:132px;border-radius:16px;flex:0 0 auto}
#playerProfileOverlay .ppv3-preview .photo-box img{width:100%;height:100%;object-fit:cover;display:block}
#playerProfileOverlay .ppv3-preview .profile-name{font-size:20px;margin-top:9px;line-height:1.1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#playerProfileOverlay .ppv3-preview .profile-sub{font-size:12px;margin-top:5px}
#playerProfileOverlay .ppv3-preview .identity-badges{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin-top:8px;overflow:hidden;padding-right:0}
#playerProfileOverlay .ppv3-preview .identity-card{padding:7px 8px;border-radius:12px;min-height:46px}
#playerProfileOverlay .ppv3-preview .identity-label{font-size:8px}
#playerProfileOverlay .ppv3-preview .identity-value{font-size:12px}
#playerProfileOverlay .ppv3-side-actions{display:grid;gap:6px;margin-top:auto;padding-top:8px}
#playerProfileOverlay .ppv3-side-actions .btn{width:100%;min-height:36px;font-size:11px;white-space:nowrap}
#playerProfileOverlay .ppv3-side-actions .primary{font-size:12px}

#playerProfileOverlay .ppv3-main{
  min-width:0;
  min-height:0;
  height:100%;
  display:grid;
  grid-template-rows:auto auto minmax(0,1fr);
  align-content:stretch;
  gap:8px;
  overflow:hidden;
  padding:0;
}
#playerProfileOverlay .ppv3-facts{
  display:grid;
  grid-template-columns:repeat(7,minmax(0,1fr));
  gap:7px;
  padding:8px 11px;
  border:1px solid rgba(255,255,255,.07);
  border-radius:16px;
  background:rgba(255,255,255,.022);
}
#playerProfileOverlay .ppv3-facts>div{min-width:0;display:grid;gap:3px}
#playerProfileOverlay .ppv3-facts span,#playerProfileOverlay .ppv3-metric span{font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.06em;color:#80d9ad;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#playerProfileOverlay .ppv3-facts strong{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

#playerProfileOverlay .ppv3-history-overview{
  display:grid;
  grid-template-rows:auto auto;
  gap:6px;
  min-width:0;
  min-height:0;
  margin:0;
  padding:8px;
  border:1px solid rgba(255,255,255,.07);
  border-radius:16px;
  background:rgba(255,255,255,.022);
  overflow:visible;
}
#playerProfileOverlay .ppv3-history-overview .player-history-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;min-width:0}
#playerProfileOverlay .ppv3-history-overview .player-history-heading .module-kicker{font-size:8px}
#playerProfileOverlay .ppv3-history-overview .player-history-heading .module-title{margin:0;font-size:15px;line-height:1.05}
#playerProfileOverlay .ppv3-history-overview .player-history-heading .module-copy{margin:0 0 1px;max-width:620px;font-size:9px;line-height:1.3;color:var(--muted);text-align:right}
#playerProfileOverlay .ppv3-history-overview .player-history-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:6px;
  min-width:0;
  min-height:0;
  align-items:start;
}
#playerProfileOverlay .ppv3-history-overview .player-history-card{
  display:grid;
  grid-template-rows:auto auto auto;
  gap:5px;
  min-width:0;
  min-height:0;
  height:auto;
  padding:7px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.055);
  background:rgba(2,6,23,.2);
  overflow:visible;
}
#playerProfileOverlay .ppv3-history-overview .history-head{display:grid;grid-template-columns:64px minmax(0,1fr);gap:7px;align-items:end}
#playerProfileOverlay .ppv3-history-overview .history-head>.mini-k{align-self:center;font-size:8px;letter-spacing:.1em}
#playerProfileOverlay .ppv3-history-overview .selector-field{gap:3px}
#playerProfileOverlay .ppv3-history-overview .selector-field .label{font-size:8px;letter-spacing:.08em}
#playerProfileOverlay .ppv3-history-overview .selector-field .select{min-height:34px;height:34px;padding:0 30px 0 10px;border-radius:9px;font-size:10px}
#playerProfileOverlay .ppv3-history-overview .trend-chart{
  min-height:112px;
  height:auto;
  padding:8px 10px;
  border-radius:10px;
  gap:6px;
  overflow:visible;
}
#playerProfileOverlay .ppv3-history-overview .trend-caption{font-size:8px;letter-spacing:.08em}
#playerProfileOverlay .ppv3-history-overview .trend-bars{min-height:76px;gap:6px}
#playerProfileOverlay .ppv3-history-overview .trend-bar-wrap{gap:4px}
#playerProfileOverlay .ppv3-history-overview .trend-bar{max-width:24px;border-radius:7px 7px 3px 3px}
#playerProfileOverlay .ppv3-history-overview .trend-value{font-size:9px}
#playerProfileOverlay .ppv3-history-overview .trend-label{font-size:8px;line-height:1.15}
#playerProfileOverlay .ppv3-history-overview .history-list{
  display:grid;
  gap:4px;
  max-height:none;
  overflow:visible;
  padding-right:0;
}
#playerProfileOverlay .ppv3-history-overview .history-item{min-height:0;padding:6px 8px;border-radius:9px;gap:6px}
#playerProfileOverlay .ppv3-history-overview .history-item-main{gap:1px}
#playerProfileOverlay .ppv3-history-overview .history-title{font-size:9px;line-height:1.2}
#playerProfileOverlay .ppv3-history-overview .history-sub{font-size:8px;line-height:1.2}
#playerProfileOverlay .ppv3-history-overview .history-value{font-size:9px}

#playerProfileOverlay .ppv3-grid{
  min-height:0;
  height:100%;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  grid-template-rows:repeat(2,minmax(0,1fr));
  gap:8px;
  overflow:hidden;
}
#playerProfileOverlay .ppv3-card{min-width:0;min-height:0;height:100%;padding:10px;border:1px solid rgba(255,255,255,.075);border-radius:17px;background:rgba(255,255,255,.025);display:flex;flex-direction:column;overflow:hidden}
#playerProfileOverlay .ppv3-card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:8px}
#playerProfileOverlay .ppv3-card h3{font-size:15px;margin:1px 0 0;line-height:1.08}
#playerProfileOverlay .ppv3-badge{flex:0 0 auto;max-width:46%;padding:6px 9px;border-radius:999px;background:rgba(34,197,94,.12);border:1px solid rgba(34,197,94,.18);color:#c7f9d8;font-size:9px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#playerProfileOverlay .ppv3-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin-top:7px}
#playerProfileOverlay .ppv3-metric{min-width:0;padding:7px;border-radius:11px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.045);display:grid;gap:2px}
#playerProfileOverlay .ppv3-metric strong{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#playerProfileOverlay .ppv3-card-four .ppv3-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}
#playerProfileOverlay .ppv3-card-five .ppv3-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}
#playerProfileOverlay .ppv3-card-five .ppv3-metric:nth-child(n/**/+4){grid-column:span 1}
#playerProfileOverlay .ppv3-card-five .ppv3-metric strong{font-size:12px}
#playerProfileOverlay .ppv3-history{min-height:0;margin-top:5px;overflow:hidden;display:grid;align-content:start;gap:3px}
#playerProfileOverlay .ppv3-history-row{padding:7px 8px;border-radius:10px;background:rgba(255,255,255,.025);font-size:9px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#playerProfileOverlay .ppv3-card-actions{margin-top:auto;display:flex;gap:5px;flex-wrap:wrap;padding-top:5px}
#playerProfileOverlay .ppv3-card-actions .btn{min-height:30px;padding:5px 8px;font-size:9px}
#playerProfileOverlay .ppv3-card-actions .subtle{background:rgba(255,255,255,.04)}

#playerProfileOverlay .ppv3-sheets{position:absolute;inset:0;z-index:50;display:none;align-items:center;justify-content:center;padding:14px;background:rgba(1,7,15,.78);backdrop-filter:blur(9px)}
#playerProfileOverlay .ppv3-sheets.open{display:flex}
#playerProfileOverlay .ppv3-sheet{display:none;width:min(1180px,100%);height:min(790px,100%);grid-template-rows:auto minmax(0,1fr);border:1px solid rgba(255,255,255,.1);border-radius:24px;background:#09182a;box-shadow:0 35px 90px rgba(0,0,0,.55);overflow:hidden}
#playerProfileOverlay .ppv3-sheet.open{display:grid}
#playerProfileOverlay .ppv3-sheet-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:15px 18px;border-bottom:1px solid rgba(255,255,255,.07)}
#playerProfileOverlay .ppv3-sheet-head h3{margin:2px 0 0;font-size:21px}
#playerProfileOverlay .ppv3-sheet-content{min-height:0;overflow:auto;padding:18px}
#playerProfileOverlay .ppv3-original{width:100%;max-width:none;margin:0}
#playerProfileOverlay .ppv3-sheet [data-card]{height:auto;min-height:0}
#playerProfileOverlay .ppv3-sheet .module{height:auto;min-height:0;padding:0;background:transparent;border:0;box-shadow:none}
#playerProfileOverlay .ppv3-sheet .field-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
#playerProfileOverlay .ppv3-sheet .field.full{grid-column:1/-1}
#playerProfileOverlay .ppv3-sheet .module-wellness-grid,#playerProfileOverlay .ppv3-sheet .module-gps-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
#playerProfileOverlay .ppv3-sheet .module-pse-grid{grid-template-columns:repeat(4,minmax(0,1fr));align-items:start;column-gap:12px;row-gap:10px}
#playerProfileOverlay .ppv3-sheet .pse-field{display:grid;grid-template-rows:auto 48px minmax(34px,auto);align-content:start;gap:6px;min-width:0}
#playerProfileOverlay .ppv3-sheet .pse-value-control{height:48px;min-height:48px;box-sizing:border-box;margin:0}
#playerProfileOverlay .ppv3-sheet .pse-output-control{display:flex;align-items:center;padding:0 14px;border-radius:14px;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.04)}
#playerProfileOverlay .ppv3-sheet .pse-output-control strong{font-size:18px;line-height:1}
#playerProfileOverlay .ppv3-sheet .pse-field-hint{display:block;min-height:34px;margin:0;line-height:1.25}
#playerProfileOverlay .ppv3-sheet #pseDuration[readonly]{cursor:default;opacity:.92;background:rgba(255,255,255,.035)}
#playerProfileOverlay .ppv3-sheet .history-list,#playerProfileOverlay .ppv3-sheet .rows{max-height:none;overflow:visible}
#playerProfileOverlay .ppv3-sheet[data-sheet="wellness"],
#playerProfileOverlay .ppv3-sheet[data-sheet="pse"],
#playerProfileOverlay .ppv3-sheet[data-sheet="gps"]{height:auto;max-height:min(790px,100%);grid-template-rows:auto auto}
#playerProfileOverlay .ppv3-sheet[data-sheet="wellness"] .module-track,
#playerProfileOverlay .ppv3-sheet[data-sheet="pse"] .module-track,
#playerProfileOverlay .ppv3-sheet[data-sheet="gps"] .module-track{grid-template-rows:auto auto auto auto}
#playerProfileOverlay .ppv3-sheet[data-sheet="wellness"] .module-fields,
#playerProfileOverlay .ppv3-sheet[data-sheet="pse"] .module-fields,
#playerProfileOverlay .ppv3-sheet[data-sheet="gps"] .module-fields{height:auto;min-height:0}

@media(max-width:1320px){
  #playerProfileOverlay .ppv3-card-four .ppv3-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:1180px){
  #playerProfileOverlay .ppv3-body{grid-template-columns:240px minmax(0,1fr)}
  #playerProfileOverlay .ppv3-facts{grid-template-columns:repeat(4,minmax(0,1fr))}
  #playerProfileOverlay .ppv3-preview .photo-box{height:160px}
}
@media(max-width:980px){
  #playerProfileOverlay .ppv3-sheet .module-pse-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  #playerProfileOverlay .ppv3-history-overview .player-history-heading{display:grid}
  #playerProfileOverlay .ppv3-history-overview .player-history-heading .module-copy{text-align:left}
  #playerProfileOverlay .ppv3-history-overview .player-history-grid{grid-template-columns:1fr}
  #playerProfileOverlay .ppv3-main{overflow:auto}
}
@media(max-height:860px) and (min-width:981px){
  #playerProfileOverlay .ppv3-panel>.section-head{min-height:54px;padding:8px 16px}
  #playerProfileOverlay .ppv3-body{padding-top:3px;padding-bottom:6px}
  #playerProfileOverlay .ppv3-history-overview .trend-chart{min-height:94px;padding:6px 8px}
  #playerProfileOverlay .ppv3-history-overview .trend-bars{min-height:60px}
  #playerProfileOverlay .ppv3-history-overview .history-item{padding:5px 7px}
  #playerProfileOverlay .ppv3-card{padding:8px}
  #playerProfileOverlay .ppv3-metric{padding:6px}
}
@media(max-width:760px){
  #playerProfileOverlay .ppv3-panel>.section-head{padding:14px 14px 12px;min-height:64px}
  #playerProfileOverlay .ppv3-panel>.section-head .section-title{font-size:23px}
  #playerProfileOverlay{padding:0}
  #playerProfileOverlay .player-profile-modal[data-profile-v3="1"]{width:100vw;height:100dvh;border-radius:0;border:0}
  #playerProfileOverlay .ppv3-scroll{overflow:auto}
  #playerProfileOverlay .ppv3-panel{height:auto;min-height:100%;display:block}
  #playerProfileOverlay .ppv3-body{display:flex;flex-direction:column;padding:10px;overflow:visible;gap:10px}
  #playerProfileOverlay .ppv3-aside{overflow:visible;padding:12px}
  #playerProfileOverlay .ppv3-preview{overflow:visible}
  #playerProfileOverlay .ppv3-preview .photo-box{height:min(45vh,340px)}
  #playerProfileOverlay .ppv3-preview .identity-badges{overflow:visible}
  #playerProfileOverlay .ppv3-side-actions{grid-template-columns:1fr 1fr}
  #playerProfileOverlay .ppv3-side-actions .btn:last-child{grid-column:1/-1}
  #playerProfileOverlay .ppv3-main{overflow:visible}
  #playerProfileOverlay .ppv3-facts{grid-template-columns:repeat(2,minmax(0,1fr))}
  #playerProfileOverlay .ppv3-history-overview .player-history-grid{grid-template-columns:1fr}
  #playerProfileOverlay .ppv3-grid{display:grid;grid-template-columns:1fr;grid-template-rows:none;overflow:visible}
  #playerProfileOverlay .ppv3-card{min-height:235px;height:auto}
  #playerProfileOverlay .ppv3-card-four .ppv3-metrics,#playerProfileOverlay .ppv3-card-five .ppv3-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
  #playerProfileOverlay .ppv3-sheets{padding:0}
  #playerProfileOverlay .ppv3-sheet{width:100vw;height:100dvh;max-height:none;grid-template-rows:auto minmax(0,1fr);border-radius:0;border:0}
  #playerProfileOverlay .ppv3-sheet-content{padding:12px;padding-bottom:max(18px,env(safe-area-inset-bottom))}
  #playerProfileOverlay .ppv3-sheet .field-grid,#playerProfileOverlay .ppv3-sheet .module-wellness-grid,#playerProfileOverlay .ppv3-sheet .module-pse-grid,#playerProfileOverlay .ppv3-sheet .module-gps-grid{grid-template-columns:1fr}
  #playerProfileOverlay .ppv3-sheet input,#playerProfileOverlay .ppv3-sheet select,#playerProfileOverlay .ppv3-sheet textarea{font-size:16px}
}
