/* Page-specific additions on top of styles.css (linked after it). */

/* Categoria de base: preferências do olheiro com selo junto do título e campos agrupados */
.youth-prefs-topbar {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: var(--space-3, 12px);
}
.youth-prefs {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: flex-start;
  gap: var(--space-4, 16px);
}
.youth-prefs .field {
  min-width: 14rem;
  max-width: 22rem;
  margin-bottom: 0;
}
.youth-prefs select {
  width: 100%;
  min-height: 44px;
}
.candidates > .card { max-width: 40rem; }

/* Patrocínio: faixa compacta no contrato atual e ofertas em tabela densa. */
.sponsor-top .sponsor-contract {
  grid-column: 1 / -1;
  padding: var(--space-3, 12px) var(--space-4, 16px);
}
.sponsor-top > .card:nth-child(2) {
  grid-column: 1 / -1;
}
.sponsor-strip {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: var(--space-6, 24px);
  flex-wrap: wrap;
  margin-top: var(--space-2, 8px);
}
.sponsor-strip-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3, 12px);
}
.sponsor-strip-name {
  font-size: var(--text-lg, 1.125rem);
  font-weight: 700;
  color: var(--fg);
}
.sponsor-strip-metrics {
  display: flex;
  align-items: center;
  gap: var(--space-6, 24px);
  flex-wrap: wrap;
}
.sponsor-metric {
  display: flex;
  flex-direction: column;
  gap: var(--space-1, 4px);
  min-width: 5rem;
}
.sponsor-metric-label {
  font-size: var(--text-xs, 0.75rem);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  font-weight: 600;
}
.sponsor-metric-val {
  font-size: var(--text-base, 1rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--fg);
}
.sponsor-top .grid.cols-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 16px;
  justify-content: start;
  max-width: 36rem;
}
.sponsor-picker {
  width: auto;
  max-width: min(100%, 22rem);
}
.offers {
  display: block;
  margin-top: var(--space-3, 12px);
  width: 100%;
  max-width: none;
  min-width: 0;
}
.offers .dense-table th.num,
.offers .dense-table td.num {
  width: 6.5rem;
}
/* Four balanced columns: the duration is not allowed to eat the card while the figures squeeze right. */
.offers .dense-table :is(th, td):nth-child(1) { width: 34%; }
.offers .dense-table :is(th, td):nth-child(2) { width: 24%; }
.offers .dense-table :is(th, td):nth-child(3) { width: 24%; }
.offers .dense-table :is(th, td):nth-child(4) { width: 18%; }
.sponsor-last-table {
  max-width: 36rem;
}
.offers .dense-table {
  width: 100%;
}
.offers .dense-table td,
.offers .dense-table th {
  vertical-align: middle;
}
.offers .offer { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; padding: 14px; }
.offers .offer h3 { margin: 0; }
.offers .offer .stat { font-size: var(--text-lg); }
.offers .offer p { margin: 0 0 8px; font-size: var(--text-md); }
.offers .offer .btn { margin-top: auto; }

/* Season awards: three tables of the same width (the grid's columns), two columns each: a short place/stage column (wraps when
   needed) and the award, right-aligned, taking the rest. No sticky column, so no shadow between them; nothing scrolls sideways. */
.sponsor-awards .dense-table-wrap { overflow-x: hidden; }
.sponsor-awards table.awards-stage-table { table-layout: fixed; width: 100%; }
.sponsor-awards table.awards-stage-table :is(th, td):nth-child(1) { width: 11.5rem; text-align: left; white-space: normal; }
.sponsor-awards table.awards-stage-table :is(th, td):nth-child(2) { width: auto; text-align: right; white-space: nowrap; }
.sponsor-awards .awards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 16px; margin-top: 12px; }
.sponsor-awards .awards-block { min-width: 0; }
.sponsor-awards .awards-block h3 { margin: 0 0 8px; font-size: var(--text-sm); letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }

/* Estádio: the picture only carries the name and two numbers; the capacity form has its own card. */

/* Copa: the summary card. STATUS | YOUR RUN in two equal halves, each centred (the run table under them spans the card, so auto-fit would keep
   empty tracks and squeeze both to the left); one column on a phone; texts wrap, nothing is cut with an ellipsis. */
.cup-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4, 16px);
  align-items: start;
  padding: var(--space-4, 16px);
  margin-top: var(--space-4, 16px);
  box-sizing: border-box;
}

.cup-strip-col {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: var(--space-1, 4px);
  align-items: center;
  min-width: 0;
  text-align: center;
}

.cup-strip-label {
  font-size: var(--text-xs, 0.75rem);
  color: var(--color-accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.cup-strip-val {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  text-align: center;
}

.cup-stat-val {
  font-size: var(--text-xl, 1.65rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  color: var(--text);
  text-align: left;
}

.cup-stat-val .unit {
  font-size: var(--text-sm, 0.8125rem);
  font-weight: 600;
  color: var(--muted);
  margin-left: 1px;
  margin-right: 6px;
}

.cup-strip-note {
  font-size: var(--text-sm, 0.8125rem);
  color: var(--muted);
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}

/* From the second column on, a rule between the columns when they sit side by side (a phone stacks them, no rule). */
@media (min-width: 640px) {
  .cup-strip-col + .cup-strip-col { border-left: 1px solid var(--surface-border); padding-left: var(--space-4, 16px); }
}
@media (max-width: 639px) { .cup-strip { grid-template-columns: minmax(0, 1fr); } }

/* Copa: the sponsor's five cup targets (legado) */
.goal-list { list-style: none; margin: 6px 0; padding: 0; text-align: left; }
.goal-list li { display: flex; justify-content: space-between; gap: 12px; padding: 2px 0; font-size: var(--text-md); color: var(--muted); }
.goal-list li.chosen { color: inherit; }
.goal-list .num { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Liga: the three rankings; a long club name is cut instead of wrapping twice. */
.rankings { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: var(--space-4); margin-top: var(--space-4); }
.rankings table { width: 100%; table-layout: fixed; }
.rankings table :is(th, td):nth-child(1) { width: 9%; }
.rankings table :is(th, td):nth-child(2) { width: 37%; text-align: left; }
.rankings table :is(th, td):nth-child(3) { width: 34%; text-align: left; }
.rankings table :is(th, td):nth-child(4) { width: 20%; }
.rankings table :is(th, td):is(:nth-child(2), :nth-child(3)) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rankings table td:nth-child(2) a { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (min-width: 960px) {
  .rankings { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Partidas: the line-ups side by side under the scoreboard, also during the live replay. */
.lineups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
.lineups .card { padding: 12px; }
.lineups h2 { font-size: var(--text-base); }
.lineups table td { padding: 4px 6px; font-size: var(--text-md); }
/* The position badge stays on one line ("DML", "OMR", "RES"). dense-table is table-layout: fixed, so the column needs a real
   width: "width: 1%" there meant 1% of the table (a few pixels) and the badge slid under the player's portrait. */
.lineups table.dense-table td.pos-cell { width: 3.75rem; white-space: nowrap; overflow: visible; }
.lineups td.pos-cell .pos { white-space: nowrap; overflow-wrap: normal; word-break: keep-all; }
.lineups td.team-name, .lineups td:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 9rem; }
/* What each player did, beside his name: goals, cards and the arrows of the substitutions (green on, red off). */
.lineups td.ev-marks { white-space: nowrap; text-align: right; padding-left: 0; padding-right: 0; }
.ev-mark { display: inline-flex; align-items: center; justify-content: center; min-width: 14px; height: 16px; margin-left: 2px; font-size: var(--text-sm); line-height: 1; vertical-align: middle; }
.ev-mark.in, .ev-mark.out { font-size: var(--text-base); font-weight: 800; }
.ev-mark.in { color: var(--color-pos); }
.ev-mark.out { color: var(--color-neg); }
.ev-card { display: inline-block; width: 9px; height: 13px; border-radius: 2px; }
.ev-card.yellow { background: #f4c430; }
.ev-card.red { background: #e0443a; }
.scoreboard .tactics-label { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); margin-top: 6px; }
.scoreboard .tactics-value { font-size: var(--text-md); }
@media (max-width: 760px) {
  .lineups { grid-template-columns: 1fr; }
  /* Phones: no portraits in the line-ups, the names get the room (and the event marks a column of their own size). */
  .lineups .person .avatar { display: none; }
  .lineups td.team-name, .lineups td:nth-child(2) { max-width: none; }
  .lineups table.dense-table td.ev-marks { width: 3.4rem; }
  .lineups table.dense-table td.num { width: 2.75rem; }
}

.legend { font-size: var(--text-sm); color: var(--muted); margin: 4px 0 10px; }

/* Jogador: ASI, rotina and wage as one compact row. */
.stat-row { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); margin-top: var(--space-4); }
.stat-row > div { display: grid; gap: var(--space-1); }
.stat-row h3 { margin: 0; font-size: var(--text-sm); }
.stat-row .stat { font-size: var(--text-base); }

/* Forms with labelled fields in two columns (ligas amistosas). */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.form-grid .wide { grid-column: 1 / -1; }
@media (max-width: 760px) { .form-grid { grid-template-columns: 1fr; } }

/* Secondary tab rows (moderation report status). */
.tabs.sub { margin: 0 0 var(--space-3); flex-wrap: wrap; }
.tabs.sub a.tab { font-size: var(--text-md); padding: 4px 12px; }
.tabs { flex-wrap: wrap; }

/* Modern Tactical Pitch — aplicado a todas as 29 telas (13 modificadas + 16 originais) para consistência total.
   Cores, cards, botões, tipografia, breakpoints responsivos (380/560/760) unificados.
   Preserva guache, paleta oliva/ouro, identidade GM Sports. */
.gm-view { --gm-gold: var(--pos-gk); --gm-ink: var(--text); --gm-muted: var(--muted); --gm-hairline: var(--surface-border-soft); --gm-keeper: var(--pos-gk); --gm-defence: var(--pos-def); --gm-midfield: var(--pos-mid); --gm-attack: var(--pos-att); display: grid; gap: clamp(1rem, 0.75rem + 1.25vw, 2rem); color: var(--gm-ink); }
.gm-hero { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr) minmax(12rem, 0.72fr); align-items: center; gap: clamp(1.5rem, 1rem + 2vw, 3rem); min-height: 15rem; overflow: hidden; padding: clamp(1.5rem, 1rem + 2vw, 3rem); border: 1px solid var(--gm-hairline); border-radius: 1rem; background: linear-gradient(100deg, oklch(0.145 0.015 130 / 0.96), oklch(0.17 0.025 130 / 0.86) 58%, oklch(0.2 0.035 125 / 0.58)), url('/assets/torcida-guache.webp') center 44% / cover; box-shadow: 0 2px 6px oklch(0.08 0.02 120 / 0.22), inset 0 1px 0 oklch(1 0 0 / 0.08); }
.gm-hero h1 { max-width: 18ch; margin: 0.4rem 0 0.5rem; color: var(--gm-ink); font-size: clamp(2rem, 1.55rem + 2.25vw, 3.35rem); font-weight: 750; letter-spacing: -0.035em; line-height: 1.04; text-wrap: balance; }
.gm-hero-note { max-width: 58ch; color: var(--gm-muted); }
.gm-panel-heading { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.gm-panel-heading h2 { margin: 0.25rem 0 0; color: var(--gm-ink); font-size: clamp(1.25rem, 1.1rem + 0.75vw, 1.75rem); letter-spacing: -0.025em; }
.gm-view .table-wrap { border: 1px solid oklch(0.72 0.055 110 / 0.14); border-radius: 0.75rem; background: oklch(0.145 0.015 130 / 0.56); }
.gm-view table { min-width: 38rem; border-spacing: 0; border-collapse: separate; color: var(--gm-ink); }
.gm-view th { z-index: 1; padding: 0.75rem 0.5rem; border-bottom: 1px solid var(--gm-hairline); background: oklch(0.2 0.025 130); color: var(--gm-muted); font-size: var(--text-xs); font-weight: 800; letter-spacing: 0.075em; text-transform: uppercase; }
.gm-view td { padding: 0.7rem 0.5rem; border-bottom: 1px solid oklch(0.72 0.055 110 / 0.11); background: transparent; }
.gm-view tbody tr:hover td { background: oklch(0.72 0.18 150 / 0.07); transition: background-color 160ms cubic-bezier(0.2, 0.8, 0.2, 1); }
.gm-view .num { font-variant-numeric: tabular-nums; text-align: right; padding-left: 12px; white-space: nowrap; }
.gm-view .badge { border-color: var(--gm-hairline); background: oklch(0.22 0.025 125 / 0.75); color: var(--gm-ink); display: inline-flex; align-items: center; justify-content: center; min-width: 2.2rem; text-align: center; flex-shrink: 0; padding: 2px 6px; border-radius: 0.5rem; font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.06em; }
/* Mobile responsivo para todas as 29 telas */
@media (max-width: 1080px) { .gm-hero { grid-template-columns: 1fr; padding: 1.25rem; min-height: 12rem; } .gm-hero h1 { font-size: clamp(1.6rem, 1.35rem + 1.5vw, 2.6rem); } }
@media (max-width: 760px) {
  .gm-hero { grid-template-columns: 1fr; min-height: 10rem; padding: 1rem; }
  .gm-view { gap: 0.75rem; }
  .gm-panel-heading { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .gm-view table { font-size: var(--text-sm); }
  .gm-view td, .gm-view th { padding: 0.45rem 0.35rem; }
  .gm-view .badge { min-width: 1.6rem; font-size: var(--text-xs); }
}
@media (max-width: 380px) {
  .gm-hero h1 { font-size: var(--text-lg); }
  .gm-view th { font-size: var(--text-xs); letter-spacing: 0.05em; }
  .gm-view td { font-size: var(--text-xs); }
}

/* Operações: paths and URLs break anywhere instead of overflowing the card. */
.ops-paths { overflow-wrap: anywhere; }

/* Novidades: the date heading as formatDate writes it ("23 de outubro de 2026"). */
.changelog-date-heading { text-transform: none; }

/* Minha conta: e-mail and the role badge as separate chips. */
.account-id { align-items: center; }

/* Alpha invitations (Moderação → Convites). */
.invite-form label { display: block; color: var(--muted); font-size: var(--text-md); margin-bottom: 4px; }
.invite-form-row { display: flex; flex-wrap: wrap; gap: 8px; }
.invite-form-row input { flex: 1 1 16rem; min-width: 0; }
.invite-result { margin-top: 12px; padding: 12px; border: 1px solid var(--good); border-radius: 8px; background: rgba(0, 0, 0, 0.2); }
.invite-result p { margin: 0 0 8px; overflow-wrap: anywhere; }
.invite-code-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.invite-code { font-family: ui-monospace, Consolas, monospace; font-size: var(--text-xl); font-weight: 700; letter-spacing: 0.15em; color: var(--accent-light); padding: 6px 12px; border: 2px dashed var(--accent); border-radius: 8px; overflow-wrap: anywhere; user-select: all; }
.invite-code.small { font-size: var(--text-md); font-weight: 600; letter-spacing: 0.08em; color: inherit; padding: 0; border: 0; user-select: text; }
.invites-table td.invite-action { white-space: nowrap; }
@media (max-width: 560px) {
  .invite-code { font-size: var(--text-lg); letter-spacing: 0.1em; }
  .invites-table table, .invites-table tbody, .invites-table tr, .invites-table td { display: block; width: 100%; }
  .invites-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }   /* names the columns for assistive tech; each cell carries its own label */
  .invites-table tr { margin-bottom: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; }
  .invites-table td { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 4px 0; text-align: right !important; border: 0; overflow-wrap: anywhere; }
  .invites-table td::before { content: attr(data-label); flex: none; color: var(--muted); font-size: var(--text-sm); text-align: left; }
  .invites-table td[data-label=""]::before { content: none; }
  .invites-table td.invite-action { justify-content: flex-end; }
  .invites-table .cell-value { min-width: 0; overflow-wrap: anywhere; white-space: normal; }
}
.badge.open-invite { border-style: dashed; border-color: var(--accent); color: var(--accent-light); }
/* Modern Tactical Pitch — squad and transfer desk skin.
   cerebro-webdesign-v2 §§1.1, 1.2, 2.1–2.2 and 7.15–7.18, 7.22.
   Preserve GM Sports guache, olive and ochre identity. */
.gm-view { --gm-gold: var(--pos-gk); --gm-ink: var(--text); --gm-muted: var(--muted); --gm-hairline: var(--surface-border-soft); --gm-keeper: var(--pos-gk); --gm-defence: var(--pos-def); --gm-midfield: var(--pos-mid); --gm-attack: var(--pos-att); display: grid; gap: clamp(1rem, 0.75rem + 1.25vw, 2rem); color: var(--gm-ink); }
.gm-hero { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr) minmax(12rem, 0.72fr); align-items: center; gap: clamp(1.5rem, 1rem + 2vw, 3rem); min-height: 15rem; overflow: hidden; padding: clamp(1.5rem, 1rem + 2vw, 3rem); border: 1px solid var(--gm-hairline); border-radius: 1rem; background: linear-gradient(100deg, oklch(0.145 0.015 130 / 0.96), oklch(0.17 0.025 130 / 0.86) 58%, oklch(0.2 0.035 125 / 0.58)), url('/assets/torcida-guache.webp') center 44% / cover; box-shadow: 0 2px 6px oklch(0.08 0.02 120 / 0.22), inset 0 1px 0 oklch(1 0 0 / 0.08); }
.gm-hero::after { position: absolute; z-index: -1; inset: 0; background: linear-gradient(0deg, oklch(0.12 0.02 125 / 0.42), transparent 62%); content: ''; pointer-events: none; }
.gm-hero-copy { min-width: 0; }
.gm-eyebrow, .gm-section-index { color: var(--gm-gold); font-size: clamp(0.72rem, 0.69rem + 0.15vw, 0.81rem); font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; }
.gm-hero h1 { max-width: 18ch; margin: 0.4rem 0 0.5rem; color: var(--gm-ink); font-size: clamp(2rem, 1.55rem + 2.25vw, 3.35rem); font-weight: 750; letter-spacing: -0.035em; line-height: 1.04; text-wrap: balance; }
.gm-hero-note { max-width: 58ch; color: var(--gm-muted); }
.gm-hero-shortcut { display: inline-flex; min-height: 2.75rem; align-items: center; gap: 0.5rem; color: var(--gm-gold); font-weight: 750; }
.gm-squad-hero { grid-template-columns: minmax(0, 1fr) minmax(15rem, 0.8fr); }
.gm-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem; margin-top: 1.5rem; }
.gm-metric { display: grid; min-width: 0; gap: 0.25rem; padding: 0.75rem 1rem; border: 1px solid oklch(0.82 0.08 100 / 0.18); border-radius: 0.75rem; background: oklch(0.15 0.02 130 / 0.62); box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.06); backdrop-filter: blur(8px); }
.gm-metric-label { overflow: hidden; color: var(--gm-muted); font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.06em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.gm-metric strong { overflow: hidden; color: var(--gm-ink); font-size: clamp(1rem, 0.88rem + 0.6vw, 1.4rem); font-variant-numeric: tabular-nums; text-overflow: ellipsis; white-space: nowrap; }
.gm-metric small { color: var(--gm-muted); font-size: var(--text-xs); }
.gm-roster-pitch { position: relative; width: min(100%, 25rem); aspect-ratio: 1.54; justify-self: end; overflow: hidden; border: 1px solid oklch(0.84 0.08 145 / 0.3); border-radius: 0.85rem; background: linear-gradient(90deg, transparent 49.7%, oklch(0.86 0.08 145 / 0.32) 50%, transparent 50.3%), repeating-linear-gradient(0deg, oklch(0.72 0.14 145 / 0.12) 0 12.5%, oklch(0.67 0.13 145 / 0.08) 12.5% 25%), linear-gradient(145deg, oklch(0.34 0.105 145), oklch(0.25 0.09 140)); box-shadow: inset 0 0 2rem oklch(0.1 0.04 140 / 0.32), 0 2px 6px oklch(0.08 0.02 120 / 0.22); }
.gm-pitch-half, .gm-pitch-box, .gm-pitch-circle { position: absolute; border: 1px solid oklch(0.86 0.08 145 / 0.42); pointer-events: none; }
.gm-pitch-half { inset: 50% 0 auto; }
.gm-pitch-circle { top: 50%; left: 50%; width: 22%; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%); }
.gm-pitch-box { left: 28%; width: 44%; height: 17%; }
.gm-pitch-box-top { top: 0; border-top: 0; }
.gm-pitch-box-bottom { bottom: 0; border-bottom: 0; }
.gm-pitch-player { position: absolute; width: clamp(0.65rem, 0.55rem + 0.5vw, 0.95rem); aspect-ratio: 1; border: 2px solid oklch(0.97 0.025 90 / 0.92); border-radius: 50%; background: var(--gm-midfield); box-shadow: 0 1px 5px oklch(0.08 0.02 120 / 0.65), 0 0 0 3px oklch(0.72 0.18 150 / 0.18); transform: translate(-50%, -50%); }
.gm-pitch-player.keeper { background: var(--gm-keeper); box-shadow: 0 1px 5px oklch(0.08 0.02 120 / 0.65), 0 0 0 3px oklch(0.8 0.16 85 / 0.22); }
.gm-data-panel, .gm-filter-panel { min-width: 0; padding: clamp(1rem, 0.85rem + 0.75vw, 1.5rem); overflow: hidden; border: 1px solid var(--gm-hairline); border-radius: 0.875rem; background: linear-gradient(155deg, oklch(0.19 0.022 130 / 0.97), oklch(0.155 0.018 130 / 0.97)); box-shadow: 0 2px 5px oklch(0.08 0.02 120 / 0.2), inset 0 1px 0 oklch(1 0 0 / 0.07); }
.gm-panel-heading, .gm-results-heading { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.gm-panel-heading h2, .gm-results-heading h2 { margin: 0.25rem 0 0; color: var(--gm-ink); font-size: clamp(1.25rem, 1.1rem + 0.75vw, 1.75rem); letter-spacing: -0.025em; }
.gm-panel-heading .tabs { margin: 0; }
.gm-view .tabs button, .gm-view .tabs a.tab { min-height: 2.75rem; padding: 0.5rem 1rem; border: 1px solid var(--gm-hairline); border-radius: 0.65rem; background: oklch(0.16 0.018 130 / 0.8); color: var(--gm-muted); transition: background-color 180ms cubic-bezier(0.2, 0.8, 0.2, 1), border-color 180ms cubic-bezier(0.2, 0.8, 0.2, 1), color 180ms cubic-bezier(0.2, 0.8, 0.2, 1), transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1); }
.gm-view .tabs :is(button, a.tab):hover { border-color: oklch(0.8 0.16 85 / 0.52); color: var(--gm-ink); }
.gm-view .tabs :is(button, a.tab):active { transform: translateY(1px); }
.gm-view .tabs :is(button, a.tab).active { border-color: oklch(0.8 0.16 85 / 0.52); background: oklch(0.8 0.16 85 / 0.14); color: var(--gm-gold); box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.07); }
.gm-view .table-wrap { border: 1px solid oklch(0.72 0.055 110 / 0.14); border-radius: 0.75rem; background: oklch(0.145 0.015 130 / 0.56); }
.gm-view table { min-width: 38rem; border-spacing: 0; border-collapse: separate; color: var(--gm-ink); }
.gm-view th { z-index: 1; padding: 0.75rem 0.5rem; border-bottom: 1px solid var(--gm-hairline); background: oklch(0.2 0.025 130); color: var(--gm-muted); font-size: var(--text-xs); font-weight: 800; letter-spacing: 0.075em; text-transform: uppercase; }
.gm-view td { padding: 0.7rem 0.5rem; border-bottom: 1px solid oklch(0.72 0.055 110 / 0.11); background: transparent; }
.gm-view tbody tr:nth-child(odd) td, .gm-view tbody tr:nth-child(even) td { background: transparent; }
.gm-view tbody tr { transition: background-color 160ms cubic-bezier(0.2, 0.8, 0.2, 1); }
.gm-view tbody tr:hover td { background: oklch(0.72 0.18 150 / 0.07); }
.gm-squad .squad-table th.sortable:hover { color: var(--gm-gold); }
.gm-squad .squad-table tbody tr { cursor: pointer; }
.gm-squad .squad-table tbody tr:hover td:first-child { box-shadow: inset 3px 0 var(--gm-gold); }
.gm-view .num { font-variant-numeric: tabular-nums; }
.gm-view .stars { color: var(--gm-gold); }
.gm-view .club-badge, .gm-view td:first-child .badge { display: inline-flex; align-items: center; justify-content: center; min-width: 2.2rem; text-align: center; flex-shrink: 0; }
.gm-view table td:first-child { vertical-align: middle; padding-left: 0.5rem; }
.gm-view table td:first-child .badge { margin: 0; }
.gm-view :is(.muted, .gm-results-hint) { color: var(--gm-muted); }
.gm-market { gap: 1rem; }
.gm-market-hero { min-height: 4.5rem; padding: 0.85rem 1.4rem; grid-template-columns: 1fr; }
.gm-market-hero h1 { font-size: clamp(1.4rem, 1.15rem + 1vw, 2rem); margin: 2px 0 4px; }
.gm-market-hero .gm-hero-shortcut { min-height: 28px; font-size: var(--text-sm); }
.gm-market-graphic, .gm-orbit, .gm-orbit-inner, .gm-orbit-point, .gm-orbit-cross { display: none !important; }
.gm-tab-rail { position: sticky; z-index: 3; top: 0.5rem; width: fit-content; max-width: 100%; padding: 0.375rem; border: 1px solid var(--gm-hairline); border-radius: 0.875rem; background: oklch(0.15 0.018 130 / 0.94); box-shadow: 0 4px 14px oklch(0.08 0.02 120 / 0.28), inset 0 1px 0 oklch(1 0 0 / 0.06); backdrop-filter: blur(12px); }
.gm-tab-rail .tabs { margin: 0; gap: 0.375rem; }
.gm-market-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; min-width: 0; }   /* one track that never outgrows the page: the fields inside have a wide intrinsic size */
.gm-filter-panel { display: flex; align-items: center; gap: 0.75rem; }
.gm-filter-panel > :is(input, select) { min-height: 2.75rem; border: 1px solid var(--gm-hairline); border-radius: 0.65rem; background: oklch(0.145 0.015 130); color: var(--gm-ink); }
.gm-filter-panel > :is(input, select):focus-visible { border-color: var(--gm-gold); }
.gm-market .gm-results-heading { align-items: center; }
.gm-count-pill { display: inline-flex; align-items: baseline; gap: 0.5rem; padding: 0.5rem 0.75rem; border: 1px solid oklch(0.8 0.16 85 / 0.3); border-radius: 999px; background: oklch(0.8 0.16 85 / 0.1); color: var(--gm-muted); }
.gm-count-pill strong { color: var(--gm-gold); font-variant-numeric: tabular-nums; }
.gm-market-stats > .card { border: 1px solid var(--gm-hairline); border-radius: 0.875rem; background: linear-gradient(145deg, oklch(0.2 0.025 130), oklch(0.16 0.018 130)); box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.07); }
.gm-market-stats > .card h3 { color: var(--gm-muted); font-size: var(--text-xs); letter-spacing: 0.075em; text-transform: uppercase; }
.gm-market-stats .stat { color: var(--gm-gold); font-variant-numeric: tabular-nums; }
.gm-market-stats.market-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 12px 20px;
  margin-bottom: 16px;
  align-items: center;
  border: 1px solid var(--gm-hairline);
  border-radius: 0.875rem;
  background: linear-gradient(145deg, oklch(0.2 0.025 130), oklch(0.16 0.018 130));
  box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.07);
}
.market-strip-col {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.market-strip-col + .market-strip-col {
  border-left: 1px solid var(--gm-hairline);
  padding-left: 16px;
}
.market-strip-label {
  color: var(--gm-muted);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}
.market-strip-val {
  color: var(--gm-gold);
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}
@media (max-width: 540px) {
  .gm-market-stats.market-strip {
    gap: 8px;
    padding: 10px 10px;
  }
  .market-strip-col + .market-strip-col {
    padding-left: 8px;
  }
  .market-strip-label {
    font-size: var(--text-xs);
  }
  .market-strip-val {
    font-size: var(--text-md);
  }
}
@media (max-width: 390px) {
  .gm-market-stats.market-strip {
    gap: 6px;
    padding: 8px 6px;
  }
  .market-strip-col + .market-strip-col {
    padding-left: 6px;
  }
  .market-strip-label {
    font-size: var(--text-xs);
  }
  .market-strip-val {
    font-size: var(--text-sm);
  }
}
.gm-view a:focus-visible, .gm-view button:focus-visible, .gm-view input:focus-visible, .gm-view select:focus-visible { outline-color: var(--gm-gold); }
@media (max-width: 760px) {
  .gm-hero, .gm-squad-hero, .gm-market-hero { grid-template-columns: minmax(0, 1fr); gap: 1rem; min-height: 0; padding: 1.25rem; }
  .gm-roster-pitch { width: 100%; max-width: 30rem; justify-self: stretch; }
  .gm-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; margin-top: 1rem; }
  .gm-metric { padding: 0.625rem 0.75rem; }
  .gm-market-graphic { position: absolute; right: -2rem; bottom: -2rem; width: 10rem; opacity: 0.28; pointer-events: none; }
  .gm-market-hero { position: relative; }
  .gm-filter-panel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gm-filter-panel > :is(input, select) { width: 100%; min-width: 0; }
  .gm-tab-rail { position: static; width: 100%; }
  .gm-tab-rail .tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gm-tab-rail .tabs a.tab { min-width: 0; overflow: hidden; padding-inline: 0.5rem; text-overflow: ellipsis; text-align: center; }
  .gm-view .table-wrap { border-radius: 0.625rem; }
  .gm-view .table-wrap table { min-width: 34rem; }
}
@media (prefers-reduced-motion: reduce) { .gm-view *, .gm-view *::before, .gm-view *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; } }
/* Sector position badges per �3.3 spec */
.gm-view .pos { font-size: var(--text-xs); font-weight: 800; letter-spacing: 0.04em; border-radius: 4px; box-shadow: inset 0 1px 0 rgba(255,255,255,0.15); }
.gm-view .pos.gk { background: var(--pos-gk); color: var(--color-accent-ink); }
.gm-view .pos.d { background: var(--pos-def); color: #ffffff; }
.gm-view .pos.m { background: var(--pos-mid); color: var(--color-accent-ink); }
.gm-view .pos.f { background: var(--pos-att); color: #ffffff; }
.gm-squad .squad-table td:first-child { display: table-cell; }
.gm-squad .squad-table { min-width: 56rem; }
.gm-squad .squad-table td:nth-child(3) { white-space: nowrap; overflow-wrap: normal; }
.gm-squad .squad-table .squad-positions { display: inline-flex; flex-wrap: nowrap; gap: 0.25rem; white-space: nowrap; }
.gm-squad .squad-table .pos { flex: 0 0 auto; white-space: nowrap; }

/* Squad Title Row & Compact Unbordered Wage Text */
.squad-title-row {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: var(--space-4, 16px);
  margin-bottom: var(--space-3, 12px);
}
.squad-title-row .squad-title {
  margin: 0;
  font-size: var(--text-xl);
  font-weight: 780;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1.15;
}
.squad-wage-chip-link {
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  margin-left: 0;
  padding: 4px 6px;
  border-radius: var(--radius-sm);
  color: inherit;
  transition: opacity 150ms ease;
  min-height: 44px;
  box-sizing: border-box;
}
.squad-wage-chip-link:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
.squad-wage-chip-link:hover {
  text-decoration: none;
}

/* Sem moldura, sem fundo, sem sombra: apenas rotulo e valor como texto */
.stadium-app .board .main :is(.squad-title-row, .squad-wage-chip-link) .gm-metric.squad-wage,
.gm-view :is(.squad-title-row, .squad-wage-chip-link) .gm-metric.squad-wage,
.squad-title-row .gm-metric.squad-wage,
.squad-wage-chip-link .gm-metric.squad-wage {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: baseline;
  gap: var(--space-1-5, 6px);
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  min-height: 0 !important;
  width: auto !important;
  max-width: 100%;
  cursor: pointer;
}
.squad-wage-chip-link .gm-metric.squad-wage .gm-metric-label {
  color: var(--muted);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  margin: 0;
  padding: 0;
  white-space: nowrap;
  transition: color 150ms ease;
}
.squad-wage-chip-link .gm-metric.squad-wage strong {
  color: var(--color-accent);
  font-size: var(--text-base);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  margin: 0;
  padding: 0;
  white-space: nowrap;
  transition: color 150ms ease;
}
.squad-wage-chip-link .gm-metric.squad-wage small {
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: 400;
  margin: 0;
  padding: 0;
  white-space: nowrap;
}
.squad-wage-chip-link:hover .gm-metric.squad-wage strong {
  color: var(--color-accent-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.squad-wage-chip-link:hover .gm-metric.squad-wage .gm-metric-label {
  color: var(--text);
}

/* Squad Toolbar & Search */
.squad-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: var(--space-4, 16px);
  padding: var(--space-3, 12px) var(--space-4, 16px);
  border-bottom: 1px solid var(--surface-border);
  flex-wrap: wrap;
}
.squad-search-wrap {
  flex: 0 1 20rem;
  max-width: 22rem;
  min-width: 14rem;
  position: relative;
}
.squad-search-input {
  width: 100%;
  min-height: 44px;
  height: 44px;
  padding: 0 var(--space-3, 12px);
  border-radius: var(--radius-sm);
  border: 1px solid var(--surface-border);
  background: var(--surface-bg);
  color: var(--text);
  font-size: var(--text-sm);
  outline: none;
  transition: border-color 150ms ease;
}
.squad-search-input:focus-visible {
  border-color: var(--color-accent);
  outline: 1px solid var(--color-accent);
}
.squad-empty-cell {
  padding: var(--space-8) !important;
  text-align: center;
}
.squad-empty-mobile {
  padding: var(--space-8);
  text-align: center;
}

/* Squad filter chips */
.squad-filters {
  display: flex;
  align-items: center;
  gap: var(--space-2, 8px);
  margin: 0;
  flex-wrap: wrap;
}
.squad-filters .chip-filter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  height: 44px;
  padding: 0 var(--space-4, 16px);
  border-radius: var(--radius-full);
  border: 1px solid var(--surface-border);
  background: var(--surface-panel);
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 150ms ease;
}
.squad-filters .chip-filter:hover {
  border-color: var(--color-accent);
  color: var(--text);
}
.squad-filters .chip-filter.active {
  background: var(--color-accent);
  color: var(--surface-bg);
  border-color: var(--color-accent);
  font-weight: 700;
  box-shadow: 0 0 10px rgba(184, 243, 75, 0.25);
}

/* Squad Mobile Cards list */
.squad-mobile-cards {
  display: none;
}

@media (max-width: 760px) {
  .squad-desktop-table {
    display: none !important;
  }
  .gm-squad .table-wrap {
    overflow-x: visible;
    background: transparent;
    border: none;
    padding: 0;
  }
  .squad-mobile-cards {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    width: 100%;
    padding-bottom: 84px;
  }
  .squad-player-card {
    display: flex;
    align-items: center;
    min-height: 64px;
    height: auto;
    max-height: none;
    box-sizing: border-box;
    padding: 8px var(--space-3);
    background: var(--surface-card);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: background-color 150ms ease, border-color 150ms ease, transform 150ms ease;
  }
  .squad-player-card:hover, .squad-player-card:focus-visible {
    background: var(--surface-panel);
    border-color: var(--color-accent);
    outline: none;
  }
  .squad-player-card:active {
    transform: scale(0.99);
  }
  .squad-card-row {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 10px;
  }
  .squad-card-pos {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 0 0 auto;
  }
  .squad-card-pos .pos {
    min-width: 32px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-xs);
    font-weight: 700;
    border-radius: var(--space-1);
  }
  .squad-card-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1 1 auto;
    min-width: 0;
    gap: 2px;
  }
  .squad-card-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2);
  }
  .squad-card-name {
    font-weight: 600;
    font-size: var(--text-base);
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .squad-card-name .name-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .squad-card-name .name-status-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .squad-card-stars {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
  }
  .squad-card-stars .stars {
    font-size: var(--text-xs);
    letter-spacing: -1px;
    line-height: 1;
  }
  .squad-card-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    font-size: var(--text-xs);
    color: var(--muted);
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
    line-height: 1.2;
  }
  .squad-card-kpi-val {
    color: var(--text);
    font-family: var(--font-num, inherit);
    font-variant-numeric: tabular-nums;
  }
  .squad-card-sep {
    opacity: 0.4;
  }
  .squad-card-wage {
    font-family: var(--font-num, inherit);
    font-variant-numeric: tabular-nums;
    color: var(--color-pos);
  }
  .squad-title-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-direction: row;
    gap: var(--space-2);
  }
  .squad-title-row .squad-title {
    font-size: var(--text-lg);
  }
  .squad-wage-chip-link .gm-metric.squad-wage strong {
    font-size: var(--text-sm);
  }
  .squad-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-2);
    padding: var(--space-2);
  }
  .squad-search-wrap {
    max-width: 100%;
    flex: 1 1 100%;
  }
  .squad-search-input {
    min-height: 44px;
    height: 44px;
    font-size: var(--text-base);
  }
  .squad-filters {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-2);
  }
  .squad-filters .chip-filter {
    min-height: 44px;
    height: 44px;
    width: 100%;
    padding: 0;
  }
}
.league-table .num { text-align: right; padding-left: 12px; }
.table-wrap table { border-collapse: collapse; width: 100%; }
.stadium-cards { display: flex; gap: 16px; align-items: stretch; }
.card.stadium-card { flex: 1; min-height: 140px; }

/* ==========================================================================
   Elenco (01/11): seis colunas. Os catorze atributos vivem na ficha do
   jogador, que abre no clique da linha. Tabela densa, linha de 40px.
   ========================================================================== */
.gm-squad .gm-panel-heading.squad-toolbar {
  border-bottom: 0;   /* no rule between the search and the table */
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 12px 16px;
  margin: 0 0 12px;
  padding: 0;
}
.gm-squad .squad-search-wrap {
  flex: 0 1 20rem;
  min-width: 12rem;
  max-width: 20rem;
}
.gm-squad .squad-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}
.gm-squad .squad-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
  font-size: var(--text-sm);
}
.gm-squad .squad-table :is(th, td) {
  padding: 0 8px;
  vertical-align: middle;
}
/* PLAYER on the left; every short column (POS, AGE, REC, FATIGUE, WAGE, STATUS) has its title and its cells on one centre line, with fixed widths so nothing moves when a row has two position badges or a long status. */
.gm-squad .squad-table :is(th, td):nth-child(1) { width: 22%; text-align: left; }
.gm-squad .squad-table :is(th, td):nth-child(n+2) { text-align: center; }
.gm-squad .squad-table :is(th, td):nth-child(2) { width: 8rem; }
.gm-squad .squad-table :is(th, td):nth-child(3) { width: 5rem; }
.gm-squad .squad-table :is(th, td):nth-child(4) { width: 6rem; }
.gm-squad .squad-table :is(th, td):nth-child(5) { width: 5.5rem; }
.gm-squad .squad-table :is(th, td):nth-child(6) { width: 7rem; }
.gm-squad .squad-table :is(th, td):nth-child(7) { width: 8.5rem; }
.gm-squad .squad-table .squad-positions { justify-content: center; }
.gm-squad .squad-table th .sort-label { position: relative; display: inline-block; }
.gm-squad .squad-table th .sort-arrow { position: absolute; left: 100%; margin-left: .3em; }
.gm-squad .squad-table thead th {
  height: 34px;
  border-bottom: 1px solid rgba(130, 178, 154, 0.2);
  background: transparent;
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.gm-squad .squad-table tbody tr {
  height: 40px;
}
.gm-squad .squad-table tbody td {
  height: 40px;
  border-bottom: 1px solid rgba(130, 178, 154, 0.1);
  background: transparent;
}
.gm-squad .squad-table tbody tr:hover td { background: rgba(255, 255, 255, 0.04); }

/* Elenco no celular: a barra deixa de ser coluna esticada. */
@media (max-width: 760px) {
  .gm-squad .gm-panel-heading.squad-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .gm-squad .squad-search-wrap {
    flex: 0 0 auto;
    width: 100%;
    max-width: none;
  }
  .gm-squad .squad-search-input {
    height: 44px;
  }
  .gm-squad .squad-filters {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }
  .gm-squad .squad-filters .chip-filter {
    width: 100%;
    flex: 0 0 auto;
  }
}

/* Entre tablet e desktop a tabela perde idade e salario para o nome respirar. */
@media (max-width: 900px) and (min-width: 761px) {
  .gm-squad .squad-table :is(th, td):nth-child(3),
  .gm-squad .squad-table :is(th, td):nth-child(6) {
    display: none;
  }
  .gm-squad .squad-table :is(th, td):nth-child(2) { width: 6rem; }
  .gm-squad .squad-table :is(th, td):nth-child(4) { width: 5.5rem; }
  .gm-squad .squad-table :is(th, td):nth-child(5) { width: 5rem; }
  .gm-squad .squad-table :is(th, td):nth-child(7) { width: 6rem; }
}

/* ==========================================================================
   Mercado: cards moveis para leiloes e negociacoes (mobile).
   Desktop mantem tabela completa de 10 colunas intacta.
   ========================================================================== */
.market-mobile-cards {
  display: none;
}

@media (max-width: 760px) {
  .market-desktop-table {
    display: none !important;
  }
  .gm-market-results .table-wrap.market-desktop-table {
    display: none !important;
  }
  .market-mobile-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin-top: 10px;
    padding-bottom: 84px;
  }
  .market-auction-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-sizing: border-box;
    padding: 10px 12px;
    background: var(--surface-card, #0f2420);
    border: 1px solid var(--surface-border, rgba(255, 255, 255, 0.08));
    border-radius: var(--radius-sm, 6px);
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: background-color 150ms ease, border-color 150ms ease, transform 150ms ease;
  }
  .market-auction-card:hover, .market-auction-card:focus-visible {
    background: var(--surface-panel, #142e29);
    border-color: var(--color-accent, #10b981);
    outline: none;
  }
  .market-auction-card:active {
    transform: scale(0.99);
  }
  .market-card-top {
    display: flex;
    align-items: center;
    width: 100%;
  }
  .market-card-top .person {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
  }
  .market-card-top .avatar {
    --avatar-size: 32px !important;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
  }
  .market-card-player-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
    min-width: 0;
  }
  .market-card-name-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }
  .market-card-name {
    font-weight: 700;
    font-size: var(--text-md);
    color: var(--text-heading, #fff);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .market-card-stars {
    flex-shrink: 0;
    font-size: var(--text-sm);
  }
  .market-card-sub-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--text-xs);
    color: var(--muted, #8b949e);
  }
  .market-card-positions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
  }
  .market-card-positions .pos {
    font-size: var(--text-xs);
    padding: 1px 4px;
    min-width: 24px;
    height: 18px;
    line-height: 16px;
  }
  .market-card-age {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .market-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }
  .market-card-price-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
  }
  .market-card-price {
    font-size: var(--text-base);
    font-weight: 800;
    color: var(--color-accent, #10b981);
    letter-spacing: -0.01em;
  }
  .market-card-meta {
    font-size: var(--text-xs);
    color: var(--muted, #8b949e);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .market-card-action {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .market-card-has-bids {
    font-size: var(--text-xs);
    color: var(--muted, #8b949e);
  }
}

/* Modal de detalhes do jogador no mercado */
.market-detail-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 8px;
}
.market-detail-player {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--surface-border, rgba(255, 255, 255, 0.08));
}
.market-detail-heading {
  display: flex;
  align-items: center;
  gap: 10px;
}
.market-detail-positions {
  display: flex;
  gap: 4px;
}
.market-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 14px;
}
.market-detail-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.market-detail-item strong {
  font-size: var(--text-md);
}
.market-highlight-price {
  color: var(--color-accent, #10b981) !important;
  font-size: var(--text-base) !important;
}

/* --- Market: player sheet on phones (bottom sheet with handle, Back and close) --- */
@media (max-width: 760px) {
  body .modal.modal-sheet {
    top: auto; bottom: 0; left: 0; right: 0; transform: none;
    width: 100%; max-width: 100%; max-height: 88dvh; box-sizing: border-box;
    border-radius: 18px 18px 0 0; border-bottom-width: 0;
    padding: 0 16px calc(16px + env(safe-area-inset-bottom, 0px));
    z-index: 80;
  }
  body:has(.modal-sheet) .modal-backdrop { z-index: 79; }
  body:has(.modal-sheet) #gm-radio-bar { display: none; }
  .modal-sheet .sheet-handle { display: flex; justify-content: center; padding: 10px 0 4px; touch-action: none; cursor: grab; position: sticky; top: 0; z-index: 3; background: inherit; }
  .modal-sheet .sheet-handle span { width: 44px; height: 5px; border-radius: 999px; background: rgba(255, 255, 255, 0.35); }
  .modal-sheet > .topbar { position: sticky; top: 24px; z-index: 3; align-items: center; padding: 4px 0 8px; background: inherit; }
  .modal-sheet > .topbar h2 { flex: 1 1 auto; font-size: var(--text-base); }
  .modal-sheet .sheet-back, .modal-sheet .sheet-close { min-height: 44px; min-width: 44px; }
  .modal-sheet > .chips { position: sticky; bottom: 0; z-index: 3; padding-top: 10px; background: inherit; }
  }

/* Player column of the auctions table: it keeps a width of its own (the percent max-width of the cut name made it collapse to 1px
   at tablet widths) and the position column keeps its own, so the name is cut with an ellipsis instead of sliding over ML, OML, MC. */
@media (min-width: 761px) {
  .stadium-app .board .main table.dense-table.market-table :is(th, td).col-fixed-1 { min-width: 8rem; width: 8rem; max-width: 8rem; }
  .stadium-app .board .main table.dense-table.market-table td.col-fixed-1 .person { max-width: 100%; }
  .stadium-app .board .main table.dense-table.market-table td.col-fixed-1 .cut-name { max-width: 100%; }
  .stadium-app .board .main table.dense-table.market-table :is(th, td):nth-child(2) { min-width: 7.5rem; }
}
/* On tablets the table must still show the bid button without sideways scrolling: the secondary columns (age, seller) go, like they do on phones. */
@media (min-width: 761px) and (max-width: 1280px) {
  .stadium-app .board .main table.dense-table.market-table .hide-sm { display: none !important; }
}
/* --- Scouts: a plain list of cards; the numbers open in a popup (same pattern as the market) --- */
.scout-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: var(--space-3, 12px); }
.scout-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "main action" "hint action"; align-items: center; gap: 4px 12px; min-width: 0; padding: 12px 14px; border: 1px solid var(--gm-hairline, rgba(255, 255, 255, 0.12)); border-radius: 0.875rem; background: rgba(255, 255, 255, 0.03); cursor: pointer; }
.scout-card:hover { border-color: var(--color-accent, #b6ff3b); }
.scout-card:focus-visible { outline: 2px solid var(--color-accent, #b6ff3b); outline-offset: 2px; }
.scout-card-main { grid-area: main; display: grid; gap: 4px; min-width: 0; }
.scout-card-main .person { min-width: 0; }
.scout-card-main .person > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.scout-card-facts { display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: var(--text-sm); color: var(--muted, #9bb); }
.scout-card-facts small { opacity: 0.8; }
.scout-card-hint { grid-area: hint; font-size: var(--text-xs); color: var(--muted, #9bb); }
.scout-card > button { grid-area: action; align-self: center; }
.scout-stats-body { display: grid; gap: 14px; min-width: 0; }
.scout-stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.scout-stat { display: grid; justify-items: center; gap: 2px; padding: 8px 4px; border: 1px solid var(--gm-hairline, rgba(255, 255, 255, 0.12)); border-radius: 0.6rem; background: rgba(255, 255, 255, 0.04); }
.scout-stat-label { font-size: var(--text-xs); letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted, #9bb); }
.scout-stat-value { font-size: var(--text-lg); font-variant-numeric: tabular-nums; }
.scout-stats-legend { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 10px; margin: 0; font-size: var(--text-xs); color: var(--muted, #9bb); }
.scout-stats-legend dt { font-weight: 700; text-transform: uppercase; }
.scout-stats-legend dd { margin: 0; }
@media (max-width: 360px) { .scout-stats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Staff tables: same look as the auctions table, but with their own column sizes (no horizontal scroll from 761px up). */
@media (min-width: 761px) {
  .stadium-app .board .main table.staff-table { width: 100%; table-layout: auto; }
  .stadium-app .board .main table.staff-table :is(th, td) { padding-inline: 8px; white-space: nowrap; }
  .stadium-app .board .main table.staff-table :is(th, td).col-fixed-1 { width: 12rem; max-width: 12rem; text-align: left; overflow: hidden; }
  .stadium-app .board .main table.staff-table .cut-name { max-width: 100%; }
  .stadium-app .board .main table.staff-table .person { display: flex; align-items: center; min-width: 0; }
  .stadium-app .board .main table.staff-table .person > span:last-child { overflow: hidden; text-overflow: ellipsis; }
}
@media (min-width: 761px) and (max-width: 1100px) {
  .stadium-app .board .main table.staff-table :is(th, td) { padding-inline: 2px; font-size: var(--text-xs); }
  .stadium-app .board .main table.staff-table .btn { min-width: 44px; }
  .stadium-app .board .main table.staff-table :is(th, td).col-fixed-1 { width: 7.5rem; max-width: 7.5rem; }
  .stadium-app .board .main table.staff-table .cut-name { max-width: 6rem; }
  .stadium-app .board .main table.staff-table th { white-space: normal; line-height: 1.15; }
  .stadium-app .board .main table.staff-table td.num { font-size: var(--text-xs); }
  .stadium-app .board .main table.staff-table .avatar { --avatar-size: 24px !important; }
}
.stadium-app .board .main table.staff-table .staff-hide-tablet { display: none; }
@media (min-width: 1101px) { .stadium-app .board .main table.staff-table .staff-hide-tablet { display: table-cell; } }
@media (min-width: 761px) and (max-width: 1100px) {
  .stadium-app .board .main table.staff-table :is(th, td):nth-child(1) { width: 8rem; min-width: 0; }
  .stadium-app .board .main table.staff-table :is(th, td):nth-child(10) { width: 100px; min-width: 0; }
  .stadium-app .board .main table.staff-table :is(th, td):nth-child(11) { width: 72px; min-width: 0; }
}
@media (max-width: 760px) {
  .scout-cards.market-mobile-cards { padding-bottom: 0; }
  .staff-available { padding-bottom: 84px; }
}
/* Players of the club's own academy (api: ownAcademy on the club's own players and listings): the short "Base" tag. */
.academy-tag { display: inline-block; margin-left: 6px; padding: 1px 7px; border: 1px solid var(--color-accent, #b6e24b); border-radius: 999px; color: var(--color-accent, #b6e24b); background: rgba(182, 226, 75, .1); font-size: var(--text-xs); font-weight: 700; line-height: 1.5; white-space: nowrap; vertical-align: middle; }
/* In the squad table the name column is narrow: the tag sits on its own line under the name, aligned with it (after the 30 px portrait and its gap). */
.squad-desktop-table .name-cell .academy-tag { display: block; width: fit-content; margin: 1px 0 0 38px; padding: 0 6px; font-size: var(--text-xs); line-height: 1.45; }
/* My listings (table): the tag under the player's name, aligned with it (portrait + gap). */
.market-table .col-fixed-1 .academy-tag { display: block; width: fit-content; margin: 1px 0 0 38px; padding: 0 6px; font-size: var(--text-xs); line-height: 1.45; }

/* Friends between managers: the Account card with its per-friend menu, the club-page button, and the requests card on the News page. */
.friend-list, .friend-requests { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.friend-row { position: relative; display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 6px 4px; border-bottom: 1px solid rgba(143, 183, 154, .16); }
.friend-row:last-child { border-bottom: 0; }
.friend-main { display: grid; flex: 1 1 auto; min-width: 0; }   /* the rest of the row, so the name is cut only when the row is full (15/11) */
.friend-trigger { justify-self: start; max-width: 100%; min-height: 32px; padding: 2px 0; margin-left: 0; border: 0; border-radius: 6px; background: transparent; color: var(--color-accent, #b6e24b); font: inherit; font-weight: 700; text-align: left; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.friend-trigger::after { content: ' ▾'; font-size: .8em; }
.friend-trigger:hover { background: rgba(255, 255, 255, .06); }
.friend-trigger:focus-visible, .friend-item:focus-visible { outline: 2px solid var(--color-accent, #b6e24b); outline-offset: 2px; }
.friend-menu { position: absolute; z-index: 30; top: calc(100% - 6px); left: 52px; min-width: 12rem; display: grid; padding: 6px; border: 1px solid var(--surface-border, #2b4455); border-radius: 10px; background: #0f2b34; box-shadow: 0 10px 28px rgba(0, 0, 0, .45); }
.friend-menu[hidden] { display: none; }
.friend-item { min-height: 44px; padding: 8px 12px; border: 0; border-radius: 8px; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.friend-item:hover { background: rgba(255, 255, 255, .08); }
.friend-item.danger { color: var(--color-neg, #ff8e9b); }
.friend-request { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 12px; padding: 6px 4px; border-bottom: 1px solid rgba(143, 183, 154, .16); }
.friend-request:last-child { border-bottom: 0; }
.friend-request-text { flex: 1 1 12rem; min-width: 0; }
.friend-request-text .friend-name { font-weight: 700; }
.friend-request-actions { display: inline-flex; gap: 8px; }
.friend-action { display: inline-flex; }
.friends-card { position: relative; z-index: 5; overflow: visible; max-height: none; }   /* the friend's menu opens over the card's edge, above the card below */

/* Referral campaign block in the Account page (owner, 30/11/2026). */
.referral-card { margin-top: var(--space-4, 16px); max-width: 78rem; }
.referral-card > h2 { margin: 0; }
.referral-card h3 { margin: 0 0 6px; font-size: var(--text-md); color: var(--text); }
.referral-rule { margin: 8px 0 0; font-size: var(--text-base); line-height: 1.5; }
.referral-fraud { margin: 10px 0 0; color: var(--muted); font-size: var(--text-sm); line-height: 1.5; }
.referral-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: var(--space-5, 24px); margin-top: var(--space-4, 16px); }
.referral-link-row { display: flex; gap: var(--space-2, 8px); align-items: center; }
.referral-link {
  flex: 1 1 auto; min-width: 0; height: var(--btn-h, 44px); padding: 0 12px;
  border: 1px solid var(--surface-border-strong); border-radius: var(--surface-glass-radius);
  background: var(--surface-card-raised); color: var(--text); font: inherit; font-size: var(--text-sm);
  font-variant-numeric: tabular-nums; text-overflow: ellipsis;
}
.referral-link:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.referral-link-row .btn { flex: 0 0 auto; white-space: nowrap; }
.referral-note { margin: 10px 0 0; font-size: var(--text-sm); line-height: 1.45; }
.referral-note.good { color: var(--color-pos); }
.referral-note.bad { color: var(--color-neg-text); }
.referral-count { margin: 0; color: var(--color-accent); font-size: var(--text-sm); font-weight: 700; font-variant-numeric: tabular-nums; }
.referral-list { list-style: none; margin: 8px 0 0; padding: 0; }
.referral-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--space-3, 12px); min-height: 44px; border-top: 1px solid var(--surface-border); }
.referral-row:first-child { border-top: 0; }
.referral-club { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--text-base); }
.referral-status { font-size: var(--text-sm); font-weight: 650; white-space: nowrap; }
.referral-status.ok { color: var(--color-pos); }
.referral-status.pending { color: var(--color-warn); }
.referral-status.blocked { color: var(--color-neg-text); }
.referral-empty { margin: 14px 0 4px; color: var(--muted); font-size: var(--text-base); }
.referral-reward-line { margin: 14px 0 0; padding: 10px 14px; border: 1px solid var(--color-accent); border-radius: var(--surface-glass-radius); font-size: var(--text-base); line-height: 1.45; }
.referral-reward-line b { color: var(--color-accent); }
.referral-block-action { margin: 12px 0 0; }
.referral-off-note { margin: 10px 0 0; color: var(--muted); font-size: var(--text-base); line-height: 1.5; }
@media (max-width: 900px) {
  .referral-grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-4, 16px); }
  .referral-card { max-width: 38rem; }
}
@media (max-width: 560px) {
  .referral-link-row { flex-wrap: wrap; }
  .referral-link-row .btn { width: 100%; justify-content: center; }
  .referral-row { gap: var(--space-2, 8px); }
}

/* Another club's page, squad table: on a phone (<= 640 px, the Dashboard's breakpoint) only PLAYER | POS | REC, in a fixed layout with no horizontal scroll (the name is cut with an ellipsis,
   POS holds two badges, REC the five stars); AGE and ASI are hidden. The desktop keeps every column. */
@media (max-width: 640px) {
  table.dense-table.club-squad-table { width: 100%; min-width: 0; table-layout: fixed; }
  table.dense-table.club-squad-table :is(.squad-age) { display: none; }
  table.dense-table.club-squad-table :is(th, td) { padding: 9px 4px; }
  table.dense-table.club-squad-table :is(th, td).squad-player { position: static; width: auto; min-width: 0; text-align: left; overflow: hidden; }
  table.dense-table.club-squad-table :is(th, td).squad-pos { width: 5.1rem; text-align: center; }
  table.dense-table.club-squad-table :is(th, td).squad-rec { width: 4.6rem; text-align: center; white-space: nowrap; }
  table.dense-table.club-squad-table td.squad-player .person { display: flex; align-items: center; width: 100%; max-width: 100%; min-width: 0; }
  table.dense-table.club-squad-table td.squad-player .person > :last-child { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  table.dense-table.club-squad-table td.squad-player .person a { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  table.dense-table.club-squad-table .squad-positions { display: inline-flex; gap: 2px; justify-content: center; }
  table.dense-table.club-squad-table .squad-pos .pos { min-width: 0; padding-inline: 4px; font-size: var(--text-xs); }
  table.dense-table.club-squad-table .stars { font-size: clamp(.62rem, 2.6vw, .8rem); }
}

/* League page: the promotion play-off card (semi-finals on the left, the final on the right; a green bar on the winner, a red one on the loser, the score at the end of the row,
   an arrow on the winner). Two columns on a wide card, one under the other on a phone. */
.playoff-card { margin-bottom: var(--space-4, 16px); }
.playoff-card h3 { margin: 0 0 8px; font-size: var(--text-xs); letter-spacing: .06em; text-transform: uppercase; color: var(--muted, #a9c2b6); }
.po-rule { margin: 2px 0 14px; font-size: var(--text-sm); }
.po-bracket { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 36px; align-items: center; }
.po-col { display: grid; gap: 14px; align-content: center; min-width: 0; }
.po-col > h3 { margin-bottom: -2px; }
.po-tie { display: grid; border: 1px solid var(--surface-border, #2b4455); border-radius: 10px; background: rgba(0, 0, 0, .18); overflow: hidden; }
.po-row { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 10px 6px 12px; border-left: 4px solid transparent; }
.po-row + .po-row { border-top: 1px solid rgba(143, 183, 154, .16); }
.po-row.won { border-left-color: var(--color-pos, #77e2af); background: rgba(119, 226, 175, .07); }
.po-row.lost { border-left-color: var(--color-neg, #ff8e9b); }
.po-row.lost .po-score { color: var(--muted, #a9c2b6); }
.po-row.mine { box-shadow: inset 0 0 0 2px var(--color-accent, #b6e24b); }
.po-row .team-with-crest { flex: 1 1 auto; min-width: 0; }
.po-row .team-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.po-seed { flex: none; font-size: var(--text-xs); color: var(--muted, #a9c2b6); }
.po-badge { flex: none; padding: 1px 8px; border-radius: 999px; font-size: var(--text-xs); font-weight: 800; line-height: 1.6; text-transform: uppercase; letter-spacing: .03em; }
.po-badge.up { background: rgba(119, 226, 175, .16); color: var(--color-pos, #77e2af); border: 1px solid var(--color-pos, #77e2af); }
.po-badge.champion { background: rgba(252, 209, 22, .18); color: #fcd116; border: 1px solid #fcd116; }
.po-score { flex: none; min-width: 2.2rem; text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.po-arrow { color: var(--color-pos, #77e2af); }
.po-pens { font-weight: 600; opacity: .85; }
.po-tbd { font-style: italic; }
.po-when { padding: 5px 12px; border-top: 1px solid rgba(143, 183, 154, .16); font-size: var(--text-xs); color: var(--muted, #a9c2b6); text-align: right; background: rgba(0, 0, 0, .12); }
@media (max-width: 640px) {
  .po-bracket { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .po-row { padding-inline: 8px; gap: 6px; }
  .po-seed { display: none; }   /* the seed is in the row's accessible name; the badge and the score need the room */
}

/* Auctions / my bids / my listings table (10 columns: Player, Pos, Age, Rec, Seller/Type, Price, Bids, Ends, Action, Status). The older nth-child rules in styles.css were
   written for another column order and gave the Bids column 130 px and the Price column 80 px, which left a huge gap after the player name and pushed the Place bid button
   out of the card. Widths by position, in one place; the player column takes whatever is left. The button has a column of its own and the status ("Liderando",
   "Superado") one to its right, so a status never moves the button. */
@media (min-width: 761px) {
  .market-desktop-table table.dense-table.market-table:not(.market-scouting-table) { table-layout: fixed; width: 100%; }
  .market-desktop-table table.dense-table.market-table:not(.market-scouting-table) :is(th, td):nth-child(1) { width: auto; min-width: 180px; }
  .market-desktop-table table.dense-table.market-table:not(.market-scouting-table) :is(th, td):nth-child(2) { width: 100px; min-width: 0; text-align: center; }
  .market-desktop-table table.dense-table.market-table:not(.market-scouting-table) :is(th, td):nth-child(3) { width: 72px; min-width: 0; text-align: center; }
  .market-desktop-table table.dense-table.market-table:not(.market-scouting-table) :is(th, td):nth-child(4) { width: 72px; min-width: 0; text-align: center; }
  .market-desktop-table table.dense-table.market-table:not(.market-scouting-table) :is(th, td):nth-child(5) { width: 120px; min-width: 0; max-width: none; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .market-desktop-table table.dense-table.market-table:not(.market-scouting-table) :is(th, td):nth-child(6) { text-align: right; width: 124px; min-width: 0; max-width: none; overflow: visible; white-space: nowrap; }
  .market-desktop-table table.dense-table.market-table:not(.market-scouting-table) :is(th, td):nth-child(7) { width: 56px; min-width: 0; text-align: center; overflow: visible; }
  .market-desktop-table table.dense-table.market-table:not(.market-scouting-table) :is(th, td):nth-child(8) { width: 80px; min-width: 0; text-align: right; white-space: nowrap; }
  .market-desktop-table table.dense-table.market-table:not(.market-scouting-table) :is(th, td):nth-child(9) { width: 108px; min-width: 0; text-align: center; white-space: nowrap; overflow: visible; }
  .market-desktop-table table.dense-table.market-table:not(.market-scouting-table) :is(th, td):nth-child(10) { width: 100px; min-width: 0; text-align: center; white-space: nowrap; overflow: visible; }
}

/* A knockout decided on penalties: the shoot-out sits on its own line under the score (it used to run into the away team's name on a phone). */
.score-cell .score-pens { display: block; margin-top: 1px; font-size: var(--text-xs); font-weight: 600; line-height: 1.2; color: var(--muted); white-space: nowrap; }

/* Phones: sponsor tables fit the card (the amounts were cut off and the offer columns ran into each other). */
@media (max-width: 520px) {
  .stadium-app .board .main .sponsor-awards table.awards-stage-table :is(th, td):nth-child(1) { width: 40%; }
  .stadium-app .board .main .sponsor-awards table.awards-stage-table :is(th, td) { padding-inline: 8px; font-size: var(--text-xs); }
  .stadium-app .board .main .offers table.dense-table { table-layout: fixed; }
  .stadium-app .board .main .offers table.dense-table :is(th, td) { padding: 8px 2px; font-size: var(--text-xs); white-space: nowrap; overflow: hidden; text-overflow: clip; }
  .stadium-app .board .main .offers table.dense-table :is(th, td):nth-child(1) { width: 18%; }
  .stadium-app .board .main .offers table.dense-table :is(th, td):nth-child(2), .stadium-app .board .main .offers table.dense-table :is(th, td):nth-child(3) { width: 33%; }
  .stadium-app .board .main .offers table.dense-table :is(th, td):nth-child(4) { width: 16%; }
  }
@media (max-width: 520px) {
  .stadium-app .board .main .offers table.dense-table th { font-size: var(--text-xs); letter-spacing: 0; }
}

/* Scout players on a phone: the price and the "Make an offer" button were cut off at the card edge (the action column was too narrow for them). */
@media (max-width: 760px) {
  .market-scouting-table col.c-action { width: 6.9rem; }
  .market-scouting-table col.c-short { width: 2.4rem; }
  .market-scouting-table col.c-rec { width: 2.9rem; }
    .stadium-app .board .main table.market-scouting-table :is(th, td).market-col-action { overflow: visible; }
  .stadium-app .board .main table.market-scouting-table .market-offer-price { font-size: var(--text-xs); }
}
@media (max-width: 760px) {
  .stadium-app .board .main table.dense-table.market-table.market-scouting-table :is(th, td).col-fixed-1 { min-width: 0; width: auto; max-width: none; }
  .stadium-app .board .main table.market-scouting-table td.col-fixed-1 .person > span:last-child { white-space: normal; overflow-wrap: anywhere; line-height: 1.2; font-size: var(--text-xs); }
}
@media (max-width: 420px) {
  .stadium-app .board .main table.market-scouting-table td.col-fixed-1 .avatar { display: none; }
}

/* Match page on a phone: the score goes on top and the two teams sit side by side under it, so "Mentality · Style" has room (it was breaking letter by letter in three narrow columns). */
@media (max-width: 560px) {
  .stadium-app .board .main .scoreboard { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .stadium-app .board .main .scoreboard > :nth-child(2) { grid-column: 1 / -1; grid-row: 1; padding-bottom: 6px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
  .stadium-app .board .main .scoreboard > :nth-child(1) { grid-column: 1; grid-row: 2; }
  .stadium-app .board .main .scoreboard > :nth-child(3) { grid-column: 2; grid-row: 2; }
  .stadium-app .board .main .scoreboard .tactics-value, .scoreboard .tactics-label { overflow-wrap: normal; word-break: normal; }
  .stadium-app .board .main .scoreboard .crest-lg { --s: 46px; }
}

/* Market tabs on small phones: the labels wrap onto two lines instead of ending in "…". */
@media (max-width: 480px) {
  .gm-tab-rail .tabs a.tab { white-space: normal; text-overflow: clip; line-height: 1.15; font-size: var(--text-xs); display: flex; align-items: center; justify-content: center; padding-block: 0.3rem; }
}

/* Club page on a phone: crest and kit on their own row, the name and details use the full width under them (the name was breaking in the middle of a word). */
@media (max-width: 480px) {
  .stadium-app .board .main .club-head { flex-wrap: wrap; row-gap: 10px; }
  .stadium-app .board .main .club-head > div { flex: 1 1 100%; }
  .stadium-app .board .main .club-head :is(h1, h2, p) { overflow-wrap: break-word; }
  /* The sponsor on its own row on a phone: label, small logo and name in a line, under a thin rule. */
  .stadium-app .board .main .club-head > .club-sponsor { flex-direction: row; justify-content: flex-start; gap: 10px; max-width: none; margin: 0; padding: 10px 0 0; border-left: 0; border-top: 1px solid var(--line, rgba(255, 255, 255, 0.12)); }
  .stadium-app .board .main .club-head > .club-sponsor .sponsor-logo { width: 40px; height: 40px; }
  /* Everything on the card's centre line; the crest and the kit the same size, side by side. */
  .stadium-app .board .main .club-head { justify-content: center; text-align: center; }
  .stadium-app .board .main .club-head .club-name-row { justify-content: center; }
  .stadium-app .board .main .club-head > .club-sponsor { justify-content: center; }
  .stadium-app .board .main .club-head .crest-xl { --s: 96px; --crest-k: 1; }   /* the crest box is --s × --crest-k (0.8 elsewhere): exactly the kit's 96px here */
  .stadium-app .board .main .club-head .kit-picture { width: 96px; height: 96px; }
  /* The actions in two equal columns, every button the same width and height. */
  .stadium-app .board .main .club-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; width: 100%; }
  .stadium-app .board .main .club-actions > *, .stadium-app .board .main .club-actions .friend-action > .btn { width: 100%; margin: 0; }
}
@media (max-width: 380px) {
  .stadium-app .board .main .club-head .crest-xl { --s: 80px; }
  .stadium-app .board .main .club-head .kit-picture { width: 80px; height: 80px; }
}
/* Club page actions (message, friend, challenge, report): one height, centred labels; an empty friend slot takes no place. */
.club-actions .friend-action:empty { display: none; }
/* Sponsorship offers header on 360px ("DURATION" was cut). */
@media (max-width: 400px) {
  .stadium-app .board .main .offers table.dense-table th { font-size: var(--text-xs); }
}

/* Scout players on a tablet (761-1000px): narrower columns, so the table fits its card and the price and the offer button are visible without side scrolling. */
@media (min-width: 761px) and (max-width: 1280px) {
  .market-scouting-table col.c-short { width: 3.6rem; }
  .market-scouting-table col.c-club { width: 6.5rem; }
  .market-scouting-table col.c-price { width: 7.2rem; }
  .market-scouting-table col.c-action { width: 7.6rem; }
  .stadium-app .board .main table.dense-table.market-table.market-scouting-table :is(th, td).col-fixed-1 { min-width: 0; }
}

/* Stadium on a phone: the list of "Name · Level" buttons under the picture is gone (the pins on the picture carry the level and open the upgrade). */
@media (max-width: 760px) {
  .facility-extras .hotspot.compact.mobile-only,
  .facility-extras.on-picture { display: none; }
}
@media (max-width: 760px) {
  /* The picture of the stadium comes right under the title, full width of the card; the numbers follow. */
  .stadium-app .main[data-view="estadio"] { display: flex; flex-direction: column; }
  .stadium-app .main[data-view="estadio"] > .stadium-hero-card { order: -1; margin-bottom: 12px; padding-inline: 0; }
  .stadium-app .main[data-view="estadio"] > .stadium-hero-card > :not(.stadium-canvas):not(.facility-extras) { padding-inline: 14px; }
  .stadium-app .main[data-view="estadio"] > .topbar { order: -2; }
}
@media (max-width: 760px) {
  .stadium-app .main[data-view="estadio"] .stadium-canvas { margin-inline: -16px; width: calc(100% + 32px); max-width: none; min-width: 0; }
}

/* Market (auctions, scouting, my dealings): every column centred but the player's. The column rules above set left/right per
   position at several specificities, so this one wins with !important. */
:is(table.market-table, table.market-deals-table) :is(th, td):not(.col-fixed-1, .market-player-cell) { text-align: center !important; }
:is(table.market-table, table.market-deals-table) :is(th, td):not(.col-fixed-1, .market-player-cell) :is(.bid-action, .market-offer-cell, .market-positions) { justify-content: center; }

/* Partida Rápida (Gabriel): o ranking tem 8 colunas, "Pontos" cortava no desktop (coluna fixa de 44px)
   e no celular as colunas ficavam esmagadas em 7px. Rótulo curto + 3 colunas no celular. */
@media (max-width: 760px) {
  .stadium-app .board .main .qm-ranking-table { table-layout: fixed; width: 100%; }
  .stadium-app .board .main .qm-ranking-table :is(th, td) { padding-inline: 4px; white-space: normal; }
  .stadium-app .board .main .qm-ranking-table :is(th, td):nth-child(3),
  .stadium-app .board .main .qm-ranking-table :is(th, td):nth-child(5),
  .stadium-app .board .main .qm-ranking-table :is(th, td):nth-child(6),
  .stadium-app .board .main .qm-ranking-table :is(th, td):nth-child(7),
  .stadium-app .board .main .qm-ranking-table :is(th, td):nth-child(8) { display: none; }
  .stadium-app .board .main .qm-ranking-table :is(th, td):nth-child(1) { width: 26px; }
  .stadium-app .board .main .qm-ranking-table :is(th, td):nth-child(4) { width: 60px; text-align: right; }
  .stadium-app .board .main .qm-ranking-table :is(th, td).team-name { overflow-wrap: anywhere; }
}

/* Quick-match challenges and a player's transfers: plain lists, one item per line, that wrap on a phone
   (they were dense tables whose columns overlapped below 760 px). */
.challenge-list, .transfer-list { list-style: none; margin: 0; padding: 0; }
.challenge-item, .transfer-item { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 10px 0; border-bottom: 1px solid var(--surface-border, rgba(255, 255, 255, 0.08)); }
.challenge-item:last-child, .transfer-item:last-child { border-bottom: 0; }
.challenge-who { display: flex; flex: 1 1 12rem; flex-direction: column; gap: 2px; min-width: 0; }
.challenge-club { overflow: hidden; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.challenge-meta { font-size: var(--text-sm); }
.challenge-actions { flex: 0 0 auto; flex-wrap: nowrap; align-items: center; margin-left: auto; }
.transfer-season { flex: none; min-width: 2rem; }
.transfer-clubs { flex: 1 1 10rem; min-width: 0; overflow-wrap: anywhere; }
.transfer-price { flex: none; margin-left: auto; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Friendly leagues, wide screens: the clubs column was the 44 px of a number column, too narrow for its head ("CLUBS" broke in two,
   owner 15/11) while the empty action column took the spare room. It gets the width its head needs, centred like every value. */
table.dense-table:is(.fl-leagues-table, .fl-mine-table) :is(th, td):nth-child(3) { width: 6.5rem; min-width: 6.5rem; white-space: nowrap; text-align: center; }

/* Friendly leagues (owner, 18/11/2026): in the "Ligas abertas para entrar" table the action column collapsed to ~35 px and the
   buttons broke letter by letter ("Aceitar convite" read downwards), at 1280 and 1440 too, not only on a phone (the owner's print):
   a fixed-layout table cannot hold two buttons in its last column inside a half-page card. So each league is one row on every width
   (the layout the phone already had), with the action buttons on their own line, and no text in a button ever breaks per character. */
table.dense-table.fl-leagues-table td .btn { white-space: nowrap; overflow-wrap: normal; }
table.dense-table.fl-leagues-table .fl-row-actions { flex-wrap: wrap; gap: 6px 8px; align-items: center; }

/* Friendly leagues (Minhas ligas, open and running ones): each league is a small card: name and club count on the first line, the
   manager, then rounds/entry and the status, the join button across the bottom. */
.stadium-app .board .main .dense-table-wrap:has(> table.fl-leagues-table),
.dense-table-wrap:has(> table.fl-leagues-table) { overflow-x: visible; }
.stadium-app .board .main table.dense-table.fl-leagues-table,
table.dense-table.fl-leagues-table { display: block; width: 100%; min-width: 0; table-layout: auto; }
table.dense-table.fl-leagues-table thead { display: none; }
table.dense-table.fl-leagues-table tbody { display: block; }
.stadium-app .board .main table.dense-table.fl-leagues-table tbody tr,
table.dense-table.fl-leagues-table tbody tr { display: grid; height: auto; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; align-items: baseline; padding: 10px 12px; }
.stadium-app .board .main table.dense-table.fl-leagues-table tbody tr td,
table.dense-table.fl-leagues-table tbody tr td { display: block; position: static; width: auto; min-width: 0; max-width: none; padding: 0; border: 0; background: none; text-align: left; white-space: normal; overflow: visible; overflow-wrap: anywhere; }
table.dense-table.fl-leagues-table td:nth-child(1) { grid-column: 1; grid-row: 1; font-weight: 700; }
table.dense-table.fl-leagues-table td:nth-child(3) { grid-column: 2; grid-row: 1; text-align: right; }
table.dense-table.fl-leagues-table td:nth-child(2) { grid-column: 1 / -1; color: var(--muted); font-size: var(--text-sm); }
table.dense-table.fl-leagues-table td:nth-child(4) { grid-column: 1; color: var(--muted); font-size: var(--text-sm); }
table.dense-table.fl-leagues-table td:nth-child(5) { grid-column: 2; text-align: right; font-size: var(--text-sm); }
table.dense-table.fl-leagues-table td:nth-child(6) { grid-column: 1 / -1; margin-top: 6px; }
table.dense-table.fl-leagues-table td:nth-child(6):not(:has(*)) { display: none; }
table.dense-table.fl-leagues-table tbody tr:nth-child(odd) { background: var(--row, rgba(255, 255, 255, 0.03)); }   /* the stripe on the card, not on each cell */
/* Friendly leagues on a phone (owner's request, 15/11): "Minhas ligas" is a table with its header and three columns, the league's name,
   the clubs (4/4) and the status, both centred under their heads; the manager, the rounds and the action column stay on desktop and on
   the league's own page. The tickets in the heading go under the title and wrap, so both counts show whole. */
@media (max-width: 760px) {
  .stadium-app .board .main table.dense-table.fl-mine-table,
  table.dense-table.fl-mine-table { table-layout: fixed; width: 100%; min-width: 0; }
  table.dense-table.fl-mine-table :is(th, td):is(:nth-child(2), :nth-child(4), :nth-child(6)) { display: none; }
  table.dense-table.fl-mine-table :is(th, td):nth-child(1) { width: auto; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  table.dense-table.fl-mine-table :is(th, td):nth-child(3) { width: 4.5rem; min-width: 0; text-align: center; }
  table.dense-table.fl-mine-table :is(th, td):nth-child(5) { width: 6.75rem; text-align: center; white-space: nowrap; }
  .stadium-app .board .main .page-heading.fl-head { flex-wrap: wrap !important; row-gap: 8px; }
  .stadium-app .board .main .page-heading.fl-head > .page-heading-actions { flex: 1 1 100% !important; margin-left: 0 !important; }
  .page-heading.fl-head .page-heading-actions > .chips { flex-wrap: wrap; gap: 6px; }
  .page-heading.fl-head .page-heading-actions .badge { white-space: nowrap; }
}

/* Copa amistosa - pagina da liga (pedido do dono, 18/11/2026): o titulo com as tres linhas (criada por, formato, clubes), o
   contador de Tickets de Entrar em Liga no canto direito de cima, o campo de busca do clube com o Convidar a direita e, embaixo a
   direita, "Comecar a Liga" e "Apagar Liga" (vermelho). A lista de clubes ganha um X vermelho para tirar quem ja aceitou. */
.topbar.fl-league-head { align-items: flex-start; gap: var(--space-3, 12px); flex-wrap: nowrap; }
.fl-league-head > div:first-child { min-width: 0; flex: 1 1 auto; }
.fl-league-meta { margin: 4px 0 0; color: var(--muted); font-size: var(--text-sm); line-height: 1.5; }
.fl-league-meta p { margin: 0; }
.fl-join-tickets { flex: none; }
.fl-join-tickets .badge { white-space: nowrap; }
.fl-league-description { margin-top: var(--space-3, 12px); }
/* O campo estica e o botao fica logo a direita dele, na mesma linha, alinhados a esquerda com o texto do cartao; quando nao cabe
   (celular), o botao desce para a linha de baixo. */
.fl-invite-row { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: flex-start; gap: var(--space-2, 8px); margin-top: var(--space-3, 12px); }
.fl-invite-row .qm-typeahead-wrap { flex: 1 1 18rem; max-width: min(100%, 30rem); justify-content: flex-start; }
.fl-invite-note { margin-top: 6px; }
.fl-league-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--space-2, 8px); margin-top: var(--space-4, 16px); }
.fl-club-list { list-style: none; margin: 0; padding: 0; }
.fl-club-line { display: flex; align-items: center; gap: 8px; padding: 4px 0; border-bottom: 1px solid var(--surface-border, rgba(255, 255, 255, 0.08)); }
.fl-club-line:last-child { border-bottom: 0; }
.fl-club-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fl-club-division { flex: none; font-size: var(--text-sm); }
/* O X de cancelar convite / remover clube: controle de icone, sem caixa de botao, vermelho de perigo (--bad). */
.fl-x {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; min-width: 32px; margin-left: auto; padding: 0;
  border: 0; border-radius: var(--radius-full, 9999px); background: transparent;
  color: var(--bad); font-family: var(--btn-font, system-ui); font-size: 20px; font-weight: 700; line-height: 1;
  cursor: pointer;
}
.fl-x:is(:hover, :focus-visible) { background: color-mix(in srgb, var(--bad) 16%, transparent); color: var(--bad); }
.fl-x:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
@media (max-width: 760px) {
  /* Celular (pedido do dono, 18/11/2026): Convidar centralizado; Comecar a liga no canto esquerdo de baixo e Apagar Liga no direito.
     Os convites sao uma lista como a de Clubes em qualquer tela (19/11/2026). */
  .fl-invite-row { justify-content: center; }
  .fl-owner-actions { justify-content: space-between; }
  .fl-x { width: 44px; height: 44px; min-width: 44px; }
  /* O contador no canto fica numa linha so: o titulo cede e quebra, a etiqueta nao. */
  .fl-join-tickets .badge { font-size: var(--text-xs); padding-inline: 8px; }
}
/* Squad panel: the position ticket's Add button, right after positions · REC · age. */
.squad-add-position { margin-left: 8px; min-height: 28px; padding: 2px 10px; vertical-align: middle; }
.squad-player-actions { display: inline-flex; flex-wrap: nowrap; gap: 8px; margin-left: 8px; vertical-align: middle; }
.squad-player-actions .squad-add-position { margin-left: 0; }
.squad-energy-drink { display: inline-flex; align-items: center; gap: 4px; }

/* Auctions on a phone: the sort combobox to the right of the card title (desktop sorts by the table headers, so it is hidden there). */
.market-title-row { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; min-width: 0; }
.market-phone-sort { display: none; }
@media (max-width: 760px) {
  .market-phone-sort { display: block; min-height: 40px; width: auto; max-width: 100%; margin-top: 0.25rem; }
}

/* Celular (pedido do dono, 16/11/2026): as tabelas de Minhas negociacoes viram linhas empilhadas, sem rolagem lateral:
   jogador e valor em cima, quem/de onde embaixo, os botoes da oferta numa linha propria. */
@media (max-width: 760px) {
  .gm-market-results table.market-deals-table { display: block; width: 100%; min-width: 0; table-layout: auto; }
  .gm-market-results table.market-deals-table tbody { display: flex; flex-direction: column; gap: 8px; }
  .gm-market-results table.market-deals-table tr {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "player price" "who who" "action action";
    column-gap: 10px; row-gap: 4px; padding: 10px 12px; border: 1px solid var(--line, rgba(255,255,255,.08)); border-radius: 10px;
    background: rgba(0, 0, 0, .18);
  }
  .gm-market-results table.market-deals-table td { display: block; padding: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; min-width: 0; width: auto !important;
    max-width: none !important; white-space: normal !important; overflow-wrap: anywhere; text-align: left !important; }
  .gm-market-results table.market-deals-table td.market-player-cell { grid-area: player; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap !important; }
  .gm-market-results table.market-deals-table td.deal-price { grid-area: price; text-align: right !important; white-space: nowrap !important; }
  .gm-market-results table.market-deals-table td.deal-who { grid-area: who; color: var(--muted); font-size: var(--text-sm); }
  .gm-market-results table.market-deals-table tr:has(> td.deal-season) { grid-template-areas: "player price" "who season"; }   /* transferencias: a temporada ao lado de quem vendeu e comprou */
  .gm-market-results table.market-deals-table td.deal-season { grid-area: season; text-align: right !important; color: var(--muted); font-size: var(--text-sm); }
  .gm-market-results table.market-deals-table td.deal-action { grid-area: action; display: flex; gap: 8px; flex-wrap: wrap; }
  .gm-market-results table.market-deals-table td.deal-action:empty { display: none; }
  .gm-market-results .table-wrap:has(> table.market-deals-table) { overflow: visible; border: 0; background: none; padding: 0; }
  .market-scout-cards { padding-bottom: 0; }
}

/* Patrocinio sem contrato ativo (pedido do dono, 17/11/2026): o Novo contrato fica a direita do Contrato atual, os dois do
   mesmo tamanho; os premios de temporada descem para baixo. No celular, um embaixo do outro (styles-lote1). */
.sponsor-top.sponsor-top-signing { position: relative; z-index: 6; }   /* the brand list opens over the awards card below */
.sponsor-top.sponsor-top-signing > .card { grid-column: auto; }
.sponsor-top.sponsor-top-signing .sponsor-strip { max-width: none; }
.sponsor-new .sponsor-new-brand { position: relative; margin-top: 4px; }

/* Novo contrato sem tabela (17/11/2026): "Valor: $GMS ..." a esquerda e o botao Assinar a direita, numa linha. */
.sponsor-new .sponsor-offer { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.sponsor-new .sponsor-offer-value { font-size: var(--text-md); color: #afc0cb; }
.sponsor-new .sponsor-offer-value b { color: #d4af37; font-weight: 800; font-variant-numeric: tabular-nums; }
.sponsor-new .sponsor-offer .btn.primary { min-width: 9rem; }

/* Paginas em par (dono, 19/11/2026): Financas | Patrocinio, Chat | Mensagens, Copa Internacional | Selecoes Regionais. Os botoes
   ficam no alto, a esquerda, como os do Mercado; no celular, duas colunas (a regra do Mercado divide em tres). */
.page-pair-rail { margin-bottom: var(--space-4, 16px); }
@media (max-width: 560px) {
  .stadium-app .gm-tab-rail.page-pair-rail .tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Moderacao > Suspeitas (19/11/2026): e-mails longos quebram dentro da celula em vez de passar por cima da vizinha. */
table.dense-table.suspects-table :is(th, td) { white-space: normal; overflow-wrap: anywhere; vertical-align: middle; }
table.dense-table.suspects-table .suspect-club * { white-space: normal; }
table.dense-table.suspects-table :is(th, td):first-child { width: 4.5rem; }
table.dense-table.suspects-table .badge { display: inline-block; max-width: 100%; white-space: normal; text-align: center; }
/* Moderacao > Chat (dono, 19/11/2026): as salas numa grade de botoes do mesmo tamanho; amarelo so nas que tiveram mensagem nas
   ultimas 24 horas (as outras .ghost); a sala aberta ganha um contorno. */
.mod-chat-rooms { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); grid-auto-rows: 1fr; gap: 8px; }
.mod-chat-rooms .btn { width: 100%; min-width: 0; min-height: 44px; margin: 0; justify-content: center; text-align: center; white-space: normal; }
.mod-chat-rooms .btn[aria-pressed="true"] { outline: 2px solid var(--text, #fff); outline-offset: 2px; }
/* Salas sem mensagem nas ultimas 24 h: escuras como as abas (o .ghost do sistema de botoes e dourado tambem, por isso as variaveis aqui). */
.mod-chat-rooms .btn.ghost { --btn-bg: #1c3040; --btn-bg-hover: #24394b; --btn-bg-active: #18293a; --btn-fg: var(--muted, #b8c4cc); --btn-border-color: #375164; }
@media (max-width: 560px) { .mod-chat-rooms { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Moderacao > Clubes (dono, 19/11/2026): ficha do clube, $GMS/GP, itens; a busca por nome e a do Desafio (manager-typeahead). */
.admin-tools { display: grid; gap: var(--space-4, 16px); }
.admin-picker { display: grid; gap: 8px; margin-bottom: 12px; }
.admin-all, .admin-notify { display: flex; align-items: center; justify-content: flex-start; gap: 8px; min-height: 44px; width: auto; text-align: left; }
.admin-all input[type="checkbox"], .admin-notify input[type="checkbox"] { width: 20px; height: 20px; min-width: 20px; min-height: 0; flex: none; margin: 0; padding: 0; }
.admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.admin-field { display: grid; gap: 4px; margin-bottom: 12px; min-width: 0; }
.admin-field :is(input, select) { width: 100%; box-sizing: border-box; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.admin-sheet { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px 16px; margin-block: 8px; }
.admin-sheet-row { display: flex; justify-content: space-between; gap: 8px; border-bottom: 1px solid var(--line, rgba(255,255,255,.08)); padding-block: 6px; min-width: 0; }
.admin-sheet-row > span { flex: 0 0 auto; max-width: 50%; }
.admin-sheet-row b { min-width: 0; text-align: right; overflow-wrap: anywhere; }
.admin-list { margin: 4px 0 8px; padding-left: 18px; }
@media (max-width: 560px) { .admin-grid { grid-template-columns: minmax(0, 1fr); } }
/* Moderacao > Jogo (dono, 19/11/2026): proximas partidas, anular partida rapida, trofeu, lesoes e suspensoes. Linhas com o texto a
   esquerda e os botoes a direita; no celular os botoes descem para baixo do texto. */
.admin-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.admin-card-head h2 { margin: 0; }
.admin-match { overflow-wrap: anywhere; padding-block: 2px; }
.admin-rows { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 0; }
.admin-row { display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; padding-block: 8px; border-bottom: 1px solid var(--line, rgba(255,255,255,.08)); min-width: 0; }
.admin-row-text { display: grid; gap: 2px; min-width: 0; overflow-wrap: anywhere; text-align: left; }
.admin-row-actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.admin-row .btn { min-height: 44px; }
@media (max-width: 560px) {
  .admin-row { flex-direction: column; align-items: stretch; }
  .admin-row-actions { justify-content: flex-start; }
}

/* Moderação > Mercado (admin-market.mjs): one row per auction, offer or transfer; the text wraps, the buttons go under it on a phone. */
.admin-market-list { list-style: none; margin: 4px 0 12px; padding: 0; }
.admin-market-item { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; padding-block: 8px; border-bottom: 1px solid var(--line, rgba(255,255,255,.08)); min-width: 0; }
.admin-market-item .admin-actions { margin-top: 0; }
.admin-market-text { display: grid; gap: 2px; min-width: 0; flex: 1 1 240px; overflow-wrap: anywhere; }
.admin-market-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding-block: 4px; overflow-wrap: anywhere; }
.admin-market-line .chip { font-size: var(--text-xs, 12px); padding: 2px 8px; }
/* Moderação > Contas, the administrator's account cards (views/admin-accounts.mjs) and the Suspeitas tab's "Suspender e liberar". */
.admin-accounts { margin-top: var(--space-4, 16px); }
.admin-accounts > h2 { margin: 0; }
.admin-warning { color: var(--warn, #ffca70); overflow-wrap: anywhere; }
.admin-accounts .card > p[role="status"]:empty { display: none; }
table.dense-table.suspects-table .suspect-ban { margin-top: 6px; max-width: 100%; }
/* The administrator's banners at the top of the game (notice-bar.mjs) and Moderação > Avisos (admin-notices.mjs), 19/11/2026. */
.notice-bar { display: grid; gap: var(--space-2, 8px); margin: 0 0 var(--space-4, 16px); position: relative; z-index: 5; }   /* above the page art layer */
.notice-item { display: flex; align-items: center; gap: var(--space-3, 12px); min-width: 0; padding: var(--space-2, 8px) var(--space-2, 8px) var(--space-2, 8px) var(--space-4, 16px);
  background: var(--surface-card, #102b35); border: 1px solid var(--color-accent, #d4af37); border-left-width: 4px; border-radius: 12px; }
.notice-icon { display: inline-flex; flex: none; color: var(--color-accent, #d4af37); }
.notice-text { flex: 1; min-width: 0; margin: 0; font-weight: 600; color: var(--text, #eff7ed); text-align: left; overflow-wrap: anywhere; }
.notice-close { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; min-height: 44px; padding: 0;
  font-size: var(--text-xl, 1.4rem); line-height: 1; color: var(--muted, #afc0cb); background: transparent; border: 0; border-radius: 10px; cursor: pointer; }
.notice-close:is(:hover, :focus-visible) { color: var(--text, #eff7ed); background: var(--surface-card-raised, #15343e); }
.notice-preview { margin: var(--space-2, 8px) 0 0; padding: var(--space-3, 12px) var(--space-4, 16px); border: 1px solid var(--color-accent, #d4af37); border-left-width: 4px; border-radius: 12px; background: var(--surface-card, #102b35); }
.admin-textbox { display: grid; gap: 4px; }
.admin-count { justify-self: end; font-size: var(--text-xs, 0.75rem); }
.admin-notices { display: grid; gap: var(--space-2, 8px); margin: var(--space-2, 8px) 0 0; padding: 0; list-style: none; }
.admin-notice { padding: var(--space-3, 12px); border: 1px solid var(--surface-glass-border, rgba(49, 86, 92, 0.55)); border-radius: 12px; min-width: 0; }
.admin-notice-text { margin: 0 0 4px; font-weight: 600; overflow-wrap: anywhere; }
.admin-notice-meta { margin: 0; font-size: var(--text-sm, 0.875rem); overflow-wrap: anywhere; }
.admin-quote { margin: var(--space-2, 8px) 0 0; padding: var(--space-2, 8px) var(--space-3, 12px); border-left: 3px solid var(--color-accent, #d4af37); white-space: pre-wrap; overflow-wrap: anywhere; }
/* A news item from the administration (a message to the club, a news item for everyone): marked, with the gold edge. */
.news-item.news-admin { box-shadow: inset 3px 0 0 var(--color-accent, #d4af37); }
/* The icon keeps 12 px from the gold edge (the Panel's rows have no side padding, 20/11). */
.news-item.news-admin, .stadium-app .dashboard .news-item.news-admin { padding-left: 12px; }
.news-admin-badge { display: inline-block; padding: 0 6px; border-radius: 6px; font-size: var(--text-xs, 0.75rem); font-weight: 700; vertical-align: 1px;
  color: var(--color-accent-ink, #1c1605); background: var(--color-accent, #d4af37);
  text-shadow: none; }   /* the Panel's dark text shadow blurred the dark letters on gold (20/11) */
/* Moderação > Operações: health, switches and export cards (web/src/views/admin-ops.mjs) above the older operations grid. */
.ops-more { margin-top: var(--space-4, 16px); }
.ops-switch { border-top: 1px solid var(--line, rgba(255,255,255,.08)); padding-block: 12px; min-width: 0; }
.ops-switch:first-of-type { border-top: 0; }
.ops-switch-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.ops-switch p { margin: 4px 0 8px; overflow-wrap: anywhere; }
.admin-list li { overflow-wrap: anywhere; }
/* Operacoes > Renomear clube (dono, 19/11/2026): a busca por nome do time, o novo nome e o botao numa linha; no celular, um embaixo do outro. */
.ops-rename { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 8px; align-items: start; }
.ops-rename .admin-picker { margin-bottom: 0; }
@media (max-width: 560px) { .ops-rename { grid-template-columns: minmax(0, 1fr); } }
/* Operacoes > Saude do servidor (dono, 19/11/2026: "tudo em linhas diferentes e texto quebrado"): cada item e um bloco, o rotulo pequeno
   em cima e o valor embaixo, alinhados a esquerda, em colunas que se ajustam a largura. */
.admin-sheet.admin-stats { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.admin-stats .admin-sheet-row { flex-direction: column; justify-content: flex-start; gap: 4px; border: 1px solid var(--line, rgba(255,255,255,.1)); border-radius: 10px; padding: 10px 12px; }
.admin-stats .admin-sheet-row > span { max-width: none; font-size: var(--text-xs, 12px); text-transform: uppercase; letter-spacing: .04em; }
.admin-stats .admin-sheet-row b { text-align: left; font-size: var(--text-md, 15px); overflow-wrap: break-word; word-break: normal; }
/* Moderacao > Contas (dono, 19/11/2026): Suspender, Tornar moderador e Silenciar na mesma linha. */
table.dense-table.mod-accounts-table td.mod-account-actions { display: table-cell; white-space: nowrap; flex-wrap: nowrap; }
table.dense-table.mod-accounts-table td.mod-account-actions > * { display: inline-flex; vertical-align: middle; margin: 2px 4px 2px 0; }
/* Perfil do clube (dono, 19/11/2026): o nome do tecnico abaixo do nome do time. */
.club-manager { margin: 2px 0 6px; font-weight: 600; color: var(--muted, #b8c4cc); }
/* A coluna das acoes fica com a largura dos tres botoes (dono, 19/11/2026: o Silenciar ficava escondido e a tabela rolava para o lado);
   as outras dividem o resto. No celular os botoes quebram linha, sem rolagem lateral. */
table.dense-table.mod-accounts-table { table-layout: auto; width: 100%; }
table.dense-table.mod-accounts-table :is(th, td):last-child { width: 1%; min-width: 7rem; white-space: nowrap; }   /* "Ações" whole even on a row without a menu (the administrator) */
table.dense-table.mod-accounts-table td:not(:last-child) { overflow-wrap: anywhere; }
@media (max-width: 760px) {
  /* Celular: cada conta vira um cartao (conta, clube, situacao e os botoes um embaixo do outro), sem rolagem lateral. */
  table.dense-table.mod-accounts-table, table.dense-table.mod-accounts-table :is(tbody, tr, td) { display: block; width: auto; }
  table.dense-table.mod-accounts-table thead { display: none; }
  table.dense-table.mod-accounts-table tr { height: auto; min-height: 0; padding: 10px 12px; border-bottom: 1px solid var(--line, rgba(255,255,255,.08)); }
  table.dense-table.mod-accounts-table td { position: static; height: auto; min-height: 0; max-width: none; padding: 2px 0; text-align: left; border: 0; background: none; }
  table.dense-table.mod-accounts-table td:empty { display: none; }
  table.dense-table.mod-accounts-table td.mod-account-actions { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px; white-space: nowrap; padding-top: 8px; }
  table.dense-table.mod-accounts-table td.mod-account-actions > * { width: auto; flex: 0 0 auto; }
  table.dense-table.mod-accounts-table :is(th, td):last-child { width: auto; }
  table.dense-table.mod-accounts-table td.mod-account-actions > * { margin: 0; }
}
/* Moderacao > Jogo (dono, 19/11/2026): as partidas da proxima etapa numa tabela, escolhidas por campeonato e grupo. Times a esquerda,
   o "x" no centro. */
table.dense-table.admin-match-table { table-layout: auto; width: 100%; }
table.dense-table.admin-match-table :is(th, td).team-name { text-align: left; overflow-wrap: anywhere; }
table.dense-table.admin-match-table :is(th, td):nth-child(2) { width: 2.5rem; text-align: center; }
/* Moderacao > Contas (dono, 19/11/2026): "Ultima vez online" com a etiqueta verde Online, a caixa "So quem esta online" no canto
   direito de cima e o cabecalho que ordena (clique: crescente; de novo: decrescente). */
.mod-accounts-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.mod-accounts-top > .chips { flex: 1 1 320px; min-width: 0; }
.mod-online-only { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-left: auto; white-space: nowrap; }
.mod-online-only input[type="checkbox"] { width: 20px; height: 20px; min-width: 20px; min-height: 0; margin: 0; padding: 0; flex: none; }
table.dense-table.mod-accounts-table th .mod-sort { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 2px; min-height: 32px; font: inherit; color: inherit; letter-spacing: inherit; text-transform: inherit; }
table.dense-table.mod-accounts-table th .mod-sort:focus-visible { outline: 2px solid var(--accent, #d4af37); outline-offset: 2px; border-radius: 4px; }
table.dense-table.mod-accounts-table td.mod-last-online { text-align: center; white-space: nowrap; }
.badge.online { background: #17402c; border-color: #2f8a5a; color: #8ff0b8; }
@media (max-width: 760px) {
  .mod-online-only { margin-left: 0; }
  table.dense-table.mod-accounts-table td.mod-last-online { text-align: left; }
  /* No cartao, o nome da coluna antes do valor (o cabecalho fica escondido). */
  table.dense-table.mod-accounts-table td[data-label]::before { content: attr(data-label) ": "; color: var(--muted, #9fb3bf); font-size: var(--text-xs, 12px); }
}
/* Moderacao > Contas: um botao "Acoes" por conta (o menu dos Amigos, web/src/action-menu.mjs), fixo na tela para a tabela nao corta-lo. */
.act-menu-wrap { display: inline-block; }
/* Moderacao > Contas (25/11/2026): quem e novo. Os contadores filtram a lista (aria-pressed marca o ligado), a linha nova leva a
   etiqueta e um fio dourado, e a coluna Cadastro diz ha quanto tempo, com a data embaixo. */
.mod-new-count { margin-left: var(--space-2, 8px); color: var(--warn, #ffca70); }
.mod-signup-counts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-2, 8px); margin-top: var(--space-3, 12px); }
.card button.mod-signup-count { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; gap: var(--space-1, 4px); min-height: 44px; padding: var(--space-2, 8px) var(--space-3, 12px); border: 1px solid var(--line, rgba(255,255,255,.1)); border-radius: var(--radius-md, 10px); }
.card button.mod-signup-count b { font-size: var(--text-lg, 20px); font-variant-numeric: tabular-nums; }
.card button.mod-signup-count[aria-pressed="true"] { border-color: var(--accent, #d4af37); box-shadow: inset 0 0 0 1px var(--accent, #d4af37); }
.card button.mod-signup-count:focus-visible { outline: 2px solid var(--accent, #d4af37); outline-offset: 2px; }
.mod-signup-count-label { color: var(--muted, #9fb3bf); font-size: var(--text-xs, 12px); }
.mod-signup-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2, 8px) var(--space-4, 16px); margin: var(--space-2, 8px) 0; }
.mod-signup-bar p { margin: 0; }
.mod-new-tag { margin-right: var(--space-2, 8px); color: var(--warn, #ffca70); }
table.dense-table.mod-accounts-table tr.mod-new td:first-child { box-shadow: inset 3px 0 0 var(--accent, #d4af37); }
table.dense-table.mod-accounts-table td.mod-signup { white-space: nowrap; }
.mod-signup-date { font-size: var(--text-xs, 12px); }
/* Com a coluna Cadastro sao oito: o e-mail deixa a largura fixa e e o unico que quebra em qualquer letra; as outras so entre palavras
   (antes Clube, Tecnico e Regiao viravam uma letra por linha). */
@media (min-width: 761px) {
  table.dense-table.mod-accounts-table :is(th, td).col-fixed-1 { position: static; width: 24%; min-width: 11rem; max-width: none; white-space: normal; text-align: left; }
  table.dense-table.mod-accounts-table :is(th, td):not(:last-child, .col-fixed-1) { overflow-wrap: normal; word-break: normal; padding-inline: var(--space-2, 8px); }
  table.dense-table.mod-accounts-table td.mod-last-online { white-space: normal; }
  table.dense-table.mod-accounts-table td .mod-new-tag { display: table; margin: 0 0 var(--space-1, 4px); }
}
@media (max-width: 760px) {
  .mod-signup-counts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  table.dense-table.mod-accounts-table td.mod-signup { white-space: normal; }
  table.dense-table.mod-accounts-table td.mod-signup .mod-signup-date { display: inline; margin-left: var(--space-2, 8px); }
}
.act-menu-trigger::after { content: ' ▾'; font-size: .8em; }
.friend-menu.act-menu { position: fixed; top: 0; left: 0; z-index: 60; min-width: 12rem; }
table.dense-table.mod-accounts-table td.mod-manager { text-align: left; overflow-wrap: anywhere; }
table.dense-table.mod-accounts-table th.mod-manager { text-align: left; }
/* A busca por nome do time (adminClubPicker) abre a lista de sugestoes por cima do card: o card nao a corta (dono, 19/11/2026: em
   Operacoes > Renomear clube a lista ficava escondida dentro do card, com barra de rolagem). */
.card:has(.admin-picker) { overflow: visible; }
.admin-picker .qm-suggestions { z-index: 40; }
/* Loja > Trocar nome do time / do tecnico (dono, 19/11/2026): mais espaco entre o rotulo e a caixa de texto. */
label.field.shop-rename-field { display: grid; gap: 10px; margin-top: 4px; }
/* Minha conta > Loja do Clube (dono, 19/11/2026): o nome do tecnico e o do estadio. */
.account-names { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; margin: 4px 0 10px; }
.account-names dt { color: var(--muted, #9fb3bf); }
.account-names dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
/* Ver meu clube (dono, 19/11/2026): a pagina do proprio clube como os outros a veem; os botoes de visitante aparecem desligados. */
.account-shop-actions { gap: 8px; }
.club-preview-note { margin: 0 0 var(--space-4, 16px); }
.club-actions .btn.is-preview { opacity: .5; pointer-events: none; }
/* Pagina do clube (dono, 19/11/2026): no Elenco, "Idade" numa linha so; nos Jogos da temporada, o cabecalho e a coluna do campeonato
   estreita, para os nomes dos times caberem. */
table.dense-table.club-squad-table th.squad-age { white-space: nowrap; }
table.dense-table.club-squad-table :is(th, td).squad-age { width: 5.5rem; }
table.dense-table.club-profile-matches { table-layout: fixed; width: 100%; }
table.dense-table.club-profile-matches :is(th, td).match-comp { width: 6.5rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; }
table.dense-table.club-profile-matches :is(th, td).num.attr-cell { width: 5rem; text-align: center; white-space: nowrap; }
table.dense-table.club-profile-matches th.team-name { text-align: center; }
@media (max-width: 640px) { table.dense-table.club-profile-matches :is(th, td).match-comp { width: 4.5rem; } }
/* Etiqueta "Base" ao lado do nome, nao embaixo (dono, 19/11/2026), no Elenco e no Mercado. */
.squad-desktop-table .name-cell .name-line { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; min-width: 0; vertical-align: middle; }
.squad-desktop-table .name-cell .name-line > .name-status { min-width: 0; }
.squad-desktop-table .name-cell .academy-tag, .market-table .col-fixed-1 .academy-tag { display: inline-block; width: auto; margin: 0 0 0 6px; flex: none; vertical-align: middle; }
.squad-desktop-table .name-cell .name-line > .academy-tag { margin-left: 0; }
/* O selo de lesao (+) e de suspensao: o simbolo e o numero centrados na altura do selo (o simbolo ficava encostado embaixo). */
.status-badge { align-items: center; line-height: 1; padding: 2px 6px; }
.status-badge .status-badge-icon, .status-badge .status-count { display: inline-flex; align-items: center; justify-content: center; height: 1em; line-height: 1; }
.status-badge .status-badge-icon { transform: translateY(-0.06em); }
.status-badge.banned .status-badge-icon { transform: translateY(-0.17em); }   /* the ⊘ glyph sits lower in the font than the ✚ */
/* Voltar e avancar (dono, 19/11/2026): dois botoes redondos no canto esquerdo de cima de toda pagina; cinza quando nao ha para onde ir. */
.page-nav { display: flex; gap: 8px; margin: 0 0 10px; position: relative; z-index: 5; }
/* Back/forward and, to their right, REPORT BUG/FEEDBACK (owner 01/12/2026): one row at the top left of every page. */
.page-bar { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-2, 8px); margin: 0 0 10px; position: relative; z-index: 5; }
.page-bar .page-nav { margin: 0; }
.page-bar .feedback-btn { flex: 0 1 auto; min-width: 0; }
/* The report window: the attach row, the screenshots' thumbnails and the small notes under them. */
.feedback-form textarea { width: 100%; resize: vertical; }
.feedback-attach { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-2, 8px); margin-top: var(--space-2, 8px); }
.feedback-thumbs { display: flex; flex-wrap: wrap; gap: var(--space-2, 8px); margin-top: var(--space-2, 8px); }
.feedback-thumb { position: relative; width: 120px; height: 80px; border: 1px solid var(--line); border-radius: var(--radius-sm, 8px); overflow: hidden; background: var(--surface-2, transparent); }
.feedback-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.feedback-thumb-remove { position: absolute; top: 2px; right: 2px; width: 32px; height: 32px; min-height: 32px; padding: 0; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--btn-border-color); background: var(--btn-bg); color: var(--btn-fg); }
.feedback-note { font-size: var(--text-sm, 0.8125rem); margin: var(--space-2, 8px) 0 0; }
/* Moderação > Bugs/Feedback: the player's text as written, and a screenshot opened at the window's width. */
.feedback-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.feedback-shot { display: block; max-width: 100%; height: auto; margin: 0 auto; }
/* A screenshot is read, not glanced at: its window takes the width of the screen (a 1920 px capture in the 520 px dialog was unreadable). */
.modal:has(> .feedback-shot) { width: min(96vw, 1400px); max-width: none; }
.page-nav-btn { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; min-height: 36px; padding: 0; border-radius: 999px;
  border: 1px solid var(--btn-border-color, #f3d677); background: var(--btn-bg, #d4af37); color: var(--btn-fg, #1c1605); cursor: pointer; }
.page-nav-btn:hover:not(:disabled) { background: var(--btn-bg-hover, #e5c158); }
.page-nav-btn:focus-visible { outline: 2px solid var(--text, #fff); outline-offset: 2px; }
.page-nav-btn:disabled { background: #3a4650; border-color: #4b5862; color: #8b979f; cursor: default; }

/* A friendly league's table (owner 25/11): with the 44 px number columns the seven numbers took the whole card on a phone, the club column
   came out 0 px wide and the names ran over J and V (its head and Pts went off the side). Fixed layout like the league standings: # and the
   numbers are narrow fixed columns, centred under their heads; the club takes the rest, left aligned. On a phone the club is its
   three-letter code (team-code.mjs#teamLabel, mode 'code'); on a desktop the full name, cut with an ellipsis if it must. */
.stadium-app .board .main table.dense-table.fl-standings-table,
table.dense-table.fl-standings-table { table-layout: fixed; width: 100%; min-width: 0; }
.fl-standings-table col.c-pos { width: 2.4rem; }
.fl-standings-table col.c-num { width: 2.6rem; }
.stadium-app .board .main table.dense-table.fl-standings-table :is(th, td),
table.dense-table.fl-standings-table :is(th, td) { padding-inline: 4px; }
.stadium-app .board .main table.dense-table.fl-standings-table :is(th, td):is(.num, .pos-cell),
table.dense-table.fl-standings-table :is(th, td):is(.num, .pos-cell) { width: auto; min-width: 0; text-align: center; font-variant-numeric: tabular-nums; }
.stadium-app .board .main table.dense-table.fl-standings-table :is(th, td).team-name,
table.dense-table.fl-standings-table :is(th, td).team-name { width: auto; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 640px) {
  .fl-standings-table col.c-pos { width: 1.8rem; }
  .fl-standings-table col.c-num { width: 1.6rem; }
  .fl-standings-table col.pts { width: 1.9rem; }
  .stadium-app .board .main table.dense-table.fl-standings-table :is(th, td),
  table.dense-table.fl-standings-table :is(th, td) { padding-inline: 2px; font-size: var(--text-xs); }
}
