/* ─── Player page: compact, two-column, elegant ────────────────────── */

.player-page .card { padding: 10px 12px; }

/* ── Hero: pic | info | bot-status (3-col grid, info stretches) ──── */
.player-hero {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  margin: 6px 0 10px;
}
.player-hero-pic {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  background: linear-gradient(180deg, var(--surface-2), var(--surface-3, var(--surface-2)));
  border: 2px solid var(--border);
  flex-shrink: 0;
}

.player-hero-info { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.player-hero-info h1 { font-size: 26px !important; margin: 0 !important; letter-spacing: -0.015em; line-height: 1.1; }
.player-hero-info .muted { display: none !important; }
.player-hero-name-row {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
}
.player-hero-meta { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.player-hero-meta .chip {
  font-size: 12px;
  padding: 3px 10px;
  background: var(--surface-2);
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
}
.player-hero-meta .chip.active {
  background: var(--accent-wash, rgba(76,141,255,0.14));
  color: var(--accent);
  border-color: transparent;
}

.next-game {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-muted);
}
.next-game-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  font-weight: 600;
}
.next-game-detail { display: inline-flex; align-items: center; gap: 5px; color: var(--text); flex-wrap: wrap; }
.next-game-detail b { font-weight: 600; }
.next-game-logo { width: 16px; height: 16px; object-fit: contain; }

/* bot-badge sits in grid cell 3 — right side of hero */
.bot-badge {
  grid-column: 3;
  grid-row: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 11px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 500;
  margin: 0 !important;
  flex-wrap: wrap;
  max-width: 320px;
  justify-self: end;
}
.bot-badge.active { background: var(--ok-wash, rgba(61,220,132,0.12)); color: var(--ok); border: 1px solid rgba(61,220,132,0.4); }
.bot-badge.pending { background: var(--warn-wash, rgba(245,165,36,0.12)); color: var(--warn); border: 1px solid rgba(245,165,36,0.4); }
.bot-badge.off { background: var(--surface-2); color: var(--text-dim); border: 1px solid var(--border); }
.bot-badge-prices { display: inline-flex; gap: 8px; flex-wrap: wrap; font-variant-numeric: tabular-nums; color: var(--text); }
.bot-badge-prices b { font-weight: 700; }

@media (max-width: 820px) {
  .player-hero { grid-template-columns: auto 1fr; grid-template-rows: auto auto; }
  .bot-badge { grid-column: 1 / -1; grid-row: 2; justify-self: start; max-width: none; }
  .player-hero-pic { width: 64px; height: 88px; }
}

/* ── Selector: segmented control, single row with soft divider ───── */
.context-selector {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 6px 10px !important;
  margin-bottom: 10px;
  flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.context-selector-row {
  display: inline-flex;
  gap: 2px;
  align-items: center;
  background: var(--surface-2);
  border-radius: 8px;
  padding: 2px;
}
.context-selector-row + .context-selector-row { margin-left: 0; }
.context-label {
  font-size: 10px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-right: 2px;
  padding: 0 4px;
  min-width: 0;
}

/* segmented buttons inside selector */
.context-selector .chart-tab {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12px;
  color: var(--text-muted);
}
.context-selector .chart-tab:hover:not(:disabled) {
  background: var(--surface);
  color: var(--text);
  border-color: transparent;
}
.context-selector .chart-tab.active {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
  font-weight: 600;
}
.context-selector .chart-tab .n {
  opacity: 0.5;
  font-size: 10px;
  margin-left: 4px;
  font-variant-numeric: tabular-nums;
}

/* ── Context card: dense horizontal strip of metrics + inline buy ─ */
.context-card { padding: 12px 14px !important; margin-bottom: 10px; }
.context-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.context-head h2 {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  color: var(--text) !important;
  margin: 0 !important;
  padding: 0 !important;
}
.context-head h2::before { content: none !important; }
.context-head button {
  padding: 5px 12px;
  font-size: 12px;
}

/* metrics inline, no borders — stat-tile pattern */
.context-metrics {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
  padding: 0;
  border: none;
  background: var(--surface-2);
  border-radius: 8px;
  overflow: hidden;
}
.context-metrics > div {
  padding: 6px 10px;
  background: var(--surface);
}
.context-metrics .stat-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  margin-bottom: 1px;
}
.context-metrics .stat-value {
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.context-buy { padding-top: 10px; }

.bids-table-v2 {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin: 10px 0;
}
.bids-table-v2 th {
  text-align: center;
  padding: 6px 10px;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.bids-table-v2 th.col-current { color: #22c55e; }
.bids-table-v2 th.col-old { color: var(--text-muted); }
.bids-table-v2 td {
  padding: 6px 10px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.bids-table-v2 td.label {
  text-align: left;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
}
.bids-table-v2 tr.divider td { padding: 2px 0; border-top: 1px dashed var(--border); }
.bids-table-v2 input {
  width: 100%;
  max-width: 110px;
  padding: 6px 10px;
  background: var(--input-bg);
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.bids-table-v2 input:focus { outline: 2px solid var(--accent); outline-offset: -1px; }

.bids-foot {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 8px;
}

.bids-summary {
  margin-top: 10px;
  padding: 8px 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.bids-summary-head {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  margin-bottom: 6px;
}
.bids-summary-table { width: auto; font-size: 12px; border-collapse: collapse; }
.bids-summary-table th, .bids-summary-table td { padding: 3px 10px; text-align: center; }
.bids-summary-label { font-weight: 500; text-align: left !important; padding-right: 14px !important; }
.bids-summary-table b { font-variant-numeric: tabular-nums; }
.context-buy-row {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  flex-wrap: wrap;
}
.context-buy input {
  background: var(--input-bg);
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  width: 110px;
}
.context-buy button {
  padding: 6px 14px;
  font-size: 13px;
}

@media (max-width: 640px) {
  .context-metrics { grid-template-columns: repeat(2, 1fr); }
}

/* ── Two-column grid for lower sections ──────────────────────────── */
.player-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 10px;
}
@media (max-width: 1000px) {
  .player-main-grid { grid-template-columns: 1fr; }
}

/* ── Panel: a card with a tiny top-left eyebrow label ────────────── */
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.panel-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin: 0;
  font-weight: 500;
}
.panel-label .panel-sub {
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  opacity: 0.8;
  font-size: 10px;
  color: var(--text-dim);
}
.panel .muted { font-size: 11px; }

.panel table { font-size: 12px; }
.panel th {
  font-size: 9px;
  padding: 4px 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
}
.panel td { padding: 4px 6px; }

/* ── ScoreBreakdown: compact, no bottom metadata (in tooltip only) ─ */
.breakdown { display: flex; flex-direction: column; gap: 8px; }
.breakdown-stats {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.breakdown-stats > div {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 10px;
  display: inline-flex;
  gap: 6px;
  align-items: baseline;
  font-size: 11px;
}
.breakdown-stats .stat-label {
  font-size: 10px;
  color: var(--text-dim);
  text-transform: none;
  letter-spacing: 0;
  margin: 0;
}
.breakdown-stats .stat-value {
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.breakdown-bars {
  display: flex;
  gap: 8px;
  padding-bottom: 4px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.breakdown-group {
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
}
.breakdown-group-label {
  text-align: center;
  font-size: 9px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 3px;
}
.breakdown-group-bars {
  display: flex;
  gap: 5px;
  align-items: flex-end;
  height: 240px;
  padding-bottom: 4px;
}
.breakdown-bar-wrap {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  width: 44px;
  position: relative;
  height: 100%;
  cursor: default;
}
.breakdown-bar-wrap:hover { opacity: 0.9; }
.breakdown-bar {
  width: 100%;
  border-radius: 6px 6px 0 0;
  transition: filter 120ms;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.14), inset 0 -3px 10px rgba(0,0,0,0.1);
}
.breakdown-bar-wrap:hover .breakdown-bar { filter: brightness(1.1); }
.breakdown-bar-value {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 3px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  min-height: 17px;
  line-height: 1;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.breakdown-bar-icons { display: none; }

.breakdown-bar { position: relative; }
.bar-badge {
  position: absolute;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #0a0d13;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 2px 6px rgba(0,0,0,0.35), 0 0 0 2px rgba(0,0,0,0.4);
  pointer-events: none;
  line-height: 1;
}
.bar-badge-goal { background: #22c55e; }
.bar-badge-assist { background: #22c55e; }
.bar-badge-stack { bottom: 30px; }
.bar-badge-count {
  font-size: 10px;
  font-weight: 700;
  color: #0a0d13;
  font-variant-numeric: tabular-nums;
}
.bar-badge-yellow {
  background: #facc15;
  width: 10px;
  height: 13px;
  border-radius: 2px;
  top: 6px;
  bottom: auto;
  padding: 0;
  box-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.bar-badge-red {
  background: #ef4444;
  width: 10px;
  height: 13px;
  border-radius: 2px;
  top: 6px;
  bottom: auto;
  padding: 0;
  box-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.breakdown-bar-foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  margin-top: 6px;
  min-height: 38px;
  justify-content: flex-start;
}
.breakdown-bar-opp { width: 20px; height: 20px; object-fit: contain; display: block; }
.breakdown-bar-gw {
  font-size: 10px;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  min-height: 12px;
  line-height: 1;
}
.breakdown-bar-gw.ghost { opacity: 0.2; }
.breakdown-bar-dnp {
  background: rgba(242,107,107,0.18);
  border: 1px solid rgba(242,107,107,0.5);
  color: var(--danger);
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.breakdown-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 10px;
  color: var(--text-dim);
  padding-top: 2px;
}
.breakdown-legend-item { display: inline-flex; align-items: center; gap: 3px; }
.breakdown-swatch { display: inline-block; width: 8px; height: 8px; border-radius: 2px; }

/* ── Chart: shorter ──────────────────────────────────────────────── */
.chart-container { height: 180px !important; }

/* ── Recent sales table ──────────────────────────────────────────── */
.floor-pill {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 0 10px;
  background: var(--ok-wash, rgba(61,220,132,0.12));
  border: 1px solid rgba(61,220,132,0.4);
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 8px;
}
.floor-pill-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ok); font-weight: 600; }
.floor-pill-price { font-size: 20px; font-weight: 700; color: var(--ok); grid-row: 1 / 3; grid-column: 2; font-variant-numeric: tabular-nums; }
.floor-pill-date { font-size: 11px; color: var(--text-muted); }

.recent-sales { max-height: 240px; overflow-y: auto; }

.sales-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.sales-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}
.sales-section-head {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}
.sales-section .floor-pill { margin-bottom: 0; padding: 6px 10px; }
.sales-section .floor-pill-price { font-size: 16px; }
.sales-section .recent-sales { max-height: 200px; }
@media (max-width: 700px) {
  .sales-split { grid-template-columns: 1fr; }
}
.recent-sales table { width: 100%; font-size: 12px; }
.recent-sales td.price { font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.recent-sales td.date { color: var(--text-muted); white-space: nowrap; }

/* ── Orderbook table — tighter ───────────────────────────────────── */
.panel .chip { padding: 1px 6px !important; font-size: 10px !important; }

/* Hide the stale .player-grid if ever referenced */
.player-grid { display: none; }
/* Player controls remain readable at phone widths. */
.form-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:16px}
.form-toolbar .segmented{display:flex;gap:6px}
.form-toolbar button{min-height:40px}
.player-hero{padding:22px;border-radius:18px;gap:20px;margin:12px 0 18px;background:linear-gradient(125deg,var(--surface),var(--surface-2))}
.player-hero-info{gap:12px}.player-hero-name-row{align-items:flex-start;flex-direction:column;gap:12px}
.player-jump{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0 18px}.player-jump button{min-height:44px}
.player-page .panel{border-radius:14px;padding:18px;scroll-margin-top:20px}.player-page .panel-label{font-size:14px;margin-bottom:12px}
.breakdown-group{min-width:max-content}.breakdown-bar-wrap{cursor:pointer}.breakdown-bar-wrap:focus{outline:2px solid var(--accent);outline-offset:-2px;border-radius:6px}
@media(max-width:640px){.player-hero{padding:16px;gap:12px;grid-template-columns:64px minmax(0,1fr)}.player-hero-pic{width:64px;height:64px}.player-hero-info h1{font-size:24px!important}.player-hero-meta .chip{font-size:11px;padding:4px 8px}.player-page .panel{padding:14px}.breakdown-stats{flex-wrap:wrap;gap:14px}.form-toolbar .section-note{margin:0}.breakdown-bars{max-width:100%;overscroll-behavior-x:contain}.player-jump{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.player-jump button{font-size:12px;padding:8px}.bot-badge{max-width:100%;grid-column:auto;grid-row:auto;justify-self:start}}
.match-detail{position:absolute;bottom:62px;left:0;width:220px;padding:12px;background:var(--surface);border:1px solid var(--border);border-radius:10px;z-index:5;white-space:pre-line;font-size:12px;box-shadow:0 8px 30px #0003}.match-detail[hidden]{display:none}
.next-match-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px 28px;background:linear-gradient(120deg,var(--surface),var(--surface-2));border:1px solid var(--border);border-radius:16px;padding:20px 24px;margin:18px 0}.match-kicker{grid-column:1/-1;display:flex;justify-content:space-between;gap:12px;color:var(--text-muted);font-size:12px}.match-kicker span:first-child{font-weight:700;text-transform:uppercase;letter-spacing:.08em}.match-fixture{display:flex;gap:22px;align-items:center;min-width:0}.match-team{display:flex;gap:12px;align-items:center;min-width:0}.match-team img,.match-team-placeholder{width:42px;height:42px;object-fit:contain;flex:none}.match-team-placeholder{display:grid;place-items:center;border-radius:50%;background:var(--surface-2);font-size:20px}.match-team strong{display:block;font-size:16px;line-height:1.3;overflow-wrap:anywhere}.match-team small{display:block;font-size:11px;color:var(--text-muted);margin-top:4px}.match-vs{font-size:11px;font-weight:700;color:var(--text-muted)}.match-schedule{border-left:1px solid var(--border);padding-left:26px;display:flex;flex-direction:column;justify-content:center;text-align:right}.match-schedule time{display:flex;flex-direction:column;gap:3px;font-size:13px}.match-schedule time b{font-size:24px;font-variant-numeric:tabular-nums}.match-schedule small{color:var(--text-muted);font-size:10px;margin-top:5px}.sales-summary-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:14px 0}.sales-summary-heading h3,.purchase-settings-title{font-size:14px;margin:0}.season-price-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-bottom:14px}.season-price-card{padding:18px;background:var(--surface-2);border:1px solid var(--border);border-radius:13px;min-width:0}.season-price-card.current{border-color:var(--accent);background:var(--accent-wash, var(--surface-2))}.season-price-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;font-size:12px}.season-price-heading span{font-size:11px;color:var(--text-muted)}.season-price-primary{margin:18px 0}.season-price-primary small{display:block;color:var(--text-muted);font-size:11px}.season-price-primary strong{font-size:30px;font-variant-numeric:tabular-nums;display:block;margin-top:5px}.season-price-range{display:grid;grid-template-columns:1fr 1fr;gap:12px;font-size:11px;color:var(--text-muted)}.season-price-range b{display:block;font-size:15px;color:var(--text);margin-top:5px}.season-price-last{border-top:1px solid var(--border);padding-top:12px;margin-top:14px;font-size:11px;display:flex;justify-content:space-between;gap:8px;color:var(--text-muted)}.season-price-last b{color:var(--text);font-weight:500}.sales-source-details{font-size:12px;color:var(--text-muted);margin:14px 0}.sales-source-details summary{cursor:pointer;padding:10px 0}.sales-source-details .section-note{margin-top:8px}.purchase-settings-title{padding:18px 0 10px;border-top:1px solid var(--border)}.local-market-details{overflow-x:auto}
@media(max-width:640px){.next-match-card{grid-template-columns:minmax(0,1fr);padding:16px;gap:16px}.match-fixture{gap:12px;display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)}.match-team{flex-direction:column;align-items:flex-start;gap:8px}.match-team.away{text-align:right;align-items:flex-end}.match-team strong{font-size:14px}.match-team img,.match-team-placeholder{width:34px;height:34px}.match-schedule{border-left:0;border-top:1px solid var(--border);padding:12px 0 0;text-align:left;flex-direction:row;justify-content:space-between;align-items:center;gap:12px}.match-schedule time{flex-direction:row;align-items:center;gap:12px}.match-schedule time b{font-size:22px}.match-schedule small{max-width:100px;text-align:right;margin:0}.season-price-summary{grid-template-columns:minmax(0,1fr);gap:10px}.season-price-card{padding:16px}.season-price-primary{margin:14px 0}.season-price-primary strong{font-size:28px}.sales-summary-heading .chip{font-size:11px}.player-page .context-card{padding:16px}.sales-source-details summary{min-height:44px;display:flex;align-items:center}}

/* Equal plot/label rows, independent of scores and month group lengths. */
.breakdown-bars{gap:8px;align-items:flex-start;padding-top:4px;padding-bottom:8px}.breakdown-group{flex:0 0 auto!important;min-width:max-content}.breakdown-group-label{height:14px;line-height:14px;margin-bottom:25px;white-space:nowrap}.breakdown-group-bars{height:auto!important;align-items:flex-start;gap:8px;padding-bottom:0}.breakdown-bar-wrap{display:grid;grid-template-rows:160px 84px;gap:8px;align-items:stretch;justify-content:normal;height:auto;flex:0 0 auto;width:44px}.breakdown-plot{position:relative;align-self:stretch;min-width:0}.breakdown-mark{position:absolute;bottom:0;left:0;right:0}.breakdown-mark>.breakdown-bar-value{position:absolute;bottom:100%;left:50%;transform:translateX(-50%);margin:0 0 5px;white-space:nowrap}.breakdown-mark>.breakdown-bar{height:100%}.breakdown-plot>.breakdown-bar-dnp{position:absolute;bottom:0;left:50%;transform:translateX(-50%);padding:4px 5px;white-space:nowrap}.breakdown-bar-foot{display:grid;grid-template-rows:20px 14px 14px 14px;gap:4px;justify-items:center;align-items:center;align-content:start;margin:0;min-height:0}.breakdown-bar-opp{width:20px!important;height:20px!important;max-width:20px;object-fit:contain;flex:none}.breakdown-bar-gw,.breakdown-minutes,.breakdown-date{line-height:14px;min-height:0;margin:0;white-space:nowrap}.breakdown-coverage-note{font-size:11px;color:var(--text-muted);line-height:1.6;margin:10px 0 0}.aa-form .breakdown-bar-wrap{grid-template-rows:140px 84px;width:40px}.aa-form .breakdown-group-bars{height:auto!important}
@media(max-width:600px){.aa-form .breakdown-bar-wrap{grid-template-rows:130px 84px;width:40px}}

.breakdown-pending{color:var(--text-muted);border-color:var(--border-strong);background:var(--surface)}
.breakdown-group{position:relative;padding-top:39px}.breakdown-group-label{position:absolute;top:0;left:0;right:0;margin:0;overflow:hidden;text-overflow:ellipsis}

/* The selected rarity applies to the whole player profile. */
.player-rarity-selector { display:flex; flex-direction:column; align-items:stretch; gap:12px; border:1px solid var(--border); border-left:4px solid var(--rarity-selected); border-radius:12px; padding:16px; background:var(--bg-elevated); }
.player-rarity-selector.selected-rare { --rarity-selected:#f87171; }
.player-rarity-selector.selected-limited { --rarity-selected:#d6a521; }
.player-rarity-heading { display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap; }
.player-rarity-heading strong { color:var(--rarity-selected); font-size:14px; }
.player-rarity-selector .context-selector-row { display:flex; gap:10px; width:100%; flex-wrap:nowrap; }
.player-rarity-option { display:flex; align-items:center; gap:10px; flex:1; min-width:0; text-align:left; padding:14px; border:2px solid var(--border); border-radius:10px; background:var(--bg); color:var(--text); }
.player-rarity-option.rarity-option-rare { --option-color:#f87171; }
.player-rarity-option.rarity-option-limited { --option-color:#d6a521; }
.player-rarity-option[aria-pressed="true"] { border-color:var(--option-color); background:color-mix(in srgb,var(--option-color) 16%,var(--bg)); box-shadow:inset 0 0 0 1px var(--option-color); }
.player-rarity-option:hover { border-color:var(--option-color); }
.player-rarity-option:focus-visible { outline:2px solid var(--option-color); outline-offset:3px; }
.player-rarity-option b { display:block; font-size:17px; }
.player-rarity-option small { display:block; margin-top:4px; font-size:11px; font-weight:400; color:var(--text-dim); }
.rarity-option-icon { display:grid; place-items:center; flex-shrink:0; width:26px; height:26px; border:1px solid var(--option-color); border-radius:7px; color:var(--option-color); font-size:19px; }
.player-rarity-option[aria-pressed="true"] .rarity-option-icon { background:var(--option-color); color:#171717; }
@media(max-width:480px) { .player-rarity-selector { padding:12px; } .player-rarity-option { padding:10px 8px; gap:7px; } .player-rarity-option small { font-size:10px; } }

/* Keep the whole portrait visible instead of clipping it into a circle. */
.player-hero { grid-template-columns:140px minmax(0,1fr); }
.player-hero-pic { width:140px; height:176px; object-fit:contain; object-position:center; border-radius:16px; }
@media(max-width:640px) { .player-hero { grid-template-columns:96px minmax(0,1fr); } .player-hero-pic { width:96px; height:124px; border-radius:12px; } }
