/* Owner: attributes. Component states and responsive rules live here. See AGENTS.md. */

#stat-view-button {
  border-color: var(--custom-accent);
  background: var(--custom-accent);
  color: var(--custom-accent-contrast, #ffffff);
}

.skill-line {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 32px;
  font-size: 0.84rem;
  font-weight: 900;
}

.stars {
  display: flex;
  gap: 4px;
  justify-content: flex-end;
}

.skill-star {
  display: grid;
  place-items: center;
  color: #555b64;
  cursor: pointer;
}

.skill-star:disabled {
  cursor: not-allowed;
}

.skill-star svg {
  fill: transparent;
  stroke-width: 2.5;
}

.skill-star.filled {
  fill: #ffd11a;
  color: #ffd11a;
}

.skill-star.filled svg {
  fill: currentColor;
}

.skill-star:not(.filled):not(.capped):hover,
.skill-star:not(.filled):not(.capped):focus-visible {
  color: #ffd11a;
  outline: none;
}

.skill-star.capped,
.skill-star.unaffordable {
  opacity: 0.38;
}

.attribute-sections {
  display: grid;
  grid-template-columns: repeat(3, minmax(230px, 1fr));
}

.attribute-section {
  display: grid;
  align-content: start;
  min-width: 0;
}

.player-skills-attribute-section {
  --category-icon-color: #ffd84a;
  --category-icon-rgb: 255, 216, 74;
  display: grid;
  align-content: start;
  min-width: 0;
}

html:root body.in-game-stat-mode .section-reset-button,
html:root body.in-game-stat-mode .section-ap-total,
html:root body.in-game-stat-mode .player-skill-cost {
  display: none;
}

body.in-game-stat-mode .player-skills-attribute-section {
  gap: 6px;
}

body.in-game-stat-mode .player-skills-attribute-section .player-skill-row {
  min-height: 40px;
  padding-block: 0;
}

.player-skills-attribute-section .player-skill-row {
  grid-template: "label stars cost" auto
    / max-content minmax(0, 1fr) auto;
  align-items: center;
  background: transparent;
}

.player-skill-label {
  grid-area: label;
  inline-size: 33px;
  white-space: nowrap;
}

.player-skill-cost.attribute-ap-badge {
  grid-area: cost;
  color: #a5ffcb;
  text-align: center;
}

.player-skill-cost.attribute-ap-badge strong {
  color: inherit;
  font-size: inherit;
}

.player-skills-attribute-section .stars {
  grid-area: stars;
  min-width: 0;
  justify-content: flex-start;
  gap: 4px;
}

.pace-value-badge {
  display: grid;
  place-items: center;
  font-weight: 950;
  line-height: 1;
}

.attribute-section.goalkeeper {
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(230px, 1fr));
}

.section-heading {
  grid-column: 1 / -1;
  padding-top: 10px;
}

.section-name svg {
  width: 18px;
  height: 18px;
}

.section-metrics {
  min-width: 0;
  justify-content: flex-end;
}

.section-ap-total {
  align-items: center;
  gap: 3px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.section-score.green {
  color: var(--green);
}

.section-score.yellow {
  color: #ffd447;
}

.section-score.bright-green {
  color: var(--green-mid);
}

.section-score.deep-green {
  color: #087a3a;
}

.section-score.orange {
  color: var(--orange);
}

.section-score.red {
  color: var(--red);
}

.attribute-row {
  height: auto;
}

.attribute-label {
  display: inline-flex;
  align-items: center;
  align-content: center;
  flex-wrap: wrap;
  column-gap: 4px;
  row-gap: 5px;
}

.attribute-name-wrap {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.attribute-name {
  white-space: nowrap;
}

html:root body.attribute-tier-view .attribute-row .attribute-label,
html:root body.attribute-tier-view .attribute-row .attribute-name-wrap,
html:root body.attribute-tier-view .attribute-row .attribute-name {
  min-width: 0;
  white-space: normal;
}

html:root body.attribute-tier-view .attribute-row .attribute-name-wrap {
  flex: 0 1 auto;
}

html:root body.attribute-tier-view .attribute-tier-label {
  white-space: nowrap;
}

.body-bonus-badge {
  font-size: 0.7rem;
  font-weight: 950;
  line-height: 1;
}

.attribute-bonus-badges {
  display: inline-flex;
  flex: 1 1 70px;
  min-width: 70px;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  white-space: normal;
}

.body-bonus-badge.positive {
  color: var(--green);
}

.body-bonus-badge.negative {
  color: var(--red);
}

.facility-bonus-badge {
  color: #087ea4;
  font-size: 0.7rem;
  font-weight: 950;
  line-height: 1;
}

html[data-theme="dark"] .facility-bonus-badge {
  color: #56b4d3;
}

.mastery-bonus-badge {
  color: #7b46b0;
  font-size: 0.7rem;
  font-weight: 950;
  line-height: 1;
  text-shadow: none;
}

html[data-theme="dark"] .mastery-bonus-badge {
  color: #b694d4;
}

.amp-bonus-badge {
  color: var(--orange);
  font-size: 0.7rem;
  font-weight: 950;
  line-height: 1;
  text-shadow: 0 0 8px rgba(255, 170, 51, 0.22);
}

.key-dot {
  position: relative;
  top: -1px;
  display: inline-grid;
  place-items: center;
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  border: 3px solid var(--green);
  border-radius: 50%;
  box-shadow: 0 0 0 1px color-mix(in srgb,var(--green) 24%,transparent), 0 0 5px color-mix(in srgb,var(--green) 38%,transparent);
}

.key-dot::after {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 2px color-mix(in srgb,var(--green) 70%,transparent);
  content: "";
}

.step-button {
  cursor: pointer;
}

.step-button:disabled {
  cursor: not-allowed;
}

.attribute-ap-badge {
  display: inline-flex;
  min-width: 48px;
  align-items: center;
  justify-content: center;
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
}

.attribute-ap-badge.short {
  border-color: rgba(255, 83, 112, 0.48);
  background: rgba(255, 83, 112, 0.11);
  color: #ff7f98;
}

.attribute-ap-badge.max {
  min-width: 42px;
  border-color: rgba(255, 255, 255, 0.12);
  background: #20222a;
  color: #9ea5af;
}

.attribute-ap-badge.dragging {
  min-width: 82px;
  border-color: rgba(211, 161, 255, 0.38);
  background: rgba(211, 161, 255, 0.12);
  color: #dec4ff;
}

.attribute-ap-badge.refund {
  border-color: rgba(98, 217, 255, 0.34);
  background: rgba(98, 217, 255, 0.1);
  color: #9ce9ff;
}

.value-badge {
  display: inline-flex;
  width: auto;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 900;
  white-space: nowrap;
}

.attribute-bar-wrap {
  position: relative;
  grid-column: 1 / -1;
  cursor: pointer;
  touch-action: none;
}

.cap-track {
  position: absolute;
  overflow: hidden;
}

.current-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
}

.potential-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
}

.cap-marker {
  position: absolute;
  z-index: 3;
}

.attribute-range {
  position: absolute;
  z-index: 4;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.attribute-row.at-cap .value-badge {
  color: var(--green);
  box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), 0.36);
}

.in-game-stat-list .attribute-section {
  gap: 7px;
}

.in-game-stat-list .attribute-section.goalkeeper {
  column-gap: 30px;
}

.in-game-stat-list .section-heading {
  margin-bottom: 4px;
}

.in-game-attribute-row {
  display: grid;
  align-items: center;
  gap: 14px;
}

.in-game-value {
  display: grid;
  place-items: center;
  font-weight: 950;
  line-height: 1;
}

.dragging-attribute {
  cursor: default;
  user-select: none;
}

@media (max-width: 1180px) {
  .attribute-sections,
.attribute-section.goalkeeper {
    grid-template-columns: repeat(2, minmax(230px, 1fr));
  }
}

@media (max-width: 860px) {
  .attribute-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    align-items: center;
    gap: 5px;
  }

  .attribute-sections,
.attribute-section.goalkeeper {
    grid-template-columns: 1fr;
  }
}

html:root .attributes-panel {
  position: relative;
  border: 1px solid var(--line-strong);
  padding: 18px;
  min-width: 0;
}

html:root .attributes-panel > .panel-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  min-height: 0;
  padding: 0 0 18px;
  margin: 0 0 18px;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  background: transparent;
}

html:root #attributes-heading {
  display: inline-flex;
  position: relative;
  isolation: isolate;
  width: fit-content;
  align-items: center;
  padding: 6px 15px 8px;
  color: var(--paper-ink);
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -.055em;
  line-height: 1.25;
  transform: rotate(-1deg);
}

html:root #attributes-heading::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  background: var(--paper) var(--paper-grain);
  clip-path: var(--paper-cut);
  pointer-events: none;
}

.attribute-title-line {
  display: flex;
  align-items: center;
  gap: 16px;
}

.attribute-budget {
  --bulk-ap-preview-color: color-mix(in srgb, var(--mastery-purple) 70%, var(--text));
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  color: var(--paper-ink);
  font: 800 23px/1 'Inter',sans-serif;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.attribute-budget strong {
  color: var(--green);
  font: inherit;
}

.attribute-budget .attribute-budget-total {
  color: var(--paper-ink);
}

.attribute-budget-separator {
  color: var(--muted);
  font-weight: 600;
}

html:root .attribute-actions {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  align-items: center;
  margin: 4px 0 0 auto;
}

html:root .attribute-actions .utility-button {
  font-size: 13.2px;
  min-height: 40.8px;
  padding: 7.2px 9.6px;
}

html:root .attribute-actions .utility-button svg {
  display: none;
}

html:root #attribute-sections .attribute-bulk-controls {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0,1fr);
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface-card);
}

html:root .attribute-bulk-category-tabs {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}

.attribute-bulk-selection-count {
  margin-right: 7px;
  color: var(--text);
  font-size: 12px;
  font-weight: 750;
}

html:root .bulk-category-button {
  min-height: 29px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

html:root .bulk-category-button.active,
html:root .bulk-category-button:is(:hover,:focus-visible) {
  border-color: var(--green);
  background: var(--green-soft);
  color: var(--green);
}

.attribute-bulk-adjustment,
.attribute-bulk-presets {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.attribute-bulk-adjustment {
  gap: 10px;
  align-items: center;
}

.attribute-bulk-amount-field {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  height: 36px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: var(--input-bg);
  color: var(--muted);
  font-size: 12px;
  font-weight: 550;
}

.attribute-bulk-amount-field > span {
  padding: 0 10px;
  white-space: nowrap;
}

.attribute-bulk-amount-field:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 2px var(--green-soft);
}

.attribute-bulk-amount-field:has([aria-invalid="true"]) {
  border-color: var(--red);
}

.attribute-bulk-presets {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

html:root .bulk-preset-button {
  min-width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 4px 7px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: var(--input-bg);
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

html:root .bulk-preset-button:is(:hover,:focus-visible) {
  border-color: var(--green);
  color: var(--green);
}

html:root .bulk-preset-button.active {
  border-color: var(--green);
  background: var(--green-soft);
  color: var(--green);
}

.attribute-bulk-adjustment [data-apply-attribute-bulk] {
  margin-left: auto;
}

.attribute-bulk-adjustment :is([data-apply-attribute-bulk],[data-cancel-attribute-bulk]) {
  min-height: 36px;
}

#attribute-bulk-summary {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  text-align: left;
}

#attribute-bulk-summary.invalid {
  color: var(--red);
}

html:root #attribute-sections .attribute-bulk-row {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: minmax(0,1fr);
  align-items: center;
  gap: 7px;
  min-width: 0;
  min-height: 52px;
  padding: 0;
  border: 0;
  color: var(--text);
  cursor: default;
}

html:root #attribute-sections .attribute-bulk-row.in-scope {
  background: var(--green-soft);
  border-radius: 4px;
}

html:root .attribute-bulk-select {
  display: grid;
  grid-template-columns: 15px minmax(0,1fr) auto;
  align-items: center;
  gap: 7px;
  min-width: 0;
  min-height: 44px;
  padding: 7px 6px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

html:root .attribute-bulk-select:is(:hover,:focus-within) .attribute-bulk-name {
  color: var(--green);
}

.attribute-bulk-name {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 12px;
  font-weight: 550;
}

.attribute-bulk-values {
  display: grid;
  gap: 2px;
  justify-items: end;
}

.attribute-bulk-value-path {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.attribute-bulk-limit {
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}

html:root .attribute-bulk-checkbox,
html:root .attribute-bulk-raise-only input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: var(--green);
  cursor: pointer;
}

html:root .attribute-bulk-raise-only {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  color: var(--muted);
  font-size: 11px;
  cursor: pointer;
}

html:root .attribute-bulk-amount {
  flex: 0 0 72px;
  width: 72px;
  height: 100%;
  min-width: 0;
  min-height: 0;
  padding: 0 8px;
  border: 0;
  border-left: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font-size: 18px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

html:root .attribute-bulk-amount[aria-invalid="true"] {
  border-color: var(--red);
}

html:root .attribute-bulk-amount:focus-visible {
  outline: none;
  box-shadow: none;
}

.attribute-bulk-checkbox:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 1px;
}

html:root #attribute-sections {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  align-items: stretch;
  gap: 16px;
  padding: 0;
}

html:root .pace-skills-stack {
  display: grid;
  align-content: stretch;
  gap: inherit;
  min-width: 0;
}

html:root .attribute-boost-legend {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px 14px;
  min-width: 0;
  border: 0;
  padding: 0 1px 2px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
}

html:root .attribute-boost-legend-title {
  color: inherit;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

html:root .attribute-boost-legend-item,
html:root .attribute-boost-legend-sample {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

html:root .attribute-boost-legend-item {
  font-weight: 500;
}

.amp-affinity-bonus-badge {
  color: #ff82cf;
  font-size: 0.7rem;
  font-weight: 950;
  line-height: 1;
  text-shadow: 0 0 8px rgba(255, 130, 207, 0.3);
}

@media (min-width: 1400px) {
  html:root .amp-affinity-bonus-badge {
    font-size: 12px;
  }
}

html:root .attribute-boost-legend :is(
  .body-bonus-badge,
  .facility-bonus-badge,
  .mastery-bonus-badge,
  .amp-bonus-badge,
  .amp-affinity-bonus-badge
) {
  text-shadow: none;
}

html:root #attribute-sections .attribute-section,
html:root #attribute-sections .player-skills-attribute-section {
  position: relative;
  display: flex;
  flex-direction: column;
  grid-column: auto;
  grid-row: auto;
  min-width: 0;
  margin: 0;
  padding: 0 13px 10px;
  background: var(--surface-card);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 3px 0 #0003;
  overflow: hidden;
}

html:root #attribute-sections > .attribute-section.goalkeeper {
  grid-column: 1/-1;
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 0 22px;
}

html:root .attribute-section.goalkeeper > .section-heading {
  grid-column: 1/-1;
}

html:root .section-heading {
  position: relative;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 46px;
  padding: 9px 0;
  margin: 0 0 7px;
  border: 0;
}

html:root .section-heading::before {
  content: '';
  position: absolute;
  top: 0;
  left: -13px;
  right: -13px;
  height: 3px;
  background: var(--line-strong);
  pointer-events: none;
}

html:root .section-name {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  padding: 0;
  color: var(--paper-ink);
  font-size: 16px;
  font-weight: 650;
  line-height: 1.45;
  letter-spacing: -.05em;
}

html:root .section-name::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--paper) var(--paper-grain);
  clip-path: var(--label-cut);
  pointer-events: none;
}

html:root .attribute-section .section-name::after {
  content: '';
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0;
  width: 3px;
  background: var(--line-strong);
  pointer-events: none;
}

html:root .attribute-section .attribute-category-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 23px;
  height: 23px;
  flex: 0 0 23px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  color: var(--paper-ink);
}

html:root .attribute-category-icon svg {
  width: 19px;
  height: 19px;
  color: inherit;
}

html:root .section-metrics {
  display: flex;
  align-items: center;
  gap: 10px;
  width: auto;
  transform: none;
  font-variant-numeric: tabular-nums;
}

html:root .section-reset-button {
  display: grid;
  place-items: center;
  width: 26px;
  min-width: 26px;
  height: 26px;
  min-height: 26px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  box-shadow: none;
  cursor: pointer;
  transition: background .12s,color .12s,opacity .12s;
}

html:root .section-reset-button:is(:hover,:focus-visible):not(:disabled) {
  background: var(--pencil-faint);
  color: var(--text);
}

html:root .section-reset-button:disabled {
  opacity: .28;
  cursor: default;
}

html:root .section-reset-button svg {
  display: block;
  width: 15px;
  height: 15px;
  stroke-width: 2;
}

html:root .section-ap-total {
  display: block;
  width: auto;
  min-height: 0;
  padding: 0;
  border: 0;
  color: var(--muted);
  font: 500 11px/1.35 'Inter','Noto Sans KR',sans-serif;
  text-align: right;
}

html:root .section-ap-total strong {
  font-size: inherit;
  font-weight: inherit;
}

html:root .section-score {
  width: 2.7ch;
  min-width: 2.7ch;
  padding: 0;
  color: var(--number);
  font: 850 27px/1 'Inter',sans-serif;
  letter-spacing: -.035em;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

html:root .attribute-row {
  position: relative;
  display: grid;
  flex: 0 0 auto;
  grid-template-columns: minmax(0,1fr) max-content max-content;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 4px 10px;
  min-height: 54px;
  padding: 5px 0;
  border: 0;
  margin: 0;
}

html:root .attribute-label {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  font-size: 13px;
  font-weight: 550;
  line-height: 1.4;
  letter-spacing: -.04em;
  white-space: normal;
}

html:root .attribute-label.key-attribute .attribute-name {
  color: var(--green);
}

html:root .attribute-adjustment {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 6px;
}

html:root .attribute-stepper {
  display: inline-flex;
  border: 1px solid var(--pencil-soft);
  border-radius: 4px;
  background: var(--paper-raised);
  overflow: hidden;
}

html:root .step-button {
  position: relative;
  display: grid;
  place-items: center;
  width: 28px;
  min-width: 28px;
  height: 28px;
  min-height: 28px;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  color: var(--text);
  font: 500 16px/1 'Inter',sans-serif;
  box-shadow: none;
  transition: background .12s,color .12s;
}

html:root .step-button + .step-button {
  border-left: 1px solid var(--pencil-soft);
}

html:root .step-button:focus-visible {
  outline: 2px solid var(--focus-blue);
  outline-offset: -2px;
}

html:root .step-button:is(:hover,:focus-visible):not(:disabled) {
  color: var(--green);
  border-color: var(--green);
  background: color-mix(in srgb,var(--green) 8%,var(--panel));
}

html:root .step-button:active:not(:disabled) {
  color: var(--green);
  background: color-mix(in srgb,var(--green) 16%,var(--panel));
  box-shadow: inset 0 2px 3px #0005;
}

html:root .step-button:disabled {
  opacity: .3;
  color: var(--muted);
  border-color: var(--line);
  background: transparent;
  box-shadow: none;
}

html:root .attribute-row .attribute-ap-badge {
  display: flex;
  justify-content: flex-end;
  padding: 0;
  border: 0;
  min-width: 44px;
  width: 44px;
  background: transparent;
  color: var(--muted);
  font: 500 11px/1.25 'Inter','Noto Sans KR',sans-serif;
  letter-spacing: -.02em;
  white-space: nowrap;
}

html:root .attribute-ap-badge strong {
  font-size: 11px;
  font-weight: 500;
}

html:root .attribute-row .value-badge {
  grid-column: 3;
  grid-row: 1;
  display: grid;
  grid-template-columns: max-content 6px max-content;
  justify-self: end;
  justify-content: end;
  align-items: baseline;
  gap: 3px;
  min-width: 0;
  width: max-content;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  font: 500 12px/1 'Inter',sans-serif;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

html:root .value-current {
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -.035em;
  color: var(--number);
}

html:root .value-divider {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
}

html:root .value-cap {
  font-size: 11px;
  line-height: 1;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--number);
  opacity: .6;
  text-align: left;
}

html:root .attribute-row > .attribute-bar-wrap {
  position: relative;
  grid-column: 1 / -1;
  grid-row: 2;
  align-self: stretch;
  min-width: 0;
  min-height: 10px;
  cursor: default;
  touch-action: none;
}

html:root .attribute-row .attribute-bar-wrap .cap-track {
  position: absolute;
  inset: 50% 0 auto;
  height: 5px;
  transform: translateY(-3px);
  border-radius: 1px;
  background: var(--track-rest);
  overflow: hidden;
  box-shadow: none;
}

html:root .attribute-section .current-fill {
  height: 5px;
  border-radius: 1px;
  background: var(--custom-bar-good,#9E8A35);
  box-shadow: none;
  filter: none;
  opacity: 1;
}

html:root .attribute-section .potential-fill {
  height: 5px;
  border-radius: 0;
  background: color-mix(in srgb,var(--pencil) 14%,var(--surface-card));
}

html:root .cap-marker {
  top: 0;
  width: 1px;
  height: 5px;
  background: var(--text);
  opacity: .6;
  border-radius: 0;
  transform: translateX(-1px);
}

html:root .attribute-range {
  inset: 0;
  height: 100%;
  cursor: default;
}

body.dragging-attribute,
body.dragging-attribute * {
  cursor: default !important;
}

html:root .attribute-bar-wrap:has(.attribute-range:focus-visible) .cap-track {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

html:root .player-skills-attribute-section .section-name {
  font-size: 14px;
}

html:root .player-skills-attribute-section .player-skill-row {
  display: grid;
  flex: 0 0 auto;
  grid-template-columns: 1fr auto 34px;
  gap: 6px;
  min-height: 44px;
  border: 0;
}

html:root .player-skill-label {
  font-size: 13px;
  font-weight: 550;
}

html:root .skill-star {
  width: 25px;
  min-width: 25px;
  height: 34px;
  background: transparent;
  border: 0;
  padding: 2px;
}

html:root .skill-star svg {
  width: 19px;
  height: 19px;
}

html:root .player-skill-cost {
  padding: 0;
  border: 0;
  min-width: 0;
  font-size: 11px;
  color: var(--muted);
}

html:root .in-game-attribute-row {
  flex: 0 0 auto;
  grid-template-columns: minmax(0,1fr) auto;
  min-height: 48px;
  padding: 7px 0;
  border-color: var(--line);
  font-size: 14px;
}

html:root .in-game-value {
  font-size: 23px;
  font-variant-numeric: tabular-nums;
}

html:root .in-game-value.red {
  color: var(--custom-bar-low,#ff365b);
}

html:root .in-game-value.orange {
  color: var(--custom-bar-medium,#ff9d00);
}

html:root .in-game-value.yellow {
  color: var(--custom-bar-good,#ffd447);
}

html:root .in-game-value.bright-green {
  color: var(--custom-bar-great,#00b866);
}

html:root .in-game-value.deep-green {
  color: var(--custom-bar-elite,#087a3a);
}

html:root .attributes-panel {
  background: var(--paper-main);
  border-color: var(--pencil-soft);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-paper);
}

html:root .attributes-panel #attributes-heading {
  color: var(--text);
  transform: none;
}

html:root .attributes-panel #attributes-heading::before {
  inset: auto 8px var(--title-marker-bottom);
  height: var(--title-marker-height);
  background: var(--title-marker-color);
  clip-path: none;
  transform: rotate(var(--title-marker-angle));
}

html:root .attributes-panel #attribute-sections .attribute-section,
html:root .attributes-panel #attribute-sections .player-skills-attribute-section {
  background: var(--surface-card);
  border-color: var(--worksheet-section-line);
  border-radius: var(--radius-xs);
  box-shadow: none;
}

html:root .attributes-panel .section-heading {
  border-bottom-color: var(--pencil-faint);
}

html:root .attributes-panel .section-heading::before {
  content: none;
}

html:root .attributes-panel .section-name {
  color: var(--text);
}

html:root .attributes-panel .section-name::before {
  content: none;
}

html:root .attributes-panel .attribute-section .section-name::after {
  content: none;
}

html:root .attributes-panel .attribute-category-icon {
  color: var(--text);
}

html:root .attributes-panel .attribute-row {
  background: transparent;
}

html:root .attributes-panel .step-button {
  background: transparent;
  color: var(--text);
  box-shadow: none;
}

html:root .attributes-panel .step-button:is(:hover,:focus-visible):not(:disabled) {
  background: var(--green-soft);
  color: var(--green);
}

html:root .attributes-panel .step-button:active:not(:disabled) {
  background: var(--green-soft);
  box-shadow: none;
}

html:root .attributes-panel .step-button:disabled {
  opacity: .35;
  background: transparent;
  color: var(--ink-muted);
  box-shadow: none;
}

html:root .attributes-panel .attribute-row .attribute-ap-badge.short {
  color: var(--danger);
}

html:root .attributes-panel .attribute-row .attribute-ap-badge.dragging {
  color: var(--ink);
}

html:root .attributes-panel .attribute-row .attribute-ap-badge.refund {
  color: var(--brand-green-dark);
}

html:root .attributes-panel .attribute-row .attribute-ap-badge.max {
  color: var(--ink-muted);
}

html:root .attributes-panel .body-bonus-badge.negative {
  color: var(--danger);
}

html:root .attributes-panel .body-bonus-badge.positive {
  color: var(--brand-green-dark);
}

html:root .attributes-panel .value-cap {
  color: var(--ink-muted);
  opacity: 1;
}

html:root .attributes-panel .attribute-row .attribute-bar-wrap .cap-track {
  background: rgba(61,58,53,.12);
  box-shadow: none;
}

html:root .attributes-panel .attribute-section .current-fill {
  box-shadow: none;
  filter: none;
}

html:root .attributes-panel .attribute-section .potential-fill {
  background: color-mix(in srgb,var(--pencil) 14%,var(--paper-main));
  box-shadow: none;
  filter: none;
}

html:root .attributes-panel .section-score.red,
html:root .attributes-panel .value-current.red {
  color: var(--custom-bar-low,#C65B62);
}

html:root .attributes-panel .section-score.orange,
html:root .attributes-panel .value-current.orange {
  color: var(--custom-bar-medium,#C99134);
}

html:root .attributes-panel .section-score.yellow,
html:root .attributes-panel .value-current.yellow {
  color: var(--custom-bar-good,#9E8A35);
}

html:root .attributes-panel .section-score.bright-green,
html:root .attributes-panel .value-current.bright-green {
  color: var(--custom-bar-great,#4D9566);
}

html:root .attributes-panel .section-score.deep-green,
html:root .attributes-panel .value-current.deep-green {
  color: var(--custom-bar-elite,#24744B);
}

html:root .attributes-panel .current-fill.red {
  background: var(--custom-bar-low,#C65B62);
}

html:root .attributes-panel .current-fill.orange {
  background: var(--custom-bar-medium,#C99134);
}

html:root .attributes-panel .current-fill.yellow {
  background: var(--custom-bar-good,#9E8A35);
}

html:root .attributes-panel .current-fill.bright-green {
  background: var(--custom-bar-great,#4D9566);
}

html:root .attributes-panel .current-fill.deep-green {
  background: var(--custom-bar-elite,#24744B);
}

html:root .attributes-panel .attribute-bar-wrap:has(.attribute-range:focus-visible) .cap-track {
  outline-color: var(--focus-blue);
}

html:root .attributes-panel .skill-star {
  color: var(--pencil);
  filter: none;
  box-shadow: none;
}

html:root .attributes-panel .skill-star.filled {
  color: var(--warning);
  fill: currentColor;
}

html:root .attributes-panel .skill-star:not(.filled):not(:disabled):is(:hover,:focus-visible) {
  color: var(--ink-strong);
}

html:root .attributes-panel .skill-star.capped,
html:root .attributes-panel .skill-star.unaffordable {
  opacity: .45;
}

html:root .attributes-panel .skill-star:focus-visible {
  outline: 2px solid var(--focus-blue);
  outline-offset: 2px;
}

html:root .profile-dialog .pace-value-badge {
  font: 800 22px 'Inter',sans-serif;
  color: var(--number);
}

@media (min-width: 1600px) {
  html:root .attribute-row {
    min-height: 54px;
  }

  html:root .attribute-label {
    font-size: 14px;
  }
}

@media (max-width: 1200px) and (min-width: 801px) {
  html:root .attributes-panel {
    padding: 15px;
  }
}

@media (max-width: 800px) {
  html:root .attribute-actions #reset-attributes-button svg,
  html:root .attribute-actions .shortcut-key {
    display: none;
  }

  html:root #attribute-sections .attribute-bulk-controls {
    grid-template-columns: minmax(0,1fr);
  }

  html:root .attributes-panel {
    padding: 13px 10px;
    border-radius: 4px;
  }

  html:root .attributes-panel > .panel-title-row {
    gap: 14px;
    margin-bottom: 14px;
    padding-bottom: 14px;
  }

  html:root #attributes-heading {
    font-size: 23px;
  }

  html:root .attribute-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    margin: 0;
    gap: 5px;
  }

  html:root .attribute-actions .utility-button {
    min-height: 42px;
    padding: 6px 2.4px;
    justify-content: center;
    font-size: 12px;
  }

  html:root #attribute-sections {
    grid-template-columns: minmax(0,1fr);
    gap: 14px;
  }

  html:root #attribute-sections .attribute-section,
html:root #attribute-sections .player-skills-attribute-section {
    padding-inline: 10px;
  }

  html:root #attribute-sections > .attribute-section.goalkeeper {
    grid-template-columns: minmax(0,1fr);
  }

  html:root .attribute-row {
    min-height: 66px;
  }

  html:root .attribute-label {
    font-size: 12px;
  }

  html:root .step-button {
    min-width: 32px;
    width: 32px;
    height: 36px;
    min-height: 36px;
  }

  html:root .value-current {
    font-size: 24px;
  }

  html:root .section-name {
    font-size: 15px;
    padding-right: 9px;
  }

  html:root .section-score {
    font-size: 25px;
  }

  html:root .section-metrics {
    gap: 4px;
  }

  html:root .section-ap-total {
    font-size: 11px;
  }

  html:root .section-heading::before {
    left: -10px;
    right: -10px;
  }

  html:root .player-skills-attribute-section .player-skill-row {
    grid-template-columns: 1fr auto 28px;
    gap: 3px;
  }

  html:root .skill-star {
    width: 23px;
    min-width: 23px;
    padding: 1px;
  }
}

html:root #reset-attributes-button svg {
  display: block;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

@media (min-width: 1220px) {
  html:root .attributes-panel {
    padding: 12px;
  }

  html:root .attributes-panel > .panel-title-row {
    align-items: center;
    min-height: 0;
    margin-bottom: 10px;
    padding-bottom: 10px;
    gap: 10px;
  }

  html:root #attributes-heading {
    padding: 4px 12px 6px;
    font-size: 20px;
  }

  html:root .attribute-title-line {
    gap: 12px;
  }

  html:root .attribute-budget {
    font-size: 20px;
  }

  html:root .attribute-actions {
    margin-top: 0;
  }

  html:root .attribute-actions .utility-button {
    min-height: 36px;
    padding: 4.8px 8.4px;
    font-size: 12px;
  }

  html:root #attribute-sections {
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 10px 12px;
  }

  html:root #attribute-sections .attribute-section,
html:root #attribute-sections .player-skills-attribute-section {
    padding: 0 10px 8px;
  }

  html:root #attribute-sections > .attribute-section.goalkeeper {
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 0 12px;
  }

  html:root .section-heading {
    min-height: 40px;
    margin-bottom: 7px;
    padding: 7px 0;
    gap: 5px;
  }

  html:root .section-heading::before {
    left: -9px;
    right: -9px;
  }

  html:root .section-name {
    gap: 4px;
    padding: 0;
    font-size: 13px;
  }

  html:root .player-skills-attribute-section .section-name {
    font-size: 12px;
  }

  html:root .attribute-section .attribute-category-icon {
    width: 18px;
    height: 18px;
    flex-basis: 18px;
  }

  html:root .attribute-category-icon svg {
    width: 15px;
    height: 15px;
  }

  html:root .section-metrics {
    gap: 5px;
  }

  html:root .section-ap-total {
    font-size: 11px;
  }

  html:root .section-ap-total strong {
    font-size: inherit;
  }

  html:root .section-score {
    font-size: 21px;
  }

  html:root .attribute-row {
    min-height: 44px;
    padding: 3px 0;
  }

  html:root .attribute-label {
    font-size: 12px;
    line-height: 1.2;
    white-space: nowrap;
  }

  html:root .step-button {
    width: 24px;
    min-width: 24px;
    height: 24px;
    min-height: 24px;
    font-size: 15px;
  }

  html:root .attribute-row .attribute-ap-badge,
html:root .attribute-ap-badge strong {
    font-size: 11px;
  }

  html:root .attribute-row .value-badge {
    grid-template-columns: max-content 5px max-content;
    gap: 2px;
    font-size: 11px;
  }

  html:root .value-current {
    font-size: 21px;
  }

  html:root .value-divider,
html:root .value-cap {
    font-size: 11px;
  }

  html:root .attribute-row > .attribute-bar-wrap {
    min-height: 8px;
  }

  html:root .player-skills-attribute-section .player-skill-row {
    grid-template-columns: 1fr auto 30px;
    min-height: 40px;
    gap: 4px;
  }

  html:root .player-skill-label {
    font-size: 12px;
  }

  html:root .skill-star {
    width: 21px;
    min-width: 21px;
    height: 28px;
    padding: 1px;
  }

  html:root .skill-star svg {
    width: 16px;
    height: 16px;
  }

  html:root .in-game-attribute-row {
    min-height: 36px;
    padding: 4px 0;
    font-size: 12px;
  }

  html:root .in-game-value {
    font-size: 20px;
  }
}

html:root .attribute-tooltip {
  background: var(--paper-main);
  color: var(--ink-strong);
  border-color: var(--pencil-strong);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-popover);
}

html:root .attribute-tooltip::after {
  background: var(--paper-main);
  border-color: var(--pencil-strong);
}

html:root .attribute-tooltip .playstyle-tooltip-breakdown,
html:root .attribute-tooltip .playstyle-tooltip-ap {
  border-color: var(--pencil-soft);
}

@container builder-workspace (max-width: 980px) {
  html:root #attribute-sections,
html:root #attribute-sections > .attribute-section.goalkeeper {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}

@container builder-workspace (max-width: 590px) {
  html:root #attribute-sections,
html:root #attribute-sections > .attribute-section.goalkeeper {
    grid-template-columns: minmax(0,1fr);
  }
}

@media (min-width: 801px) {
  html:root .builder-stage.profile-drawer-collapsed > .builder-workspace > .attributes-panel,
html:root .builder-stage.equipment-drawer-collapsed > .builder-workspace > .attributes-panel {
    display: contents;
  }

  html:root .builder-stage.profile-drawer-collapsed .attributes-panel > .panel-title-row,
html:root .builder-stage.equipment-drawer-collapsed .attributes-panel > .panel-title-row {
    grid-area: workspace;
    align-self: start;
    align-items: center;
    min-width: 0;
    height: 69px;
    min-height: 69px;
    max-height: 69px;
    margin: 0;
    padding: 3px 10px;
    border: 1px solid var(--line-strong);
    border-bottom: 0;
    border-radius: 5px 5px 0 0;
    background: var(--surface-board);
    box-shadow: var(--shadow-card);
  }

  html:root .builder-stage.profile-drawer-collapsed .attributes-panel > .panel-title-row #attributes-heading,
html:root .builder-stage.equipment-drawer-collapsed .attributes-panel > .panel-title-row #attributes-heading {
    padding: 3px 10px 5px;
  }

  html:root .builder-stage.profile-drawer-collapsed #attribute-sections,
html:root .builder-stage.equipment-drawer-collapsed #attribute-sections {
    grid-area: attributes;
    min-width: 0;
    margin: 0;
    padding: 12px;
    border: 1px solid var(--line-strong);
    border-radius: 0 0 5px 5px;
    background: var(--surface-board);
    box-shadow: var(--shadow-card);
  }
}

html:root .attribute-layout-switch {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--pencil-soft);
  border-radius: var(--radius-sm);
  background: var(--paper-main);
}

html:root .attribute-layout-button {
  min-height: 28px;
  padding: 4px 9px;
  border: 0;
  border-radius: var(--radius-xs);
  background: transparent;
  color: var(--ink-muted);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

html:root .attribute-layout-button.active {
  background: var(--highlighter-yellow-soft);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--pencil-soft);
}

html:root .attribute-layout-button:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 1px;
}

html:root #attribute-sections.clubs-layout {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  container: clubs-attributes / inline-size;
}

html:root #attribute-sections.clubs-layout .clubs-category-row {
  display: grid;
  width: 100%;
  gap: 12px;
  align-items: stretch;
  min-width: 0;
}

html:root #attribute-sections.clubs-layout .clubs-primary-row,
html:root #attribute-sections.clubs-layout .clubs-secondary-row {
  grid-template-columns: repeat(4,minmax(0,1fr));
}

html:root #attribute-sections.clubs-layout .clubs-secondary-row > .physical {
  grid-column: span 2;
}

html:root #attribute-sections.clubs-layout .clubs-primary-frame {
  position: relative;
  min-width: 0;
}

html:root #attribute-sections.clubs-layout.clubs-goalkeeper .clubs-primary-frame {
  padding-inline: 12px;
}

html:root #attribute-sections.clubs-layout.clubs-goalkeeper .clubs-secondary-row {
  width: auto;
  margin-inline: 12px;
}

html:root #attribute-sections.clubs-layout .attribute-section[hidden] {
  display: none;
}

html:root #attribute-sections.clubs-layout .clubs-page-button {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 28px;
  height: 44px;
  padding: 4px;
  border: 1px solid var(--pencil-soft);
  border-radius: var(--radius-sm);
  background: var(--paper-main);
  color: var(--text);
  box-shadow: 0 2px 5px #0002;
  cursor: pointer;
}

html:root #attribute-sections.clubs-layout .clubs-page-button.next {
  right: -10px;
}

html:root #attribute-sections.clubs-layout .clubs-page-button.previous {
  left: -10px;
}

html:root #attribute-sections.clubs-layout .clubs-page-button:hover {
  background: var(--highlighter-yellow-soft);
}

html:root #attribute-sections.clubs-layout .clubs-page-button:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

html:root #attribute-sections.clubs-layout .clubs-page-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

html:root #attribute-sections.clubs-layout .attribute-section,
html:root #attribute-sections.clubs-layout .player-skills-attribute-section {
  display: block;
  min-width: 0;
  margin: 0;
  padding: 10px;
  align-self: stretch;
}

html:root #attribute-sections.clubs-layout .attribute-bulk-row {
  min-height: 62px;
}

html:root #attribute-sections.clubs-layout .attribute-bulk-select {
  grid-template-columns: 15px minmax(0,1fr);
}

html:root #attribute-sections.clubs-layout .attribute-bulk-values {
  grid-column: 2;
  justify-self: end;
}

html:root #attribute-sections.clubs-layout .section-heading {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  margin: 0 0 7px;
  padding: 0;
}

html:root #attribute-sections.clubs-layout .section-heading > .section-metrics {
  display: flex;
  flex-shrink: 0;
  width: auto;
  gap: 6px;
  margin-left: auto;
}

html:root #attribute-sections.clubs-layout .section-reset-button {
  width: 22px;
  min-width: 22px;
  height: 22px;
  min-height: 22px;
}

html:root #attribute-sections.clubs-layout .section-reset-button svg {
  width: 13px;
  height: 13px;
}

html:root #attribute-sections.clubs-layout .section-name {
  font-size: 12px;
}

html:root #attribute-sections.clubs-layout .section-score {
  font-size: 18px;
}

html:root #attribute-sections.clubs-layout .section-ap-total {
  font-size: 11px;
}

html:root #attribute-sections.clubs-layout .section-ap-total strong {
  font-size: inherit;
}

html:root #attribute-sections.clubs-layout .attribute-row {
  display: grid;
  grid-template-columns: minmax(80px,1fr) max-content max-content;
  grid-template-rows: auto auto;
  gap: 4px 6px;
  min-height: 44px;
  padding: 3px 0;
}

html:root #attribute-sections.clubs-layout .attribute-row > .attribute-label {
  grid-column: 1;
  min-width: 0;
  font-size: 12px;
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: normal;
  line-height: 1.35;
}

html:root #attribute-sections.clubs-layout .attribute-name-wrap,
html:root #attribute-sections.clubs-layout .attribute-name {
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: normal;
}

html:root #attribute-sections.clubs-layout .attribute-bonus-badges {
  flex: 0 1 auto;
  min-width: 0;
}

html:root #attribute-sections.clubs-layout .step-button {
  width: 18.36px;
  min-width: 18.36px;
  height: 18.36px;
  min-height: 18.36px;
  padding: 0;
  font-size: 11.475px;
}

html:root #attribute-sections.clubs-layout .attribute-bonus-badges :is(
  .body-bonus-badge,
  .facility-bonus-badge,
  .mastery-bonus-badge,
  .amp-bonus-badge,
  .amp-affinity-bonus-badge
) {
  font-size: 0.63rem;
}

html:root #attribute-sections.clubs-layout .attribute-row .attribute-ap-badge {
  font-size: 11px;
  white-space: nowrap;
}

html:root #attribute-sections.clubs-layout .attribute-row .value-badge {
  grid-template-columns: max-content 4px max-content;
  gap: 2px;
}

html:root #attribute-sections.clubs-layout .value-current {
  font-size: 20px;
}

html:root #attribute-sections.clubs-layout .value-cap,
html:root #attribute-sections.clubs-layout .value-divider {
  font-size: 11px;
}

html:root #attribute-sections.clubs-layout .attribute-row > .attribute-bar-wrap {
  min-height: 8px;
}

html:root #attribute-sections.clubs-layout .in-game-attribute-row {
  min-height: 56px;
  font-size: 12px;
}

html:root #attribute-sections.clubs-layout .player-skill-row {
  grid-template: 'label stars cost' auto / minmax(0,1fr) auto 34px;
  gap: 4px;
  min-height: 40px;
}

html:root #attribute-sections.clubs-layout .player-skill-cost {
  grid-area: cost;
  position: static;
  justify-content: flex-end;
  text-align: right;
}

html:root #attribute-sections.clubs-layout .skill-star {
  width: 22px;
  min-width: 22px;
  height: 26px;
  padding: 1px;
}

html:root #attribute-sections.clubs-layout .skill-star svg {
  width: 18px;
  height: 18px;
}

html:root #attribute-sections.clubs-layout .attribute-section.physical {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  grid-template-rows: auto auto 1fr;
  column-gap: 18px;
  align-content: start;
}

html:root #attribute-sections.clubs-layout .physical > .section-heading {
  grid-column: 1 / -1;
}

html:root #attribute-sections.clubs-layout .physical > [data-attribute-row] {
  align-self: start;
}

html:root .builder-stage.tabless-builder-stage.profile-drawer-collapsed #attribute-sections.clubs-layout .attribute-row,
html:root .builder-stage.tabless-builder-stage.equipment-drawer-collapsed #attribute-sections.clubs-layout .attribute-row {
  min-height: 44px;
}

@media (pointer: coarse) {
  html:root .attribute-row,
  html:root #attribute-sections.clubs-layout .attribute-row {
    min-height: 86px;
  }

  html:root .step-button {
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
  }

  html:root #attribute-sections.clubs-layout .step-button {
    width: 33.66px;
    min-width: 33.66px;
    height: 33.66px;
    min-height: 33.66px;
  }

  html:root .attribute-row > .attribute-bar-wrap,
  html:root #attribute-sections.clubs-layout .attribute-row > .attribute-bar-wrap {
    min-height: 44px;
  }
}

@container clubs-attributes (max-width: 1200px) {
  html:root #attribute-sections.clubs-layout .clubs-primary-row,
html:root #attribute-sections.clubs-layout.clubs-goalkeeper .clubs-primary-row,
html:root #attribute-sections.clubs-layout .clubs-secondary-row {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }

  html:root #attribute-sections.clubs-layout .clubs-secondary-row > .physical {
    grid-column: auto;
    grid-template-columns: minmax(0,1fr);
  }
}

@container clubs-attributes (max-width: 600px) {
  html:root #attribute-sections.clubs-layout .clubs-secondary-row {
    grid-template-columns: minmax(0,1fr);
  }
}

@container clubs-attributes (max-width: 600px) {
  html:root #attribute-sections.clubs-layout .clubs-primary-row,
html:root #attribute-sections.clubs-layout.clubs-goalkeeper .clubs-primary-row {
    grid-template-columns: minmax(0,1fr);
  }
}

@media (max-width: 800px) {
  html:root .top-actions .attribute-layout-switch {
    grid-column: span 2;
    justify-content: center;
  }
}

@media (min-width: 1400px) {
  html:root .body-bonus-badge,
html:root .facility-bonus-badge,
html:root .mastery-bonus-badge,
html:root .amp-bonus-badge {
    font-size: 12px;
  }

  html:root #attribute-sections.clubs-layout .attribute-bonus-badges :is(
    .body-bonus-badge,
    .facility-bonus-badge,
    .mastery-bonus-badge,
    .amp-bonus-badge,
    .amp-affinity-bonus-badge
  ) {
    font-size: 10.8px;
  }
}
