/* The dossier owns a fixed identity header and bounded pages, never a long modal. */
#player-report-dialog {
  width: min(820px, calc(100cqw - 16px));
  max-width: calc(100cqw - 16px);
  height: min(650px, calc(100cqh - 16px));
  max-height: calc(100cqh - 16px);
  padding: 0;
  overflow: hidden;
  border: 1px solid #637b99;
  border-radius: 0;
  background: #101c35;
  box-shadow:
    0 8px 0 #081222,
    0 18px 60px #050c2688;
}
#player-report-dialog[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
}
#game-frame #player-report-dialog {
  overflow: hidden;
}
#game-frame #player-report-dialog .player-dossier {
  padding: 0;
  overflow: hidden;
}
#game-frame #player-report-dialog [data-page-tabs] {
  position: relative;
}
#game-frame #player-report-dialog input[data-page-tab-value] {
  top: 0;
  left: 0;
}
#player-report-dialog .player-dossier-header {
  position: relative;
  display: block;
  margin: 0;
  padding: 12px 58px 12px 14px;
  background: linear-gradient(110deg, #172e45, #1a3550);
  border-bottom: 2px solid var(--profile-kit-accent, #f4cf62);
  min-height: 100px;
  overflow: hidden;
}
#player-report-dialog .profile-hero {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) 42px;
  gap: 12px;
  align-items: center;
  min-width: 0;
}
#player-report-dialog .profile-portrait {
  width: 60px;
  background: var(--profile-kit);
  border: 1px solid var(--profile-kit-accent, #f4cf62);
  align-self: center;
}
#player-report-dialog .profile-portrait .pixel-portrait {
  display: block;
  width: 100%;
  height: auto;
  border: 0;
}
#player-report-dialog .profile-identity {
  min-width: 0;
}
#player-report-dialog .profile-eyebrow {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0 0 4px;
  color: #b5c8df;
  font-size: var(--type-caption);
  font-weight: 700;
  letter-spacing: 0.07em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
}
#player-report-dialog .profile-eyebrow > span {
  overflow: hidden;
  text-overflow: ellipsis;
}
#player-report-dialog .profile-eyebrow svg {
  flex: none;
}
#player-report-dialog .profile-identity h2 {
  font-family: Manrope, Arial, sans-serif;
  font-size: var(--ui-heading, 20px);
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
}
#player-report-dialog .profile-role {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin: 5px 0 0;
  font-size: var(--ui-label, 11px);
  line-height: 1.25;
  color: #f1d38b;
  font-weight: 650;
}
#player-report-dialog .profile-role > span {
  color: #bbcbe0;
  font-weight: 500;
}
#player-report-dialog .profile-facts {
  display: flex;
  gap: 7px;
  align-items: center;
  margin-top: 4px;
  font-size: var(--type-caption);
  line-height: 1.2;
  color: #b9cbe0;
}
#player-report-dialog .profile-facts .country-flag {
  width: 18px;
  height: 12px;
  border-radius: 0;
}
#player-report-dialog .profile-overall {
  display: grid;
  justify-items: center;
  gap: 2px;
  color: #f1d38b;
  font-variant-numeric: tabular-nums;
}
#player-report-dialog .profile-overall > span {
  font-size: var(--type-caption);
  font-weight: 700;
  letter-spacing: 0.08em;
}
#player-report-dialog .profile-overall > strong {
  font-size: var(--type-score);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -1.2px;
}
#player-report-dialog .profile-close {
  position: absolute;
  top: 10px;
  right: 8px;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid #7b92b077;
  background: #10223a;
  color: #f5eedc;
  border-radius: 0;
  font-size: var(--type-title);
  line-height: 1;
}
#player-report-dialog .profile-close:hover {
  background: #35516d;
}
#player-report-dialog .player-dossier {
  display: block;
  min-width: 0;
  min-height: 0;
  padding: 0;
  max-height: none;
  overflow: hidden;
  background: #101c35;
}
.profile-page-tabs {
  height: 100%;
}
.profile-page-tabs > .page-tabs-panels > .page-panel {
  padding: 12px;
}
.profile-overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-content: start;
}
.profile-overview-grid > .profile-skills {
  grid-row: 1/3;
}
.profile-panel {
  min-width: 0;
  margin: 0;
  padding: 12px;
  background: #172844;
  border: 1px solid #354b6a;
  border-radius: 0;
}
.profile-panel > header,
.profile-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 12px;
}
#player-report-dialog h3,
#player-report-dialog .profile-panel h3 {
  margin: 0;
  font-family: Manrope, Arial, sans-serif;
  font-size: var(--ui-section-heading, 16px);
  font-weight: 700;
  line-height: 1.2;
  color: #f5f1e6;
  letter-spacing: -0.2px;
}
.profile-panel > header > span {
  font-size: var(--type-caption);
  color: #a9bbd5;
  line-height: 1.3;
}
.profile-meter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
}
.profile-skill-outlook {
  border-top: 1px solid #354b6a;
  margin-top: 12px;
  padding-top: 10px;
}
.profile-meter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 4px 6px;
  color: #f1d38b;
  min-width: 0;
}
.profile-meter.is-blue {
  color: #8fd8fa;
}
.profile-meter.is-mint {
  color: #a8d9b0;
}
.profile-meter > span:first-child {
  color: #c4d0e4;
  font-size: var(--ui-label, 11px);
  font-weight: 600;
  line-height: 1.2;
}
.profile-meter > strong {
  font-size: var(--type-section);
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.profile-meter-track {
  grid-column: 1/-1;
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 2px;
  height: 7px;
}
.profile-meter-track > i {
  display: block;
  position: relative;
  height: 7px;
  overflow: hidden;
  background: #0c1930;
}
.profile-meter-track > i:after {
  content: '';
  display: block;
  width: var(--segment-fill);
  height: 100%;
  background: currentColor;
}
#player-report-dialog .profile-status {
  font-size: var(--type-caption);
  color: #a8dfb6;
  font-weight: 700;
}
#player-report-dialog .profile-status.is-out {
  color: #ff9cac;
}
.profile-health-facts {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin: 10px 0 0;
  padding-top: 8px;
  border-top: 1px solid #354b6a;
}
.profile-health-facts > div {
  display: flex;
  align-items: baseline;
  gap: 5px;
}
.profile-health-facts dt {
  color: #a9bbd5;
  font-size: var(--type-caption);
}
.profile-health-facts dd {
  margin: 0;
  color: #e1e8f0;
  font-size: var(--type-caption);
  font-weight: 650;
}
#player-report-dialog .profile-injury {
  font-size: var(--type-caption);
  color: #ffafbd;
  margin: 8px 0 0;
}
.profile-form .player-form-report {
  margin: 0;
  padding: 0;
  border: 0;
}
.profile-form .form-report-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 9px;
}
.profile-form .form-report-heading > span {
  font-size: var(--type-caption);
}
.profile-form .form-disciplines {
  gap: 7px;
}
.profile-form .form-discipline {
  grid-template-columns: minmax(0, 1fr) 82px 35px;
  gap: 8px;
}
.profile-form .form-discipline > span {
  font-size: var(--type-caption);
}
.profile-form .form-discipline > svg {
  width: 82px;
  height: 18px;
}
.profile-form .form-discipline > strong {
  font-size: var(--type-body);
}
.profile-form .form-discipline > strong > small {
  font-size: var(--type-caption);
}
.profile-stat-page {
  display: grid;
  gap: 12px;
  align-content: start;
}
.profile-statistics {
  min-width: 0;
  padding: 12px;
  background: #172844;
  border: 1px solid #354b6a;
}
.profile-statistics .profile-section-heading {
  margin-bottom: 10px;
}
.profile-stat-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-width: 0;
}
.profile-stat-switch > input {
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
  min-height: 0;
  padding: 0;
  margin: 0;
}
.profile-stat-switch > label {
  display: grid;
  place-items: center;
  min-height: 44px;
  font-size: var(--ui-label, 11px);
  font-weight: 700;
  line-height: 1.2;
  border: 1px solid #506582;
  background: #112039;
  color: #b6c8dd;
  cursor: pointer;
}
.profile-period-season:checked + label,
.profile-period-career:checked + label {
  background: #e7ce8b;
  color: #17233c;
  border-color: #e7ce8b;
}
.profile-stat-switch > input:focus-visible + label {
  outline: 2px solid #fff0b0;
  outline-offset: -4px;
  z-index: 1;
}
.profile-stat-panels {
  grid-column: 1/-1;
  min-width: 0;
  margin-top: 10px;
}
.profile-stat-panels > section {
  display: none;
}
.profile-period-season:checked ~ .profile-stat-panels > .profile-season-stats,
.profile-period-career:checked ~ .profile-stat-panels > .profile-career-stats {
  display: block;
}
.profile-number-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: #354b6a;
  border: 1px solid #354b6a;
  margin: 0;
  font-variant-numeric: tabular-nums;
}
.profile-number-grid > div {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 7px;
  padding: 11px 9px;
  min-width: 0;
  min-height: 65px;
  background: #12213c;
}
.profile-number-grid dt {
  font-size: var(--type-caption);
  line-height: 1.2;
  color: #b6c7df;
}
.profile-number-grid dd {
  margin: 0;
  font-size: var(--type-title);
  font-weight: 800;
  letter-spacing: -0.7px;
  line-height: 1;
  color: #f2e4bd;
}
.profile-history {
  padding: 0 12px;
  background: #14253e;
  border: 1px solid #354b6a;
}
.profile-history > summary {
  display: flex;
  align-items: center;
  min-height: 36px;
  font-size: var(--ui-label, 11px);
  font-weight: 700;
  color: #d6dfeb;
  cursor: pointer;
}
.profile-history > summary:after {
  content: '+';
  margin-left: auto;
  color: #e8ce8b;
  font-size: var(--type-section);
}
.profile-history[open] > summary:after {
  content: '−';
}
.profile-history > .form-recent {
  margin-bottom: 12px;
}
.profile-empty {
  font-size: var(--ui-label, 11px);
  color: #aebfd5;
  padding: 8px 0;
}
.profile-learning {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 10px;
  margin-top: 10px;
  border-top: 1px solid #354b6a;
  font-size: var(--ui-label, 11px);
}
.profile-learning > span {
  color: #acbfd8;
}
.profile-learning > strong {
  font-weight: 650;
  color: #e5d7b2;
}
.profile-scout-action {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.profile-scout-action > .game-button {
  min-height: 40px;
  padding: 8px 14px;
  font-size: var(--type-caption);
  border-radius: 0;
}
.profile-scout-action > span {
  font-size: var(--type-caption);
  color: #b1c2d8;
}
.profile-development {
  padding: 12px;
}
.profile-development .player-progression {
  margin: 0;
  padding: 0;
  border: 0;
}
.profile-development .player-level-heading {
  gap: 8px;
}
.profile-development .player-level-number {
  font-size: var(--type-number);
  min-width: 36px;
  width: 36px;
  height: 36px;
}
.profile-development .player-level-heading h3 {
  font-size: var(--ui-section-heading, 16px);
}
.profile-development .player-level-heading p,
.profile-development .next-gear-unlock,
.profile-development .progression-lock-note {
  font-size: var(--type-caption);
  line-height: 1.3;
}
.profile-development .player-total-xp {
  font-size: var(--type-caption);
}
.profile-development .player-xp-meter {
  margin-block: 8px;
}
.profile-development .player-xp-rules {
  font-size: var(--type-caption);
  margin: 8px 0;
}
.profile-development .player-xp-rules > summary {
  min-height: 28px;
}
.profile-development .equipment-heading {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #354b6a;
}
.profile-development .equipment-heading > span {
  display: none;
}
.profile-development .equipment-slots {
  gap: 6px;
  margin-top: 8px;
}
.profile-development .equipment-slot {
  padding: 8px 4px;
  min-height: 108px;
  border-radius: 0;
}
.profile-development .gear-slot-art {
  height: 36px;
  min-height: 36px;
}
.profile-development .gear-slot-art svg {
  height: 36px;
  width: 36px;
}
.profile-development .gear-slot-name,
.profile-development .gear-slot-action,
.profile-development .gear-slot-bonus {
  font-size: var(--type-caption);
  line-height: 1.2;
}
.profile-development .equipment-slot > strong {
  font-size: var(--type-caption);
  line-height: 1.2;
}
.profile-development .target-practice-ready {
  font-size: var(--type-caption);
  line-height: 1.3;
}
.profile-bag {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid #354b6a;
  font-size: var(--type-caption);
}
.profile-bag > summary {
  display: flex;
  align-items: center;
  min-height: 30px;
  cursor: pointer;
  color: #dec68d;
  font-weight: 700;
}
.profile-bag .player-inventory {
  padding: 8px 0;
  margin: 0;
  border: 0;
}
.profile-bag .player-inventory > p {
  display: none;
}
#player-report-dialog #report-status,
#player-report-dialog #report-error {
  margin: 0;
  padding: 0 12px;
  background: #101c35;
  font-size: var(--type-caption);
  line-height: 1.4;
}
#player-report-dialog #report-status:not(:empty),
#player-report-dialog #report-error:not(:empty) {
  padding-block: 6px;
}
#player-report-dialog #report-error {
  color: #ffb1bd;
}
@container game (max-width:700px) {
  #player-report-dialog .profile-hero {
    grid-template-columns: 52px minmax(0, 1fr) 34px;
    gap: 10px;
  }
  #player-report-dialog .profile-portrait {
    width: 52px;
  }
  #player-report-dialog .profile-overall > strong {
    font-size: var(--type-display);
  }
  #player-report-dialog .profile-identity h2 {
    font-size: var(--ui-heading, 20px);
  }
  .profile-overview-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .profile-overview-grid > .profile-skills {
    grid-row: auto;
  }
  .profile-page-tabs > .page-tabs-panels > .page-panel {
    padding: 10px;
  }
  .profile-panel {
    padding: 11px;
  }
  .profile-panel > header {
    margin-bottom: 9px;
  }
  .profile-meter-grid {
    gap: 10px 16px;
  }
}
@media (max-height: 460px) and (min-width: 701px) {
  #player-report-dialog .player-dossier-header {
    min-height: 82px;
    padding-block: 8px;
  }
  #player-report-dialog .profile-hero {
    grid-template-columns: 48px minmax(0, 1fr) 42px;
  }
  #player-report-dialog .profile-portrait {
    width: 48px;
  }
  .profile-page-tabs > .page-tab-label {
    min-height: 36px;
  }
  .profile-page-tabs > .page-tabs-panels > .page-panel {
    padding: 8px;
  }
  .profile-overview-grid {
    gap: 8px;
  }
  .profile-panel {
    padding: 9px;
  }
  .profile-panel > header {
    margin-bottom: 8px;
  }
  .profile-meter-grid {
    gap: 8px 12px;
  }
  .profile-health-facts {
    margin-top: 7px;
    padding-top: 6px;
  }
  .profile-number-grid > div {
    padding: 8px;
    min-height: 54px;
  }
  .profile-number-grid dd {
    font-size: var(--type-title);
  }
}
